text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
How to send commands to gvim when using --remote?. <p>I want to look at the output of a command in a GVim window that's already opened.</p>
<p>To look at the output of a command in a new GVim window, I'd do:</p>
<pre><code>mycommand | gvim -
</code></pre>
<p>To open a file an existing window, I'd do:</p>
<pre><code>gvim --remote-silent myfile
</code></pre>
<p>How do I use them together? <code>mycommand | gvim --remote-silent -</code> does <strong>not</strong> work (it thinks <code>-</code> is a file in the current directory).</p>
| 0non-cybersec
| Stackexchange |
How to learn to terminate fiber?. I'm a lowly network tech for a VoIP provider and I'm interested in learning how to terminate fiber for SMB customers (and person knowledge).
Any resources or suggestions? | 1cybersec
| Reddit |
Does anyone want to buy an old theremin?. I haven't touched mine in years | 0non-cybersec
| Reddit |
Why is $\lim_{(x,y)\to(0,0)}\frac yx \ne 0$?. <p>If I have the two following limits:
$$\lim_{x \to 0} \frac{0}{x} \tag1$$
$$\lim_{(x,y) \to (0,0)} \frac{y}{x} \tag2$$</p>
<p>Can someone explain to me, in a very elaborate way, why is the first equal to $0$, and the second not?</p>
| 0non-cybersec
| Stackexchange |
Same bikini sixteen years later [Pics] [NSFW]. [Here's me](https://imgur.com/a/6Xkozz4) in a side-by-side in the same bikini--I'm 19 on the left and 35 on the right. I think I look better now, and I sure as hell feel better. :)
Down 12 pounds as of yesterday and now trying my hand at barre to tone up. | 0non-cybersec
| Reddit |
How to analyse correlations in Ms Excel. <p>Price change % is my column of interest. I would like to measure whether or not there are correlations between Price change % and any of the other columns. What visualisations would be best for this?</p>
<p>What I've tried so far is creating pivot tables and grouping by Production year, Category, Margin % and Category 2 and sorting by Price change %. I've then attempted a scatter graph by displaying the Production year on the x axis and Margin% on the y axis. Does this make any sense? Or must I have the Price change % as one of the axis? Also, I haven't been able to introduce attentional measures to the scatter graph. Would it be beneficial to do so to measure the correlation when multiple groups are combined. Eg a certain combination of Category 2 + Production year.</p>
<p>What MS visualisations or other tools in Excel would you recommend for me to use in order to assess correlations?</p>
<p><a href="https://i.stack.imgur.com/MtM2H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MtM2H.png" alt="enter image description here"></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 |
Monotonically increasing polynomial intersection. <p>Say that I have two strictly monotonically increasing polynomials of the form
$f(x)=\sum^N_{i=0} a_ix^i, g(x)=\sum^N_{i=0} b_ix^i,$
with all coefficients $\geq 0$. Does it follow that they only intersect once in the interval $(0,\infty)$?</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 |
Artist knows nothing about Pokemon. Draws a bunch of Pokemon anyway. | 0non-cybersec
| Reddit |
The glorious Galaxy Note 7 is what happens when a company isn't afraid to go crazy. | 0non-cybersec
| Reddit |
Background image in react-admin Login page. <p>I want to use a image to be put in as background image of login page in <code>react-admin</code> how can I do this ? </p>
<p>P.S: I'm using <code>TypeScript</code></p>
| 0non-cybersec
| Stackexchange |
ping server in namespace from remote machine. <p>If I run web server in default namespace of <code>SERVER</code> machine I can <code>curl</code> it from <code>REMOTE</code> machine doing that:</p>
<pre><code>curl http://SERVER:80/
</code></pre>
<p>Now I put web server in namespace <code>nested</code> with providing <code>veth</code> peered with <code>nested's</code> network interface:</p>
<pre><code>sudo ip link add veth type veth peer name vpeer
sudo ip link set vpeer netns nested
sudo ip addr add 192.168.3.77/24 dev veth
sudo ip link set veth up
sudo ip netns exec nested ip addr add 192.168.3.78/24 dev vpeer
sudo ip netns exec nested ip link set vpeer up
sudo ip netns exec nested ip route add default via 192.168.3.77
</code></pre>
<p>so I can ping it from default namespace:</p>
<pre><code>curl --interface veth 192.168.3.78:80/
</code></pre>
<p>My question: how to ping web server in <code>nested</code> namespace from remote machine?
Seems that <code>curl http://SERVER:80/</code> becomes to <code>lo</code> interface. Can I point external requests to <code>veth</code> interface or how to configure pairing?</p>
| 0non-cybersec
| Stackexchange |
Game Informer is now accepting questions for the upcoming podcast.. | 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 |
cygwin awk output to windows line delimeters. <p>I could find the way to print zip entries' list and forward to a txt file.</p>
<pre><code>unzip -l my.zip | awk '{print $4}' > my.txt
</code></pre>
<p>When I open the file <code>my.txt</code> in windows' notepad the line delimiters ignored and all lines renders in a single line.</p>
<p>How can I make those piped lines to have appropriate line delimiters?</p>
| 0non-cybersec
| Stackexchange |
Statements after END in stored procedure. <p>I came across an interesting problem today. I was altering a stored procedure and put a select statement at the very end. It was meant to be temporary and just for working with the data. I was surprised to find out later that the statement got saved and was executing whenever the SP ran.</p>
<pre><code>SET ANSI_NULLS ON
GO
-- Comments usually go here and are saved as part of the SP
ALTER PROCEDURE [dbo].[MySP]
@param INT
AS
BEGIN
--Your normal SQL statements here
END
--You can also add SQL statements here
select * from LargeTable
--You have access to the params
select @param
</code></pre>
<p>It makes sense that everything is saved, not just what is inside BEGIN/END, otherwise the comments and <code>SET ANSI_NULLS</code>, etc. would disappear. I'm a little confused with what starts where, so I have a few questions:</p>
<ol>
<li><code>SET ANSI_NULLS</code> gets saved as part of the SP. I have confirmed that each SP has its own value. How does SQL Server know to save this as part of the SP since it's not referenced before? Does it do a full scan of the current environment state, then when <code>ALTER PROCEDURE</code> runs it saves the state (possibly only non-default values)?</li>
<li>Apparently the BEGIN/END are optional and have no intrinsic meaning. Why are they even included then? They give a false sense of scope that doesn't exist. It seems to me no BEGIN/END and a GO at the end would make the most sense.</li>
</ol>
| 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 |
Problems with Polarizationidentity. <p>I just cant get it right.</p>
<p>Prove $<x,y> = \frac{1}{4} \sum_{\lambda^4 = 1} \lambda ||\lambda x+y||^2$</p>
<p>$$\lambda ||\lambda x+y||^2 = \lambda<\lambda x+y,\lambda x+y> = \lambda(<\lambda x,\lambda x>+<\lambda x,y>+<y,\lambda x>+<y,y>)$$</p>
<p>$=\lambda(||x||^2 + \bar\lambda<x,y>+\lambda<y,x>+||y||^2) = \lambda||x||^2 + <x,y>-<y,x>+\lambda||y||^2 $</p>
<p>$= \lambda(||x||^2+||y||^2) + <x,y>-<y,x>$</p>
<p>Im missing something but i dont know where</p>
| 0non-cybersec
| Stackexchange |
...to be a brand for people all over the world.. | 0non-cybersec
| Reddit |
File download in Voila from Jupyter Notebook. <p>There are many questions with great answers about downloading a file from a Jupyter Notebook. <a href="https://stackoverflow.com/questions/26497912/trigger-file-download-within-ipython-notebook/60012879#60012879">Here's one</a> I added to earlier. That works, but I am unable to click and download that file for a server started with Voila.</p>
<p>Originally I realized I could not download the basic case when clicked through Voila.</p>
<pre><code>from IPython.display import display, FileLink
local_file = FileLink('./demo.xlsx', result_html_prefix="Click here to download: ")
display(local_file)
</code></pre>
<p><a href="https://i.stack.imgur.com/jxpE1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jxpE1.png" alt="output screenshot"></a></p>
<p>That is from my notebook. I am able to click on the link and download the file. When I start my notebook with Voila it looks more like this..
<a href="https://i.stack.imgur.com/cOdRn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cOdRn.png" alt="enter image description here"></a></p>
<p><strong>Clicking the link give a 404</strong> ☝️ for a voila server started with </p>
<pre class="lang-sh prettyprint-override"><code>voila mynotebook.ipynb
</code></pre>
<p>Since the file clearly isn't being served... I found <a href="https://voila.readthedocs.io/en/stable/customize.html#serving-static-files" rel="nofollow noreferrer">this link here</a> and tried:</p>
<pre class="lang-sh prettyprint-override"><code>voila mynotebook.ipynb --VoilaConfiguration.file_whitelist="['demo.xlsx']"
</code></pre>
<p>which unfortunately didn't work.</p>
<p>I saw static content can be served in voila.. I'll keep playing down this road. Has anyone done this before?</p>
| 0non-cybersec
| Stackexchange |
How to convert Jenkins Pipeline into Multibranch Pipeline?. <p>I have lots of Pipeline items in my Jenkins. I want to convert them into Multibranch Pipeline. Is it possible without deleting the Pipeline and creating a new Multibranch Pipeline? How?</p>
| 0non-cybersec
| Stackexchange |
he was what pick?. | 0non-cybersec
| Reddit |
Fedora accessing SMB Share - Every file has x flag set. <p>i have a fileserver with samba that shares 2 zfs datasets.</p>
<pre><code>uname -a
Linux pve 4.13.16-1-pve #1 SMP PVE 4.13.16-45 (Wed, 28 Mar 2018 15:47:11 +0200) x86_64 GNU/Linux
cat /etc/samba/smb.conf
[global]
map to guest = bad user
security = user
create mask = 0644
directory mask = 2755
force create mode = 0644
force directory mode = 2755
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
show add printer wizard = no
[media]
writeable = yes
read only = no
path = /mnt/pool/media
browseable = no
guest ok = no
comment = media share
map archive = no
map system = no
map hidden = no
[stuff]
writeable = yes
read only = no
path = /mnt/pool/stuff
browseable = no
guest ok = no
comment = media share
map archive = no
map system = no
map hidden = no
</code></pre>
<p>When i access the share from any client on my network, the permissions are set to the following:</p>
<pre><code>ls -la /stuff/file.txt
-rw-r--r-- 1 user user 287 May 16 14:28
</code></pre>
<p>The clients have mixed Versions of mount.cifs, some are on 6.7 (alpine), some are on 6.2 (centos)</p>
<p>For some reason, a Laptop with Fedora 28 sees the permissions like this:</p>
<pre><code>uname -a
Linux fedora-laptop 4.16.8-300.fc28.x86_64 #1 SMP Wed May 9 20:23:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
mount.cifs -V
mount.cifs version: 6.8
ls -la /stuff/file.txt
-rwxr-xr-x 1 user user 287 May 16 14:28
</code></pre>
<p>Even though the command that i use for mounting the share is the same on all clients:</p>
<pre><code>mount -t cifs -o username=user //fileserver/stuff /mnt
</code></pre>
<p>Changing the permissions with chmod -x results in no change on the Fedora Client. Changing the permissions with chmod +x lets the other clients see the execution bit, but still no change on the Fedora client.</p>
<p>Does someone know why the Fedora client displays the execution bit there, even tough there is none on the other clients and the fileserver?</p>
| 0non-cybersec
| Stackexchange |
This is Norway. | 0non-cybersec
| Reddit |
iMac: update OS X from 10.5.8 to 10.6 (and beyond). <p>A friend of mine has a desktop Apple computer (I googled Apple computer images and it looks like an iMac). He has Mac OS X version 10.5.8. When we tried to upgrade it the OS reported that there are no updates available.</p>
<p>We googled around to find alternative ways of upgrading the system - 3-4 different clicking paths all leading to the same system update program - but with same outcome.</p>
<p>Finally we tried to download it but we could not find the 10.6 upgrade anywhere. The system does not allow to upgrade to any version higher than 10.6. I'm not able to check it now, but I remember for sure that the computer was bought around 2009-2010, and it is one of these two (<a href="http://en.wikipedia.org/wiki/IMac_%28Intel-based%29#Unibody_iMac">1</a>, <a href="http://en.wikipedia.org/wiki/IMac_%28Intel-based%29#Aluminum_iMac">2</a>), which <a href="http://www.apple.com/osx/how-to-upgrade/">should mean</a> that it can be upgraded even up to Maverick.</p>
<p>How to upgrade to the latest OS X version?</p>
| 0non-cybersec
| Stackexchange |
How check in nginx for query_string parameters?. <p>How I can write a condition in the nginx config testing if a <code>q</code> parameter was entered in the URL?</p>
<p>This doesn't work:</p>
<pre><code> if ($arg_q) {
return 301 "/someurl";
}
</code></pre>
<p>It catches URLs like</p>
<pre><code>/search?entered_search=1&q=123
</code></pre>
<p>But it doesn't catch URLs like</p>
<pre><code>/search?entered_search=1&q=
</code></pre>
| 0non-cybersec
| Stackexchange |
Jay-Z wants to be on the Arsenal board. . | 0non-cybersec
| Reddit |
How do you manage 9-5 only appointments when you work a 9-5?. Not sure how to live this adult life...
I recently got off of disability (due my own decision thinking I was work ready and turns out I’m actually not but now I can’t do anything because the forms have been sent so I have to work) with a 90% diagnosis and no treatment options yet.
I have the following I have to set up or have already set up:
- Neck MRI
- 3 hour long autonomic testing
- Follow up appointment with cardiologist
- Follow up appointment with neurologist
- EMG test
- EEG rest
- Weekly aquatics physical therapy
- Weekly psychologist appointments
- endocrinologist appointment
The thing is the majority of all these appointments occur during work. My problem is I don’t have anymore PTO or sick time because I wiped it all out before I went on disability. I can’t reschedule my tests because that’s the only way to treatment and the next tests aren’t until January! I was on disability for two months, it took me one month to get to specialists and another month to even get tests.
On top of this, I still get horrible flare ups. If anyone’s interested in what I’m getting tested for, it’s Hyperadrenergic Postural Orthostatic Tachycardia Syndrome and Ehler’s Danlos Sundrome. I get better, then I get worse. And on and on the cycle goes. I lived with migraines for 6 years until recently I snapped because I started tremoring and decided to figure out what is wrong with my health.
If I had the opportunity to work from home or work in a place where I could use my phone to schedule appointments (I work in a special place where I’m not allowed to use any internet devices), I’d probably be able to manage a bit more. But my boss rejected all my requests when I was initially sick so now I’m just sorta fucked. I also don’t even have PTO and the only date I can have my autonomic tests is on a work day - next day to get tested is in January/February. And I can’t go to work after because the test is supposedly horrid from all the experiences I’ve read unless I’m one of the lucky few.
What the hell can I do?
Tl;dr
- Had pains, used up all my PTO and went of disability
- Went back to work early before treatment, now screwed because no way to take time off for appointments
- Not sure what to do now, manager isn’t cooperative | 0non-cybersec
| Reddit |
Carnival of Evolution 51--Darwin's Restaurant. | 0non-cybersec
| Reddit |
Need the help of some experienced Mac users. So my friend's laptop got messed up somehow (all she did was turn it on hours after shutting down) and it can no longer start up normally. I've tried using the Disk Utility function to try and repair but she has a lot of system files missing. Like serious... a lot. So yeah Disk Utility couldn't repair her hard drive due to the missing files. I googled some stuff and read around and lots of sources tell me that I need to back up whatever stuff I want to keep and reformat the drive so I guess that's the only option.
Problem here is, how do I back up stuff when I can't even boot up the laptop properly? I understand there's this program called Time Machine that creates back ups regularly but to my understanding an external hard drive is needed. If so, would the hard drive still connect and allow me to back up data even when the laptop is pretty much useless right now or is there another way I could back up the stuff?
Help is greatly appreciated! | 0non-cybersec
| Reddit |
Hamilton-Ivey pinching in dimension 4. <p>I've heard it said (e.g., in the accepted answer to <a href="https://mathoverflow.net/questions/97464/how-to-tackle-the-smooth-poincare-conjecture/97465#97465">this</a> MO question) that a major obstacle to an effective theory of Ricci Flow in dimension 4 is the absence of the Hamilton-Ivey pinching phenomenon. I'm curious about the possibilities for such a pinching in dimension 4, but I couldn't locate any information about it. I'm curious about 2 complementary questions in this regard.</p>
<ul>
<li>Are there any known partial results or indications of what such a pinching may look like in dimension 4?</li>
<li>Are there known examples that constrain the form of or throw doubt upon such a possible pinching?</li>
</ul>
<p>Any thoughts or references to the literature are welcome.</p>
| 0non-cybersec
| Stackexchange |
Anyone do stair climbing?. Actual stairs, not a machine obviously (although those machines that are like a mini-escalator are great). If so, I'm just curious how you fit it into your routine. Also, while I don't have any knee pain doing it -- I've been adding it slowly -- I'm slightly concerned about going down stairs putting pressure on the knees, as I've had knee pain with running and cycling in the past. | 0non-cybersec
| Reddit |
Can I make apt-get install default to having the -y option?. <p>I'd like apt-get to default to using the -y option without me having to explicitly provide it. Is this possible?</p>
| 0non-cybersec
| Stackexchange |
This yummy banana. | 0non-cybersec
| Reddit |
Unit ball of smallest volume in a Hilbert geometry. <p>In a letter to Felix Klein published in Mathematische Annalen 1895 (see <a href="http://link.springer.com/article/10.1007/BF02096204" rel="nofollow">here</a>), Hilbert generalized the Cayley-Klein model of hyperbolic geometry by defining a metric on the interior of a convex body in the following way: given distinct interior points $x$ and $y$ let $a$ and $b$ be the two points obtained by
intersecting the boundary of the convex body and the straight line defined by $x$ and $y$. Assuming, by renaming $a$ and $b$ if necessary, that the euclidean distance from $x$ to $b$ is greater than the distance from $y$ to $b$, we set</p>
<p>$$
d(x,y) = \frac{1}{2} \ln\left(\frac{|x-b|}{|y-b|}\frac{|y-a|}{|x-a|}\right) .
$$</p>
<p>This metric has two remarkable properties: (1) straight lines are geodesics and (2) projective transformation that send the body into itself are distance non-increasing. </p>
<p>For a nice elementary account of these geometries (in French ...) see this <a href="http://images.math.cnrs.fr/Geometrie-de-Hilbert.html" rel="nofollow">note</a> by Ludovic Marquis.</p>
<blockquote>
<p><strong>Question 1.</strong> <em>What is the infimum of the volumes (volume = Hausdorff $n$-dimensional measure) of all unit balls in all $n$-dimensional Hilbert geometries?</em></p>
<p><strong>Question 2.</strong> <em>What is the supremum of the volumes of all unit balls in all $n$-dimensional Hilbert geometry?</em> </p>
</blockquote>
<p><em>Remark.</em> The infimum is necessarily smaller than or equal to the volume of the Euclidean unit ball of dimension $n$. To see this, notice that when the convex body is a simplex, the Hilbert geometry is isometric to a certain normed space (de la Harpe) and by a theorem of Busemann the Hausdorff volume of the unit ball of any normed space is equal to the volume of the Euclidean unit ball. I <em>guess</em> that
the loosely stated fact that Hilbert geometries are non-positively curved makes it likely that the infimum is actually the volume of the Euclidean unit ball of dimension $n$. On the other had, the loosely stated fact that hyperbolic geometry is the most "hyperbolic" of the Hilbert geometries would seem to imply that the supremum is the volume of the hyperbolic unit ball of dimension $n$.</p>
<p><strong>Edited April 17, 2014.</strong>
A short argument I learned from <a href="http://arxiv.org/abs/0902.3143" rel="nofollow">this paper</a> of Ludovic Marquis shows that the infimum and the supremum in the questions are attained. In particular, the volume of every unit ball in every Hilbert geometry is greater than some fixed number $c > 0$ and is less than some fixed number $C < \infty$.</p>
<p>Consider the space $C(n)$ of all proper convex bodies in projective $n$-space and let
$$
C_p(n) := \{(K,x) \in C(n) \times \mathbb{RP}^n : x \hbox{ is in the interior of } K \}
$$
be the space of <em>pointed convex bodies</em>. The topology on $C(n)$ is taken to be the topology given by the Hausdorff metric for closed subsets of $\mathbb{RP}^n$
and this topology is used to give a topology to the space of pointed convex bodies in the obvious way. </p>
<p>A theorem of Benzecri (but I think it can be obtained almost immediately from an <a href="https://cms.math.ca/10.4153/CJM-1951-008-7" rel="nofollow">older result</a> of Macbeath) states that the projective group acts properly and co-compactly on $C_p(n)$. Since the map that takes a pair $(K,x)$ to the volume of the unit ball centered at $x$ in the Hilbert geometry determined by $K$ is continuous <em>and</em> invariant under the action, it follows that this volume attains its extremal values.</p>
<p>These questions arose in a conversation with Constantin Vernicos (and in retrospect I see that he actually hinted this argument to me a while back).</p>
| 0non-cybersec
| Stackexchange |
Watt's new deal. 6 years 99 million. 51 guaranteed.. | 0non-cybersec
| Reddit |
Naptime in 3...2...1. | 0non-cybersec
| Reddit |
Good year for deaths drives profit rise for British funeral firm. | 0non-cybersec
| Reddit |
set of positive roots made negative by a Weyl group element. <p>If $w$ is a Weyl group element of a simple lie algebra and the reduced expression for $w$ is $s_{i_1}s_{i_2}...s_{i_k}$ what are the positive roots (in terms of reflections from reduced expressions of $w$ applied to some simple roots) made negative by $w$ ?</p>
| 0non-cybersec
| Stackexchange |
Back yard playset. | 0non-cybersec
| Reddit |
Proper design for a class with one method that can vary between customers. <p>I have a class used to process customer payments. All but one of the methods of this class are the same for every customer, except for one that calculates (for example) how much the customer's user owes. This can vary greatly from customer to customer and there is no easy way to capture the logic of the calculations in something like a properties file, as there can be any number of custom factors.</p>
<p>I could write ugly code that switches based on customerID:</p>
<pre><code>switch(customerID) {
case 101:
.. do calculations for customer 101
case 102:
.. do calculations for customer 102
case 103:
.. do calculations for customer 103
etc
}
</code></pre>
<p>but this requires rebuilding the class every time we get a new customer. What is the better way?</p>
<p>[Edit] The "duplicate" article is completely different. I'm not asking how to <em>avoid</em> a switch statement, I'm asking for the <strong>modern</strong> design that best applies to this case -- which I could solve with a switch statement if I wanted to write dinosaur code. The examples provided there are generic, and not helpful, since they essentially say "Hey, the switch works pretty good in some cases, not in some others."</p>
<hr>
<p>[Edit] I decided to go with the top-ranked answer (create a separate "Customer" class for each customer that implements a standard interface) for the following reasons:</p>
<ol>
<li><p>Consistency: I can create an interface that ensures all Customer classes receive and return the same output, even if created by another developer</p></li>
<li><p>Maintainability: All code is written in the same language (Java) so there is no need for anyone else to learn a separate coding language in order to maintain what should be a dead-simple feature.</p></li>
<li><p>Reuse: In case a similar problem crops up in the code, I can reuse the Customer class to hold any number of methods to implement "custom" logic. </p></li>
<li><p>Familiarity: I already know how to do this, so I can get it done quickly and move on to other, more pressing issues. </p></li>
</ol>
<p>Drawbacks:</p>
<ol>
<li><p>Each new customer requires a compile of the new Customer class, which may add some complexity to how we compile and deploy changes.</p></li>
<li><p>Each new customer has to be added by a developer -- a support person can't just add the logic to something like a properties file. This is not ideal ... but then I also wasn't sure how a Support person would be able to write out the necessary business logic, especially if it is complex with many exceptions (as is likely).</p></li>
<li><p>It won't scale well if we add many, many new customers. This is not expected, but if it does happen we'll have to rethink many other parts of the code as well as this one.</p></li>
</ol>
<p>For those of you interested, you can use Java Reflection to call a class by name:</p>
<pre><code>Payment payment = getPaymentFromSomewhere();
try {
String nameOfCustomClass = propertiesFile.get("customClassName");
Class<?> cpp = Class.forName(nameOfCustomClass);
CustomPaymentProcess pp = (CustomPaymentProcess) cpp.newInstance();
payment = pp.processPayment(payment);
} catch (Exception e) {
//handle the various exceptions
}
doSomethingElseWithThePayment(payment);
</code></pre>
| 0non-cybersec
| Stackexchange |
Am I in good shape to buy a cabin?. Hi everyone,
I'll give a little context and I'd like to see others opinions on where im at and if its a good, smart or dumb idea to buy a cabin on the lake.
I make $58k a year working in sales for Marriott. I still have my job and look to have it moving forward, however we all know how rocky employment is right now, especially in hospitality.
I own a duplex in the city with a mortgage of about $717 a month all in. The other portion of the duplex produces $1100 a month in rent. So essentially I cash flow $383 a month.
My other bills run me approximately $683 per month. Totaling $1400 a month in bills and mortgage.
The cabin would be approximately $1000 all in a month. So my total bills with the cabin would be around $2500 (plus or minus). After the duplex rent we would be down to $1400 out of pocket bills.
I plan to still contribute 25% to my retirement and also think I can save approximate 21% in my brokerage account. I will also have approximately $20k in emergency fund (or 8 months of expenses)
My plan is to rent the cabin on AirBnB when not in use by me. I figure a conservative 15% occupancy per year (Cool MN climate) at $200 per night will net me $912 per month in rental income. Which could offset the mortgage if done property.
My questions is, do you guys think this is a good or dumb idea? Do you see any negative side effects that I am not considering? Any recommendations or opinions welcomed, even if they are negative. I want to hear it all. Thanks!! | 0non-cybersec
| Reddit |
My favourite Vader pic, a younger Vader with his mask removed.. | 0non-cybersec
| Reddit |
$(D^2 -1)y=0 \iff (D-\tanh x)(D+ \tanh x)y=0$ where $D \equiv \frac{d}{dx}$?!. <p>In <a href="https://www.youtube.com/watch?v=tV-xIhP7VU8" rel="nofollow">this</a> lecture, the professor explains that factoring differential operators if different from factoring numbers, and provides this example. I have no idea where it comes from and indeed why it is true. Could someone provide an explanation for the fact that:
$$(D^2 -1)y=0 \iff (D-\tanh x)(D+ \tanh x)y=0$$</p>
| 0non-cybersec
| Stackexchange |
what happens when you walk around in the city at night. Being fired blows, bro. Trust me. Avoid if at all possible. 2/10. At the absolute best.
I was working as a junior lawyer at [redacted, redacted & redacted] and things were going pretty well. I made decent bank, worked crazy hours — I thought everything was going great. And then I got called to my boss' office on a Friday afternoon.
Me: how's it going?
Boss: isn't working out its us not you blah blah blah sorry security will help you out.
And then I was packing up my desk, handing over my badge, getting walked out and that was it.
Done.
I didn't know what the fuck to do. I was upper middle class. I went to law school and graduated top third. I was *privileged*, ffs. This kind of thing didn't happen to me. So I went home to my apartment and did absolutely nothing. And then I didn't do anything that Saturday. And then I didn't do anything Sunday. And then it was Monday. I still didn't do anything.
Days of sitting around turned into a week of sitting around. Then weeks. Then a month.
Then I started going for walks.
I didn't have anything else to do, bro. I mean, I couldn't afford cable. I couldn't even afford the Internet. I had to cancel the Internet. How was I supposed to entertain myself? *I didn't even have free porn anymore*. Imagine that. You call that a life? Smh.
So one day, I said to myself, Chad, you need to get out of your apartment. Go for a walk or some shit.
So I just started walking around.
At first, it was nice. Peaceful even. I had never really done anything like that. Work had been too busy for me to just wander around the city, peep the architecture, vibe on the whole scene. I got kind of — this is awkward — sorta *obsessed* with the walking. I bought maps, planned out routes, got real gay with it.
I even started night walks. I liked the city at night. People were out drinking, having fun, avoiding responsibilities. Everything seemed chill. Then, one night I saw my boss, the dude who fired me. With a woman. In a not-his-wife-woman kind of situation.
They were coming out of a bar on the corner of Maugham & W Street. They both looked hammered. She was pretty. No. Not pretty.
Gorgeous.
Dark hair, dark eyes, short skirt. Future wife. I couldn't understand why she was with my boss, who was rich, sure, but also middle aged, married and repulsive. He looked the end result of a toad given a shopping spree at Brooks Brothers, but less attractive.
The two walked from the bar and down the street. And I followed.
I heard the two talking. She had some sort of vague euro accent. They didn't seem to know each other. Maybe she was some sort of professional? That would explain her impossibly low standards, I supposed.
At the edge of the street, they kissed. Then he pulled her into the alley.
I crept to the alley's edge. There, in the alley with the rats and dumpsters and shaky lights from behind the rows of businesses closed for the night, I saw my boss strangling the beautiful girl.
Have you ever seen someone get strangled? It takes a while. Longer than you'd think. Legs kick. Little noises get out of mouths, but they sound small, weird.
And then no noises come out at all, ever again.
He threw her to the ground after he was down. He bent over her, breathing heavily and licked her face. Did he bite her? I couldn't tell. I didn't want too, bro.
He stood after a few dark moments crouched over her, zipping up his pants. He then walked out of the alley, in the direction away from me. In the dark, his round glasses reflected.
I stood absolutely frozen as I watched him leave. What should I do? Call the cops? Attack him?
And then I saw them.
They looked like shadows, detaching themselves from the greater shadows that filled up the alley. They weren't that, though. I saw their feet touch the ground. I saw their fingers dig into the dead girl's shoulder and drag her out of the alley. There were two of them, one pulled and the other just kept looking around. For witnesses, I realized. For people like me.
At the end of an alley, a black truck appeared. A garbage truck with black windows, painted jet black. An ouroboros in white was painted on the side door. The silent men threw the girl in the compactor in the back, and leapt onto the side doors.
The garbage drove away, rattling out of sight.
**********
The next night, I walked past the alley, as if to make sure it had really happened. There was nothing there.
For the next month, I kept wondering if it had just been some kind of hallucination. If the stress of not having a job made me freak out and think I saw my asshole boss kill someone.
I almost convinced myself. I almost stopped going for walks.
But a month after that night, I was out in the same neighborhood — Saint Ballard. The old part of the city. Just bars and alleys and old warehouses converted to lofts.
That's when I heard it.
A small, familiar noise. Near an alley.
I didn't walk over to check it out, but I saw the men walk out. All middle aged dudes in suits. Thinning hair. Big guts. Shitty tippers.
They looked startled to see me. I pretended that I didn't notice them. That I was drunk. They walked by and vanished around a corner.
I rushed to the alley to see a body leaving a long red trail being hurled into a waiting black garbage truck.
*******
I stopped sleeping at night. I spent all my time rolling around St. Ballard. Walking through the alleys.
Sometimes I'd grab a cup of coffee at Levertov's, the diner out there. The coffee was thin and creamers had all expired. I would sit there and watch people walking out of bars. Waiting.
Some nights I'd talk to a cabbie who was always there. Some dude named Nasir. Nasir was chill. He liked the Knicks and found footage horror movies and he never asked me what the fuck was wrong with me.
Finally one night, I asked him if he had ever seen any garbage trucks. At night. Black garbage trucks.
"You talking about the Black Trucks, man," he looked a little surprised. Almost scared. "Nope. Never saw them. And inshallah I never do."
"So you've heard of them? What are they?"
"Nobody knows," he spread his fingers out, "but there are stories and shit about them, boss. They go on roads that aren't on maps. They drive fast. And you don't ever see the driver."
"What happens if you see the driver?"
"Friend," he said, raising his coffee cup, "here's to never finding out."
*******
Three nights later, I was in St. Ballard. I was wearing all black. Black pants, black shoes, black socks. Black hoodie with the hood pulled up. I was trying to be invisible.
The guy was late forties. Red face from too much booze. The girl was twenties, thin, pretty. Russian I think.
They went into the alley.
He stabbed her and smiled every time the knife went in.
He walked away and didn't notice me, I was hiding so well in the shadows.
One of the silent men appeared at my shoulder and touched me. He had his hood up. I couldn't see his face.
He motioned me to come into the alley. He held a finger up to were his mouth must be.
"Sssssshhhhhh."
We ran to the girl together. There was another silent man next to us. I recognized him as the one who watched. The lookout.
We grabbed the girl. The silent man who had grabbed me picked up the knife she had dropped.
We ran together to the truck.
It was waiting, vibrating. The back of it was open. We threw the girl in — what looked like a giant mouth opened and swallowed her. Great spurts of blood sprayed like breakers in the ocean.
The silent man who had grabbed me now grabbed the lookout. The lookout stared, his eyes pale and trembling and terrified.
"You shouldn't have let him see," the silent man said and nodded at me.
I grabbed the lookouts shoulder while the silent man stabbed him.
He didn't scream. He bit his lips so hard I saw his sharp strange teeth through the flesh, but he didn't scream.
We threw him into the truck together.
I jumped onto the side of the truck like I knew how to, like I had done it a million times. The engine roared to life and we were off, driving down roads that didn't exist, to the underground river where I was washed and given a terrible and strange new communion of that who is dead and who can never live again.
Now I work at night, memorizing the rules. The rituals. And I pray I get them all right.
I don't want to ever get fired again. | 0non-cybersec
| Reddit |
Automatic switching between different installed Windows systems. <p>I have currently 3 Windows systems installed on my machine (2x Win7, 1x Win8). To switch between them I have to restart my PC, choose right system in Windows Boot Manager and hit enter. Can I write script/program which will automatically restart PC and boot different Windows? I thought about changing default OS in bcdedit - is that right way?</p>
| 0non-cybersec
| Stackexchange |
A convergence result for functions in L^2. <p>Let $(f_n)_{n\geq 1}$, $f$ and $g$ be functions in $L^2$ [0,1].
Suppose $f_n \rightarrow f$ pointwise almost everywhere.</p>
<p>If $|f_n(x)| \leq |x|^{-1/3}$ prove that : </p>
<p>$\lim_{n \to \infty} \int_0^1 f_n(x)g(x) = \int_0^1 f(x)g(x)$.</p>
<p>To me this looks very much like monotone convergence, but the existence of $g$ and the fact that the sequence may not be monotonic causes problems for me</p>
<p>Any help would be greatly appreciated. </p>
| 0non-cybersec
| Stackexchange |
Anonymous Visibility Check in P2P networks. <p>I'm working on a problem for a P2P network for games. The problem is the following:
Consider two opponents on a grid, each stores it's own position.
Player 1 wants to know if it sees player 2. In other words, if player 2 should send it's positional data to player 1 without revealing it’s position in the process.</p>
<p>The problem is sort of obvious, in order to know if player 2 should send it's data it needs the position of player 1, thus player 1 has to reveal it's position. I'm wondering if anyone knows about a system which does this visibility check anonymously, without revealing the position of players.</p>
<p>Right now I have an algorithm/policy which only reveals if player 1 is above, below, to the left or to the right of player 2 but does not reveal the exact coordinates of player 1 to player 2. It's based on the homomorphic properties of certain cyphers, but this is still a big limitations in certain games, especially first person shooters where knowing the approximate direction of your enemy can be very helpful? Note, I am NOT looking for fully homomorphic cryptography here, only something which can solve this specific problem of checking whether a point is inside of a "visibility field" or not without revealing positional (or visibility field) information.</p>
<p>This question might be a stretch since there probably isn't such an algorithm out there, but I thought I'd ask anyway :)</p>
| 0non-cybersec
| Stackexchange |
"Dad, can you retract the lawn so we can go swimming?. | 0non-cybersec
| Reddit |
A special Artinian module is also Noetherian. <p><strong>Problem:
Let $ R $ be a unital right Artinian ring and $ M $ be a unitary right $R$-module. Suppose that $ M_R $ is right Artinian. Prove that it's right Noetherian.</strong></p>
<p>Since $ R $ is a right Artinian ring, its Wedderburn radical $ W $ is a nilpotent ideal of $ R $. Therefore, we can find a smallest positive integer $ s $ such that $ W^s=0 $ but $ W^{\left(s-1\right)} \neq 0 $</p>
<p>I want to prove this result by using induction on $ s $. When $ s=1 $, $ R $ is a semiprime right Artinian ring and thus $ M_R $ is completely reducible. Those imply that $ M_R $ is the sum of some irreducible right $R$-modules. The number of those irreducible module is finite since $ M_R $ is right Artinian. Now, notice that every irreducible module is Notherian, we then get that $ M_R $ is again Noetherian. </p>
<p>However, I have no idea to do the inductive step. :(</p>
| 0non-cybersec
| Stackexchange |
How to take away extra bracket with \chemfig?. <p>I just started using <code>chemfig</code> and I need the formula for a polymer. Everything is perfect except the fact that I <strong>have an extra bracket</strong>, as you can see from the picture. </p>
<p><a href="https://i.stack.imgur.com/8ZbBO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8ZbBO.png" alt="enter image description here"></a></p>
<p>My code is the following (the first part is just copied from the documentation for the <code>chemfig</code> package):</p>
<pre><code>\newcommand\setpolymerdelim[2]
{\def\delimleft{#1}\def\delimright{#2}}\def\makebraces[#1,#2]#3#4#5{%
\edef\delimhalfdim{\the\dimexpr(#1+#2)/2}%
\edef\delimvshift{\the\dimexpr(#1-#2)/2}%
\chemmove{%
\node[at=(#4),yshift=(\delimvshift)]
{$\left\delimleft\vrule height\delimhalfdim depth\delimhalfdim
width0pt\right.$};%
\node[at=(#5),yshift=(\delimvshift)]
{$\left.\vrule height\delimhalfdim depth\delimhalfdim width0pt\right\delimright_{\rlap{$\scriptstyle#3$}}
\left\delimleft\vrule height\delimhalfdim depth\delimhalfdim width0pt\right.$};}}
\setpolymerdelim[]
\chemfig{[:18]-[@{open,.5}] *5((-)- S - (-[@{close,.5}] )= (-#(,6pt)(CH_2{(}CH_2{)}_4 CH_3)) - =)}
\makebraces[45pt,10pt]{n}{open}{close}
</code></pre>
<p>How do I take away that extra bracket?</p>
| 0non-cybersec
| Stackexchange |
The University of Michigan has created an antimatter gun (might be relevant to this subreddit). | 0non-cybersec
| Reddit |
Stop the struggle. | 0non-cybersec
| Reddit |
combining output from different scripts into different files in a loop. <p>This is a follow up to <a href="https://unix.stackexchange.com/questions/238973/unix-replace-one-entire-column-in-one-file-with-a-single-value-from-another-fil#238982">Replace one entire column in one file with a single value from another file</a> combined with <a href="https://stackoverflow.com/questions/33371196/r-pass-variable-from-r-to-unix">R Pass Variable from R to Unix</a></p>
<p>I am running several scripts (Perl, python and R) in one Unix script and need to pass outputs of these scripts to Unix and combine information from different files these scripts create.</p>
<p>I have a working code which is a combination of the above mentioned questions:</p>
<p>The output from the R script called <code>getenergie.R</code> is a filename. There are several such filenames which are returned and I need to write into each of these files and replace column 11 of these files with a value which comes from another file (<code>COP1A_report1</code>) and is called value. </p>
<pre><code>RES=($(./../getenergies.R))
for pdbnames in "${RES[@]}"
do
#write the one value from COP1A_report1 into column 11 of a file and save as TESTING
value=$(awk -F, 'NR==1{print $2;exit}' ./../COP1A_report1)
awk '{$11 = v} 1' v="$value" ${pdbnames} > TESTING
printf "$value ${pdbnames}\n"
done
</code></pre>
<p>What I need is a way to loop over this so that it writes one value from <code>COP1A_report1</code> (row $2, line 1) into column 11 of a file called like the first filename stored in <code>$pdbnames</code>, save it as a unique file and go to <code>COP1A_report1</code> (row $2, line 2), write that into column 11 of a file called like the second filename stored in <code>$pdbnames</code> and so on...</p>
<p>What is the smartest way of doing that? I can imagine <em>something</em> like the code below, but something is wrong with the syntax and I do not get any errors, just an empty value variable.</p>
<p>Any ideas?</p>
<pre><code>counter=1
RES=($(./../getenergies.R))
for pdbnames in "${RES[@]}"
do
value=$(awk -F, 'NR==$counter{print $2;exit}' ./../COP1A_report1) #NR=1 needs to be changed to go through the entire list...
awk '{$11 = v} 1' v="$value" ${pdbnames} > TESTING$counter
counter=$(echo $counter+1 |bc)
printf "$value ${pdbnames}\n"
done
</code></pre>
| 0non-cybersec
| Stackexchange |
I think about this everytime I roll a joint.. | 0non-cybersec
| Reddit |
PHILADELPHIA Caramel Pecan Cheesecake
. | 0non-cybersec
| Reddit |
Covering map over the Riemann Sphere, cuts and identification. <p>I study the function $z\to \dfrac{z^3}{z^4+27}$. The branch points are $z=-3i,-3,0,3,3i$. I have $4$ copies of the sphere (degree of the rational function). And I calculate the monodromy group to know the permutation and determinate the copies that coincide in the branch points. See the figure.
<a href="https://i.stack.imgur.com/fiqLN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fiqLN.png" alt="Copies of sphere that coincide in the branch points"></a></p>
<p>my question is How i do made the cuts and glue for the copies? I try the planar representation of the Sphere. But i don´t now if this is correct. I cut from the lines and make a identification to glue the copies.
<a href="https://i.stack.imgur.com/clbNz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/clbNz.png" alt="Planar representation"></a></p>
<p>Please Help, sorry for my English</p>
| 0non-cybersec
| Stackexchange |
L'hospital rule for two variable.. <p>How to use L'hospital rule to compute the limit of the given function </p>
<blockquote>
<p>$$\lim_{(x,y)\to (0,0)} \frac{x^{2}+y^{2}}{x+y}?$$</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Extraterrestrial Makeup Inspo Album. | 0non-cybersec
| Reddit |
So I left my pizza for all of 45 seconds... | 0non-cybersec
| Reddit |
In The Truman Show (1998), when Truman visits his mom, the photograph of young Truman is captioned “My Little Clown”. Truman being behind bars represents him being a prisoner in the TV set, and also being a clown to entertain the real world.. | 0non-cybersec
| Reddit |
Hitman logic. | 0non-cybersec
| Reddit |
Hunters (update). I was finally able to read my messages. The comments. The stories that have transpired since Casey and I wrote our memories. I apologize for dropping off the planet - and the way I left it - I really did seem that I would become what I had grown to despise. I did not.
I must let you know this. After submitting my last entry, I was immediately pulled from group and forced into a solitary solution. It wasn't my choice. But rather, due to the observations of our security, they had been monitoring all my nosleep stories. It was a set up. They knew about reddit - they knew about nosleep - and they had been following my stories all along the way. On one hand, it was good that I was finally putting my feelings into words, bad that I wanted to kill, to maime, to destroy with fever-like-symptoms. I was pulled out of our general population, and placed on ice for just over three months.
But in those 90 days, there was a breakthrough!
Working with Dr [REDACTED] I was finally able to accept that I was not a monster. I was nothing like Henry or Sally. And neither was Casey. I was finally free. Free to be whoever, or whatever I wanted. I could.
And that was the breakthrough.
I could.
Those two words have done a world of great for me this past month of June and now into July. I am thankful, I am blessed.
And with this breakthrough, things changed. I was moved out of solitary, then general population, then many evaluations, and released - RELEASED!!!! into a half-way house.
I am almost there. I don't want to hurt anyone - but I want those who hurt others to pay. So I have decided to study criminology, forensics, and fight for the victims.
That is my choice. And I'm going to follow through. For once, follow through.
I have decided it's time to stop being called, Kenny. And last night, I asked the lieutenant to call me Ted. I can't tell you how good that felt.
Thank you to StealthFiction for braving the waters and telling his story. Although he never reached out to me - I understand that the stress of the tale is far greater than anyone understands.
But StealthFiction, to answer your question: Horn-rimmed glasses, and a red feather keychain? Does that tell you what you need to know?
Teddy (formerly Kenny) formerly Ted. | 0non-cybersec
| Reddit |
The Only Rules To A Pillow FIGHT.. Is Not To BITE. | 0non-cybersec
| Reddit |
Force iframe to have an ID. <p>I have some content on my site that can be embeded by other domains. What happens is that my iframes need to have an ID to run some javascript.</p>
<p>This is the iframe code I provide to my users:</p>
<pre><code><iframe src="http://www.example.com/embed/2854" id="zframe" width="100%" height="460" scrolling="no" frameborder="0"></iframe>
</code></pre>
<p>When the users remove the frame ID, my javascript stops working.</p>
<p>Is there a way wo force the iframe to have an ID via javascript? </p>
<p>Bellow is my implementation to try forcing the ID usage on my iframe when users remove the ID from the iframe code I provide:</p>
<pre><code><html>
<head>
<title></title>
</head>
<body>
<script>
document.getElementByTagName('iframe')[0].setAttribute("id", "zframe");
</script>
</body>
</html>
</code></pre>
| 0non-cybersec
| Stackexchange |
Are computer-generated passwords secure?. <p>Taking in mind that being a a deterministic machine a today computer is incapable of producing random sequences and all computer-generated "random" sequences are pseudo-random actually, aren't computer-generated random passwords insecure? Isn't it more secure to just press keys randomly to create a random password than to use a digital generation algorithm?</p>
| 0non-cybersec
| Stackexchange |
2 B-tree indices OR 1 GiST index on tsrange -- which will perform better?. <p>I have a table which is storing reservation data using the columns <code>starts_at</code> & <code>ends_at</code> Whenever I'm querying the table to find overlapping reservations, I have an option of using one of the following queries:</p>
<pre><code>SELECT * FROM reservations
WHERE starts_at < '2014-01-03 00:00:00'
AND ends_at >='2014-01-01 00:00:00';
</code></pre>
<p>Or</p>
<pre><code>SELECT * FROM reservations
WHERE tsrange(starts_at, ends_at) && ('2014-01-01 00:00:00', '2014-01-03 00:00:00')
</code></pre>
<p>I have regular B-Tree indices on the <code>starts_at</code> and <code>ends_at</code> columns, therefore the first query is always using them. However, unless I define a functional GiST index on the tsrange, the second query does a complete scan.</p>
<pre><code>create index tsrange_idx on reservations using gist(tsrange(starts_at, ends_at));
</code></pre>
<p>My question is, as the table grows, which index is going to be faster? Probably the answer is obvious looking at the query execution plan, but I'm not well-versed with reading <code>EXPLAIN ANALYZE</code> output.</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 |
Punch Brothers - Wayside (Back in Time) [Bluegrass] (2:53). | 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 |
What PC games do you predict with be the biggest successes of 2015?. I wanted to have some positive feeling compared to the other thread found here: http://www.reddit.com/r/pcgaming/comments/2uh3jw/what_pc_games_do_you_predict_with_be_the_biggest/
And I do not mean in sales btw, I mean in critical acclaim. | 0non-cybersec
| Reddit |
What are the implications of the cache when using notifyDataSetChanged?. <p>I use Volley to return JSON from an API. I parse this JSON and add <code>StoreItem</code> objects to a List, then use an adapter to display in a listview.</p>
<p>I use the cache functionality in Volley, and I'm wondering how I can approach the issue of deleting/adding items. I know I'll need to make a POST/DELETE request with Volley to actually save/destroy the items in the database, but for user experience purposes I don't want to have to reload the view with a fresh Volley request. I also don't want the cache to update the view without recognizing the item that was just added/destroyed.</p>
<p>The android documentation for notifyDataSetChanged says:</p>
<blockquote>
<p>Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.</p>
</blockquote>
<p>In this case is the underlying data the cache, my server database, or the Items in the list? Please let me know if I can clarify this question.</p>
| 0non-cybersec
| Stackexchange |
rpc shutdown command from linux to windows server 2012 - connection refused. <p>I am needing to restart a windows server from a linux server.</p>
<p>The error i get is: (i have replaced ip address with xx )</p>
<pre><code>Could not connect to server xx.xx.xx.xx
Connection failed: NT_STATUS_CONNECTION_REFUSED
</code></pre>
<p>it fails with that result no matter what.</p>
<p>The commands i have tried are:</p>
<pre><code>net rpc shutdown -I xx.xx.xx.xx -f -U user%password
net rpc shutdown -I xx.xx.xx.xx -f -U domain/user%password
net rpc shutdown -f -I xx.xx.xx.xx -W domain.local -U user%password
</code></pre>
<p>I have also tried taking out the password, after executing the command it then asks for a password. If i type the password in it still fails with the NT_STATUS_CONNECTION_REFUSED.</p>
<p>It is the Administrator account im trying to login with.</p>
<p>I have temp disabled firewall altogether for a second while testing.</p>
<p>Very lost and its driving me mad. Any helps would be greatly appreciated.</p>
| 0non-cybersec
| Stackexchange |
How to find a surface if we know the normal vectors?. <p>I have the positions of 3D particles at each z-section <a href="https://i.stack.imgur.com/9EcqV.png" rel="nofollow noreferrer">each color represents a particle</a>. The lateral projection of the data looks approximately like this image<a href="https://i.stack.imgur.com/55McS.jpg" rel="nofollow noreferrer">The top end of these particles form a curved surface</a>
I want to generate a surface locally normal to the particle direction (calculated as <span class="math-container">$(dx/dz,dy/dz)$</span>. Is there anyway to do this?</p>
<p>I tried inverse gradient but it didn’t work.
Thank you,</p>
| 0non-cybersec
| Stackexchange |
You’re Too Slow.... | 0non-cybersec
| Reddit |
React native - which files to add to GIT?. <p>I am starting off on a React Native project on multiple computers. I'm fairly new to React Native, hence probably this newb question : </p>
<p>What is the minimum of files I need to track with Git in order to be able to sync and work on multiple computers? The whole folder? Can I leave out the <em>platform specific build dirs</em> (<code>ios</code>, <code>android</code>) and have a script recreate those after a <code>git pull origin</code>?</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 |
What are the purposes of "tags" in template strings with ES2015?. <p>I saw that tags can be used like this, and you may need it for "security" reasons, anyway, here is the example I got :</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>let person = 'Mike';
let age = 28;
function myTag(strings, personExp, ageExp) {
let str0 = strings[0]; // "that "
let str1 = strings[1]; // " is a "
let ageStr;
if (ageExp > 99) {
ageStr = 'centenarian';
} else {
ageStr = 'youngster';
}
return str0 + personExp + str1 + ageStr;
}
let output = myTag `that ${ person } is a ${ age }`;
console.log(output); // that Mike is a youngster</code></pre>
</div>
</div>
</p>
<p>But what is the point of "tagging" some strings, you do not even need that to get the result of this example, a simple function can do the job, could you give me an other example and some explanation with it ?</p>
| 0non-cybersec
| Stackexchange |
Thinking of buying the highest-end 21" iMac.. Is it worth it to wait for the retina 21"? And if so how long would I have to wait for? D: seems like they'll only be out end 2015 and I want my iMac hahaha | 0non-cybersec
| Reddit |
At an antique store, I found a first edition "The Moon Is Down" by John Steinbeck. Being published in 1942, I thought the message the publisher put on the back was pretty cool. . | 0non-cybersec
| Reddit |
Joint limiting distribution. <p>Let <span class="math-container">$X_n$</span> and <span class="math-container">$Y_n$</span> be two sequences of random variables of mean zero and unit variance such that as <span class="math-container">$n\rightarrow\infty$</span>, the following properties hold:</p>
<ul>
<li><span class="math-container">$X_n$</span> has limiting Gaussian law: <span class="math-container">$X_n\rightarrow N(0,1)$</span>,</li>
<li><span class="math-container">$Y_n$</span> has limiting Gaussian law <span class="math-container">$Y_n\rightarrow N(0,1)$</span>,</li>
<li>The covariance of <span class="math-container">$X_n$</span> and <span class="math-container">$Y_n$</span> vanishes: <span class="math-container">$\text{Cov}(X_n,Y_n)\rightarrow 0$</span>.</li>
</ul>
<p>Is it true that the limiting distribution of <span class="math-container">$(X_n,Y_n)$</span> is two-dimensional standard normal <span class="math-container">$N(0,I_2)$</span>? Thanks in advance for your comments.</p>
| 0non-cybersec
| Stackexchange |
These destinations!!!!!! i love it. | 0non-cybersec
| Reddit |
18.04 Display Issues - BIOS and GRUB have no display but once OS boots it is fine. <p>The PC in question is a Dell laptop which has been very faithful over the years and has been running dual boot Ubuntu and Windows 10.</p>
<p>Last night I updated the nVidia drivers in Ubuntu 18.04, and installed Kodi to have it work as a media center for the TV . Everything seemed fine. </p>
<p>This morning I wanted to install Ubuntu Server and switch it fully over to being a combined Minecraft and media server, so rebooted, jumped into BIOS to play with boot device priority so that I could overwrite, and disabled Legacy boot (for I wanted to use UEFI).</p>
<p>Ever since then, the monitor will flash the Dell logo which will then fade out and the screen will go dark - but everything behind there is fine. How do I know this? Because the moment that either of the OSes are booting, the monitor comes back alive. I can navigate through my GRUB menu, enter and exit the BIOS but... can't see any of it.</p>
<p>Any ideas as to what may have caused this?</p>
| 0non-cybersec
| Stackexchange |
Kingdom Hearts 2.5 HD ReMix announced by Square Enix. | 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 |
Crazy Guy Claims Hes From The Year 2054. | 0non-cybersec
| Reddit |
Java - creating a subclass dynamically. <p>I'd like to create a subclass programatically.
I guess I have few options - Javassist, CGLib, BCEL, or ASM.</p>
<p>The use case is that one app's internals are class-oriented, and extensions are class-based. Therefore I can't have a single class as a base for multiple extensions driven by externalized scripts.</p>
<p>Now - how would I do that? I've found examples with intercepting method calls, field access, initialization etc. But nothing about subclassing.</p>
<p>I'd like to end up with a class which:</p>
<ul>
<li>has a name which I want.</li>
<li>is a (direct, at best) subclass of a given class</li>
<li>copies the constructor(s) from the parent class (or calls <code>super(...)</code>)</li>
<li>eventually, I'd like to give it some annotations.</li>
</ul>
<p>I know it's possible because various dynamic languages integrations, like <code>GroovyClassLoader</code>, can do that.</p>
| 0non-cybersec
| Stackexchange |
20 pairs of people meet, and slap each other for the first time. | 0non-cybersec
| Reddit |
How can an attacker use SQL injection in ALTER query?/What can an attacker do with an injectable ALTER statement?. <p>Let's say you have a Java app which has a query which can <a href="https://docs.oracle.com/en/database/oracle/oracle-database/12.2/axdbi/using-sql-plus-to-unlock-accounts-and-reset-passwords.html#GUID-1147D2B9-8FFC-4F91-A774-E97066B4E9C5" rel="nofollow noreferrer">unlock/reset passwords</a> for users like:</p>
<pre><code>ALTER USER " + iD_Of_User.toUpperCase() + " IDENTIFIED BY " + password_Of_User + " ACCOUNT UNLOCK
</code></pre>
<p>Where <code>iD_Of_User</code> and <code>password_Of_User</code> definitely come in directly from an HTTP request.</p>
<p>This is a pretty textbook SQL injection risk-- we're passing incoming, untrusted data directly to a query. However, when I try to parameterize the query-- I get an error when I try to use a PreparedStatement object to parameterize the dynamic values... I guess PreparedStatement's parameters can only be used for data values? And the ALTER query here is not using the values that way.</p>
<p>I don't think input validation is even possible here-- maybe on the <code>iD_Of_User</code> value, but almost certainly not on the <code>password_Of_User</code> value (which is sometimes used as a password reset-- so it's only restrictions are the Oracle 12c password standards).</p>
<p>Any help were would be greatly appreciated. I reviewed <a href="https://stackoverflow.com/questions/49253300/sql-injection-prevention-with-dynamic-sql-alter-user-query">this</a> post, but it didn't give me a good solution. I'm hoping someone knows of a good way to do password resets/account unlocks in Oracle which doesn't open the app up to SQL injection.</p>
| 1cybersec
| Stackexchange |
How to delete an attachment on outlook 365 when deleting fails. <p>I'm getting the following error message:</p>
<p><code>The following attachments couldn't be deleted: my_document.docx. Please try again later.</code></p>
<p>This appears to be happening for all my attached documents (currently all docx files).</p>
<p>I'm on Windows 10 using Chrome. I tried logging out, clearing all related cookies and data, and logging in, but the problem has persisted. What's causing this problem and how do I delete the attachments?</p>
| 0non-cybersec
| Stackexchange |
In pictures: New species discovered by British Antarctic Survey. | 0non-cybersec
| Reddit |
Syrian hamsters (Mesocricecitus auratus) have good moods and bad moods, and a hamster's emotional state can influence their outlook on life.. | 0non-cybersec
| Reddit |
Is the canonical morphism of sheaves $f^{-1}f_*\mathcal F\to \mathcal F$ an isomorphism?. <p>Let <span class="math-container">$f:X\to Y$</span> be a closed immersion of topological spaces. Let <span class="math-container">$\mathcal F$</span> be a sheaf of rings on <span class="math-container">$X$</span>. Is the canonical morphism of sheaves <span class="math-container">$\varphi: f^{-1}f_*\mathcal F\to \mathcal F$</span> an isomorphism?</p>
| 0non-cybersec
| Stackexchange |
Docker container can't communicate with etcd. <p>I created 3 coreos machines at digitalocean using this cloud-config.yml: <a href="https://gist.github.com/socketwiz/d6fe23d19180a1ad8b5a" rel="nofollow noreferrer">https://gist.github.com/socketwiz/d6fe23d19180a1ad8b5a</a> where token was replaced with the one I retrieved from: </p>
<p><code>$ curl -w "\n" "https://discovery.etcd.io/new?size=3"</code></p>
<p>Up to this point everything works well. I can see the other machines, I can </p>
<p><code>$ curl -L http://<machine_ip>:2379/v2/keys/</code> </p>
<p>on each one of them and get back valid data so I suspect my firewall settings are OK (but maybe not). My problem begins when I setup a docker container. First I get the IP address for docker0: </p>
<p><code>$ ifconfig docker0</code></p>
<p>Then I setup the docker container:</p>
<p><code>$ docker run -it alpine ash</code></p>
<p>Once that boots up I run:</p>
<p><code>$ apk update && apk add curl</code></p>
<p>Then I try to access etcd using the ip address I got from ifconfig:</p>
<p><code>$ curl -L http://172.17.42.1:2379/v2/keys/</code></p>
<p>But the curl command just hangs and eventually times out. I suspect I have something misconfigured in my cloud-config.yml either in the etcd2 section or in the iptables configuration, but I'm still kind of new to all of this and I've been tweaking around on it all day and just can't get past this problem. Any ideas would be much appreciated.</p>
| 0non-cybersec
| Stackexchange |
No Fucks Given.. | 0non-cybersec
| Reddit |
wpa_supplicant end process if wrong password detected. <p>Normally when I run <code>wpa_supplicant</code> I'll get some output like this:</p>
<pre><code>Successfully initialized wpa_supplicant
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
wlan3: Trying to associate with 9c:3d:cf:fb:95:96 (SSID='Bell420' freq=2462 MHz)
wlan3: Association request to the driver failed
wlan3: Associated with 9c:3d:cf:fb:95:96
wlan3: Authentication with 9c:3d:cf:fb:95:96 timed out.
ioctl[SIOCSIWAP]: Operation not permitted
wlan3: CTRL-EVENT-DISCONNECTED bssid=9c:3d:cf:fb:95:96 reason=3 locally_generated=1
wlan3: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
</code></pre>
<p>The problem is it just keeps trying over and over.</p>
<p>Is there a way I can tell <code>wpa_supplicant</code> to quit as soon as it gets an obvious error like wrong key?</p>
<p><em>I'm on an older embedded device with <code>wpa_supplicant v2.1</code>.</em></p>
<hr>
<p>I wrote a workaround for monitoring <code>wpa_supplicant</code> for incorrect keys. Using <code>grep</code> on <code>wpa_supplicant</code> (with <code>stdbuf</code> based on <a href="https://unix.stackexchange.com/q/406643/16792">Stéphane Chazelas' comment here</a>):</p>
<pre><code> # Create conf file with ssid and password
wpa_passphrase "$ssid" "$password" > /etc/wpa_supplicant/wpa_supplicant.conf
# If wifi key is wrong kill subshell
subshell=$BASHPID
(sudo stdbuf -o0 wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_supplicant/wpa_supplicant.conf 2>&1 \
| grep -m 1 "pre-shared key may be incorrect" \
&& kill -s PIPE "$subshell") &
</code></pre>
<p><em>Note: the above block is inside a subshell in a script.</em></p>
<p>It seemed to work initially but over time I found sometimes it would cause the whole script to fail when the password was fine. Other times it would work as expected.</p>
<p>There must be a better way to do this.</p>
<hr>
<p><em>Edit: Maybe I should be using <code>wpa_cli</code> here instead?</em></p>
| 0non-cybersec
| Stackexchange |
Staples, push pins and packaging tape. | 0non-cybersec
| Reddit |
Resume bullet point incorrectly aligned in between two lines. <p>I am trying to build a resume but when I use itemize with subheading, the bullet point comes in between two lines, I want it horizontally beside the top line. The tex file is</p>
<pre><code>\documentclass[letterpaper,10pt]{article}
\newlength{\outerbordwidth}
\pagestyle{empty}
\raggedbottom
\raggedright
\usepackage[svgnames]{xcolor}
\usepackage{framed}
\usepackage{hyperref}
\usepackage{tocloft}
\usepackage{datetime}
\usepackage{lipsum}
\usepackage{turnthepage}
\usepackage{array}
%-----------------------------------------------------------
%Edit these values as you see fit
\setlength{\outerbordwidth}{1pt} % Width of border outside of title bars
\definecolor{shadecolor}{gray}{0.95} % Outer background color of title bars (0 = black, 1 = white)
\definecolor{shadecolorB}{gray}{0.95} % Inner background color of title bars
%-----------------------------------------------------------
%Margin setup
\setlength{\evensidemargin}{-0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\oddsidemargin}{-0in}
\setlength{\paperheight}{11in}
\setlength{\paperwidth}{8.5in}
\setlength{\tabcolsep}{0in}
\setlength{\textheight}{9.5in}
\setlength{\textwidth}{7in}
\setlength{\topmargin}{-0.3in}
\setlength{\topskip}{0in}
\setlength{\voffset}{0.1in}
%-----------------------------------------------------------
%Custom commands
\renewcommand{\turnthepage}{\itshape [Please turn over]}
\newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
\newcommand{\resheading}[1]{\vspace{8pt}
\parbox{\textwidth}{\setlength{\FrameSep}{\outerbordwidth}
\begin{shaded}
\setlength{\fboxsep}{0pt}\framebox[\textwidth][l]{\setlength{\fboxsep}{4pt}\fcolorbox{shadecolorB}{shadecolorB}{\textbf{\sffamily{\mbox{~}\makebox[6.762in][l]{\large #1} \vphantom{p\^{E}}}}}}
\end{shaded}
}\vspace{-5pt}
}
\newcommand{\ressubheading}[4]{
\begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{#3} & \textit{#4} \\
\end{tabular*}\vspace{-6pt}}
\def\hyph{-\penalty0\hskip0pt\relax}
%-----------------------------------------------------------
\begin{document}
\begin{tabular*}{7in}{l@{\extracolsep{\fill}}r}
\textbf{\Large Steve Waugh} \\
Ph.D. Student, University of Adelaide & [email protected] / (999) 534-9194\\
\end{tabular*}
\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\resheading{Work Experience}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{itemize}
\item \ressubheading{Graduate Research Assistant}{}{SY Simulation Center(in collaboration with OperaHouse),Perth}
{May 2015 -- Present}
\begin{itemize}
\resitem{ E.. }
\end{itemize}
\begin{itemize}
\resitem{ .. }
\end{itemize}
\begin{itemize}
\resitem{ .. }
\end{itemize}
\begin{itemize}
\resitem{ .. }
\end{itemize}
\begin{itemize}
\resitem{ ..}
\end{itemize}
\item \ressubheading{Junior Research Fellow}{}{Melbourne Institute of Engineering Science and Technology}{May 1912 -- July 1914}
\begin{itemize}
\resitem{AB.. }
\end{itemize}
\item \ressubheading{Summer Research Fellow}{}{Sydney Institute of Science, Sydney}
{May 1913 -- July 1913}
\end{itemize}
\end{document}
</code></pre>
<p>The incorrect alignment is this:
<a href="https://i.stack.imgur.com/SaCEi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SaCEi.png" alt="enter image description here" /></a></p>
<p>I would like to have the bullet points beside the bold lines. It would be great if someone can help me out with that. I don't want to change to another format all together, I would prefer to have the issue resolved in this particular format of the resume.</p>
| 0non-cybersec
| Stackexchange |
Convince your Boss to let you use Scala. | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.