text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Pacman Air Hockey.
0non-cybersec
Reddit
Disable &quot;System Memory Testing&quot; via OMSA 6.4.0. <p>Is it possible to disable system memory testing via OMSA 6.4.0? I can only find ways to do it using newer versions of OMSA; and I can't even see the setting in 6.4.0. I have quite a few machines that I want to disable this (BIOS) setting on, but I don't want to have to install the new OMSA and reboot. My intentions are to disable the setting so that when the systems are rebooted in the future, they don't need to go through the system memory testing. If it is possible to disable this another way, without OMSA or manually changing the BIOS settings, I would be open to that as well.</p>
0non-cybersec
Stackexchange
Why does MacOS incorrectly detect my second 4K external monitor as full HD. <p>I have two identical external monitors, which are Lenovo ThinkVision 27 inch 4K monitors.</p> <p>I have them both connected via USB-C to my 2018 MacBook Pro 15 inch, with Radeon Pro 560X 4 GB.</p> <p>However in display settings, one is shown as:</p> <p><code>LEN P27u-10 Display 27-inch (3840 x 2160)</code></p> <p>And the other one is:</p> <p><code>LEN P27u-10 Display 30,5-inch (1920 x 1080)</code>.</p> <p>Why does it detect wrong display size (30.5 inch) and wrong resolution?</p>
0non-cybersec
Stackexchange
Was the 2017 NHS attack targeted?. <p>The news has been alive with the HNS ransomware story this weekend (13th May 2017) and the coverage has been loose guesswork at best generally. </p> <p>So what I'm trying to figure out is: Was this actually a targeted attack?, or simply a matter of someone opening a random spam mail (for example) and the infection spreading internally from there?</p> <p>You'd think the NHS would know a thing or 2 about "infection control"..........!</p>
1cybersec
Stackexchange
Why CreateNoWindow?. <p>.NET's Process class has a property <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.createnowindow.aspx" rel="nofollow"><code>CreateNoWindow</code></a>. </p> <blockquote> <h3>ProcessStartInfo.CreateNoWindow Property</h3> <p>Gets or sets a value indicating whether to start the process in a new window.</p> </blockquote> <p>To me, that seems a queer choice of name for the property. The default is <code>CreateNoWindow = false</code>, a momentarily-confusing double negative.</p> <p>Is there a reason the property is named as it is? Why not <code>CreateWindow</code> (with the opposite meaning)? Is there a rule that boolean properties must default to false?</p>
0non-cybersec
Stackexchange
Can you crack this little Linux executable I made?. [Link to MEGA](https://mega.co.nz/#!I55jAJCC!UEiTl2hvdKAlo9ZFkMP8TTacaC5ZfaM1hEXubN4mbBg) Sorry if it's too simple EDIT: I've made a specific sub for this kind of challenges: /r/CrackingChallenge
1cybersec
Reddit
this is a Friend of a Friend of mine, thought everyone here would enjoy this..
0non-cybersec
Reddit
Example of inclusion which is not a finite morphism. <p>Every closed immersion is a finite morphism. Can you give an example of quasi-projective varieties $X\subset Y$ such that inclusion $X\hookrightarrow Y$ is not finite? Same with Y projective?</p> <p>Thanks!</p> <p><strong>Edit:</strong> Sorry this question is very simple, I made a mistake asking the question. For a corrected version, check out <a href="https://mathoverflow.net/questions/17678/example-of-restriction-of-a-finite-morphism-which-is-not-finite">this one.</a></p>
0non-cybersec
Stackexchange
Oh! I can buy a soda with my credit card...wait what?.
0non-cybersec
Reddit
Database design for tags or tagging. <p>How are tags of an item stored in a database hassle-free?</p> <p>Each item has multiple tags with it. I have read a few answers on an efficient way to do so : </p> <ol> <li><a href="https://stackoverflow.com/questions/334183/what-is-the-most-efficient-way-to-store-tags-in-a-database">What is the most efficient way to store tags in a database?</a></li> <li><a href="https://stackoverflow.com/questions/20856/recommended-sql-database-design-for-tags-or-tagging/20871#20871">Recommended SQL database design for tags or tagging</a> </li> </ol> <p>But I think there is a better solution to this. Why can't we simply include tags as a long string for each item?</p> <pre><code> Table : Brand_Shops Columns : brand_id, brand_name, content, tags </code></pre> <p>Example :</p> <pre><code>1 || Nike || shoes bags sports football soccer t-shirts track-pants 2 || GAP || wallets t-shirts jeans shoes perfumes </code></pre> <p>This does not have <em>atomicity</em> but completely suits the purpose of tagging. If a new brand has to be added, new tags can simply be added along with it. Because of this it will be very easy to fetch it as well. I don't understand why this is not an efficient solution.</p>
0non-cybersec
Stackexchange
PHI, NoSQL, and searching. <p>I am working with a system that is using NoSQL (Azure Table Storage) primarily to house its data. Unfortunately, the work also involves billing and medical records - meaning the data itself will need to be protected. That's fine, we can provide user access to the system, and encrypt that data over the wire and at rest in the NoSQL.</p> <p>The problem comes because we want that data to also be <em>searchable</em>. Unecrypted, that's not a problem so much - we make the searchable fields row keys and can do range queries. Encrypted, that won't work. Worse it seems as though any sort of trie or similar structure would need to be stored unencrypted, defeating the purpose. Storing partial strings encrypted would make it easy to break the encryption since we would be leaking information about the cleartext.</p> <p>So far, the only semi-viable solutions I've run across are 1) stop using NoSQL or 2) read the entire set into memory and do the search there.</p> <p>Neither are particularly thrilling. Is there any other good approach for this confluence of requirements?</p>
0non-cybersec
Stackexchange
Explorer hangs after installing Internet Explorer. <p>After installing Internet Explorer, my Windows and Explorer hangs, my system crashed and only Task Manager is available. </p>
0non-cybersec
Stackexchange
Combination generator - sets of size k from n. <p>unique numbers $1 - n$<br> combinations (sets) of size $k$<br> $k &lt; n$ </p> <p>do not re-use an $n$ in a set [1, 1, 1] is not valid </p> <p>How to generate all <em>unique</em> sets of size $k$?<br> [1,2,3] = [3,2,1] order does not matter </p> <p>the number of sets will be ${\binom{n}{k}}$</p> <p>input<br> $n = 4, k = 2$<br> output<br> [1, 2]<br> [1, 3]<br> [1, 4]<br> [2, 3]<br> [2, 4]<br> [3, 4] </p> <p>I have found that is often called n chose k </p> <p>hard coded it looks like </p> <pre><code>for (i = i; i &lt;= n - 1; i++) for (j = i + 1; j &lt;= n - 1; j++) </code></pre> <p>I tried coding the first solution from Yuval Filmus but it does not work for me<br> It returns [1,2], [1,2]<br> Had to adjust for 0 based arrays </p> <pre><code>public static void Combinations(int n, int k) { bool[] A = new bool[n]; int[] B = Enumerable.Range(1, k).ToArray(); Generate(1, A, B, k, n); } public static void Generate(int l, bool[] A, int[] B, int k, int n) { Debug.WriteLine(string.Join(", ", B)); if (l == k + 1) { Debug.WriteLine("l == k + 1"); return; } for (int i = 0; i &lt; n; i++) { if (!A[i]) { A[i] = true; B[l - 1] = i + 1; Generate(l + 1, A, B, k, n); A[i] = false; } } } </code></pre>
0non-cybersec
Stackexchange
Making a column immutable in MySQL. <p>I want to make a column in a relation unmodifyable for consistency reasons. </p> <p>The backstory is that I have a n:n relationship where the "connecting" relation has additional values. I don't want that anyone is able to change the IDs of the relationship partners. </p> <p>What I have come up with so far:</p> <p>Creating a trigger that checks if the NEW value is the same as the OLD value. But I don't know how to deny the UPDATE action if the condition proves as TRUE. </p> <p>Here is my trigger so far:</p> <pre><code>CREATE TRIGGER deny_nton_change BEFORE UPDATE ON Schueler_in_Klasse FOR EACH ROW BEGIN IF NEW.Schueler_ID != OLD.Schueler_ID OR NEW.Klasse_ID != OLD.Klasse_ID THEN END IF; END; </code></pre>
0non-cybersec
Stackexchange
.kts script in a Gradle project. <p>I have a Kotlin Gradle project. </p> <p>If I create a <code>.kts</code> file it runs in InteliJ alright <em>except</em> when it is in the <code>/src/main/kotlin</code> folder. </p> <p>IDEA highlights the whole file in red. Gradle throws out compilation exception. The exception is </p> <pre><code>...src/main/kotlin/test.kts: (3, 1): Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath for missing or conflicting dependencies`. </code></pre> <p>What is the problem?</p> <p>My <code>build.gradle</code>:</p> <pre><code>plugins { id 'org.jetbrains.kotlin.jvm' version '1.3.0-rc-131' } group 'kotlin.tutorials.coroutines' version '1.0-SNAPSHOT' repositories { maven { url 'http://dl.bintray.com/kotlin/kotlin-eap' } mavenCentral() jcenter() maven { url "https://dl.bintray.com/kotlin/ktor" } } ext.ktor_version = '1.0.0-alpha-1' ext.coroutines_version = '0.30.2-eap13' dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8" compile "io.ktor:ktor-server-netty:$ktor_version" compile "ch.qos.logback:logback-classic:1.2.3" //KTOR features compile "io.ktor:ktor-jackson:$ktor_version" compile "io.ktor:ktor-auth:$ktor_version" compile "io.ktor:ktor-auth-jwt:$ktor_version" compile "io.ktor:ktor-freemarker:$ktor_version" compile "io.ktor:ktor-html-builder:$ktor_version" } compileKotlin.kotlinOptions.jvmTarget = "1.8" compileTestKotlin.kotlinOptions.jvmTarget = "1.8" </code></pre>
0non-cybersec
Stackexchange
S3 download pdf - REST API. <p>I am trying to serve one of my PDF stored on S3 using Spring Boot Rest API.</p> <p>Following is my code :</p> <pre><code> byte[] targetArray = null; InputStream is = null; S3Object object = s3Client .getObject(new GetObjectRequest("S3_BUCKET_NAME", "prefixUrl")); InputStream objectData = object.getObjectContent(); BufferedReader reader = new BufferedReader(new InputStreamReader(objectData)); char[] charArray = new char[8 * 1024]; StringBuilder builder = new StringBuilder(); int numCharsRead; while ((numCharsRead = reader.read(charArray, 0, charArray.length)) != -1) { builder.append(charArray, 0, numCharsRead); } reader.close(); objectData.close(); object.close(); targetArray = builder.toString().getBytes(); is = new ByteArrayInputStream(targetArray); return ResponseEntity.ok().contentLength(targetArray.length).contentType(MediaType.APPLICATION_PDF) .cacheControl(CacheControl.noCache()).header("Content-Disposition", "attachment; filename=" + "testing.pdf") .body(new InputStreamResource(is)); </code></pre> <p>When I hit my API using postman, I am able to download PDF file but the problem is it is totally blank. What might be the issue ?</p> <p>S3 streams the data and does not keep buffer and the data is in binary ( PDF ) so how to server such data to using Rest API.</p> <p>How to solve this ?</p>
0non-cybersec
Stackexchange
I'm going to plant my first garden this year. A question: when/how to start?. I'm located in Austin, Tx. I'm planting a small, 4 foot long plot that was previously a garden that hasn't been cared for in a year or so. I want to plan vegetables and sunflowers. I also plan on starting a potter herb garden. When should I start planting the outdoor garden? What do I need to do to get started? I'm finding conflicting info online. Thanks!
0non-cybersec
Reddit
What HTTP status code should I return for POST when no resource is created?. <p>I am posting an image to my server (usign Java and Spring).</p> <p>A couple of things can happen:</p> <ul> <li>If everything goes well, then I return <code>200</code> and the image id.</li> <li>The image can't be saved to the file system (<code>SaveFileException</code>). </li> <li>The database can't update the new image record with the new URL (<code>DatabaseException</code>).</li> <li>Or throw an <code>IOException</code>. </li> </ul> <p>In short, I can not save/create the image.</p> <p>What HTTP code should I return? </p> <p>Should I return more than one code and more than one message according to the <code>Exception</code>?</p>
0non-cybersec
Stackexchange
Can you suggest a guide for setting up linux VPS for web application. <p>I'm wondering if you might be able to recommend an online guide, or alternately a book, that can help walk me through the steps of setting up a Linux VPS from scratch without a cPanel. </p> <p>In particular I need to install and configure Apache, PHP, MySQL, FTP and some form of sendmail so that the web app can send email notifications.</p> <p>Any flavour of Linux is acceptable, although my preference would be Debian or CentOs.</p>
0non-cybersec
Stackexchange
Split a pipe-delimited series, groupby a separate series, and return the counts of each split value in new columns. <p>Given a dataframe with a pipe-delimited series:</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({'year': [1960, 1960, 1961, 1961, 1961], 'genre': ['Drama|Romance|Thriller', 'Spy|Mystery|Bio', 'Drama|Romance', 'Drama|Romance', 'Drama|Spy']}) </code></pre> <p>Or in data format:</p> <pre><code> year genre 0 1960 Drama|Romance|Thriller 1 1960 Spy|Mystery|Bio 2 1961 Drama|Romance 3 1961 Drama|Romance 4 1961 Drama|Spy </code></pre> <p>I can split the <code>genre</code> series with <code>str.split</code> (as demonstrated in many similar questions on SO).</p> <p>But I would also like to group by the year and return the count of <code>Drama</code>, <code>Romance</code>, <code>Thriller</code>, and so on for each unique year in new columns.</p> <p>My initial attempt:</p> <pre><code>df_split = df.groupby('year')['genre'].apply(lambda x: x.str.split('|', expand=True).reset_index(drop=True)) </code></pre> <p>which returns</p> <pre><code> 0 1 2 year 1960 0 Drama Romance Thriller 1 Spy Mystery Bio 1961 0 Drama Romance NaN 1 Drama Romance NaN 2 Drama Spy NaN </code></pre> <p>but then how to get the count of each unique genre in its own column, by year?</p> <p>I can get the unique genres using</p> <pre><code>genres = pd.unique(df['genre'].str.split('|', expand=True).stack()) </code></pre> <p>but am still unsure of how to get the genres as separate series, with their counts by year.</p> <p>The final output I'd like is:</p> <pre><code> Drama Romance Thriller Spy Mystery Bio 1960 1 1 1 1 1 1 1961 3 2 0 1 0 0 </code></pre> <p>where each unique genre is its own series, with its corresponding count by year.</p> <p>This may also very well also be an X-Y problem. My end goal is to produce a percentage stacked-area chart. Assuming <code>df_split</code> has the required transformation, I'd like to do:</p> <pre><code>df_perc = df_split.divide(df_split.sum(axis=1), axis=0) </code></pre> <p>which returns</p> <pre><code> Drama Romance Thriller Spy Mystery Bio 1960 0.166667 0.166667 0.166667 0.166667 0.166667 0.166667 1961 0.500000 0.333333 0.000000 0.166667 0.000000 0.000000 </code></pre> <p>and then</p> <pre><code>plt.stackplot(df_perc.index, *[ts for col, ts in df_perc.iteritems()], labels=df_perc.columns) plt.gca().set_xticks(df_perc.index) plt.margins(0) plt.legend() </code></pre> <p>giving the output:</p> <p><a href="https://i.stack.imgur.com/15bO4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/15bO4.png" alt="enter image description here" /></a></p>
0non-cybersec
Stackexchange
[Idea] An egg distance tracker next to trainer portrait similar to the buddy distance tracker..
0non-cybersec
Reddit
MSTest: how to increase test time. <p>I have one test that needs to work more then 1 minute (VS2008, MSTest, tests are launched from the VisualStudio):</p> <pre><code> const int TestTimeout = 1; [TestMethod] [Timeout(10*60*1000)] // 10 minutes public void Login_ExpirationFail_Test() { IAuthenticationParameters parameters = new AuthenticationParameters(...); LdapAuthentication auth1 = new LdapAuthentication(); IAuthenticationLoginResult res = auth1.Login(parameters); Assert.IsNotNull(res); Assert.IsFalse(string.IsNullOrEmpty(res.SessionId)); const int AdditionalMilisecodns = 400; System.Threading.Thread.Sleep((TestTimeout * 1000 + AdditionalMilisecodns) * 60); LdapAuthentication auth2 = new LdapAuthentication(); auth2.CheckTicket(res.SessionId); } </code></pre> <p>This test is finished in "Run" mode with "Test 'Login_ExpirationFail_Test' exceeded execution timeout period." error message, in "Debug" - it works fine.</p> <p>I saw few similar problems linked to launching tests from the command line.</p> <p>How could I get my test workable in "Run" mode?</p> <p>Thanks.</p>
0non-cybersec
Stackexchange
He’s old but still loves cuddles..
0non-cybersec
Reddit
Is the half-filled magic square problem NP-complete?. <p>Here is the problem:</p> <p>We have a square with some numbers from 1..N in some cells. It's needed to determine if it can be completed to a magic square.</p> <p>Examples:</p> <pre><code>2 _ 6 2 7 6 _ 5 1 &gt;&gt;&gt; 9 5 1 4 3 _ 4 3 8 7 _ _ 9 _ _ &gt;&gt;&gt; NO SOLUTION 8 _ _ </code></pre> <p>Is this problem NP-complete? If yes, how can I prove it?</p> <p><em><a href="https://math.stackexchange.com/q/15042/4003">Crosspost on MS</a></em></p>
0non-cybersec
Stackexchange
Amazon fined 1M€ per day that it continues to ship unessential products ruled a french court yesterday.
0non-cybersec
Reddit
Raid Etiquette Question. For quite a while now, I've used Gatekeepers in Vault of Glass as my glimmer farm, mostly because it's much faster than exclusion zone. The problem with this is that it requires Gatekeeper checkpoint weekly, as I'm usually not around exactly at reset to carry it over for the new week. So, every week I either find people on LFG doing a fresh run or looking for people at the checkpoint, and every week, I ask to get the checkpoint on one character and switch to another guy. Every time, one of three things happens. 1. Whoever is in there says sure go ahead. 2. Someone asks why and I tell them it's a really effective glimmer farm (almost 1k a minute once you get the hang of it, plus beads, which from my experience, blows Exclusion Zone out of the water). 3. Other people pick up what I'm laying down and do the same thing. One time everyone did it at the same time. That was kinda awkward. Those were the three outcomes until tonight. The people in the raid were new, judging by their grimoire scores, the fact that more than one asked how to cleanse, and more than one answered incorrectly. I asked when I got in if it would be okay if I got the checkpoint on this character and switched. I was told I had the checkpoint since I joined, after which I informed them that you actually need to get to that checkpoint from an earlier one, or you need to wipe to get a checkpoint on a character that just joined, then I was flat out told no and given the analogy that if I was invited to an ice cream party at which I asked for sorbet, I wouldn't get it and this was a similar situation. Since they then wiped, I got it anyway but I felt kind of scummy about it, since my inner sherpa wanted to help them and soloing a side is trivial thanks to Celestial Nighthawk, but my inner capitalist said do it (read: leave) for the glim-glam. TL;DR- That extremely long-winded lead-in was an intro for this: Have I been being a dick unintentionally all this time? First it was Hard Oracles/Templar for chances at Fatebringer because fuck Confluxes at level 29/30, Then Hard Atheon for the Vex, Then Normal Crota for Black Hammer, and finally Hard Ir Yut for 4 rolls at an exotic in short order and potentially a Crux. I mean if I have been, I'm sorry to everyone I've done it to, but checkpoints were almost tailor-made for passing around and I've been on the receiving end of my shenanigans as many times as I've pulled them on others without any problems. P.S. I also feel like I should point out that I am by no means the kind of person that only does raids and whatnot from certain checkpoints, but after I've done them to the point that I have everything but the one thing I want the most, I really don't want to go through the entire thing for a chance at something that only drops from one section.
0non-cybersec
Reddit
Next! girl has a Tinder account.
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
SSD versus RAM (system cache). <p>If I have 16gb of RAM and I never shutdown pc do I still need SSD (perfomance vise)? My concern is will SSD help (significantly) with perfomance if I already have ~8GB cached RAM for OS and apps.</p>
0non-cybersec
Stackexchange
I need a really long keyboard. Hey guy/gals, So I recently purchased a gaming chair and the keyboard tray that came with it is rather unstable due to the fact it has to be raised up high enough to clear some joysticks. My question is, are there any extremely long, adjustable height keyboard trays that pull out a couple of feet? Or if there isn't what other solutions are out there (tray within a tray)? Thanks!
0non-cybersec
Reddit
How to wipe all CloudStation data and start from scratch. <p>I believe my CloudStation somehow got corrupted. At least it never seized updating, and I can't tell if it was the client applying changes to the server, or the server applying changes to the client (see <a href="https://superuser.com/questions/832172/synology-cloudstation-log">this post</a>). </p> <p>Now how do I get back to a situation where everything just works?</p> <p>This is my idea:</p> <ol> <li>Uninstall CloudStation on clients</li> <li>On the server, make a manual copy of the Cloudstation folder, for the specific user</li> <li>Delete all content of this folder</li> <li>On the DSM, go to Cloudstation -> Settings -> Log Delete Rules -> Delete all logs</li> <li>Copy the backup back into the user's Cloudstation folder</li> <li>Reinstall CloudStation on clients</li> </ol> <p>Will that work? Is there a better way?</p>
0non-cybersec
Stackexchange
This is an actual PokΓ©stop in my city.
0non-cybersec
Reddit
Homemade flavored water.... I recently dipped my toe into keto, so naturally, this means no more soda. Now, I love water, I believe I drink enough of it, but sometimes I need more. I've heard that Mio and other ways of flavoring water was fine, but that, say, dropping an orange or some pineapple slices, some lemon, and some mint into a pitcher of water was bad. Is this true, and if so, why? It seems to be it would be but a tiny amount of carbs. Any help would be much appreciated.
0non-cybersec
Reddit
After the ref gives a penalty the "fouled" player (Aaron Hunt) admits that he stubled and the ref takes the penalty back..
0non-cybersec
Reddit
Storyboard uiviewcontroller, &#39;custom class&#39; not showing in drop down. <p>I have a UIViewController I created in my apps storyboard, as well as a custom UIViewController subclass which I added to the project (and is correctly in the compile phase for my target). However when I go to set the 'Custom Class' property on the view-controller in Storyboard my custom class does not show up on the list.</p> <ul> <li>Checked that the class is part of my app's target, not tests'</li> <li>Double checked that it is correctly a subclass of UIViewController</li> <li>Compiled program just to make sure xcode was working with latest information</li> <li>Restarted xcode</li> </ul> <p>What would cause my class to not show up in the 'Custom Class' drop down?</p>
0non-cybersec
Stackexchange
Hajime Tabata would love to see Final Fantasy XV on the PC, would experiment with mods and custom quests.
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
Distributing points on a sphere. <p>The following question comes from a statement in Joshua Greene's proof of the Kneser conjecture.</p> <p>He states that, given $n$ and $k$ positive integers, we can find $2n+k$ points on $S^{k+1}$ such that no $k+2$ points of these points lie on a great $k$-sphere.</p> <p>Why is this true?</p>
0non-cybersec
Stackexchange
Graphing - Absolute Value and Circle. <p>The diagram Shows The Graphs of $y = |x + 2|$ and $y = \sqrt{4 - x^2}$</p> <p><img src="https://i.imgur.com/WMW9VpP.jpg" alt="Diagram"></p> <p>Write down the solution for $\sqrt{4 - x^2}$ is equal to or less than $y = |x + 2|$.</p>
0non-cybersec
Stackexchange
Missing girl taken in car theft found.
0non-cybersec
Reddit
Gears of War Golden Chicken.
0non-cybersec
Reddit
Disappointing moments on Reddit.
0non-cybersec
Reddit
[WP] Every person sees a number above each other’s heads - a compatibility rating, from 1-100. It is custom to marry an individual in the 80+ range to ensure a happy marriage. A few years into your 92% compatibility marriage, however, you suddenly meet a stranger. Above their head is the number 100..
0non-cybersec
Reddit
tstrsplit to different columns in one round. <p>I have a table like the following:</p> <pre><code>myDT &lt;- fread( "id,other,strformat,content 1, other1, A:B, a1:b1 2, other2, A:C, a2:c2 3, other3, B:A:C, b3:a3:c3 4, other4, A:B, a4:b4 5, other5, XX:whatever, xx5:whatever5 ") </code></pre> <p>And I want to split the <code>content</code> column based on <code>strformat</code>, to get this:</p> <pre><code> id other strformat content A B C XX whatever 1: 1 other1 A:B a1:b1 a1 b1 &lt;NA&gt; &lt;NA&gt; &lt;NA&gt; 2: 2 other2 A:C a2:c2 a2 &lt;NA&gt; c2 &lt;NA&gt; &lt;NA&gt; 3: 3 other3 B:A:C b3:a3:c3 a3 b3 c3 &lt;NA&gt; &lt;NA&gt; 4: 4 other4 A:B a4:b4 a4 b4 &lt;NA&gt; &lt;NA&gt; &lt;NA&gt; 5: 5 other5 XX:whatever xx5:whatever5 &lt;NA&gt; &lt;NA&gt; &lt;NA&gt; xx5 whatever5 </code></pre> <p>I failed with <code>tstrsplit()</code> on <code>by=</code>:</p> <pre><code>myDT[, unlist(strsplit(strformat,':')):=tstrsplit(content,':'), by=strformat] # Error in strsplit(strformat, ":") : object 'strformat' not found </code></pre> <p>So for now I resorted to using a cycle:</p> <pre><code>for (this.format in unique(myDT$strformat)){ myDT[strformat==this.format, unlist(strsplit(this.format,':')):=tstrsplit(content,':')] } </code></pre> <p>It does the job, but I'm still wondering what would be the right way with <code>by=</code></p>
0non-cybersec
Stackexchange
My foster cat Nebula with her new family!.
0non-cybersec
Reddit
A curated awesome list of lists of interview questions..
0non-cybersec
Reddit
My Chemical Romance - The Ghost Of You [Rock/Pop-Punk].
0non-cybersec
Reddit
a question on TITS&#39; note &quot;Reductive groups over local fields&quot;. <p>This note appears in "Proceedings of Symposia in pure mathematics" vol.33 1979 part 1 pp. 26-69. The question will be about materials on page 31-32. </p> <p>Let $G$ be a reductive algebraic group (not necessarily connected) defined over a local field $K$. We fix a maximal $K$-split torus $S$ of $G$ and take N(resp. Z) to be normalizer (resp. the centralizer) of $S$ in $G$. Let $X_*=Hom_K (Mult, S)$ (Resp. $X^*=Hom_K (S, Mult)$) be the group of cocharacters (resp. characters) of $S$. Let $V=X_*\otimes_{\mathbb Z}\mathbb R$. We fix a discrete valuation $\omega: K\to (-\infty, \infty]$. Let $\nu: Z(K)\to V$ be the homomorphism defined by $$ \chi (\nu (z))=-\omega (\chi (z)) \quad \mbox{for}\ z\in Z(K) \mbox{ and } \chi \in X^*(\mathbb Z). $$ Let $Z_c$ be the kernel of $\nu$. Then we have a short exact sequence of gorups $$ 0\to Z(K)/Z_c\to N(K)/Z_c\to N(K)/Z(K)\to 0 $$ where $N(K)/Z(K)$ is a finite group.</p> <p>Then it is claimed that the map $\nu$ induces a group homomorphism $\phi$ from $N$ to the group of affine transformations of $V$ such that for $z\in Z(K)$ and $x\in V$ one has $\phi(z)x=x+\nu (z) $. </p> <p>I do not understand in which way this function $\phi$ is defined. </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
Henceforth.
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
boolean value in Angular2 viewmodel does not update *ngIf template. <p>I have a weird behavior I need some help with. This is an angular2 and typescript app.</p> <p>I have a template that contains the following html which uses <strong>ngIf</strong>:</p> <pre><code>&lt;div *ngIf="loading" class="row"&gt; &lt;div class="small-3 small-centered columns" &gt; &lt;img src="/Images/loading_spinner.gif" /&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I have a button that triggers a function to change the value of loading</p> <pre><code>export class ShiftEditComponent implements OnInit { loading: boolean = false; setLoading(value: boolean): void { if (this.loading !== value) { this.loading = !this.loading; } } } </code></pre> <p>Here is the weird thing. If i specify the value of the value parameter from somewhere else in the class, the template does not update. <strong>BUT</strong> if I strip out the logic and just assign loading to its opposite, then it works and the template updates and the ngIf shows and does not show accordingly.</p> <p>THIS WORKS:</p> <pre><code> setLoading(): void { this.loading = !this.loading; } </code></pre> <p>QUESTION: Why does this work and ngIf updates when i just assign the opposite value, but if I try to specify the value through a parameter the ngIf template does not update(show or hide)</p>
0non-cybersec
Stackexchange
Detecting/Recognizing Irrational Number by Computers. <p>I would like to know if there is a way to determine/recognize a irrational number by computers. Let me explain it a little more. I know that, in computer science, a computable number "a" is a number that can be approximated by two rational number, i.e. (k-1)/n&lt;=a&lt;=(k+1)/n where k&amp;n are in N. Also, due to the limitation of floating point, all numbers in computers have limited number of significant figures. So, I was wondering if there is a way (more like an algorithm) to define irrational number for computers and consequently detect irrational number? Off course, I'm talking about an approximation with some adjustable level of accuracy. Thanks</p>
0non-cybersec
Stackexchange
'Oregon Trail' officially inducted into the Video Game Hall of Fame.
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
set_autocommit got an unexpected keyword argument &#39;force_begin_transaction_with_broken_autocommit&#39;. <p>I've just upgraded to Django 1.9, and I'm getting this error, which seems to exist entirely inside the django stack, when I run tests. </p> <pre><code>File "~/.virtualenvs/env/lib/python2.7/site-packages/django/test/runner.py", line 482, in setup_databases self.parallel, **kwargs File "~/.virtualenvs/env/lib/python2.7/site-packages/django/test/runner.py", line 726, in setup_databases serialize=connection.settings_dict.get("TEST", {}).get("SERIALIZE", True), File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/backends/base/creation.py", line 70, in create_test_db run_syncdb=True, File "~/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 119, in call_command return command.execute(*args, **defaults) File "~/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute output = self.handle(*args, **options File "~/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 89, in handle executor = MigrationExecutor(connection, self.migration_progress_callback) File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/migrations/executor.py", line 20, in __init__ self.loader = MigrationLoader(self.connection) File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 49, in __init__ self.build_graph() File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 176, in build_graph self.applied_migrations = recorder.applied_migrations() File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations self.ensure_schema() File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 56, in ensure_schema with self.connection.schema_editor() as editor: File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 84, in __enter__ self.atomic.__enter__() File "~/.virtualenvs/env/lib/python2.7/site-packages/django/db/transaction.py", line 184, in __enter__ connection.set_autocommit(False, force_begin_transaction_with_broken_autocommit=True) TypeError: set_autocommit() got an unexpected keyword argument 'force_begin_transaction_with_broken_autocommit' </code></pre>
0non-cybersec
Stackexchange
Cats Vandalising Since Forever.
0non-cybersec
Reddit
A sleepy cat and cherry blossom.
0non-cybersec
Reddit
I sold a tablet on online and they returned it because the "flash doesn't work".
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 solve the dual problem of SVM. <p>By solving the primal form of SVM (support vector machine), we can get the dual form of this problem. The more details are shown in wiki of SVM. <img src="https://i.stack.imgur.com/mDQfb.png" alt="enter image description here"></p> <p>Given this dual problem, how can I solve the maximization problem ? Thanks !</p>
0non-cybersec
Stackexchange
Impulse train: why an indeterminate result?. <p>I have an impulse train given by</p> <p>$$\frac{1}{R+1}+\frac{\sum_{k=1}^R \cos(\frac{2k \pi x}{R+1})}{R+1}$$</p> <p>It seems obvious to me that, for $x=0$, the function returns $1$. This is because $\cos (0)=1$, and we therefore end up with $\frac{1}{R+1}+\frac{R}{R+1}=\frac{R+1}{R+1}=1$.</p> <p>However, my math software (Mathematica) gives an indeterminate result at $x=0$. Usually this means there is a division by $0$ somewhere. But I can't see any reason for this function to produce an indeterminate result. (This is about the <em>maths</em> of the situation, not the way the software works.)</p> <p>Can anyone explain?</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
whatcha eatin?.
0non-cybersec
Reddit
My sister dropped this on me this morning.. Me: I washed my hands, promise. (As I hand her a bagel with my bare fingers) Sister: That's ok... bagels can't be choosers. Totally straightfaced that one and walked away.
0non-cybersec
Reddit
Interview with Christian List on his new book, 'Why Free Will is Real'.
0non-cybersec
Reddit
Massage Therapists, Remedial Massage Therapy, Pregnancy Massage- Melbourne.
0non-cybersec
Reddit
AVPlayer, notification for play/pause state?. <p>I'm searching for a way to get notified the exact moment when <code>AVPlayer</code> starts playing. There's the "rate" property, but currently I am checking it periodically with an <code>NSTimer</code> to get updates.</p> <p>I tried KVO, but apparently it's not KVO compliant.</p> <p>I know that there are <a href="https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html" rel="noreferrer">events</a> when the player <a href="https://stackoverflow.com/questions/5655864/check-play-state-of-avplayer">ENDED</a>. But i'm talking about pause here.</p> <p>I also KVO subscribed to <code>AVPlayerItem's</code> "status", but it's showing me when the HTTP asset has finished caching, no play/pause. I also started collecting all calls of play/pause, requesting an instant UI update afterwards, but it takes some more runloops before <code>AVPlayer</code> really starts playing. I'd just love to update my button <em>instantly</em>.</p>
0non-cybersec
Stackexchange
Question Regarding the Reduction Functions of a Rainbow Table. I'm doing a project for a computer science class where I'm basically programming a (small) rainbow table. I know that using different reduction functions at each link in a chain helps protect against looping and merges, but how are so many unique functions generated? I apologize in advance if this isn't the correct subreddit for my question.
1cybersec
Reddit
Doing Sparse Recovery in Python. <p>From what I understand, sparse recovery is about:</p> <p>Ax = y</p> <p>I know A, I know y, I want to find a representation of x that is a possible solution.</p> <p>If <code>x &gt;&gt; y</code>, this can't be solved exactly and sparsity is a good heuristic to get a solution.</p> <p>What I want to do is, find that x in my case. For an equation, I want to find x. So, I set up my code: <code>A = (300, 4K) in dimensions, y = (300,) in dimensions, x = (4K, ) in dimensions.</code> Then, I tried Orthogonal matching pursuit algorithm to recover x. </p> <pre><code>from sklearn.linear_model import OrthogonalMatchingPursuit omp = OrthogonalMatchingPursuit(n_nonzero_coefs=len(x)) omp.fit(A, y) coef = omp.coef_ </code></pre> <p>This code doesn't work as it says length of A and y are not consistent.</p> <p>So, my question is:</p> <ol> <li><p>Is my formulation correct? Does sparse recovery do what I am trying to do here, i.e. get the x vector, given A and y?</p></li> <li><p>What algorithm should I use, given I have very large dimensional matrix?</p></li> <li><p>Why does this OMP algorithm requires number of samples? Is it a machine learning algorithm, am I suppose to provide thousands of A, y pairs to get a solution?</p></li> </ol>
0non-cybersec
Stackexchange
Find files with similar names, delete the oldest, rename the most recent. <p>I have this situation where there's a lot of files with similar names (but they all follow a pattern) in different subfolders</p> <pre><code>file1 file1 (Copy) /folder1/file2.txt /folder1/file2 (Copy).txt /folder1/file3.png /folder1/file3 (Copy).png </code></pre> <p>Each file is in the same folder of its copy and has the same extension, the difference is that it has <code>(Copy)</code> at the end of the name</p> <p>I want to get all these files and delete the oldest one, then eventually rename the file from, for example, <code>file1 (Copy)</code> to <code>file1</code> (that is, remove the <code>(Copy)</code> suffix) if it needs to be renamed.</p> <p>I was thinking of using <code>find</code> and <code>mv</code> but I'm not sure how to tell it to move the most recent one.</p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Guide to types of hats.
0non-cybersec
Reddit
I’m ready for it.
0non-cybersec
Reddit
HTTPS Everywhere | Electronic Frontier Foundation.
0non-cybersec
Reddit
TeXshop (4.44) Index not generated. <p>Have attached the screenshot below:</p> <p><a href="https://i.stack.imgur.com/Hiogg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hiogg.png" alt="enter image description here"></a></p> <p>But the Index entry was not created, if I do manually like <code>makeindex a-course-in-surgery-theory-pup-symbols</code> then it works properly. </p> <p>What will be the reason for this? May it be related with the file naming? file name is (a-course-in-surgery-theory-pup-symbols.tex). Please suggest....</p> <p>PS: Hope this may not require a <code>MWE</code>, if requires, I'll</p>
0non-cybersec
Stackexchange
[WP] The Devil has marched his Army of the Damned out to conquer earth. They march down the streets and are confused when people cheer them on. The day is St Patrick's Day and he has somehow joined the St Patrick's Day parade.
0non-cybersec
Reddit
How to install SignTool.exe for VS 2017?. <p>After upgrade to VS 2017 i got "Error An error occurred while signing: SignTool.exe not found." But only using MSbuild on the Visual Studio publish there's no problem.</p> <p>I already checked folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin" and in fact there's no SignTool.exe present. But there was before installing VS2017, any ideas?</p> <p>I followed this issue but no luck <a href="https://stackoverflow.com/questions/31869552/how-to-install-signtool-exe-for-windows-10">How to install SignTool.exe for Windows 10</a></p>
0non-cybersec
Stackexchange
Permutation and combination/ probability. <p>If you have 7 white socks and 9 black socks in a drawer, how many socks do you have to pull out blindly in order to ensure that you have a matching pair ?</p>
0non-cybersec
Stackexchange
trouble with postfix install (timing out from client). <p>I have just outfitted a basic server (Ubuntu 12.04 LTS /Precise Pangolin) and have installed Postfix and Dovecot, based on the Ubuntu manuals.</p> <p><a href="https://help.ubuntu.com/community/Dovecot" rel="nofollow noreferrer">https://help.ubuntu.com/community/Dovecot</a></p> <p><a href="https://help.ubuntu.com/community/Postfix" rel="nofollow noreferrer">https://help.ubuntu.com/community/Postfix</a></p> <p>Postfix gets mail out of the box to my gmail account, e.g.:</p> <pre><code>sendmail [redacted]@gmail.com &lt; /etc/motd </code></pre> <p>Testing remote access with the open source client for Eudora, I can successfully download email, so Dovecot/POP3 seems to be functioning.</p> <p>However, I cannot seem to get Eudora to send email from my local computer. Depending on the security/port config I use, it generally times out.</p> <p>I seem to be able to get access via the local terminal, and remote shells, such as (from a remote server):</p> <pre><code>$ telnet lists.teachers.net 25 Trying 50.56.184.186... Connected to lists.teachers.net. Escape character is '^]'. 220 lists.teachers.net ESMTP Postfix (Ubuntu) ehlo lists.teachers.net 250-lists.teachers.net 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN quit 221 2.0.0 Bye Connection closed by foreign host. </code></pre> <p>I tried setting Eudora to use STARTTLS, SSL/TLS, and none, but they all time out. When Eudora tries to connect, i don't see any activity in the /var/log/mail/log or /var/log/mail.err , which I guess means those aren't the relevant logs or there is no activity to report.</p> <p>I haven't set up any firewall rules:</p> <pre><code>$ sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination </code></pre> <p>netstat output:</p> <pre><code>$ sudo netstat -tap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:submission *:* LISTEN 4112/master tcp 0 0 *:pop3 *:* LISTEN 3210/dovecot tcp 0 0 *:imap2 *:* LISTEN 3210/dovecot tcp 0 0 *:ssh *:* LISTEN 564/sshd tcp 0 0 *:smtp *:* LISTEN 4112/master tcp 0 0 *:imaps *:* LISTEN 3210/dovecot tcp 0 0 *:pop3s *:* LISTEN 3210/dovecot tcp 0 300 lists.teachers.net:ssh 99-95-169-159.lig:55464 ESTABLISHED 1433/sshd: listman tcp6 0 0 [::]:submission [::]:* LISTEN 4112/master tcp6 0 0 [::]:pop3 [::]:* LISTEN 3210/dovecot tcp6 0 0 [::]:imap2 [::]:* LISTEN 3210/dovecot tcp6 0 0 [::]:ssh [::]:* LISTEN 564/sshd tcp6 0 0 [::]:smtp [::]:* LISTEN 4112/master tcp6 0 0 [::]:imaps [::]:* LISTEN 3210/dovecot tcp6 0 0 [::]:pop3s [::]:* LISTEN 3210/dovecot </code></pre> <p>MX record:</p> <pre><code>$ dig mx lists.teachers.net ; &lt;&lt;&gt;&gt; DiG 9.8.1-P1 &lt;&lt;&gt;&gt; mx lists.teachers.net ;; global options: +cmd ;; Got answer: ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 22244 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3 ;; QUESTION SECTION: ;lists.teachers.net. IN MX ;; ANSWER SECTION: lists.teachers.net. 300 IN MX 100 lists.teachers.net. ;; AUTHORITY SECTION: teachers.net. 2057 IN NS dns1.stabletransit.com. teachers.net. 2057 IN NS dns2.stabletransit.com. ;; ADDITIONAL SECTION: lists.teachers.net. 300 IN A 50.56.184.186 dns1.stabletransit.com. 77665 IN A 69.20.95.4 dns2.stabletransit.com. 77741 IN A 65.61.188.4 ;; Query time: 830 msec ;; SERVER: 72.3.128.241#53(72.3.128.241) ;; WHEN: Thu Jan 10 14:08:34 2013 ;; MSG SIZE rcvd: 155 </code></pre> <p>How can I troubleshoot this, maybe from a remote machine? What logs might shed light? What other info would be helpful here? Thanks! </p>
0non-cybersec
Stackexchange
Unless Ubuntu-for-Android comes out earlier, this dock is what I plan to buy alongside the Samsung Galaxy Note II... whichever comes first..
0non-cybersec
Reddit
Small Caps in Description Label?. <p>The description environment allows an optional heading, like <code>\item [&lt;heading&gt;] text</code>, to be used. By default this makes the text <code>&lt;heading&gt;</code> bold.</p> <p>I'm having the issue that this style of heading text is overriding my <code>\textsc{}</code>.</p> <p>Why won't the description environment honor my <code>\textsc{}</code>?</p> <p>Here's a picture:</p> <blockquote> <p><img src="https://i.stack.imgur.com/n6GQL.png" alt="enter image description here"></p> </blockquote> <p>And a MWE:</p> <pre><code>\documentclass[12pt]{book} \begin{document} This is normal text. \textsc{This is in small caps.} \begin{description} \item [\textsc{Why not small caps?}] Why isn't the text at left in small caps? \end{description} \end{document} </code></pre>
0non-cybersec
Stackexchange
Can I use fglrx if I disable my integrated graphics?. <p>First of all: I love the new Ubuntu-Release. Sadly, I cant really use it. My Laptop has a i5-CPU, which comes with integrated graphics. It seems like there is no way at the moment to change the GPU while X is running, but I'm fine with that. Basically, I just want 3D Acceleration to play some games, but I cant get fglrx to install in any way. I tried the integrated Tool for installing such drivers, but I also tried downloading them from the AMD Website. Either way my Desktop/X11 either gets screwed up or I don't have any 3D acceleration whatsoever ( I tried different options with aticonfig ). Unfortunately my Laptop does not have the option to disable the integrated GPU, so I cant test how the driver would react if there was only one card.</p> <p>So my Question is: Is there any way to get 3D-Acceleration out of my Laptop?</p> <p>( It might help to mention that vga_switcheroo is working to at least turn off the card im not currently using, but that does not enable 3D-Graphics )</p>
0non-cybersec
Stackexchange
Embedding Riemmanian Manifold Linearly. <p>Given a Hilbert Manifold $M$ does there exist a smooth map into some very large Hilbert space taking geodesics to straight lines? </p>
0non-cybersec
Stackexchange
The Series $-\frac{2}{5}+\frac{4}{6}-\frac{6}{7}+\frac{8}{8}-\frac{10}{9}-\cdots$. <p>Stewart, in the answers in the appendix of <em>Calculus: Early Transcendentals</em> (7th ed.), Section 11.5, exercise 3, claims that the series $$-\frac{2}{5}+\frac{4}{6}-\frac{6}{7}+\frac{8}{8}-\frac{10}{9}-\cdots$$ is convergent, but Wolfram and I disagree. I looked at $$\lim\limits_{k\to\infty}\dfrac{(-1)^k (2k)}{4+k} $$ which is clearly not $0$. </p> <p>Did I do something wrong? </p>
0non-cybersec
Stackexchange
Understanding Unitys RGBA encoding in float (EncodeFloatRGBA). <p>The built in Unity shaders supports a technique for encoding and decoding a 32-bit RGBA-value into a 32-bit float. This can be done by simply multiplying each channel with the highest possible value of the channel before it. Some loss of precision is expected since it is stored in a float.</p> <p>The shader clearly has some optimization going for it that I am trying to understand.</p> <p>The shader in UnityCG.cginc code looks like this:</p> <pre><code>// Encoding/decoding [0..1) floats into 8 bit/channel RGBA. Note that 1.0 will not be encoded properly. inline float4 EncodeFloatRGBA( float v ) { float4 kEncodeMul = float4(1.0, 255.0, 65025.0, 16581375.0); float kEncodeBit = 1.0/255.0; float4 enc = kEncodeMul * v; enc = frac (enc); enc -= enc.yzww * kEncodeBit; return enc; } inline float DecodeFloatRGBA( float4 enc ) { float4 kDecodeDot = float4(1.0, 1/255.0, 1/65025.0, 1/16581375.0); return dot( enc, kDecodeDot ); } </code></pre> <p>So my questions:</p> <ol> <li>Why is G-channel multiplied with 255 and not 256 (2^8=256), B-channel multiplied with 65025 and not 65536 (2^16=65536), and A-channel 16581375 and not 16777216 (2^24=16777216).</li> <li>The dot product seems to multiply with fractions, so <code>f = R + 255 * G + 65025 * B + 16581375 * A</code> would not give compatible result. Why this choice?</li> </ol>
0non-cybersec
Stackexchange
Is crisp pixel scaling in Motion possible? (instead of anti-aliasing). <p>Is it possible to export sharp pixels (similar to nearest neighbour interpolation in Photoshop, or image-rendering: pixelated in CSS) from within Motion?</p> <p>I would like to work with small 1:1 pixel objects and scale them β€” but I don't want them antialiased.</p> <p>In Premiere you get this rendering setting with Draft mode. Unfortunately Motion's Draft mode doesn't seem to use nearest-neighbour interpolation.</p>
0non-cybersec
Stackexchange
If $x,y \in R$ and $x&lt;y\implies x^2&gt;y^2$ then:. <p>If $x,y \in R$ and $x&lt;y\implies x^2&gt;y^2$ then:</p> <p>a). $x&gt;0$</p> <p>b). $x&lt;0$</p> <p>c). $y&gt;0$</p> <p>d). $y&lt;0$</p> <p>My Attempt:</p> <p>Here, $x&lt;y \implies x^2&gt;y^2$ but How? As for example: Let $x=0.001$ and $y=0.1$. So, $$0.001&lt;0.1$$ Squaring Both Sides, We get: $$0.000001&lt;0.01$$ ??</p>
0non-cybersec
Stackexchange
(osd_cat) Cyrillic character output. <p>All been great with my Cyrillic character output in osd_cat until I created <code>~/.fonts.conf</code> (at least this is the most obvious reason I'd think) with such settings (as seen on <a href="http://forums.debian.net/viewtopic.php?f=10&amp;t=38534&amp;start=75#p363453" rel="nofollow noreferrer">debian forum</a>):</p> <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;&lt;!DOCTYPE fontconfig SYSTEM &quot;fonts.dtd&quot;&gt; &lt;fontconfig&gt; &lt;match target=&quot;font&quot;&gt; &lt;edit mode=&quot;assign&quot; name=&quot;rgba&quot;&gt; &lt;const&gt;rgb&lt;/const&gt; &lt;/edit&gt; &lt;/match&gt; &lt;match target=&quot;font&quot;&gt; &lt;edit mode=&quot;assign&quot; name=&quot;hinting&quot;&gt; &lt;bool&gt;true&lt;/bool&gt; &lt;/edit&gt; &lt;/match&gt; &lt;match target=&quot;font&quot;&gt; &lt;edit mode=&quot;assign&quot; name=&quot;hintstyle&quot;&gt; &lt;const&gt;hintmedium&lt;/const&gt; &lt;/edit&gt; &lt;/match&gt; &lt;match target=&quot;font&quot;&gt; &lt;edit mode=&quot;assign&quot; name=&quot;antialias&quot;&gt; &lt;bool&gt;true&lt;/bool&gt; &lt;/edit&gt; &lt;/match&gt; &lt;match target=&quot;font&quot;&gt; &lt;edit mode=&quot;assign&quot; name=&quot;lcdfilter&quot;&gt; &lt;const&gt;lcddefault&lt;/const&gt; &lt;/edit&gt; &lt;/match&gt; &lt;/fontconfig&gt; </code></pre> <p>After that (and system reboot, of course) fonts look &quot;better&quot;, but any Cyrillic word is shown as <code>.</code>. Here are my osd_cat script settings:</p> <pre><code>/usr/bin/osd_cat -f -*-*-*-*-*-*-20-*-*-*-*-*-koi8-r --delay=4 -c green -s 1 -A center -p top -o 45 --age=4; </code></pre> <p>I already tried specifying some server-side monospaced fonts (koi8-r), found through <code>xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'</code> command, e.g.</p> <pre><code>/usr/bin/osd_cat -f -misc-fixed-medium-r-normal--0-0-100-100-c-0-koi8-r --delay=4 -c green -s 1 -A center -p top -o 45 --age=4; </code></pre> <p>but nothing seems to be changing.</p> <p>Please, help me out.</p>
0non-cybersec
Stackexchange
Thanks to my uber eats driver. So excuse the wall of text, mobile user, etc. My husband and I just had a baby a week and a half ago. Last night we decided to order dinner off uber eats because cooking sounded awful. I went to meet the driver outside so our dogs didn't charge him (friendly, but loud and big). I should note I'm currently covered in bruises. It took forever to find a vein for my IV port and had another vein blow out from a blood draw right before. The multiple tourniquets and stress made the bruises pretty nasty. They don't hurt but I'm fair skinned and healing, so I'm purple/green/all the colors of the rainbow right now. The delivery driver comes up to hand me the food and eyes my bruises as I reach for the food. He takes a beat, looks at me and says "what happened? Are you okay?" I was shocked to be honest. I explained that we just had a baby and the bruises were from needle sticks and he instantly brightened up. He asked a couple questions about the baby, told me he loves babies, offered congratulations, and went on his merry way. It seems like such a small thing but when i told my husband he pointed out that my bruises were splotchy making it look a little like someone had grabbed me by the arm, hard. I cried a little after that because he makes his money on how fast he works.. But wanted to make sure there was no funny business. TLDR; uber eats driver checks to make sure I wasn't harmed/if I needed help.
0non-cybersec
Reddit
Last session we got to use the model I won! Here we are in an encounter at The Well-Oiled Scabbard..
0non-cybersec
Reddit
My wife knitted an elf hat for our kitten!.
0non-cybersec
Reddit
Window resolution gets screwed up when docking or undocking laptop. <p>I have an HP EliteBook 850 and 2 HP EliteDisplay E231. The laptop has a 14" screen and the monitors are both 23". If I undock the laptop without shutting down first, the resolution of the windows get's screwed up. I've double checked the screen resolution and it is does not change from 1920x1080, but the application windows all appear to be scaled to a screen whose resolution has been set to 1600x900.</p> <p>Alternatively, if I am using the laptop and then attach it to the docking station, the windows appear very small on the main monitors. When I drag windows between the laptop screen and the main screens I can see them change size.</p> <p>I've already tried updating my video driver, but the problem persists. The only way to fix it is to restart the laptop. This is driving me crazy! Does anyone have any ideas?</p>
0non-cybersec
Stackexchange
A proof related to the convergence of Cauchy sequences. <blockquote> <p>In this problem, we will investigate a new property which some sequences may have. Here is a new definition.</p> <p>Definition: A sequence <span class="math-container">$\{a_n\}_{n=0}^∞$</span> is said to be Cauchy iff</p> <p><span class="math-container">$$\forall \varepsilon,\exists N\in\mathbb{N}s.t.\forall n\in\mathbb{N},\forall m\in\mathbb{N}(n,m\geq N\rightarrow|a_n-a_m|&lt;\varepsilon)$$</span></p> <p>Let <span class="math-container">$\{a_n\}_{n=0}^∞$</span> be a sequence of real numbers that converges to a number L. Show that <span class="math-container">$\{a_n\}_{n=0}^∞$</span> must be Cauchy</p> </blockquote> <hr> <p>My attempts:</p> <p>Proof.</p> <p>Let <span class="math-container">$\{a_n\}_{n=0}^∞$</span> be a sequence of real numbers</p> <p>Assume <span class="math-container">$\{a_n\}_{n=0}^∞$</span> converges to a number L where <span class="math-container">$L\in \mathbb{R}$</span></p> <p>Show <span class="math-container">$\{a_n\}_{n=0}^∞$</span> must be Cauchy</p> <p>By assumption we have </p> <p>1.<span class="math-container">$\forall \varepsilon&gt;0,\exists n_0\in\mathbb{N}s.t.\forall n\in\mathbb{N},(n\geq n_0\rightarrow L-\varepsilon&lt;a_n&lt;L+\varepsilon)$</span></p> <p>WTS </p> <p><span class="math-container">$\forall \varepsilon&gt;0,\exists N\in \mathbb{N}s.t.\forall n,m\in \mathbb{N},n,m\geq N\rightarrow a_m-\varepsilon&lt;a_n&lt;a_m+\varepsilon$</span></p> <p>By 1. we have</p> <p><span class="math-container">$\forall \varepsilon&gt;0,\exists N\in\mathbb{N}s.t.\forall n,m\in\mathbb{N},$</span></p> <p><span class="math-container">$n\geq N\rightarrow L-\varepsilon&lt;a_n&lt;L+\varepsilon $</span></p> <p><span class="math-container">$\wedge m\geq N\rightarrow L-\varepsilon&lt;a_m&lt;L+\varepsilon$</span></p> <p>Since <span class="math-container">$2\varepsilon&gt;0$</span>, this also hold for <span class="math-container">$2\varepsilon$</span></p> <p>Implies the following:</p> <p><span class="math-container">$\forall \varepsilon&gt;0,\exists N\in\mathbb{N}s.t.\forall n,m\in\mathbb{N},$</span></p> <p><span class="math-container">$n\geq N\rightarrow\underbrace{L-2\varepsilon&lt;a_n&lt;L+2\varepsilon}_\alpha $</span></p> <p><span class="math-container">$\wedge m\geq N\rightarrow\underbrace{L-\varepsilon&lt;a_m&lt;L+\varepsilon}_\beta$</span></p> <p><span class="math-container">$\Leftrightarrow \forall \varepsilon&gt;0,\exists N\in\mathbb{N}s.t.\forall n,m\in\mathbb{N},\underbrace{n,m\geq N}_p$</span></p> <p><span class="math-container">$\rightarrow \underbrace{L-\varepsilon&lt;a_n&lt;L+\varepsilon\wedge L-\varepsilon&lt;a_m&lt;L+\varepsilon}_q$</span></p> <p>Since <span class="math-container">$\alpha -\beta$</span> have <span class="math-container">$-\varepsilon&lt;a_n-a_m&lt;\varepsilon$</span></p> <p>That <span class="math-container">$a_m-\varepsilon&lt;a_n&lt;a_m+\varepsilon$</span></p> <p><span class="math-container">$\forall \varepsilon&gt;0,\exists N\in\mathbb{N}s.t.\forall n,m\in\mathbb{N},\underbrace{n,m\geq N}_p$</span></p> <p><span class="math-container">$\rightarrow ((\underbrace{L-\varepsilon&lt;a_n&lt;L+\varepsilon\wedge L-\varepsilon&lt;a_m&lt;L+\varepsilon}_q)\rightarrow \underbrace{a_m-\varepsilon&lt;a_n&lt;a_m+\varepsilon}_r)$</span></p> <p>Consider <span class="math-container">$((p\rightarrow (q\rightarrow r))\rightarrow(p\rightarrow r))$</span></p> <p>It's only False when p is true, q is false and r is false.</p> <p>However we had show <span class="math-container">$p\rightarrow q$</span> is true, </p> <p>but when p is true and q is false that <span class="math-container">$p\rightarrow q$</span> is false</p> <p>Therefore this False case can never happen by contradiction</p> <p>In another word <span class="math-container">$((p\rightarrow q)\wedge(p\rightarrow (q\rightarrow r)))\rightarrow(p\rightarrow r)$</span> is a tautology</p> <p>Implies <span class="math-container">$\forall \varepsilon&gt;0,\exists N\in\mathbb{N}s.t.\forall n,m\in\mathbb{N},\underbrace{n,m\geq N}_p \rightarrow \underbrace{\vert a_n-a_m\vert&lt;\varepsilon}_r$</span></p> <p>Therefore <span class="math-container">$\{a_n\}_{n=0}^∞$</span> must be Cauchy</p> <hr> <p>Is my proof correct? Any suggestion would be appreciated.</p>
0non-cybersec
Stackexchange
Apple Tells Lawmaker that Right to Repair iPhones Will Turn Nebraska Into a β€˜Mecca’ for Hackers - Motherboard.
1cybersec
Reddit
Karen dogs.
0non-cybersec
Reddit
&quot;Operand type clash&quot; with DATE column. <p>I enter the following command into the SQL Server Management Studio</p> <pre><code>insert into testtable ([product_name], [price], [expire_date], [expire_time]) values ('Teapot', 10.00, 23/12/2012, '12:35:00') </code></pre> <p>It yields this error:</p> <blockquote> <p>Operand type clash: int is incompatible with date</p> </blockquote> <p>These are the columns:</p> <pre><code> Column name | datatype ----------------+--------------- product_name | varchar(30) price | money expire_date | date expire_time | time(7) </code></pre>
0non-cybersec
Stackexchange
Best Fertilizer.
0non-cybersec
Reddit
How to flip X and Y axes in Excel scatter chart with more than one series. <p>I don't understand how to perform a simple 90 degree axis manipulation in Excel.</p> <p>Here is my data:</p> <pre><code>╔════╦══════╦═══════╗ β•‘ Y β•‘ X1 β•‘ X2 β•‘ ╠════╬══════╬═══════╣ β•‘ 1 β•‘ 0.00 β•‘ -1.00 β•‘ β•‘ 2 β•‘ 0.50 β•‘ 0.00 β•‘ β•‘ 3 β•‘ 0.67 β•‘ 0.33 β•‘ β•‘ 4 β•‘ 0.75 β•‘ 0.50 β•‘ β•‘ 5 β•‘ 0.80 β•‘ 0.60 β•‘ β•‘ 6 β•‘ 0.83 β•‘ 0.67 β•‘ β•‘ 7 β•‘ 0.86 β•‘ 0.71 β•‘ β•‘ 8 β•‘ 0.88 β•‘ 0.75 β•‘ β•‘ 9 β•‘ 0.89 β•‘ 0.78 β•‘ β•‘ 10 β•‘ 0.90 β•‘ 0.80 β•‘ β•šβ•β•β•β•β•©β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β• </code></pre> <p>And here is what the default scatter looks like:</p> <p><a href="https://i.stack.imgur.com/vTbjb.png" rel="nofollow noreferrer">Excel default - please click me</a></p> <p>Excel has correctly picked up my two series (X1 and X2) but I want to flip the X and Y axes. The result should look like this:</p> <p><a href="https://i.stack.imgur.com/zZSPZ.png" rel="nofollow noreferrer">Excel edited - please click me</a></p> <p>I had to create that by manually editing the X and Y values for each series within Excel's Select Data... dialogue. That's fine for one or two series, but what if I want to plot 100s of series? I can't possibly reconfigure them all manually. So how do I format my data so that Excel treats the first col as Y values, and each subsequent col as the corresponding X value of each new series? Thanks</p>
0non-cybersec
Stackexchange
Replace mathcal plus margin-note results in \reserved@a does not match definition. <p>This is related to <a href="https://tex.stackexchange.com/questions/223843/problem-with-mathcal-in-mit-thesis-package">problem with \mathcal in MIT Thesis package</a>; I posted the below MWE there, but the edit was rejected due to deviating from the original authors post. IDK if its the right thing to ask a new question then, but please correct me, if I'm wrong.</p> <p>I'm using a thesis template with the <code>mathdesign</code> math fonts but do not like the <code>mathcal</code> fonts, so I want to replace them. Following <a href="https://tex.stackexchange.com/questions/219091/fonts-used-in-svmult-package-problem-with-mathcal">219091</a> and <a href="https://tex.stackexchange.com/questions/223843/problem-with-mathcal-in-mit-thesis-package">223843</a> I tried the</p> <pre><code>\let\mathcal\undefined \DeclareMathAlphabet{\mathcal}{OMS}{zplm}{m}{n} </code></pre> <p>fix, but this results in the following error:</p> <pre><code>! Use of \reserved@a doesn't match its definition. \reserved@b -&gt;\relax \ifmmode \else \non@alpherr \mathcal \fi \use@mathgrou... l.23 $\mathcal{A} $ ? </code></pre> <p>It looks like it is connected to using math in the bibliography, as the following MWE suggests. This was the closest example I could come up with, abstracting most of the template stuff (one particular thing here is that citations are printed to the margin -- removing this patch to the <code>cite</code> command also removes the error, but I want to keep this patched <code>cite</code>)</p> <pre><code>\begin{filecontents}{\jobname.bib} @misc{example, author = {Example}, title = {$\mathbf{F}_2^n$}, } \end{filecontents} \documentclass{article} \usepackage[charter]{mathdesign} \let\mathcal\undefined \DeclareMathAlphabet{\mathcal}{OMS}{zplm}{m}{n} \usepackage{biblatex} \addbibresource{\jobname.bib} \DeclareCiteCommand{\cite}[]{}{\marginpar{\footnotesize\printfield[citetitle]{labeltitle}}}{}{} \begin{document} $\mathcal{A}$ \cite{example} $\mathcal{A}$ \end{document} </code></pre> <p>Removing the <code>\footnotesize</code> in the margin note also seem to solve the problem, but here, too, I would like to stick with the font size.</p>
0non-cybersec
Stackexchange