text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
[Spotted] this at my college in the handicapped spot. So much jealousy.. | 0non-cybersec
| Reddit |
[SP] "Anyhow," said the fairy as she left, "I needn't worry. Man can't make any wish that isn't stupid.". from *Rhumbs,* a collection of ideas and impressions by Paul Valery. | 0non-cybersec
| Reddit |
[UK] McDonald’s drive-thru - It started with an impatient person sounding their horn, to a full out beepfest. | 0non-cybersec
| Reddit |
Long shot: Is anyone here familiar with programming the IBM 4690 OS? I'm trying to figure out how to get system core temps without rebooting into BIOS.. Long shot: Is anyone here familiar with programming the IBM 4690 OS? I'm trying to figure out how to get system core temps without rebooting into BIOS. | 0non-cybersec
| Reddit |
WHY do so many men think they can "fix" women who dislike cunnilingus?. I just starting dating a lovely gentleman. We'll call him James T. Kirk. As a sex abuse survivor, I have a little "disclaimer" that I tell people with whom I'm about to be intimate. Included in the disclaimer is this statement: "I don't like cunnilingus." A few nights ago I gave Kirk the disclaimer talk. When I was done, Kirk showed what an awesome guy he is by giving me a huge hug, threatening to hunt down and disembowel the men who perpetrated such crimes against me, and said that he will have respect and patience for whatever issues may crop up.
A few hours later we hit the sheets for the first time, and *it* crops up. You know, *it*. "I love going down on women and I'm sooooo awesome at it and I'll respect your boundaries but I really want to do it to you and I know you'll love it I promise!"
The sad part? I was totally prepared for *it* to happen, because *it* happens with almost every guy I date (and the occasional gal I date)-- they are somehow convinced that they can "cure" me of my dislike of cunnilingus and that I should let them. And I do, from time to time, let folks try. The last long-term (3 years) relationship I was in with a guy, I let him try a lot. And *I* tried. I really did try to like it. But all the pressure from him to let him try, and all the mental focus required and time (hour +) of focusing on an unstimulating physical sensation just to eek out one orgasm was-- just not pleasant. Not "OMG I'm triggered,” but more like "okay, so I am physically capable of orgasming from it, but there's 5 zillion other methods that I like a lot more."
So here I am, present day, and yet another man who is so very lovely in every other way (physically, mentally, and emotionally) wants me to let him go down on me. I want to say "absolutely not, it's on the sexual blacklist" because I'm just so sick of men thinking they can "fix" me and that it's imperative that they do. I don't want to go through another round of closing my eyes and mentally organizing my shopping list until my clitoris goes /*ping*/. At this point, it's a catch-22-- so many guys have bugged me about it that I get even more turned off to the idea whenever it is brought up.
So how do I politely explain to this man (and future men and women) that south of the border is simply out of the question?
**TL;DR** I don't like cunnilingus for various reasons and men keep trying to "fix" me; it's driving me crazy, what do I do?
**ETA:** I am more than happy to hear advice from other survivors on how to teach myself to enjoy cunnilingus. Annoyance of persistence aside, I think what "bugs" me most about it is the relative lack of physical and visual contact with my partner, which increases the change that I will dissociate and be "triggered" during the act.
| 0non-cybersec
| Reddit |
[WP]A general goes to pay respects to the graves of men who died under his command, only to find the skeletons in strict military formation awaiting his arrival.. | 0non-cybersec
| Reddit |
For the N.F.L. Playoffs, Much Has Changed. Then There Are the Patriots.. | 0non-cybersec
| Reddit |
I agree. No notes!. | 0non-cybersec
| Reddit |
Unable to use CreateRemoteThread in target process. <p>I'm trying to get a debugger attached to a malware, but it seems to pick up whenever a new remote thread is created (which makes it so I can't use Scyllahide).</p>
<p>Even if I suspend all threads, it does the following:
When a new remote thread is created(<code>CreateRemoteThread</code> / <code>ZwCreateThread</code>) (internally calling <code>CreateThread</code> is ok) it patches a <code>0xC3(ret)</code> to the entry point. </p>
<p>I tried suspending it on creation then resuming it later but as soon as it is resumed the entry point gets patched before it can execute.</p>
<p>I've looked at hooks in PCHunter, there is no hooks in unnamed functions or thread related functions.</p>
<p>IDA Pro isn't helping much, the process is obfuscated a lot.</p>
<p>I don't know what should be the next step at this point, so I'm hoping someone can help me figure this out. </p>
<p>It looks like a hook or a callback is set somewhere but I don't know of any callback that gets executed on thread creation(at least in usermode) and I can't seem to find any hook related to threads in windows dll's. </p>
| 0non-cybersec
| Stackexchange |
Common feat Sadat X- 1999. | 0non-cybersec
| Reddit |
If $\lambda$ is in spectrum of bounded linear operator $A$, then $\lambda^n$ is in spectrum of $A^n$.. <p>If $\lambda$ is in spectrum of $A$ then for all $n \in N$, $\lambda^n$ is in spectrum of $A^n$.</p>
<p>I try to solve this but I could only solve in the case point spectrum assuming $\lambda$ is an eigenvalue. But I know that it is incomplete. </p>
<p>Any hint is appreciated.</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
context menu in thunar does not work properly. <p><a href="https://i.stack.imgur.com/9xzlQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9xzlQ.png" alt="enter image description here"></a>Running Xubuntu Bionic. After an update of the system that did not terminate well I cannot use my personal thunar context menus :
My context menu for searching a file in a directory does not show the type in window.
whereas the rename context menu works properly.</p>
<p>Complement : the file ~/;config/thunar/uca.xml is correct. The </p>
<p>When I right click on a directory on the context menu search file, a windows should popup in which I can type the name of the file. This window does not pop up. </p>
| 0non-cybersec
| Stackexchange |
PostGIS Intersects Query takes lot of time to get the result. <p>I am developing a webmapping application in which I used PosgreSQL with PostGIS plugin as my DB. </p>
<p>I have this two tables namely; <code>evidensapp_polystructures</code> and <code>evidensapp_seniangcbr</code>. Both tables contain geometry(multipolygons).</p>
<pre><code>-- Table: evidensapp_seniangcbr
-- DROP TABLE evidensapp_seniangcbr;
CREATE TABLE evidensapp_seniangcbr
(
id serial NOT NULL,
hazard character varying(16) NOT NULL,
geom geometry(MultiPolygon,32651),
CONSTRAINT evidensapp_seniangcbr_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE evidensapp_seniangcbr
OWNER TO postgres;
-- Index: evidensapp_seniangcbr_geom_id
-- DROP INDEX evidensapp_seniangcbr_geom_id;
CREATE INDEX evidensapp_seniangcbr_geom_id
ON evidensapp_seniangcbr
USING gist
(geom);
ALTER TABLE evidensapp_seniangcbr CLUSTER ON evidensapp_seniangcbr_geom_id;
-- Table: evidensapp_polystructures
-- DROP TABLE evidensapp_polystructures;
CREATE TABLE evidensapp_polystructures
(
id serial NOT NULL,
bldg_name character varying(100) NOT NULL,
bldg_type character varying(50) NOT NULL,
brgy_locat character varying(50) NOT NULL,
municipali character varying(50) NOT NULL,
province character varying(50) NOT NULL,
geom geometry(MultiPolygon,32651),
CONSTRAINT evidensapp_polystructures_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE evidensapp_polystructures
OWNER TO postgres;
-- Index: evidensapp_polystructures_geom_id
-- DROP INDEX evidensapp_polystructures_geom_id;
CREATE INDEX evidensapp_polystructures_geom_id
ON evidensapp_polystructures
USING gist
(geom);
ALTER TABLE evidensapp_polystructures CLUSTER ON evidensapp_polystructures_geom_id;
</code></pre>
<p>With my query below it takes almost 15mins. to get the result.</p>
<pre><code>-- Executing query:
SELECT COUNT(evidensapp_polystructures.brgy_locat ) as High,evidensapp_polystructures.brgy_locat as Barangay, evidensapp_polystructures.municipali as Municipality
FROM evidensapp_seniangcbr INNER JOIN evidensapp_polystructures ON ST_Intersects( evidensapp_seniangcbr.geom , evidensapp_polystructures.geom ) WHERE evidensapp_seniangcbr.hazard = 'Low' GROUP BY evidensapp_polystructures.brgy_locat , evidensapp_polystructures.municipali
Total query runtime: 896688 ms.
23 rows retrieved.
</code></pre>
<p>It is not acceptable. So, how do I optimize it? I've done spatial indexing and clustering based on this <a href="http://revenant.ca/www/postgis/workshop/indexing.html" rel="nofollow">site</a>.</p>
| 0non-cybersec
| Stackexchange |
Cani's amazing midfield goal. | 0non-cybersec
| Reddit |
Is it possible to reduce flair size without disabling style?. So the new big flairs are pretty annoying and imo makes the page look ugly. However, I like using subreddit style. Is it possible to enable everything except the flair? | 0non-cybersec
| Reddit |
First time DM-ing with all new players.. And it went great! We played Lost Mines of Phandelver. It actually went a little too well. With some natural 20's, my PC's are sitting on about 90 GP each after delivering the supplies and selling the jade statue.
Being new to DM-ing, the absolute best thing was when our rogue opened his mouth, then shut it and shook his head. I asked him what was up, and he said, "Oh, I probably can't do it, but I wanted to throw some oil on the fire and burn the goblins that are around it."
"You absolutely can. Let me roll a D4 for each one around the fire." It was amazing when they did something off book at first. | 0non-cybersec
| Reddit |
(No Spoilers) The piece for the Dreadfort in my Westeros map puzzle looks like the Bolton sigil. | 0non-cybersec
| Reddit |
Server 2003 dnscmd.exe access denied (not server 2008). <p>The only topics I can find on dnscmd.exe access denied are all "when we upgraded to Server 2008 this error started". Well, I'm using Windows XP client and Server 2003 and getting this error. I can use computer manager to view sessions, open files, services (start/stop works also) from my XP workstation, but when I try to use the DNS Manager snap-in or dnscmd.exe I always get Access Denied (5) error. I have confirmed that RPC over TCP/IP is enabled for the DNS service (when I disable I get a connection reset error instead).</p>
<p>More info on setup:</p>
<p>DNS Server:</p>
<pre><code>Windows 2003 Standard Edition SP2
Computer Name: PSServer
Workgroup Name: TELEXSI
</code></pre>
<p>Workstation using dnscmd.exe:</p>
<pre><code>Windows XP Pro SP3
Computer Name: DEVELOPER
Workgroup Name: TELEXSI
</code></pre>
<p>DNS command-lines tried:</p>
<pre><code>dnscmd.exe mydomain.com /Info
</code></pre>
<p>Also tried using the IP (it is an external/Internet IP) instead of domain name.</p>
<p>In computer manager when I view the list of active sessions, I see my XP workstation listed (by its external IP) and the user name is a user in the admin group, and not as guest. This is the one and only login we use for everything, start/stop services, install software, etc, so I know it has full-access/admin rights.</p>
<p>Is this a known restriction of a Workgroup over WAN? Seems odd that I can do everything else remotely, but this one area (DNS Server) I am having issues with.</p>
| 0non-cybersec
| Stackexchange |
The fan blades on my ceiling fan have traveled a greater distance than my new car. | 0non-cybersec
| Reddit |
Storing integers larger than 64 bits in NumPy array. <p>It is apparent that NumPy has an upper bound for its integers. But my question is, is there a way to store the elements in NumPy arrays, like by keeping the values and the magnitudes separate? Wouldn't that technically allow storing of larger numbers than what the <code>int64</code> limit allows?</p>
| 0non-cybersec
| Stackexchange |
Waterslide Tunnel [pic]. | 0non-cybersec
| Reddit |
Go home keyboard, you're drunk. . | 0non-cybersec
| Reddit |
Spanning tree in the unit square with low diameter and low degree. <p>Given a finite set of $n$ points in the unit square, I would like to find a spanning tree on these points such that the (Euclidean) distance within the tree between any pair of points is at most a constant, not dependent on $n$.</p>
<p>Any star graph clearly has this property, with maximum diameter $2 \sqrt 2$. However, the maximum degree of this graph is $n-1$. I would like to find such a spanning tree with smaller maximum degree.</p>
<p>If the spanning tree must be a line graph (degree 2), then the minimum diameter may grow as $O(\sqrt n)$, for instance on the grid graph.</p>
<p>If the points are not restricted to the plane, then a n-simplex requires degree $\Theta(n)$ to achieve constant diameter.</p>
<p>For any set of $n$ points in the unit square, does a spanning tree with constant diameter always exist with degree $o(n)$? $O(\log n)$? $O(1)$? $3$?</p>
<p>I would also be interested in hearing about any related research on the area of spanning trees with bounded degree in metric spaces.</p>
| 0non-cybersec
| Stackexchange |
How To Avail Vacaville Car Loans Against Bad Or No Credit. | 0non-cybersec
| Reddit |
How long will people play Titanfall?. | 0non-cybersec
| Reddit |
Satisfying door. | 0non-cybersec
| Reddit |
Is Scientology mining Facebook account info for new recruits? . | 0non-cybersec
| Reddit |
How to detect Chrome default Search engine. <p>I am developing a chrome extension and my requirement is to detect the default search engine of Chrome web browser.</p>
<p>I have searched a lot over web but did not get any api to detect so.</p>
<p>I have also searched web to do so with Javascript/Jquery but not luck so far.</p>
<p>Please suggest me some way so that i can detect default search engine for Chrome browsers.</p>
| 0non-cybersec
| Stackexchange |
What is the path of an object under constant acceleration in two directions?. <p>I.e., what is the set of solutions to this system of differential equations:</p>
<p><span class="math-container">$\frac{dx}{dt} = a_x t + v_{ox}$</span></p>
<p><span class="math-container">$\frac{dy}{dt} = a_y t + v_{oy}$</span></p>
<p>which corresponds to the path of an object under constant acceleration in both the <span class="math-container">$x$</span> and <span class="math-container">$y$</span> directions, with initial velocities <span class="math-container">$v_{ox}$</span> and <span class="math-container">$v_{oy}$</span>.</p>
<p>By integrating both then solving one equation to find <span class="math-container">$t = \pm \sqrt{\frac{a_x t^2}{2}}$</span> and plugging that into the other,
I have found that when <span class="math-container">$v_{ox}=x_o=0$</span>, the solution set is:</p>
<p><span class="math-container">$y = \frac{a_y}{a_x}x \pm v_{oy}\sqrt{\frac{2 x}{a_x}} + y_o$</span></p>
<p>where <span class="math-container">$x_o$</span> and <span class="math-container">$y_o$</span> are the initial <span class="math-container">$x$</span> and $$ positions, respectively.</p>
<p>How can I solve this for the general case, i.e. when <span class="math-container">$v_{ox}$</span> and <span class="math-container">$x_o$</span> are not constrained to be zero?</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Somebody at google was just like "yea, just have someone drive down every road on fucking earth".. And you know what? They did it. | 0non-cybersec
| Reddit |
When I created a gif, closed out of Photoshop, and realized I didn't trim the end correctly. | 0non-cybersec
| Reddit |
Remove stretch and shrink (glue) from existing length. <p>Suppose I have a length <code>\mylength</code>, defined to be </p>
<pre><code>\setlength{\mylength}{5pt plus 1pt minus 2pt}
</code></pre>
<p>I'd like to make <code>\mylength</code> a fixed length, but keep the default length. In this example, I'd like </p>
<pre><code>\setlength{\mylength}{5pt}
</code></pre>
<p>But what if I didn't know the definition of <code>\mylength</code>? I know I can use <code>\the\mylength</code> to have it printed in the document, which I then can inspect, but I was wondering whether there is a simple way to strip out the glue of a length. </p>
| 0non-cybersec
| Stackexchange |
Splitting a XeLaTeX script into separate character files. <p>Not sure what an MWE would be for this question. Basically I have a script written in XeLaTeX, one that includes dialogue, stage directions, and a lot of additional information. What I would like is some way to produce just a dialogue output for each of the main characters (there are 4). I am open to any method, either within XeLaTeX or in post-processing after a PDF is produced.</p>
<p>I have tried doing this with the <a href="https://ctan.org/pkg/ifthen?lang=en" rel="nofollow noreferrer">ifthenelse</a> package, but the logic gets convoluted very quickly. I have searched for a way to just send selected text to separate files, but I haven't located anything that will do that.</p>
| 0non-cybersec
| Stackexchange |
Unsettling tableware. | 0non-cybersec
| Reddit |
Remove items from QListWidget in PyQt5. <p>I am trying to make a refresh button in pyqt5. I am building a desktop app. I wrote the code that scans particular folder and saves filenames and their paths as an array.</p>
<p>Array values are added to QListWidget as items</p>
<pre><code>self.sampleChoose_list.addItems(sample_directory[0])
</code></pre>
<p>I am trying to make a function that refreshes values of the array and passes it to QListWidget.</p>
<p>Something like this</p>
<pre><code>self.refreshSamples.clicked.connect(self.refreshSample)
def refreshSample(self):
sample_directory = []
sample_files = []
for (dirpath, dirnames, filenames) in walk('./Samples'):
filenames = [f for f in filenames if not f[0] == '.']
sample_files.extend(filenames)
break
the_dir = "Samples"
paths = [os.path.abspath(os.path.join(the_dir,filename)) for filename in os.listdir(the_dir) if not filename.startswith('.')]
sample_directory.append(sample_files)
sample_directory.append(paths)
self.sampleChoose_list.addItems(sample_directory[0])
</code></pre>
<p>The problem that I struggle with is: when I push refresh button, new items get added, but the old ones are not deleted. How to remove items from QListWidget?</p>
| 0non-cybersec
| Stackexchange |
Dog managed to poop ON the wall - Nothing else was moved. HOW?!🤷🏻♀️. | 0non-cybersec
| Reddit |
He called it in 1993.. | 0non-cybersec
| Reddit |
"Untested, but should work". | 0non-cybersec
| Reddit |
Idiot cager blows red light Ninja rider walks away.. | 0non-cybersec
| Reddit |
how to get instant weight loss. | 0non-cybersec
| Reddit |
Do I need to cite an old theorem, if I've strengthened it, wrote my own theorem statement, with a different proof?. <p>Let's say I have been studying an older theorem statement and its proof. I feel that it can be improved, e.g., I can make it a stronger double-implication theorem statement, with a different proof. Would I still need to cite the paper from which I first studied the theorem? Even though my work is completely organic and self-contained?</p>
<p>Thanks,</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Turkey's Erdogan: I want to be like the Queen of England. | 0non-cybersec
| Reddit |
Powershell script to delete oldest files (not relative to current date). <p>I <strong>DO NOT</strong> want to "delete files older than X days." If I wanted to do this, I'd just pick one of the thousands of scripts out there that have already been written for that purpose, and I wouldn't bother asking such a trivial question on ServerFault.</p>
<p>I <strong>DO</strong> want to delete all but the most recent N files in a particular folder.</p>
<p>Background: a remote system is configured to dump a periodic archive files to a share on a Windows server. These files have a naming convention of YYYYMMDD-hhmm.ext. Should the archive process fail, I don't want the purge script to delete the files just because they are older than so-many-days. There is no way to configure the remote system to purge the files as part of the archive process.</p>
<p>So for example, when the script runs there may be 10 files, there may be 7 files, there may be 5 files in the folder. I need to always keep at least the most recent 5, regardless of how old they are.</p>
<p>Can this be done with PowerShell?</p>
<p>EDIT: it would be desirable to ignore files or folders not matching the naming convention. Other files and folders shouldn't be deleted, nor should they confuse the script (resulting in the retention of fewer than 5 archive files).</p>
| 0non-cybersec
| Stackexchange |
RE4B challenge 65: how to determine the first dimension of the array?. <p><a href="https://challenges.re/65/" rel="nofollow noreferrer">Challenge 65</a>: Try to determine the dimensions of the array, at least partially. </p>
<pre><code>_array$ = 8
_x$ = 12
_y$ = 16
_z$ = 20
_f PROC
mov eax, DWORD PTR _x$[esp-4]
mov edx, DWORD PTR _y$[esp-4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, DWORD PTR [edx+ecx*4]
mov ecx, DWORD PTR _array$[esp-4]
lea eax, DWORD PTR [eax+eax*4]
shl eax, 4
add eax, DWORD PTR _z$[esp-4]
mov eax, DWORD PTR [ecx+eax*4]
ret 0
_f ENDP
</code></pre>
<p>In this challenge, I can only determine the last two dimensions as 60 and 80, so how to determine the first dimension?</p>
<p>I determined: </p>
<pre><code>array[?][60][80]
</code></pre>
<p>Progress to determine last two dimensions:</p>
<pre><code>return: array + 5*16*(4*(16*X-X)+Y)+Z
↓
return: array + 80*(60*X+Y)+Z
↓
The second dimension is 60 and the third dimension is 80.
</code></pre>
<p>.</p>
<p>Answers from Chinese-published version of RE4B, ISBN:9787115434456, Page 944
<a href="https://i.stack.imgur.com/9YW2A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9YW2A.png" alt="answer"></a></p>
| 0non-cybersec
| Stackexchange |
Prepopulate database with empty / null values [mysql]. <p>What would be the best way to pre-populate a database with 100 empty fields and then begin the Auto_Increment?</p>
<p>What I mean to say, I want to reserve the first 100 userfields (ie UIDs which are auto_increment) 0 - 100 for "special users" and have the AUTO_INCREMENT start at 101 (as an example).</p>
<p>Obviously I can't set Auto_Increment to 101 as then it will start the UID at 101. And, I don't know beforehand how many special users there will be, however 100 sounds like a reasonable number to reserve.</p>
<p>What kind of null data can I insert and how would you go about this?</p>
| 0non-cybersec
| Stackexchange |
/u/Sakanagai musically unleashes his dastardly plan to take over Reddit. | 0non-cybersec
| Reddit |
Expression Body VS Block Body. <p>While coding, a discrepancy surfaced. Normally while coding simple methods or constructors I often utilize the expression body technique. However, when I produce the following:</p>
<pre><code>public class Sample : ISample
{
private readonly IConfigurationRoot configuration;
public Sample(IConfigurationRoot configuration) => this.configuration = configuration;
}
</code></pre>
<p>The code appears to be valid, Visual Studio and compile both work. The issue though comes if inside that same class, I go to use the <code>configuration</code> variable. It produces <em>"A field initializer cannot reference a non static field initializer."</em></p>
<p>That syntax usage that produced:</p>
<pre><code>var example = configuration.GetSection("Settings:Key").Value;
</code></pre>
<p>However, if I leave the snippet above this and modify to a block body. Visual Studio no longer freaks out, why would an expression body cause such a peculiar error? While the block body works correctly with snippet above?</p>
<pre><code>public class Sample : ISample
{
private readonly IConfigurationRoot configuration;
public Sample(IConfigurationRoot configuration)
{
this.configuration = configuration;
}
}
</code></pre>
<hr>
<pre><code>public class ApplicationProvider
{
public IConfigurationRoot Configuration { get; } = CreateConfiguration();
public IServiceProvider BuildProvider()
{
var services = new ServiceCollection();
DependencyRegistration(services);
return services.AddLogging().BuildServiceProvider();
}
private IConfigurationRoot CreateConfiguration() => new ConfigurationBuilder()
.SetBasePath(AppContext.BaseDirectory)
.AddJsonFile("appsettings.json")
.Build();
private void DependencyRegistration(this IServiceCollection services)
{
services.AddSingleton(_ => Configuration);
// All other dependency registration would also go here.
}
}
public static IServiceProvider ServiceProvider { get; } = new ApplicationProvider().BuildProvider();
</code></pre>
<p>I would have an interface for class, then instantiate by pulling from the provider. </p>
<pre><code>ISample sample = ServiceProvider.GetServices<ISample>();
</code></pre>
| 0non-cybersec
| Stackexchange |
The existence of an elliptic curve with a specific Galois representation induced by a character. <p>In Kevin Buzzard's <a href="http://www2.imperial.ac.uk/~buzzard/maths/research/papers/survey.pdf" rel="nofollow">survey article on potential modularity</a> Buzzard writes:</p>
<blockquote>
<p>Let us say that we have an elliptic
curve $E$ over a totally real field $F$,
and we want to prove that $E$ is
potentially modular (that is, that $E$
becomes modular over a finite extension
field $F^{′}$ of $F$, also assumed totally
real). Here is a strategy. Say $p$ is
a large prime such that $E[p]$ is
irreducible. Let us write down a
random odd $2$-dimensional mod $ℓ$
Galois representation $\rho_{ℓ} :
> Gal(\overline{F}/F) → GL(2,\mathbf{F}_ℓ )$ which is
induced from a character; because this
representation is induced it is known
to be modular. Now let us consider the
moduli space parametrising elliptic
curves $A$ equipped with </p>
<ol>
<li>An isomorphism $A[p] \cong E[p] $</li>
<li>An isomorphism $A[ℓ]\cong ρ_ℓ$</li>
</ol>
<p>This moduli problem will be
represented by some modular curve,
whose connected components will be
twists of $X(pℓ)$ and hence, if $p$
and $ℓ$ are large, will typically have
large genus. However, such a curve may
well still have lots of rational
points, as long as I am allowed to
look for such things over an arbitrary
finite extension $F^{′}$ of $F$ !</p>
</blockquote>
<p>It's not immediately obvious to me that there's an elliptic curve $A$ over some $F^{′}$ satisfying the second condition alone (never mind satisfying both conditions simultaneously). Is there a simple explanation for why there should be such an $A$? Did Professor Buzzard mean "consider the set of A such that $A[ℓ]\cong ρ_ℓ$ for <em>some</em> representation induced by a character" (as opposed to a particular one)?</p>
| 0non-cybersec
| Stackexchange |
home food inventory app?. hey guys,
not too sure if this is the best place to ask. i've been searching for a while. but is there any ios app for managing my food stocks at home. so that i can share and monitor with my helper at home.
something like a cloud sync so that i can see whats in the fridge too | 0non-cybersec
| Reddit |
My Dad wearing some wild paisley pants - Early 70's. | 0non-cybersec
| Reddit |
To prove f(0) = 0 and hence f is a bijection. <p>let $ f:\mathbf{D}\rightarrow \mathbf{D}$ be a holomorphic function. And suppose that it is <strong>Bijective on ${D}\setminus \left \{ 0 \right \}\rightarrow \mathbf{D}\setminus \left \{ 0 \right \} $</strong>. Can we conclude that<br>
f(0) = 0? </p>
<p>I can conclude that $\begin{vmatrix}f(0)\end{vmatrix} < 1$ because other wise if $\begin{vmatrix}f(0)\end{vmatrix} = 1$ then by maximum modulus principle f(z) is constant but that cannot happen because the function is a bijection. but from this is it possible to deduce that f(0)=0 ?</p>
<p>I'm referring the correct answer of <a href="https://math.stackexchange.com/questions/265396/how-to-prove-conformal-self-map-of-punctured-disk-0z1-is-rotation">conformal self maps on punctured disk</a> </p>
| 0non-cybersec
| Stackexchange |
Filter table with checkboxes. <p>I am filtering a table with checkboxes.
The code I have works fine, in some aspects.</p>
<p>I want it to filter results if they meet all the checks, not one.</p>
<p>based on: <a href="https://stackoverflow.com/questions/17622103/how-can-i-add-to-my-table-filter-to-allow-for-multiple-checkbox-selections-as-w">How can I add to my table filter to allow for multiple checkbox selections, as well as filtering from a dropdown?</a></p>
<p>My <a href="http://lorencook.com/example/table.html" rel="nofollow noreferrer">Example</a></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$("input[name='filterStatus'], select.filter").change(function() {
var classes = [];
var stateClass = ""
$("input[name='filterStatus']").each(function() {
if ($(this).is(":checked")) {
classes.push('.' + $(this).val());
}
});
if (classes == "" && stateClass == "") {
// if no filters selected, show all items
$("#StatusTable tbody tr").show();
} else {
// otherwise, hide everything...
$("#StatusTable tbody tr").hide();
// then show only the matching items
rows = $("#StatusTable tr" + stateClass).filter(classes.length ? classes.join(',') : '*');
if (rows.size() > 0) {
rows.show();
}
}
});</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code><html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
<form name="FilterForm" id="FilterForm" action="" method="">
<input type="checkbox" name="filterStatus" value="ISO " />
<label for="filter_1">ISO</label>
<input type="checkbox" name="filterStatus" value="AMCA" />
<label for="filter_2">AMCA</label>
<input type="checkbox" name="filterStatus" value="UL" />
<label for="filter_3">UL</label>
</form>
<table border="1" id="StatusTable">
<thead>
<tr>
<th>Name</th>
<th>ISO</th>
<th>AMCA</th>
<th>UL</th>
</tr>
<tbody>
<tr class="ISO">
<td class="Name">Name1</td>
<td class="ISO">&#x2713;</td>
<td class="AMCA">&nbsp;</td>
<td class="UL">&nbsp;</td>
</tr>
<tr class="ISO AMCA">
<td class="Name">Name2</td>
<td class="ISO">&#x2713;</td>
<td class="AMCA">&#x2713;</td>
<td class="UL">&nbsp;</td>
</tr>
<tr class="ISO AMCA UL">
<td class="Name">Name3</td>
<td class="ISO">&#x2713;</td>
<td class="AMCA">&#x2713;</td>
<td class="UL">&#x2713;</td>
</tr>
</tbody>
</table>
<script></script>
</body>
</html></code></pre>
</div>
</div>
</p>
| 0non-cybersec
| Stackexchange |
Having trouble wrapping functions in the linux kernel. <p>I've written a LKM that implements Trusted Path Execution (TPE) into your kernel:</p>
<p><a href="https://github.com/cormander/tpe-lkm" rel="noreferrer">https://github.com/cormander/tpe-lkm</a></p>
<p>I run into an occasional kernel OOPS (describe at the end of this question) when I define <strong>WRAP_SYSCALLS</strong> to 1, and am at my wit's end trying to track it down.</p>
<p>A little background:</p>
<p>Since the LSM framework doesn't export its symbols, I had to get creative with how I insert the TPE checking into the running kernel. I wrote a find_symbol_address() function that gives me the address of any function I need, and it works very well. I can call functions like this:</p>
<pre><code>int (*my_printk)(const char *fmt, ...);
my_printk = find_symbol_address("printk");
(*my_printk)("Hello, world!\n");
</code></pre>
<p>And it works fine. I use this method to locate the <strong>security_file_mmap</strong>, <strong>security_file_mprotect</strong>, and <strong>security_bprm_check</strong> functions.</p>
<p>I then overwrite those functions with an <em>asm</em> jump to my function to do the TPE check. The problem is, the currently loaded LSM will no longer execute the code for it's hook to that function, because it's been totally hijacked.</p>
<p>Here is an example of what I do:</p>
<pre><code>int tpe_security_bprm_check(struct linux_binprm *bprm) {
int ret = 0;
if (bprm->file) {
ret = tpe_allow_file(bprm->file);
if (IS_ERR(ret))
goto out;
}
#if WRAP_SYSCALLS
stop_my_code(&cs_security_bprm_check);
ret = cs_security_bprm_check.ptr(bprm);
start_my_code(&cs_security_bprm_check);
#endif
out:
return ret;
}
</code></pre>
<p>Notice the section between the <strong>#if WRAP_SYSCALLS</strong> section (it's defined as 0 by default). If set to 1, the LSM's hook is called because I write the original code back over the <em>asm</em> jump and call that function, but I run into an occasional kernel OOPS with an "invalid opcode":</p>
<pre><code>invalid opcode: 0000 [#1] SMP
RIP: 0010:[<ffffffff8117b006>] [<ffffffff8117b006>] security_bprm_check+0x6/0x310
</code></pre>
<p>I don't know what the issue is. I've tried several different types of locking methods (see the inside of <strong>start/stop_my_code</strong> for details) to no avail. To trigger the kernel OOPS, write a simple bash while loop that endlessly starts a backgrounded "ls" command. After a minute or so, it'll happen.</p>
<p>I'm testing this on a RHEL6 kernel, also works on Ubuntu 10.04 LTS (2.6.32 x86_64).</p>
<p>While this method has been the most successful so far, I have tried another method of simply copying the kernel function to a pointer I created with <strong>kmalloc</strong> but when I try to execute it, I get: <em>kernel tried to execute NX-protected page - exploit attempt? (uid: 0)</em>. If anyone can tell me how to kmalloc space and have it marked as executable, that would also help me solve the above problem.</p>
<p>Any help is appreciated!</p>
| 0non-cybersec
| Stackexchange |
Getting locked out of FTP account. <p>For the past few months, I have had recurring problems being locked out of the FTP account I use. If I open the user account and look at properties, it shows that the account is locked out. If I uncheck the "locked out" checkbox, OK it, and open it up immediately, the vast majority of the time it is locked out again!</p>
<p>My model for what was going on was that some entity was trying madly to log into the FTP account, and so was locked out after 5 failed tries. The group policy for the server is set up so that after 5 failed attempts, the user is locked out for 15 minutes. I thought that there must be scads of attacks occurring many times a second, and that was what was happening.</p>
<p>However, after downloading the FTP logs and looking at them, I found that there is NO activity on that FTP IP address, except for the few occasions where I attempt to log in (occasionally succeeding).</p>
<p>I'm at a loss as to what to do. This has only happened in the last few months -- for years, I had no problems logging onto this account.</p>
<p>This is a Windows Server 2008 R2.</p>
<p>Note: I'm primarily a software developer specializing in web applications using the .NET framework. However, as a service to my ex-boss, for whom I wrote software and for whom I update one of my programs every year, I "maintain" the dedicated server that she rents. Basically, I install updates, maintain a database backup scheme that I set up, and once a month I zip up the database backups and download them to my hard drive using FTP.</p>
<p>(I say all this to let you know that server administration is not my area of expertise!)</p>
| 0non-cybersec
| Stackexchange |
My friend said that he visited a brothel.. He said that it was the worst soup restaurant ever. | 0non-cybersec
| Reddit |
Checking A Gas Leak Using a Lighter.. | 0non-cybersec
| Reddit |
Save and restore UINavigation stacks to reconnect. <p>I am currently having a hard time understanding what I should use to save and restore my app state.</p>
<p>I am using a storyboard and I have quite some ViewControllers, and I want to save all my navigation stacks when the app is terminated to be able to restore all the navigation when the user relaunch the application.</p>
<p>I am using a <code>UINavigationController</code> with another UINavigationController inside it just for information.</p>
<p>I found this and read this over and over :
<a href="https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/PreservingandRestoringState.html#//apple_ref/doc/uid/TP40007457-CH28-SW34" rel="noreferrer">https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/PreservingandRestoringState.html#//apple_ref/doc/uid/TP40007457-CH28-SW34</a></p>
<blockquote>
<p>(Required) Assign restoration identifiers to the view controllers whose configuration you want to preserve; see Tagging View Controllers for Preservation.</p>
<p>(Required) Tell iOS how to create or locate new view controller objects at launch time; see Restoring View Controllers at Launch Time.</p>
</blockquote>
<p>Then I added a <code>RestorationId</code> on all my ViewControllers but I don't understand what I should do for the second part as when I add <code>viewControllerWithRestorationIdentifierPath</code> methods I don't pass inside.</p>
<p>I also tried to save the <code>navigation.viewcontrollers</code> into the NSUserDefaults in order to use them again when the user restart the app
using the code :</p>
<pre><code>+(NSArray *) getNavStatus
{
NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults];
id objectSaved;
if( (objectSaved = [preferences objectForKey:navStatusKey]) != nil)
return [NSKeyedUnarchiver unarchiveObjectWithData:objectSaved];
else
return nil;
}
+(BOOL) saveNavStatus:(UINavigationController *) nav
{
NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults];
NSData *encodedObject = [NSKeyedArchiver archivedDataWithRootObject:nav.viewControllers];
[preferences setObject:encodedObject forKey:navStatusKey];
// Save to disk
return [preferences synchronize];
}
</code></pre>
<p>But when I get back in the app apple stats to tell me that the constraint ain't respected and that the app will crash and then when I add the viewControllers in the stack of my navigation it does crash :)</p>
<p>Any tips or help would be much appreciated.
Thanks a lot</p>
| 0non-cybersec
| Stackexchange |
Show that it is undecidable if two Turing Machines accept the same language. <p>I was asked this question at an interview, and couldn't answer it, and would like to know how it is 'shown' that two Turing machines which accept the same language is undecidable. This is not a homework question!</p>
| 0non-cybersec
| Stackexchange |
Ryanair’s ‘visa’ stamp requirement leaves Americans in a rage and out of pocket. | 0non-cybersec
| Reddit |
obfuscating keystore password in JBoss 4.2.2 GA. <p>I've setup my jboss app-server to use SSL. The relevant extract from my config is below. Everything is working ok, however some people have expressed concern over the <code>keystorePass</code> attribute being in plain text. Is there any way to obfuscate / encrypt this value?</p>
<p>I'm using JBoss 4.2.2.GA (on Red Hat Enterprise Edition, if that makes any difference)</p>
<pre><code><Connector port="8080"
protocol="HTTP/1.1"
SSLEnabled="true"
maxThreads="150"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
keystoreFile="/somewhere/some.keystore"
keystorePass="somePassword"
keyAlias="tomcat"/>
</code></pre>
<p>Edit, To get away from the security by obscurity approach, an alternative to obfuscating this would be to not supply it at all and have tomcat prompt for the p/w on startup. However as far as I know this isn't supported. Can anyone confirm or deny this?</p>
| 0non-cybersec
| Stackexchange |
Me and my 10 year old Pc. | 0non-cybersec
| Reddit |
Connecting switches together. <p>I've gotten confused about connecting the switches together. I have L2 switches which will be daisy chained together (yes I know, daisy chaining isn't great, but anyway..) The L2 switches will then link to a L3 switch.</p>
<p>Both the L2 and L3 switches have x4 10GbE SFP+ ports. Would I be able to daisy chain the L2 switches together using the SFP+ port with an Ethernet cable?</p>
<p>Also I was going to link the L2 switches to the L3 switches via Fiber using the SFP+ ports. However in some cases, that maxes out the L3 switch, and I need at least 8 SFP+ on the L3 switch, so is this just a case of adding extra SFP+ modules to the L3 switch?</p>
<p>I also have two different servers, one which have 10Gbe port and one with 10Gb port, would I be able to connect these to the L3 SFP+ via fiber?</p>
| 0non-cybersec
| Stackexchange |
vertical centering in longtable. <p>I am typesetting some fraction introduction and have the following as a cell within a longtable:</p>
<pre><code> $\vcenter{
\begin{tikzpicture}[scale=0.5, .style={fontsize=\footnotesize}]
\filldraw[fill=black!10!white, draw=black!70!white]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\filldraw[fill=white, draw=black!70!white, rotate=120]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\filldraw[fill=white, draw=black!70!white, rotate=240]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\end{tikzpicture}
+
\begin{tikzpicture}[scale=0.5, .style={fontsize=\footnotesize}]
\filldraw[fill=white, draw=black!70!white]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\filldraw[fill=black!10!white, draw=black!70!white, rotate=120]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\filldraw[fill=black!10!white, draw=black!70!white, rotate=240]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\end{tikzpicture}
=
\begin{tikzpicture}[scale=0.5, .style={fontsize=\footnotesize}]
\filldraw[fill=black!10!white, draw=black!70!white]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\filldraw[fill=black!10!white, draw=black!70!white, rotate=120]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\filldraw[fill=black!10!white, draw=black!70!white, rotate=240]
(0,0) -- (7.5mm, 0) arc (0:120:7.5mm) -- cycle;
\end{tikzpicture}
}$
</code></pre>
<p>I hoped that the "+" and "=" would be vertically centered relative to (with) the TikZ-Pictures. They are not and I do not get why.</p>
| 0non-cybersec
| Stackexchange |
Africans have the best drinking games.... ...like „the last one to find water dies“. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
I'm Sam Lake, the creator/writer of Max Payne and Alan Wake, AMAA!. *"It's not a lake. It's an ocean."*
…but this time it really is Lake, Sam Lake that is ([proof](https://twitter.com/SamLakeRMD/status/337622274947563520)). I'm the Creative Director at Remedy Entertainment, the game studio that created *Alan Wake* and *Max Payne*. I can't reveal details of our next big thing, *Quantum Break*, yet, but I'd love to discuss anything related to our previous games, how we make games, our history and anything else crazy you can think of… so you can Ask Me *Almost* Anything.
**[Alan Wake Humble Bundle is out now.](http://www.humblebundle.com/weekly)**
Pay what you want and support charities! You can also check out my video announcement to you guys on [the Humble Bundle page](http://www.humblebundle.com/weekly).
*Edit:* This was great, guys, thanks a lot for all the great questions. This was fun. Let's do this again! | 0non-cybersec
| Reddit |
In WireShark, how can I filter results so that it shows only a single line per source?. <p>I'm using WireShark to find any systems pointed to an old system we're decommissioning and rather than showing the same IP 1,000 times I'd like to use a filter that will only show each IP source once.</p>
<p>Can somebody tell me how I can go about doing this?</p>
<p>Thanks in advance for your help.</p>
| 0non-cybersec
| Stackexchange |
I finished my custom board game table last night!. Hey everyone! I jumped on here about two weeks ago and found TheEternal792's post about his custom board game table and I felt inspired to build my own. Let me know what you think! The album is below and I've added comments to the Imgur album.
Album: http://imgur.com/gallery/juiEM
I'll be doing some traveling today, so if you have questions on the build, please leave them in the comments and I'll get to them once I settle down tonight or tomorrow.
Thanks! | 0non-cybersec
| Reddit |
Edit email address in Google Form. <p>Here's the steps I took:</p>
<ul>
<li>Made a quiz in Google Forms.</li>
<li>Enabled email address collection.</li>
<li>Sent out the quiz to twenty-five email addresses.</li>
<li>Stopped accepting responses.</li>
<li>Released the scores.</li>
</ul>
<p>However, on the last step, I was surprised to receive two "Delivery Status Notification (Failure)" messages with a DNS error (responded with code NXDOMAIN, domain name not found). While the local-part is correct, two of the the domain names were recorded incorrectly. One has two letters transposed and another has an <code>i</code> replaced with a <code>t</code>.</p>
<p>How can I fix the domain of the recorded email addresses?</p>
| 0non-cybersec
| Stackexchange |
A Whoopensocker Of A Dictionary Project. | 0non-cybersec
| Reddit |
Am I spending too much for what I need?. ###Build Help/Ready:
**Have you read the sidebar and [rules](http://www.reddit.com/r/buildapc/wiki/rules)? (Please do)**
yes
**What is your intended use for this build? The more details the better.**
Play games at 144hz mainly fortnite, league, csgo, and modern games like witcher and new games coming out.
**If gaming, what kind of performance are you looking for? (Screen resolution, framerate, game settings)**
1080p + 144hz on competitive games (on other games less fps graphic quality if ok)
**What is your budget (ballpark is okay)?**
1000 usd
**In what country are you purchasing your parts?**
Hawaii USA
**Post a draft of your potential build here (specific parts please). [Consider formatting your parts list.](http://www.reddit.com/r/buildapc/wiki/pcpp) Don't ask to be spoonfed a build (read the rules!)**.
https://pcpartpicker.com/list/JxqxfH
**Provide any additional details you wish below.**
I'll probably end up using a different monitor since the one in the list is curved.
| 0non-cybersec
| Reddit |
How do I upgrade libraries in Ubuntu?. <p>I am using Ubuntu 14.04 as a virtual machine. During installation of a previously installed library in the terminal, I found I have 274 packages not upgraded.</p>
<p>How do I upgrade them?</p>
<p>Do I have to upgrade them one by one?</p>
| 0non-cybersec
| Stackexchange |
PsBattle: Ohio State coach, Anthony Schlegel, tackles a fan trying to fun onto the field. | 0non-cybersec
| Reddit |
QML ui-toolkit on Ubuntu 12.04. <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://askubuntu.com/questions/235440/how-do-i-install-the-qml-toolkit-on-12-04">How do I install the QML toolkit on 12.04?</a> </p>
</blockquote>
<p>I am using Ubuntu 12.04 and I prefer to keep on an LTS distribution. I tried to install the QML ui-toolkit and the ppa doesn't work on my current install of Ubuntu. Will I be able to install it? Will you port the repository?</p>
<p>I don't think I will update since I work with my computer and I prefer to stick to an LTS.</p>
<p>Thank you.</p>
| 0non-cybersec
| Stackexchange |
cycle through one command's output and use in another command. <p>How can I use the output of one command - line-by-line - into another command? I know how to do this with the <code>|</code> pipe symbol, but this uses the entire output in one command. I would like to go line by line... I think I need to combine the <code>|</code> and <code>xargs</code> but not sure.</p>
<pre><code>redis-cli keys \* | redis-cli get [key would go here]
</code></pre>
| 0non-cybersec
| Stackexchange |
Rg.Plugins.Popup nuget package(1.2.0.223) giving crash for Xamarin UWP Project. <p>I have added Rg.Plugins.Popup package latest version 1.2.0.223 for Xamarin Uwp project and Init that PopUp control in App.xaml.cs file of Uwp solution.</p>
<p>Then I have create one Popup page Xaml and called it from Mainpage.xaml.cs file using method,By calling Its giving crash and debugger.Break() has been called.</p>
<pre><code>/*App.xaml.cs this file Init Popup Control*/
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
Rg.Plugins.Popup.Popup.Init();
Xamarin.Forms.Forms.Init(e);
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Load state from previously suspended application
}
// Place the frame in the current Window
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame.Navigate(typeof(MainPage), e.Arguments);
}
// Ensure the current window is active
Window.Current.Activate();
}
/*PopUp Control Xaml code*/
<?xml version="1.0" encoding="utf-8" ?>
<pages:PopupPage
x:Class="ProjectName.DashboardBrush.DashbordDistrictPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
prism:ViewModelLocator.AutowireViewModel="True">
<StackLayout
Margin="5,50,0,0"
Padding="1"
BackgroundColor="White"
HeightRequest="420"
HorizontalOptions="StartAndExpand"
VerticalOptions="Start"
WidthRequest="200">
<Frame BorderColor="Black">
<ListView
x:Name="districtListView"
CachingStrategy="RecycleElement"
ItemTapped="Handle_ItemTapped"
ItemsSource="{Binding Items, Mode=TwoWay}"
RowHeight="50"
SeparatorColor="Black"
VerticalScrollBarVisibility="Never">
<!-- Built in Cells -->
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="{Binding .}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Frame>
</StackLayout>
</pages:PopupPage>
/*Method From which Popup page is calling*/
async void FilterOptionClicked(object sender, EventArgs e)
{
var dashboardFilterView = new DashboardBrushFilter(dashboardViewModel.selectedFilters.ToArray());
await PopupNavigation.Instance.PushAsync(dashboardFilterView);
}
</code></pre>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Ubuntu 10.10 MySQL. <p>I have installed MySQL on my Ubuntu Server 10.10, all fine, database is running, I can login via mysql -uroot -ppassword or via mysql administrator from another cmoputer etc.</p>
<p>But</p>
<p>When I do :<br>
<code>chkconfig mysql --list</code><br>
<code>mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off</code> </p>
<pre><code>chkconfig mysql --list
mysql off
</code></pre>
<p>If I do :</p>
<pre><code>service mysql status
mysql start/running, process 665
</code></pre>
<p>I am confused as I thought chkconfig would be used to see what is running at what run levels and it is showing mysql as off. </p>
<p>Also, when I checked the run-level by <code>who -r</code> it was showing as <code>runlevel 2</code> (Ubuntu Server 10.10), i had to do a <code>init 3</code> and then it displayed run-level 3 </p>
<p>Any suggestions would be helpful<br>
Kind Regards </p>
| 0non-cybersec
| Stackexchange |
Don’t really know where to post this but I need HELP. This is my moms dog- rescue. She entered him into this contest and doesn’t want to ask anyone to vote so she won’t be disappointed when they don’t?☹️ If you could just click the vote button it would make my moms day(:. | 0non-cybersec
| Reddit |
Rails 4.2 DEPRECATION WARNING: `serialized_attributes` is deprecated without replacement,. <p>This warning shows up for me (for everyone) in the majority of controller tests. I know its just a warning...for now...until 5 is released. I am unsure what I need to change to comply with this deprecation. What has changed with serialized_attributes? Id like to make this warning go away and improve my code in prep for 5.0...but unsure how to proceed. Thanks.</p>
<h1>update</h1>
<p>When hitting a standard update action from a controller test...I get the error:</p>
<pre><code>@document.update_attributes(document_params)
</code></pre>
<p>in the test (condensed for this example):</p>
<pre><code> before do
@document = documents(:drivers_license)
end
def valid_params
{ name: 'Passport' }
end
it "must update document" do
put :update, id: @document, document: valid_params
assert_redirected_to documents_path
end
</code></pre>
<p>This test passes, but now in rails 4.2 puts the error: DEPRECATION WARNING: <code>serialized_attributes</code> is deprecated without replacement, and will be removed in Rails 5.0."</p>
<p>So, in this example...are the serialized_attributes "{ name: 'Passport' }"?</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Phoenix Point AMA reveals it is now an Epic Exclusive, not promptly refunding backers who paid for Steam/GOG.. | 0non-cybersec
| Reddit |
I've been drinking lately... She left me after two years. I've been constantly drunk since that. If drunk had a scale like trees does. I'd be at a [6] in drunk right now. I want to stop drinking but it makes me forget about you. I need to forget about you or you'll ruin me by being on my mind. | 0non-cybersec
| Reddit |
Why are "bro splits" bad?. Relatively new to lifting. I'm confused why "bro splits" (hitting certain groups each day, ex. chest monday, legs tuesday, etc.) are not ideal. I just learned that it's not the recommended method, but I've been working out about 2 months this way with some pretty good results. To me, it makes sense as you completely break down a muscle group and allow it to recover while you work on others. Obviously this is a very amateurish viewpoint, but can someone tell me exactly why? | 0non-cybersec
| Reddit |
Php 5.3 upgrade at Debian lenny. <p>How can I upgrade php to 5.3 version at Debian lenny from squeeze packages?</p>
| 0non-cybersec
| Stackexchange |
I'm getting a popping noise and read errors from the hard drive during a partitioning work with GParted. <p>I'm trying to move a partition from a GParted live disk, but two things started happening:</p>
<ol>
<li>The disk is making a popping/cracking noise, almost like a Geiger counter.</li>
<li>GParted says <code>Read error on /dev/sda</code>, and offers to ignore, cancel, or retry. Hitting any of the options just makes the message pop up again. In addition, Cancel and Retry cause the progress bar to advance.</li>
</ol>
<p>GParted already finished shrinking another partition without issues; if I force-reboot, will that partition still be fine?</p>
<p>What can I do to minimize data loss and (hopefully) recover from this? Is the data a lost cause, or is there hope?</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
broke my python easy_install how to fix?. <p>Any idea how to fix:</p>
<pre><code>-bash: /usr/bin/easy_install: No such file or directory
</code></pre>
<p>I kind of deleted it by accident before I realized that being behind a proxy was my issue not easy_install</p>
| 0non-cybersec
| Stackexchange |
This was a letter written 10 years ago from my father when he was in prison, He's released now and is doing great.. | 0non-cybersec
| Reddit |
Cursed Thievery. | 0non-cybersec
| Reddit |
prove tan(a+b) identity. <p>How do I prove the addition formula for <span class="math-container">$\tan(a+b)$</span>?</p>
<p>I have <span class="math-container">$$\displaystyle \frac{\sin(a+b)}{\cos(a+b)}=\frac{\sin(a)\cos(b)+\cos(a)\sin(b)}{\cos(a)\cos(b)-\sin(a)\sin(b)}$$</span> but that's way more complicated than the result I need, which is <span class="math-container">$$\displaystyle \frac{\tan(a)+\tan(b)}{1-\tan(a)\tan(b)}$$</span></p>
<p>Am I on the right track? What should I do next? </p>
| 0non-cybersec
| Stackexchange |
New Itunes connect : Submitting app for review. <p>I am trying to submit a new version of my existing app in itunes connect but I am having difficulties. So I uploaded my build like usual and upload done. I went into pre-release and saw the status processing. This was 12 hours ago, now though it has changed from processing to inactive. I ignored that and went and chose the build anyways and clicked on "Submit for Review"</p>
<p>I get an error saying <strong>You must submit your builds using Xcode 5.1.1 or later, or Application Loader 2.9.1 or later. After you’ve submitted a build, select it in the Builds section below.</strong></p>
<p>But I did submit a build using Xcode 6 seed version. I also tried to upload the build again but I get an error saying that a buid already exists. I figured I will try to delete the build, from the pre-release tab and try to upload a new build but I cant find a way to do this. </p>
<p>Makes me think it has something to do with the <strong>inactive</strong> status of the build. Is anybody else having this issue?</p>
| 0non-cybersec
| Stackexchange |
“no name”, mixed medium. | 0non-cybersec
| Reddit |
Man I may as well lend him my mp7. | 0non-cybersec
| Reddit |
Infer signs of generalized eigenvalues of $(A,B)$ for real $PSD$ $ A$ and real symmetric $B$. <p>Let $A \in \mathbb{R}^{n\times n}$ be a symmetric positive semi-definite matrix with exactly one zero eigenvalue and $B \in \mathbb{R}^{n\times n}$ be a symmetric matrix having $k$ positive eigenvalues.</p>
<p>Is it possible to infer the number of positive eigenvalues of the GEP </p>
<p>$Av = \lambda B v$ </p>
<p>given the above information? Or some bounds on the number of positive eigenvalues?</p>
<p>I assume that the generalized eigenvalues will be real in this case, but I'm not sure about the proof. Following the <a href="http://www.doc.ic.ac.uk/~ae/papers/lecture05.pdf" rel="nofollow noreferrer">classic proof</a> for the basic eigenvalue problem results in </p>
<p>$u^{*T}Bu(\lambda^* - \lambda) = 0$</p>
<p>with $u^{*T}Bu$ not necessarily being nonzero if $B$ is just a real symmetric matrix.</p>
<p>A <a href="https://math.stackexchange.com/questions/498082/consequences-of-the-properties-of-b-on-the-results-of-a-generalized-eigenvalue">similar question</a> assumes a general matrix $A$, not a real PSD one.</p>
<p>Another <a href="https://math.stackexchange.com/questions/171612/generalized-eigenvalue-problem-with-one-matrix-having-low-rank?rq=1">related question</a> points out, that the number of generalized eigenvalues equal to zero will be the same as the number of such eigenvalues of $A$, but I don't understand the argumentation.</p>
| 0non-cybersec
| Stackexchange |
My nine month old just had surgery. Check out his scar!. | 0non-cybersec
| Reddit |
Kind of depletes the point of a hospital. | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.