text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
How do you convert FLV file format to a format that Picasa recognizes (e.g. AVI, MPEG, WMV)?. <p>I use one of the Firefox plugins for embedded video to download content from Youtube and other sites. The program downloads these videos in FLV format, and I have VLC Media Player to play them, which seems to be pretty highly recommended around here.</p> <p>The downloaded video quality is as good as it gets, so the FLV file format is no problem in itself. However, my girlfriend and I use Picasa for pretty much everything since it's so easy to upload and share with friends using the GUI. I really like Picasa as a program and would prefer not to use another media organizer for these FLV videos.</p> <p>I guess there are at least 2 possible answers to this question:<br> 1) What is the best way to convert FLV format to a format that Picasa can read?<br> 2) Should I find another media organizer program to use specifically for FLV videos instead?</p> <p>Some people might say I should use VLC to play the FLVs and leave it at that. However, (and I'm no VLC expert) I can't find a way to preview video thumbnails in the way Picasa does it, and that's what I would really like to be able to do.</p>
0non-cybersec
Stackexchange
Selling my hockey equipment. A few months back, my parents asked me to clean up the garage and sell off any old stuff we didn’t need anymore. I found a box of all my old hockey equipment, and posted it up on Facebook, making sure to show the condition of each piece of equipment in the description and photos (that will be important later.) That evening, some guy messaged me: “is all of this still available? My daughter is starting hockey this weekend and I’m desperate for equipment! Can I come take a look tonight?” I told him he could come on over and have his daughter try it on. He showed up about an hour later, I let him into the garage where all the gear was laid out on a table. It was clear from the start that he didn’t know what he was doing, he kept putting the equipment on her wrong and then claiming it didn’t fit. Even when I fixed it for him, he’d keep saying “that doesn’t look right at all, take it off honey, it doesn’t fit you” despite most of the equipment fitting like a glove. Finally, he found a pair of elbow pads and pants that he admitted fit correctly. He took a closer look at the pants, and saw a small skate-cut on the leg (which of course was pictured and described in the ad) and immediately told her to take the pants off. “These pants are trash, you trying to sell my daughter ruined pants? What kind of ripoff is this?” He said, taking them off her and throwing them on the floor. I picked them up and explained that the small cosmetic damage to the pants was clearly shown in the post, I wasn’t trying to scam him at all. He told me “you should be ashamed for trying to sell damaged items to people, that’s against the marketplace rules anyways.” (Half of what gets sold on Facebook are vehicles that don’t even start, lmao.) I asked him if he was still interested in the elbow pads, which had no damage and fit his daughter. He said “I’m not wasting my time buying just one item from you, I don’t want them.” I told him “I thought you were desperate for equipment? Doesn’t she start playing this weekend?” He responded with “still not wasting my time buying just one piece of equipment from you. I’d rather go get it all somewhere else.” Without another word, they both stormed out of the garage. Hope the poor girl got some equipment somewhere.
0non-cybersec
Reddit
What is landscape and autopilot?. <p>Currently I am searching for an alternative for VMware ESXI. I came across Openstack. Now I searching and searching, but I just can't figure out what landscape and autopilot is? It is for managing or something, but what does it do and how do they interact? </p>
0non-cybersec
Stackexchange
[Build Complete] R9 290 Vapor-X / i7 4770K / Corsair 250D (Mini-ITX). My first build. Water-cooled, of course! No idea how a regular heatsink big enough for overclocking a 4770K would have fit in this case. [Finished product](http://imgur.com/a/ZZdGS) All temps are well-within reasonable ranges, especially for the notoriously hot 290. Sapphire did a great job with the cooling on the Vapor-X. It goes to 60-70C under load, with 30-40C at idle. The 4770K hovers around 25-30C at idle. [PCPartPicker part list](http://pcpartpicker.com/p/RD8fFT) / [Price breakdown by merchant](http://pcpartpicker.com/p/RD8fFT/by_merchant/) Type|Item|Price :----|:----|:---- **CPU** | [Intel Core i7-4770K 3.5GHz Quad-Core Processor](http://pcpartpicker.com/part/intel-cpu-bx80646i74770k) | $331.55 @ OutletPC **CPU Cooler** | [Cooler Master Seidon 240M 86.2 CFM Liquid CPU Cooler](http://pcpartpicker.com/part/cooler-master-cpu-cooler-rls24m24pkr1) | $89.99 @ Newegg **Motherboard** | [Asus H97I-PLUS Mini ITX LGA1150 Motherboard](http://pcpartpicker.com/part/asus-motherboard-h97iplus) | $107.24 @ Amazon **Memory** | [Kingston Blu 8GB (1 x 8GB) DDR3-1333 Memory](http://pcpartpicker.com/part/kingston-memory-khx13c9b18) | $70.99 @ Newegg **Storage** | [Samsung 840 EVO 500GB 2.5" Solid State Drive](http://pcpartpicker.com/part/samsung-internal-hard-drive-mz7te500bw) | $259.19 @ Amazon **Storage** | [Western Digital Caviar Blue 1TB 3.5" 7200RPM Internal Hard Drive](http://pcpartpicker.com/part/western-digital-internal-hard-drive-wd10ezex) | $54.98 @ OutletPC **Video Card** | [Sapphire Radeon R9 290 4GB Vapor-X Video Card](http://pcpartpicker.com/part/sapphire-video-card-100362vxsr) | $452.98 @ SuperBiiz **Case** | [Corsair 250D Mini ITX Tower Case](http://pcpartpicker.com/part/corsair-case-cc9011047ww) | $76.99 @ Newegg **Power Supply** | [EVGA 850W 80+ Gold Certified Fully-Modular ATX Power Supply](http://pcpartpicker.com/part/evga-power-supply-220g20850xr) | $109.99 @ Newegg | | **Total** | Prices include shipping, taxes, and discounts when available | $1553.90 Edit: Now that Newegg accepts BTC, I went ahead and ordered some more stuff I was thinking about adding... an 80mm fan for the back and an aftermarket northbridge heatsink.
0non-cybersec
Reddit
Snapping back to baseline in documents with facing pages. <p>Usually the baseline in LaTeX's output is exactly continuous across pages, so that lines on the following pages appear as printed "on top" of each other when a page is turned.</p> <p>But that behaviour can be disturbed by elements that have a <code>baselineskip</code> different from the main text. I encounter it rather frequently, for example</p> <ul> <li>when an element uses a smaller font size, such as in a quotation or table (at least in some style sheets), or when <code>\\[x pt]</code> is used, e.g. in a table</li> <li>when elements from packages are used that lead to unusual spacing, e.g. when <code>\vspace</code> is hardcoded in a package</li> </ul> <p>I'd like to find a way to automatically revert to the baseline when such an element has been used. For example, in the MWE below, I'm looking for a command <code>\baselinerevert</code> that automatically calculates and inserts the needed vertical skip between the tabular and the main text such that the baselines in the main text on the facing pages match.</p> <p>(In terms of Adobe's InDesign, I need the equivalent of the "align to baseline grid" setting in the paragraph settings)</p> <hr> <p>MWE:</p> <pre><code>\documentclass{scrbook} \usepackage{kantlipsum,booktabs} \begin{document} \kant[1-3] \begin{table}{\footnotesize \caption{A table that does not make much sense.} \begin{tabular}{lrr} \toprule Variable &amp; Value 1 &amp; Value 2\\\midrule A &amp; 42.0 &amp; 1.2\\ B &amp; 0.5 &amp; 2.1\\ \bottomrule \end{tabular}} \end{table} \kant[6-7] \end{document} </code></pre> <p><a href="https://i.stack.imgur.com/s2DFA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2DFA.png" alt="MWE output"></a></p>
0non-cybersec
Stackexchange
How to curve text in Word 2010?. <p>I can't find how to create curved text in Word 2010 like you could in previous versions through WordArt. The point is to have the text baseline follow some arc or circle.</p> <p>In WordArt presets, I can only find stuff that formats each letter with shadows, etc. but not their position relative to each other. Can someone give me pointers?</p>
0non-cybersec
Stackexchange
Little man is so crisp with it.
0non-cybersec
Reddit
WDYWT - 04/04.
0non-cybersec
Reddit
Load balancing without a load balancer?. <p>I have 4 nginx-powered image servers on their own subdomains which users would access at random. I decided to put them all behind a HAProxy load balancer to improve the reliability and to see the traffic statistics from a single location. It seemed like a no-brainer.</p> <p>Unfortunately, the move was a complete failure as the load balancer's 100mbit port was completely saturated with all requests now going through it.</p> <p>I was wondering what to do about this - I could get a port upgrade ($$) or return to 4 separate image servers that are randomly accessed. I thought about putting HAProxy on each image server which would in turn route to another image server if that server's nginx service was having trouble.</p> <p>What would you do? I would like to not have to spend too much additional money.</p>
0non-cybersec
Stackexchange
Evaluation of the Gamma and Digamma Functions. <p>Problem: Evaluate: </p> <blockquote> <p>$$\dfrac{1}{4}\dfrac{\Gamma(\frac{a+b+1}{2})\Gamma(\frac{1-b}{2})}{\Gamma(\frac{a+2}{2})}\bigg (\psi\bigg ( \frac{a+b+1}{2}\bigg )-\psi\bigg ( \frac{a+2}{2}\bigg )\bigg ) \bigg |_{a=0,b=1}$$</p> </blockquote> <p>This had come up while solving an integral. Upon plugging in $a=0,b=1$, I got However, this does not give the correct answer. A suggestion was to take the limit as $b\to 1$. I was unable to understand why this was done. Is it because when we cannot evaluate a function $f(x)$ at $x=a$, we take $$lim_{x\to a} f(x)$$</p> <p>Could somebody please tell me how to solve this problem? Many thanks in advance!</p>
0non-cybersec
Stackexchange
Binary Relations - Set Theory. <p>This is an assignment question which I had - the instructor did NOT post solutions to these problems. Although they were not tested/marked, I would like assistance on these.</p> <p>The following questions are about binary relations on the set A = {1, 2,..., n}.</p> <p>(1) Suppose R is a relation on A containing r elements. Find an upper bound M on the number of elements in the reflexive closure of R, and prove that your bound is as good as possible by giving an example of a relation R whose reflexive closure has exactly M elements.</p> <p>(2) Show that the transitive closure of the relation $R_1 = \{(1, 2),(2, 3),..., (n - 1, n), (n, 1)\}$ is the universal relation $A \times A$.</p> <p>(3) What is the transitive closure of the relation $R_2 = \{(1, 2), (2, 3),..., (n - 1, n)\}$?</p> <p>(4) Prove that $R_1$ is the smallest binary relation whose transitive closure is $A \times A$.</p>
0non-cybersec
Stackexchange
Feral kitty named jeepers.
0non-cybersec
Reddit
Elizabeth Warren: American Justice Is 'Rigged' In Favor Of The Rich.
0non-cybersec
Reddit
Finitely generated $\mathbb{Z}/p^n\mathbb{Z}$-algebra. <p>Let <span class="math-container">$p$</span> be a prime number, let <span class="math-container">$n$</span> be a positive integer. Let <span class="math-container">$B=\oplus_{d=0}^\infty B_d$</span> be a finitely generated graded <span class="math-container">$\mathbb{Z}/p^n\mathbb{Z}$</span>-algebra. Suppose that there exist integers <span class="math-container">$N$</span> and <span class="math-container">$M$</span> such that <span class="math-container">$B\otimes \mathbb{F}_p$</span> is generated over <span class="math-container">$\mathbb{F}_p$</span> by elements of degree at most <span class="math-container">$N$</span> with relations in degree at most <span class="math-container">$M$</span>. Is it true that <span class="math-container">$B$</span> is generated by its elements of degree at most <span class="math-container">$N$</span> with relations of degree at most <span class="math-container">$M$</span>?</p> <p>I think it should be true by Nakayama's lemma but I am not sure exactly how to apply it.</p>
0non-cybersec
Stackexchange
[WP] As the universe is dying, an immortal man is on a journey to find an immortal snail..
0non-cybersec
Reddit
The Witcher 3: Wild Hunt - Killing Monsters cinematic trailer.
0non-cybersec
Reddit
How to set permissions for Android Bluetooth. <p>I'm new to Android development. I'm trying to get a simple HelloWorld app going on my (rooted) phone - and the app is trying to enable Bluetooth.</p> <p>I've set the Bluetooth permissions in my manifest is as follows, but I'm getting a Permission Denial exception when I try to run the application on my phone via Eclipse:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.helloandroid" android:versionCode="1" android:versionName="1.0"&gt; &lt;application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true" android:permission="android.permission.BLUETOOTH_ADMIN"&gt; &lt;activity android:name=".HelloAndroid" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt; &lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt; &lt;uses-sdk android:targetSdkVersion="7" android:minSdkVersion="5"&gt;&lt;/uses-sdk&gt; &lt;/manifest&gt; </code></pre> <p>Is there something obvious I'm missing?</p>
0non-cybersec
Stackexchange
Wanna Know Which Type Of Roommate You Are? Then Take This Quiz.
1cybersec
Reddit
The 0.1%.
0non-cybersec
Reddit
Unity - how to make material double sided. <p>Search for the issue gives a number of solutions, but they don't work for some reason in mine Unity3D 5.4. Like <a href="https://stackoverflow.com/questions/13776151/camera-inside-a-sphere">camera inside a sphere</a></p> <p>I do not see <code>cull</code> and/or <code>sides</code> in material in Unity editor. In C# </p> <pre><code>rend = GetComponent&lt;Renderer&gt;(); mater = rend.material; rend.setFaceCulling( "front", "ccw" ); mater.side = THREE.DoubleSide; </code></pre> <p>gives no such <code>setFaceCulling</code> and <code>side</code> property.</p> <p>How to make material double sided?</p>
0non-cybersec
Stackexchange
Can I burn Ubuntu 16 in a DVD with Ubuntu 14?. <p>What I have is a DVD with Ubuntu 14 burnt via Brasero. What I want is Burn Ubuntu in this same DVD. I'm guessing it will have a menu like the boot loader menu where I can choose which distro I want to install. is that possible?</p>
0non-cybersec
Stackexchange
How to launch 64-bit powershell from 32-bit cmd.exe?. <p>I know it's a weird question but I am locked into a third party vendor which launches a 32-bit cmd.exe on a target 64-bit Windows Server 2008 R2 clustered server. From here I want to launch a 64-bit PowerShell window and run a script.</p> <p>Here's my test:</p> <p><code>powershell.exe "Get-Module -ListAvailable| Where-Object {$_.name -eq 'FailoverClusters'}"</code></p> <p>If I run this from a 32-bit cmd.exe I get nothing returned. If I run from a 64-bit cmd.exe I get:</p> <pre><code>ModuleType Name ExportedCommands ---------- ---- ---------------- Manifest FailoverClusters {} </code></pre> <p>Any ideas on what I can do to invoke a 64-bit powershell script from a 32-bit cmd shell?</p>
0non-cybersec
Stackexchange
remote connection from Linux to Vista. <p>I wanna use my windows desktop on Linux RedHat, I installed RDesktop on my linux,and set remote connections on windows Vista,but it doesn't work. I tried remote connection between my linux &amp; my friend's Mac,it worked out; think some settings/services needed on windows,maybe?! :-/ any ideas? cheers</p>
0non-cybersec
Stackexchange
Hubble peers back 13.2 billion years, finds 'primordial' galaxies .
0non-cybersec
Reddit
How to Install all the default packages by group Using the Local YUM repo. <p>I created a Local HTTP YUM repo. I can install the individual packages. But is there a way to install packages in the available groups?</p> <p>When I tried to install using groups, it give me this message:</p> <pre><code>[root@mainserver ~]# yum groupinstall "Development Tools" Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Group Process Warning: Group Development Tools does not exist. </code></pre>
0non-cybersec
Stackexchange
Fix image in pst-fractal. <p>I have worked only in tikz, I want to make an image of 600 px by 300 px so that the edge of the fractal image is a little white blurred and the background of the box has the same color as the attached image.</p> <pre><code>\documentclass{standalone} \usepackage{pst-fractal} \begin{document} \begin{pspicture}(-20,-6)(4,6) \psframe*[linecolor=cyan](-4,-4)(4,4) \psSier[unit=0.25,n=4,fillstyle=solid,fillcolor=yellow,linecolor=blue] \end{pspicture} \end{document} </code></pre> <p><a href="https://i.stack.imgur.com/OPQjf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OPQjf.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
Open.prof files by snakeviz. <p>I have few cProfile files which need to be opened in chrome.</p> <p>The command to open cProfile files in chrome is <code>snakeviz fileName.prof</code>.</p> <p>If i try to double click the .prof file &amp; try to make it open by chrome, it downloads the file.</p> <p>I want to always execute <code>snakeviz fileName.prof</code> command on every .prof file when double clicked.</p> <p>I am currently running Ubuntu 16.04 LTS.</p> <p>P.S. I have tried to edit dconf-editor settings but it did not seem to work.</p>
0non-cybersec
Stackexchange
Why just why.
0non-cybersec
Reddit
What would be the best way to name a forest domain?. Hello, I am trying to plan the forest domain name for a small business. However, the company already has their root domain of Company.com and a sub domain of service.company.com in a DNS server and is currently serving web requests. They want to have an internal domain, but since they already are using the root in a non-windows dns server, what would be the best way to name an internal AD forest and break it up into subdomains? I was thinking internal.company.com as the forest root and ad.internal.company.com as the subdomain for AD. Is this incorrect thinking? Is there a better way to go about this?
0non-cybersec
Reddit
Inserting an image on ALL pages of a word document. <p>I have the following code:</p> <pre><code> Sub ImageInsert() Application.ScreenUpdating = False Dim Rng As Range, Shp As Shape, StrImg As String StrImg = "filepath" Set Rng = Selection.Range Rng.Collapse Set Shp = ActiveDocument.InlineShapes.AddPicture(FileName:=StrImg, _ SaveWithDocument:=True, Range:=Rng).ConvertToShape With Shp .LockAspectRatio = True .RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin .Left = wdShapeRight .RelativeVerticalPosition = wdRelativeVerticalPositionMargin .Top = wdShapeBottom .WrapFormat.Type = wdWrapTopBottom End With Set Rng = Nothing: Set Shp = Nothing Application.ScreenUpdating = True End Sub </code></pre> <p>The question is, that i want to insert the image on ALL of the pages in the document, instead of just the page of selection. I've tried changing the range, but it doesn't seem to work.</p> <p>Thanks in advance!</p>
0non-cybersec
Stackexchange
Microsoft Has ‘a Lot to Prove’ With PC Gaming.
0non-cybersec
Reddit
Sort spills to tempdb due to varchar(max). <p>On a server with 32GB we are running SQL Server 2014 SP2 with a max memory of 25GB we have two tables, here you find a simplified structure of both tables:</p> <pre><code>CREATE TABLE [dbo].[Settings]( [id] [int] IDENTITY(1,1) NOT NULL, [resourceId] [int] NULL, [typeID] [int] NULL, [remark] [varchar](max) NULL, CONSTRAINT [PK_Settings] PRIMARY KEY CLUSTERED ([id] ASC) ) ON [PRIMARY] GO CREATE TABLE [dbo].[Resources]( [id] [int] IDENTITY(1,1) NOT NULL, [resourceUID] [int] NULL, CONSTRAINT [PK_Resources] PRIMARY KEY CLUSTERED ([id] ASC) ) ON [PRIMARY] GO </code></pre> <p>with following non-clustered indexes:</p> <pre><code>CREATE NONCLUSTERED INDEX [IX_UID] ON [dbo].[Resources] ( [resourceUID] ASC ) CREATE NONCLUSTERED INDEX [IX_Test] ON [dbo].[Settings] ( [resourceId] ASC, [typeID] ASC ) </code></pre> <p>The database is configured with <code>compatibility level</code> 120.</p> <p>When I run this <a href="https://www.brentozar.com/pastetheplan/?id=HJZY5j3f4" rel="nofollow noreferrer">query</a> there are spills to <code>tempdb</code>. This is how I execute the query:</p> <pre><code>exec sp_executesql N' select r.id,remark FROM Resources r inner join Settings on resourceid=r.id where resourceUID=@UID ORDER BY typeID', N'@UID int', @UID=38 </code></pre> <p>If don't select the <code>[remark]</code> field no spills occurs. My first reaction was that the spills occurred due to the low number of estimated rows on the nested-loop operator.</p> <p>So I add 5 datetime and 5 integer columns to the settings table and add them to my select statement. When I execute the query no spills are happening.</p> <p>Why are the spills only happening when <code>[remark]</code> is selected? It has probably something to do with the fact that this is a <code>varchar(max)</code>. What can I do to avoid spilling to <code>tempdb</code>?</p> <p>Adding <code>OPTION (RECOMPILE)</code> to the query makes no difference.</p>
0non-cybersec
Stackexchange
Router/Modem needs power-cycle every time wireless user attempts to connect. <p>My home network and internet configuration consists of a Motorola SB 5102 model internet modem (to get internet), which is connected to a D-Link AC1000 wireless router, that provides wireless internet to my whole household- and 2 wired desktop workstations in the office where the router and modem are located. </p> <p>Our internet works fine on both wireless and wired at any given time, and on any given device- all but one exception. One of the people that I live with recently purchased a Lenovo laptop, around the same time that I upgraded to my current wireless router. Everything was fine at first, but then one day when the user of said laptop attempted, her laptop was unable to connect, and also could not tell what the problem was other than it was not caused on the end of her laptop. After some testing on why this happened, I turned off the power strip that both the modem and router were attached too. When I turned it back on, I was able to get internet to every device previously connected (A Wired Windows 7 Desktop, A Nintendo 3DS, and an iPod Touch), which all worked even when the other laptop computer couldn't. After the power cycle, however, this laptop was successfully able to connect.</p> <p>After this initial connectivity problem, Every time this user attempts to connect, the connection fails and I need to cycle BOTH devices- Router as well as modem. If i only cycle the one, It doesn't work, which I find weird- This says that the problem is caused by both the router AND the modem, and I have been using the modem for a good 2 years with no problems. Releasing the connection from my router's online settings causes the problem to be resolved about 20 percent of the time, but cycling the devices works best.</p> <p>It can be very irritating if I'm, say, talking with a client over skype, and I need to disconnect just so that someone else can connect as well. Is there any way of fixing this?</p>
0non-cybersec
Stackexchange
Turn off tracking in entity framework model first. <p>I'm tring to receive an entity and then update it, but I want to get it with no tracking, so I can attach it back to the context.</p> <p>I have the <code>EntityFramework.dll</code> referenced (4.1). I generated the database from the model. (not code-first).</p> <p>Get user:</p> <pre><code>db.Users.MergeOption = MergeOption.NoTracking; IQueryable&lt;User&gt; query = db.Users;//.AsNoTracking(); //&lt;-- apparently, this is code-first only. return query; </code></pre> <p>Update user:</p> <pre><code>db.Users.Attach(user); //error here. ObjectStateEntry entry = db.ObjectStateManager.GetObjectStateEntry(user); entry.SetModifiedProperty(propertyName); db.SaveChanges(); return user; </code></pre> <p>Error:</p> <blockquote> <p>An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key.</p> </blockquote> <p>I call the method like this:</p> <pre><code>var user = userRepository.GetUsers().FirstOrDefault(u =&gt; u.UserId == userId); user.Identifiers.Add(someIdent); userRepository.UpdateUser(user); </code></pre>
0non-cybersec
Stackexchange
Omotesando Back Alley by AGK42 - Photograph - 4896 × 3264.
0non-cybersec
Reddit
Is it possible to store python objects (specifically sklearn models) in memory mapped files?. <p>I have several large objects (sklearn models) that take up a lot of memory, and I want to share them between several process. is there a way to do this?</p> <ul> <li>It has to be the "live" object, and not a serialized version</li> <li>I know that there's a memory mapped version of numpy array, which are responsible for a significant part of the model memory - but using them will require significant changes to the sklearn source code, which would be hard to maintain </li> </ul>
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
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
search for a specific file type with ack. <p>How can I use ack to search in files of a specific file type.</p> <p>For example</p> <pre><code>ack -f .scss blah acl -f .rb blah </code></pre> <p>Obviously the above does not work but how can I do this with ack?</p>
0non-cybersec
Stackexchange
Earthbound Angel, ink, 11x14”.
0non-cybersec
Reddit
How To Burn Down A Datacenter - Scroll down to "Dr Monkey,...".
0non-cybersec
Reddit
I'm having a laproscopic cystectomy next week, and frankly I'm terrified.. Never-used account because can't make a throwaway via mobile for some reason.... Anyway, I have a 6cm cyst in my left ovary. I am going under the knife next week and would love to hear from any PCOS ladies that have had the procedure. I haven't had surgery since getting my tonsils out when I was twelve, so even though I am having an outpatient procedure it's extremely scary for me. I know this surgery is pretty common and routine though, so maybe twoX can help... Specifically: - how much did your surgery cost? - what should I expect afterwards? - is there anything I should know that you wish you knew, before, day of, or after?
0non-cybersec
Reddit
Needing help with a router.. I'm not too sure that this is the right place to ask but I recently bought a router off of ebay and I have been having trouble logging into the admin portal (even after a factory reset) the factory uname/pw does not work at all. I have already tried brute forcing with hydra but that was to no avail and the seller on ebay said he has no idea why it wouldn't be the default credentials. Does anyone here know of any vulnerabilities that would allow me to get past authentication? Said router is a Netgear MBR1515.
1cybersec
Reddit
Allow web users to write files into folder. <p>I have a web site running on Ubuntu server with Nginx installed and I made profile picture upload in Django. However when I try to upload a new profile picture it says</p> <blockquote> <p>[Errno 13] Permission denied: '/home/xyz/djangodir/media/profile_pics/profilepicxyz.png'</p> </blockquote> <p>How can I allow users to write new files into the <code>/profile_pics</code> folder?</p> <p>I am a beginner in Ubuntu and Nginx, so it might be a really easy solution.</p> <p>My intuition is that it will be done using <code>chmod</code> or <code>chown</code> commands. </p>
0non-cybersec
Stackexchange
How to make it blindingly obvious which window is active. <p>I use keyboard shortcuts rather heavily. I have a dual monitor setup. I also have virtuawin so I can switch between desktops.</p> <p>The result of all this is that sometimes I will start using keyboard shortcuts in the wrong window. This can have disastrous effects. For example, what if I think I'm in firefox and use Ctrl-L to go to the location bar, but instead I end up deleting a line in Visual Studio 2008 (without noticing it?!). This could be very, very bad.</p> <p>Is there a way that I can make it blindingly obvious which window is active? For example, could I find some tool which will gray out any inactive windows?</p> <p>I would be willing to use autohotkey or a variety of other advanced tools to set up a solution.</p> <p>Thanks.</p>
0non-cybersec
Stackexchange
How to recover forgotten remote windows RDP password?. <p>I had found this example: <a href="http://www.nirsoft.net/utils/remote_desktop_password.html" rel="noreferrer">http://www.nirsoft.net/utils/remote_desktop_password.html</a></p> <p>But it turns out it doesn't seem to work with the "newer" RDP save files.</p> <p>Anybody have any tips to retrieve my lost RDP password?'</p> <p>If I could simply change the ip address and use the same (hidden) login information for this one RDP file I would be saved! :S</p>
0non-cybersec
Stackexchange
Rails - See generated SQL queries in Log files. <p>Is there a way to see all generated queries from rails in production environment like you can in development?</p>
0non-cybersec
Stackexchange
Welcome page in Visual Studio Code How to get it. <p>I just downloaded <a href="https://code.visualstudio.com/" rel="noreferrer">Visual Studio Code</a> and started playing with it. </p> <p>The you tube <a href="https://youtu.be/DmbvejtiyNo?t=133" rel="noreferrer">video here</a> recommends Quick Tour Videos. </p> <p>So the question is how can I see the welcome page on Visual Studio code. When ever I open now, I am not seeing it. Probably when you open for the first time, you are shown this. But once you close that how do I reopen it?</p>
0non-cybersec
Stackexchange
Men of reddit: What type of compliments do you love receiving? How can we make you blush?. What can the ladies say or do to make you blush for days? I heard men hate being called "cute" so tell us how we can make you feel awesome!
0non-cybersec
Reddit
Terminal not working, resource unavailable. <p>I had a terminal session open and after I woke my laptop up I cannot use the terminal nor create new sessions.</p> <p>The error I get on the opened session is:</p> <pre><code>-bash: fork: Resource temporary unavailable </code></pre> <p>The error when trying to open new terminal:</p> <pre><code>[forkpty: Resource temporary unavailable] [Could not create a new process and open a pseudo-tty.] </code></pre> <p>Looking deeper, I was able to open the <em>Activity Monitor</em> and I found that there was a very large number (thousands) of processes linked to the same application, <code>VShildScanner</code>. From here, I wasn't able to kill those processes. </p> <p>I tried to restart or shutdown the system, since I wasn't able to do anything else, but those also failed. I was only able to power cycle.</p> <p>My thought was to run a <code>killall</code> from the terminal but I can not get a functioning shell / terminal window once the system is blocked. </p> <p>Are there better ways to handle such a situation when processes grow out of proportions?</p>
0non-cybersec
Stackexchange
A question about numbers. <p>Let $n=p_1^{\alpha_1}\cdots p_r^{\alpha_r}$ be the prime decomposition of the integer $n$. Define $$n' = n \sum_{i=1}^r \frac{\alpha_i}{p_i}\quad\text{and}\quad\Omega(n) = \sum_{i=1}^r \alpha_i\quad\text{and}\quad\omega(n) = r.$$ Let $a,b$ be relatively prime, i.e., $\gcd(a,b)=1$, and let $c = a+b$. Suppose that $$\Omega(c) = \min\bigl\{\Omega(a),\Omega(b),\Omega(c)\bigr\}.$$ Is it true that $$\Omega(\gcd(a,a'))+\Omega(\gcd(b,b'))+\Omega(\gcd(c,c')) \le \Omega(ab)-1?$$ From this it would follow that $$\min\bigl\{\Omega(a),\Omega(b),\Omega(c)\bigr\} \le \omega(abc) - 1.$$</p> <p>Edit: From the answer given by Kevin Buzzard, one can see, that the first inequality is wrong. It is unclear to me however, if the second inequality is also wrong.</p>
0non-cybersec
Stackexchange
Find the value of $W(y_1,y_2)(5)$.. <p>I have to solve the following exercise:</p> <p>If $y_1$ and $y_2$ are linearly independent solutions of $ty'' + 2y' + te^ty = 0$ and if $W(y_1,y_2)(1) = 2$, find the value of $W(y_1,y_2)(5)$. ($W(y_1,y_2)(t_0)$ denotes the value of the Wronskian at $t = t_0$.)</p> <p>I know that if $y_1$ and $y_2$ are linearly independent solutions of $$y'' + p(t)y' + q(t)y = 0$$ then the Wronskian is given by $W(y_1,y_2)(t_0) = c\exp[-\int p(t)dt]$. So I think I need to rewrite the original differential equation such that $y''$ has a coefficient of $1$. </p> <p>Since I can't think of a way to do that now, I looked at the regular expression of the Wronskian: $W(y_1,y_2)(1) = y_1(1)y_2'(1) - y_1'(1)y_2(1) =2$. I tried to find more about this expression by looking at the differential equation at $t = 1$; $y''+ 2y' + ey = 0$, but this doesn't really get me anywhere either. </p> <p>So my question is: How do I find the value of $W(y_1,y_2)(5)$?</p>
0non-cybersec
Stackexchange
Setting up SVN server on Windows 7. <h1>Short</h1> <p>My OS is: Windows 7 Ultimate and IDE is Netbeans. Want to work with 2-3 devs on PHP projects. After research I found that it's possible with GIT. Found <a href="http://gitstack.com/" rel="nofollow noreferrer">this</a> solution. But it's installing apache server. (I don't need any web server: I already have one - IIS7)</p> <h1>Question</h1> <p>Is there any free solution (I mean not only GIT, maybe something else) that will work with Netbeans and allows to work with group of developers?</p> <h1>Detailed</h1> <p>I told with some devs. They suggested to use Github or BitBucket instead of running own git server. <strong>But</strong> </p> <ul> <li><p>first off, Github doesn't allow private projects for free, bitbucket allows but limited users.</p></li> <li><p>second off, what if my project is confidential, and I don't want to upload it to any public project server?</p> <p>I want to find some solution that will work ONLY for small dev group. So want to serve my own repo.</p></li> </ul> <p>Some of hirep guys suggested, to install tortoisesvn. But how to give access to other users over internet to repo created by Tortoise?</p> <p>Any suggestions? </p> <p>Thx in advance.</p>
0non-cybersec
Stackexchange
Dwayne "The Rock" Johnson and his father Rocky Johnson, 1981.
0non-cybersec
Reddit
PHP get URI parts of URL. <p>I have 2 strings and substitute them, so I get just URI parts.</p> <pre><code>$base_url = 'http://localhost/project/'; $url = 'http://localhost/project/controller/action/param1/param2'; </code></pre> <p>I am checking for URI parts.</p> <pre><code>$only_segments = str_replace($base_url, '', $real_url); </code></pre> <p>Basicly I do: <code>{url} - {base_url} = {only_segments}</code></p> <p>Then I can get segments: </p> <pre><code>$parts = explode('/', $only_segments); print_r($parts); </code></pre> <p><strong>Question:</strong></p> <p>Am I on right path or can it be done easier with <strong>$_SERVER['REQUEST_URI']</strong> ?</p> <p><em>Note: I don't want <code>project</code> in URI parts, it is sub-folder of localhost.</em></p>
0non-cybersec
Stackexchange
how to make use of t&#39; in tx = Ax vs general case. <p><a href="https://i.stack.imgur.com/sxW7S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sxW7S.png" alt="Q1"></a></p> <p>I ran into this problem on my differential equations homework set. Previously, the questions were in the form x' = Ax, and they were relatively straight forward and easy to complete.</p> <p>I was gifted a hint that this problem revolves around variable coefficients.</p> <p>I'm uncertain how to approach this problem.</p> <p>My guess is we work backwards from the eigenvalue, to acquire r. And we can get the equations in terms of those variables? Thank you</p>
0non-cybersec
Stackexchange
Solution for Summation of $\cos^2x$. <p>Can you give me the solution for the summation $$ \sum_{n=0}^{\infty} \cos^2(\pi n) $$</p> <hr> <p>Edit: Please give me the explanation of how it is calculated and also final answer in integers.</p>
0non-cybersec
Stackexchange
Why is git not using identity set in ssh config file?. <p>I am trying to connect to my local <a href="https://gitea.io/en-us/" rel="nofollow noreferrer">Gitea</a> server. I have set it up to use the integrated SSH server on port 2222. I am running Windows. Gitea is running fine.</p> <p>Now I want to connect using <a href="https://cygwin.com/git.html" rel="nofollow noreferrer">Cygwin's git</a>. For testing the connection to my repository I am using the <a href="https://superuser.com/a/833286/374087">ls-remote</a> command which works fine if I use the <a href="https://git-scm.com/docs/git#git-codeGITSSHCOMMANDcode" rel="nofollow noreferrer"><code>GIT_SSH_COMMAND</code></a> option like this:</p> <pre><code>GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa" git ls-remote --exit-code -h ssh://username@localhost:2222/username/Repo.git </code></pre> <p>Next I want to simplify life using <code>~/.ssh/config</code>:</p> <pre><code>host gitea HostName localhost Port 2222 IdentityFile ~/.ssh/id_rsa User username </code></pre> <p>However, this does fail with error <code>Unable to open connection</code>:</p> <pre><code>git ls-remote --exit-code -h ssh://gitea/username/Repo.git </code></pre> <p>Problem: <code>IdentityFile</code> is not applied. This works:</p> <pre><code>GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa" git ls-remote --exit-code -h ssh://gitea/username/Repo.git </code></pre> <p>I am certain though, that my <code>~/.ssh/config</code> is correct, because connecting via directly <code>ssh -vv gitea</code> works. Output (extract):</p> <pre><code>[...] debug1: Connecting to localhost [::1] port 2222. debug1: Connection established. [...] debug1: Offering public key: RSA SHA256:XXX /home/username/.ssh/id_rsa debug2: we sent a publickey packet, wait for reply debug1: Server accepts key: pkalg ssh-rsa blen 535 debug2: input_userauth_pk_ok: fp SHA256:XXX debug1: Authentication succeeded (publickey). Authenticated to localhost ([::1]:2222). [...] </code></pre> <p>So why is <code>git</code> not using <code>IdentityFile</code> from <code>~/.ssh/config</code>?</p>
0non-cybersec
Stackexchange
How do you get tickets for movies at Sundance/Cannes film festivals? Is it possible for someone in the general public?. I have always wanted to go to such events but know relatively little about the process of getting tickets.
0non-cybersec
Reddit
Bootable Usb Thumb Drive. <p>I have a 'gotcha' type question. I want to make a Kali Linux bootable usb thumb drive on Mac. What would happen if I take it out after I boot into Kali? The reason I ask is because my wifi adapter I use for injection takes up 2 usb ports on my Mac! This means if I live boot and have to keep the usb plugged up, I wont be able to plug up my wifi adapter to use monitor mode because my mac only has 2 usb ports. I asked this question before and someone suggested a <code>permanent install</code>. After a google the term that came up was <code>dual boot</code>. Is this the answer I am looking for?</p>
0non-cybersec
Stackexchange
Maui beach tree at sunset [OC] [2000x3000].
0non-cybersec
Reddit
A 10 year study found some pigeons find their way around Britain by following roads and railways even turning off at particular junctions.
0non-cybersec
Reddit
Oh Facebook..
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
How do you prevent broadcast storms due to this malicious act?. <p>A malicious user puts a cross-over cable connecting two ports on the wall to each other, causing the traffic to loop straight back to the switch and the network came down.</p> <p>Any ideas on what to do about this? I'm not sure what to think about the entire situation.</p> <p>edit: I should note spanning tree was enabled but I don't know what BPDU guard is now that I'm Google Researching.</p>
1cybersec
Stackexchange
A question on primes and equal products. <p>Is the following statement true; "For any odd prime number $p$ , any set of $p-1$ consecutive integers can not be partitioned into two subsets such that the elements of the two sets have equal product." ( I think I read somewhere that Erdos proved it but now I can not remember where I read so , I can only prove the statement for prime of the form $ 4k+3$ , any complete solution or link would be very helpful)</p>
0non-cybersec
Stackexchange
confused in the term &quot;closed&quot; in closed subgroup. <p>well, In Brian C Halls Book, I am not getting the definition of Matrix Lie group, as he says : A matrix Lie Group is any subgroup $G$ of $GL_n(\mathbb{C})$ with the following property: If $A_m$ is any sequence of matrix in $G$ and and $A_m$ converges to $A$ then either $A\in G$ or $A$ is not invertible. well, That may happen true, but after that page he gave an example of a subgroupof $GL_n(\mathbb{C})$ which is not closed hence not a matrix lie group! could any one tell me clearly what is the definition?</p>
0non-cybersec
Stackexchange
philosophy statistics identity null hypothesis. <p>Many companies are experimenting with “flex-time,” allowing employees to choose their schedules with broad limits set by management. Among other things, flex-time is supposed to reduce absenteeism. </p> <p>One firm knows that in the past few years, employees have averaged 6.3 days off from work (apart from vacations). This year the firm introduces flex-time. Management chooses a simple random sample of 100 employees to follow in detail, and at the end of the year, these employees average 5.5 days off from work, and the standard deviation is 2.9 days. </p> <p>What is the null hypothesis? </p> <p>(A) The average days off work for the employees in the sample is different from the average days off work for the employees overall.</p> <p>(B) The average days off work for the employees in the sample is the same as the average days off work for the employees overall.</p> <p>I think it would be B but I am not sure. I do not really understand null hypothesis. Would it be the contrary of what he is trying to prove?</p>
0non-cybersec
Stackexchange
Failed to add new connection: (2) A &#39;wireless&#39; setting with a valid SSID is required if no AP path was given. <p>I'm currently trying to share a wireless network from arch-linux. There is a button in the network settings that should allow me to do it:</p> <p><a href="https://i.stack.imgur.com/WZZJw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WZZJw.png" alt="Network settings &quot;Use as Hotspot...&quot;"></a></p> <p>I hit the "Turn On" button as that's exactly what I'm looking for!</p> <p><a href="https://i.stack.imgur.com/YjaiS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YjaiS.png" alt="Wi-Fi Hotspot popup Turn On"></a></p> <p>But in the terminal with the following command:</p> <pre><code>$ sudo journalctl -xef Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.8790] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.8928] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.8967] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9001] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9011] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9019] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9029] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9037] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9046] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9055] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch NetworkManager[477]: &lt;info&gt; [1478176793.9064] audit: op="connection-add-activate" pid=12673 uid=1000 result="fail" reason="A 'wireless' setting with a valid SSID is required if no AP path was given." Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. Nov 03 08:39:53 zbookarch gnome-control-c[12673]: Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given. </code></pre> <p>There's some doc here and there I'm still reading, but I haven't found anything concerning this error yet other than the exact error message in some source code here:</p> <p><a href="https://github.com/lcp/NetworkManager/blob/master/src/nm-device-wifi.c#L1211" rel="nofollow noreferrer">https://github.com/lcp/NetworkManager/blob/master/src/nm-device-wifi.c#L1211</a></p> <p>A friend tested on Fedora and it worked out of the box, he found an <code>ESSID</code> setting that matches his created wifi here:</p> <pre><code>/etc/sysconfig/network-scripts/ifcfg-Hotspot </code></pre> <p>But I don't have this path on Arch Linux.</p> <p>there is <a href="https://wiki.archlinux.org/index.php/Software_access_point" rel="nofollow noreferrer">this Software_access_point wiki page on arch</a> that may contain some information on how to create a hotspot. I'll follow that later, but if someone has some information on the error, that'd be great :)</p> <p>My network card should be compatible:</p> <pre><code>$ iw list Wiphy phy0 ... Supported interface modes: * IBSS * managed * AP * AP/VLAN * monitor * P2P-client * P2P-GO * P2P-device </code></pre> <p>(Requires <code>AP</code>)</p> <pre><code>$ lspci -k | grep -A 3 -i network 3d:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b) Subsystem: Intel Corporation Dual Band Wireless-AC 7260 Kernel driver in use: iwlwifi Kernel modules: iwlwifi </code></pre> <p><code>iwlwifi</code> can be found in <a href="https://wireless.wiki.kernel.org/en/users/Drivers" rel="nofollow noreferrer">the following list</a>:</p> <pre><code>| Driver | Manufacturer | cfg80211 | AP | IBSS | mesh | monitor | PHY modes | Buses | |----------------------------------------------------|---------------------|----------|---------|------|------|---------|------------|--------------------------| | iwlwifi | Intel | yes | yes (6) | yes | no | yes | A/B/G/N/AC | PCI-E | </code></pre> <p>It really looks like it supports AP.</p> <h2>first attempt</h2> <p>I tried using <a href="https://github.com/prahladyeri/hotspotd" rel="nofollow noreferrer">hotspotd</a></p> <p>I created a python2.7 virtualenv and installed <code>hotspotd==0.1.4</code>, then I installed <a href="https://wireless.wiki.kernel.org/en/users/Documentation/hostapd" rel="nofollow noreferrer">hostapd</a> and <code>dnsmasq</code>.</p> <pre><code>$ sudo pacman -S hostapd $ mkvirtualenv -p $(which python27) hotspot $ workon hotspot $ pip install hotspotd==0.1.4 $ sudo hotspotd -h usage: hotspotd [-h] [-v] {start,stop,configure} A small daemon to create a wifi hotspot on linux positional arguments: {start,stop,configure} optional arguments: -h, --help show this help message and exit -v, --verbose $ sudo hotspotd configure Verifying connections Wifi interface found: wlp61s0 Network interface found: enp0s25: Enter an IP address for your ap [192.168.45.1] : Enter SSID [joe_ssid] : Enter 10 digit password [1234567890] : created hostapd configuration: run.conf {'wlan': 'wlp61s0', 'SSID': 'joe_ssid', 'ip': '192.168.45.1', 'netmask': '255.255.255.0', 'password': '1234567890', 'inet': 'enp0s25:'} Configuration saved $ sudo hotspotd start -v command: ps aux |grep hostapd |grep -v grep Verifying interfaces command: ifconfig done. created interface: mon.wlp61s0 on IP: 192.168.45.1 command: ifconfig wlp61s0 up 192.168.45.1 netmask 255.255.255.0 wait.. command: sleep 2 command: ps aux |grep dnsmasq |grep -v grep command: ps aux |grep hostapd |grep -v grep enabling forward in sysctl. command: sysctl -w net.ipv4.ip_forward=1 net.ipv4.ip_forward = 1 creating NAT using iptables: wlp61s0&lt;-&gt;enp0s25: command: iptables -P FORWARD ACCEPT command: iptables --table nat --delete-chain command: iptables --table nat -F command: iptables --table nat -X command: iptables -t nat -A POSTROUTING -o enp0s25: -j MASQUERADE command: iptables -A FORWARD -i enp0s25: -o wlp61s0 -j ACCEPT -m state --state RELATED,ESTABLISHED command: iptables -A FORWARD -i wlp61s0 -o enp0s25: -j ACCEPT command: iptables -A OUTPUT --out-interface wlp61s0 -j ACCEPT command: iptables -A INPUT --in-interface wlp61s0 -j ACCEPT running dnsmasq command: dnsmasq --dhcp-authoritative --interface=wlp61s0 --dhcp-range=192.168.45.20,192.168.45.100,255.255.255.0,4h running hostapd wait.. command: sleep 2 command: hostapd -B /home/gableroux/.virtualenvs/hotspot/lib/python2.7/site-packages/hotspotd/run.conf Configuration file: /home/gableroux/.virtualenvs/hotspot/lib/python2.7/site-packages/hotspotd/run.conf Could not read interface wlan0 flags: No such device nl80211: Driver does not support authentication/association or connect commands nl80211: deinit ifname=wlan0 disabled_11b_rates=0 Could not read interface wlan0 flags: No such device nl80211 driver initialization failed. wlan0: interface state UNINITIALIZED-&gt;DISABLED wlan0: AP-DISABLED hostapd_free_hapd_data: Interface wlan0 wasn't started hotspot is running. </code></pre> <p>I don't know why that <code>wlan0</code> is being used so I tried to edit <code>/home/gableroux/.virtualenvs/hotspot/lib/python2.7/site-packages/hotspotd/run.conf</code>, replaced <code>wlan0</code> with my deteceted <code>wlp61s0</code>:</p> <pre><code>$ sudo hotspotd start -v command: ps aux |grep hostapd |grep -v grep Verifying interfaces command: ifconfig done. created interface: mon.wlp61s0 on IP: 192.168.45.1 command: ifconfig wlp61s0 up 192.168.45.1 netmask 255.255.255.0 wait.. command: sleep 2 command: ps aux |grep dnsmasq |grep -v grep command: ps aux |grep hostapd |grep -v grep enabling forward in sysctl. command: sysctl -w net.ipv4.ip_forward=1 net.ipv4.ip_forward = 1 creating NAT using iptables: wlp61s0&lt;-&gt;enp0s25: command: iptables -P FORWARD ACCEPT command: iptables --table nat --delete-chain command: iptables --table nat -F command: iptables --table nat -X command: iptables -t nat -A POSTROUTING -o enp0s25: -j MASQUERADE command: iptables -A FORWARD -i enp0s25: -o wlp61s0 -j ACCEPT -m state --state RELATED,ESTABLISHED command: iptables -A FORWARD -i wlp61s0 -o enp0s25: -j ACCEPT command: iptables -A OUTPUT --out-interface wlp61s0 -j ACCEPT command: iptables -A INPUT --in-interface wlp61s0 -j ACCEPT running dnsmasq command: dnsmasq --dhcp-authoritative --interface=wlp61s0 --dhcp-range=192.168.45.20,192.168.45.100,255.255.255.0,4h running hostapd wait.. command: sleep 2 command: hostapd -B /home/gableroux/.virtualenvs/hotspot/lib/python2.7/site-packages/hotspotd/run.conf Configuration file: /home/gableroux/.virtualenvs/hotspot/lib/python2.7/site-packages/hotspotd/run.conf nl80211: Could not configure driver mode nl80211: deinit ifname=wlp61s0 disabled_11b_rates=0 nl80211 driver initialization failed. wlp61s0: interface state UNINITIALIZED-&gt;DISABLED wlp61s0: AP-DISABLED hostapd_free_hapd_data: Interface wlp61s0 wasn't started hotspot is running. </code></pre> <p>Still no hotspot. I searched for that error</p> <blockquote> <p>nl80211: Could not configure driver mode</p> </blockquote> <p>I <a href="https://askubuntu.com/questions/319838/failed-to-set-interface-wlan0-into-ap-mode-intel-centrino-n1000-wireless">found this related question</a></p> <p>I tried the recommanded command:</p> <pre><code>$ sudo iwconfig wlp61s0 mode master Error for wireless request "Set Mode" (8B06) : SET failed on device wlp61s0 ; Invalid argument. </code></pre> <p>Well well, sounds like it could be my network card after all.</p> <p>That's definitely way easier on MacOS :/</p> <p><strong>Edit</strong>: I can no longer reproduce this problem since I moved to Fedora and things are mostly working out of the box now. Thanks for your help :)</p> <p><img src="https://i.imgur.com/bzXwEbE.png" alt=""></p>
0non-cybersec
Stackexchange
How could I sort the coordinates according to the serpentine in the image?. <p>In this following binary image,</p> <p><a href="https://i.stack.imgur.com/7QE0s.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7QE0s.png" alt="enter image description here"></a></p> <p>I have been able to get the <em>list of coordinates</em> where the value is 1.</p> <p>The coordinates are stored from <em>left to right</em>.</p> <p><strong>Question:</strong> <em>How could I sort the list of coordinates in such a way that they come one after the other and they follow the path of this serpentine?</em></p> <p><strong><em>Source Code:</em></strong></p> <pre><code>from __future__ import division import numpy as np import cv2 from skimage.morphology import skeletonize, skeletonize_3d, medial_axis diff = cv2.imread('img.png', 0) diff = diff.astype('uint8') ret, thresh = cv2.threshold(diff, 1, 255, cv2.THRESH_BINARY) thresh = cv2.dilate(thresh, None, iterations = 1) sk = skeletonize_3d(thresh) pixels = np.argwhere(sk==255) pixels = np.asarray(pixels) y = pixels[:,0] x = pixels[:,1] L = (x, y) # Question: How can I sort L? np.savetxt("C:/test.csv", np.c_[L], delimiter = ',', fmt='%f') </code></pre> <p>Any idea how I could possibly go about with this and sort L according to the serpentine?</p>
0non-cybersec
Stackexchange
How to uninstall apt-get?. <p>Since the package manager deals with removing packages, what can be done to remove the package manager (and then install a custom built version of apt-get for example)?</p>
0non-cybersec
Stackexchange
Yachting Stories: Yacht Transporting.
0non-cybersec
Reddit
jQuery: get each element&#39;s width and sum them up. <p>How can I get each element's width and sum them up?</p> <p>For instance, here is the HTML:</p> <pre><code>&lt;div id="container"&gt; &lt;div class="block-item" style="width:10px"&gt;&lt;/div&gt; &lt;div class="block-item" style="width:50px"&gt;&lt;/div&gt; &lt;div class="block-item" style="width:90px"&gt;&lt;/div&gt; &lt;div&gt; </code></pre> <p>I can think of looping through each element, but how do I sum the numbers up?</p> <pre><code>$('.block-item').each(function(index) { alert($(this).width()); }); </code></pre> <p>I want to get the total number of <code>150 (10 + 50 + 90)</code>.</p> <p>Thanks.</p>
0non-cybersec
Stackexchange
Applications of Burnside&#39;s Formula. <p>The applications of Burnside's formula in counting orbits has wide applications (I believe). But, whatever the books I followed on Group Theory, many (or almost all) of the applications mentioned in them are for "coloring problem" which involves roughly coloring vertices of a regular $n$-gon with different colors.</p> <p><strong>Q.</strong> What are the other simple applications of Burnsides theorem which I can present to undergraduates while teaching group theory?</p>
0non-cybersec
Stackexchange
Need some help getting rid of this message!. So I emptied out my trash and restarted my mac air and this keeps popping up everytime I power up my computer. Anyone have an idea how to make it stop http://i.imgur.com/6y2haAk.png
0non-cybersec
Reddit
The worst possible time for an A/V malfunction..
0non-cybersec
Reddit
Standard AES vs additional parameters with Rijndael - what is more secure?. <p>I know that Rijndael and AES are pretty similar and AES is just a subset of Rijndael, and I have read that Rijndael can have 256 bit blocks while AES has "only" 128 bit blocks.</p> <p>The problem is that I have no real idea of cryptography my question is what is more secure? Is "standard AES" more secure or some of the tweaked options using Rijndael? Right now I am using <code>MCRYPT_RIJNDAEL_256</code> in PHP which is (as far as I can tell) Rijndael with 256 bit block and key size while AES-256 has 256bit key but "just" 128 bit blocks.</p> <ol> <li><p>The point is in the end whether to use AES or Rijndael?</p></li> <li><p>Also what mode would be best for security/performance? Right now I have ECB since that was used in a tutorial at that time.</p></li> <li><p>Is there another algorithm that is even more secure? It should be fast, since I am doing a lot of crypto stuff using it, but still stay secure.</p></li> </ol>
0non-cybersec
Stackexchange
To Defeat Iran, Cheer Obama's Domestic Victories.
0non-cybersec
Reddit
阪神高速 泉大津パーキングエリアの展望台 / Observatory in Hanshin Express Izumiotsu Osu park....
0non-cybersec
Reddit
Smoking with a cold?. Recommend or do not recommend? My nose is super runny and I have a major headache. Would smoking make me feel better or worse?
0non-cybersec
Reddit
How To Find Every Single Vulnerable Website On The Internet.
1cybersec
Reddit
Secure Open Source?. <p>I want to make a delicate application of mine (an antivirus actually) open source but I want to have a control on who really obtains the source or not. Preferably they should apply and I or administrators approve their applications. Is there any online platform for this?</p> <p>The main reason for the control/security is to possibly prevent malware makers to easily discover how to bypass the stealth checking methods it utilizes for malware detection. </p> <p>Edit: I am looking for advice - possibly to hear from someone who has done something similar.</p> <p>Thanks!</p>
0non-cybersec
Stackexchange
Gmail conversation view but how do I prevent it for a specific email?. <p>Say I have a CRM system which sends 20 emails to a single gmail account. </p> <p>When sent all 20 emails come to Gmail inbox as a "Conversation" since they are coming from a single email. </p> <p>I can switch off conversation view in Gmail settings to prevent this from happening. </p> <p>But how do I do it so say if I sent 20 emails at once from my CRM systems email (e.g: [email protected] they get delivered separately but without SWITCHING OFF the conversation view. So it works for other emails but not the CRM systems email.</p>
0non-cybersec
Stackexchange
Networking Mac and PC - Firewall Issue?. <p>Here's the scenario:</p> <p>Work network - I have a Mac and a PC - OS X is Snow Leopard - Windows 7</p> <p>I am trying to connect to the PC from the Mac. IT ONLY works if I turn off the firewall in Windows.</p> <p>I tried to trace the port and connection it was using, it appears to be on port 445 via TCP.</p> <p>I really prefer not to leave this open, or is it OK?</p> <p>How can I only allow this connection while still leaving the firewall on?</p>
0non-cybersec
Stackexchange
can&#39;t resolve local domain name with bind9. <p>I'm in the process of replacing my Windows server by an Ubuntu server. I've been at it for a week now and i'm making significant progress. However i'm stuck on this particular issue. I have a feeling i'm missing something obvious since it looks pretty simple, but i should point out i'm a total Linux beginner, and DNS configuration isn't my strong suit either. </p> <p>Anyway, here is my issue :</p> <p>I have a local webserver in need on local dns resolution, so i installed bind9 and configured it as best as i could. Right now, it's resolving the FQDN of my server (<strong>srvubuntu.domain.local</strong>) but not the domain name (<strong>domain.local</strong>). I guess something (not much) is missing in my config.</p> <p>here are my config files :</p> <p><strong>/etc/bind/named.conf.local</strong></p> <pre><code>// // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; zone "domain.local" { type master; file "/etc/bind/db.domain.local"; }; zone "1.168.192.in-addr.arpa" { type master; file "/etc/bind/db.1.168.192.in-addr.arpa"; }; </code></pre> <p><strong>/etc/bind/db.domain.local</strong></p> <pre><code>$TTL 10800 @ IN SOA srvubuntu.domain.local. root.domain.local. ( 20180202; 3h; 1; 1w; 1h); @ IN NS srvubuntu.domain.local. srvubuntu IN A 192.168.1.251 </code></pre> <p><strong>/etc/bind/db.1.168.192.in-addr.arpa</strong></p> <pre><code>$TTL 10800 $ORIGIN 1.168.192.in-addr.arpa. @ IN SOA srvubuntu.domain.local. root.domain.local. ( 20180202; 3h; 1h; 1w; 1h); @ IN NS srvubuntu.domain.local. 251 IN PTR srvubuntu.domain.local. </code></pre> <p>Can someone point me to my mistake(s) ?</p>
0non-cybersec
Stackexchange
/u/Calavar gives a play-by-play of a guy blowing it at every opportunity.
0non-cybersec
Reddit
If a computer has 22gb ssd that is &quot;100% free&quot; ... what is it really doing?. <p>I am a Windows newbie, and just ran into a computer with 22GB SSD drive and a 1TB normal hard drive. The SSD drive according to diskmgmt.msc says its space is 100% free. What does this mean? Also, if one wanted to dual boot Ubuntu on a machine like this, are there any extra considerations that would need to be taken?</p>
0non-cybersec
Stackexchange
A,B,C and D vertices of a rectangle if we define a function in this region as product of the distance from $z$ to points show max f at the sides. <p><span class="math-container">$A,B,C$</span> and <span class="math-container">$C$</span> vertices of a rectangle on the plane we define a function on the region enclosed by the rectangle by <span class="math-container">$f(z)= |z-A||z-B||z-C||z-D|$</span> prove that the maximum value of <span class="math-container">$f$</span> attained on the boundary. I know I need to use the maximum modulus theorem but how to prove that <span class="math-container">$f$</span> is holomorphic? Or is there any other way to prove that? Any hints? </p>
0non-cybersec
Stackexchange
How to install discord.py rewrite?. <p>I ran <code>python3 -m pip install -U discord.py</code> but it only installed discord.py v0.16.x. How do I install the new discord.py rewrite v1.0? </p> <p>I uninstalled the old discord.py using <code>pip uninstall discord.py</code> and re-ran pip to install discord.py, only to get version v0.16.x again instead of the new v1.0 version.</p>
0non-cybersec
Stackexchange
Cursed Ancestry.
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
Create parts of DSL as Quickfix from xtext grammar. <p>I currently experimenting with DSLs with xtext. I want to implement a quick fix for the dsl I'm writing and I'm wondering, if there is a possibility in xtext or xtend hook (or something else) to generate a dsl fragment code from the DSL grammar and a given Ecore node.</p> <p>For example </p> <pre><code>Model: entities+=Entity*; Entity: 'entity' name = ID ('extends' superType=[Entity])? '{' attributes += Attribute* '}'; </code></pre> <p>I validate that the Supertype may not exist, and I want to suggest a Quickfix (Ctrl+1) to create a new Entity. I know how to do the validation part and know where to implement the quickfix. But since the DSL is in development i do not want to write two code generators (one for creating DSL code, and the second for the code derived from the model) since the DSL is subject to change. I guess, that there could be a more general solution, since the grammar is known, because of the xtext grammar definition and the Ecore node I want to create, whose name I know from the validator. I also guess I am not the only one providing such a "feature" and thus I assume there is already a solution which i did not found yet.</p> <p>My Question, is there a generic way in xtext/xtend building an ecore node or AST and serialize that AST back into xtext based DSL using the xtext grammar?</p>
0non-cybersec
Stackexchange
Oktoberfest 2019.
0non-cybersec
Reddit
Scared of the "L-word". My apology in advance as English is not my first language please bear with me, and thank you. I am unsure of how to proceed and Valentine's Day is just around the corner. My GirlFriend (29F) and I (29M) have first met in August and things have been going very well. However I have some reluctance concerning Valentine's Day. Neither of us have said that we love eachother yet in the relationship, and I am wondering if that would be a good time to do it on Valentine's Day. My hesitation is that in the past it has been very easy for me to know when it is apporpritate to say this but with this relationship, I am very worried that I may be moving too "fast" for her by saying it and I do not want to end things as she is very special girl to me. Is it worth my chance to say on Valentine's Day? Do you think she is wait for me to say it? &#x200B; Thank you again Victor
0non-cybersec
Reddit
Is this definition of diagonal matrix correct?. <p>I need to know if the following definition:</p> <blockquote> <p>Let $A:=\|a_{i,j}\|_{\substack{i=1,...,m \\ j=1,...,m}}$ be a square matrix. $A$ is diagonal matrix if $$i\neq j \implies a_{ij}=0, \quad\forall i,j \in \{1,...,m\}$$</p> </blockquote> <p>is correct?</p> <p>Thanks in advance!</p>
0non-cybersec
Stackexchange
Electronic energy meters’ false readings almost six times higher than actual energy consumption.
0non-cybersec
Reddit
How to check if something was written to /dev/log?. <p>I'm writing application which is intended to log to syslog. In <a href="https://docs.python.org/2/library/logging.handlers.html#sysloghandler" rel="nofollow">documentation for SysLogHandler</a> (python, logging module) it is said that for UNIX systems it's usually '/dev/log'. I need to test if something was written there, how can one read the content of '/dev/log'?</p> <p>I have Ubuntu 14.04</p>
0non-cybersec
Stackexchange
Morning Sunrise Over the Cascades [3000x2000][OC].
0non-cybersec
Reddit
Difference between &quot;Realtek Digital Input&quot; and &quot;Stereo Mix&quot;. <p>When trying to record sound through CamStudio on Windows Vista, I found that I had to change the recording device to from "Realtek Digital Input" to "Stereo Mix". (Control Panel>sound>Recording>Show Disabled Devices>Enable Stereo Mix)</p> <p>Are there any drawbacks to this? What is the difference between the "Realtek Digital Input" and "Stereo Mix", and what are some of the pro/cons of each?</p>
0non-cybersec
Stackexchange
Why a pdf is opened when I click a url when the url specifies its a zip ?Is this link trustworthy?. <p>So basically the href of the anchor tag is something like hxxtp://www.xxxx/xx.zip and the anchor tag text visible to user is something like xxxx.pdf ,when user clicks it Mozilla opens it as a .pdf but actually it is a .zip.</p> <p>My doubt: Why is firefox opening it as a pdf when the url says it's a .zip ,does firefox read the header of the file and decide if its a pdf or a .zip ,is this not fooling a user into clicking a .zip, although he thinks that it's a pdf?</p>
1cybersec
Stackexchange