How can I get a white NSProgressIndicator?  I've seen some other solutions on SO and various other blogs, but those all seem a bit dated and don't appear to be ARC-compatible.
I am using a "spinner" NSProgressIndicator in my cocoa app:     I would like to display it in a different color so that it will show up well on a dark background:     How would I go about doing this? My last resort would be to write my own custom NSView subclass that renders a custom animation, but I'm not even sure where to start on that front. Any help is appreciated.
I'm new to data mining and I'm trying to train a decision tree against a data set which is highly unbalanced. However, I'm having problems with poor predictive accuracy.  The data consists of students studying courses, and the class variable is the course status which has two values - Withdrawn or Current.   Age Ethnicity Gender Course  ... Course Status   In the data set there are many more instances which are Current than Withdrawn. Withdrawn instances only accounting for 2% of the total instances.  I want to be able to build a model which can predict the probability that a person will withdraw in the future. However when testing the model against the training data, the accuracy of the model is terrible.  I've had similar issues with decision trees where the data is dominated by one or two classes.  What approach can I use to solve this problem and build a more accurate classifier? calculate the mean of trials for each subject in R Write $\frac 11 + \frac12 + ...\frac1{(p-1)} =$ $\frac ab$.Such that $(a,b)=1$. Show that $p^2 \mid a$ $\text{if}$ $p\geq 5$.  I was trying to apply something with prime modulus, but I am unsure how exactly to go about it. I'm a Sri Lankan passport holder. I'm planning to travel to China in January and have to transit in Malaysia. I wonder whether I can obtain a Malaysian transit visa in KLIA 2 when I'm flying back to Sri Lanka. New to the cloud so pardon this question as I'm certain it's relatively simple!  I've setup my Google Cloud Instance and I'm now trying to connect to it using FileZilla. I have a good understanding of how to do this... but I've been completely unable to download my .ppk file, public key, and private keys. The documentation clearly gives the folder that the files are located in.... but I'm unable to navigate to these folders (it's as if they don't exist) furthermore I'm not really sure how to download something to my computer through the SSH terminal.  Also somewhat infuriating is that I've found the keys in the web portal on Google Cloud however there is no option to download them. I can only view them in clear text.  Any help would be greatly appreciated! Show that $PF.PG=b^2$ in a hyperbola If the normal at P to the hyperbola $\frac {x^2}{a^2}-\frac {y^2}{b^2}=1$ meets the transverse axis in G and the conjugate axis in G' and CF be the perpendicular to the normal from the center C then show that $$PF.PG=b^2\space and \space PF.PG'=a^2.$$ We know that the equation of the normal at parametric point $P\equiv(a\sec\theta,b\tan\theta)$ is given by  $$a\,x\cos\theta+b\,y\cot\theta=a^2+b^2$$   Equation of the transverse axis is $y=0$ and that of the conjugate axis is $x=0$.   Hence   $$G\equiv(\frac {a^2+b^2}{a}\sec\theta,0), \, G'\equiv(0,\frac {a^2+b^2}{b}\tan\theta)$$  C is the origin and CF is perpendicular to the normal. Hence   $$ CF\equiv b\,x\sec\theta-a\,y\tan\theta=0\implies y=\frac {b\,x\sec\theta}{a \tan\theta}$$   Substituting this in the equation of the normal we get   $$a\,x\cos\theta+b \,\cot\theta\,\frac {b\,x\sec\theta}{a\,\tan\theta}=a^2+b^2\ $$   implies  $$ (a^2 \cos\theta \sin^2\theta+ b^2\cos\theta)x=(a^2+b^2)\sin^2\theta$$  After finding the coordinates of F, the calculation becomes very complicated. So is there an easier way to approach the problem? I would love to see a pure geometric solution to this problem. I have this problem as part of a school assignment:  NOTE: In case it's hard to read in the image above, here's the directory tree: $ tree . `-- sample_dir1     `-- sample_dir         |-- admin         |-- cambridge         |   |-- cafeteria         |   |-- library         |   `-- security         |       |-- annex         |       |-- building         |       `-- parking         |-- faculty         |-- history.exe         |-- markham         |   |-- annex         |   |-- building1         |   `-- parking         |-- oxford         |   |-- outline.doc         |   |-- programming         |   |   `-- report.pdf         |   `-- security         `-- stenton             |-- gen_ed             `-- lib_arts                 |-- english.txt                 `-- match.doc  15 directories, 11 files  I tried doing the command: $ cp ../cambridge/security/parking ./parking2  ...but it isn't working. The question in the image above states that the current directory is stenton, and that we need to make a copy of the file named parking (from the security directory), and to name the new file parking2, and place it in the current directory, stenton, using relative pathnames. What am I doing wrong? My cp command seems to be correct. By accident, I recently removed some videos from my phone. I tried to restoring them with Recuva and TuneUp Utilities and the results were "undf" files.  I tried to open with VLC, Media Player Classic and other video players to no avail. Where/how do I find out the codec for these files?   I would really love to be able to watch these videos again. How do I redirect a domain to another domain locally? My /etc/hosts file looks like this:  127.0.0.1       localhost 10.20.7.67      testsitealpha.dev othersite.dev   testsitebeta.dev   The first two work. The last one doesn't. Why not? How do I make it work? The reason I am doing this, is because I have a test server (othersite.com), which is on the local network, but it's ip can vary. e.g. 10.20.7.98 one day, 10.20.7.35 another, etc.  So, how do I make my system always resolve testsitebeta.dev to the same ip as othersite.dev? What is the difference between ref and out parameters in .NET? What are the situations where one can be more useful than the other? What would be a code snippet where one can be used and another can't? This morning after the new Fallout Shelter update (1.2), I saw a mysterious stranger hiding in one of my rooms. When he is tapped  there is a sound cue and he disappears in a puff of black vapor.   Does anyone know what's going on here? "physical block size is 2048 bytes, but Linux says it is 512" when formatting USB - How to create a bootable USB without this error In H. P. Lovecraft's The Case of Charles Dexter Ward, Dr. Willett      Enters Joseph Curwen's dungeon and resurrects a dead person identified as No. 118 by reciting the incantation of the Ascending Node over his salts.   Dr. Willett is told by      The resurrected Joseph Curwen, impersonating Charles Dexter Ward, who he secretly murdered,   that   " 'twas Number 118, and I conceive you would have shook had you looked it up in my list in t'other room."  No. 118 himself gives Dr. Willett a note asking the doctor to      kill Joseph Curwen.   It soon becomes clear that No. 118 is opposed to the nefarious dealings that have been transpiring and desirous of being an ally of Dr. Willett.  Who is No. 118?  Earlier in the story,      The grave of Ezra Weeden, a primary instigator in Joseph Curwen's initial downfall and the romantic rival of Curwen, is robbed. There doesn't seem to be any other mention of Weeden in the 20th century occurrences, so without a further connection the passage seems superfluous.   The shared goals of these two people seem to indicate that No. 118 may, in fact, have been that person, but the      Note given by No. 118 to Dr. Willett in eighth century Latin seems to indicate someone much older than Ezra Weeden.   It also occurred to me that No. 118 could be      The recently murdered Charles Dexter Ward himself. Ward's reference to killing Dr. Allen (who is actually an alias of Curwen) and dissolving his body with acid and No. 118's mention of doing the same to Curwen seem to support the idea, but that still doesn't explain the archaic note. Ward is described as writing in a somewhat modern style, at least as opposed to Curwen. It also doesn't explain why Curwen would want to murder Ward if he was going to resurrect him later anyway. I want to create this:  Note that wire lay chaotically, so spiral object not the same thing.  There is a cool way to do this task in 3ds max:  Basically he deform straight spline/curve and then bend it couple iterations (over 9000 degrees angle in max).   Blender can't bend that way with simple deform as I know, only up to 360 degree. Is there any other way to make wire wrapping similar to photo? How to read value of variable, where the name of variable is the value of another variable I think an example is in order. Consider I have these two environment variables setup (by a Continuous Delivery tool): PACKAGE_VER=1.2.3 and USE_VERSION_FROM=PACKAGE_VER.  What I want now is a script that can't predict the name of the variable pointing out 1.2.3, only USE_VERSION_FROM. And so, I'm looking for a way to get my script to know the version to use (1.2.3) without knowing anything other than that USE_VERSION_FROM points out the name of the variable that holds the version number.  My naïve non-working first attempt:  #!/bin/bash VERSION_TO_USE="${${USE_VERSION_FROM}}" Problems with fonts I'm an average user of LaTeX, but not proficiency. I'm trying to learn from book templates I've found on the web, but I get this error message:  Trying to make PK font ccicons at 1493 DPI... Running miktex-makemf.exe... miktex-makemf: The ccicons source file could not be found. Running ttf2pk.exe... miktex-makemf: PK font ccicons could not be created.  LaTeX Font Warning: Some font shapes were not available, defaults substituted.  !pdfTeX error: pdflatex.exe (file ccicons): Font ccicons at 1493 not found  ==&gt; Fatal error occurred, no output PDF file produced!   I'm using MiKTeX (over Windows 7), and according to the MiKTeX package manager the "ccicons" package is already installed.  Could you please help me solve this problem? How can I reference the script element that loaded the javascript that is currently running?  Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt;   There is a script in "scripts.js" which needs to be able to do on-demand loading of other scripts. The normal method doesn't quite work for me because I need to add new scripts without referencing the HEAD tag, because the HEAD element hasn't finished rendering:  document.getElementsByTagName('head')[0].appendChild(v);   What I want to do is reference the script element that loaded the current script so that I can then append my new dynamically loaded script tags into the DOM after it.  &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt; loaded by scripts.js--&gt;&lt;script type="text/javascript" src="new_script1.js"&gt;&lt;/script&gt; loaded by scripts.js --&gt;&lt;script type="text/javascript" src="new_script2.js"&gt;&lt;/script&gt; Almost every time I turn my XBox on and start up Fallout 4, I am unable to use the "Continue" option because the most recent save is corrupt.  I instead use the "Load" option. Here, I can see that the last save I manually performed is perfectly fine, and load it with no problem. However, there is an additional, corrupt save with the same time stamp immediately after it.  This doesn't happen quite every time, but often enough that I'm surprised when there's no corrupt save waiting for me to delete it.  I've tried a few things to solve this, including exiting to the game's main menu before turning the XBox off, going out to the guide before turning the XBox off, turning it off immediately after saving, and waiting a while after saving.  Why do I get all these corrupt saves? Do others have this problem? How do I fix it? What are the limits on how I can cast, change, and retract votes? Can't finish registration in Stackoverflow.ru I have an account on Stack Overflow and also on Russian Stack Overflow. I can ask questions on Russian Stack Overflow, but it always displays the phrase "Finish registration". I have tried logging in by different methods — Facebook, Google, etc. — but it still says that my registration is not finished. Can someone help me with it? or explain what I should do there to finish the registration?  P.S: I can't write questions in Meta Russian Stack Overflow because it says that my registration is not finished.  P.S.S: I have already tried "Click the "register" link at the top of the page." it brings to the login page with the phrase "Finish signing up by using any of the following options:". I have already tried all options there. I also can't merge them because they already linked.