text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Cannot debug in Xcode: Debug info from this module will be unavailable in the debugger. <p>Debugging in Xcode is not possible after adding Firebase.</p> <p>You cannot execute commands with <strong>expr</strong> and there is no variable information viewable.</p> <p>Firebase was integrated without Cocoapods using these directions: <a href="https://firebase.google.com/docs/ios/setup#frameworks" rel="noreferrer">https://firebase.google.com/docs/ios/setup#frameworks</a></p> <p>Here's what Xcode displays after trying to execute a command with <strong>expr</strong>:</p> <pre><code>warning: Swift error in module Test. Debug info from this module will be unavailable in the debugger. error: in auto-import: failed to get module 'Test' from AST context: error: missing required module 'Firebase' </code></pre> <p>We're using Swift 3.</p>
0non-cybersec
Stackexchange
If I have a reference to a bound method in Python, will that alone keep the object alive?. <p>I wrote something like this today (not unlike the mpl_connect documentation:</p> <pre><code>class Foo(object): def __init__(self): print 'init Foo', self def __del__(self): print 'del Foo', self def callback(self, event=None): print 'Foo.callback', self, event from pylab import * fig = figure() plot(randn(10)) cid = fig.canvas.mpl_connect('button_press_event', Foo().callback) show() </code></pre> <p>This looks reasonable, but it doesn't work -- it's as though matplotlib loses track of the function I've given it. If instead of passing it <code>Foo().callback</code> I pass it <code>lambda e: Foo().callback(e)</code>, it works. Similarly if I say <code>x = Foo()</code> and then pass it <code>x.callback</code>, it works.</p> <p>My presumption is that the unnamed Foo instance created by <code>Foo()</code> is immediately destroyed after the <code>mpl_connect</code> line -- that matplotlib having the <code>Foo.callback</code> reference doesn't keep the <code>Foo</code> alive. Is that correct? </p> <p>In the non-toy code I encountered this in, the solution of <code>x = Foo()</code> didn't work, presumably because in that case <code>show()</code> was elsewhere so <code>x</code> had gone out of scope.</p> <p>More generally, <code>Foo().callback</code> is a <code>&lt;bound method Foo.callback of &lt;__main__.Foo object at 0x03B37890&gt;&gt;</code>. My primary surprise is that it seems like a bound method isn't actually keeping a reference to the object. Is that correct?</p>
0non-cybersec
Stackexchange
Build is just about ready. Looking for some feedback.. I'm giving my brother my old pc as a graduation present. I will be keeping some parts and buying him alternatives. Keeping the mobo, ssd, and the psu. Main goals here are a quiet work pc and 1440 gaming. I'll be doing work in R, Excel, and Python. I want to leave myself open to 32gb of ram in case I get into some bigger data sets. Wasn't quite sure what cooler to use. Apparently this one is easy to set up and quiet. I don't know what my power/sound tradeoff should be for case fans. I'm thinking about some be quiet! SilentWings 2 but they seem really weak. Corsair quiet edition seems like another good option. Idk about the 980ti. It gives me the performance I'm looking for, but it doesn't fit my theme. How long does it usually take for other ones to come out? [PCPartPicker part list](http://pcpartpicker.com/p/zKNTxr) / [Price breakdown by merchant](http://pcpartpicker.com/p/zKNTxr/by_merchant/) Type|Item|Price :----|:----|:---- **CPU** | [Intel Core i7-4790K 4.0GHz Quad-Core Processor](http://pcpartpicker.com/part/intel-cpu-bx80646i74790k) | $325.99 @ SuperBiiz **CPU Cooler** | [Cooler Master Nepton 240M 76.0 CFM Liquid CPU Cooler](http://pcpartpicker.com/part/cooler-master-cpu-cooler-rln24m24pkr1) | $103.99 @ Newegg **Motherboard** | [Asus MAXIMUS VII HERO ATX LGA1150 Motherboard](http://pcpartpicker.com/part/asus-motherboard-maximusviihero) | Purchased For $0.00 **Memory** | [G.Skill Ares Series 16GB (2 x 8GB) DDR3-1600 Memory](http://pcpartpicker.com/part/gskill-memory-f31600c9d16gar) | $109.99 @ Newegg **Storage** | [Silicon Power S60 120GB 2.5&quot; Solid State Drive](http://pcpartpicker.com/part/silicon-power-internal-hard-drive-sp120gbss3s60s25) | Purchased For $0.00 **Storage** | [Samsung 850 Pro Series 1TB 2.5&quot; Solid State Drive](http://pcpartpicker.com/part/samsung-internal-hard-drive-mz7ke1t0bw) | $489.08 @ Amazon **Video Card** | [Gigabyte GeForce GTX 980 Ti 6GB Video Card](http://pcpartpicker.com/part/gigabyte-video-card-gvn98td56gdb) | $649.99 @ Amazon **Case** | [NZXT H440 (Black/Red) ATX Mid Tower Case](http://pcpartpicker.com/part/nzxt-case-cah440wm1) | $108.99 @ SuperBiiz **Power Supply** | [EVGA 850W 80+ Gold Certified Fully-Modular ATX Power Supply](http://pcpartpicker.com/part/evga-power-supply-220g20850xr) | Purchased For $0.00 **Operating System** | [Microsoft Windows 8.1 OEM (64-bit)](http://pcpartpicker.com/part/microsoft-os-wn700615) | Purchased For $0.00 **Case Fan** | [Noctua NF-F12 industrialPPC-2000 PWM 71.7 CFM 120mm Fan](http://pcpartpicker.com/part/noctua-case-fan-nff12industrialppc2000pwm) | $23.07 @ Mwave **Case Fan** | [Noctua NF-F12 industrialPPC-2000 PWM 71.7 CFM 120mm Fan](http://pcpartpicker.com/part/noctua-case-fan-nff12industrialppc2000pwm) | $23.07 @ Mwave **Case Fan** | [Noctua NF-F12 industrialPPC-2000 PWM 71.7 CFM 120mm Fan](http://pcpartpicker.com/part/noctua-case-fan-nff12industrialppc2000pwm) | $23.07 @ Mwave **Case Fan** | [Noctua NF-F12 industrialPPC-2000 PWM 71.7 CFM 120mm Fan](http://pcpartpicker.com/part/noctua-case-fan-nff12industrialppc2000pwm) | $23.07 @ Mwave **Case Fan** | [Noctua NF-F12 industrialPPC-2000 PWM 71.7 CFM 120mm Fan](http://pcpartpicker.com/part/noctua-case-fan-nff12industrialppc2000pwm) | $23.07 @ Mwave **Case Fan** | [Noctua NF-F12 industrialPPC-2000 PWM 71.7 CFM 120mm Fan](http://pcpartpicker.com/part/noctua-case-fan-nff12industrialppc2000pwm) | $23.07 @ Mwave | *Prices include shipping, taxes, rebates, and discounts* | | Total (before mail-in rebates) | $1936.45 | Mail-in rebates | -$10.00 | **Total** | **$1926.45** | Generated by [PCPartPicker](http://pcpartpicker.com) 2015-06-01 00:06 EDT-0400 |
0non-cybersec
Reddit
The 47-year-old nuclear elephant in the room: A growing number of U.S. experts say that feigning ignorance about Israel’s nuclear arsenal creates more trouble than it averts.
0non-cybersec
Reddit
sqlite3-dev - can conda (of Anaconda) install it instead of apt-get?. <p>Since I installed Anaconda, and use sqlite3 within it, I've been trying to write some C++/sqlite3 codes. However, I would like to also utilize the dev files for sqlite3 but would rather not install them via apt-get, but keep them locally inside the Anaconda tree.</p> <p>Can this be done?</p> <p>Linux Mint 18</p>
0non-cybersec
Stackexchange
Gardening with Different Colored Spuds..
0non-cybersec
Reddit
Windows 8 fat binary (exe for x86 &amp; ARM). <p>Does anyone (here) know if Windows 8 will have a sort of fat exe that one can compile with Visual Studio 2012 that will be supported on both ARM and x86 machines? I am guessing not, since you can't create fat binaries that will execute 32 or 64 bit code so far as I am aware (only solution available that I am aware of is 32 bit that creates a 64 bit executable on the fly).</p> <p>It seems like it would be helpful of Microsoft to extend exe or create a fat binary format for Windows 8 and beyond at least that would allow one to compile a single executable for Window's expanding palette of platforms.</p> <p>edit: The following link shows how to compile an ARM exe in the first dev preview. Figured I would add that because it gives no hint of fat binary support, but it is also early in the game. I don't think not having it now rules it out as a possibility. <a href="http://www.bitcrazed.com/post/2011/09/20/Visual-Studio-11-Developer-Preview-native-ARM-Compiler.aspx" rel="nofollow">Compile for ARM</a></p>
0non-cybersec
Stackexchange
Grand Canyon photographer suspended on a rope, 1908. [2627x4368].
0non-cybersec
Reddit
The duality of man.
0non-cybersec
Reddit
[FRESH] Busu - I've been coughing blood [prod. Teo Sweden].
0non-cybersec
Reddit
PLEASE let me know if I'm doing this right.. Hi! I'm trying this out for the millionth time... I plan on going through to the end with this but I really need some feedback. Please take a look at my meal plan for tomorrow (Monday) and let me know. The meatballs are a recipe I found online and it's 1 serving (no spaghetti). The detox soup is another I found online though it has more carbs than I anticipated. I made so much of it I can't just throw it out... KWIM? I am keeping my carbs below 50g at first to ease into this as I kept failing before while setting my carbs around 20-25g. I'm hoping being able to eat a little more will help keep me motivated. Let me know your thoughts! Thanks!!! [LINK](http://imgur.com/gix99sg)
0non-cybersec
Reddit
How to use Eclipse&#39;s Display View for Debug?. <p>At the link below it explains that the "display view allows you to manipulate live code in a scrapbook type fashion (see Figure 8). To manipulate a variable, simply type the name of the variable in the Display view, and you'll be greeted with a familiar content assist."</p> <p><a href="http://www.ibm.com/developerworks/library/os-ecbug/">http://www.ibm.com/developerworks/library/os-ecbug/</a></p> <p>However, I am having trouble getting it to work. I have the view open but all the buttons are disabled. I have tried putting code in the view, selecting code in the view, selecting code in other views, while running and while not running debug, but the only button that is ever enabled on the view is "clear console".</p> <p>Suggestions on what I am doing wrong?</p>
0non-cybersec
Stackexchange
I take Step 1 of my medical licensing exams today. To keep myself sane this week, this has been my mantra.
0non-cybersec
Reddit
How to set Clang 9 as the default C++ compiler on Ubuntu 19.10?. <p>how do I set Clang 9 as the default C++ compiler on Ubuntu 19.10? I searched the internet, but nothing helped. Thank you for answer :)</p>
0non-cybersec
Stackexchange
Damming Our Future (2014)- short [11min] How proposed mega-dams in Borneo would negatively impact indigenous communities, rainforest, wildlife, and climate change..
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to extract unique permutations from pandas DataSeries?. <p>Working in Jupyter with Pandas DataSeries I have a dataset with rows like this:</p> <pre><code>color: white engineType: diesel make: Ford manufacturingYear: 2004 accidentCount: 123 </code></pre> <p>What I need to do is to plot charts of accident counts (y-axis) by manufacturing year (x-axis) for all permutations of color/engineType/make. Any ideas how to proceed with this?</p> <p>To speed things up I have this initial setup:</p> <pre><code>import numpy as np import pandas as pd from pandas import DataFrame, Series import random colors = ['white', 'black','silver'] engineTypes = ['diesel', 'petrol'] makes = ['ford', 'mazda', 'subaru'] years = range(2000,2005) rowCount = 100 def randomEl(data): rand_items = [data[random.randrange(len(data))] for item in range(rowCount)] return rand_items df = DataFrame({ 'color': Series(randomEl(colors)), 'engineType': Series(randomEl(engineTypes)), 'make': Series(randomEl(makes)), 'year': Series(randomEl(years)), 'accidents': Series([int(1000*random.random()) for i in range(rowCount)]) }) </code></pre>
0non-cybersec
Stackexchange
Affiliation number by default relaxed. <p>I am using authblk.sty and xkeyvalue.sty. By default the author number should be relaxed. But by default my current output is author number is one. </p> <p>My code is below mentioned:</p> <pre><code>\author{Maria Luisa Di Vona} \author{Emanuela Sgreccia} \author[aff={1,2},coraddress={Richard, Dipartimento di Scienze e Tecnologie Chimiche, Universita di Roma Tor Vergata, Via della Ricerca Scientifica 1, 00133 Roma, Italia},email={[email protected]}]{Riccardo Narducci} </code></pre> <p>My current output is:</p> <pre><code>Maria Luisa Di Vona 1 , Emanuela Sgreccia 1 , and Riccardo Narducci 1,2 </code></pre> <p>My Required output is:</p> <pre><code>Maria Luisa Di Vona, Emanuela Sgreccia, and Riccardo Narducci 1,2 </code></pre> <p>I am not give any value <code>aff={affilation number}</code> in the following author "Maria Luisa Di Vona, Emanuela Sgreccia,". If i am not give the value the affiliation number should be relxed. But current output is by default displayed one. How to relax the affiliation number by defult?. Please advice.</p> <p>MWE:</p> <pre><code>\documentclass{article} \usepackage{authblk} \usepackage{xkeyval} \usepackage{etoolbox}% \usepackage{xparse}% \usepackage{hyperref} \makeatletter \def\@maketitle{% \vbox to \textheight{\vbox to \textheight{\vspace*{12pc}%\vfill% \hbox to 10pc{\hfill% \begin{minipage}[b]{10pc} {\@correspondence\par}% \vskip 6pt% {\@presentaddress}% \end{minipage}}} \hspace*{11pc} \vbox to \textheight{\vspace*{-44pc}% \hbox to 10pc{\hfill% \begin{minipage}[b]{25pc} \let \footnote \thanks {\raggedright\fontsize{18pt}{20pt}\selectfont\@title \par}% \vskip 1.5em% {\large \begin{tabular}[t]{l}% \raggedright\@author \end{tabular}\par}% \end{minipage}}}}% \par \vskip 8.5em} \def\@correspondence{} \def\correspondence#1{% \gdef\@correspondence{\textbf{\textit{*Correspondence:}}\newline% \raggedright #1\FrontKVMacroEmail% }} \def\@presentaddress{} \def\presentaddress#1{% \gdef\@presentaddress{\textbf{\textit{$\dagger$presentaddress:}}\newline% \raggedright #1}} \define@key{authorinfo}{aff}{% \def\FrontKVMacroAff{#1}% }% \define@key{authorinfo}{coraddress}{% \def\FrontKVMacroCorAddress{#1}% }% \define@key{authorinfo}{email}{% \def\FrontKVMacroEmail{#1}% }% \define@key{authorinfo}{presentaddress}{% \def\FrontKVMacroPresentAddress{#1}% }% \define@key{authorinfo}{link}{% \def\FrontKVMacroLink{#1}% }% \let\OriginalAuthor\author \RenewDocumentCommand{\author}{+O{}+m}{% \setkeys{authorinfo}{#1}% \ifdef{\FrontKVMacroAff}{% \ifdef{\FrontKVMacroLink}{% \OriginalAuthor[\FrontKVMacroAff]{\href{\FrontKVMacroLink}{#2}}% }{% \OriginalAuthor[\FrontKVMacroAff]{#2}% }% }{% \ifdef{\FrontKVMacroLink}{% \OriginalAuthor{\href{\FrontKVMacroLink}{#2}}% }{% \OriginalAuthor{#2}% }% }% \ifdef{\FrontKVMacroCorAddress}{% \correspondence{\FrontKVMacroCorAddress}% }{% } \ifdef{\FrontKVMacroPresentAddress}{% \presentaddress{\FrontKVMacroPresentAddress}% }{% }% \undef\FrontKVMacroAff% }% End of RenewDocumentCommand. \makeatother \begin{document} \title{Hormonal crosstalk for root development} \author{Maria Luisa Di Vona} \author{Emanuela Sgreccia} \author[aff={1,2},coraddress={Richard, Dipartimento di Scienze e Tecnologie Chimiche, Universita di Roma Tor Vergata, Via della Ricerca Scientifica 1, 00133 Roma, Italia},email={[email protected]}]{Riccardo Narducci} \affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK} \maketitle \end{document} </code></pre>
0non-cybersec
Stackexchange
What Does The Notation of Union Over K represent?. <p>I am currently studying about polynomial time in Comp Theory. The definition for polynomial time given in my textbook as follows: $$P= \bigcup_{k}TIME(n^k)$$ I have not seen the <strong>Union over k</strong> notation before. K is a constant. A quick introduction to the meaning of this notation would be enormously helpful.</p> <p>Thank you</p>
0non-cybersec
Stackexchange
Collecting luggage at an airport.
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
linux debugger detection in multi-thread application using ptrace. <p>I have to implement debugger detection technique under linux. So the main idea is, my piece of code creates second thread via syscall clone. After that, created thread is supposed to check if debugger is present in while loop, sleeping for a few seconds. My question is how to implement debugger detection via ptrace in multi-thread environment inside infinite loop. My problem is that after calling ptrace(PTRACE_TRACEME, 0, 1, 0) for a second time debugger is detected (that's reasonable and correct of course). So do I have to detach tracer somehow at the end of loop or use ptrace in another way? Here is a piece of code:</p> <pre><code>new_thread: ; PTRACE xor rdi, rdi xor rsi, rsi xor rdx, rdx inc rdx xor r10, r10 mov rax, 101 ; ptrace syscall syscall cmp rax, 0 jge __nondbg call _dbg db 'debugged!', 0xa, 0 _dbg: mov rdi, 1 pop rsi mov rdx, 10 mov rax, 1 ; syscall write syscall ; exit_group call mov rdi, 127 mov rax, 231 ; exit_group syscall syscall __nondbg: call _nondbg db 'non-debugged!', 0xa, 0 _nondbg: mov rdi, 1 pop rsi mov rdx, 14 mov rax, 1 ; syscall write syscall ; ========== ; SLEEP..... ; ========== push 0 ; value should be a parameter push 5 ; value should be a parameter mov rdi, rsp xor rsi, rsi mov rax, 35 ; syscall nanosleep syscall ; syscall pop rax pop rax jmp new_thread </code></pre>
0non-cybersec
Stackexchange
[50/50] Super Bowl LIII Halftime Show (SFW) | Spongebob's version of Super Bowl LIII Halftime Show (SFW).
0non-cybersec
Reddit
ITAP of a Railroad Crossing..
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
Grab Handles appearing randomly, causes erratic mouse behavior . <p>I did a clean install of Ubuntu 11.10 recently. Every so often, <a href="https://askubuntu.com/questions/31877/how-do-i-turn-on-unity-drag-handles">Grab Handles</a> will appear on the active window. Sometimes they simply disappear after a few seconds without causing me any problems. </p> <p>Other times, the mouse appears already grabbing the window (like when you grab the center handle) and the mouse and the window will shake erratically for a few moments. In this case, I lose control over the mouse until the grab handles fade out a few seconds later. This occurs multiple times a day, maybe once every hour or two. The oddest thing about it is that I don't have Grab Handles enabled: </p> <p><img src="https://i.stack.imgur.com/akRkz.png" alt="enter image description here"></p> <p>For reference, this is an Asus G53SW laptop with a Core i7, GeForce GTX 460M and 6 GB of RAM. Any ideas?</p>
0non-cybersec
Stackexchange
Going out with a new friend for the first time.... Can anyone help me? I just recently met this girl who's really great. We like ALL the same things, she's beautiful, and she's so kind. We've been talking over text, but she wants to meet up and get some boba and go to a park now. But I'm so horrible at meeting people for the first time. I once met this other girl for boba, and was so awkward and kept putting my hands over my face. I was wearing a sweater and it got stuck on my braces cause I kept talking with my hands over my mouth. It was so embarrassing. My interactions with everyone consist mainly of awkward laughter, them saying "what?" twenty times because I trail off at the end of my sentences, and stuttering. I really want to make good conversation with her, but it's so hard to not be awkward, even if we do like all the same things. I really want to do this right instead of failing and being shy like every other time I go out with someone. Advice would be greatly appreciated.
0non-cybersec
Reddit
Pandas rank method dense but skip a number. <p>I have a sample data set that i'm trying to rank based on the values in the column 'HP':</p> <pre><code>import pandas as pd d = { 'unit': ['UD', 'UD', 'UD' ,'UC','UC', 'UC','UA','UA','UA','UB','UB','UB'], 'N-D': [ 'C1', 'C2', 'C3','Q1', 'Q2', 'Q3','D1','D2','D3','E1','E2','E3'], 'HP': [24, 24, 24,7,7,7,7,7,7,5,5,5] } df = pd.DataFrame(d) df['rank']=df['HP'].rank(ascending=False, method='dense') df </code></pre> <p>it looks like:</p> <pre><code> HP N-D unit rank 0 24 C1 UD 1.0 1 24 C2 UD 1.0 2 24 C3 UD 1.0 3 7 Q1 UC 2.0 4 7 Q2 UC 2.0 5 7 Q3 UC 2.0 6 7 D1 UA 2.0 7 7 D2 UA 2.0 8 7 D3 UA 2.0 9 5 E1 UB 3.0 10 5 E2 UB 3.0 11 5 E3 UB 3.0 </code></pre> <p>the 'HP' is a calculated column based on other columns (i won't show it here, but it's necessary in my real dataset)</p> <p>I also tried the method='min' but the outcome looks like this:</p> <pre><code> HP N-D unit rank 0 24 C1 UD 1.0 1 24 C2 UD 1.0 2 24 C3 UD 1.0 3 7 Q1 UC 4.0 4 7 Q2 UC 4.0 5 7 Q3 UC 4.0 6 7 D1 UA 4.0 7 7 D2 UA 4.0 8 7 D3 UA 4.0 9 5 E1 UB 10.0 10 5 E2 UB 10.0 11 5 E3 UB 10.0 </code></pre> <p><strong>Units 'UC' and 'UA' tie for 2nd rank, what i'm looking for is to have the next rank which is unit 'UB' to be '4' instead of '3'. :</strong></p> <pre><code> HP N-D unit rank 0 24 C1 UD 1.0 1 24 C2 UD 1.0 2 24 C3 UD 1.0 3 7 Q1 UC 2.0 4 7 Q2 UC 2.0 5 7 Q3 UC 2.0 6 7 D1 UA 2.0 7 7 D2 UA 2.0 8 7 D3 UA 2.0 9 5 E1 UB 4.0 10 5 E2 UB 4.0 11 5 E3 UB 4.0 </code></pre>
0non-cybersec
Stackexchange
oh fuck press f to pay respects to tony.
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
Who to talk to professionally for information regarding diets and workouts. Hello Reddit fitness, I have so many things saved from online searches and Reddit posts but how can I truly get a professionals advice and information on what is truly a healthy lifestyle? -what is the difference between a dietitian and a nutritionist and how important are they for finding out my caloric intake for maintenance and gaining information on how to lose fat/gain muscle and healthy bulking/cutting? How to properly track calories and figure out healthy macros. -who can I speak to about what a healthy daily diet would look like to maximize the gains I would make from my daily workout routine? (I do recommended routine every other day, and between 10-15 mile bike ride every other. I plan on adding ppl on the bike days as well for more strength gain) At this point in my life I feel like I have the workouts under control but I am beyond lost in how to make the most of this in the kitchen. Thinking of adding protien shakes just to make sure I'm getting enough protien, but how am I to know if I am or not hahaha, I just really want to find good resources for these things. Thanks and have a great time!
0non-cybersec
Reddit
Smack!.
0non-cybersec
Reddit
Quasisimple group with cyclic Sylow p-subgroup and weakly real p-elements?. <p>Does there exist a quasisimple group $G$ and an odd prime $p$ such that $G$ has cyclic Sylow $p$-subgroups and a weakly real element of $p$-power order?</p> <p>From <a href="https://mathoverflow.net/questions/224519/strongly-real-elements-of-odd-order-in-sporadic-finite-simple-groups">Strongly real elements of odd order in sporadic finite simple groups</a> the only sporadic finite simple group which has weakly real $2$-regular elements is McL. But McL does not have cyclic Sylow $p$-subgroups for the prime orders $3$ and $5$ of the weakly real elements.</p>
0non-cybersec
Stackexchange
ASP.NET MVC3 add a HtmlFieldPrefix when calling Controller.PartialView. <p>I am rendering a partial view as part of an Ajax request. </p> <p>When I call the partial view from a view:</p> <pre class="lang-c# prettyprint-override"><code>int i=0; foreach(var rule in Model.Rules) { @Html.Partial("ValidationRuleRow", rule, new ViewDataDictionary { TemplateInfo = new System.Web.Mvc.TemplateInfo { HtmlFieldPrefix = string.Format("Rules[{0}]", i) } }) i++; } </code></pre> <p>I am able to set the HtmlFieldPrefix to allow for proper Model binding.</p> <p>I want the user to be able to add a new ValidationRuleRow on the fly via ajax, like:</p> <pre class="lang-javascript prettyprint-override"><code>$.ajax({ type: "GET", url: "/Monitors/NewMonitorValidationRule", success: function (data, textStatus, jqXHR) { var element = $(data); $("#ValidationRuleContainer").append(element); } }); </code></pre> <p>So I have an action in my controller to get the HTML:</p> <pre class="lang-c# prettyprint-override"><code>public ActionResult NewMonitorValidationRule() { ValidationRule rule = new ValidationRule{Id = TempSurrogateKey.Next}; var view = PartialView("ValidationRuleRow", rule); // CODE TO SET PartialView field prefix return view; } </code></pre> <p>The returned HTML doesn't have a prefix. Is there anyway to set a prefix when calling a PartialView from an Action in a Controller?</p>
0non-cybersec
Stackexchange
Going to Montreal, Canada from the US next weekend. How much money should we bring?. So my fiancée and I are traveling via train from Windsor to Montreal. We are from Michigan and taking out cash from our respective banks to take with us. She budgeted $700 for herself on this trip and that’s all she plans to use, even though she’ll have a debit/credit card with her. I’d like to share a basic version of our itinerary that is mainly going to include the places and things we plan to see and prices of those things. If someone could tell me if her $700 is enough or not enough, that would be great. She said to me that she’s not sure if $700 will be enough or too little and I said I’ll check on Reddit because this place is a treasure trove of knowledge! Basic Itinerary: Saturday, August 12, 2017 This will be travel day via train. Or maybe I could’ve said via rail... Arrive and Check into Hotel Dinner at II Focolaio Explore Montreal or Go back to Hotel and chill. Sunday Mont-Royal Park Montreal Museum of Fine Arts (10-5) Admission: $15 per person Mile End Monday Old Town Montreal - St. Paul Street - Notre Dame Basilique Tuesday Underground City Mall (10-9) Biodome (9-6) Admission: $20.25 Wednesday We leave early morning to get back to Michigan. So essentially, we’ll need spending money for food/snacks (plus any restaurant tips), any souvenirs, shopping in general, and anything else we come across that we want to do that’s not planned on this list. Also, we’ll be getting a metro pass to come and go on the metro as we please so that I think might be $20? With all that in mind, should we take more than $700 each or is that too much? Thank you to all who answer!
0non-cybersec
Reddit
Beamer - unable to move image + caption downwards. <pre><code>%!TEX program = xelatex \documentclass[10pt, aspectratio=1610]{beamer} \usetheme[titleformat=allcaps, progressbar=frametitle]{metropolis} \usepackage{booktabs} \usepackage[scale=2]{ccicons} \usepackage{caption} \usepackage{pgfplots} \usepackage{mhchem} \usepgfplotslibrary{dateplot} \usepackage{xspace} \newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace} \title{Apoptosis facilitates antigen presentation to T lymphocytes through MHC-I and CD1 in tuberculosis} \subtitle{ \small Schaible \emph{et al.} (2003)} \date{February 18, 2016} \author{Demo} \institute{Demo} % \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo/logo}} \begin{document} \maketitle \begin{frame}{\emph{M. tuberculosis} antigens and particulates are confined within the phagosome} \begin{columns} \column{0.7\textwidth}% \vspace*{-1cm}\includegraphics[width=1.0\textwidth]{mycobacteriumvstubcerolosis.png} \vspace*{1cm}\captionof{figure}{\footnotesize Left quadrant: dyes from labeled- \emph{M. tuberculosis} remain confined within phagosomes. Right quadrant: dyes from labeled-\emph{L. monocytogenes} were released into the cell &lt;10 mins after infection. Arrows indicate bacteria-containing phagosomes.} \column{0.4\textwidth} \begin{itemize} \itemsep1em \item The mycobacterial phagosome appears to be impermeable to macromolecules \item Membrane-impermeable fluorescent molecules were \alert{retained} in phagosomes across all maturation stages \end{itemize} \end{columns} \pause \metroset{block=fill} \begin{alertblock}{Seclusion from the classical MHC-I pathway is apparent.} There must be another alternative pathway for antigen delivery. \end{alertblock} \end{frame} \end{document} </code></pre> <p>I'm trying to move the image here downwards, but it won't move. Even with vspace, the image moves down, but the caption moves upwards. It's covering the progress bar and doesn't quite look that good.</p> <p>Thanks for the help guys.</p> <p><a href="https://i.stack.imgur.com/w0onS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w0onS.jpg" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
💘💕💟❤Aww!!!!!💕💞💓💗.
0non-cybersec
Reddit
"The Three P's of Hacking" by Gary Hayslip.
1cybersec
Reddit
Taking on the DSLR Giants: Fstoppers Reviews the Pentax K-1 Camera..
0non-cybersec
Reddit
Bill Simmons: if you are tired of Warriors vs Cavs, then come next collective bargaining let's vote for "hard cap". Warriors and Cavs have the #1 and #2 highest salary in NBA.. Bill Simmons was talking about how Adam Silver would respond if someone were to complain to him about how they are tired of Cavs vs Warriors every year. Does "hard cap" really promote parity? the only major sport league in US that has hard cap is NHL. How is the competitive balance in NHL?
0non-cybersec
Reddit
18M 6'0" SW:180 CW:180 GW:165 Student with occasional exercise. Having trouble!. Hey guys, I am brand new to this sub. So please forgive any mistakes I may make. I am a student who is attempting to lose some poundage before the summer. I am not unrealistic. I understand that I am a little late and that I won't have a six pack by July. However, that is my goal. I am having trouble staying motivated as well as finding alternative food choices when I am hungry, and lastly, identifying a "bored" hungry or a "hungry" hungry! Any help would be greatly appreciated!
0non-cybersec
Reddit
Rank and Range space of Powers of a Matrix. <p>Consider $A$ is some singular $N \times N$ real matrix. I learned that range space of $A$ (denote as $R(A)$) shrinks as one takes its powers (I learned a proof based on vector spaces for that also). So $R(A) \supseteq R(A^2) \supseteq R(A^3)\dots $ and so on. This should imply that $rank(A) \geq rank(A^2) \geq rank(A^3)\dots$. since the dimension is decreasing (non-increasing). I have also learned that rank of a matrix is also same as the number of non-zero eigen values. But then, eigen-values of powers of $A$ are the powers of eigen-values of $A$. So doesn't it imply that $rank(A)=rank(A^2)$. If it is so, then how can range space shrink, for after all, rank is the dimension of range space. I believe I am missing some thing in this chain of arguments I made. </p>
0non-cybersec
Stackexchange
Android SQLite rawquery parameters. <p>How can i pass intger to a rawquery in sqlite for android. Here its not taking g and s into query. Please guide. </p> <pre><code> int g, s; Cursor cur3 = database2.rawQuery("select max(UnixTimeStamp) from Quote where EmoticonID=%d and SubCategoryID=%d" ,new String [] {g,s}); </code></pre>
0non-cybersec
Stackexchange
Split a USB into partitions. <p>Not sure if this is even possible but...</p> <p>Is it possible to partition a USB drive so I can have a partition for a Live install of Linux and then a partition for storing files on?</p>
0non-cybersec
Stackexchange
Add a image to React Bootstrap dropdown. <p>I'm using React Bootstrap and React Router Bootstrap for my Navbar, and I am making a user profile dropdown menu list.</p> <p>I'd like to be able to have an user's avatar show up in place of the 'title' property. (The same idea as the user profile dropdown on Github)</p> <p>Is this possible? I don't see any options to use an image instead of title for NavDropdown</p> <pre><code>&lt;Navbar inverse&gt; &lt;Navbar.Header&gt; &lt;Navbar.Toggle /&gt; &lt;/Navbar.Header&gt; &lt;Navbar.Collapse&gt; &lt;Nav pullRight&gt; &lt;NavDropdown eventKey={ 3 } id="profile-dropdown" &gt; &lt;LinkContainer to="/profile/edit" &gt; &lt;NavItem eventKey={ 3.4 } &gt; Edit &lt;/NavItem&gt; &lt;/LinkContainer&gt; &lt;LinkContainer to="/logout"&gt; &lt;Logout eventKey={ 3.5 } /&gt; &lt;/LinkContainer&gt; &lt;/NavDropdown&gt; &lt;/Nav&gt; &lt;/Navbar.Collapse&gt; &lt;/Navbar&gt; </code></pre> <p>Would a SplitButton or straight Dropdown be a better option? I don't really see much that the "NavDropdown" is adding to the HTML.</p>
0non-cybersec
Stackexchange
Being in his future wife's family picture years before meeting.
0non-cybersec
Reddit
Opossum breaks into liquor store and gets drunk as a skunk.
0non-cybersec
Reddit
Can you guess the product of this Japanese commercial?.
0non-cybersec
Reddit
Take this lollipop - an interactive stalker simulation via FaceBook.
0non-cybersec
Reddit
Tyranitar used Giga Impact.
0non-cybersec
Reddit
Caching a data frame in joblib. <p>Joblib has functionality for sharing Numpy arrays across processes by automatically memmapping the array. However this makes use of Numpy specific facilities. Pandas does use Numpy under the hood, but unless your columns all have the same data type, you can't really serialize a DataFrame to a single Numpy array.</p> <p>What would be the "right" way to cache a DataFrame for reuse in Joblib?</p> <p>My best guess would be to memmap each column separately, then reconstruct the dataframe inside the loop (and pray that Pandas doesn't copy the data). But that seems like a pretty intensive process.</p> <p>I am aware of the standalone Memory class, but it's not clear if that can help.</p>
0non-cybersec
Stackexchange
cursed_torso.
0non-cybersec
Reddit
I get to play twice a week for an hour and every other week, Star Wars decides to update. Breaks my heart considering it’s a pretty bad game! (I’m only playing it for the trophies).
0non-cybersec
Reddit
Question about Alternating forms. <p><img src="https://i.stack.imgur.com/Nu5Fz.png" alt="enter image description here"></p> <p>So I understand the definition of an alternating form on $\mathbb{R}^m$, but I don't really understand the proof of the lemma. Could someone explain the first observation? Why is it so?</p>
0non-cybersec
Stackexchange
Counter for table labelling is wrong. <p>I have a table and am trying to include a caption and label. The caption is printed but with the wrong number. It is my first table in the document, but latex uses the number of my Chapter (3.1) for the table. I tried fixing it by manipulating the counter, but it will only change between 3.1 and 3.2. </p> <p>This is my code:</p> <pre><code>\setcounter{table}{0} \begin{table}[h!] \begin{tabu}to 0.8\textwidth { | X[c] || X[c] | X[c] | } \hline Measure &amp; Min &amp; Max \\ \hline \hline One &amp; 1 &amp; 26 \\ \hline Two &amp; 6.353 &amp; 2.2 \\ \hline Three &amp; 0 &amp; 8.46 \\ \hline Four &amp; -16.86 &amp; -2.94 \\ \hline \end{tabu} \caption{Statistics of indices} \label{table:1} \end{table} </code></pre> <p>Can somebody help? I've been fighting with this table for hours and would really appreciate tips!</p>
0non-cybersec
Stackexchange
Spam event in Calendar.
0non-cybersec
Reddit
My desktop on my Macbook! Made with Geektool..
0non-cybersec
Reddit
www.por......
0non-cybersec
Reddit
Welcome everyone!. #Hello all! Welcome to /r/youseeingthisshit! There has been an increase in posts again lately, which is great! Please be sure to check out the sidebar before posting! Is there anything you would like to see on this subreddit in terms of improvements, changes etc? If so, put a comment in this thread! If you have any questions, feel free to ask them here or [message the moderators](https://www.reddit.com/message/compose?to=%2Fr%2Fyouseeingthisshit) We would like to remind you all that the report button is the best weapon against posts breaking the [rules](https://www.reddit.com/r/youseeingthisshit/about/rules/). --- ##Here are some classics to get you started: * [The one which started it all](http://i.imgur.com/ObolcBf.gifv) (one of my favourites!) * [A snotty surprise](http://gfycat.com/WickedSociableDiplodocus) * [And an otter that just couldn't handle this shit](http://i.imgur.com/AveStx1.gifv) --- Regards, The moderators of /r/youseeingthisshit
0non-cybersec
Reddit
Apparently when you lose your temper and sling a fork and it bounces just right off the counter it costs around $700.
0non-cybersec
Reddit
The Academy Awards in a nutshell.
0non-cybersec
Reddit
Should the aggregate root have a property that it cannot validate. <p>I ran into the situation where I have to decide whether a property belongs to my aggregate or not. My domain logic is the following. A User has a group in his organization ex: IT, SALES, MARKETING. Depending on which group this user belongs to, he will have a set of Permissions. The logic of which group has which permissions is defined in the Website Policies. A Policy is a mapping between a group and a set of permissions. ex: group IT has permissions to view post, edit post and delete posts.</p> <p>I have 2 aggregates: User and Website(we are managing multiple websites)</p> <p>The question is: Should the permissions be part of the user aggregate?</p> <p>It is easy and somehow makes sense to have the permissions in the user aggregates so it can be requested any time. But the problem I see with this is that the user aggregate root will not be able to satisfy this invariant:"A user should have the permissions that are defined for the groups that he/she belongs to" and since the permissions are transient data and they are not being persisted I think it should not be part of the User AR.</p> <p>The other option would be to have a domain service or a method in the website AR that returns the permissions for a specific user. And then use this method whenever the permissions are needed.</p>
0non-cybersec
Stackexchange
Turkish jets violate Greek air-space 71 times in 24 hours, with 4 dog-fights taking place.
0non-cybersec
Reddit
why opening a port is so difficult in ubuntu?. <p>I have searched around and I have run these commands</p> <pre><code>iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 5432 -j ACCEPT iptables-save &gt; /etc/iptables.rules </code></pre> <p>And I rebooted the box. I had no luck.</p> <p>What am I missing? IS there a universal way to do this thing in ubuntu? I remember in fedora I just need to edit a text file and make it happen.</p> <p>Thanks</p> <p><strong>UPDATE</strong></p> <p>I have run </p> <pre><code>ufw allow 5432 </code></pre> <p>and I ran</p> <pre><code> ufw status </code></pre> <p>I got this result</p> <pre><code>Status: active To Action From -- ------ ---- 5432/tcp ALLOW Anywhere 80 ALLOW Anywhere 22 ALLOW Anywhere 5432 ALLOW Anywhere 5432/tcp ALLOW Anywhere (v6) 80 ALLOW Anywhere (v6) 22 ALLOW Anywhere (v6) 5432 ALLOW Anywhere (v6) </code></pre> <p>I still cannot access 5432!</p>
0non-cybersec
Stackexchange
Blank Screen/Command prompt on Ubuntu/Window 8.1 daul boot toshiba laptop. <p>For the last few days I have been trying to configure a laptop to dual boot. The laptop works works very well booting into both ubuntu 12.04 LTS and Widows 81. without any issue until I install item 1 (I need these updates for Android Development work). The same issue can be duplicated by installing item 2. The blank screen / command line appears after the GRUB menu.</p> <ol> <li><pre>sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 minicom tftpd uboot-mkimage expect libgl1-mesa-dri sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so</pre></li> <li><pre>sudo apt-get install xserver-xorg-video-intel</pre> <p>Per the follwing post <a href="https://askubuntu.com/questions/166224/how-do-i-install-the-intel-graphics-driver-in-my-system?answertab=oldest#tab-top">"how do I install intel graphic drivers"</a> It is my understanding that the Intel Graphic drivers are part of the xserver-xorg-video-intel driver package.</p></li> </ol> <p>Note: I have reviewed other posts but doesn't seem to find a solution. Thus this post.</p> <p><strong>Main Hardware</strong></p> <ol> <li>Toshiba Satellite C55-A5310</li> <li>Intel i3-3120M processor</li> <li>Intel® HD Graphics 4000 (Ivy Bridge GPU)</li> </ol> <p><strong>Software</strong></p> <ol> <li>Window 8.1</li> <li>Ubuntu 12.04.3 LTS (uname -r > 3.8.0-35-generic)</li> </ol> <p>Summary of what I have tried so far:</p> <ol> <li>change quiet Splash to nomodeset.</li> <li>sudo apt-get install mesa-utils</li> <li>edit grub -> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset", GRUB_GFXMODE=1366x768, update-grub -> stuck at ubuntu splash, (starting CUPS printing spooler/server OK)</li> </ol> <p><strong>References</strong></p> <ol> <li><p><a href="http://www.linuxbsdos.com/2013/03/12/dual-boot-windows-8-and-ubuntu-12-04-in-uefi-mode/" rel="nofollow noreferrer">Dual-boot Windows 8 and Ubuntu 12.10 in UEFI mode</a></p></li> <li><p><a href="http://www.everydaylinuxuser.com/2013/09/install-ubuntu-linux-alongside-windows.html" rel="nofollow noreferrer">Installing ubuntu along side windows 8</a> </p></li> </ol>
0non-cybersec
Stackexchange
Maven failing to download jar dependencies. <p>I have a very simple default application that I've created to test my Eclipse Indigo/Maven v3.0.1 setup on my Windows 7 machine. The Hello World app runs fine from Eclipse.</p> <p>Now from the command line I'm trying to test with <code>mvn install</code>.</p> <p>At which point I see Maven download a large series of dependencies. For some reason though it will get stuck downloading one and will just stop part way through. It's not at the same point each time, but it's currently consistently the same jar file, eg...</p> <blockquote> <p><a href="http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.5/surefire-booter-2.5.jar" rel="noreferrer">http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.5/surefire-booter-2.5.jar</a></p> </blockquote> <p>If I download this file from a browser it works perfectly. Quite fast in fact. Now if I manually copy that downloaded file to the appropriate directory in my <code>.m2</code> repository directory, the install continues to download dependencies until it hits another one at random which it stops at.</p> <p>Here's my POM, although I'm not sure it'll help as it's so basic and seems to work fine with a <code>mvn compile</code>.</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.kyeema&lt;/groupId&gt; &lt;artifactId&gt;QServer&lt;/artifactId&gt; &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt; &lt;packaging&gt;jar&lt;/packaging&gt; &lt;name&gt;QServer&lt;/name&gt; &lt;url&gt;http://maven.apache.org&lt;/url&gt; &lt;properties&gt; &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt; &lt;/properties&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;junit&lt;/groupId&gt; &lt;artifactId&gt;junit&lt;/artifactId&gt; &lt;version&gt;3.8.1&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/project&gt; </code></pre> <p>Here's some debug output referencing some dummy jar file?</p> <pre><code>[INFO] Surefire report directory: C:\workspace\QServer\target\surefire-reports [DEBUG] Setting system property [user.dir]=[C:\workspace\QServer] [DEBUG] Setting system property [localRepository]=[C:\Users\Andre\.m2\repository] [DEBUG] Setting system property [basedir]=[C:\workspace\QServer] [DEBUG] Using JVM: C:\Program Files\Java\jdk1.7.0\jre\bin\java [DEBUG] dummy:dummy:jar:1.0 (selected for null) [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.7.2:compile (selected for compile) [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.7.2:compile (selected for compile) [DEBUG] Adding to surefire booter test classpath: C:\Users\Andre\.m2\repository\org\apache\maven\surefire\surefire-booter\2.7.2\surefire-booter-2.7.2.jar Scope: compile [DEBUG] Adding to surefire booter test classpath: C:\Users\Andre\.m2\repository\org\apache\maven\surefire\surefire-api\2.7.2\surefire-api-2.7.2.jar Scope: compile [DEBUG] dummy:dummy:jar:1.0 (selected for null) [WARNING] Missing POM for org.apache.maven.surefire:surefire-junit3:jar:2.7.2: Error resolving project artifact: Failure to find org.apache.maven.surefire:surefire-junit3:pom:2.7.2 in http://mirrors.ibiblio.org/pub/mirrors/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of ibiblio.org has elapsed or updates are forced for project org.apache.maven.surefire:surefire-junit3:pom:2.7.2 [DEBUG] org.apache.maven.surefire:surefire-junit3:jar:2.7.2:test (selected for test) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.626s [INFO] Finished at: Tue Aug 16 13:18:42 PDT 2011 [INFO] Final Memory: 8M/154M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project QServer: Error to resolving surefire provider dependency: Missing: [ERROR] ---------- [ERROR] 1) org.apache.maven.surefire:surefire-junit3:jar:2.7.2 [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=2.7.2 -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=2.7.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) dummy:dummy:jar:1.0 [ERROR] 2) org.apache.maven.surefire:surefire-junit3:jar:2.7.2 [ERROR] [ERROR] ---------- [ERROR] 1 required artifact is missing. [ERROR] [ERROR] for artifact: [ERROR] dummy:dummy:jar:1.0 [ERROR] [ERROR] from the specified remote repositories: [ERROR] ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2, releases=true, snapshots=false) </code></pre>
0non-cybersec
Stackexchange
From Excel to DataTable in C# with Open XML. <p>I'm using Visual Studio 2008 and I need create a <code>DataTable</code> from a Excel Sheet using the Open XML SDK 2.0. I need to create it with the DataTable columns with the first row of the sheet and complete it with the rest of values.</p> <p>Does anyone have a example code or a link that can help me to do this?</p>
0non-cybersec
Stackexchange
3 monitors with asus zenbook ux410uq. <p>I have Asus Zenbook ux410uq, and i would want to work with 3 external monitors, but i have only one HDMI port, and one usb c-type. I am wondering, can i plug one monitor with usb c-type to hdmi adapter, and other monitors with hdmi splitter? Will it works correctly? Or maybe one HDMI splitter which would split my hdmi to 3 or 4? If not, is there any solutions to plug 3 monitors to this laptop?</p>
0non-cybersec
Stackexchange
Integrating $\int_0^{\frac{\pi}{2}} \frac{x}{\cos(x)+\sin(x)} \mathrm dx$ using complex analysis. <p>I am struggling with the integration of <span class="math-container">$$ \text{I} = \int_0^{\frac{\pi}{2}} \frac{x}{\cos(x)+\sin(x)} \mathrm dx$$</span> using complex analysis. I used the substitution <span class="math-container">$z=e^{ix} \rightarrow \mathrm dx = \frac{1}{iz}\mathrm dz$</span> and hence <span class="math-container">$\cos(x)+\sin(x)= ((z+\frac{1}{z})-i (z-\frac{1}{z}))$</span> because we have <span class="math-container">$ \cos(x)=\frac{1}{2}(e^{ix}+ e^{-ix})$</span>, and <span class="math-container">$ \sin(x)=\frac{1}{2i}(e^{ix} -e^{-ix})$</span>, and <span class="math-container">$x= -i \ln(z)$</span>. However I am not successful to obtain the correct result when using real analysis, which gives <span class="math-container">$$\text{I}= \displaystyle\int_{0}^{\frac{\pi}{2}}\dfrac{x}{\sin\,x + \cos\,x}\,dx = 0.978959918 $$</span></p> <p>Any idea how to calculate this integral using complex analysis and Cauchy integral theorem?</p>
0non-cybersec
Stackexchange
Hash : How does it work internally?. <p>This might sound as an very vague question upfront but it is not. I have gone through <a href="http://en.wikipedia.org/wiki/Hash_function" rel="noreferrer">Hash Function</a> description on wiki but it is not very helpful to understand. </p> <p>I am looking simple answers for rather complex topics like Hashing. Here are my questions:</p> <ol> <li>What do we mean by hashing? How does it work internally?</li> <li>What algorithm does it follow ?</li> <li>What is the difference between <code>HashMap</code>, <code>HashTable</code> and <code>HashList</code> ?</li> <li>What do we mean by 'Constant Time Complexity' and why does different implementation of the hash gives constant time operation ?</li> <li>Lastly, why in most interview questions <code>Hash</code> and <code>LinkedList</code> are asked, is there any specific logic for it from testing interviewee's knowledge?</li> </ol> <p>I know my question list is big but I would really appreciate if I can get some clear answers to these questions as I really want to understand the topic.</p>
0non-cybersec
Stackexchange
$(a+b)^\beta \leq a^\beta +b^\beta$ for $a,b\geq0$ and $0\leq\beta\leq1$. <p>It seems that $(a+b)^\beta \leq a^\beta +b^\beta$ for $a,b\geq0$ and $0\leq\beta\leq1$. However, I could not prove this nor the same result for a general concave and increasing function (for which it might not hold). If the inequality is true, does it follow from some general inequality or is there some other simple proof? </p>
0non-cybersec
Stackexchange
Subsets of $[n]$ of size $k$ with exactly one couple of consecutive integers.. <p>I hope I'm not asking a question that has previously been asked (and answered).</p> <p>I have to determine how many subsets of $[n]:=\{1,\dots,n\}$ of size $k$ contain exactly one couple $(i,i+1)$ of subsequent integers. I have used the following approach: let $T=(t_1,\dots,t_n)\subset\{0,1\}^n$ be a binary string of length $n$, identifying a subset of size $k$ drawn from $[n]$, i.e. $\sum_i t_i=k$. For $T$ to meet the conditions stated above, it must be the case that $T$ contains $k-2$ non consecutive ones and a couple of consecutive ones.</p> <p>To build such sequence, I used the method of stars and bars: first find a sequence of length $k-1$ with no consecutive numbers and then obtain a sequence of length $k$ with one consecutive couple.</p> <ol> <li>Place $n-k$ consecutive zeros in a string.</li> <li>There are $n-k+1$ places where $k-1$ ones can be placed so that they are non consecutive, hence there are $\binom{n-k+1}{k-1}$ sequences of length $n-1$ with $k-1$ ones that are non consecutive.</li> <li>Add an extra one close to the previous one. For any sequence in $(2.)$ there are $(k-1)$ possibilities.</li> </ol> <p>Overall, that would give $(k-1)\times\binom{n-k+1}{k-1}$ possibilities.</p> <p>Does this make sense? Thanks!</p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Printing with SP-213w. <p>I have a Ricoh SP 213w printer, connected to my machine with a cable. I am on Ubuntu 16.04.3 LTS 64-bit</p> <p>When I print PDF, sometimes it works. Sometimes it prints out garbage.</p> <p>How could I make it consistently print a PDF correctly, rather than garbage (attached)</p> <p>Example of Garbage</p> <p><a href="https://i.stack.imgur.com/XYxNu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XYxNu.jpg" alt="Example of printed garbage"></a></p> <p>Printer Settings</p> <p><a href="https://i.stack.imgur.com/FPDPJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FPDPJ.png" alt="Printer Settings"></a></p>
0non-cybersec
Stackexchange
Knapsack variant. <p>In my line of work, I have encountered the following variant of discrete knapsack and I was wondering if it has already been studied. E.g. We are given a set of 3 items (A,B,C). The goal is to maximize the value carried for a given weight constraint. The variant has the following additional constraints:</p> <ul> <li><p>Step 1: The first item choice is always A.</p> <p>If the finite set with A's weights is $W_A = \{ 3.4 ,10, 12.5 \}$, we pick e.g the value $w=12.5$ <em>once</em>.</p></li> <li>The choice $w$ of A's weight affects (deterministically) the weights and values of B and C. I.e. the weigt set $W_B = f(w)$ and the value set $V_B = g(w) $. Same for $W_C, V_C$.</li> <li>Step 2: We want to maximize the value (for a given total weight) by adding items B and C in the knapsack.</li> </ul> <p>Has this been studied before? Is solving it equivalent to performing knapsack once per weight choice in set $W_A$ ? (i.e. 3 times in the example above) </p> <p><strong>UPDATED with more formal definition:</strong></p> <p>Assume $n$ finite sets $A_1,A_2,...,A_n$</p> <p>Assume you are allowed a single choice $a_i$ from each set, i.e. $a_1 \in A_1, ... , a_n \in A_n$</p> <p>Assume the weight $w$ to be a function of all choices i.e. $w=f(a_1,...,a_n)$</p> <p>Assume the value $v$ to be a function of all choices i.e. $v=g(a_1,...,a_n)$ </p> <p>Assume a maximum weight capacity $W_c$</p> <p><strong>Goal:</strong></p> <p>Find choices $(a_1,...,a_n)$ that maximize value $v=g(a_1,...,a_n)$, while $w=f(a_1,...,a_n) \le W_c$ </p>
0non-cybersec
Stackexchange
PHP File Download using POST data via jQuery AJAX. <p>So I know there have been a number of <a href="https://stackoverflow.com/questions/3499597/javascript-jquery-to-download-file-via-post-with-json-data">similar</a> posts, but I think this is enough of a variation to warrant its own question:</p> <p>I am building an XLS exporter in PHP and jQuery. I am trying to POST an array with jQuery (which I believe is going to be too long as a GET querystring), and use it to generate an XLS file on my server, which the user can then download.</p> <p>I have used hidden iframes in the past to accomplish this, but since they just redirect to a url, this requires me to use GET, which makes me nervous. </p> <p>My question is then: how do I store those files on my server and link to them if they're being generated dynamically, potentially by multiple users? Would a hidden iframe link to a separate PHP script that locates THEIR file based on a session ID or something like that?</p> <p>Thanks in advance for any guidance here on what I'm sure gets asked all the time :)</p>
0non-cybersec
Stackexchange
Elton John Calls ‘The Lion King’ Remake ‘Huge Disappointment': ‘They Messed the Music Up’.
0non-cybersec
Reddit
TIL that after Beethoven went deaf, he found he could affix a metal rod to his piano and bite down on it while he played, enabling him to hear perfectly through vibrations in his jawbone. The process is called bone conduction..
0non-cybersec
Reddit
If $AB + BA = 0$, what is $\operatorname{tr}(B)$?. <p>If $A$ is a regular square matrix with the dimension $n$ and $B$ is a square matrix with the dimension of $n$ and $AB + BA = 0$, find the trace of $B$.</p> <p>From here, I can get this: </p> <p>$AB = -BA$</p> <p>$ABA^{-1} = -B$</p> <p>But I just don't see how I should proceed, or if I am even on the right track. Any help with the solution is appreciated..</p>
0non-cybersec
Stackexchange
Buy Negative TripAdvisor Reviews.
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
[Image] Did anyone else notice the insomniac games building? There was a bomb threat inside!.
0non-cybersec
Reddit
How the US tax code impacts marital income.
0non-cybersec
Reddit
Been waiting for an excuse to use this gif; gave up. Enjoy..
0non-cybersec
Reddit
Ports for NAT&#39;ed Windows share. <p>Simple question: I have a NATed Linux at home that hosts a couple of samba shares. What Ports should I forward from the router to the Linux box so as to be able to access those shares from the internet with windows explorer (a la "\my.dyndns.org\shares\xxx" style)? I want the <strong>minimum</strong> number of port openings that I should do in the router config to have read/write functionality.</p> <p>EDIT: Client machine is a Vista one</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
Res Arcana - Wondrous Alchemy? - Review - TL:DW in Comments.
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
Every single time I try opening a box of Mac & Cheese.
0non-cybersec
Reddit
Pulling Data From One Data Frame Into Another. <p>I am wondering how to pull data from one data frame into another when there are two different filtering critera.</p> <p>my dataframe A is </p> <pre><code> TransactionNo Date AccountNo TransactionType Amount Currency 1 1000001 2019-07-01 10001 Spend -12.44 SGD 2 1000002 2019-07-01 10001 Spend -31.92 CNY 3 1000003 2019-07-03 10001 Spend -8.08 USD 4 1000004 2019-07-04 10001 Spend -6.02 SGD 5 1000005 2019-07-05 10001 Spend -5.04 USD 6 1000006 2019-07-06 10001 Spend -8.43 SGD </code></pre> <p>my dataframe B is</p> <pre><code> Date USD CNY SGD &lt;dttm&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; 1 2019-07-01 00:00:00 1.35 0.198 1 2 2019-07-02 00:00:00 1.40 0.198 1 3 2019-07-03 00:00:00 1.36 0.197 1 4 2019-07-04 00:00:00 1.37 0.197 1 5 2019-07-05 00:00:00 1.38 0.197 1 6 2019-07-06 00:00:00 1.39 0.197 1 </code></pre> <p>I want to create a new column in dataframe A called Exchange. The entries in this new column can be taken from dataframe B. The entries taken would depend on the matching of Currency and matching of Date within both dataframes. For example, the first row in dataframe A would be 1. Second row is 0.198. Third row is 1.36.</p> <p>The end code would look something like</p> <pre><code>A &lt;- mutate(A, Exchange = XXXXXXXXXXX) </code></pre> <p>I understand that everyone has their own responsibilities to fulfil in life, and as such your time is precious. I really appreciate all of you sacrificing your valuable time and energy in helping new programmers like me to learn basic programming. Thank you all so much.</p>
0non-cybersec
Stackexchange
Backing up Mac OSX to Windows/Samba share. <p>This should not be this hard ... is there an easy way to back up a mac to a windows share?</p> <p>so far, I've tried the suggestions here, but am getting error:<br> <a href="http://hupio.wordpress.com/2008/04/27/osx-timemachine-and-sambawindows-share/" rel="nofollow noreferrer">http://hupio.wordpress.com/2008/04/27/osx-timemachine-and-sambawindows-share/</a></p> <p>Surely this isn't the only way. I'm currently trying to use time machine, but really I'd appreciate any other (free) backup solutions that you can suggest.</p>
0non-cybersec
Stackexchange
Global problem.
0non-cybersec
Reddit
/u/curious_mormon and /u/jersephsmerth are starting some Martin Luther type shit. /u/kolobot, at direction of Mormon leaders, wrote CES Letter. Instead of responding, church is excommunicating him. Users suggest he nail the CES Letter to the wall of the building where the court of love will occur..
0non-cybersec
Reddit
For me, The Descent is one of the most underrated horror flicks of all time. Is anyone with me on that?.
0non-cybersec
Reddit
What is wrong with Lubuntu 17.04 64-bit version?. <p>I have installed Lubuntu 16.10 32 bits on my computer but some softwares I have to use is 64 bits only, so I have to know if my system is 32 or 64 bit. After some searches on the web I have found the <code>lscpu</code> command but I'm confused how to read the information outputted by this command.</p> <p>They said to me if the output of lscpu contains lm flag it means I have a 64 bit computer. They also said to me to look at CPU op-mode(s) if contains 64-bit. I did it and flags contains lm and CPU op-mode(s) contains 64-bit. So I assumed my computer is 64-bit.</p> <p>I have downloaded lubuntu-17.04-desktop-amd64.iso and tried to install but when it is installing Lubuntu the monitor turns off and I need to restart computer. The installation fails.</p> <p>I can't install Lubuntu but I'm able to Try Lubuntu without installing. In this version I executed lscpu command and the output is shown below:</p> <pre><code>Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 15 Model name: Intel(R) Pentium(R) Dual CPU E2140 @ 1.60GHz Stepping: 13 CPU MHz: 1200.000 CPU max MHz: 1600,0000 CPU min MHz: 1200,0000 BogoMIPS: 3199.68 L1d cache: 32K L1i cache: 32K L2 cache: 1024K NUMA node0 CPU(s): 0,1 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm </code></pre> <p>lscpu command was executed in try version of Lubuntu. It seems I'm already running the 64-bit Lubuntu, I just cannot install it. Do I have a 64-bit computer? Should I try to install other version of Lubuntu?</p>
0non-cybersec
Stackexchange
Getting unknown type : import in groovy in Jenkins Pipeline. <p>I am trying to create a Jenkins Pipeline Script using groovy. However, the <code>import</code> statement is giving me a compilation error - Unknown Type : Import. Not sure why.</p> <p><img src="https://i.stack.imgur.com/qR17X.png" alt="Screenshot attached here"></p>
0non-cybersec
Stackexchange
something like cron (timer) in gevent. <p>How can I make classical timer in gevent?</p> <p>I'm currently using gevent.spawn_later but is there a way to use core.timer like saying "do callback on interval" just like cron does?</p> <pre><code>def callback(): # do something print '!' timer = core.timer(10, callback) timer.start() outpout: 0s 10s ! 20s ! 30s ! </code></pre>
0non-cybersec
Stackexchange
Is it possible to set a more generic process affinity (automatically)?. <p>I know with <code>start /affinity X</code> where X is a hex-number bit-masking the CPUs to be used a process can be started to use certain CPUs only. However, is there a possibility to state something like "start this process using 50% of the available cores, pick them on your own, but don't use CPU3"?</p>
0non-cybersec
Stackexchange
Hole in one.
0non-cybersec
Reddit
Load and using a font, but just in a single paragraph in an entire document. <p>I have a book document with a lot of formatting, and I would like my dedication paragraph to appear in a font, that will just be used here, in the entire document. Let's say I want to use Tex Gyre Chorus (<a href="http://www.tug.dk/FontCatalogue/texgyrechorus/" rel="nofollow noreferrer">here</a>) to be used in that paragraph.</p> <p>How to do this, without breaking everything, and inadvertently affecting the fonts I use for the rest of my document?</p> <p>Here is a toy example:</p> <pre><code>\documentclass[12pt]{book} \usepackage{lipsum} \usepackage{lmodern} \usepackage[sf=false]{libertine} \begin{document} \lipsum Hello World! I would like this text to appear in Tex Gyre Chorus. \lipsum \end{document} </code></pre>
0non-cybersec
Stackexchange