text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Happy 20th year of Spongebob. | 0non-cybersec
| Reddit |
bash like autocompletion for ssh command in zsh shell with /etc/hosts file?. <p>zsh is great so far.<br />
I am using zsh-completions but still I am unable to get autocompletion for ssh commands like in bash as shown in below screenshot:</p>
<p><a href="https://i.stack.imgur.com/bRWR0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bRWR0.png" alt="BASH vs ZSH" /></a></p>
<p>How to get hostnames from /etc/hosts for <strong>ssh | scp | telnet</strong> command autocompletion in zsh shell ?</p>
| 0non-cybersec
| Stackexchange |
Unterminated group in regexp. <p>I try test string using regexp in JavaScript.
Correct string looking like:</p>
<pre><code><script charset="utf-8">new DGWidgetLoader({"width":640,"height":600,"borderColor":"#a3a3a3","pos":{"lat":46.00650100065259,"lon":11.263732910156252,"zoom":9}
</code></pre>
<p>I want test that "width", "height" looks like xxx or xxxx, and "lat", "lon"
looks like x{1,2}.x*, zoom looks like x{1,2}</p>
<p>I try use this regex</p>
<pre><code>/<script charset="utf-8">new DGWidgetLoader(/{"width":[0-9]{3,4},"height":[0-9]{3,4},"borderColor":"#a3a3a3","pos":\{"lat":[0-9]{1,2}.[0-9]+,"lon":[0-9]{1,2}.[0-9]+,"zoom":[0-9][0-9]}//
</code></pre>
<p>with String.search(), but got error <code>SyntaxError: Invalid regular expression: /<script charset="utf-8">new DGWidgetLoader(/{"width":[0-9]{3,4},"height":[0-9]{3,4},"borderColor":"#a3a3a3","pos":{"lat":[0-9]{1,2}.[0-9]+,"lon":[0-9]{1,2}.[0-9]+,"zoom":[0-9][0-9]}//: Unterminated group</code></p>
<p>How can i parse script tag that looking like below?</p>
| 0non-cybersec
| Stackexchange |
Rave - an Artificial Intelligence DJ. Analyzes and changes the songs to create mixtapes and mashups.. | 0non-cybersec
| Reddit |
didRegisterForRemoteNotificationsWithDeviceToken does not get triggered - Push Notifications not working. <p>I've spent hours now trying to figure out why <code>didRegisterForRemoteNotificationsWithDeviceToken</code> is not being called.
It worked before. I didn't touch it in weeks. Now stopped working.</p>
<p>Here's my setup:</p>
<ol>
<li>Got <code>didRegisterForRemoteNotificationsWithDeviceToken</code> sitting in <code>SceneDelegate</code></li>
<li>Have declared <code>SceneDelegate</code> to be the <code>UNUserNotificationCenterDelegate</code></li>
<li>I'm setting <code>UNUserNotificationCenter.current().delegate = self</code> in <code>func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)</code></li>
<li>I'm calling <code>UNUserNotificationCenter.current().requestAuthorization { granted, error in...</code> from one of the UIViewControllers in my App, specifically in <code>viewDidLoad</code> of that Controller - I get the Authorization Pop-up and when accepting I get a <code>true</code> back for <code>granted</code></li>
<li>Within <code>UNUserNotificationCenter.current().getNotificationSettings { settings in ...</code> a check for <code>settings.authorizationStatus == .authorized</code> returns <code>true</code></li>
<li>Push Notifications are added as a capability for the App in "Signing & Capabilities" and the entitlement file has been created. I've even already deleted and re-created the entitlement file - just to be sure...</li>
<li>I've made sure to run the app on a real device (both via Xcode as well as via TestFlight) - so the delegate not being called is not related to the App running in the Simulator.</li>
<li>Have checked if <code>didFailToRegisterForRemoteNotificationsWithError</code> gets called instead at least - but it doesn't.</li>
<li>I have tried with a second physical device which I have never used for testing before.</li>
<li>I've even checked the status of the APNS Sandbox here: <a href="https://developer.apple.com/system-status/" rel="nofollow noreferrer">https://developer.apple.com/system-status/</a></li>
<li>The <code>didReceive</code> delegate gets called though if I'm sending a test notification to simulator via terminal command <code>xcrun simctl push...</code> and I'm getting the notification.</li>
<li>Provisioning profile is managed by Xcode and the specified AppID is configured for Push Notifications. Certificates are set up in apple developer account. </li>
</ol>
<p>Here's how I'm requesting Authorization from the user within <code>viewDidLoad</code> of one of my Apps UIViewControlles</p>
<pre class="lang-swift prettyprint-override"><code>UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { granted, error in
DispatchQueue.main.async {
if (granted) {
//self.processInitialAPNSRegistration()
UIApplication.shared.registerForRemoteNotifications()
UserDefaults.standard.set(true, forKey: "pushNotificationsEnabled")
}
print("permission granted?: \(granted)")
}
}
</code></pre>
<p>And here's the <code>didRegisterForRemoteNotificationsWithDeviceToken</code> delegate method sitting inside <code>SceneDelegate</code>. Note: I'm also setting <code>UNUserNotificationCenter.current().delegate = self</code> in <code>scene willConnectTo and declared</code>SceneDelegate<code>to implement the</code>UNUserNotificationCenterDelegate` protocol.</p>
<pre class="lang-swift prettyprint-override"><code>func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let token = deviceToken.map { String(format:"%02.2hhx", $0) }.joined()
print("didRegisterForRemoteNotificationsWithDeviceToken GOT CALLED - APNS TOKEN IS: \(token)")
self.apiService.setAPNSToken(apnsToken: token, completion: {result in
switch result {
case .success(let resultString):
DispatchQueue.main.async {
UserDefaults.standard.set(token, forKey: "apnsToken")
print(resultString, " TOKEN IS: \(token)")
}
case .failure(let error):
print("AN ERROR OCCURED: \(error.localizedDescription)")
}
})
}
</code></pre>
<p>Whatever I do, <code>didRegisterForRemoteNotificationsWithDeviceToken</code> is not getting triggered. I'm running out of ideas on what is going wrong.</p>
<p>Where is the error? How can I get <code>didRegisterForRemoteNotificationsWithDeviceToken</code> to execute again?</p>
| 0non-cybersec
| Stackexchange |
How to make Windows use D:/ instead of C:/ for Users and AppData folder?. <p>My C:/ (system volume) is getting fast filled. I am looking to see the following options.</p>
<p>1) Move Users folder (profile folder location) to D:/. Is this possible even? 2) Can we also attempt to have Windows use D:/AppData instead of C:/AppData?</p>
| 0non-cybersec
| Stackexchange |
MASS EFFECT: ANDROMEDA – Official Gameplay Trailer. | 0non-cybersec
| Reddit |
Number of solutions to this nice equation $\varphi(n)+\tau(n^2)=n$. <blockquote>
<p>How many natural numbers $n$ satisfy the equation$$\varphi(n)+\tau(n^2)=n$$where $\varphi$ is the Euler's totient function and $\tau$ is the divisor function i.e. number of divisors of an integer.</p>
</blockquote>
<p>I made this equation and I think it is not hard. I haven't solved this completely yet, so I want you to work on this along with me. I'd love to see your solutions! </p>
| 0non-cybersec
| Stackexchange |
WWJD. | 0non-cybersec
| Reddit |
Checking that inverses is included in a group.. <p>Let $G$ be a group and let $A$ and $B$ be two normal subgroups of $G$.</p>
<p>I'm to check that $AB = \{ab\mid a\in A, b\in B\}$ is a subgroup of $G$.</p>
<p>It's just this simple calculation I'm wondering about:</p>
<p>When checking if $(ab)^{-1} \in AB$. Is this allowed?</p>
<p>$b^{-1}a^{-1} = a^{-1}ab^{-1}a^{-1} = a^{-1}b'\in AB$ for some $b' \in B$</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 |
When this appears and you have no idea why. | 0non-cybersec
| Reddit |
Michigan, being taken over by fascists.. | 0non-cybersec
| Reddit |
How to pull from a different remote branch in git. <p>I am trying to pull from one of branch in remote named "front" to a branch named "back":</p>
<pre><code>git checkout front
git pull
</code></pre>
<p>But i am getting error message like, </p>
<pre><code>Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>.
</code></pre>
<p>What should I do now? Thanks in advance..</p>
| 0non-cybersec
| Stackexchange |
Video problem in refresh rate. <p>thanks for coming.</p>
<p>I've experienced a strange video problem since I installed Ubuntu. I do not know exactly what is happening, but I think, after a deep research that it's a refresh problem.</p>
<p>In every video/film/youtube I watch, or game that I play, the movements looks gross. The FPS is always high (60 or above) but when a fast action happens the video doesn't follow the movement in a normal way, it's as if the FPS drops, but it doesn't!!</p>
<p>The most close demonstration of my problem is this <a href="https://youtu.be/3E9dTm4SCiA?t=9s" rel="nofollow noreferrer">youtube video</a> </p>
<p>Here is the result of <code>xrandr</code></p>
<pre><code>Screen 0: minimum 8 x 8, current 1366 x 768, maximum 16384 x 16384
eDP-1-1 connected primary 1366x768+0+0 309mm x 173mm
1366x768 60.07*+ 48.06
1360x768 59.80 59.96
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
960x600 60.00
960x540 59.99
800x600 60.00 60.32 56.25
840x525 60.01 59.88
800x512 60.17
700x525 59.98
640x512 60.02
720x450 59.89
640x480 60.00 59.94
680x384 59.80 59.96
576x432 60.06
512x384 60.00
400x300 60.32 5.34
320x240 60.05
HDMI-1-1 disconnected
</code></pre>
<p>Informations:</p>
<ul>
<li>Ubuntu 16.04 Xenial 64-bit</li>
<li>I tried commands like <code>xrandr -r 75</code> and nothing helped</li>
<li>Intel Core i7-6500U</li>
<li>Nvidia Geforce 930M - <a href="https://i.stack.imgur.com/HBHVH.jpg" rel="nofollow noreferrer">Drivers Installed</a></li>
</ul>
<p>English is not my native language and it's my first time in the forum, so I apologize for any mistake</p>
<p>Thanks for the attention, have a nice day</p>
| 0non-cybersec
| Stackexchange |
GLB should be turn-based, just like the handheld games. GBL was fun when released, but gets boring after awhile when you keep seeing the same meta pokemons over and over again. No point implementing the buddy feature when I know I can never use my buddy to win if it is not one of those high tier mons.
GBL is also turning into a luck based game, much like scissors paper stone where first pokemon in your line up already heavily determine your win or loss. Moreover, the lag sometimes don't register your taps, causing you to lose as opponent's charged moves keep coming at you.
Since every tap need be sent to the server, why can't we make this go battle league turn based, whereby every turn, opponent and player can decide what they want to do, much like the handheld games. This could even reduce the lag and both have a fair chance to think and exercise their move. Other than one fast move and 2 charged moves, Niantic should also consider the feasibility of one stat enhancing" move that can for e.g, make opponents sleep, attacks to miss, etc... This would defintely make the gameplay more fun, varied and sastifying.
Building on my suggestion above, instead of current 3 pokemons, we can line up 6 pokemons. Instead of 5 sets of 5 matches a day, we can have just 5 sets of 2 matches, or 5 sets of 1 match. This would reduce server load, as well as create a more impactful pvp experience. Instead of mindless tapping, the game now encourages more thinking and strategy.
Lastly, thank you Niantic for implementing the buddy feature. But instead of best buddy just increase by 1 stat, can we have like 2 or more stats increase? Buddies with best buddy ribbon should also have this permanent increase.
Thank you! | 0non-cybersec
| Reddit |
Bat out of nowhere. | 0non-cybersec
| Reddit |
He just wants to be a real boy. | 0non-cybersec
| Reddit |
the best message I've ever seen. | 0non-cybersec
| Reddit |
Weekend Project - Deck Painting [X-Post]. | 0non-cybersec
| Reddit |
When apps "need" a suspicious amount of access. | 0non-cybersec
| Reddit |
Girl in Bathing Suit, Paul Outerbridge, 1936. | 0non-cybersec
| Reddit |
First Time I Made this Cute and Simple Paper Box. | 0non-cybersec
| Reddit |
Third ring I've made. Ebony and Bubinga, finished with tung oil. | 0non-cybersec
| Reddit |
BWF Daily Discussion and Beginner/RR Questions Thread for 2018-01-14. **Welcome to the /r/bodyweightfitness daily discussion thread!**
* Feel free to post beginner questions or just about anything that's on your mind related to fitness!
**Reminders:**
* Read the [FAQ](http://www.reddit.com/r/bodyweightfitness/wiki/faq) as your question may be answered there already.
* If you're unsure how to start training, check out our [recommended routine.](https://www.reddit.com/r/bodyweightfitness/wiki/kb/recommended_routine), or our more skilled based routine: [move.](https://www.reddit.com/r/bodyweightfitness/wiki/move)
* Even though the rules are relaxed here, asking for medical advice is still not allowed.
**For your reference we also have these weekly threads:**
* [Motivation Mondays](http://www.reddit.com/r/bodyweightfitness/search?q=motivation+monday+author%3Aautomoderator&restrict_sr=on&sort=new&t=all)
* [Training Tuesdays](http://www.reddit.com/r/bodyweightfitness/search?q=training+tuesday+author%3Am092+OR+author%3Aautomoderator&sort=new&restrict_sr=on)
* [Concept Wednesdays](http://www.reddit.com/r/bodyweightfitness/wiki/weekly/conceptwednesday)
* [Technique Thursdays](http://www.reddit.com/r/bodyweightfitness/wiki/weekly/techniquethursday)
* [Form Check Fridays](https://www.reddit.com/r/bodyweightfitness/search?q=form+check+friday+author%3Am092+OR+author%3Aautomoderator&restrict_sr=on&sort=new&t=all)
* [Slip Up Saturdays](http://www.reddit.com/r/bodyweightfitness/search?q=I+SUCK+SATURDAY+author%3Asolfire&sort=new&restrict_sr=on&t=all)
* [Progress Sundays](http://www.reddit.com/r/bodyweightfitness/search?q=progress+sunday+author%3Am092+OR+author%3Asolfire&sort=new&restrict_sr=on)
**Notable Threads and Going-Ons:**
* **January** is "Don't Give Up!" month. [Week 2](https://www.reddit.com/r/bodyweightfitness/comments/7ov3a9/january_motivational_month_week_2_a/) is up for your reading pleasure..
Feel free to join us on Discord! You can find the web client by clicking this link, [here](https://discord.gg/TsD9zeH).
If you'd like to look at previous Discussion threads, [click here.](https://www.reddit.com/r/bodyweightfitness/search?q=Daily+Discussion+and+Beginner&sort=new&restrict_sr=on)
| 0non-cybersec
| Reddit |
When trash talk goes wrong: Week 4, 2000, Jets at Tampa. After former Jet Keyshawn Johnson called Wayne Chrebet a "Flashlight to his star," Chrebet caught the winning TD pass from Curtis Martin with 52 seconds left. HC Al Groh then gifted every Jet a flashlight during their next team meeting. | 0non-cybersec
| Reddit |
Japan's Hayabusa 2 mission will mine an asteroid this week. After shooting a small projectile into asteroid Ryugu's surface, the spacecraft will collect the ejecta before eventually returning the samples to Earth in 2020.. | 0non-cybersec
| Reddit |
Jazz Addicts. | 0non-cybersec
| Reddit |
SMTP ERROR: Failed to connect to server: Connection timed out (110) when using phpmailer. <p>This works perfectly in my old server.</p>
<p>2020-07-18 16:37:45 SMTP ERROR: Failed to connect to server: Connection timed out (110)
SMTP connect() failed. <a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" rel="nofollow noreferrer">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a>
I am now using CentOS 7 and php7.3.2</p>
<p>What I've tried.</p>
<ul>
<li>use port 587,465,25</li>
<li>use host smtp.gmail.com,108.177.122.108</li>
</ul>
<p>This is my code:</p>
<pre><code><?php
require_once "config.php";
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require 'vendor/autoload.php';
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
if($_SERVER["REQUEST_METHOD"] == "POST"){
$randompassword = generateRandomString();
$email = $_POST['email'];
$mail = new PHPMailer(true);
try {
$connect->query("SET NAMES 'utf8'");
$insertSql = "INSERT INTO users (username, password, email, forgot) VALUES ('$name', '$randompassword', '$email', 1)";
$status = $connect->query($insertSql);
$mail->isSMTP(); // Send using SMTP
$mail->SMTPAuth = true;
$mail->Host = 'smtp.gmail.com'; // Set the SMTP server to send through
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '[email protected]'; // SMTP username
$mail->Password = '*******'; // SMTP password
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
$mail->Port = 587; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
$mail->Charset = "UTF-8";
$mail->setFrom('[email protected]', 'Mailer');
$mail->addAddress($email); // Name is optional
$mail->addReplyTo('[email protected]', 'to'); // Set email format to HTML
$mail->Subject = 'subject';
$mail->Body = 'body'
$mail->send();
echo '<script>alert("already send");</script>';
}
catch (Exception $e) {
echo "<script>alert('error');</script>";
echo !extension_loaded('openssl')?"Not Available":"Available";
exit;
}
}
?>
</code></pre>
<p><strong>UPDATE</strong></p>
<p>I test telnet smtp.gmail.com for port 25 465 587,the result is also connection time out.Then I test on my computer gets a normal result.</p>
| 0non-cybersec
| Stackexchange |
Surjecting onto inverse limit of a subsystem. <p>Let $(I, \le)$ be a poset and $\{ A_i \}$ a collection of sets indexed by $I$, such that the projections $\varprojlim A_i \to A_i$ are surjective for all $i \in I$. </p>
<blockquote>
<p>Is it true that the natural map $$\varprojlim_{i \in I} A_i \to \varprojlim_{j \in J}
A_j$$ is surjective whenever $J \subseteq I$?</p>
</blockquote>
<p>This feels true: given a coherent sequence $(a_j)_{j \in J}$, I should be able to use surjectivity of all maps $A_i \to A_{i'}$ to "connect the dots" and obtain a suitable preimage sequence $(a_i)_{i \in I}$. Two failed attempts at a proof have been to use Zorn's lemma on the non-empty posets
$$\Sigma = \{ K \subseteq J: \varprojlim_{i \in I} A_i \twoheadrightarrow \varprojlim_{i \in K} A_i \},$$
$$\Sigma' = \{ I \supseteq K \supseteq J: \varprojlim_{i \in K} A_i \twoheadrightarrow \varprojlim_{i \in j} A_i \}.$$
A proof or a counter-example would be appreciated.</p>
| 0non-cybersec
| Stackexchange |
My newly finished super widescreen battlestation. | 0non-cybersec
| Reddit |
Can [email protected] 2.30GHz cpu support 64-bit OS?. <p>My model have [email protected] 2.30GHz processor , 3 GB RAM , 640 GB Hard Disk. I want to upgrade it from 32-bit Windows-enterprise to 64-bit Windows Ultimate. Can I do it? Will it support? </p>
| 0non-cybersec
| Stackexchange |
Poor Dog. | 0non-cybersec
| Reddit |
lxml: insert tag at a given position. <p>I have an xml file, similar to this:</p>
<pre><code><tag attrib1='I'>
<subtag1 subattrib1='1'>
<subtext>text1</subtext>
</subtag1>
<subtag3 subattrib3='3'>
<subtext>text3</subtext>
</subtag3>
</tag>
</code></pre>
<p>I would like to insert a new subElement, so the result would be something like this</p>
<pre><code><tag attrib1='I'>
<subtag1 subattrib1='1'>
<subtext>text1</subtext>
</subtag1>
<subtag2 subattrib2='2'>
<subtext>text2</subtext>
</subtag2>
<subtag3 subattrib3='3'>
<subtext>text3</subtext>
</subtag3>
</tag>
</code></pre>
<p>I can append my xml file, but then the new elements will be inserted at the end. How can I force python lxml to put it into a given position? </p>
<p>Thanks for your help!</p>
| 0non-cybersec
| Stackexchange |
The Newsroom cameo on The Daily Show last night.. | 0non-cybersec
| Reddit |
Far Cry Primal New [Screenshots]. | 0non-cybersec
| Reddit |
SQL Server Table Reports Disk Usage 0 Rows but reserved 46 GBs. <p>I've executed report on database "Disk Usage by Table"
And I have couple of weird tables, where there are no rows, but disk used couple dozens of gigabytes.
What caused such behavior? What to do with this?
<a href="https://i.stack.imgur.com/KeEB2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KeEB2.png" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
pspictures are gone on Windows with crop=on. <p>The following code:</p>
<pre><code>\documentclass{article}
\usepackage[crop=on]{auto-pst-pdf}
\usepackage{pstricks}
\begin{document}
aaaa
\begin{pspicture}(25mm,25mm)
\psset{unit=1mm}
\psframe(0,0)(20,20)
\end{pspicture}
bbbb
\end{document}
</code></pre>
<p>When ran with pdflatex on Windows, produces a PDF file with only the "aaaa bbbb" - not the frame. On Ubuntu this works fine.</p>
<p>Here is the full log-file on Windows:</p>
<pre><code> This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2014.3.10) 30 NOV 2014 17:36
entering extended mode
**mwe.tex
(F:\Dropbox\papers\FairAndSquareProportional\mwe.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\auto-pst-pdf\auto-pst-pdf.sty"
Package: auto-pst-pdf 2009/04/26 v0.6 Wrapper for pst-pdf
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is detected.
)
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2014/05/25 v2.7 package option processing (HA)
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkvutils.tex"
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))
\XKV@depth=\count87
File: xkeyval.tex 2014/05/25 v2.7 key=value parser (HA)
))
("C:\Program Files\MiKTeX 2.9\tex\latex\ifplatform\ifplatform.sty"
Package: ifplatform 2010/10/22 v0.4 Testing for the operating system
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\catchfile.sty"
Package: catchfile 2011/03/01 v1.6 Catch the contents of a file (HO)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)))
\c@app@runs=\count88
runsystem(echo " ")...executed.
runsystem(echo "-------------------------------------------------")...executed.
runsystem(echo "auto-pst-pdf: Auxiliary LaTeX compilation")...executed.
runsystem(echo "-------------------------------------------------")...executed.
runsystem(del "mwe-pics.pdf")...executed.
runsystem(latex -disable-write18 -jobname="mwe-autopp" -interaction=batchmode
"\let \APPmakepictures \empty \input mwe.tex")...executed.
runsystem(dvips -Ppdf -o "mwe-autopp.ps" "mwe-autopp.dvi")...executed.
runsystem(ps2pdf "mwe-autopp.ps" "mwe-autopp.pdf")...executed.
runsystem(pdfcrop "mwe-autopp.pdf" "mwe-pics.pdf")...executed.
Package auto-pst-pdf Warning:
Creation of mwe-pics.pdf failed.
This warning occured on input line 124.
Package auto-pst-pdf Warning:
Could not create mwe-pics.pdf. Auxiliary files not deleted.
This warning occured on input line 124.
runsystem(echo "-------------------------------------------------")...executed.
runsystem(echo "auto-pst-pdf: End auxiliary LaTeX compilation")...executed.
runsystem(echo "-------------------------------------------------")...executed.
("C:\Program Files\MiKTeX 2.9\tex\latex\pst-pdf\pst-pdf.sty"
Package: pst-pdf 2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
\c@pspicture=\count89
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.
("C:\Program Files\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
\Gread@gobject=\count90
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
Package pst-pdf Info: MODE: 1 (pdfTeX mode) on input line 214.
("C:\Program Files\MiKTeX 2.9\tex\latex\pstricks\pstricks.sty"
Package: pstricks 2013/12/12 v0.60 LaTeX wrapper for `PSTricks' (RN,HV)
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pstricks.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\pst-xkey.tex"
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pst-fp.tex"
`pst-fp' v0.05, 2010/01/17 (hv)
\pstFP@xs=\count91
\pstFP@xia=\count92
\pstFP@xib=\count93
\pstFP@xfa=\count94
\pstFP@xfb=\count95
\pstFP@rega=\count96
\pstFP@regb=\count97
\pstFP@regs=\count98
\pstFP@times=\count99
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-common.tex"
\pgfutil@everybye=\toks16
\pgfutil@tempdima=\dimen105
\pgfutil@tempdimb=\dimen106
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-common-lists.te
x")) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeys.code.tex"
\pgfkeys@pathtoks=\toks17
\pgfkeys@temptoks=\toks18
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeysfiltered.code.te
x"
\pgfkeys@tmptoks=\toks19
)) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgffor.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmath.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathcalc.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathutil.code.tex"
\pgf@x=\dimen107
\pgf@xa=\dimen108
\pgf@xb=\dimen109
\pgf@xc=\dimen110
\pgf@y=\dimen111
\pgf@ya=\dimen112
\pgf@yb=\dimen113
\pgf@yc=\dimen114
\c@pgf@counta=\count100
\c@pgf@countb=\count101
\c@pgf@countc=\count102
\c@pgf@countd=\count103
\pgfutil@tempcnta=\count104
\pgfutil@tempcntb=\count105
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathparser.code.tex"
\pgfmath@dimen=\dimen115
\pgfmath@count=\count106
\pgfmath@box=\box26
\pgfmath@toks=\toks20
\pgfmath@stack@operand=\toks21
\pgfmath@stack@operation=\toks22
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.basic.code.
tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.trigonometr
ic.code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.random.code
.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.comparison.
code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.base.code.t
ex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.round.code.
tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.misc.code.t
ex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.integerarit
hmetics.code.tex")))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfloat.code.tex"
\c@pgfmathroundto@lastzeros=\count107
))
\pgffor@iter=\dimen116
\pgffor@skip=\dimen117
\pgffor@stack=\toks23
\pgffor@toks=\toks24
)
\psLoopIndex=\count108
`PSTricks' v2.57 <2014/08/27> (tvz)
\pst@dima=\dimen118
\pst@dimb=\dimen119
\pst@dimc=\dimen120
\pst@dimd=\dimen121
\pst@dimg=\dimen122
\pst@dimh=\dimen123
\pst@dimm=\dimen124
\pst@dimn=\dimen125
\pst@dimo=\dimen126
\pst@dimp=\dimen127
\pst@hbox=\box27
\pst@ibox=\box28
\pst@boxg=\box29
\pst@cnta=\count109
\pst@cntb=\count110
\pst@cntc=\count111
\pst@cntd=\count112
\pst@cntg=\count113
\pst@cnth=\count114
\pst@cntm=\count115
\pst@cntn=\count116
\pst@cnto=\count117
\pst@cntp=\count118
\@zero=\count119
\pst@toks=\toks25
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pstricks.con")
\psunit=\dimen128
\psxunit=\dimen129
\psyunit=\dimen130
\pst@C@@rType=\count120
\pslinewidth=\dimen131
\psk@startLW=\dimen132
\psk@endLW=\dimen133
\pst@customdefs=\toks26
\pslinearc=\dimen134
\pst@symbolStep=\dimen135
\pst@symbolWidth=\dimen136
\pst@symbolLinewidth=\dimen137
\everypsbox=\toks27
\psframesep=\dimen138
\pslabelsep=\dimen139
\sh@wgridXunit=\dimen140
\sh@wgridYunit=\dimen141
\pst@shift=\dimen142
)
File: pstricks.tex 2014/08/27 v2.57 `PSTricks' (tvz,hv)
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pst-fp.tex")
File: pst-fp.tex 2014/08/27 v2.57 `PST-fp' (hv)
("C:\Program Files\MiKTeX 2.9\tex\latex\xcolor\xcolor.sty"
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
))
\ppf@output=\toks28
("C:\Program Files\MiKTeX 2.9\tex\latex\preview\preview.sty"
Package: preview 2010/02/14 11.86 (AUCTeX/preview-latex)
\pr@snippet=\count121
\pr@box=\box30
\pr@output=\toks29
)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\dvips.def"
File: dvips.def 2014/04/23 v3.0j Driver-dependant file (DPC,SPQR)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\environ\environ.sty"
Package: environ 2014/05/04 v0.3 A new way to define environments
("C:\Program Files\MiKTeX 2.9\tex\latex\trimspaces\trimspaces.sty"
Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list
)
\@envbody=\toks30
)))
(F:\Dropbox\papers\FairAndSquareProportional\mwe.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count122
\scratchdimen=\dimen143
\scratchbox=\box31
\nofMPsegments=\count123
\nofMParguments=\count124
\everyMPshowfont=\toks31
\MPscratchCnt=\count125
\MPscratchDim=\dimen144
\MPnumerator=\count126
\makeMPintoPDFobject=\count127
\everyMPtoPDFconversion=\toks32
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
Package pst-pdf Warning: pspicture No. 1 undefined.
Package pst-pdf Warning: File `mwe-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ----------------------------------------------------
(pst-pdf) latex mwe.tex
(pst-pdf) dvips -o mwe-pics.ps mwe.dvi
(pst-pdf) ps2pdf mwe-pics.ps
(pst-pdf) ---------------------------------------------------- .
[1
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
(F:\Dropbox\papers\FairAndSquareProportional\mwe.aux) )
Here is how much of TeX's memory you used:
8506 strings out of 493921
150399 string characters out of 3147252
198209 words of memory out of 3000000
11707 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
50i,5n,44p,485b,121s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files/MiKTeX
2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on mwe.pdf (1 page, 10384 bytes).
PDF statistics:
10 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
</code></pre>
<p>When I change to "crop=off", it works in Windows too (but this has other unwanted side-effects).</p>
| 0non-cybersec
| Stackexchange |
Clean way to convert QString to char * (not const char* !!!!). <p>I have an ugly code for this stuff (create a c char pointer and copy the QString in it) but maybe ... exist in QT an elegant way ...</p>
<p>actual code :</p>
<pre><code>QString maquina is a method parameter.
char *c_maquina = new char[maquina.length() + 1];
strcpy(c_maquina, maquina.toStdString().c_str());
</code></pre>
<p>just for information I need a REAL char* not a simple const char* so this code not work :</p>
<pre><code>idMaquina.toLatin1().data();
</code></pre>
<p>I can't use <a href="http://developer.qt.nokia.com/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa">http://developer.qt.nokia.com/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa</a></p>
| 0non-cybersec
| Stackexchange |
Ray LaMontagne - Meg White. | 0non-cybersec
| Reddit |
What are some tell tale signs a story with a female lead is being written by a man.. | 0non-cybersec
| Reddit |
iOS: How to change app language programmatically WITHOUT restarting the app?. <p>When I change the app used language independently on the device language it doesn't take effect until I close the app and restart it. How to not require app to be restarted for loading all nib files and .strings files again depending on the selected language?</p>
<p>I use this to change language at runtime:</p>
<pre><code>NSArray* languages = [NSArray arrayWithObjects:@"ar", @"en", nil];
[[NSUserDefaults standardUserDefaults] setObject:languages forKey:@"AppleLanguages"];
</code></pre>
| 0non-cybersec
| Stackexchange |
Using one document for all images. <p>I have some icons around 100x100. I typically save out each icon as a <code>.png</code> but I wanted to know if I included all the <code>.pngs</code> in one document would it be ideal and improve load time? If one document is okay, is there a caution area for file size or image size when adding all images?</p>
| 0non-cybersec
| Stackexchange |
How can I @Input a complex object into my AngularDart component?. <p>I am creating a (my first!) AngularDart app. I have a <code>List</code> of objects of a class <code>Procedure</code> in a <code>procedure_list_component.dart</code> component (modeled after the sample ToDo app's list component). This is displayed in a <code>MaterialListComponent</code> and it all works fine.</p>
<p>I am using Dart SDK 2.1.0 and AngularDart ^5.2.0.</p>
<p>Now I want to develop a new component to display the details of the selected <code>Procedure</code>. The selection part works fine. My detail component currently looks like this:</p>
<pre><code>@Component(
selector: 'procedure-item',
templateUrl: '''
<div>
{{procedure.packageName}}.{{procedure.name}}
</div>
''',
directives: [
],
)
class ProcedureItemComponent {
@Input()
Procedure procedure;
}
</code></pre>
<p>The component's usage looks like this:</p>
<pre class="lang-html prettyprint-override"><code><div *ngIf="selectedProcedure != null">
<procedure-item procedure="{{selectedProcedure}}"></procedure-item>
</div>
</code></pre>
<p>However, at run time I receive the error:</p>
<pre><code>EXCEPTION: Type 'String' is not a subtype of expected type 'Procedure'.
STACKTRACE:
dart:sdk_internal 4000:19 check_C
package:tadpole/src/procedure_list/procedure_list_component.template.dart 345:44 detectChangesInternal
package:angular/src/core/linker/app_view.dart 404:7 detectCrash
package:angular/src/core/linker/app_view.dart 381:7 detectChanges
package:angular/src/core/linker/view_container.dart 64:21 detectChangesInNestedViews
package:tadpole/src/procedure_list/procedure_list_component.template.dart 136:13 detectChangesInternal
package:angular/src/core/linker/app_view.dart 404:7 detectCrash
package:angular/src/core/linker/app_view.dart 381:7 detectChanges
....many more lines
</code></pre>
<p>This error makes me suspect that passing a complex object between components is not supported, or there is some magic syntax for passing them.</p>
<p>I have tried using just <code>"selectedProcedure"</code> and <code>{{selectedProcedure}}</code> which result in compiler errors. Which then makes me think that complex objects are supported in this case. </p>
<p>Yes, my confusion is real.</p>
<p>Looking through the docs I cannot find any mention of whether or not this is possible. Every example I can find simply sends <code>String</code>s, but never states specifically that only <code>String</code>s are supported.</p>
<p>Is this really not supported? If it is, what am I doing wrong?</p>
| 0non-cybersec
| Stackexchange |
Inventory management system. Hi, I am looking for some kind of inventory management system for keeping record network equipent in stock. We periodicly do receive alot of devices, at several locations and do need to keep track on what we have in stock, instead of using internal mailinglists to ask for a specific device/component.
The system should be:
-web-based
-Run on premise
-keep track of inventory on separate locations | 1cybersec
| Reddit |
[45% Off] Overwatch Hoodie+Shirt Bundle - Free Shipping. | 0non-cybersec
| Reddit |
Time to put up the lights.... | 0non-cybersec
| Reddit |
Show uniform convergence of the series of functions $\sum_{n=1}^\infty \frac{x^n \sin(nx)}{n}$. <blockquote>
<p>Show uniform convergence of the series of functions $\sum_{n=1}^\infty
\frac{x^n \sin(nx)}{n}$ on the interval $[-1,1]$</p>
</blockquote>
<p><strong>My attempt</strong>: I showed the series converges uniformly on the interval $[-1/2,1/2]$ using Weierstrass M-test. I also showed the series converges uniformly on the interval $[1/2,1]$ by using Dirichlet's criterium, where I used that $\left|\sum_{k=1}^n \sin(kx)\right| \leq \frac{1}{\sin(x/2)}$</p>
<p>However, I'm stuck at showing it converges uniformly on the interval $[-1,-1/2]$. I tried to apply Dirichlet's criterium but can't conclude anything because of the behaviour of the term $x^n/n$ (which does not decrease monotonically). </p>
<p>Any ideas?</p>
| 0non-cybersec
| Stackexchange |
Showing the join of two disjoint projective varieties is a projective variety.. <p>I'm looking at the following proposition in Harris' Algebraic Geometry: a first course:</p>
<blockquote>
<p><strong>Proposition</strong>: Let <span class="math-container">$X,Y\subset\mathbb P^n$</span> be disjoint projective varieties. Then the join <span class="math-container">$J(X,Y)$</span> of <span class="math-container">$X$</span> and <span class="math-container">$Y$</span>, i.e. the union of all lines in <span class="math-container">$\Bbb P^n$</span> which intersect <span class="math-container">$X$</span> and <span class="math-container">$Y$</span>, is a projective variety.</p>
</blockquote>
<p>What I'm having trouble with is determining where the <strong>disjoint</strong> assumption is used. The proof given is as follows (modulo some rewording):</p>
<blockquote>
<p><em>Proof</em>: By [previous example], the locus <span class="math-container">$\mathscr C_1(X)$</span> of lines in <span class="math-container">$\Bbb P^n$</span> that intersect <span class="math-container">$X$</span> is a closed subvariety of the Grassmannian <span class="math-container">$\Bbb G(1,n)$</span>, and similarly <span class="math-container">$\mathscr C_1(Y)$</span> is a closed subvariety of <span class="math-container">$\Bbb G(1,n)$</span>, so their intersection <span class="math-container">$Z:=\mathscr C_1(X)\cap\mathscr C_1(Y)$</span> is closed in <span class="math-container">$\Bbb G(1,n)$</span>. But then by [previous proposition], the union in <span class="math-container">$\Bbb P^n$</span> of all elements of <span class="math-container">$Z$</span> is a closed subvariety of <span class="math-container">$\Bbb P^n$</span>, and this is exactly equal to <span class="math-container">$J(X,Y)$</span>.</p>
</blockquote>
<p>Thanks in advance to anybody who can point out whatever it is I'm missing.</p>
| 0non-cybersec
| Stackexchange |
What is Computer Forensics. Hello knowledgeable people of this fin community!
I am soon starting a road to a career in CyberSec.
I will be doing some basic certifications in my country (Cert III networking and then CertIV CyberSec, these are nationally recognised certifications)
But I am wanting to look into specialised areas of interest. (For further education)
Two areas I have come across and am interested in so far are Computer Forensics and Malware analysis.
Trouble is, how do I follow into these fields? Recommendations?
And what other fields do you find interesting and or work in/have worked in?
I just thought this could be an interesting discussion for myself and other people starting out. Thanks so much all of you amazing people! | 1cybersec
| Reddit |
configure: error: C compiler cannot create executables (ld: unknown option: -no_weak_imports). <p>I'm trying to get certain tools such as <code>wget</code> for my mac, and in my Internet adventures I stumbled upon this program called Homebrew, which seems like just the thing I need.</p>
<p>So I installed Homebrew using the script from their website, and everything ran OK. And after it finished, I ran <code>brew install wget</code>, but I got the following output:</p>
<pre><code>Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for wget: xz, pkg-config, makedepend, openssl
==> Installing wget dependency: xz
==> Using the sandbox
==> Downloading https://fossies.org/linux/misc/xz-5.2.2.tar.gz
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/xz/5.2.2
Last 15 lines from /Users/chenjian/Library/Logs/Homebrew/xz/01.configure:
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
</code></pre>
<p>TL;DR, I got the following error:</p>
<pre><code>checking whether the C compiler works... no
configure: error: in `/private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
</code></pre>
<p>I checked my <code>config.log</code> as suggested, and found this out:</p>
<pre><code>ld: unknown option: -no_weak_imports
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre>
<p>I'm guessing this was the problem, but in any case, here's the full <code>config.log</code>:</p>
<pre><code>This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by XZ Utils configure 5.2.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --disable-silent-rules --prefix=/usr/local/Cellar/xz/5.2.2
## --------- ##
## Platform. ##
## --------- ##
hostname = Chens-MacBook-Pro.local
uname -m = x86_64
uname -r = 16.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 16.0.0: Fri Aug 12 19:00:53 PDT 2016; root:xnu-3789.1.28~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 16.0.0: Fri Aug 12 19:00:53 PDT 2016; root:xnu-3789.1.28~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 345 tasks, 1496 threads, 8 processors
Load average: 2.33, Mach factor: 5.65
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/Library/Homebrew/shims/super
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2959: checking build system type
configure:2973: result: x86_64-apple-darwin16.0.0
configure:2993: checking host system type
configure:3006: result: x86_64-apple-darwin16.0.0
configure:3066: checking if debugging code should be compiled
configure:3082: result: no
configure:3122: checking which encoders to build
configure:3209: result: lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
configure:3213: checking which decoders to build
configure:3305: result: lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
configure:3644: checking which match finders to build
configure:3695: result: hc3 hc4 bt2 bt3 bt4
configure:3713: checking which integrity checks to build
configure:3755: result: crc32 crc64 sha256
configure:3792: checking if assembler optimizations should be used
configure:3816: result: no
configure:3847: checking if small size is preferred over speed
configure:3865: result: no
configure:3881: checking if threading support is wanted
configure:3907: result: yes, posix
configure:3940: checking how much RAM to assume if the real amount is unknown
configure:3955: result: 128 MiB
configure:4085: checking if library symbol versioning should be used
configure:4108: result: no
configure:4126: checking for a shell that conforms to POSIX
configure:4167: result: /bin/sh
configure:4208: checking for a BSD-compatible install
configure:4276: result: /usr/bin/install -c
configure:4287: checking whether build environment is sane
configure:4342: result: yes
configure:4493: checking for a thread-safe mkdir -p
configure:4532: result: build-aux/install-sh -c -d
configure:4539: checking for gawk
configure:4569: result: no
configure:4539: checking for mawk
configure:4569: result: no
configure:4539: checking for nawk
configure:4569: result: no
configure:4539: checking for awk
configure:4555: found /usr/bin/awk
configure:4566: result: awk
configure:4577: checking whether make sets $(MAKE)
configure:4599: result: yes
configure:4628: checking whether make supports nested variables
configure:4645: result: yes
configure:4771: checking whether ln -s works
configure:4775: result: yes
configure:4795: checking for style of include used by make
configure:4823: result: GNU
configure:4894: checking for gcc
configure:4921: result: clang
configure:5150: checking for C compiler version
configure:5159: clang --version >&5
Apple LLVM version 8.0.0 (clang-800.0.31)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:5170: $? = 0
configure:5159: clang -v >&5
Apple LLVM version 8.0.0 (clang-800.0.31)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:5170: $? = 0
configure:5159: clang -V >&5
clang: error: unsupported option '-V -isystem/usr/include/libxml2'
configure:5170: $? = 1
configure:5159: clang -qversion >&5
clang: error: unknown argument: '-qversion'
configure:5170: $? = 1
configure:5190: checking whether the C compiler works
configure:5212: clang conftest.c >&5
ld: unknown option: -no_weak_imports
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:5216: $? = 1
configure:5254: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "XZ Utils"
| #define PACKAGE_TARNAME "xz"
| #define PACKAGE_VERSION "5.2.2"
| #define PACKAGE_STRING "XZ Utils 5.2.2"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL "http://tukaani.org/xz/"
| #define NDEBUG 1
| #define HAVE_ENCODER_LZMA1 1
| #define HAVE_ENCODER_LZMA2 1
| #define HAVE_ENCODER_DELTA 1
| #define HAVE_ENCODER_X86 1
| #define HAVE_ENCODER_POWERPC 1
| #define HAVE_ENCODER_IA64 1
| #define HAVE_ENCODER_ARM 1
| #define HAVE_ENCODER_ARMTHUMB 1
| #define HAVE_ENCODER_SPARC 1
| #define HAVE_DECODER_LZMA1 1
| #define HAVE_DECODER_LZMA2 1
| #define HAVE_DECODER_DELTA 1
| #define HAVE_DECODER_X86 1
| #define HAVE_DECODER_POWERPC 1
| #define HAVE_DECODER_IA64 1
| #define HAVE_DECODER_ARM 1
| #define HAVE_DECODER_ARMTHUMB 1
| #define HAVE_DECODER_SPARC 1
| #define HAVE_MF_HC3 1
| #define HAVE_MF_HC4 1
| #define HAVE_MF_BT2 1
| #define HAVE_MF_BT3 1
| #define HAVE_MF_BT4 1
| #define HAVE_CHECK_CRC32 1
| #define HAVE_CHECK_CRC64 1
| #define HAVE_CHECK_SHA256 1
| #define ASSUME_RAM 128
| #define PACKAGE "xz"
| #define VERSION "5.2.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5259: error: in `/private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2':
configure:5261: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin16.0.0
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin16.0.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=clang
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
gl_cv_posix_shell=/bin/sh
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2/build-aux/missing aclocal-1.15'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE='#'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_CFLAGS=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
AUTOCONF='${SHELL} /private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2/build-aux/missing automake-1.15'
AWK='awk'
CC='clang'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS=''
CFLAG_VISIBILITY=''
COND_ASM_X86_64_FALSE=''
COND_ASM_X86_64_TRUE='#'
COND_ASM_X86_FALSE=''
COND_ASM_X86_TRUE='#'
COND_CHECK_CRC32_FALSE='#'
COND_CHECK_CRC32_TRUE=''
COND_CHECK_CRC64_FALSE='#'
COND_CHECK_CRC64_TRUE=''
COND_CHECK_SHA256_FALSE='#'
COND_CHECK_SHA256_TRUE=''
COND_DECODER_ARMTHUMB_FALSE='#'
COND_DECODER_ARMTHUMB_TRUE=''
COND_DECODER_ARM_FALSE='#'
COND_DECODER_ARM_TRUE=''
COND_DECODER_DELTA_FALSE='#'
COND_DECODER_DELTA_TRUE=''
COND_DECODER_IA64_FALSE='#'
COND_DECODER_IA64_TRUE=''
COND_DECODER_LZMA1_FALSE='#'
COND_DECODER_LZMA1_TRUE=''
COND_DECODER_LZMA2_FALSE='#'
COND_DECODER_LZMA2_TRUE=''
COND_DECODER_LZ_FALSE='#'
COND_DECODER_LZ_TRUE=''
COND_DECODER_POWERPC_FALSE='#'
COND_DECODER_POWERPC_TRUE=''
COND_DECODER_SIMPLE_FALSE='#'
COND_DECODER_SIMPLE_TRUE=''
COND_DECODER_SPARC_FALSE='#'
COND_DECODER_SPARC_TRUE=''
COND_DECODER_X86_FALSE='#'
COND_DECODER_X86_TRUE=''
COND_DOC_FALSE='#'
COND_DOC_TRUE=''
COND_ENCODER_ARMTHUMB_FALSE='#'
COND_ENCODER_ARMTHUMB_TRUE=''
COND_ENCODER_ARM_FALSE='#'
COND_ENCODER_ARM_TRUE=''
COND_ENCODER_DELTA_FALSE='#'
COND_ENCODER_DELTA_TRUE=''
COND_ENCODER_IA64_FALSE='#'
COND_ENCODER_IA64_TRUE=''
COND_ENCODER_LZMA1_FALSE='#'
COND_ENCODER_LZMA1_TRUE=''
COND_ENCODER_LZMA2_FALSE='#'
COND_ENCODER_LZMA2_TRUE=''
COND_ENCODER_LZ_FALSE='#'
COND_ENCODER_LZ_TRUE=''
COND_ENCODER_POWERPC_FALSE='#'
COND_ENCODER_POWERPC_TRUE=''
COND_ENCODER_SIMPLE_FALSE='#'
COND_ENCODER_SIMPLE_TRUE=''
COND_ENCODER_SPARC_FALSE='#'
COND_ENCODER_SPARC_TRUE=''
COND_ENCODER_X86_FALSE='#'
COND_ENCODER_X86_TRUE=''
COND_FILTER_ARMTHUMB_FALSE='#'
COND_FILTER_ARMTHUMB_TRUE=''
COND_FILTER_ARM_FALSE='#'
COND_FILTER_ARM_TRUE=''
COND_FILTER_DELTA_FALSE='#'
COND_FILTER_DELTA_TRUE=''
COND_FILTER_IA64_FALSE='#'
COND_FILTER_IA64_TRUE=''
COND_FILTER_LZMA1_FALSE='#'
COND_FILTER_LZMA1_TRUE=''
COND_FILTER_LZMA2_FALSE='#'
COND_FILTER_LZMA2_TRUE=''
COND_FILTER_LZ_FALSE='#'
COND_FILTER_LZ_TRUE=''
COND_FILTER_POWERPC_FALSE='#'
COND_FILTER_POWERPC_TRUE=''
COND_FILTER_SIMPLE_FALSE='#'
COND_FILTER_SIMPLE_TRUE=''
COND_FILTER_SPARC_FALSE='#'
COND_FILTER_SPARC_TRUE=''
COND_FILTER_X86_FALSE='#'
COND_FILTER_X86_TRUE=''
COND_GNULIB_FALSE=''
COND_GNULIB_TRUE=''
COND_INTERNAL_SHA256_FALSE=''
COND_INTERNAL_SHA256_TRUE=''
COND_LZMADEC_FALSE='#'
COND_LZMADEC_TRUE=''
COND_LZMAINFO_FALSE='#'
COND_LZMAINFO_TRUE=''
COND_LZMALINKS_FALSE='#'
COND_LZMALINKS_TRUE=''
COND_MAIN_DECODER_FALSE='#'
COND_MAIN_DECODER_TRUE=''
COND_MAIN_ENCODER_FALSE='#'
COND_MAIN_ENCODER_TRUE=''
COND_SCRIPTS_FALSE='#'
COND_SCRIPTS_TRUE=''
COND_SHARED_FALSE=''
COND_SHARED_TRUE=''
COND_SMALL_FALSE=''
COND_SMALL_TRUE='#'
COND_SYMVERS_FALSE=''
COND_SYMVERS_TRUE='#'
COND_THREADS_FALSE=''
COND_THREADS_TRUE=''
COND_W32_FALSE=''
COND_W32_TRUE='#'
COND_XZDEC_FALSE='#'
COND_XZDEC_TRUE=''
COND_XZ_FALSE='#'
COND_XZ_TRUE=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GETOPT_H=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
HAVE_VISIBILITY=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LD=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_EXEEXT='$(EXEEXT)'
LN_S='ln -s'
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2/build-aux/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='build-aux/install-sh -c -d'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='xz'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='XZ Utils'
PACKAGE_STRING='XZ Utils 5.2.2'
PACKAGE_TARNAME='xz'
PACKAGE_URL='http://tukaani.org/xz/'
PACKAGE_VERSION='5.2.2'
PATH_SEPARATOR=':'
POSIX_SHELL='/bin/sh'
POSUB=''
PREFERABLY_POSIX_SHELL='/bin/sh'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
RC=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='5.2.2'
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
ac_ct_AR=''
ac_ct_CC='clang'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_pthread_config=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin16.0.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin16.0.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin16.0.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin16.0.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /private/tmp/xz-20160817-3709-1qc3b72/xz-5.2.2/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/Cellar/xz/5.2.2'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
xz=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "XZ Utils"
#define PACKAGE_TARNAME "xz"
#define PACKAGE_VERSION "5.2.2"
#define PACKAGE_STRING "XZ Utils 5.2.2"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL "http://tukaani.org/xz/"
#define NDEBUG 1
#define HAVE_ENCODER_LZMA1 1
#define HAVE_ENCODER_LZMA2 1
#define HAVE_ENCODER_DELTA 1
#define HAVE_ENCODER_X86 1
#define HAVE_ENCODER_POWERPC 1
#define HAVE_ENCODER_IA64 1
#define HAVE_ENCODER_ARM 1
#define HAVE_ENCODER_ARMTHUMB 1
#define HAVE_ENCODER_SPARC 1
#define HAVE_DECODER_LZMA1 1
#define HAVE_DECODER_LZMA2 1
#define HAVE_DECODER_DELTA 1
#define HAVE_DECODER_X86 1
#define HAVE_DECODER_POWERPC 1
#define HAVE_DECODER_IA64 1
#define HAVE_DECODER_ARM 1
#define HAVE_DECODER_ARMTHUMB 1
#define HAVE_DECODER_SPARC 1
#define HAVE_MF_HC3 1
#define HAVE_MF_HC4 1
#define HAVE_MF_BT2 1
#define HAVE_MF_BT3 1
#define HAVE_MF_BT4 1
#define HAVE_CHECK_CRC32 1
#define HAVE_CHECK_CRC64 1
#define HAVE_CHECK_SHA256 1
#define ASSUME_RAM 128
#define PACKAGE "xz"
#define VERSION "5.2.2"
configure: exit 77
</code></pre>
<p>If I was wrong, what's exactly the problem? Why is it caused? And most important, how do I fix it?</p>
<p>P.S. I'm running macOS Sierra (10.12) and Xcode-beta.</p>
| 0non-cybersec
| Stackexchange |
[WP] THe narration indicates that the main character is a villain, but the dialogue suggests that he/she is a hero.. The basic idea is to create a discord between the narration and the dialogue by giving then narrator and the main character conflicting views. | 0non-cybersec
| Reddit |
New AAA game dev studio Gravity Well announced, headlined by Drew McCoy and Jon Shiring from Respawn Entertainment. | 0non-cybersec
| Reddit |
8” bowl I turned out of some “firewood” from the neighbor’s pile. Needs some finish but I really like the dynamic coloring. Not sure what type of wood this is but I think it’s black poplar.. | 0non-cybersec
| Reddit |
They made a company for us!. | 0non-cybersec
| Reddit |
Why does AVG complain with Exploit Blackhat SEO type 1703. <p>I installed "AVG internet security", opened a page in internet explorer, and AVG complains about "Exploit Blackhat SEO (type 1703)" for object name</p>
<p><a href="http://www.actionsportsstockfootage.com/picturepage.html" rel="nofollow">Action sports stock footage</a></p>
<p>with no further details. (Note that I have not written this page. It seems to have been written in the distant past by several different persons.)</p>
<p>When I look at the html source code, I do not notice anything unusual. But then again, I do not know what I should look for or change to satisfy AVG.</p>
<p>I tried </p>
<p><a href="http://sitecheck.sucuri.net/results/www.actionsportsstockfootage.com/picturepage.html" rel="nofollow">Sucuri SiteCheck</a></p>
<p>with the results</p>
<pre><code>Security report (No threats found):
check Blacklisted: No
check Malware: No
check Malicious javascript: No
check Malicious iFrames: No
check Drive-By Downloads: No
check Anomaly detection: No
check IE-only attacks: No
check Suspicious redirections: No
check Spam: No
</code></pre>
<p>The links toward the bottom of the HTML page such as <code>http://clips.actionsportsstockfootage.com/sdf_clip.php</code> link to a different server but at the same domain.</p>
<p>--</p>
<p>How do I solve the issue?</p>
<p>In the meantime, I have sent a report to AVG at <a href="http://www.avg.com/eu-en/page-rating-report" rel="nofollow">their AVG Incorrect page rating report page</a>.</p>
| 0non-cybersec
| Stackexchange |
At a garage sale, years ago, I bought a hilariously named tube of Swallow Shuttlecocks, but then I opened it. What is this? It's probably upside down.. | 0non-cybersec
| Reddit |
Amazing Japanese Trailer of League of Legends. | 0non-cybersec
| Reddit |
What's the name for this sort of join?. <p>I'm trying to describe a sort of join between two graphs $G$ and $H$ where you delete one edge from each graph (let's call the vertices adjacent to the deleted edges $g_1$, $g_2$, $h_1$ and $h_2$) , and then join the two graphs by adding an edge between $g_1$ and $h_1$, and another between $g_2$ and $h_2$.</p>
<p>Does this join have a special name? I can't seem to find one, although I have a feeling it has one.</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
Directories will list, but are not recognize by cd. <p>New to terminal and having problems out of the gate. Using Terminal 2.1.2 on a Mac running 10.6.8. Using the "ls Documents" will list the contents, but when I try to change directories, which I tried several different ways, I get the following results:</p>
<pre><code>new-host-2:~ MDimond$ cd.
-bash: cd.: command not found
new-host-2:~ MDimond$ cd./Users/MDimond/Documents
-bash: cd./Users/MDimond/Documents: No such file or directory
new-host-2:~ MDimond$ cd. /Documents
-bash: cd.: command not found
</code></pre>
<p>The /usr/bin has the cd command listed; the /bin does not.</p>
| 0non-cybersec
| Stackexchange |
[WP] You and your friends visit an abandoned house. In it, you find a letter with your full name on it.. | 0non-cybersec
| Reddit |
This guy recognizing his best friend’s fiancé at a game with another guy. | 0non-cybersec
| Reddit |
How To Disable Windows 10 Spying. | 1cybersec
| Reddit |
Adding 4 finger gesture in ubuntu 16.04. <p>I have installed <code>touchegg</code> and added the following lines in <code>.xprofile</code></p>
<pre><code>synclient TapButton2=0
synclient ClickFinger2=0
synclient TapButton3=0
synclient ClickFinger3=0
synclient HorizTwoFingerScroll=0
synclient VertTwoFingerScroll=0
touchegg &
</code></pre>
<p>But now I want to add four finger gesture with which we can move to different windows(like in MacOs). How is that possible?</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 |
Find a line that is perpendicular to a plane that passes through a point. <p>This is a homework question I am having difficulty answering. (It is Calc III, but this problem only concerns vectors).</p>
<blockquote>
<p>(A) Find the parametric equations for the line through the point $P =
(4, -1, 4)$ that is perpendicular to the plane $3x + 1y - 5z = 1$. Use
"$t$" as your variable, $t = 0$ should correspond to $P$, and the velocity
vector of the line should be the same as the normal vector to the
plane found directly from its equation.</p>
<p>(B) At what point $Q$ does this line intersect the $yz$-plane?</p>
</blockquote>
<p>So Here's what I've tried conceptualizing. First we have point $P$, which we can think of as a vector from the origin. We can also create the normal vector from the plane: $n = \langle 3, 1, -5\rangle$. We can pick a point on the plane that satisfies the equation $p_0 = (2,0,1)$. We can now use this information to start forming a triangle we can solve for. One side: $n - p_0 = \langle 1, 1, -6\rangle$. The hypotenuse can be found with $P - p_0 = \langle 2, -1, 3\rangle$. Which leaves us with one remaining side, which will be a vector within the plane which should give us the point in which the line will intersect with the plane, which we can turn into a vector from the origin and add to the unit vector of $n$ to create our equation.</p>
<p>I <em>think</em> finding this remaining side should be how we get all this information, but I don't know if that's right or if that's even the correct approach. Can anyone give me any advice?</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 |
Unable to run an asp.net 4.5 app on xsp on Mono 3. <p>I've build Mono 3.0.2 from source (tarball), and built XSP from both the latest tarball and the latest on Github, but I'm unable to run a relatively simple asp.net app using .net 4.5 because it sees 'targetFramework="4.5"' in the web.config as invalid. Building the app, and running a console .net 4.5 app works just fine.</p>
<p>This is the web.config in question:</p>
<pre><code><?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="owin:HandleAllRequests" value="true" />
<add key="owin:SetCurrentDirectory" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
</configuration>
</code></pre>
<p>And this is the exception that xsp4 is throwing:</p>
<pre><code>An exception has occurred while generating HttpException page:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig () [0x00000] in <filename unknown>:0
at System.Lazy`1[System.Web.Util.HttpEncoder].InitValue () [0x00000] in <filename unknown>:0
The actual exception which was being reported was:
System.Web.HttpException: Initial exception ---> System.Configuration.ConfigurationErrorsException: Error deserializing configuration section httpRuntime: Unrecognized attribute 'targetFramework'. (/home/srobbins/Projects/nancykatana/NancyKatana/Web.config line
1)
at System.Configuration.ConfigurationSection.DeserializeSection (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSectionInstance (System.Configuration.SectionInfo config, Boolean createDefaultInstance) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationSectionCollection.get_Item (System.String name) [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSection (System.String path) [0x00000] in <filename unknown>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
</code></pre>
<p>And some information about the versions/configuration:</p>
<pre><code>xsp-2.11
Build Environment
Install prefix: /usr/local
Datadir: /usr/local/share
Libdir: /usr/local/lib
Build documentation: yes
Mono 2.0 compiler: /usr/local/bin/gmcs
Mono 4.0 compiler: /usr/local/bin/dmcs
Target frameworks: .NET 2.0, .NET 4.0
Build SQLite samples: yes
srobbins@ubuntu-vm:~/Downloads/xsp$ /usr/local/bin/mono --version
Mono JIT compiler version 3.0.2 (tarball Tue Jan 8 08:23:06 GMT 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
srobbins@ubuntu-vm:~/Downloads/xsp$
</code></pre>
<p>If I remove the targetFramework elements from the web.config then the error goes away, but I just get a 404, so none of the http modules are getting hooked up.</p>
<p>Any ideas? I've been told that xsp4 should work just fine, but from what I can see it does't appear to have been updated to handle 4.5 at all.</p>
| 0non-cybersec
| Stackexchange |
The marvellous fountain at my capital's central train station. | 0non-cybersec
| Reddit |
New York City to offer free broadband in housing projects. | 0non-cybersec
| Reddit |
Script to run Adobe Update Remote Manager as Launch Daemon at Boot without MDM. <p><strong>Scenario</strong>: I need to figure out how to run the <code>/usr/local/bin/RemoteUpdateManager</code> at DeepFreeze maintenance cycle. During this maintenance cycle, the computers will restart to the login screen and enter a thaw and locked mode for a period of time. As mentioned we do not have a MDM yet, so I created a launch daemon which to my understanding should run the script at boot without requiring any input or to login.</p>
<p><strong>Update.sh</strong></p>
<pre><code>#!/bin/bash
rum=/usr/local/bin/RemoteUpdateManager
if [[ -f $rum ]]; then
echo "Starting Adobe RemoteUpdateManger..."
sudo $rum --action=list #Listing the updates for now, but will install later
else
echo "Adobe RemoteUpdateManager not found."
fi
</code></pre>
<p>Based off Adobe's RUM guide, <a href="https://helpx.adobe.com/ca/enterprise/package/help/using-remote-update-manager.html" rel="nofollow noreferrer">link</a>, you have to use sudo for RemoteUpdateManager</p>
<p><strong>com.test.schedule.plist</strong></p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnviromentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:</string>
</dict>
<key>Label</key>
<string>com.test.updateschedule</string>
<key>ProgramArguments</key>
<array>
<string>sudo</string>
<string>sh</string>
<string>/Library/Scripts/Updates.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/var/log/EsoUpdateError.log</string>
<key>StandardOutPath</key>
<string>/var/log/EsoUpdate.log</string>
</code></pre>
<p>
</p>
<p><strong>Steps Taken</strong> </p>
<ol>
<li>Copy update.sh to <code>/Library/Scripts/</code> and the .plist to <code>/Library/LaunchDaemons/</code> </li>
<li><code>sudo chown root:wheel</code> .sh</li>
<li><code>sudo chown root:wheel</code> .plist.</li>
<li><code>sudo launchctl load -w /Library/LaunchDaemons/.plist</code></li>
<li>The moment I load the .plist, it creates two logs at <code>/var/log/</code>. The standardoutpath log lists all the updates which is exactly what I want.</li>
</ol>
<p><strong>Issue</strong></p>
<p>After restarting the computer to see if results stick, I notice that the results cannot be replicated. Instead I receive the following in StandardErrorPath log:</p>
<blockquote>
<p>RemoteUpdateManager exiting with Return Code (1)</p>
</blockquote>
<p>Based of the RUM guide, Return Code (1) is: "Generic error, for example an internal error. For example, this might be the case where Adobe Application Manager installation is corrupted or network is not present. In this case, typically, the process of downloading or installing updates cannot be started at all."</p>
<p>I went as far to apply chmod 777 and chown root:wheel to both the .sh and .plist, along with `/usr/local/bin/RemoteUpdateManager'. Tried without sudo in the .plist and .sh. </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 |
Pow, RVM and ZSH not working together. <p>I'm trying to get Octopress (http://octopress.org/) working, but I'm having some issues.
I'm using POW (http://pow.cx/) and it seems to not load the correct Ruby version for me (using RVM).</p>
<p>It always uses the RVM default ruby version and not the one specified in .rvmrc. My default Ruby version in RVM is: ruby-1.9.3-p125.</p>
<p>In my .rvmrc file I have this: <code>rvm use 1.9.2</code>
I get this error in the browser when visiting my site:</p>
<pre><code>LoadError: cannot load such file -- bundler/setup
~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
~/Sites/Lejnus/lejnus/config.ru:1:in `block in <main>'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/builder.rb:4:in `initialize'
~/Sites/Lejnus/lejnus/config.ru:1:in `new'
~/Sites/Lejnus/lejnus/config.ru:1:in `<main>'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/server.rb:50:in `eval'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/server.rb:50:in `load_config'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/server.rb:43:in `initialize'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/server.rb:13:in `new'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/server.rb:13:in `run'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/bin/nack_worker:4:in `<main>'
</code></pre>
<p>Why is it using 1.9.3-p125 when 1.9.2 is specified in my .rvmrc file? If I set 1.9.2 as default it works of course...</p>
<p>Isn't it supposed to do this magic for me and use the correct ruby versions?</p>
| 0non-cybersec
| Stackexchange |
Cannot shutdown apache2 on 16.04 LTS. <p><a href="https://i.stack.imgur.com/RcKsR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RcKsR.png" alt="enter image description here"></a></p>
<p>I'm trying to set up a small VPS. When it was provisioned for me I was given the ip address , which dispays an apache2 page. I'd prefer to set things up using nginx. I asked the host about switching to nginx and got:</p>
<pre><code>Apache is included with the template used to create the server.
All software installation, removal, updating and configuration is up to the end user. We provide pre-made server templates to you of the most commonly used software packages to help you get started.
</code></pre>
<p>Based on <a href="https://www.cyberciti.biz/faq/ubuntu-linux-start-restart-stop-apache-web-server/" rel="nofollow noreferrer">https://www.cyberciti.biz/faq/ubuntu-linux-start-restart-stop-apache-web-server/</a> , I'm trying to shutdown the apache server using:</p>
<pre><code>deploy@server:~$ sudo systemctl stop apache2.service
deploy@server:~$ sudo systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since Thu 2017-01-12 21:24:23 EST; 4 days ago
Docs: man:systemd-sysv-generator(8)
Process: 28696 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCES
Process: 28681 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCC
Jan 17 11:09:17 server systemd[1]: Stopped LSB: Apache2 web server.
Warning: Journal has been rotated since unit was started. Log output is incomplete
</code></pre>
<p>But the default page is still visible at the url. What am I doing wrong?</p>
<p>edit:</p>
<pre><code>deploy@server:~$ journalctl -xe
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
deploy@server:~$ sudo service apache2 stop
[sudo] password for deploy:
deploy@server:~$
</code></pre>
<p>web page is still active. Please note that deploy is a non root account that I have created.</p>
<p>edit 2:</p>
<pre><code>deploy@server:~$ ps aux | egrep apache2
deploy 17196 0.0 0.1 11228 888 pts/0 S+ 12:22 0:00 grep -E --color=auto apache2
</code></pre>
<p>edit 3: I found the following:</p>
<pre><code>The binary is called apache2. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not work with the default configuration.
</code></pre>
<p>edit 4: I switched to root:</p>
<pre><code>root@server:/var/www/html# /etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service.
root@server:/var/www/html#
</code></pre>
<p>No change . I also edited text in the index.html file and this is being served correctly. </p>
<p>edit 5:</p>
<pre><code>root@server:/var/www/html# sudo systemctl stop apache2.service
root@server:/var/www/html# lynx http://localhost
</code></pre>
<p>I still see the webpage in the lynx browser</p>
<p>edit 6:</p>
<pre><code>root@server:/var/www/html# sudo lsof -i tcp:80 | egrep LISTEN
nginx 28487 root 6u IPv4 603899449 0t0 TCP *:http (LISTEN)
nginx 28487 root 7u IPv6 603899450 0t0 TCP *:http (LISTEN)
nginx 28488 www-data 6u IPv4 603899449 0t0 TCP *:http (LISTEN)
nginx 28488 www-data 7u IPv6 603899450 0t0 TCP *:http (LISTEN)
</code></pre>
<p>edit 7:</p>
<pre><code>root@server:/var/www/html# sudo update-rc.d -f apache2 remove
root@server:/var/www/html# sudo systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
Jan 17 12:59:58 server apache2[17860]: Action 'start' failed.
Jan 17 12:59:58 server apache2[17860]: The Apache error log may have more inform
Jan 17 12:59:58 server apache2[17860]: *
Jan 17 12:59:58 server apache2[17876]: * Stopping Apache httpd web server apach
Jan 17 12:59:58 server apache2[17876]: *
Jan 17 12:59:58 server systemd[1]: Started LSB: Apache2 web server.
Jan 17 13:01:04 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 14:16:05 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 14:16:54 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 14:20:45 server systemd[1]: Stopped LSB: Apache2 web server.
</code></pre>
<p>edit 8:</p>
<pre><code>Jan 17 13:01:04 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 14:16:05 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 14:16:54 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 14:20:45 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 16:38:44 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 16:41:50 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 16:50:48 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 16:51:20 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 16:51:33 server systemd[1]: Stopped LSB: Apache2 web server.
Jan 17 16:51:45 server systemd[1]: Stopped LSB: Apache2 web server.
root@server:/var/www/html# sudo update-rc.d -f apache2 remove
root@server:/var/www/html#
</code></pre>
| 0non-cybersec
| Stackexchange |
Numbers in text, without having to update values from external files by hand?. <p>I am writing a paper discussing numerical results of simulations. I am still tuning those simulations itself, so the results keep changing slightly. I don't want to re-type numbers over from what I computed all the time into the LaTeX document by hand.</p>
<p>I am currently using python to extract results and spit it out files in LaTeX format which are then <code>\include</code>'d (<code>tabular</code>s with numbers, basically), but this approach is not very flexible -- in particular, I can't refer to those numbers in running text.</p>
<p>Is there a packaged way to have e.g. text file with <code>name value</code> lines and then refer to <code>value</code> using <code>\name</code> in LaTeX, or something similar?</p>
| 0non-cybersec
| Stackexchange |
How to combine possible permutations of two sets to find number of combined permutations. <p>I hope the title accurately describes the question.</p>
<p>I have a question that asks:</p>
<p>There are 7 male swimmers and 5 female swimmers. If there is a gold, silver, and bronze medalist male swimmer, and a gold and silver medalist female swimmer, how many arrangements are possible?</p>
<p>Here's how I approached the problem:</p>
<p>I looked at the male swimmers first,</p>
<p>Gold medal = 7 possibilities
Silver medal = 6 possibilities
Bronze medal = 5 possibilities</p>
<p>7!/4! = 210 possible arrangements for the males</p>
<p>for females:</p>
<p>Gold medal = 5 possibilities
Silver medal = 4 possibilities</p>
<p>5!/3! = 20</p>
<p>Now this is where I got kind of unsure about what to do....</p>
<p>I decided to think of the next step as two task,</p>
<p>task 1 = pick 3 boys, task 2 = pick 2 girls</p>
<p>task 1 = 210 options (number of permutations), task 2 = 20 options</p>
<p>so 210 x 20 = 4200......I think that number seems really high. Is there a proper method to use for this type of question? Or is it just kind of an combination of methods. </p>
| 0non-cybersec
| Stackexchange |
Can the name “localhost” in a virtual machine be mapped to IP of host machine?. <p>I have a virtual machine image (using Virtual PC) of Windows XP/IE6 from Microsoft's "modern IE" website. This virtual machine is hosted by a Windows 7 machine.</p>
<p>I have a local web application on the host machine and need to check it in IE6 (sadly). Inside the virtual machine, can the "localhost" name be mapped to point to the IP of the host machine? I tried editing the c:/windows/system32/drivers/etc/hosts file in the virtual machine to [IP address of host machine] localhost but that doesn't work. The reason I want to use "localhost" rather than an IP is because some of the web application's configuration files point to "localhost."</p>
<p>I can change the configuration files to point to a different domain name, but I wanted to know if the "localhost" name itself can point to something else. I get the feeling that "localhost" is some type of reserved keyword that only points to 127.0.0.1.</p>
| 0non-cybersec
| Stackexchange |
Deftones -- Be Quiet And Drive (Far Away)[Alternative Metal]. | 0non-cybersec
| Reddit |
My First Tattoo: The Crow - By Anrijs Straume, Bold as Brass, Liverpool UK. | 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 get the Hard Drive serial number. <p>I wanted to get the serial number assigned by Hard disk manufacturer.</p>
<p>The serial number is usually printed in the hard disk. Normally to get the serial number, I have to take out the hard disk.</p>
<p><strong>Is it possible to know the hard drive serial number from command prompt or in other way.</strong></p>
<p>Before posting this question I have gone through this <a href="https://superuser.com/questions/498083/how-to-get-hard-drive-serial-number-from-command-line">question</a> but I am getting the error in the following screenshot:</p>
<p><img src="https://i.stack.imgur.com/9NSWm.jpg" alt="enter image description here"></p>
| 0non-cybersec
| Stackexchange |
Aliased network interfaces and isc dhcp server. <p>I have been banging my head on this for a long time now. There are many discussions on the net about this and similar problems, but none of the solutions seems to work for me.</p>
<p>I have a Debian server with two ethernet network interfaces. One of them is connected to internet, while the other is connected to my LAN.</p>
<p>The LAN network is 10.11.100.0 (netmask 255.255.255.0).</p>
<p>We have some custom hardware that use network 10.4.1.0 (netmask 255.255.255.0) and we can't change that. But we need all hosts on 10.11.100.0 to be able to connect to devices on 10.4.1.0. So I added an alias for the LAN network interface so that the Debian server acts as a gateway between 10.11.100.0 and 10.4.1.0.</p>
<p>But then the dhcp server stopped working.</p>
<p>The log says:</p>
<pre><code>No subnet declaration for eth1:0 (no IPv4 addresses).
** Ignoring requests on eth1:0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1:1 is attached. **
No subnet declaration for eth1:1 (no IPv4 addresses).
** Ignoring requests on eth1:1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1:1 is attached. **
</code></pre>
<p>I had another server before, also running Debian but with the older dhcp3 server, and it worked without any problems. I've tried everything I can think of in dhcpd.conf etc, and I've also compared with the working configuration in the old server.</p>
<p>The dhcp server need only handle devices on 10.11.100.0.</p>
<p>Any hints?</p>
<p>Here's all relevant config files:</p>
<p><strong>/etc/default/isc-dhcp-server</strong></p>
<pre><code>INTERFACES="eth1"
</code></pre>
<p><strong>/etc/network/interfaces</strong></p>
<p>(I've left out eth0, that connects to the Internet, since there is no problem with that.)</p>
<pre><code>auto eth1:0
iface eth1:0 inet static
address 10.11.100.202
netmask 255.255.255.0
auto eth1:1
iface eth1:1 inet static
address 10.4.1.248
netmask 255.255.255.0
</code></pre>
<p><strong>/etc/dhcp/dhcpd.conf</strong></p>
<pre><code>ddns-update-style none;
option domain-name "???.com";
option domain-name-servers ?.?.?.?;
default-lease-time 86400;
max-lease-time 604800;
authorative;
subnet 10.11.100.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
pool {
range 10.11.100.50 10.11.100.99;
}
option routers 10.11.100.102;
}
</code></pre>
<p>I have tried to add shared-network etc, but didn't manage to get that to work. I get the same error message no matter what...</p>
| 0non-cybersec
| Stackexchange |
Soaking up some sun ☀️. | 0non-cybersec
| Reddit |
Can I reuse a nonce to retransmit the same packet using ChaCha20-Poly1305?. <p>I understand the "sudden death" implications of reusing a nonce with ChaCha20-poly1305, but I believe this rule doesn't apply if you are transmitting exactly the same packet.</p>
<p>I'm putting together a small radio protocol where packets can be lost and if an ack isn't received the packet is re-transmitted. In this instance the nonce is reused, but I can't see that an attacker has any more useful information than the initial packet. I would presume that the key is still safe. Is this correct or have I missed something obvious?</p>
<p>EDIT:</p>
<p>It is a custom protocol, based on a resource requirement that prevents going with something like 6LoWPAN.</p>
<p>I was not going to use random nonces, but rather sequential nonces, with the top 32 bits of the 96 bit nonce set to the 32 bit node address that the packet comes from. The problem with this is reliably storing the nonce in flash with limited erase / write cycles. Although I have seen implementations save blocks of nonces, rather than every use.</p>
<p>I can gather entropy from concatenating the lowest bit of multiple reads of the signal strength from the radio, but I would guess that sequential nonces are safer to use, if I can guarantee they are sequential.</p>
<p>I was thinking of using a network registration method where the node, on power up, would have a preshared RX encryption key, but no TX encryption key. The node would ask for network registration where a master node (server) would send a new TX key encrypted and authenticated. If correctly received the new node would use the new TX key and the nonce would start again from 0. This would get around the problem of storing the nonce at the expense of a slight delay in network registration. This network is only designed to be local to a single site, all nodes within reception of each other.</p>
| 0non-cybersec
| Stackexchange |
I Made a Panning Timelapse Rig from a $3 Kitchen Timer. | 0non-cybersec
| Reddit |
Methods to solve $\int_{0}^{\infty} \frac{\cos\left(kx^n\right)}{x^n + a}\:dx$. <p>Spurred on by <a href="https://math.stackexchange.com/questions/3042335/seeking-methods-to-solve-int-0-infty-frace-xnxn-1-dx">this</a> question, I decided to investigate for different functions on the numerator. Here, I went from <span class="math-container">$\exp(..)$</span> to <span class="math-container">$\sin(..) / \cos(..)$</span>. I initially thought I could modify the result from <span class="math-container">$\exp(..)$</span> but got <a href="https://math.stackexchange.com/questions/3045895/solving-re-left-gamman-bi-right">stuck</a>. So I decided on another approach which here is a combination of Feynman's Trick, Laplace Transforms and coupled ODE Systems. I would love for a qualified eye to have a look over to see if what I've done is correct and/or another method (Not using Complex Analysis) to solve.</p>
<p>Here I've included more of my algebra to aid in those who wish to go over. </p>
<p>Consider the following two definite integrals</p>
<p><span class="math-container">\begin{align}
I_{n,a,k} &= \int_{0}^{\infty} \frac{\sin\left(kx^n\right)}{x^n + a}\:dx \\
J_{n,a,k} &= \int_{0}^{\infty} \frac{\cos\left(kx^n\right)}{x^n + a}:dx
\end{align}</span></p>
<p>For <span class="math-container">$a,k \in \mathbb{R}^+$</span> and <span class="math-container">$n \in \mathbb{R}^{+}, n > 1$</span>. Here we define:</p>
<p><span class="math-container">\begin{align}
I_{n,a,k}(t) &= \int_{0}^{\infty} \frac{\sin\left(tkx^n\right)}{x^n + a}:dx \\
J_{n,a,k}(t) &= \int_{0}^{\infty} \frac{\cos\left(tkx^n\right)}{x^n + a}:dx
\end{align}</span></p>
<p>Here we observe that:
<span class="math-container">\begin{align}
I_{n,a,k}(1) &= I_{n,a,k} & I_{n,a,k}(0) &= 0 \\
J_{n,a,k}(1) &= J_{n,a,k} & J_{n,a,k}(0) &= a^{\frac{1}{n} - 1} \frac{\Gamma\left(1 -\frac{1}{n}\right)\Gamma\left(\frac{1}{n} \right)}{n} = \theta_{a,n}
\end{align}</span></p>
<p>Here we will address each integral individually. For <span class="math-container">$I_{n,a,k}$</span> we take the derivative with respect to '<span class="math-container">$t$</span>':</p>
<p><span class="math-container">\begin{align}
I_{n,a,k}'(t) &= \int_{0}^{\infty} \frac{kx^n\cos\left(tkx^n\right)}{x^n + a}\:dx = k\left[\int_{0}^{\infty} \cos\left(tkx^n\right)\:dx - a\int_{0}^{\infty} \frac{\cos\left(tkx^n\right)}{x^n + a}\:dx \right] \\
\frac{1}{k}I_{n,a,k}'(t) &= \frac{1}{k^{\frac{1}{n}}t^{\frac{1}{n}}}\int_{0}^{\infty} \cos\left(u^n\right)\:du - aJ_{n,a,k}(t)
\end{align}</span></p>
<p>Thus, </p>
<p><span class="math-container">\begin{equation}
\frac{1}{k}I_{n,a,k}'(t) + aJ_{n,a,k}(t) = \frac{1}{k^{\frac{1}{n}}t^{\frac{1}{n}}}\int_{0}^{\infty} \cos\left(u^n\right)\:du
\end{equation}</span></p>
<p>From Section X, we arrive at:</p>
<p><span class="math-container">\begin{equation}
\frac{1}{k}I_{n,a,k}'(t) + aJ_{n,a,k}(t) = \frac{\Gamma\left(\frac{1}{n}\right)\cos\left(\frac{\pi}{2n} \right)}{nk^{\frac{1}{n}}t^{\frac{1}{n}}}
\end{equation}</span></p>
<p>Applying the same method to <span class="math-container">$J_{n,a,k}\left(t\right)$</span> we arrive at:</p>
<p><span class="math-container">\begin{equation}
-\frac{1}{k}J_{n,a,k}'(t) + aI_{n,a,k}(t) = \ \frac{\Gamma\left(\frac{1}{n}\right)\sin\left(\frac{\pi}{2n} \right)}{nk^{\frac{1}{n}}t^{\frac{1}{n}}}
\end{equation}</span></p>
<p>And thus, we arrive at the couple ordinary differential equation system:</p>
<p><span class="math-container">\begin{align}
\frac{1}{k}I_{n,a,k}'(t) + aJ_{n,a,k}(t) &= \Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)t^{-\frac{1}{n}}\\
aI_{n,a,k}(t) -\frac{1}{k}J_{n,a,k}'(t) &= \Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)t^{-\frac{1}{n}}
\end{align}</span></p>
<p>Where <span class="math-container">$\Psi_{k,n} = \frac{\Gamma\left(\frac{1}{n}\right)}{n}k^{-\frac{1}{n}}$</span>. Although there are many approaches to solving this system, here I will employ Laplace Transforms:</p>
<p><span class="math-container">\begin{align}
\frac{1}{k}\mathscr{L}\left[I_{n,a,k}'(t)\right] + a\mathscr{L}\left[J_{n,a,k}(t)\right] &= \Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)\mathscr{L}\left[t^{-\frac{1}{n}}\right]\\
a\mathscr{L}\left[I_{n,a,k}(t)\right] -\frac{1}{k}\mathscr{L}\left[J_{n,a,k}'(t)\right] &= \Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)\mathscr{L}\left[t^{-\frac{1}{n}}\right]
\end{align}</span></p>
<p>Which becomes:</p>
<p><span class="math-container">\begin{align}
\frac{s}{k}\bar{I}_{n,a,k}(s) + a\bar{J}_{n,a,k}(s) &= \Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)\kappa(s)\\
a\bar{I}_{n,a,k}(s) -\frac{s}{k}\bar{J}_{n,a,k}(s) &= \Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)\kappa(s) + \frac{1}{k}\theta_{a,n}
\end{align}</span></p>
<p>Where
<span class="math-container">\begin{equation}
\kappa(s) = \mathscr{L}\left[t^{-\frac{1}{n}}\right] = \Gamma\left(1 - \frac{1}{n}\right)s^{1 - \frac{1}{n}}
\end{equation}</span></p>
<p>Solving for <span class="math-container">$\bar{J}_{n,a,k}(s)$</span> we find:</p>
<p><span class="math-container">\begin{align}
\bar{J}_{n,a,k}(s) &= \frac{1}{s^2 + a^2k^2}\left[ak^2 \Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)\kappa(s) -k\Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)s\kappa(s) - s\theta_{a,n}\right] \\
&=ak^2 \Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)\frac{1}{s^2 + a^2k^2}\kappa(s)-k\Psi_{k,n}\frac{s}{s^2 + a^2k^2}\kappa(s)\\
&\qquad- \theta_{a,n}\frac{s}{s^2 + a^2k^2}
\end{align}</span></p>
<p>Taking the Inverse Laplace Transform, we arrive at:</p>
<p><span class="math-container">\begin{align}
&J_{n,a,k}(t) = \mathscr{L}^{-1}\left[ \bar{J}_{n,a,k}(s) \right] = ak^2 \Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)\mathscr{L}^{-1}\left[\frac{1}{s^2 + a^2k^2}\kappa(s)\right]\\
&\qquad-ak\Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)\mathscr{L}^{-1}\left[\frac{s}{s^2 + a^2k^2}\kappa(s)\right]- \theta_{a,n}\mathscr{L}^{-1}\left[\frac{s}{s^2 + a^2k^2}\right] \\
&= ak^2 \Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)\int_{0}^{t} \frac{1}{ak}\sin\left(ak\left(t - \tau\right)\right) \tau^{-\frac{1}{n}}\:d
tau\\
&\qquad-ak\Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)\int_{0}^{t} \cos\left(ak\left(t - \tau\right)\right) \tau^{-\frac{1}{n}}\:d
tau -\theta_{a,n}\cos\left(akt \right) \\
&= k\Psi_{k,n}\cos\left(\frac{\pi}{2n} \right)\int_{0}^{t} \left[\sin\left(akt\right)\cos\left(ak\tau\right) - \sin\left(ak\tau\right)\cos\left(akt\right) \right]\tau^{-\frac{1}{n}}\:d\tau\\
&\qquad-k\Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)\int_{0}^{t} \left[\cos\left(akt\right)\cos\left(ak\tau\right) +\sin\left(ak\tau\right)\sin\left(akt\right) \right] \tau^{-\frac{1}{n}}\:d\tau \\
&\qquad-\theta_{a,n}\cos\left(akt \right) \\
&= k\Psi_{k,n}\cos\left(\frac{\pi}{2n} \right) \left[\sin\left(akt\right)\int_{0}^{t} \frac{\cos\left(ak\tau\right) }{\tau^{\frac{1}{n}}}\:d\tau - \cos\left(akt\right)\int_{0}^{t} \frac{\sin\left(ak\tau\right) }{\tau^{\frac{1}{n}}}\:d\tau \right] \\
&\qquad-k\Psi_{k,n}\sin\left(\frac{\pi}{2n} \right)\left[\cos\left(akt\right)\int_{0}^{t} \frac{\cos\left(ak\tau\right) }{\tau^{\frac{1}{n}}}\:d\tau+ \sin\left(akt\right)\int_{0}^{t} \frac{\sin\left(ak\tau\right) }{\tau^{\frac{1}{n}}}\:d\tau \right] \\
&\qquad-\theta_{a,n}\cos\left(akt \right) \\
&= k \Psi_{k,n}\left[\sin\left(akt + \frac{\pi}{2n}\right) \int_{0}^{t} \frac{\cos\left(ak\tau\right) }{\tau^{\frac{1}{n}}}\:d\tau-\cos\left(akt + \frac{\pi}{2n}\right) \int_{0}^{t} \frac{\sin\left(ak\tau\right) }{\tau^{\frac{1}{n}}}\:d\tau \right] \\
&\qquad-\theta_{a,n}\cos\left(akt \right) \\
&= k \Psi_{k,n}\left[\sin\left(akt + \frac{\pi}{2n}\right) k^{\frac{1}{n} - 1} a^{\frac{1}{n} - 1}\int_{0}^{akt} \frac{\cos\left(u\right) }{u^{\frac{1}{n}}}\:du-\cos\left(akt + \frac{\pi}{2n}\right)k^{\frac{1}{n} - 1} a^{\frac{1}{n} - 1} \int_{0}^{t} \frac{\sin\left(u\right) }{u^{\frac{1}{n}}}\:du \right] \\
&\qquad-\theta_{a,n}\cos\left(akt \right) \\
&= k k^{\frac{1}{n} - 1} a^{\frac{1}{n} - 1} \Psi_{k,n}\left[\sin\left(akt + \frac{\pi}{2n}\right) \int_{0}^{akt} \frac{\cos\left(u\right) }{u^{\frac{1}{n}}}\:du-\cos\left(akt + \frac{\pi}{2n}\right)\int_{0}^{akt} \frac{\sin\left(u\right) }{u^{\frac{1}{n}}}\:du \right] \\
&\qquad-\theta_{a,n}\cos\left(akt \right)
\end{align}</span></p>
<p>Hence,</p>
<p><span class="math-container">\begin{align}
J_{n,a,k}(t) &= \int_{0}^{\infty} \frac{\cos\left(tkx^n\right)}{x^n + a}\:dx \\
&=a^{\frac{1}{n} - 1}\frac{\Gamma\left(\frac{1}{n} \right)}{n} \left[\sin\left(akt + \frac{\pi}{2n}\right) \int_{0}^{akt} \frac{\cos\left(u\right) }{u^{\frac{1}{n}}}\:du-\cos\left(akt + \frac{\pi}{2n}\right)\int_{0}^{akt} \frac{\sin\left(u\right) }{u^{\frac{1}{n}}}\:du \right] -\theta_{a,n}\cos\left(akt \right)
\end{align}</span></p>
<p>And finally, </p>
<p><span class="math-container">\begin{align}
J_{n,a,k} &= J_{n,a,k}(1) = \int_{0}^{\infty} \frac{\cos\left(kx^n\right)}{x^n + a}\:dx \\
&=a^{\frac{1}{n} - 1}\frac{\Gamma\left(\frac{1}{n} \right)}{n} \left[\sin\left(ak + \frac{\pi}{2n}\right) \int_{0}^{akt} \frac{\cos\left(u\right) }{u^{\frac{1}{n}}}\:du-\cos\left(ak + \frac{\pi}{2n}\right)\int_{0}^{akt} \frac{\sin\left(u\right) }{u^{\frac{1}{n}}}\:d\tau \right] \\
&\qquad-\cos\left(ak \right) a^{\frac{1}{n} - 1} \frac{\Gamma\left(1 -\frac{1}{n}\right)\Gamma\left(\frac{1}{n} \right)}{n}
\end{align}</span></p>
| 0non-cybersec
| Stackexchange |
Suspension: if $X$ is $(n-1)$-connected CW, is $SX$ $n$-connected?. <p>If $X$ is $(n-1)$-connected CW complex, is that true that $SX$ is $n$-connected?</p>
<p>I'm trying to understand Freudenthal Suspension Theorem on Hatcher. We define the suspension map:</p>
<p>$\pi_i(X)\simeq \pi_{i+1}(C_+,X) \to \pi_{i+1}(SX,C_-X) \simeq \pi_{i+1}(SX)$ </p>
<p>($SX$ is the suspension of $X$, $C_-X$ is the lower cone)
where the middle map is given by the inclusion and the isomorphisms are given by the exact sequence of pairs.
Using the long exact sequence for the pair $(C_+,X)$ we also see that it is $n$-connected, given that $X$ is $(n-1)$-connected. Using the long exact sequence for the pair $(SX,C_-X)$ we only get $\pi_n(SX,C_-X) \simeq \pi_n(SX)$. Thus if $\pi_n(SX)=0$ given $\pi_{n-1}(X)=0$ we can finally apply the Excision Theorem and conclude.</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
I have what I think is a very old Modem in my possession for a long time, but I'm not sure what it is for.. | 0non-cybersec
| Reddit |
Can I use a Render Function inside a .vue File. <p>I am looking to dynamically set the html tags for components. For instance:</p>
<pre><code> components: {
test: {
props: ['tag', 'attributes'],
render(createElement) {
return createElement(this.tag || 'div', {attrs: this.attributes || {}}, this.$slots.default);
}
}
}
</code></pre>
<p>I can then use code like this in an html file:</p>
<pre><code><test tag="a" :attributes="{href:'http://www.google.com'}">a tag content</test>
<test tag="p">p tag content</test>
</code></pre>
<p>Now, what I want to do is split up my components using something like Vue Loader. Basically, I want to split up my different components into different files and then import them using a main.js file.</p>
<p>I tried something like this, but it doesn't work:</p>
<pre><code>// components/test.js
export default {
components: {
test: {
props: ['tag', 'attributes'],
render(createElement) {
return createElement(this.tag || 'div', {attrs: this.attributes || {}}, this.$slots.default);
}
}
}
}
// main.js
import Vue from 'vue' // don't think this is relevant, but it's there
import Test from './components/Test.js'
new Vue({
el: '#app',
components: {
Test
}
})
</code></pre>
<p>This does NOT work thought.</p>
<p>Any idea how to get it to work? </p>
<p>Thanks</p>
| 0non-cybersec
| Stackexchange |
Is $\sum_{n=1}^\infty\frac{(-1)^n}{n\log^2(n+1)}$ absolutely convergent?. <blockquote>
<p>Consider the series
$$\sum_{n=1}^\infty\frac{(-1)^n}{n\log^2(n+1)}.$$
Determine whether it converges <strong>absolutely</strong> or <strong>conditionally</strong>.</p>
</blockquote>
<p><strong>My attempt</strong></p>
<p>S=$\sum_{n=1}^{\infty}( -1)^n$ a<sub>n</sub> </p>
<p>a<sub>n</sub> is monotonically decreasing and it approaches zero when n approaches infinity. So series is convergent . </p>
<p><strong>Doubt</strong></p>
<p>How to check for absolute convergence? Ratio test fails here. </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 |
Check if two vertices of a graph are connected with an MILP constraint. <p>I have a mixed-integer linear program (MILP) that needs to select some edges from a graph according to some metrics.</p>
<p>One constraint that I'd like to enforce is that two given nodes have to be connected (i.e. there must exist a path between them).</p>
<p>looking at the adjacency matrix I know that one can find the shortest path or even all the possible path using some algorithms like breadth first search and even Dijkstra.</p>
<p>My question is: given that I do not want to know the path, can I formulate this ''path existence/connectivity problem'' as a constraint for a MILP problem?</p>
<p>The best idea I had was to compute all the paths connecting the two vertices offline and force the selection of at least one of those. Which would work, but it's something really inelegant.</p>
| 0non-cybersec
| Stackexchange |
Add dressing to your salad - Study shows eating salad with added fat in the form of soybean oil promotes the absorption of eight different micronutrients that promote human health. Conversely, eating the same salad without the added oil lessens the likelihood that the body will absorb the nutrients.. | 0non-cybersec
| Reddit |
Mikrotik per-connection-classifier alternative in Linux iptables. <p>I'm looking for equivalent functionality in Linux as Mikrotik <code>per-connection-classifier</code>. My case is to use for dynamic CGNAT with preserving public IP for each user (not random public IP for each connection).</p>
<p>Thanks,
Blažej</p>
| 0non-cybersec
| Stackexchange |
Stripe with React JS. <p>I need to create token with Stripe.js in React JS, but I can't find any easy way. In node.js I would do something like this:</p>
<pre><code> stripeClient.tokens.create({
card: {
number: '4242424242424242',
exp_month: 12,
exp_year: 2050,
cvc: '123'
}
</code></pre>
<p>But the Stripe npm module doesn't work for me in React JS. I'm getting error:</p>
<blockquote>
<p>Cannot resolve module 'child_process'</p>
</blockquote>
<p>So since this is node pibrary obviously, I would like to use</p>
<pre><code><script type="text/javascript" src="https://js.stripe.com/v2/"></script>
</code></pre>
<p>But I'm not sure what should be the best practice to implement external libraries in React</p>
| 0non-cybersec
| Stackexchange |
I think everyone should watch The Lion King high. [video]. | 0non-cybersec
| Reddit |
Creating a link for all files in a directory to home. <p>I am trying to write a small zsh (bash compatible) script to take each file in ~/.oh-my-zsh/links directory and creates a hard link for it in ~. I am not sure how to do this. Would this be correct?</p>
<pre><code>pushd .;
cd ~/.oh-my-zsh/links;
ln * ~/*;
popd;
</code></pre>
<p>Thanks.</p>
| 0non-cybersec
| Stackexchange |
Mermaids . | 0non-cybersec
| Reddit |
Unable to forward port on VTR router. <p>Get the following message wanting to forward the port 80 of my router to a computer of my LAN <code>The local ports between 80 and 80 on IP 192.168.0.xx have been added as virtual server already, please try another one</code>. </p>
<p>Not having already this port open</p>
| 0non-cybersec
| Stackexchange |
The laziness alone gets me.. | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.