text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
New Thundercats trailer (badass).
0non-cybersec
Reddit
Greatest movie scene of all time.
0non-cybersec
Reddit
You're floor gang? Hah that's pretty cringe bro..
0non-cybersec
Reddit
Aloe pups!.
0non-cybersec
Reddit
David Boreanaz Anticipates Ending For 'Bones': "I think it's time.".
0non-cybersec
Reddit
Why does my wallet need to download the whole transaction history?. <p>I started a wallet, and it is downloading and synchronizing lots of transactions. This takes time and network bandwidth. </p> <p>Why is this necessary? Is this some form of accountability?</p> <p>With Paypal, for example, this isn't done. And as you grow, I guess this becomes a huge -- will the amount of transaction data become too large? It is a bit scary to have my computer run off and synchronize, without it informing me what kind of information it is getting and whey this is necessary.</p> <p>Can't the whole transaction history be shown or available on a website, rather than loaded on my computer?</p>
0non-cybersec
Stackexchange
My favorite missing nose gif..
0non-cybersec
Reddit
can I write a loop for css. <p>I have a scenario where I am getting ID generated like this </p> <pre><code>&lt;div class="containerLength"&gt; &lt;div id="new-1"&gt;&lt;/div&gt; &lt;div id="new-2"&gt;&lt;/div&gt; &lt;div id="new-3"&gt;&lt;/div&gt; &lt;div id="new-4"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>and so on</p> <p>is there a way I could write some css to target them through a loop? maybe something like </p> <pre><code>#new[i; for(i=0; i&lt;="containerLength.length"; i++)]{ float:left; } </code></pre> <p>Probably I am day dreaming correct? </p>
0non-cybersec
Stackexchange
how can we generate random numbers using skew normal distribution in multivariate case. <p>how can we generate random numbers using skew normal distribution in multivariate case</p>
0non-cybersec
Stackexchange
Fast binomial sampling. <p>This question might appear stupid, but I haven't found how to do it:</p> <p>I want to simulate a sampling on a large number of samples (very large n, in the distribution $b(n, p)$, and count the results.</p> <p>The only way I know is to repeat the experiment n times, each time selecting the outcome 1 with probability p, and 0 with probability (1-p), and sum the results at the end.</p> <p>However, when n is very large, this becomes impractical. Is there an other, faster way to do it ?</p> <p>Thanks</p>
0non-cybersec
Stackexchange
How to list all inodes and blocks in file system which are available for unprivileged user. <p>I'm trying to list all inodes and blocks in certain file system which are available and unused for unprivileged user. I tried <code>stat -f</code> but from what I've read it list nodes and block available for all user in the system.</p>
0non-cybersec
Stackexchange
Not happy about the location of Box Sync 4 folder on OSx? Try this:. Not happy about Box Sync 4 on OSx? Really want to put your Box Sync folder somewhere else on OSx? The [instructions](https://support.box.com/hc/en-us/articles/200852947) on the Box Forum just not working for you? Box Sync 4 for Mac seems to be hard coded to force your Box Sync folder to exist in your User directory. This doesn't work for me as I have a multi user computer and all users need access to the same files. Seems silly to have multiple copies of the same files on one computer. Imagine my night shift worker logging on and having to wait for Box to download all the files that the day shift worker has created or made changes to. More over, what if someone needs to access these files over a network share? Do I need to update my network shares every time a new user sits down? This just won't do Box. Shame on you for removing such an important feature. More over. I have a separate partition on my personal Mac for Data so that my Windows and Linux multi-boot can also access my files. Ready to move your Box Sync folder? Here's how. ---------- Note 1: Every time I have I installed Box4 on any computer, it has either ignored or renamed my existing Box directory, created a new one, and redownloaded EVERYTHING! It will do this again when you move your folder. Hope you have good internet. You have been warned. Note 2: You will need to be logged on as an Administrator for your computer. Note 3: I suggest you read this whole thing through before you actually do anything, so that you understand what is happening. But you knew that. Note 4: If you are still running Box3, it's quite ok. Just follow all these anyway. The Box4 installer will do the rest. ---------- Step 1: Quit the Box program by clicking on the icon on the top bar and select Quit. Step 2: Rename your existing "Box Sync" folder to "Box backup". - If you are still using Box 3 then your folder is probably named something else already. Step 3: Open Terminal and do the following commands: cd ~ rm -rf Library/Application\ Support/Box ln -s "/Volumes/Data" "Data" sudo nano /Library/Preferences/com.box.sync.plist Step 4: Don't freak out. That last command is opening a text editor called Nano. It will create a new file for you but it needs your permission to do so. That's why it is asking for your password. It's ok. Go ahead, enter your computers pw. (not your Box pw, your computer pw) Step 5: Copy and Paste the following into the terminal window: <!--?xml version="1.0" encoding="UTF-8"?--> <plist version="1.0"> <dict> <key>SyncRootFolder</key> <string>~/Data/Box Sync</string> </dict> </plist> Step 6: Press Ctrl X, Y, Enter to save. Now, before you run Box again for the very first time, lets review what we just did: >"cd ~" ensures you are in the User folder of whomever you are logged in as. You can usually find the Squiggly ~ to the left of the "1" key. >"rm .." deletes the folder that contains the current Box4 settings. Very Necessary. Box4 looks for this folder when it runs. If it doesn't find it, it thinks it is running for the first time. (Be careful with "rm -rf", there is no undo!) >The ln -s creates a Sym Link called "Data" which points to "/Volumes/Data". This works for me because I have a partition called "Data". You should change "/Volumes/Data" to where ever will work for you, as long as you have permission to read and write and it's an HFS drive. Want it in your Documents? No problem. Try this: ln -s "~/Documents" "Data" So now we have a "sym link" aka a shortcut to anywhere you like. The last command "sudo nano .." creates a small file which Box4 will read only when it runs for the first time. In that file you will notice this line: <string>~/Data/Box Sync</string> This line tells box where to put your files. Notice the Squiggly that means the user home folder, and the "/Data" which is the sym link we just made. And of course the "/Box Sync" which is the actual folder our files will be in. You can change that if you want. I shorten it to "~/Data/Box". Like me, you are probably tempted to remove the "~". Who needs it, right? Turns out Box4 does. It really does. Flips out if it's not there. But you've probably already learned that hard way and here you are. Step 7: Open Finder, click the Applications folder, and double click the "Box Sync.app" or download and run the latest Box4 for mac from the Box web site. Enter your email address and Box pw and if all went well, you should be good. You may see a notification that Box has been "updated" and you should restart your computer. You can if you want. Doesn't seem to matter. Note 5: The instructions on the Box forums suggest deleting the log files. You can if you want. Doesn't seem to matter. It also says to delete your existing Box Sync folder. Unless you are SURE that your files are sync'd and up to date, don't delete it. Rename it for now. You can always delete it later. Note 6: On a mac, Box4 only wants to work with HFS type storage (Mac OS Extended). I have a second hard drive which is NTFS that works great with Tuxera, but Box4 doesn't seem to want to work with that, even though Box3 worked great. Note 7: You may be tempted to copy the contents of your original Box folder into the new Box folder. Don't. Box4 will just create duplicates of everything. Wait until box is done downloading, then copy any individual files you want. Remember that Box assigns a Unique ID to each folder and ignores the actual folder name. Note 8: You May be tempted to sym link the Box Sync folder directly. Yeah, that didnt work either. Good Luck. Let me know any problems or tips you have and i'll update. Note xxx: This was a late night post. Expect Tpyos.
0non-cybersec
Reddit
Is a flop on Calabi-Yau threefolds always Atiyah flop?. <p>Is it true that any flop on a Calabi-Yau threefold is given by the Atiyah flop? That is, there always exists a rigid rational curve $\mathbb{P}^1$ with normal bundle $\mathcal{O}_{\mathbb{P}^1}(-1)^{\oplus2}$ and the flop is given by contracting the $\mathbb{P}^1$ and "inserting $\mathbb{P}^1$ in other direction".</p> <p>Here is my thought. First of all, the exceptional locus is of dimension 2, so it must be curve. If it is rational curve, then the normal bundle is either $\mathcal{O}(-1)^{\oplus2}$ or $\mathcal{O}\oplus \mathcal{O}(-2)$, but the latter cannot happen as the curve can move. In the former case, I think, the only possibily is Atiyah flop. Another thing one has to prove is that the exceptional curve cannot have genus greater than 1, but I am stuck here. </p> <p><strong>Edit</strong> As Sasha pointed out below, my claim is not true in general. Let me now ask another question that came up from my initial question and Sasha's answer to it. </p> <blockquote> <p>Is it true that the exceptional curve is always fixed? (i.e. it is not in a member of non-trivial family of rational curves) </p> </blockquote> <p>Thank you for your help.</p>
0non-cybersec
Stackexchange
SQL Parallel Stored Procedure execution using CLR - Performance. <p>We have a main analytics SP that calls 100 other sub SPs, all of which act upon the same set of data (Claims), check it for some business rules, and output discrepancies.</p> <p>The SPs need not all be run sequentially, they can be broken out into sections, which are dependent on previous sections (sequential), but independent within the section (parallel).</p> <p>After looking at many options like Service Broker, Agent Jobs, Batch Files, SSIS etc., I used this <a href="https://www.codeproject.com/Articles/29356/Asynchronous-T-SQL-Execution-Without-Service-Broke" rel="nofollow noreferrer">CLR code</a> to parallelize the sections, and it gave great performance improvement.</p> <p>However, when I run multiple (5, 10, 15) main SPs concurrently (each of which analyzes different claims) , performance starts to taper as concurrency increases. I guess this is because of the overhead of creating multiple parallel threads through the CLR. I also see lot of XTP_THREAD_POOL sessions idle in sp_who2.</p> <p>Has anyone used CLR for parallelizing Stored Procedures in Critical OLTP Production workloads ?<br> Are there any best practices for performance tuning SQL CLR ?<br> Is there a threshold for number of parallel threads that can be opened before the overhead makes things worse ?<br> If my system has 20 cores, does it mean creating > 20 parallel threads does not help ?</p>
0non-cybersec
Stackexchange
IamA female entrepreneur in the financial technology industry who just raised $5.5 million. I also have a 1-year-old daughter. AMA!. Hi friends! I’m Suneera Madhani, founder and CEO of payment technology company Fattmerchant. The financial technology space is very competitive (and mostly male), so the road to our recent investment of $5.5 million has been interesting, to say the least! At a recent founder’s event, I was the only woman in the room and one of very few minorities. Since starting Fattmerchant in 2014, I’ve raised over $8 million in total funding and my company has transacted over $1 billion in payments for its merchants. Plus, I had my beautiful daughter in the middle of it all and very recently started recording my thoughts on my own blog! We’ve had a lot of crazy experiences at Fattmerchant - both good and bad - that I’d love to share with you! We’ve been featured in TechCrunch, Forbes, FastCompany, Huffington Post and many more. We’ve also grown from 4 to over 30 employees. I say all of this because I’d love to share my experiences and insights with you and answer all of your questions regarding entrepreneurship, scaling a business, raising capital, leadership, being a CEO and a mom, and anything else you would like to know about me and Fattmerchant! Ask me anything! Here is my proof: https://imgur.com/a/WJLw2 For those of you who are interested, you can learn more about my company here: https://fattmerchant.com/ My personal blog can be found here: http://mombossblog.com/
0non-cybersec
Reddit
My first PC build, I felt pretty proud first turning it on.
0non-cybersec
Reddit
Why won&#39;t my restored iPhone 4S accept my Apple ID credentials?. <p>I recently had to restore my iPhone 4S (iOS 7) and when I turned it back on and the activation screen came up, it prompted me for my Apple ID credentials. I put in my Apple ID username and password but it says that it's wrong. I tried to change my password, but when I did, and tried the new password, it still doesn't work. </p> <p>What should I do? </p> <p>I obviously can't even use my phone to make a call.</p>
0non-cybersec
Stackexchange
Random walk on the lamplighter group. <p>Consider a random walk on the <a href="https://en.wikipedia.org/wiki/Lamplighter_group" rel="nofollow noreferrer">lamplighter group</a> with the following generating set: move left, move right, and toggle lamp. Start at the origin, with all lamps off. What is the probability that, after $t$ steps, the lamp at the origin is on?</p> <p>I started by letting $g(b,k,t)$ denote the number of <a href="https://en.wikipedia.org/wiki/Word_(group_theory)" rel="nofollow noreferrer">words</a> of length $t$ that set the lamp at the origin to $b$ and the lamplighter at position $k$. Thus we have the recurrence relation \begin{align*} g(b,k,0)&amp;=[b=0][k=0] \\ g(b,k,t+1)&amp;=g(b,k-1,t)+g(b,k+1,t)+g(b \oplus [k=0],k,t) \end{align*}</p> <p>where $[\cdot]$ is the <a href="https://en.wikipedia.org/wiki/Iverson_bracket" rel="nofollow noreferrer">Iverson bracket</a> and $\oplus$ is <a href="https://en.wikipedia.org/wiki/Exclusive_or" rel="nofollow noreferrer">xor</a>. Then I let $f(b,t)$ denote the number of words of length $t$ that set the lamp at the origin to $b$: $$f(b,t) = \sum_{k \in \mathbb{Z}} g(b,k,t)$$</p> <p>The answer to my question is $f(1,t) \cdot 3^{-t}$, since $3^t$ is the total number of words of length $t$. After some simplification, I obtained the following recurrence relation for $f$: \begin{align*} f(b,0) &amp;= [b=0] \\ f(b,t+1) &amp;= 3 f(b,t) - g(b, 0, t) + g(b \oplus 1, 0, t) \end{align*}</p> <p>I'm trying to get rid of the remaining $g$ terms. $g(0,0,t)$ and $g(1,0,t)$ represent the number of $t$-length words that return to the origin while leaving its lamp off or on, respectively. I suspect I might be able to use <a href="http://mathworld.wolfram.com/MotzkinNumber.html" rel="nofollow noreferrer">Motzkin paths</a> to solve for these. The number of $t$-length words that return to the origin is the $t$th <a href="http://oeis.org/A002426" rel="nofollow noreferrer">central trinomial coefficient</a>. That is,</p> <p>$$g(0,0,t)+g(1,0,t) = \sum_{i=0}^t \binom{t}{i} \binom{i}{t-i}$$</p> <p>The first few coefficients are</p> <p>\begin{array}{c|c|c} &amp; b = 0 &amp; b = 1 \\ t=0 &amp; 1 &amp; 0 \\ t=1 &amp; 0 &amp; 1 \\ t=2 &amp; 3 &amp; 0 \\ t=3 &amp; 2 &amp; 5 \\ t=4 &amp; 15 &amp; 4 \\ t=5 &amp; 22 &amp; 29 \\ t=6 &amp; 93 &amp; 48 \\ t=7 &amp; 196 &amp; 197 \\ t=8 &amp; 659 &amp; 448 \\ t=9 &amp; 1650 &amp; 1489 \end{array}</p> <p><strong>EDIT:</strong> Let $L_k$ denote the set of words that shift the lamplighter by $k$. Then $$[z^n]L_k(z) = \binom{n}{k}_2$$</p> <p>where the RHS is the entry in row $n$ and column $k$ of the <a href="https://en.wikipedia.org/wiki/Trinomial_triangle" rel="nofollow noreferrer">trinomial triangle</a>. Let $L_k^-$ be the subset of $L_k$ such that the lamp at $k$ (or, equivalently in number, the lamp at the last position) is not toggled. Based on further investigation, it seems to be the case that $$L_k^-(z) = L_k(z) \frac{1+z L_0(z)}{1+2z L_0(z)}$$</p> <p>Is there a simple explanation for this relationship? I sense some kind of recursive definition of $L_k^-$ in terms of $L_k$, $L_0$, and $L_k^-$ itself.</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
How to add a user containing a UID to OpenLDAP that runs on CentOS7?. <p><strong>Add a user</strong></p> <p><a href="https://stackoverflow.com/a/18183821/2777965">user.ldif</a></p> <pre><code>dn: uid=sampleuser,ou=people,dc=my-domain,dc=com objectClass: top objectClass: inetOrgPerson cn: sample user uid: sampleuser </code></pre> <hr> <p><strong>Problem</strong></p> <pre><code>[root@host ~]# ldapadd -x -W -D "cn=Manager,dc=my-domain,dc=com" -f user.ldif Enter LDAP Password: adding new entry "uid=sampleuser,ou=people,dc=my-domain,dc=com" ldap_add: Invalid syntax (21) additional info: objectClass: value #1 invalid per syntax </code></pre> <hr> <p><strong>Attempt to solve the issue</strong></p> <p>Changing <code>inetOrgPerson</code> to <code>uidObject</code> and creating the user again:</p> <pre><code>[root@controller ~]# ldapadd -x -W -D "cn=Manager,dc=my-domain,dc=com" -f user.ldif Enter LDAP Password: adding new entry "uid=sampleuser,ou=people,dc=my-domain,dc=com" ldap_add: Object class violation (65) additional info: no structural object class provided </code></pre> <p><strong>Attempt 2 to solve the issue</strong></p> <p>ObjectClass <code>inetOrgPerson</code> not found:</p> <p><img src="https://i.stack.imgur.com/QWbOl.png" alt="enter image description here"></p> <p><strong>Attempt 3 to solve the issue</strong></p> <p>Unable to add the <code>inetOrgPerson</code> schema:</p> <pre><code>[root@controller ~]# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 adding new entry "cn=inetorgperson,cn=schema,cn=config" ldap_add: Other (e.g., implementation specific) error (80) additional info: olcObjectClasses: AttributeType not found: "audio" </code></pre> <hr> <p><strong>Sources that already have been read and do not contain a solution that solves the issue</strong></p> <p><a href="http://docs.adaptivecomputing.com/viewpoint/hpc/Content/topics/1-setup/installSetup/settingUpOpenLDAPOnCentos6.htm" rel="nofollow noreferrer">http://docs.adaptivecomputing.com/viewpoint/hpc/Content/topics/1-setup/installSetup/settingUpOpenLDAPOnCentos6.htm</a></p> <p><a href="http://www.zytrax.com/books/ldap/ch3/" rel="nofollow noreferrer">http://www.zytrax.com/books/ldap/ch3/</a></p> <p><a href="https://stackoverflow.com/questions/28938957/openldap-structural-objectclass-not-found">https://stackoverflow.com/questions/28938957/openldap-structural-objectclass-not-found</a></p> <p><a href="http://www.openldap.org/doc/admin24/schema.html" rel="nofollow noreferrer">http://www.openldap.org/doc/admin24/schema.html</a></p> <p><a href="http://www.openldap.org/lists/openldap-software/200503/msg00640.html" rel="nofollow noreferrer">http://www.openldap.org/lists/openldap-software/200503/msg00640.html</a></p> <p><a href="http://www.openldap.org/lists/openldap-technical/201002/msg00147.html" rel="nofollow noreferrer">http://www.openldap.org/lists/openldap-technical/201002/msg00147.html</a></p> <p><a href="http://www.openldap.org/lists/openldap-technical/201002/msg00139.html" rel="nofollow noreferrer">http://www.openldap.org/lists/openldap-technical/201002/msg00139.html</a></p>
0non-cybersec
Stackexchange
Full outer join issues when using group by. <p>@@this may seem like a duplicate. The other post somehow posted as 'Guest' and will not allow me to make edits.@@</p> <p>I have 4 subqueries and each of the subquery is grouped by 'Group name'. The attempt is to have each subquery as a column all grouped by the 'Group Name'. Here is the query: </p> <pre><code>select coalesce(co.group_name, requests.group_Name, incidents.group_Name, problems.group_Name) as 'SD Groups' , isnull(co.co, '') as 'CO' , isnull(incidents.incidents, '' ) as 'Inc' , isnull(problems.problems, '') as 'Prob' , isnull(requests.requests, '') as 'Rqst' from (select groups.last_name AS Group_Name ,count(chg_ref_num) AS 'CO' from chg left join ca_contact groups on chg.group_id = groups.contact_uuid left join ca_contact assignee on chg.assignee = assignee.contact_uuid left join ca_company cc on assignee.company_uuid = cc.company_uuid where groups.last_name in ('8197 Qlikview Support', '8202 OBIEE-BIP' , '8205 BI SAS', '8206 BI CCBI', '8208 BI ePlan Reporting and Support' , '8211 BI Data Quality', '8212 BI EPM Report Architect/Developer' , '8213 BI EPM Framework Architect/Developer', '8214 BI EPM User Experience' , '8215 BI EPM OLAP Architect/Developer', '8219 BI Data Warehouse') and status = 'CL' and convert(varchar, dateadd(hh,-8,dateadd(ss,chg.close_date, '1970')), 101) &gt;= DATEADD(month, datediff(month, 0, getdate()), 0) and parent is NULL and cc.company_name = 'XYZ' group by groups.last_name) as CO full outer join (select groups.last_name AS Group_Name ,count(ref_num) AS Requests from call_req cr left join ca_contact groups on cr.group_id = groups.contact_uuid left join ca_contact assignee on cr.assignee = assignee.contact_uuid left join ca_company cc on assignee.company_uuid = cc.company_uuid where groups.last_name in ('8197 Qlikview Support', '8202 OBIEE-BIP' , '8205 BI SAS', '8206 BI CCBI', '8208 BI ePlan Reporting and Support' , '8211 BI Data Quality', '8212 BI EPM Report Architect/Developer' , '8213 BI EPM Framework Architect/Developer', '8214 BI EPM User Experience' , '8215 BI EPM OLAP Architect/Developer', '8219 BI Data Warehouse') and cr.status in ('CL') and convert(varchar, dateadd(hh,-8,dateadd(ss,cr.close_date, '1970')), 101) &gt;= DATEADD(month, datediff(month, 0, getdate()), 0) and cr.parent is NULL and cr.type = 'R' and cc.company_name = 'XYZ' group by groups.last_name) as Requests on co.group_name = requests.group_name full outer join (select groups.last_name AS Group_Name ,count(ref_num) AS Problems from call_req cr left join ca_contact groups on cr.group_id = groups.contact_uuid left join ca_contact assignee on cr.assignee = assignee.contact_uuid left join ca_company cc on assignee.company_uuid = cc.company_uuid where groups.last_name in ('8197 Qlikview Support', '8202 OBIEE-BIP' , '8205 BI SAS', '8206 BI CCBI', '8208 BI ePlan Reporting and Support' , '8211 BI Data Quality', '8212 BI EPM Report Architect/Developer' , '8213 BI EPM Framework Architect/Developer', '8214 BI EPM User Experience' , '8215 BI EPM OLAP Architect/Developer', '8219 BI Data Warehouse') and cr.status in ('CL') and convert(varchar, dateadd(hh,-8,dateadd(ss,cr.close_date, '1970')), 101) &gt;= DATEADD(month, datediff(month, 0, getdate()), 0) and cr.parent is NULL and cr.type = 'P' and cc.company_name = 'XYZ' group by groups.last_name) as Problems on requests.group_name = problems.group_name full outer join (select groups.last_name AS Group_Name ,count(ref_num) AS Incidents from call_req cr left join ca_contact groups on cr.group_id = groups.contact_uuid left join ca_contact assignee on cr.assignee = assignee.contact_uuid left join ca_company cc on assignee.company_uuid = cc.company_uuid where groups.last_name in ('8197 Qlikview Support', '8202 OBIEE-BIP' , '8205 BI SAS', '8206 BI CCBI', '8208 BI ePlan Reporting and Support' , '8211 BI Data Quality', '8212 BI EPM Report Architect/Developer' , '8213 BI EPM Framework Architect/Developer', '8214 BI EPM User Experience' , '8215 BI EPM OLAP Architect/Developer', '8219 BI Data Warehouse') and cr.status in ('CL') and convert(varchar, dateadd(hh,-8,dateadd(ss,cr.close_date, '1970')), 101) &gt;= DATEADD(month, datediff(month, 0, getdate()), 0) and cr.parent is NULL and cr.type = 'I' and cc.company_name = 'XYZ' group by groups.last_name) as Incidents on requests.group_name = incidents.group_name order by 'SD Groups' asc </code></pre> <p>Here are the results:</p> <pre><code>Group_Name CO Inc Prob Rqst 8197 Qlikview Support 0 1 0 7 8202 OBIEE-BIP 0 4 0 11 8205 BI SAS 0 11 1 11 8206 BI CCBI 10 17 0 43 8208 BI ePlan Reporting and Support 0 0 0 4 8211 BI Data Quality 0 0 0 12 8212 BI EPM Report Architect/Developer 0 3 1 5 8214 BI EPM User Experience 0 2 0 0 8214 BI EPM User Experience 0 0 1 0 8215 BI EPM OLAP Architect/Developer 0 15 0 2 8219 BI Data Warehouse 16 71 4 13 </code></pre> <p>Notice two rows for Group 8214. Each group should be represented once and the desired result for Group 8214 should be:</p> <pre><code>Group_Name CO Inc Prob Rqst 8214 BI EPM User Experience 0 2 1 0 </code></pre> <p>What am I doing wrong? I think it has to do with the coalesce function. I tried other methods including</p> <pre><code>isnull(isnull(isnull(co.group_name, requests.group_Name), incidents.group_Name), problems.group_Name) </code></pre> <p>but with the same bad result.</p>
0non-cybersec
Stackexchange
Watch Out For This One in the New Year – The A to Z of Mindful Presenting.
0non-cybersec
Reddit
Zeros of $f + t g$ goes to the zeros of $g$ as $t \to \infty$?. <p>Suppose <span class="math-container">$f, g \in \mathbb C[x]$</span> with <span class="math-container">$\deg(f) &gt; \deg(g)$</span>. Without loss of generality, let <span class="math-container">$\deg(f) = n$</span> and <span class="math-container">$\deg(g) = n-1$</span>. I read a statement without proof: If <span class="math-container">$h(x) = f(x) + t g(x)$</span> with <span class="math-container">$t \in [0, \infty)$</span>, the zeros of <span class="math-container">$h$</span> will start from the zeros of <span class="math-container">$f(x)$</span> (<span class="math-container">$t=0$</span>) and converge to the zeros of <span class="math-container">$g$</span> (<span class="math-container">$t \to \infty$</span>) and of course, one of them will tend to infinity. Intuitively, I understand this should be true since if <span class="math-container">$t$</span> is sufficiently large, the zeros should be the ones of <span class="math-container">$g(x)$</span>. I am wondering what a rigorous way to argue this point? </p>
0non-cybersec
Stackexchange
Practical Uses and Significance of Rainbow Tables to Cryptography?. I'm very interested in a project I am doing on Rainbow Tables. I've read a ton about how they work, strengths, flaws, etc. But am having some more trouble researching how Rainbow Tables are used practically and what their significance is to the study of cryptography. Any and all responses or just other interesting info on Rainbow Tables greatly appreciated!! Thanks Reddit!
1cybersec
Reddit
Trying to understand the meaning of symmetry. <p>The picture below is the solution to the following problem as presented in my book:</p> <p>Find the area of the region that lies inside both curves $$r = 8 + \cos \theta \\r = 8 − \cos θ$$</p> <p><img src="https://i.stack.imgur.com/PVjd5.png" alt="enter image description here"></p> <p>According to my book, it is possible to solve the problem in such a way because of "symmetry" but does not explain what "symmetry" means. From my basic understanding of the meaning of the word in every day usage, I can see that a reflection over the vertical axis, in this case, does not affect the shape of the graph, and I can also intuitively see that $$A = 4\int_0^\frac{\pi}{2}\frac{1}{2}(6-\cos\theta)^2d\theta$$ This, as it turns out, is true but is not satisfying because it was an intuitive guess. So, what is the mathematical definition of symmetry and how can one show that this graph is symmetric? i.e. how to explain mathematically that this problem could be solved using "symmetry"?</p>
0non-cybersec
Stackexchange
Reference (Blower) Cooler + Aftermarket Cooler 390 Crossfire [xpost from r/Amd]. Hey everyone, I'm currently using an MSI R9 390 in a NZXT S340 case. I really want to get a second card for crossfire once a good deal comes by, but i'm not sure if the heat would be too much. Currently my in-game temps can vary from 72 C to the upper 80s depending on the game. I live in Florida so when the room gets hot the temps can reach the thermal limit at 94 C if the AC isn't cranked down. I have resorted to leaving my case open for demanding games which has helped to lower temps. My question is whether I should go for a [reference card](http://www.amazon.com/XFX-1000MHz-Graphics-Cards-R9-390P-8BD6/dp/B01AWGY6II/ref=sr_1_6?s=pc&ie=UTF8&qid=1456787488&sr=1-6&keywords=390&refinements=p_n_feature_four_browse-bin%3A6066318011) with my current case to help blow the air out of the case or get another aftermarket card (looking at [Sapphire](http://www.newegg.com/Product/Product.aspx?Item=N82E16814202164&cm_re=390-_-14-202-164-_-Product)) and upgrade to a case with better airflow down the line. Are there any issues with Crossfiring cards with different cooling solutions? Which card should go on top? Any negatives? Thanks for any advice you guys could give me.
0non-cybersec
Reddit
Right shift key is not working with some keys on keyboard. <p>My right shift key doesn't work with A S D but my left key works fine with all keys. I have tried uninstalling the device and reinstalling, restart, toggle key on/off. </p> <p>I am using windows 10. </p> <p>Please tell me how to solve this problem.</p>
0non-cybersec
Stackexchange
How many ascending and descending numbers are between 1000 and 9999?. <p>I'm working on some homework right now, and I've gotten stumped. Here's the question I'm on:</p> <p>How many of the 9000 four-digit integers 1000, 1001, 1002, . . . , 9998, 9999 have four distinct digits that are either increasing (as in 1347 and 6789) or decreasing (as in 6421 and 8653)?</p> <p>Through some Googling I've already found what they answer may be, but I have no idea how to arrive at the answer, so I wouldn't be learning anything from this hurdle like I'm supposed to. I can use all the help I can get on this one since I don't even know where to start. I think I have to apply the formula for permutations to this somehow, but I don't know what adjustments I have to make for it to work right. </p>
0non-cybersec
Stackexchange
eSATAp and 3.5&#39;&#39; HDD. <p>Are the red ports below eSATAp that can power a 3.5'' HDD?</p> <p><img src="https://i.stack.imgur.com/Dm11K.jpg" alt="esatap"></p> <p>I saw <a href="https://superuser.com/questions/435738/how-to-check-if-my-esatap-port-provides-12v-power">this post</a> about 12V eSATAp and I would guess that they are. However I have a cable like this: <img src="https://i.stack.imgur.com/0xcFO.jpg" alt="cable"> </p> <p>which claims to support 3.5'' drives on 12V, but the disk does not even start spinning. I'm trying to understand if the cable is faulty or the port is not the one I think it is (the disk works fine, by the way).</p>
0non-cybersec
Stackexchange
Convention Based Dependency Injection with Ninject 3.0.0. <p>I have two projects in my solution... a domain project and MVC3 web project (e.g. MyApp.Domain and MyApp.Web). Previously, when using <strong>Ninject.Extensions.Conventions</strong> ver. 2, I was able to use the following statement in the NinjectMVC3.cs file, and required dependencies throughout my solution (both web and domain) were injected properly (e.g. IFoo automatically bound to Foo).</p> <pre><code>kernel.Scan(x =&gt; { x.FromAssembliesMatching("*"); x.BindWith&lt;DefaultBindingGenerator&gt;(); }); </code></pre> <p>I have just upgraded to Ninject 3.0.0 (pre-release) and Ninject.Extensions.Conventions 3.0.0 (another pre-release) but the syntax for convention based binding has changed. I have figured out that I can use the following statement with the new version, but it only automatically binds the convention based interfaces in MyApp.Web and not in MyApp.Domain. The previous version bound interfaces throughout the application. </p> <pre><code>kernel.Bind(x =&gt; x .FromThisAssembly() .SelectAllClasses() .BindToAllInterfaces()); </code></pre> <p>Any clue how I can configure convention based binding with the new Ninject version? I assume it has to do with specifying the assembly, but I have tried using <code>FromAssembliesMatching("*")</code> and it fails for everything then.</p> <p><strong>-- Edit to show my exisiting code in RegisterServices method: --</strong></p> <pre><code>private static void RegisterServices(IKernel kernel) { // This code used to work with v.2 of Ninject.Extensions.Conventions // kernel.Scan(x =&gt; // { // x.FromAssembliesMatching("*"); // x.BindWith&lt;DefaultBindingGenerator&gt;(); // }); // This is the new v3 code that automatically injects dependencies but only for interfaces in MyApp.Web, not MyApp.Domain kernel.Bind(x =&gt; x.FromThisAssembly().SelectAllClasses().BindToAllInterfaces()); // I tried this code, but it throws "Error activating IDependencyResolver" at "bootstrapper.Initialize(CreateKernel)" // kernel.Bind(x =&gt; x.FromAssembliesInPath(AppDomain.CurrentDomain.RelativeSearchPath).SelectAllClasses().BindToAllInterfaces()); // These are dependencies in MyApp.Web that ARE being bound properly by the current configuration // kernel.Bind&lt;IMemberQueries&gt;().To&lt;MemberQueries&gt;(); // kernel.Bind&lt;IGrantApplicationQueries&gt;().To&lt;GrantApplicationQueries&gt;(); // kernel.Bind&lt;IMailController&gt;().To&lt;MailController&gt;(); // These are dependencies in MyApp.Domain that ARE NOT being bound properly by the current configuration, so I have to declare them manually // They used to be injected automatically with version 2 of the conventions extention kernel.Bind(typeof(IRepository&lt;&gt;)).To(typeof(Repository&lt;&gt;)).InRequestScope(); kernel.Bind&lt;IUnitOfWork&gt;().To&lt;UnitOfWork&gt;().InRequestScope(); kernel.Bind&lt;IMemberServices&gt;().To&lt;MemberServices&gt;(); kernel.Bind&lt;IGrantApplicationServices&gt;().To&lt;GrantApplicationServices&gt;(); // These are dependencies that SHOULD NOT be bound by convention as they require a different scope or have unique naming kernel.Bind(typeof(EfDbContext)).ToSelf().InRequestScope(); kernel.Bind&lt;IConfigurationProvider&gt;().To&lt;WebConfigConfigurationProvider&gt;().InSingletonScope(); kernel.Bind&lt;IAuthorizationProvider&gt;().To&lt;MyAppAuthorizationProvider&gt;(); kernel.Bind&lt;IPrincipal&gt;().ToMethod(ctx =&gt; HttpContext.Current.User).InRequestScope(); kernel.Bind&lt;IGrantApplicationDocumentServices&gt;().To&lt;MySpecialNameGrantAplicationDocumentServices&gt;().InRequestScope(); } </code></pre>
0non-cybersec
Stackexchange
Your telling me this now?!.
0non-cybersec
Reddit
Found a visual bug where a minecart looks like it's floating, or moving on the side of the rail..
0non-cybersec
Reddit
Identifying Execution Plans with Probe Residual. <p>I am trying to find out Execution Plans that has <code>Probe Residual</code>. </p> <p>Need to know the following </p> <ol> <li>Which physical and logical operator has this <code>Probe Residual</code> </li> <li>What is the <strong>Cost%</strong> of that operator in the query </li> <li>Associated Execution plan </li> <li>Query Text</li> </ol> <p>Following is a try that I gave – but I am stuck for getting other details. How to get these details?</p> <p>Note: I am using SQL Server 2012</p> <pre><code>WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/sqlserver/2004/07/showplan' ) SELECT DECP.cacheobjtype, DECP.objtype, DECP.plan_handle, DEQP.objectid, DEQP.query_plan, DEST.[text] FROM sys.dm_exec_cached_plans AS DECP CROSS APPLY sys.dm_exec_query_plan(DECP.plan_handle) AS DEQP CROSS APPLY sys.dm_exec_sql_text(DECP.plan_handle) AS DEST WHERE 1 = DEQP.query_plan.exist( '//RelOp[ @PhysicalOp = "Hash Match" ]') </code></pre> <p>A <strong>Probe Residual</strong> Example</p> <p><a href="https://i.stack.imgur.com/DwHms.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DwHms.png" alt="enter image description here"></a></p> <p>References from blogs/articles of Grant Fritchey and Rob Farley below</p> <ol> <li><a href="http://www.scarydba.com/2011/09/15/probe-residual/" rel="nofollow noreferrer">Probe Residual on Hash Match - Home Of The Scary DBA</a></li> <li><a href="http://blogs.lobsterpot.com.au/2011/03/22/probe-residual-when-you-have-a-hash-match-a-hidden-cost-in-execution-plans/" rel="nofollow noreferrer">Probe Residual when you have a Hash Match – a hidden cost in execution plans</a></li> </ol> <hr>
0non-cybersec
Stackexchange
C++ string size not updated after assignment. <pre><code>int main(int argc, char const *argv[]) { const char *s1 = "hello"; string s2; s2 = s1; s2.reserve(10); s2[5] = '.'; s2[6] = 'o'; s2[7] = '\0'; cout &lt;&lt; "[" &lt;&lt; s1 &lt;&lt; "] [" &lt;&lt; s2 &lt;&lt; "]" &lt;&lt; endl; return 0; } </code></pre> <p>The above code does not print <code>s2</code> correctly. Instead of <code>hello.o</code> it prints <code>hello</code> always. It seems like the size of <code>s2</code> remains at 5 always after the first assignment. Why is this so?</p>
0non-cybersec
Stackexchange
[Image] Listen to Lucy . . . sometimes.
0non-cybersec
Reddit
Windows Server 2012 R2 4k Resolution. <p>I have recently purchased 4K monitor - using Windows 2012 Server R2 with NVIDIA GeoForce GT 630 graphics card through HDMI port.</p> <p>Currently, The maximum resolution I am getting is in: Display/Screen Resolution is 1920 x 1080.</p> <p>I am wondering how can I get 4K (3840*2160)result ?</p>
0non-cybersec
Stackexchange
Adding legend to a multi-histogram ggplot. <p>I'm trying to add a legend to a <code>ggplot</code> of two histograms, that may overlap and therefore would like to have them slightly transparent:</p> <pre><code>library(ggplot2) set.seed(1) plot.df &lt;- data.frame(x=c(rnorm(1000,30,1),rnorm(10000,40,5)), group=c(rep("a",1000),rep("b",10000))) </code></pre> <p>using:</p> <pre><code>ggplot(plot.df,aes(x=x,fill=factor(group)))+ geom_histogram(data=subset(plot.df,group=='a'),fill="red",alpha=0.5)+ geom_histogram(data=subset(plot.df,group=='b'),fill="darkgray",alpha=0.5)+ scale_colour_manual(name="group",values=c("red","darkgray"),labels=c("a","b"))+scale_fill_manual(name="group",values=c("red","darkgray"),labels=c("a","b")) </code></pre> <p>but all I get is:</p> <p><a href="https://i.stack.imgur.com/ESgjs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ESgjs.png" alt="enter image description here"></a></p> <p>What's missing?</p>
0non-cybersec
Stackexchange
Tar file changed as we read it. <p>Does tar skip any files that produce the error "file changed as we read it"? The version of tar I am using is 1.14.</p>
0non-cybersec
Stackexchange
$V=F_1^2$ over $F_2$: which operation to choose?. <p>I don't understand the following vector space: $$V=\{(x,y)|x,y\in F_1\}$$ and $V$ is over field $F_2$, ($F_1$ is a field too). My question is:</p> <p>Is $V$ really a vector space? I am not talking about the situation that $F_2\subset F_1$. An example that bothers me is: $F_1=R$ and $F_2=Z_p$ when $p$ is a prime. Let's assume that for any scalar $\alpha$: $\alpha * (x,y) =(\alpha x,\alpha y)$. Because I said $V$ is over $F_2$, $\alpha\in F_2$. When I calculate the term $\alpha x$, do I need to use the operations of $F_1$ or $F_2$? In this example the question is if to use mod $n$ calculation or the normal one of $R$? So who decides which operation do we use, $F_1$ or $F_2$?</p>
0non-cybersec
Stackexchange
My favorite quote.
0non-cybersec
Reddit
What is the value of $ \lim _{x \to 0} \frac{\sin (3x) \sin (5x)}x ?$. <p>What is the value of$$ \lim_{x\to 0} \frac{\sin (3x)\sin(5x)}{x}$$</p> <p>My answer is $1$, I multiplied by $x^2$ to get $\frac{\sin 3x}{x^2}$ so that they could = $\frac{\sin x}{x} = 1$.</p>
0non-cybersec
Stackexchange
Nice comedy.
0non-cybersec
Reddit
GTA: Sekiro Andreas.
0non-cybersec
Reddit
I graduate this semester with degrees in accounting and finance. This is the breakdown of what I had to take to earn a piece of paper that says I know something [OC].
0non-cybersec
Reddit
At least 33 US cities used water testing 'cheats' over lead concerns.
0non-cybersec
Reddit
Can an IIS worker process&#39;s Virtual Memory use exceed the Private Memory limit?. <p>For example, if I configure the following limits for an Application Pool in the "Recycling" settings:</p> <p><code>Virtual Memory: 512Mb</code><br> <code>Private Memory: 128Mb</code> - or "used memory" in IIS 6 parlance</p> <p>Can the process use, say, 90Mb of physical memory but have requested the use of 256Mb of Virtual memory and thus not trigger a recycle?</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
Do I not understand the flex-grow property?. <p>I'm afraid I must not understand flex-grow. If you jump to the JSFiddle below - the way I understand it, <code>.big</code> should be three times the size of the other <code>.flex-item</code>. As you can see, not so. Why?</p> <p><a href="http://jsfiddle.net/nrur6mmo/" rel="noreferrer">http://jsfiddle.net/nrur6mmo/</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-css lang-css prettyprint-override"><code>.flex-container { display:flex; padding:0 20%; } .flex-item { flex-grow:1; list-style-type:none; border:1px solid black; } .big { flex-grow:3; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="flex-container"&gt; &lt;li class="flex-item big"&gt;Why isn't this exactly three times the size of the other one?&lt;/li&gt; &lt;li class="flex-item"&gt;Not really working like expected I don't think...&lt;/li&gt; &lt;/ul&gt;</code></pre> </div> </div> </p>
0non-cybersec
Stackexchange
How to prevent automatic bookmarks in Nautilus from being created on (bind) mounts?. <p>I want to bind my Documents/Music/Pictures folders to a subfolder of a mounted share, but when I add binds in fstab, I keep on getting automatic bookmarks like so: </p> <p><a href="https://i.stack.imgur.com/uxh0p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uxh0p.png" alt="enter image description here"></a></p> <p>As you can see, all 'binded' folders show up twice in the Nautilus shortcut pane.</p> <p>This 'automatic bookmarking' only happens in the /media and /home/ folders - but is there any way to prevent it from happening in the /home/ folder, or perhaps with an option/flag in the fstab line? I tried adding <code>comment=x-gvfs-hide</code> as suggested in &lt;<a href="https://askubuntu.com/questions/193524/how-to-hide-bind-mounts-in-nautilus">link</a>>, but this doesn't work.</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
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
Trying to scrape pivot results by moving row to adjacent column. <p>I am running a VBA macro that takes a value you enter, feeds it into a filter on a pivot table, then uses the pivot table results to generate a new resultant table with size (:,2) with the separator row (top in select field) brought to the right of the other values (as an index) to then take the results back to a different sheet in the workbook. </p> <p><strong>Some important notes:</strong></p> <ol> <li>All data is in str format </li> <li>All index values are entirely numbers </li> <li>Some data values start with numbers </li> <li>Some sections where an index is listed 2x in the database instead have up to 16 datapoints before a new index is passed. This is the reason my original code with just every 8 was not working. </li> <li>The results may be any length from 8 datapoints to hundreds, xlDown has not been working for setting the range so I just set A1:A1000</li> </ol> <p><strong>Current results:</strong> </p> <ol> <li>Everything seems to work until I hit an index with multiple datasets in which case my (Row-2) mod 8 = 0 function is thrown off </li> <li>Index is copying over properly in those cases and deleting the blank row </li> <li>Data from final table is pulled to other spreadsheet reliably </li> </ol> <p><strong>Some things I have tried:</strong> </p> <ol> <li>IsNumeric seems to parse strings starting with a number and throwing it off as True </li> <li>Because not all values contain 8 datapoints I tried adding an adjustment value to fix the indexing if it was not numeric but still at the correct index </li> <li><p>Tried just dragging the value down for 16 rows so if a number is found it will overwrite. This did NOT work. </p> <pre class="lang-vb prettyprint-override"><code>ActiveSheet.PivotTables("PivotTable1").PivotFields("searchcode").CurrentPage = Sheets("report").Range("B4").Value Range("A5:A1000").Select Selection.copy Sheets("scratch").Select Range("A1").Select ActiveSheet.Paste ActiveSheet.Range("A1", "A1000").Select Dim Myrange As Range Dim Myrow As Range Dim Adjust As Integer Adjust = 2 Set Myrange = Selection For Each Myrow In Myrange.Rows If IsNumeric(Myrow.Row) And ((Myrow.Row = Adjust Or (Myrow.Row - Adjust) Mod 9 = 0)) Then Sheets("scratch").Range("B" &amp; Myrow.Row + 1).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 2).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 3).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 4).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 5).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 6).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 7).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 8).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 9).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 10).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 11).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 12).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 13).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 14).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 15).Value() = Range("A" &amp; Myrow.Row).Value() Sheets("scratch").Range("B" &amp; Myrow.Row + 16).Value() = Range("A" &amp; Myrow.Row).Value() Range("A" &amp; Myrow.Row).Clear ElseIf (Not (IsNumeric(Myrow.Row))) And ((Myrow.Row = Adjust Or (Myrow.Row - Adjust) Mod 9 = 0)) Then Adjust = Adjust + 1 End If Next Myrow Application.CutCopyMode = False ActiveSheet.Range("A1:A1000") = [index(lower(A1:A1000),)] ActiveSheet.Range("A1:A1000") = [index(trim(A1:A1000),)] ActiveSheet.Range("A1:A1000").Select Selection.Replace What:="(blank)", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Selection.Replace What:="-", Replacement:=" ", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Selection.Replace What:="â€", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Selection.Replace What:="~*", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False </code></pre></li> </ol> <p><em>For this, my pivot table looks something like this:</em> </p> <pre><code>Filter 1 (All) Filter 2 (Code) Row Labels Index 1 data1 data2 data3 data4 data5 data6 data7 data8 Index 2 data1 data2 data3 data4 data5 data6 data7 data8 Index 3 data1 data2 data3 ... </code></pre> <p><em>What I want:</em> </p> <pre><code>Filter 1 (All) Filter 2 (Code) Row Labels data1 Index1 data2 Index1 data3 Index1 data4 Index1 data5 Index1 data6 Index1 data7 Index1 data8 Index1 data1 Index2 data2 Index2 data3 Index2 data4 Index2 data5 Index2 data6 Index2 data7 Index2 data8 Index2 data1 Index3 data2 Index3 data3 Index3 ... </code></pre>
0non-cybersec
Stackexchange
Examples of computing Ext and Tor functors?. <p>So I understand in theory the definition of Ext and Tor, but when it comes to actually computing them, I'm stuck. For example, could someone show me how to compute $\text{Ext}(\mathbb{Z}/m\mathbb{Z}, \mathbb{Z}/n\mathbb{Z})$? I tried this by taking an injective resolution ($0 \to \mathbb{Z}/m\mathbb{Z} \to \mathbb{Q}/\mathbb{Z} \to \mathbb{Q}/\mathbb{Z} \to 0$?) and I got an exact sequence with $\text{Ext}^1(\mathbb{Z}/m\mathbb{Z}, \mathbb{Q}/\mathbb{Z}) = 0$, but I don't see what to do next?</p> <p>P.S. No, this is not a homework question.</p>
0non-cybersec
Stackexchange
What other original Game Boy games should be remade by Nintendo?. With the Game Boy at the ripe old age of 30, we’ve seen Nintendo revisit its library for fresh remakes of some classic dot matrix display titles. In 2017 we got a remake of Metroid II: Return of Samus on the 3DS (**Metroid: Samus Returns**). In 2018 Game Freak remade Pokémon Yellow as **Pokémon: Let's Go, Pikachu! and Let's Go, Eevee!** And now in 2019 we’re getting a great-looking remake of **The Legend of Zelda: Link’s Awakening**. So far, all of these remakes have been handled with love and care, and were madd mainly because the older games just haven’t aged as well as their home console contemporaries, and are increasingly hard to find. Knowing that, what other classic (original B&W) Game Boy games would you like to see remade like these modern titles? Personally, I’d love remakes of Super Mario Land and its sequels. Nintendo hasn’t remade a 2D Mario game in a long time, so I’m interested to see how they would handle it.
0non-cybersec
Reddit
[NSV] My husband is so supportive :). I took off my shirt, and my husband said " LOOK AT YOU! YOUR JUST MELTING AWAY! GO LOOK IN THE MIRROR!" In a very serious, excited tone. He isnt one to get over excited, so it was a pretty big deal :) We are on the diet together, and while he seems to be just shrinking away, I feel amazing, but feel like I look the same. So I went into the bathroom and its like overnight, I can SEE progress! I am so incredibly happy, not to mention, I went car shopping today and it wasnt a hassle getting in and out of cars, walking around the lot and spending the whole day active! Whereas, I used to get sooo tired, and couldnt breathe and had no energy. I love my life now, and I love it more and more everyday. Thank you Keto <3
0non-cybersec
Reddit
Boot loader in pxe. <p>I´m setting up a pxe/tftp server. I´m for now setting it up with pxelinux, from syslinux system. I saw this table wich make me doubt about if I made the right choice. I need to know wich of those bootloader is most widely used and can cover all (or the most) of next requeriments:</p> <pre><code>Boot diagnosis tools Boot Live OS (linux, etc) Install OS (Windows, Linux ...) Boot diskless systems (windows and Linux ISCSI) </code></pre> <p>Also wish to know if is possible booting from pxe with any boot loader that provides remote vnc access, in order to make full remote OS installations?</p>
0non-cybersec
Stackexchange
Provoke or avoid ligatures in micro typography. <p>In German language there exists a word like <code>Wachstube</code>.</p> <p>It has different meanings when split into syllables:</p> <ol> <li>Wachs-tube</li> <li>Wach-stube</li> </ol> <p>No problem, when the word crosses a line -- one can fix like above with a forced line break.</p> <p>But how to set it up correctly without any line break to make it read best to get its correct meaning? It is about to <strong>provoke or avoid</strong> some kind of ligatures ...</p> <p>Of course it might depend on the font one chooses and what ligatures are provided within that font. What is the correct way to make the reader get the correct meaning -- when the word won't cross a line?</p> <p>Any hints welcome!</p>
0non-cybersec
Stackexchange
React Native Hamburger onPress Issue. <p>I am trying to navigate the drawer by including onPress() on the hamburger of the header but it didn't work with the navigation.toggleDrawer() function. </p> <p>Here is the code :</p> <pre><code>import * as React from 'react'; import { Button, View } from 'react-native'; import { createDrawerNavigator } from '@react-navigation/drawer'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import { Ionicons } from '@expo/vector-icons'; function HomeScreen({ navigation }) { return ( &lt;View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}&gt; &lt;Button onPress={() =&gt; navigation.navigate('Notifications')} title="Go to notifications" /&gt; &lt;/View&gt; ); } function NotificationsScreen({ navigation }) { return ( &lt;View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}&gt; &lt;Button onPress={() =&gt; navigation.navigate('Home')} title="Go back home" /&gt; &lt;/View&gt; ); } const Drawer = createDrawerNavigator(); function draw() { return ( &lt;Drawer.Navigator initialRouteName="Home" &gt; &lt;Drawer.Screen name="Home" component={HomeScreen} options={{ drawerIcon: () =&gt; &lt;Ionicons name='md-home' size={30} color='#130f40' /&gt;, }} /&gt; &lt;Drawer.Screen name="Notifications" component={NotificationsScreen} options={{ drawerIcon: () =&gt; &lt;Ionicons name='md-notifications' size={30} color='#130f40' /&gt;, }} /&gt; &lt;/Drawer.Navigator&gt; ); } const Stack = createStackNavigator(); function Def(){ return ( &lt;NavigationContainer&gt; &lt;Stack.Navigator&gt; &lt;Stack.Screen name="Home" component={draw} options={{ title: 'My home', headerStyle: { backgroundColor: '#5f27cd', }, headerTintColor: '#fff', headerTitleStyle: { fontWeight: 'bold', }, headerLeft: () =&gt; (&lt;Ionicons name='md-menu' style={{paddingLeft: "20px"}} size={30} color='white' onPress={() =&gt; navigation.toggleDrawer()} /&gt;), }} /&gt; &lt;/Stack.Navigator&gt; &lt;/NavigationContainer&gt; ) } export default Def; </code></pre> <p>I had added the navigation.toggleDrawer() function in Ionicons with onPress() function but it didn't work. Error says navigation is not define. </p>
0non-cybersec
Stackexchange
Saw this on my way to my school bus stop this morning.
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
Under The Radar: Kings Bounty .
0non-cybersec
Reddit
Gives tickets to people for doing the same thing, yet can't even follow their own logic.
0non-cybersec
Reddit
Cats fighting.
0non-cybersec
Reddit
How To Make a Wood Transfer Dungeon Master Screen.
0non-cybersec
Reddit
rEFIt successfully installed, but tools don&#39;t work. <p>I recently messed up and accidentally deleted the partition on my Macbook Pro that had all of my user data/files/etc for MacOS. I was using bootcamp and had a Windows partition as well. I was already able to reinstall MacOS, it's working properly now. However, I can't boot to Windows.</p> <p>Apparently I need to fix the pseudo master boot record. I am trying to use rEFIt's Start Partitioning tool to do this. I successfuly set up rEFIt, but when I reboot and select the Start Partitioning Tool, I get the following text:</p> <pre><code>rEFIt - Partitioning Tool Starting gptsync.efi Internal hard disk device not found! Error: Not Found returned from gptysnc.efi *Hit any key to continue* </code></pre> <p>If I try to use the Start EFI Shell option, the shell never loads. Obviously, there is a problem with rEFIt, but I have no idea where it's coming from or what I can do about it. I couldn't find anyone else with the exact error I have, does someone know any potential solutions to my problem?</p> <p>Thanks, Josh</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
PsBattle: This Table Tennis player at the Commonwealth Games.
0non-cybersec
Reddit
What do people mean when they talk about forward secrecy in ciphers?. <p>I've heard several people and websites talk about ciphers that have forward secrecy. I know about forward secrecy in key agreement protocols, e.g. <a href="https://en.wikipedia.org/wiki/Ring_learning_with_errors" rel="nofollow noreferrer">RLWE</a>, (<a href="https://en.wikipedia.org/wiki/Elliptic-curve_Diffie%E2%80%93Hellman" rel="nofollow noreferrer">EC</a>/<a href="https://en.wikipedia.org/wiki/Supersingular_isogeny_key_exchange" rel="nofollow noreferrer">SI</a>)<a href="https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange" rel="nofollow noreferrer">DH</a>, <a href="https://en.wikipedia.org/wiki/Quantum_key_distribution" rel="nofollow noreferrer">QKD</a>, etc. This could be what they're talking about and it's a simple case of misused terminology (I've mostly heard it in articles about cipher suites), but I've also heard this used in the context of hash based signature algorithms so I'm wondering if people are using a special variation of a stream cipher or some other method.</p>
0non-cybersec
Stackexchange
unique ID creation for each object. <p><strong>Overview :</strong> There is an array of <code>product group</code> object and each product group having array of <code>items</code>. Product group object having unique ID but items array does not have any unique ID assigned. Please find below the JSON object.</p> <pre><code>const productList = [{ productGroup : 'PG1', index: 1, items: [{ item1: 'item1 value', item2: 'item2 value' },{ item1: 'item1 value', item2: 'item2 value' },{ item1: 'item1 value', item2: 'item2 value' }] }, { productGroup : 'PG2', index: 2, items: [{ item1: 'item1 value', item2: 'item2 value' },{ item1: 'item1 value', item2: 'item2 value' }] }]; </code></pre> <p><strong>Requirement :</strong> Assign some unique ID for each items object of <code>items</code> array based on the product group.</p> <p><strong>I tried so far :</strong> <a href="https://jsfiddle.net/h84wLqz9/" rel="nofollow noreferrer">working solution : concat index of product group with the index of each list items</a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const productList = [{ productGroup : 'PG1', index: 1, items: [{ item1: 'item1 value', item2: 'item2 value' },{ item1: 'item1 value', item2: 'item2 value' },{ item1: 'item1 value', item2: 'item2 value' }] }, { productGroup : 'PG2', index: 2, items: [{ item1: 'item1 value', item2: 'item2 value' },{ item1: 'item1 value', item2: 'item2 value' }] }]; const itemList = productList.map(obj =&gt; { obj.items.map((itemObj, index) =&gt; { itemObj.productGroup = obj.productGroup; itemObj.pgIndex = obj.index; itemObj.itemIndex = obj.index + '' + index; }); return obj.items; }); var mergedListItems = itemList.reduce((arr, arrNext) =&gt; arr.concat(arrNext)); console.log('mergedListItems', mergedListItems);</code></pre> </div> </div> </p> <p>Is this approach good ? If No, then can you please help me out to find the best approach to do this.</p>
0non-cybersec
Stackexchange
Informant didn't buy drugs from couple killed in police no-knock raid..
0non-cybersec
Reddit
Opinions on my new routine. I have recently changed up my routine to keep things fresh. So far I am enjoying it, but would like to hear some of your opinions on whether this will work long-term(5-6 months) for my goals. I am an intermediate lifter with a decent level of strength and overall fitness. My main goals are to put on around 10 pounds of muscle and minimize the fat gain in the process. Thanks in advance for helpful and honest replies! Barbell Squat(3x5-7)(3 min rest) -ss- Chin-up(2xmax) Barbell Bench(3x5-7)(3 min rest) Barbell complex(6x6)(1 min rest between circuits) Mil press, Sumo squat, barbell row, upright row, stiff leg deadlift barbell curl(2x6-8)&(1x10) bicycle sit-up(2xmax) --[TUES] - RUN TREADMILL [WED] - BW and dumbbells ---------------------------------------------------- pull ups - wide (3 sets) -ss- Dumbbell lunge(2x12-15) Jump lunge(2xmax) weighted chest dip(3x12-15) -ss- Single arm dumbbell row(3x8-10) Dumbbell side lateral raise(3x10-12) -ss- dumbbell single leg calf raise(2x12-20) Ab exs (2-3 sets) --[THUR] - Rest [FRI] - Barbell B ---------------------------------------------------- Sumo deadlift(3x5-7)(2-3 min rest) Shoulder press(3x5-7)(2-3 min rest) Front squat(6x6)(1 min rest) Incline bench(6x6)(1 min rest) Reverse grip row(6x6)(1 min rest) Barbell curl(2x6) & (1x8-10)* upright row(2 sets) sit-ups(2xmax) long lever pushup plank(2xmax) [SAT] - Pull-ups, Accs [Sun] - RUN TREADMILL
0non-cybersec
Reddit
'Schwarzer Montag' - Protest in Berlin yesterday against Poland's new abortion laws.
0non-cybersec
Reddit
Compiler complaining of undeclared variable in a macro. <p>I am using a macro defined in the same source file as:</p> <pre><code>#define MY_MACRO (a, b,...) (...) </code></pre> <p>The macro is being used later in the file.</p> <p>However, the compiler complains:</p> <p>error: a undeclared (first use in this function).</p> <p>It's really weird.. am I missing something obvious?</p>
0non-cybersec
Stackexchange
How do you get through life like this.
0non-cybersec
Reddit
Edges of tree inside the state of a FSM are not displayed correctly. <p>I am trying to draw a FSM (with \usetikzlibrary{automata}) that has trees as states. With my current code, the edges of trees inside states are only drawn incompletely. What may be causing this and how can I fix it?</p> <p>My code:</p> <pre><code>\begin{tikzpicture}[-&gt;] \node[state, inner sep=0] (q) { \begin{tikzpicture}[-] \node {$ \{ q_I, f, g, h, i \} $} child {node {$ \{ q_I \} $}} child {node {$ \{ f, g, h \} $} child {node {$ \{ g \} $}} child {node {$ \{ h \} $}} }; \end{tikzpicture} }; \end{tikzpicture} </code></pre> <p>The result:</p> <p><a href="https://i.stack.imgur.com/xWl6i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xWl6i.png" alt="tree inside state"></a></p>
0non-cybersec
Stackexchange
How to setup a FTP site with permission to upload, but not download or remove files?. <p>I'm currently trying to set up a FTP site which only allows users to upload files using vsftpd in archlinux. After some googling I didn't find any satisfactory solutions.</p> <p>The current partial solution is as follows. In vsftpd.conf, I set download_enabled to FALSE and write_enable to TRUE. I created a user in linux that is only used for this ftp site.</p> <p>Specifically, my problem is:</p> <p>Are there any ways to differentiate between permission for uploading files and permission for deleting files, and accordingly, enabling one while disabling the other?</p> <p>The relevant softwares, vsftpd and archlinux, are up to date.</p>
0non-cybersec
Stackexchange
If anyone was given the challenge to fall asleep in 10 minutes in exchange for a million dollars, almost everyone would fail miserably.. You'd be too jacked to go to sleep. There might be a few exceptions though... If someone told you you would win a million dollars, that would be real hard to just fall asleep with that pressure. Edit: Drugs and Alcohol woukd be cheating, wouldn't it?
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 received the HPV Vaccine today. 32 years old.. I recently saw a comment on reddit that was a response to another comment that I'm not sure enough people seen. So I'm making a post to help raise awareness that the age limit for the HPV vaccine has been raised. I was HPV positive for several years. Last year my pap smear finally came back negative, it had cleared itself up. But I was still too old to receive the vaccine. The age limit was 26. Today, I had a doctor's appointment and mentioned right away that I had read the age limit was increased. My doctor said "I read that too! Let me go get it!" A few minutes later a nurse came in and administered the shot. It's one out of 3 total shots I'll need. But I am so happy and I feel like a huge weight has been lifted off me. When my insurance started covering the HPV vaccine I was already too old and had to come to terms with never being able to be vaccinated against something so common. That changed for me today and I hope that the knowledge of the age increase reaches other people who are interested in being vaccinated.
0non-cybersec
Reddit
How to exploit this buffer overflow. Where is the return address?. <p>I'm practicing doing buffer overflows and, weirdly, I can do some but not others and it is not clear to me why. Here is the example code:</p> <p><em>Code that I need help with:</em>:</p> <pre><code>#include &lt;stdio.h&gt; int main(int argc, char * argv[]) { char buf[256]; if(argc == 1) { printf("Usage: %s input\n", argv[0]); exit(0); } strcpy(buf,argv[1]); printf("%s", buf); } </code></pre> <p>I compile this code with gcc -z exestack -fno-no-stack-protector</p> <p>Questions:</p> <ol> <li><p>I understand that the general technique is to write to a buffer such that I overwrite where the next instruction register looks in memory. So my question is, where do I insert a breakpoint in this code to figure out where to overwrite? If I do disas main I get:</p> <p>0x080497b1 &lt;+60>: add $0x10,%esp</p> <p>0x080497b4 &lt;+63>: sub $0xc,%esp</p> <p>0x080497b7 &lt;+66>: push $0x0</p> <p>0x080497b9 &lt;+68>: call 0x804fd50 </p> <p>0x080497be &lt;+73>: mov 0x4(%eax),%eax</p> <p>0x080497c1 &lt;+76>: add $0x4,%eax</p> <p>0x080497c4 &lt;+79>: mov (%eax),%eax</p> <p>0x080497c6 &lt;+81>: sub $0x8,%esp</p> <p>0x080497c9 &lt;+84>: push %eax</p> <p>0x080497ca &lt;+85>: lea -0x108(%ebp),%eax</p> <p>0x080497d0 &lt;+91>: push %eax</p> <p>0x080497d1 &lt;+92>: call 0x8049028</p> <p>0x080497d6 &lt;+97>: add $0x10,%esp</p> <p>0x080497d9 &lt;+100>: sub $0x8,%esp 0x080497dc &lt;+103>: lea -0x108(%ebp),%eax</p></li> </ol> <p>If I add a breakpoint at *main+97, and then run AAAAAA I get the following:</p> <pre><code>Breakpoint 1, 0x080497d6 in main () (gdb) info registers eax 0xbffff1f0 -1073745424 ecx 0xbffff575 -1073744523 edx 0xbffff1f0 -1073745424 ebx 0x80da000 135110656 esp 0xbffff1e0 0xbffff1e0 ebp 0xbffff2f8 0xbffff2f8 esi 0x80da000 135110656 edi 0x80481e8 134513128 eip 0x80497d6 0x80497d6 &lt;main+97&gt; eflags 0x246 [ PF ZF IF ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 </code></pre> <p>Am I putting the breakpoint in the right place to help with this overflow? Right after the call to strcpy? Also, I see that ebp is at <strong>0xbffff2f8</strong>. Does this mean that I want to overwrite the address right next to this at 0xbffff2fc to point back inside the buffer and I will be done? Because that does not appear to work: my buffer is a NOP sled and shell code.</p> <p>Thanks for any help!</p>
1cybersec
Stackexchange
how to null out a insert statement?. <p>I am doing a SQLi-Quiz. Below is the orignal statement.</p> <pre><code>insert into users(name,pass) values('bob', [injection point here]) </code></pre> <p>The statement is heavily filterd because the website which supplys the quiz doesn't want someone breaks the whole database. I can't find any way to get this one done so I search a hint on the forum of the quiz. From the search results I know that the only way to make this quiz done is, someone must nullify the whole orginal query. It means that the value "bob" must be nullified too. </p> <p>As I know I can't influence the query before the injection point. Anyone has an idea?</p>
1cybersec
Stackexchange
Baphomet in snowy woods....
0non-cybersec
Reddit
Scumbag Atheist(x-post from Atheism. I am one.).
0non-cybersec
Reddit
How to install the IIS in Windows 7?. <p>I have tried to install IIS in My local machine in windows 7. My purpose is to install the IIS &amp; change its Seesion timeout property because I want to increase the Session time out Period. So I went to <code>Control Panel</code> -> <code>All Control Panel Items</code> -> <code>Programs and Features</code> then clicked Windows features on &amp; off.</p> <p>After that clicked on Internet Information Service then Web Management Tool then IIS Management Console then pressed ok.</p> <p>It installed but when I went to see in <code>Inetpub\wwwroot</code> I got nothing. When I went to see <a href="http://localhost" rel="nofollow noreferrer">http://localhost</a> result shows blank page.</p> <p>I tried to search in Google but still I didn't get the answer. So please help me sort out this problem.</p>
0non-cybersec
Stackexchange
Invoices kept in document with user information in no sql database is recommended?. <p><strong>I have a application which has tenant details like</strong> </p> <pre><code>{ "name" : "", "Address" : "" , ... Bills :[ current : {"rent":"" ,"electricity":"" ,"date":""}, previous : [{"rent":"" ,"electricity":"" ,"date":""}, {"rent":"","electricity":"" ,"date":""}] ] } </code></pre> <p><strong>I have Bills of a tenant in the tenant document itself</strong> , is this model recommended / acceptable ? </p> <p>The reason would be silly , I thought since the scope of bill is only viewing and won't do any computations on bills , So keeping it in a separate document would be a extra work . So I kept in this tenant document itself .</p> <p>So Keeping bills in this type of document is good or bad ?</p> <p>If I get some clarity it would be nice , Thanks .</p>
0non-cybersec
Stackexchange
Currently experiencing my first professional job, I've had to ask my boss twice to stop using the word "cunt" in front of me. Do I need to toughen up and get used to this?. Edit: I live in the US- Midwest specifically Edit2: Thank you everyone for the advice and support. As there is no HR department here it is pretty clear I need to find another job. To those of you who think refraining from using gender slurs impedes your ability to express yourself, perhaps you should learn to express yourself more appropriately because it's degrading. There is always an intelligent and fulfilling way to express yourself without resorting to racial/ethinic/or gender slurs.
0non-cybersec
Reddit
ELI5 Why do our bodies need sleep?.
0non-cybersec
Reddit
Intellij error=2 No such file or directory. <p>Installed intellij and added sdk path to project structure, but when i try to run i get:</p> <pre><code>Error: Cannot run program "/home/$USER/java/jdk1.8.0_121/bin/java" (in directory"/home/$USER/.intelliJIdea2016.3/system/compile-server"): error=2, No such file or directory </code></pre> <p>Both files (/home/$USER/java/jdk1.8.0_121/bin/java and /home/$USER/.intelliJIdea2016.3/system/compile-server) exists.</p> <p>I am using Ubuntu 16.10</p>
0non-cybersec
Stackexchange
Folder ACLs and SSH client unable to access folder (Permission denied). <p>The directory <code>/run/media/user/disc</code> is a directory that is on a SSH server (Fedora 25). Its group is sftponly. I am trying to access to that directory through SSH using a user that is part of sftponly group. Unfortunately I cannot access (read) to such directory (Permission denied). The access control list looks good to me, but there is still some problem:</p> <pre><code># getfacl /run/media/user/disc getfacl: Removing leading '/' from absolute path names # file: run/media/user/disc # owner: root # group: sftponly user::rwx group::rwx group:sftponly:r-x mask::rwx other::rwx </code></pre> <p>Any idea? Thank you</p>
0non-cybersec
Stackexchange
Cannot convert from type object to long. <p>I have a hashtable named <code>table</code>. The type value is <code>long</code>. I am getting values using <code>.values()</code>. Now I want to access these values. </p> <pre><code>Collection val = table.values(); Iterator itr = val.iterator(); long a = (long)itr.next(); </code></pre> <p>But when I try to get it, it gives me error because I can't convert from type <code>object</code> to <code>long</code>. How can I go around it?</p>
0non-cybersec
Stackexchange
[BlogEngine.NET] Compression error. <p><br> I have a <a href="http://www.dotnetblogengine.net/" rel="nofollow">blogengine.net</a> website hosted on godaddy and I'm having issues when viewing it with Firefox and Chrome. On Firefox I get this error : </p> <pre><code>Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. </code></pre> <p>On Google Chrome however, I only get a white page like if there was nothing that would load.</p> <p>I'm wondering if it's the server (GoDaddy hosting), the website or both together that is causing this problem. When I run it directly from VS2010 I don't get any errors.</p> <p>What could cause that and how could I solve it.</p> <p>Thanks</p>
0non-cybersec
Stackexchange
Switch was one of the most popular Black Friday items!.
0non-cybersec
Reddit
Puppers only no hoomans allowed.
0non-cybersec
Reddit
Why don&#39;t we consider the zero subspace (which is readily $T$-invariant) in the definition of direct sum of linear operators?. <p><img src="https://i.stack.imgur.com/6YFRU.jpg" alt="enter image description here"></p> <blockquote> <p>Why don't we consider the zero subspace (which is readily $T$-invariant) in the definition of direct sum of linear operators?</p> </blockquote> <p>REF: <a href="http://rads.stackoverflow.com/amzn/click/0071794565" rel="nofollow noreferrer">Schaum's Outline of Linear Algebra</a></p>
0non-cybersec
Stackexchange
Is the preimage of the non-normal locus a divisor?. <p>Let $X$ be a complex, affine variety. Let $\nu:\tilde X\to X$ be the normalization of $X$ and denote by $D\subseteq X$ the closed set of points where $\nu$ fails to be an isomorphism, i.e. $D$ is the non-normal locus of $X$. </p> <p><strong>Question 1.</strong> Under which conditions is $D\subseteq X$ pure of codimension one? I can remove all codimension one components of $D$ and end up with a variety whose nonormal locus has codimension at least two. So, if $X$ was Cohen-Macaulay then I would already know that $D$ must be pure of codimension one. <em>Can I do with less than the Cohen-Macaulay assumption?</em></p> <p><strong>Question 2.</strong> Let $Z\subseteq D$ be an irreducible component of $D$. What can be said about the dimension of the irreducible components of $\nu^{-1}(Z)$? <br>More specifically, what can be said if $D$ is pure of codimension one - is $\nu^{-1}(D)$ also of codimension one in this case?</p> <p>Thanks a lot in advance!</p>
0non-cybersec
Stackexchange
Routing internet through ethernet to a computer without a Wireless adapter. <p>I'm setting up a small home network. I have a laptop which connects to internet wirelessly- that works fine. I have a desktop connected to this laptop by an ethernet cable which I'd like to access the internet with. In the past, I have used a different laptop to do this and had no problems doing so.</p> <p>Both computers run Windows 7. I have tried setting up a homegroup and disabling Windows firewall, as well as restarting both computers. I can share data but my internet connection can not be accessed through the desktop. I've looked at the Windows ICS resource but it was no help</p> <p>(I understand USB network adapters are cheap, I have one on the way but that doesn't solve this issue.)</p>
0non-cybersec
Stackexchange
How to make socket.io asynchronous method synchronous?. <p>I was following the code snippet here <a href="https://github.com/socketio/socket.io-redis#redisadapterclientsroomsarray-fnfunction" rel="nofollow noreferrer">https://github.com/socketio/socket.io-redis#redisadapterclientsroomsarray-fnfunction</a></p> <pre><code>io.in('room3').clients((err, clients) =&gt; { console.log(clients); // an array containing socket ids in 'room3' }); </code></pre> <p>to get the clients in a particular room.</p> <p>Is there a simple/idiomatic way I can make this snippet synchronous? I want to loop over an array of rooms and synchronously get the count of users <code>clients.length</code> in each room (ie don't iterate over the loop until the user count of the current room has been retrieved.)</p>
0non-cybersec
Stackexchange
Sponges.
0non-cybersec
Reddit
Can Ubuntu nexus 7 installer be ported to Asus Transformer TF700?. <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://askubuntu.com/questions/207387/can-i-use-the-ubuntu-nexus-7-desktop-installer-on-other-tablets">Can I use the Ubuntu Nexus 7 Desktop Installer on other tablets?</a> </p> </blockquote> <p>Is this something that would be possible? Would be very nice if that would be possible, TF700 has full root and even NVflasher available for us :)</p>
0non-cybersec
Stackexchange
hyperlink on equation number. <p>I would like to link an equation to a sentence at the end of the document (e.g. code below) but placing the hyperlink on the equation number and not on the equation itself? Is it possible? THanks for your help.</p> <pre><code>\begin{equation} \hyperlink {label1} { uWiT = min( TDec_{y-1} , TJan_{y} , TFeb_{y} )} \end{equation} ... ... \hypertarget{label1}{Equation minimum temperature} </code></pre>
0non-cybersec
Stackexchange