Is bracketing useful in the era of digital photography and post-processing?

My digital camera has a bracketing feature, and I set it to three shots, with the bracketed shots being 2/3rd +/- its calculated exposure. I find that that tends to get me one shot with the colors and tones I more or less expected.   However, I noticed that in post-production, I have great leeway in adjusting the exposure, the lights, darks, highlights, shadows, colors, etc. etc. It made me wonder if bracketing is really necessary, when I have all this control after the shot.   Does bracketing get you anything in the era of digital photography? It does come at a cost-- my card space is reduced by 2/3rds (for my settings) and I treble the wear and tear on my shutter. So if it's not useful, I should turn it off.   The only redeeming effect I think it might have is that, if one of the bracketed shots is clearly better than the others, I might not skip over it in deciding which images are the good ones.


What would happen if two equally massive black holes directly collided at 5% the speed of light. I'm not talking about slowly orbiting each other for thousand of years. I mean one instant catastrophic event as with a hadron collider. Could the energy be enough to blast all matter (from the black holes) into a huge cloud that would then form into a galaxy and slowly back to another black hole?  There are similar questions but I am particularly interested in the possibility that this could happening at all considering most black hole theories say that once information goes in it can't come out.


Is there a way to give an enchanted book with a random enchatment level?

So the backstory about this is that we are trying to give a reward out with of an enchanted book with a random level. Aka Protection I-V randomly. I know the command /give @p enchanted_book 1 0 {StoredEnchantments:[{id:34,lvl:X}]}, with X being the enchantment level, but is there a way to change that to a random number? Like random of the vanilla enchantments of course. Or do I need to explore scripts for that kind of stuff? Full story, Crazy Crates reward, of a random enchanted book, of a random level. Have the first two down easy, just the random level part.... Thank you ahead of time yall!


What is the best way to present tab with unavailable content?

Windows guidelines are saying that you shouldn't disable tabs, since it doesn't explain why content is unavailable. They recommend hiding/disabling all content inside tab and explaining the reason there.  I have a form of a "Task" with several tabs. Form has 3 states: create, view and edit. Some content is not available until Task is created, so currently we just disable those tabs.  I want to change this behaviour to follow guideline recommendations, but what if it will be frustrating—clicking through tabs that are not needed to create a task? Maybe it is better to hide them altogether? But then "create" state will differ from others.  What is your method?   Disable/Hide content and explain reason there? Hide tab altogether? (Inappropriate for settings!) Disable tab (and add tooltip or change tab name)? ¯\_(ツ)_/¯


This was just my second downvote (though unintentional) but the person whose answer I downvoted came to know that I downvoted his answer. Here's the link : .  I searched so much to find out who upvoted or downvoted my questions and answers but all I found was that the votes are anonymous to all except the site admins. Then how did this person (Name: RASG) come to know that I downvoted him when This person never knows me, nor do I know him?


X,Y are independent exponentially distributed then what is the distribution of X/(X+Y)

Been crushing my head with this exercise. I know how to get the distribution of a ratio of exponential variables and of the sum of them, but i can't piece everything together.  The exercise goes as this:  If X,Y are independent exponentially distributed with beta = 1 (parameter of the exponential distribution = 1) then what is the distribution of X/(X+Y)  Any ideas?  Thanks a lot.


When compiling to Linux with gcc, everytime the user inputs whatever answer, the program reaches the same part of the code in other iteration but doesn't waits for the input of the user, and instead feeds a newline to the scanf function, making the program print 'I don't get it!' every time... The program works, but still, I didn't want it to write 'I don't get it!', independent of the users' answer. Here's the specific part of the code.  do {     printf("\n\nAnswer: (y/n) ");     scanf("%c", &ans);     //printf("\n->%c<-\n", ans); //just for debugging     if (ans == 'y')     {         age += v[0];     }     else if (ans != 'n')     {         printf("\nI don't get it!\n");     } } while (ans != 'y' && ans != 'n');   These are the declarations: char v[64]; char ans;    (This do..while loop is inside a 'for') What further puzzles me is the fact that the program compiles and runs exactly as I'd expect on Windows... (using MinGW) I've tried using fflush(stdin) before and/or after the scanf, but it didn't help. An important observation is that the first time it reaches this question it acts as expected.     (before the user answers)   Answer: (y/n)   I don't get it! // this gets written every time but the first        Answer: (y/n) n        You are 21 years old!     If the user writes invalid input:     Answer: (y/n) w      I don't get it!      Answer: (y/n) // this line and the next one should simply not be printed   I don't get it!      Answer: (y/n)   //(now it waits for user input)   Any ideas?  Edit  Fixed it: (I declared an additional char buf[50])  do {     printf("\n\nAnswer: (y/n) ");     fgets(buf, 50, stdin);     sscanf(buf, " %c", &ans);     if (ans == 'y')     {         age += v[0];     }     else if (ans != 'n')     {         printf("\nI don't get it!\n");     } } while (ans != 'y' && ans != 'n');   Can someone tell me what is the problem with scanf?


How can I resize root and home partitions?

I'm using Ubuntu 20.04 and during the installation process I opted for manual partitioning, and I chose to keep root and home separate. So at the end, I obtained this configuration:  650 Mb EFI partition (sdb3) 20 Gb root partition @ /  (sdb4) 10 Gb swap partition (sdb5) about 650 Gb partition (remaining free space)  @ /home (sdb6)  Now I noticed that 20 Gb could be too little for root partition as this partition is already full for 80% of his dimension, so basically I may have been wrong to reserve only 20 Gb for it. I have to say that, at the moment, I haven't particular problems with this configuration but maybe I could face them in the future. Can I resize the root partition taking some space from home partition? As I see here  I must use Gparted from liveUSB since it is not possible to modify mounted partitions, but as I explained home and root partitions aren't close to each other (there is swap partition in between). Is this a problem? NB.: There isn't free space or unallocated space on sdb. Additional informations: This is a dual boot stystem (on two different drives, win 10 is on sda). I did not mention "sdb1" and "sdb2" because before installing Ubuntu on "sdb" I chose to create (from win 10) a shared ntfs partition for both OS, here called sdb2, while sdb1 is an automatic generated partition labeled "Microsoft reserved partition"


Is PGP's way of maintaining email security optimal?

I read a book called "computer networking: A top-down approach". It talked about how PGP creates an email message between Alice and Bob to maintain confidentiality, integrity, and authenticity. Let me define some terminology and the procedure at the very high level:  m :              email message H() :            cryptographic hash function Ka_priv_sign() : signing using Alice's private key || :             contacternation Ks :             session key Ks_enc():        encryption using session key Kb_pub_enc():    encryption using bob's public key blob :           The final data blob Alice sends to Bob.   To send an email to Bob, Alice first signs the message with her private key:  m || Ka_priv_sign(H(m))   Alice then encrypt the message and signature  blob = Kb_pub_enc(Ks) || Ks_enc(m || Ka_priv_sign(H(m)))    Alice will send this final blob to Bob.   The cryptography seems to have a problem here since digital signature is applied before encryption and encryption does not provide data integrity. I think the right order of operation should be:  Alice first encrypts the message with the session key and encrypt the session key with Bob's public key:  Kb_pub_enc(Ks) || Ks_enc(m)   Alice then signs the encryption results after hashing them:  blob' = Kb_pub_enc(Ks) || Ks_enc(m) || Ka_priv_sign(H(Kb_pub_enc(Ks) || Ks_enc(m))))    Questions:  Is PGP still using the way that the textbook describes today? Do you think my construction is better?


What novel was set in a dystopian future and featured a boy searching for his missing father?

I'm hoping someone can identify this young-adult/children's sci-fi book. I read it in 1996-1997, but I remember thinking it was written in the 1980s.   The main character was a boy (maybe in his early teens) and over the course of the book he gained a female companion of the same age. I think the boy and his father had a vegetable garden growing in their basement, but it was illegal for them to grow their own food so they hid the trapdoor to the basement under their refrigerator. The boy's father was an important scientist (or something of that nature) and he goes missing (taken by the evil government?) and the boy has to find him.   There is a scene where the boy is at school and is sent to the school counselor or doctor to be given an anti-depressant or tranquilizer pill, the counselor (a male) is sympathetic to the boy and tries to help him and the girl to find the boy's father (and possibly the girl's parents too?). There was also a scene where the boy and girl go to an abandoned building/warehouse to meet someone who can give them information on their parents (maybe they meet each other for the first time at the building?). It seems like there was also a mention of golf clubs in relation to the boy's father and a mention of Crackerjack rings in relation to the girl, but I know a Crackerjack ring played a part in another book I read around the same time so I could be confused:).   Sorry this is so long, I only read part of the book and would like to find out how it ends.


Cell format protection + forced capitalisation

I've created a Google Sheets document intended for daily use by more than a dozen people. Text inputted in two of the columns is set up, via conditional formatting, to change colour based on the name entered (Smith = Red, Baker = Blue, Williams = Green and so on). I'm also running a script that forces all entries in these columns to be capitalised.   The issue I have is that all users need to be able to move the column entries up and down as and when required. For example, a job may be scheduled at 6am, then need to be moved down to an 8am slot.  When that happens, the formatting breaks and has to be replaced.  I understand there may be a way to lock or force the formatting using a control column/row and a script, but nothing I've tried seems to work. Any help or pointers would be much appreciated!


I have several sidebars (more then 1 on a page) and I would like to set different image sizes to widgets, depending in which sidebar they are located.  I tried  if( ! dynamic_sidebar('my-sidebar') ) :   and  if ( is_active_sidebar( 'left-sidebar' ) ) :   but this only seems to check if the sidebar's exist (and they do).  How do I get: "if widget is located in sidebar A, give me this size, elseif widget is located in sidebar B, give me that size"?


Should there always be a comma after "therefore","However" etc.?

Should you always type a comma after "therefore","however" etc. in the beginning of a sentence? Also, when these (and similar) words are used in the middle of a sentence, should there be a comma or semi-colon before and after the word?  Therefore, he must be killed! That man is revolting, however, some find him attractive.  Sorry for the lousy examples. I couldn't think of any better.


How to create automatically table of contents of external PDF file?

I have merged three external pdf files. Now I want to create table of contents of this resultant pdf file. Here \tablesofcontentsis not working.  \documentclass{article} \usepackage{pdfpages} \begin{document}  \includepdf[pages={1,2,3-30}]{myfile1.pdf} \includepdf[pages={1,2,7-40}]{myfile2.pdf} \includepdf[pages={990}]{myfile3.pdf}  \end{document}


Increasing extremely small text in ArcMap?

I'm taking an introductory GIS course and the university provided us with one year student licenses so that we can work from home. The issue is the text in the table of contents and the toolbar(?) (File, Edit, View, Etc.) up top are in very small font; so are the icons and text in the table of contents.   For a while a lot of the toolbar icons were also incredibly small but I figured that out by using the large icon sizes, however the icons are still small within a tool.    A few months ago I had the same issue with QGIS. I originally deleted the program but since then have redownloaded QGIS and no longer have that issue. To me, this hints at the issue being a laptop problem? I don't know though, just a guess. I'm running windows 10 on an Asus zenbook.  UPDATE:  Adjusting screen resolution has helped but some icons and text (like in arctoolbox) are still really small:   I tried referencing these two posts but am still  having trouble:


When to use generalized estimating equations vs. mixed effects models?

I have been quite happily using mixed effects models for a while now with longitudinal data. I wish I could fit AR relationships in lmer (I think I'm right that I can't do this?) but I don't think it's desperately important so I don't worry too much.  I've just come across generalized estimating equations (GEE), and they seem to offer a lot more flexibility than ME models.  At the risk of asking an over-general question, is there any advice as to which is better for different tasks? I've seen some papers comparing them, and they tend to be of the form:  "In this highly specialised area, don't use GEEs for X, don't use ME models for Y".  I haven't found any more general advice. Can anyone enlighten me?  Thank you!


How can I force the windows computer to shutdown by using the P/Invoke Declaration for ExitWindowsEx in VB.Net? I am not talking about Process.Start("shutdown -s -f- -t 0") I know there is way to do the same thing using the Windows API. How can I force a shutdown/reboot?


Ubuntu Won't Connect to the Internet - BCM4312

I've looked at the other questions about having problems connecting to the internet, but it hasn't worked for me so far.   I bought a netbook and I wanted to try Ubuntu out, which I installed from a usb. So I installed it, replacing the windows7 that came with it, and now it doesn't connect to the internet (it did connect when it was windows). I've run some of the more basic steps, and have tried to install some dkms from the pool files, but it won't let me install anything.   I don't know the commands that well, so I can't say that I'm doing things correctly, so if anyone could please walk me through this - I'd be much obliged.  It also doesn't recognize an ethernet cord.  Using Ubuntu 3.11.0-15-generic               lts-saucy              BCM4312              [14e4:4315]


$C^1$ functions on an open connected set and local Lipschitz continuity

This question is related to the  one.      Let $\Omega$ be an open connected subset of ${\bf R}^n$ and $f:\Omega\to{\bf R}^n$ be continuously differentiable such that   $$ \sup_{x\in\Omega}||Df(x)||<+\infty.  $$   Show that for every compact $K\subset \Omega$, there exists $L_K$ such that for every $x,y\in K$,   $$ |f(x)-f(y)|\leq L_K|x-y|.  $$     Here are some thoughts about it. If $\Omega$ is convex, then one can apply the theorem quoted in the previous question. Suppose it is not. By the compactness of $K$, one can cover it with finitely many open balls contained in $\Omega$. Since open balls are convex, one can have a Lipschitz constant $L_i$ for each ball. For any $x,y\in K$, if they are in the same open ball, then one can bound $|f(x)-f(y)|$ using the maximum of $\{L_i\}$. But when they are not in the same ball, I don't see how to go on.


When class is called, it won't draw my new stage

I've been having trouble adding my own custom font my game, and was wondering why libgdx doesn't like drawing my new stage i've set up once my class is called?  The class is called whenever an item intersects with another and the main class calls this class's .render() method.  I want it to draw the string "game over" to the screen, however i am getting an error at stage.act(delta):  Exception in thread "LWJGL Application" java.lang.NullPointerException     at com.mygdx.game.GameOverScreen.render(GameOverScreen.java:70)     at com.mygdx.game.MyGdxGame.render(MyGdxGame.java:191)     at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:214)     at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)   Here is my code:  class GameOverScreen implements Screen {     Label gameoverstring;      private Stage stage;     SpriteBatch spritebatch;      BitmapFont white;     LabelStyle headingStyle;      @Override     public void show() {         stage = new Stage();         white = new BitmapFont(Gdx.files.internal("new.fnt"), false);         headingStyle = new LabelStyle(white, Color.WHITE);          gameoverstring = new Label("game ovaaaa!", headingStyle);         gameoverstring.setFontScale(3);         stage.addActor(gameoverstring);     }      @Override     public void render(float delta) {         //gameoverstring.setPosition(0, 0);         Gdx.gl.glClearColor(0, 0, 0, 1);         Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);         stage.act(delta);         stage.draw();     }      @Override     public void resize(int width, int height) {     }      @Override     public void pause() {     }      @Override     public void resume() {     }      @Override     public void hide() {     }      @Override     public void dispose() {     } }


Downloading files in place similar to github

I don't know if I should ask this here but I didn't know where to ask it. Just wanted to download some files that recalls me to the github repositories for the source code so maybe there is a similar way to download them. I just want to download  without doing it one by one.


How can I change the file name of the Program Files (x86) folder?

Let me stop you before the "you shouldn't do that" and "you will corrupt your file paths". I know what I'm doing, but I'll give you the story to convince you.  Basically, my hard drive is failing to the point where programs installed on it are not responding consistently. So, in preparation for my replacement, I'm moving as many files as possible to my secondary because the new drive will be smaller (it's an emergency I can't buy a fancy expensive new drive) and so I can actually use my computer until the new drive comes in.  The basic idea behind what I'm doing is I've copied the contents of the Program Files x86 folder to another spot on my other drive, and I want to replace the original folder in the C drive with a symbolic link that points to the other drive, so the programs can run from that drive and be fine but it will save space on my C drive and simplify the moving process when the new one comes in. To do that, I need to rename the program files folder, make the symbolic link, hopefully delete the program files folder, then restart my computer so all the programs are running properly and I can confirm it works.  Now that I've told you why, can anyone help me out?


What's a good Windows RDP client for Mac?

I administer a number of Windows machines, and am trying to find a really good application to remote desktop in to them from my Mac.  I've tried CoRD, and I really like its library approach to saved sessions (as opposed to Microsoft's file based approach), and tabbed sessions are great when working on a bunch of machines.  Unfortunately, it's just too buggy for serious use, and given that it averages less than 2 releases a year, I have little hope that that will change.  Microsoft's official client is very bare bones and doesn't support connecting on non-standard ports (which I need).  Is there a remote desktop client for Mac out there that's both fully featured and not buggy?  Edit: Apparently the Microsoft doc I read that states that the Microsoft RDC client can't be used on non-standard ports is out of date.


What is difference of these sentences?where can i used it?  "i have walked since in the morning"  "i have been walking since in the morning"


Refresh imageview in listview without blocking the UI

I have a ListView in which I am display Facebook friend's Image and name.Right now what I am doing is that I am showing 7 friends at once and have a load more button that displays next 7 and so on.     Now what I want do is show all the names but with a default pic in the ImageView and refresh only if it is showing on the screen without blocking the UI. eg If user is seeing Mr X on the screen then only I get his picture and show it in the ImageView without blocking the UI.


I'm running 13.04 on my laptop. My laptop has a tendency to run really hot - to the point of thermal shutdowns if left unattended for a long period of time. I don't know if that's relevant. the mouse cursor flickers constantly. Sometimes it disappears altogether. The flickering is about 1Hz at rest, but as I do things or type it increases in frequency. It looks like every time the system registers a keypress it flickers. How can i fix this or diagnose what is causing this?


Why wasn't Neo possessed by an Agent in the first movie?

If an Agent can possess anyone still connected to the Matrix, and, as we can see, they sense when someone is seen something weird (like the drunk beggar in the first movie), why didn't they possess Neo when he was in the car with Switch Apoc and Trinity?  I believe that's what Trinity meant when she said the gun was for their protection from him     Neo: what is this? (talking about the gun pointed to him)   Trinity: It is necessary, for our protection.   Neo: From what?   Trinity: From you!


OS: ubuntu 20.0 I write a simple python with print import time a = 0 while 1:     a +=1     print(a)     time.sleep(1)   and I run command nohup python3 test2.py > 3.log 2>&1 &  then  next cat 3.log   only got nohup: ignoring input if I remove last & run nohup python3 test2.py > 3.log 2>&1   get 3.log output 1 2 3 4  but nohup will be kill after terminor close .how can I get output with & django@django-s-1vcpu-1gb-sgp1-01:~/swap_hb$ nohup python3 test2.py > 3.log 2>&1 ^C django@django-s-1vcpu-1gb-sgp1-01:~/swap_hb$ cat 3.log nohup: ignoring input 1 2 3 4 5 6 7 8 Traceback (most recent call last):   File "test2.py", line 6, in <module>     time.sleep(1) KeyboardInterrupt django@django-s-1vcpu-1gb-sgp1-01:~/swap_hb$ ^C django@django-s-1vcpu-1gb-sgp1-01:~/swap_hb$ nohup python3 test2.py > 3.log 2>&1 & [3] 83030 django@django-s-1vcpu-1gb-sgp1-01:~/swap_hb$ cat 3.log nohup: ignoring input django@django-s-1vcpu-1gb-sgp1-01:~/swap_hb$


If $G$ contains a normal subgroup $H \cong \mathbb{Z_2}$ such that $G/H$ is infinite cyclic, then $G \cong \mathbb{Z} \times \mathbb{Z_2}$

Let $G$ be a group containing a normal subgroup $H \cong \mathbb{Z_2}$ such that $G/H$ is infinite cyclic. Then $G \cong \mathbb{Z} \times \mathbb{Z_2}$.  Since $G/H$ is infinite cyclic it's isomorphic to $\mathbb{Z}$. And since $H \cong \mathbb{Z_2}$, we have $G/H \times H \cong \mathbb{Z} \times \mathbb{Z_2}$. So the question now is can we make $G/H \times H \cong G$ (without any recourse to the Isomorphism theorems please)?  Any hints appreciated.


What is the spell save DC and spellcasting modifier for a Rogue with Magic Initiate?

As a rogue I'm planning to take Magic Initiate with warlock class. The Magic Initiate feat says:     [...] Your spellcasting ability for these spells depends on the class you   chose: Charisma for warlock [...]    cantrip 1: Booming blade or Green flame blade cantrip 2: Minor illusion 1st-level spell: Hex    My stats bonuses are: STR : -3 | DEX +6 | INT 0 | WIS +1 | CHA +4 | prof : 4  Questions:   Green flame blade :      [...] The second creature takes fire damage equal to your spellcasting   modifier. [...]   What is my spellcasting modifier? 0 from INT as rogue or +4 from CHA as warlock?   Minor illusion :      [...] If a creature uses its action to examine the sound or image, the   creature can determine that it is an illusion with a successful   Intelligence (Investigation) check against your spell save DC. [...]   What is my spell save DC? 12 (8 + 0 from INT + 4 from prof) or 16 (8 + 4 from CHA + 4 from prof)?


Can evaporated milk be converted to "regular" milk?

I've got a recipe that calls for 2 1/2 cups whole milk, but I don't drink whole milk all that often and if I buy any it'll just end up spoiling in the fridge before I can use it all.  Canned evaporated milk, on the other hand, lasts a lot longer and from what I understand its just regular milk with ~60% of the water taken out of it. With that in mind, would I be able to convert evaporated milk into "regular" milk for use in cooking just by adding an equal amount of water?


Generate executable with no dependencies on Linux

I wanted to compile a task using SDL in C++ and I wanted to run the generated executable on another Linux that does not have this library installed, so how can I compile it in a way that I can include dependencies of SDL for running on another computer with Linux without the SDL installed?


Sandbox provisioning taking over 48 hours

one of our customers requested a dev sandbox refresh on Monday (over 48 hours ago) and it is still listed as "Pending / In Queue" on CS50 (original org is on AP2). Is this normal on CS50?


The number of spells a sorcerer can learn is listed in the PHB, e.g. a 5th level sorcerer can know 6 spells total. For a wizard, it says they learn 2 spells per level.  This however is not shown for the cleric. How many spells can a cleric learn(not prepare) per cleric level, not including domain spells?


Compatibility level 100 on SQL Server 2008 R2

I'm upgrading my databases to compatibility level 100 on SQL Server 2008 R2. My next step is to check if my stored procedures, functions, views, triggers are still working properly. Running each of these is not an option.   How should I check?


Difference between using camera's macro mode vs zooming in with a telephoto lens

I'm photography enthusiast, But I'm unaware of the difference between my camera's macro mode vs zooming in with a telephoto zoom lens  What difference does it make when I zoom in with a telephoto lens onto a small flower, vs just switching into Macro mode in the camera to take the picture of that small flower?  Could someone please clarify?


The hidden flaw in "singular they"—what to do about reflexive pronouns?

We have  to a question about gender-neutral pronouns, in which he points to the "singular they" and its long history of use in English. (Note that he also advises against using it.) Example:     If someone wants to watch TV tonight, they'll have to do the dishes.   This avoids having to say "he or she" in mixed-gender situations. Okay, fine. I'm not going to get my panties in a bunch if people want to talk this way.  But it occurrs to me that "singular they"—infelicitous at the best of times—really falls apart when extended into the realm of reflexive pronouns:     If someone wants to watch TV tonight, they'll have to do the dishes all by themselves. [?]   That feels very wrong. The only alternative, if one paints oneself into that corner, is to flip it back to singular:     If someone wants to watch TV tonight, they'll have to do the dishes all by themself. [???]   That feels worse.  If I'm to state this as a question, I guess I would put it thus: How can use of a "singular they" truly be reconciled? Is it really as much of a linguistic dead end as it feels to me?


Does every language's SHA256 implementation provide different result for the same value

Probably this is very naive question, based on lack of understanding but I was watching a video from Andreas M. Antonopoulos about blockchain, bitcoin and consensus algorithms and he asked for the SHA-256 output of the string Hello!. A guy told him the first few characters, and being Windows/C# dev I decided just for fun to check the answer implementing this very simple C# method:      public byte[] Generate(string valueToHash)     {         byte[] hashValue;         byte[] stringToBytes = Encoding.ASCII.GetBytes(valueToHash);          using (SHA256 hashGenerator = SHA256.Create())         {             hashValue = hashGenerator.ComputeHash(stringToBytes);         }          return hashValue;     }   and then output the result using this method:      public static void PrintByteArray(byte[] array)     {         for (int i = 0; i < array.Length; i++)         {             Console.Write($"{array[i]:X2}");             if ((i % 4) == 3) Console.Write(" ");         }         Console.WriteLine();     }   But I got a different result.   I remember in the past that there were sites which were storing a huge databases of hashes and the actual value to produce them and back then it was possible to paste the hash value and if it's something common you will get the actual string. This got me to think that no matter what language/Os you are using, a value hashed with SHA-256 for example would produce the same result. However it seems that this is not entirely the case. The guy from the video who provided the answer turned out (from the comments) to use a Mac machine, so what exactly is causing the SHA-256 to produce different outputs for the same input? Is it the OS, is it the programming language? Maybe I've made mistake in my simple code?


60's or earlier probably "young adult" story about a community sent into the future by a nuclear accident

I know exactly when I read this story, in the spring of 1968, when I was in Germany to improve my german. Of course it could have been written any time before.  I actually read it in german. But I was not really so fluent in german, so I deliberately chose to read this rather short book with the rationale that, being a translation from english, it would have shorter sentences. And it worked, I managed to read it to the end.  I'm almost sure there was only this story in the book, but it was a short one, not a novel, just a novella and not a very long one at that. In hindsight, I would say it was for "Young Adult", but of course I was a young adult then.  The beginning was perhaps inspired by Asimov's "Pebble In the Sky". There was an incident in a nuclear power plant, and a whole community (not a big city, but a town, not too small) was sent into the future. But the Earth they reach is empty. I think the power plant came with them, because I think they still have electric power. That's how they realise that noone else is there because they don't receive any broadcast from anywhere. They use their own radio station to contact other towns or cities but get no immediate answer. But after a few days one spaceship, or maybe more, land near them. Their calls for help have been heard. Out of the spaceship came all kind of species, many alien ones, but also humans. The humans are dominant but the others are not slaves or anything, just like "junior partners". At first the people from the past are very afraid of the strange-looking aliens, but soon find them more friendly than the humans of the future.  Another common point with "Pebble In the Sky" is that these humans from space are not very warm for the Earthlings from the past. The reader at some point finds out that in the past, the humans that left Earth to become "Spacers" despised the ones who stayed on Earth. There was some bitter happenings. And mankind died on Earth. Even though these people from the past were before space travel and thus ancestors to all humans, the spacer humans from the future despise them.  Sure, they came to help, not to kill, but it appears that they want to keep them from modern technology, just help them to barely survive on the empty planet. It is the other species from space who join with the humans from the past. I don't remember any fight or bloodshed. It is just a matter of groups of influence, the spacer humans from the future finding everyone else against them and having to give in and give equal status to all.  Well, this is if I remember the end correctly. The elements which are really remember is the aliens and the humans form the past joining forces against the humans from space. I don't remember violence, but maybe I am wrong.


So I did add Glare in Compositing mode and when I render, it works as it should.  But when I try to render it with transparent background, it's not working. Why?


I am using below code for auto share on facebook in my iPhone application, but my application get crashed with EXC_BAD_ACCESS message, when i tap share button.   NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:4]; [variables setObject:@"Yours content to be shared" forKey:@"message"]; // share prepared content to fb fb_graph_response = [fbGraph doGraphPost:@"me/feed" withPostVars:variables]; NSLog(@"postMeFeedButtonPressed:  %@", fb_graph_response.htmlResponse);   help me out thanks in advance.


Problem with overlay when a tikzpicture is inside another tikzpicture

update i discovered lately  where Nickolay Kolev uses  \tikz inside a tikzpicture environment. A lot of users think that is a wrong practice and I agree that is very strange but sometimes very useful. I agree too that it's preferable to avoid this kind of situation. I use this possibility in  pgfornament.  I don't understand why if I invert the two lines of the tikzpicture (the wrapper) I get different results. overlay I think, resets the bounding box but why inside the second tikzpicture, the overlay resests the general bounding box. When I use a scope, the problem disappears ?   update I suppose that tikz's experts think it's preferable to use a scope and the question is stupid ...  Or in the pgfmanual, I read      All graphic options are local to the {tikzpicture} to which they   apply.   The picture in red has no bounding box.  \documentclass[11pt]{scrartcl} \usepackage{tikz}     \begin{document}  baseline\begin{tikzpicture}[baseline=(current bounding box.north west)]   \tikz[overlay] \path (0,0) --  (1,1) node  {\color{blue}$\bullet$};  \draw[help lines,blue!20] (0,0) grid (2,2) ; \end{tikzpicture}baseline% %  \begin{tikzpicture}[baseline=(current bounding box.south west)]    \draw[help lines,red!20] (0,0) grid (2,2) ;   \tikz[overlay] \path (0,0) --  (1,1) node  {\color{red}$\bullet$};  \end{tikzpicture}baseline     \end{document}   With pgfinterruptboundingbox     Picture in green. The bounding box is correct. The first bounding box is protected.  The solution is to place the line with overlay inside a pgfinterruptboundingbox environment so the problem is linked to the current bounding box.    baseline\begin{tikzpicture}[baseline=(current bounding box.south west)]       \draw[help lines,green!50] (0,0) grid (2,2) ;   \begin{pgfinterruptboundingbox}    \tikz[overlay] \path (0,0) --  (1,1) node  {\color{green}$\bullet$};    \end{pgfinterruptboundingbox} \end{tikzpicture}baseline       No problem with a scope   \documentclass[11pt]{scrartcl} \usepackage{tikz}  \begin{document} baseline\begin{tikzpicture}[baseline=(current bounding box.north west)]   \tikz[overlay] \path (0,0) --  (1,1) node  {\color{blue}$\bullet$};  \draw[help lines,blue!20] (0,0) grid (2,2) ; \end{tikzpicture}baseline  \begin{tikzpicture}[baseline=(current bounding box.south west)]    \draw[help lines,red!20] (0,0) grid (2,2) ;  \begin{scope} [overlay] \path (0,0) --  (1,1) node  {\color{red}$\bullet$}; \end{scope}   \end{tikzpicture}baseline  \end{document}    ( What is the real differences between a scope and a tikzpicture ?)  update The question is perhaps too general, better is How tikz performs overlay ?


How to make an object change color after being touched by another object?

So I've several dominoes in a circle, and I would like each domino to change color after being touched by the previous domino. I can do it manually using keyframes but this will take ages they are 200. So is there is an easier way to do it? Is there is a script that automatically adds a changing color keyframe every 10 frames as that is what I found to be suitable.


Ethernet Network card BCM4401-B0 no longer recognised?

I updated Ubuntu to 14.04 LTS and I can no longer see my network - No network devices available shows in the network drop down menu. Networking is enabled and if I choose to boot my Dell Inspiron 1300 from the network I do see some activity on the card but none in Linux. Both lights on the nic stay on permanently.   I don't know where to look for the equivalent of event viewer or similar to even start to troubleshoot, having only about two hours with the install before I updated. Original install was last October.   Any pointers on where to look in logs etc would be gratefully received.   02:00.0 Ethernet controller [0200]: Broadcomm Corporation BCM4401-B0 100base-tx [14e4:170c] (Rev 02) Subsystem dell Device [1028:01c9]  cat /etc/modprobe.d/blacklist-bcm43.conf # Warning: This file is autogenerated by bcmwl. All changes to this file will be lost.  blacklist b43  blacklist b43legacy  blacklist ssb  blacklist bcm43xx  blacklist brcm80211  blacklist brcmfmac  blacklist brcmsmac  blacklist bcma  blacklist b44  install wl  modprobe -r b43 b44 b43legacy ssb; modprobe --ignore-install wl ; modprobe --ignore-install b44


Closed form of $\sum_{i=1}^{N} \frac{1}{i}$?

I'm trying to figure out the closed form formula for the following:  $$ \sum_{i=1}^{N} \frac{1}{i} $$  I think the denominator will have $N!$ in it but otherwise I cannot figure it out. Can someone help?


How to accurately measure time taken by a sort function in JavaScript

I am trying to measure the time taken by various sorting algorithms in JavaScript I have tried various ways to measure the time taken but it always gives wrong time var startTime, endTime, timeDiff;  startTime = new Date(); Bubble(); endTime = new Date(); timeDiff = endTime - startTime; //in ms  I have also tried returning the endTime from Bubble sort function but still the time calculated was wrong Bubble Sort function     function Bubble()     {         c_delay=0;              for(var i=0;i<array_size-1;i++)         {             for(var j=0;j<array_size-i-1;j++)             {                 div_update(divs[j],div_sizes[j],"yellow");//Color update                              if(div_sizes[j]>div_sizes[j+1])                 {                     div_update(divs[j],div_sizes[j], "red");//Color update                     div_update(divs[j+1],div_sizes[j+1], "red");//Color update                                      var temp=div_sizes[j];                     div_sizes[j]=div_sizes[j+1];                     div_sizes[j+1]=temp;                                      div_update(divs[j],div_sizes[j], "red");//Height update                     div_update(divs[j+1],div_sizes[j+1], "red");//Height update                 }                 div_update(divs[j],div_sizes[j], "blue");//Color updat             }             div_update(divs[j],div_sizes[j], "green");//Color update         }         div_update(divs[0],div_sizes[0], "green");//Color update         enable_buttons();         return new Date();     }  Calculating time after it has been returned by sort function:         startTime = new Date();         endTime = Bubble();         timeDiff = endTime - startTime; //in ms  I have even tried with performance.now() but still not getting accurate time taken by the sort function


If Steve Rogers wasn't so weak, could Cap be even stronger?

I have seen a fair amount of discussion on whether or not Captain American  or if , which got me wondering. If Steve Rogers weren't so weak prior to the SSS (Super Soldier Serum), would he be  stronger post SSS?   For example, Steve could bench the bar (45 lbs, speculation), and Cap can bench around 1100 lbs (see superhuman link above). If Steve could have benched 145 lbs, could Cap have benched 1200 lbs.  This question looks like it may invite some opinions and discussion, but I am looking for something explicitly supported in the comics. Something along the lines of a What-If or examples of other SSS projects who were stonger than Steve before AND stronger than Cap after SSS will be accepted in lieu of explicit support (because I doubt it is out there).


NullPointerException when using an object to call a method that has Selenium WebDriver code

I'm new to JAVA and Selenium and I really want to understand why my code doesn't work and the NullPointerException is thrown.  Basically, what I want to do is call a method that has WebDriver implementations from a different class to "Master Test" class that will be executed as a JUnit test.  But every time I execute my Master Test then NullPointerException is thrown.  Here's my Master Test that will be executed:   package common_methods;  import org.junit.*;  public class Master_Test extends Configurations {      @Before     public void setUp(){         try{         testConfiguration();         driver.get("http://only-testing-blog.blogspot.ro/");         } catch (Exception e){             System.out.println("setUp Exception: "+e);         }     }      @After     public void tearDown(){         driver.close();     }      @Test     public void masterTest(){         try{         TestCase1 testy1 = new TestCase1();         testy1.test1();         }catch (Exception master_e){             System.out.println("Test Exception: "+master_e);         }     } }   Now for better understanding here is the Configurations Class that is being extended:  package common_methods;  import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver;  public class Configurations {      public WebDriver driver;      public void testConfiguration() throws Exception{         System.setProperty("webdriver.chrome.driver", "D:\\Browser_drivers\\chromedriver_win32\\chromedriver.exe");         driver = new ChromeDriver();     } }   And here is the TestCase1 Class from which I get my method:  package common_methods;  import org.openqa.selenium.*;  public class TestCase1 extends Configurations{      public void test1() throws Exception{         driver.findElement(By.id("tooltip-1")).sendKeys("Test Case 1 action");         Thread.sleep(5000);     } }   Why do I get the NullPointerException?


What is the point of the `cd` external command?

As referenced in , POSIX systems have an external binary cd in addition to the shell builtin. On OS X 10.8 it's /usr/bin/cd. You can't use it like the builtin cd since it exits immediately after changing its own working directory. What purpose does it serve?


I have a scenario  location / {  # If the request_uri is /a/b/c  # then proxy_pass http://upstream/c  }   Please help me out with any suggestions. I saw this  , but the solution doesn't work for me.


why &drupal_static is getting used with refernce?

I am going through different modules and I found this &drupal_static function but exactly dont know why is getting used can any one please explain what is the purpose ?


Put plus, minus, time and divide sign in a square

For circumscribed circle, it is $\otimes$, $\ominus$, I get it, but how do you put them inside a square?  i have seen something similar in  and .


Why are two objects with the same values not equal?

I run the following in console why is the output false. Not asking how to compare two objects but why these two objects are not same.   > a = {same:'same'} Object {same: "same"} > b = {same:'same'} Object {same: "same"} > a === b false > a == b false


How to correctly cite a bibliographic source?

I've a problem during the citation bibliographic source. %In the bibliography file: @article{MER,     Title = {Mars Exploration Rover Engineering Cameras},     Author = {J. N. Maki,J. F. Bell III, K. E. Herkenhoff, S. W. Squyres, A. Kiely, M. Klimesh, M. Schwochert, T. Litwin, R. Willson, A. Johnson, M. Maimone, E. Baumgartner, A. Collins, M. Wadsworth, S. T. Elliot, A. Dingizian, D. Brown, E. C. Hagerott, L. Scherr, R. Deen, D. Alexander, J. Lorre},     Journal = {Journal of Geophysical Research},     Year = 2003,     Volume = 108 }  %In the .tex file Cameras selected for this work have been taken from NASA’s MER (Mars Exploration Rover) mission \cite{MER}  After compiling I've the following warning: CItation "MER" on page 15 undefined on input line 594.


Is this formula P(A|C)=P(A|B)*P(B|C) correct according to Bayes' theorem? I don't think it correct but for a transition matrice system we can have something like this So I don't know how to prove P(A|C)=P(A|B)*P(B|C) in transition matrice though it looks very intuitive


How can I remove a (down)vote that I accidentaly made

I noticed that I have accidentally casted a down-vote, and now it is locked for removal.   I noticed this by my reputation gain not being equal to a multiple of 5 and when I looked it up (I thought somebody gave me a down-vote) I found out that this down-vote must have occurred accidentally while browsing on the small touchscreen of my phone.  This happened before and in that case I made some cosmetic edit to the post and removed the vote. This does not really seem like a good option especially when the answer/question is fine.  Is there a better way to remove a locked vote?


Not all sets in $\mathbb{R}$ are Lebesgue measurable sets

Let $\mathcal{B}(\mathbb{R})$ be the Borel-sigma algebra on $\mathbb{R}$, and let $\mathcal{L}$ be the Lebesgue sigma-algebra which is a unique extension of $\mathcal{B}(\mathbb{R})$ with respect to the length measure $m$.   I'm trying to find a counter-example for each for the following:   $\mathcal{L}\neq \mathbb{P}(\mathbb{R})$ $\mathcal{L}\neq \mathcal{B}(\mathbb{R})$   For $2$, I just need to find a null set (has length $0$) that is not a member of $\mathcal{B}(\mathbb{R})$. I thought about the Cantor set because it has measure zero, but it's apparently Borel measurable.


General Advice on choosing Mathematics as career path

My Background :    I am Bachelors of Arts graduate, 27, I work as a Clerk currently. I have interest in Mathematics so I started studying it. I have studied "How to Prove It ". After getting basics I am doing Real Analysis and starting onto Abstract Algebra. I have covered Calculus 1,2,3 already from Adrian Banner'S Calculus Lifesaver videos.      I have been given advice that since I am 27, so it's too late to graduate in Mathematics and do P.H.d because that will can take 7-8 years which means that i will be around 35-36 years of age. I have been told that i should pursue mathematics as interest only (hobby).   I wish to know advice and opinions of experienced people before this question getting closed. If it gets closed, I have email I.d in my profile description, you can send me responses there. But I want to reach out to mathematicians before it gets closed.  Thanks


I am a Canadian currently sitting in a room waiting to take the Oath for American citizenship. They told us we will not be able to enter the US on a foreign passport once we are American citizens. However, my younger sister who has dual citizenship has previously traveled with her Canadian passport to other countries and successfully reentered the US.  Will I need to have an American passport to reenter the US?


I exported an svg 1.1 file from Adobe Illustrator CS6. I joined all the shapes by pressing Ctrl+J. I set the curve shape to 2D. Then I extruded using the right hand side panel:    So far so good. But when I try to apply even a slight bevel, all hell breaks loose:    It does get less insane if I bring the bevel down by multiple factors of 10... But then I really don't have much of a bevel.  Am I doing something wrong? Am I using the wrong kind of object? Should I be doing this with meshes? Do my curves just need cleaning up?


is there any browser/browsers which have Javascript console in it? or is there any way to add Javascript console to an browser like an addon or  does the Chrome browser have console, if yes how can i access it?


Sorting values in large dictionary fetched from mysql in python

I connected to mysql database and fetched two columns from mysql with python with       query  = ('select test_id, a_id from b.atc_id_TO_cID ')       cursor.execute(query)     rows = cursor.fetchall()        CountinmyDi = {}      for row in rows:              if not row[0] in CountinmyDi.keys():                     CountinmyDi[row[0]] = 1             else :                     CountinmyDi[row[0]] += 1     for key in CountinmyDi.keys():                     print str(key) + ":" ,CountinmyDi[key]   and created a dictionary CountinmyDi to count the unique items inside the dictionary. Now i have for example :   testA : 2 testB : 82 testC:102 test D : 3 test E:1 and so on .. about 220 items   I want to sort the items inside my dictionary for example increasing to decreasing order based upon their values for instance testC : 102, testB : 82 , testD :3 , test A :2 , test E : 1. I would like to get an idea how i could do that . Thank you and if you need further infos, i could gladly provide.


Uncertainty in Linear Regression Coefficients

Suppose I do linear regression for data $y \in \mathbb{R}^n$ and design matrix $X \in \mathbb{R}^{n \times m}$, with $n \gg m$. I seek  $$ \hat{\beta} = \operatorname*{argmin}_{\beta \in \mathbb{R}^m} \| X\beta - y \|_2. $$  What are the ways to quantify uncertainty in $\hat{\beta}$? I considered bootstrap and maybe a Bayesian estimator that may give a prior with closed form expression for the variance of $\beta$. What are other approaches?  References are appreciated but a full derivation (with intuition) would be ideal.  Full derivation:


Short story: Man travels through time, meets four incarnations of himself

Does anybody recognize this story?  A man fiddles with a time machine, and meets another man.  As the story progresses, the man is now the second man, meeting the earlier incarnation of himself.  The story progresses such that from the first person point of view the protagonist is sequentially one of three or four characters he meets.  I recall that when he manipulated the time controls he referred to the "vernier dial."


Move all files with a certain extension from multiple subdirectories into one directory

I have a bunch of .zip files in several directories:  Fol1/Fol2 Fol3 Fol4/Fol5   How would I do move them all to a common base folder?


Why taking components of a component of a vector is invalid?

Suppose there's a force $F$ of magnitude 10 newtons in the direction of positive y-axis acting on a particle A. I know that the particle would not experience any force in the positive x-direction because,  component of force $F$ in the positive x-direction $=|F|cos90°=0$.   But if we first take the component of $F$ at an angle of 45° to the positive y-axis, it is,   $|F|cos45°=\frac{10}{\sqrt2}\text N$.   If we now consider this a vector (can we? that is the main question), we can find its component in the positive x-direction (it makes an angle of 45° with the positive x-axis) ,   $\frac{10}{\sqrt2}\times cos45°=5\text N$. According to this result, the particle should experience a force of 5 newtons in the positive x-direction, which is impossible. I want to know what all is wrong in the above reasoning. Thanks!


I have installed a ubuntu 14.04 in my company, and I want to block websites in my browser Firefox/Chorme, but how can I do this?   Thanks!


Creating a custom character that automatically adjusts size in math mode?

After a lot of searching, I finally found the .pdf's for the elusive Griffiths script r character used in his ubiquitous undergraduate electrodynamics book. I made a simple package that allows me to use the figures as math characters:  \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{scriptr}[2014/06/18 Griffiths' Script r Character] \RequirePackage{graphicx}  \def\rcurs{{\mbox{$\resizebox{.101in}{.08in}{\includegraphics{C:/Program Files/MiKTeX 2.9/tex/latex/scriptr/ScriptR.pdf}}$}}} \def\brcurs{{\mbox{$\resizebox{.104in}{.08in}{\includegraphics{C:/Program Files/MiKTeX 2.9/tex/latex/scriptr/BoldR.pdf}}$}}} \def\hrcurs{{\mbox{$\hat \brcurs$}}}   There are two issues with it that I'd like to fix.   I would like to make it so that the character automatically adjusts its size in the main body of a document depending on the size of the font. For example, in 12pt font it looks like this:  In this case it looks as though it fits in perfectly with the rest of the text. However, in a smaller font size such as 10pt, it looks a little too big compared to its adjacent characters. In fact, it almost looks like capital letter:  A similar problem persists whenever working with the character in math mode. When used with \frac, the character looks fine:  But when used with \tfrac, the character looks far too big compared to what's in the numerator:    What's the best way for me to make it behave more like an actual character in math mode?


Search for emails from contacts with multiple email addresses

At my current company, all employees have *.com and *.de email addresses. The problem now is that if I search for emails from a certain contact I have to choose between emails from either one of the two. Is there a way to be able to search for both of them at once?


Windows 10: Enabling Documents folder as default for storing and saving user data

Right now, default space which Windows 10 tells the programs to use it as (My) Documents folder is C:\Users\haa_admin\OneDrive\اسناد. (Documents folder is not shown in File Explorer) This has made problems for some of my old games which use (My) Documents folder as the default space for saving progress. Because they are old and they don't know anything about OneDrive and Persian (اسناد means documents) so they do not know where to put their saving folder. ()  I know that this happened because when I was installing Windows somehow I let OneDrive to take care of my libraries and personal folders instead of "This PC Only" but right now, OneDrive is no longer exists on my PC. I have uninstalled it, yet it has messed things up as I described above.  I googled a bit and I found this:    It says that in OneDrive settings I can give the control back to "This PC" but as I said earlier, I have uninstalled OneDrive.  How can I fix this? How can I set C:\Users\haa_admin\Documents as default and remove these leftovers of OneDrive?  Tip 1: I am using an user-named account which has administrative rights.  Tip 2: Default system and display language is English, not Persian and I never changed it since installing Windows.  Tip 3: The abandoned C:\Users\haa_admin\Documents has no LOCATION tab under its properties.


Boot problems after upgrading from 12.04 to 12.10

I am not an experienced Ubuntu user.  I updated my existing 12.04 until no more updates were available and then I chose to upgrade my system to version 12.10.  All went well (or at least I thought it did) until I was prompted to "Restart" the system.  Once I restarted the system I could hear my HDD doing its thing and then saw the screen come on and it said something about either waiting for something to happen (which I chose to do) or press "S" to skip mounting or something like that (I couldn't read it fast enough).  Anyhow, the computer locked up and it wouldn't boot into Ubuntu.  I powered the system down and restarted it hoping to see the message again, but it didn't return.  It just locked up during the boot process and I haven't seen my login screen again.  I have a dual boot configuration with Windows Vista Home Premium (32-bit) and I have never had a problem upgrading in the past.  My processor is an AMD 64-bit and I have always used the 64-bit version of Ubuntu with no problems.  I would appreciate your help in this matter.  Sincerely,  Dennis


Most Efficient Spending Habits To Build Credit Given My Circumstances

I had a question regarding building credit. I have no past credit history, and just opened a secured card with a $200 credit to help me build mine (yes, it reports to all 3 bureaus). I currently have no use for credit, but would like to build it in case I want to buy a house somewhere down the road.   I've read that I should be keeping my debt below 25-30% of my credit, which is no problem. I am curious, however, if it makes a difference how much debt I keep, below that threshold (as long as I'm paying on time obviously). Is there any difference between my spending $0.10 a month vs closer to that $50-60? Should I spend nothing, to keep my balance at a constant 0? I'm curious what the absolute best practice I can use on this card to build credit quickly is, as well as how quickly at that rate I should expect my credit to rise from no history.  Advice appreciated!


Best place to ask question about different usage of Surface Pro3

as above. Simple. Particularly how to use Surface Pro 3 as a 2nd monitor only. not as a surface pro itself. i.e. I have a laptop and use surface pro as a second monitor.


How to get correct arrow orientation on TikZ arc?

I'm trying to fix the following TikZ figure, where the circle device in the middle should be embraced by two bended arrows pointing counter-clockwise.    I have drawn these arrows with an arc path, but the tips of the arrows are unexpectedly both pointing upward.  Any idea how to get these arrow tips to follow the direction of the arc?  Here is my code for the above figure:  \documentclass[12pt]{article}  \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{calc}  \begin{document} \begin{tikzpicture}   \draw (0,0) circle (1cm);   \draw[fill=gray!20]  (23:0.45cm)     -- (23:1cm) arc[radius=1, start angle=23, end angle=-203] (157:1cm)     -- (157:0.45cm) arc[radius=0.45, start angle=157, end angle=23] (23:0.45cm);   \draw[fill] (0,0) circle(2pt);   \draw[->,>=stealth',semithick] (150:1.2cm) arc[radius=1.2, start angle=150, end angle=210] (210:1.2cm);  \draw[->,>=stealth',semithick] (-30:1.2cm) arc[radius=1.2, start angle=-30, end angle=30] (30:1.2cm);   \foreach \x/\y in {1/0,2/0,3/0,4/1,5/1,6/1,7/0,0/1}     \node[rotate={\x*45-90}] at ($(0,0)!.75!\x*45:(1,0)$) {\y} ; \end{tikzpicture} \end{document}


How to Export 3D Model with current materials

How would I go about exporting my 3D model and including the shaders I've made and have applied to the objects?  Edit: I've spent a lot of time working on a 3D model which uses shaders for materials, I would like to know how I can now export this model with the materials so I can import it into another program and it be pretextured


How to recover data from corrupted SQL Server database?

We had several power outages and server rebooted couple times which seemed to cause issues with one of the databases.  We tried detaching at attaching database again but it looks like database is corrupted and we’re getting the  Msg 5172, Level 16, State 15, Line 1  Claiming that database header is invalid. Is there anything we can to do repair database or extract data from MDF file?  We do have a backup but it’s like 2 weeks old and doesn’t contain all data.


I want a list which is a combination of list of list elements For example:  my input   x = [['P'], ['E', 'C'], ['E', 'P', 'C']]   The output should be   ['PEE','PEP','PEC','PCE','PCP','PCC']]   Any help is highly appreciated.


As the question says, I'm looking for the c# equivalent of the LinkedHashMap in Java.  I need to be able to retrieve keys and values by index, get the size. I need the elements to be ordered in the way they are inserted. One key should be matched to exactly one value.  Collections I've tried (And problems with them): NameValueCollection - Allows one-many linking. I'm guessing this causes an unnecessary overhead. OrderedDictionary - Unable to retrieve key by index.  EDIT : It has been pointed out that no such equivalent exists in C#. In the linked question, the answer points to a forum for an example implementation, which appears to be down. Could someone perhaps provide an example implementation here?  EDIT 2 : A CookieCollection from System.Net appears to be what I need. How would this react to larger sizes (number of elements)?


What CMYK values should I use for rich black, and how should I handle tints/shades?

I'm working on a full color piece in Illustrator which has a few large black and grey areas.  I'd like the black to be a rich black. I was thinking c30 m30 y30 k100. What is the best ways to match my gray areas?


I followed the steps listed here:   And if I hit ctrl + shift + T, zsh opens up, but if I start Tilda, it still uses bash.  BUT, the tricky part: if I sudo su on Tilda, zsh appears!  What is happening?


Is there a way to tell python that I want to perform (all) my aritmetics rounding the results (always) to 3 decimals?


Issues of using if statements within while loops

I'm having an issue with if-statements that are encapsulated in while loops, in summary the if-statements are not recognising whether the stated condition is true or not (according to my trouble shooting steps) but the condition should definitely be met.  Here is a list of what works (therefore they should be left out):   The DB Connection.  The initial SQL select statement  The while loop retrieves all database coloumn and row valus as excpected  The Try/Catch block and its exception handling. Executing SQL statements inside the while loop but before any if-statement.   My most recent trouble shooting step is what led me to identify where the issue is occurring. The two variables "ValueInBox" AND "ProductName" always has the expected value which means that any of the first three if-statemnet should be executed as their condition is true! But it doesn't produce an excpected output :(  How do I know you may ask?!?!? if look at my last if statement, this is the only one that executes, and it prints out the value of the variables on the consol window as shown in the screen shot below:    As you see from the screen shot that according to the value of the variables, those first three if-statements should execute, but nooo no matter how much time I try to reason with these if-statements they go on strike and demand a pay rise :(  Im sure i missed out on something realy stupid and small, Thanks!  public void actionPerformed(ActionEvent arg0) {     try {         Connection conn=DriverManager.getConnection("jdbc:ucanaccess://h:/AgentsDataBase.accdb");         Statement s = conn.createStatement();         String stmnt = "SELECT *  FROM WishListProducts WHERE ProductStatus = Yes";         ResultSet rs = s.executeQuery(stmnt);          String ValueInBox = AddRemoveWishlistProductTF.getText();         //stmnt = "DELETE FROM WishListProducts WHERE ProductName ='Penguin'";         //s.executeUpdate(stmnt);          while (rs.next()) {             String ProductName = rs.getString("ProductName");              //stmnt = "DELETE FROM WishListProducts WHERE ProductName ='Penguin'";             //s.executeUpdate(stmnt);             if (ProductName == ValueInBox ) { // if it exists within the DB                              stmnt = "DELETE FROM WishListProducts WHERE ProductName ='Penguin'";                 s.executeUpdate(stmnt);             }             else if(ProductName == "Penguin") {                 stmnt = "DELETE FROM WishListProducts WHERE ProductName ='Penguin'";                 s.executeUpdate(stmnt);             }             else if(ValueInBox == "Penguin") {                 stmnt = "DELETE FROM WishListProducts WHERE ProductName ='Penguin'";                 s.executeUpdate(stmnt);             }             //System.out.println("val in box" + ValueInBox);             //System.out.println("Val in DB" + ProductName );}             else if (ProductName != ValueInBox) { // if it does not exist                 System.out.println("val in box" + ValueInBox);                 System.out.println("Val in DB" + ProductName )              }            }         s.close();     }        catch(Exception e) {         e.printStackTrace();     }  }


changing path of program files doesnt work on windows 8.1

I have an SSD drive with windows 8.1 and another regular SATA drive for none OS data.  I want to put the Program Files and Program Files (x86) folders on the SATA drive to preserve room and extend the life span of the SSD drive.  I've edited the Registry keys at  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion  I moved all the program files folders to the other drive and rebooted the machine.   Unfortunately nothing seem to have changed, new program still go by default to the C:\Program Files which is on the SSD drive.  Any idea what am I doing wrong?


If really long tags are selected for a question, it pushes the user info down:    Windows 7 Chrome Version 31.0.1650.63 m  Wrapping the tags would look better:


The book Javascript: The definitive guide states the following in it's 6th edition, in the chapter      4.13.3 The delete Operator   var a = [1,2,3]; // Start with an array delete a[2]; // Delete the last element of the array a.length // => 2: array only has two elements now   But when i tried the above snippet in Firefox and in chrome, the array's length was still 3.  Is this a wrong information from the book or is the implementation of javascript in the browsers differ from a javascript spec?  Note: I tried splice and it removed the element. My doubt is that is there a spec in ecmascript specifications that says delete should remove the element and the browsers decided not to implement according to that  script. or is the book wrong..?


Why implement Comparable interface when you can define compareTo method in a class?

You can define the compareTo method in a class without implementing the Comparable interface. What are the benefits of implementing the Comparable interface?


No space between ms word numbering and some but not all headers

I'm using numbering list, however, on some of the headers I get no space between the numbering and the headers.   I've included an image in which you can see how there is no space between 2.8 Laravel and 2.9 Eloquent ORM, however, there's more than enough space between 2.10 Composer and 2.11 Apache.   Any idea why is this happening?


Image of the union and intersection of sets.

Let $f:X\to Y$ be a function, and let $\{S_{i}:i\in I\}$ be a family of subsets of $X$. Then, $$f\left(\bigcup_{i \in I}S_i\right) = \bigcup_{i \in I}f(S_i).$$  The case where $f(A\cup B)= f(A)\cup f(B)$ is trivial and I've proved this many times in other classes. However, I believe that the problem I am running into is with notation. That is, I don't understand what the set $I$ is. Will my proof method be just the same?  Also, I would like a little help on one more problem. If $S_{1}$ and $S_{2}$ are subsets of a set $X$, and if $f:X\to Y$ is an injection, then $f(S_{1}\cap S_{2})=f(S_{1})\cap f(S_2)$. Now, I know how to prove $f(S_{1}\cap S_{2})\subseteq f(S_{1})\cap f(S_2)$ if our function is not injective, and I know counterexamples of why it isn't equal our function isn't injective. Unfortunately, I am not sure how to use the fact that our function is injective to prove $f(S_{1})\cap f(S_2) \subseteq f(S_{1}\cap S_{2})$. Any help would be much appreciated. Thank you very much!  Note: These questions are coming from Rotman's Intro to Abstract Algebra Chapter 2.


Remove extra header lines from file, except for the first line

I have a file that looks like this toy example.  My actual file has 4 million lines, about 10 of which I need to delete.  ID  Data1  Data2 1    100    100 2    100    200 3    200    100 ID  Data1  Data2 4    100    100 ID  Data1  Data2 5    200    200   I want to delete the lines that look like the header, except for the first line.  Final file:  ID  Data1  Data2 1    100    100 2    100    200 3    200    100 4    100    100 5    200    200   How can I do this?


Can you pick the same class twice to multiclass with different archetypes?

Can a character multiclass into the same class twice and use two different archetypes in each?  For example: A character could level until the 5th level as a 'Two-handed Fighter' (archetype) and then pick the 6th level as a 'Titan Fighter' (archetype), becoming a Two-handed Fighter 5/Titan Fighter 1?


How do I make a custom Ubuntu ISO for fully offline installations?

I am based in India and we don't have reliable Internet everywhere. I would like to build an Ubuntu installer ISO with the following features:   All proprietary drivers should be available offline At least one complete language pack (say, English/USA) should be available offline Certain extra packages And finally, things like flashinstaller or Chrome, which download data from the web while installing, should also work.   How do I go about building something like this?  -


I'm working on the CSS for a website for a project and my Footer DIV has decided it wants to get out and see the wide world. All the elements inside the footer are displaying correctly, they're just deciding to float over the top of my content DIV/  I've tried an absolute to get the thing to stay put and had zero luck with that. It will stay put if i used a 'fixed' but I'm not happy with how that looks.  This is how the footer is defined in my CSS sheet.  footer { float: left;  width: 960px;  height: 40px;  background-image: url("images/footer.jpg"); background-repeat: no-repeat;}       Here's how the Footer is implemented at the bottom of the Index.html page

Copyright 2019- Nature Snap Photography Site Maintained by____


Binary matrix multiplication: finding the number of ones

Consider a binary matrix $\mathbf A_n$ corresponding to values $0$ to $2^n-1$ where each row represents a length $n$ binary representation of a real number. For example, for $n=3$ we have  $\mathbf A_3=\begin{bmatrix}      0   &  0   &  0\\      1    & 0  &   0\\      0   &  1  &   0\\      1   &  1   &  0\\      0   &  0  &   1\\      1  &   0   &  1\\      0   &  1  &   1\\      1  &   1    & 1 \end{bmatrix}.$  Consider two arbitrary non-zero binary vectors $\mathbf v_1, \mathbf v_2$ of length $n$ (column vector) such that $\mathbf v_1\neq\mathbf v_2$. Now, assume $\mathbf u_1=\mathbf A\mathbf v_1$ (mod $2$) and $\mathbf u_2=\mathbf A\mathbf v_2$ (mod $2$) . I can verify for an arbitrary $n$ that $\mathbf u_1.^*\mathbf u_2$ (element-wise multiplication) has always $2^{n-2}$ ones. For example, for $\mathbf A_5$ and $$ \mathbf v_1=\begin{bmatrix}0,\ 0,\ 1,\ 1,\ 1\end{bmatrix}^T, \mathbf v_2=\begin{bmatrix}0,\ 1,\ 0,\ 0,\ 0\end{bmatrix}^T $$ We have  $$ \mathbf u_1.^*\mathbf u_2=\begin{bmatrix} 0\     0\     0 \    0 \    0  \   0\     1 \    1\     0 \    0 \    1  \   1 \    0  \   0 \    0  \   0 \    0 \    0\     1\  1\     0 \    0  \   0\     0 \    0\     0 \    0 \    0 \    0 \    0\     1\     1\end{bmatrix}^T $$ of length $2^5$ which has $2^{5-2}=8$ ones. I am looking for an analytical way to prove this.


I have an EC2 instance on which I was trying to install spark.I removed the required system python version from the system by mistake and nothing relying on python seems to work now including yum and other system tools.  I need to fix the broken python version in my EC2 Linux(Centos).  Below is the error I get when I try to use yum  -bash: /usr/bin/yum: /usr/bin/python2.7: bad interpreter: No such file or directory   I guess, I deleted a required version of python.


If $ \lim_{n \to \infty} (2 x_{n + 1} - x_{n}) = x $, then is it true that $ \lim_{n \to \infty} x_{n} = x $?

If $ (x_{n})_{n \in \mathbb{N}} $ is a sequence in $ \mathbb{R} $ and $ \displaystyle \lim_{n \to \infty} (2 x_{n + 1} - x_{n}) = x $, then is it necessarily true that $$ \lim_{n \to \infty} x_{n} = x? $$  Could anyone kindly offer suggestions on how to approach this problem? Thanks!


If  <?=$var?>    is used only if short tags are enabled, then does that mean the regular version of that is:  <?php=$var?>   The second one doesn't work tho.


Impossible events that actually happened

I'm looking for the name of a paradox I found on the internet some time ago. I'm not entirely sure about the formulation which involved a few mathematical expressions, but this is how I recall it in plain language:     The probability of selecting a particular point on a circle when choosing randomly (with continuous distribution) is zero everywhere.      An event with zero probability is impossible.      Let's draw a circle and select a point on it randomly.      Now an impossible event has already happened and it is still impossible.   What is the name of paradoxical statements similar to this one, and what is the canonical explanation?


Story about a young time traveller who travels to a post-apocalyptic Britain

A young person travels in time to post-apocalyptic Britain where the wheel is outlawed. I seem to remember there were people, perhaps monks, ruling from underground. They revered a book of mathematics written by the traveler's teacher. I read it in the 60's or early 70's


Reuse tikz picture in another tikz picture

I have a TikZ picture  \begin{tikzpicture}[scale=0.5] \draw (-1,0) arc (180:360:1cm and 0.5cm); \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm); \draw (0,1) arc (90:270:0.5cm and 1cm); \draw[dashed] (0,1) arc (90:-90:0.5cm and 1cm); \draw (0,0) circle (1cm); \shade[ball color=blue!10!white,opacity=0.20] (0,0) circle (1cm); \end{tikzpicture}   which makes a small ball.  Is it possible to reuse this shape in another tikz picture?  I have another tikz picture in which I use  \draw[fill=yellow!30, fill opacity=0.5,text opacity=1] (B) circle (0.7cm) node[right] {$A$};   Instead of circle I want my small custom ball. How is that possible?


Prove that if $a^n-1$ is prime, then $a=2$ and $n$ is prime.   I just started a semester with Number Theory, and I don't know how I am expected to be dealing with such questions. I am really frustrated. I would really appreciate your help.


When or why did the pronunciation of the word "renovate" change?

If "renovate" is to make new again (re-nova)...why is it not pronounced ree-nove-ate?


How do I get a list of obsolete packages?

I'm trying to figure out a way to get a list of the packages that are no longer available in the repositories that I have enabled. This workstation has been through quite a few versions of Ubuntu and has had many 3rd party repositories added and removed. I'd like to get a list of software that I have from these removed repositories, so I can clean it up or add back the appropriate repositories.


For my website and coming all sites from now on, I want to have a wiki system, which can -  1) Support internalization easily, that is the wiki has a system to serve contents based on the language user selects. For example keeping 'en' as default, the wiki has to be able to serve other language articles, if a different language version exists. If i have a F.A.Q. page in english and spanish, changing language would server appropriate content.  2) It should be light weight and easy to install.  3) Only I can edit contents, others have no edit option. The wiki system has to have an easy way to switch off editing by guests. All edits are admin only.  I'm considering MediaWiki, but I wish to know if there is a better wiki system agreed by experienced and veterans. :)  Thanks, Anjan


Is it even possible to resolve the truth of different philosophic schools of thought?

A logical argument has propositions or axioms which are assumed to be true.  It then has logical statements/manipulations which, if all valid, reach a logically valid conclusion.  If the argument is logically valid, then we can say that the conclusion is true if all the propositions are true. However, the logical validity of the argument says nothing whatsoever (and cannot) about the truth of the propositions.  They are simply accepted as true for the exercise of evaluating the logical validity of the argument.  It would seem to me that all a philosopher can truly do is determine if a philosophical or metaphysical school of thought is logically valid or not.  And adopt, or not, a given school based on your acceptance of the evidence for its propositions.  One can never get to the ultimate truth of any of its propositions, and therefore, can never address the ultimate truth of any of its conclusions.  One can only determine whether a given philosophical school of thought / logical framework / worldview is a logically valid paradigm with which to view the world - that is logically consistent within itself.  For example, as we perceive that the world is more complex than our mind - as we experience our minds - virtually all people accept that  is false based on their own personal experience of reality, but no one has been able to prove (nor do I believe anyone can prove) that solipsism is false.  It can be called "trivial", but not false.    This is illustrated by the conclusion of Dr. Kelly James Clark, in an Essay in which he argues - to the best of my understanding, that belief in God can simply be accepted as a propositional truth, without needing any evidence for it (emphasis added below). His reasoning ultimately is not that there is no evidence for the propositions of the existence of God, but that completely rational people using completely rational reasoning, just plain end up disagreeing on which philosophic system is correct, and no propositional belief can be fully proven.  Neither person is "wrong" from a philosophic standpoint.  All primary beliefs are based to some measure, on faith.     My point is not to make people skeptics. Rather it is my intention to   demonstrate the obvious truth that rational people rationally disagree. What people start with determines what people will end up with. What people reason from determines the kinds of inferences that it is rationally permissible for them to accept. There simply is no belief-neutral, obvious and simple foundation of beliefs to which to appeal in arguing for the existence of God.      (Dr. Kelly James Clark, )     So, what is the answer?  1. Is there any way to "prove" any given logically consistent epistemological system is true?  2. Or is Dr. Clark correct that there is no belief-neutral, obvious, and simple foundation we can base beliefs of propositional truths upon?


Disable alert e-mails from Mail / Calendar

I recently got a Macbook Pro for work, and am pretty new to the platform. One of the annoying things I noticed, is that after I configured all of my Gmail accounts, I started automatically getting these "alert" e-mails for calendar appointments.  I don't want Mail or Calendar to send me alert e-mails, because I already get them directly from Google.   My question is: How can I disable these alert e-mails from occurring?


Am I at risk? How to interpret debscan vulnerability output?

Today I came across a paragraph on how to    debsecan was mentioned. I  and executed debsecan and as a result I received a very long and .    EDIT   I did run debsecan --suite=stretch I am running debian stretch 9.9 with kernel 4.9.0-9-amd64 My sources.list contains:    deb http://ftp.stw-bonn.de/debian/ stretch main deb-src http://ftp.stw-bonn.de/debian/ stretch main  deb http://security.debian.org/debian-security stretch/updates main deb-src http://security.debian.org/debian-security stretch/updates main  # stretch-updates, previously known as 'volatile' deb http://ftp.stw-bonn.de/debian/ stretch-updates main deb-src http://ftp.stw-bonn.de/debian/ stretch-updates main   # Backports ### To install a package from Backports: apt-get -t stretch-backports install "package" deb http://deb.debian.org/debian stretch-backports main   First I thought using apt update && apt -y upgrade would be enough to be up to date. But this does not seem to be the case when I see that regarding to debsecan I have so many tools with known exploits, especially those on high urgency. Just to mention a few: busybox, unrar, multiarch-support, bsdutils, mount, login, util-linux...  Then I  CVE-2016-2779 util-linux (high urgency) for example.     Regarding to security-tracker.debian.org there is a fix in version      2.33.1-0.1 (buster, sid).  So I hoped I could upgrade that package somehow.   Do you have any advice how I can achieve that? I tried with apt-get -t stretch-backports install util-linux but that didn't help.   As I have read I could upgrade to debian-testing as one option. Are there any other options?   Like my name already suggests, i am new to linux. This all is new to me. Until yesterday I thought I would always be up to date with my machines and now I see I am not.      I have edited my question because people pointed me to not use debsecan on an ubuntu installation because debsecan is not intended to be used inside ubuntu, although you can download it with apt from ubuntu repositories. No clue why you can download a tool that in the end is not meant to be used inside your distribution, but okay.


Is there a way to autofill cells in Excel 2013 with keyboard shortcuts?

So very shortly, I want a shortcut equivalent to dragging the little handle in the right-bottom in a cell-selection portion in Excel 2013 (for Windows).  There is many similar questions on the site, but either the questions or their answers are non-relevant for me and my needs, so I am going to give you specific details here of what I want to do and my constraints.   I want a keyboard SHORTcut (the answer "ALT+H+F+I+S+ENTER" is superfluous since it is a menu-mnemonic path and not a shortcut) I want to AUTO-fill (the fill-down/right shortcuts "CTRL+D" and "CTRL+R" are not relevant since it just copies values. I am searching something like this, but the action being "autofill", not "fill") I don't want to duplicate formulas, don't propose to make formulas instead of using absolute values, I want to auto fill series (numbers/dates etc...)   Since I didn't find anything during my research I suspect there is no way of doing so, but are there any way to solve this with "custom-shortcuts" or macros (which I have no experience of)?


I have done the following to convert the byte array to string to store in the db  byte[] value; String stValue = BitConverter.ToString(value);   Now I just want do do the opposite  String stValue; byte[] value= (Convert) stValue ???   How to do this??


subcaption unexpectedly lines up my figures in a column instead of in a row

I want to set multiple figures in a horizontal row and I tried subfigure command of subcaption package to do this, referring to the snippet shown at . However, unexpectedly, the result is the figures are located in a vertical column instead of a horizontal row. What is wrong? I'll show a part of my LaTeX code below: my preamble: \documentclass{jsarticle}  \usepackage[dvipdfmx]{graphicx} \usepackage{subcaption} \usepackage{amsmath,amssymb,bm,braket,ascmac}   figure section: \begin{figure}[h!]   \centering   \begin{subfigure}[b]{0.2\linewidth}     \includegraphics[width=\linewidth]{some.jpg}     \caption{coffee}   \end{subfigure}    \begin{subfigure}[b]{0.2\linewidth}     \includegraphics[width=\linewidth]{some.jpg}     \caption{coffee}   \end{subfigure}    \begin{subfigure}[b]{0.2\linewidth}     \includegraphics[width=\linewidth]{some.jpg}     \caption{coffee}   \end{subfigure}      \caption{The same coffees times.}   \label{fig:coffees}  \end{figure}  I'll appreciate for any information. Addition I found I had got a warning below: WARNING The following warnings have been detected. You can output PDF, but please try to fix them. /usr/local/texlive/2019/texmf-dist/tex/latex/caption/caption.sty Package caption Warning: Unknown document class (or package), (caption)                standard defaults will be used. See the caption package documentation for explanation.  main.tex LaTeX Warning: `!h' float specifier changed to `!ht'.  https://texwiki.texjp.org/?LaTeX%20%E3%81%AE%E8%AD%A6%E5%91%8A%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8#g0cf562c


I seem to be unable to install gitk.   Can anyone help me decipher the below:  $ git --version git version 1.8.3.2 $ sudo apt-get install gitk Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  gitk : Depends: git (< 1:1.7.9.5-.) but 1:1.8.3.2-0ppa1~precise1 is to be installed  E: Unable to correct problems, you have held broken packages.


How do i get one flair showing all the associated account's reputation?

As everybody knows, we can get the flair of a particular account by clicking on the "got flair?" link given below the gravatar and reputation on the account's profile.   But is there any way to get all the associated accounts' flair as the only flair (i.e., a single flair showing the combined reputation of all accounts, such as Stack Overflow, Meta Stack Overflow, Area 51, Super User, etc.)?   That way, instead of copying all the flairs' coding (i.e. JavaScript), I can make one copy and paste at my site.  How can I get a flair, which shows the reputation of all my associated accounts?


Let's say I have a title "full legal names of all sellers"  Should I capitalize it as  a) Full Legal Names of all Sellers  or  b) Full Legal Names of All Sellers  ?  I have doubts as "all" is not a noun here but rather a modification for a noun "sellers". Am I wrong?  And yes, I've read


How does a microcontroller provide a frequency higher than its crystal frequency?

I have a microcontroller which is connected to an 8MHz crystal.  I have a schematic which has a QSPI flash IC connected to it whose clock is provide by the micro and happens to be 48MHz.  I want to understand how the 8MHz is increased to 48MHz. Is it a PLL which does this? If so how?  How can I determine the maximum frequency that the microcontroller can provide from any of its pins?


How to log back into an unregistered account?

I was unregistered, and asked a question. Then I decided to join using my OpenID.  I didn't register via the same computer as the unregistered though, so now it auto-logs me into my registered account, while my unregistered account is still active.  I want to accept an answer and leave comments under my unregistered account. How can I log back onto it?


Upgrade Ubuntu Server 11.04 signature error

Hope somebody can point me in the right direction.  When i do a do-release-upgrade i get an error about signature.  sudo do-release-upgrade Checking for a new ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  Err Upgrade tool signature   404  Not Found [IP: 91.189.91.14 80] Err Upgrade tool   404  Not Found [IP: 91.189.91.14 80] Fetched 0 B in 0s (0 B/s) WARNING:root:file 'oneiric.tar.gz.gpg' missing Failed to fetch Fetching the upgrade failed. There may be a network problem.   Does anybody know how to fix this?


Errors installing openssh-server on ubuntu 16.04

I am not sure if the error I get is related to my apt-get setup if I do the following:  sudo apt-get update ... sudo apt-get install openssh-server Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   ncurses-term openssh-client openssh-sftp-server ssh-import-id Suggested packages:   ssh-askpass libpam-ssh keychain monkeysphere rssh molly-guard The following NEW packages will be installed:   ncurses-term openssh-server openssh-sftp-server ssh-import-id The following packages will be upgraded:   openssh-client 1 upgraded, 4 newly installed, 0 to remove and 432 not upgraded. Need to get 0 B/1.222 kB of archives. After this operation, 5.133 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Preconfiguring packages ... dpkg: warning: files list file for package 'i965-va-driver:amd64' missing; assuming package has no files currently installed dpkg: unrecoverable fatal error, aborting:  files list file for package 'libcrystalhd3:amd64' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)   Do you have an idea how to fix this?


Grouping fields into Drupal block to appear in its node

I have a content type with several fields. I need to group some fields of each node into a block. The block will contain the fields values of that particular node only.     In this layout, AAA is a photo slider displaying some photos of that node. On the right, BBB is a block containing some fields. I am trying to create this BBB as a block.   Initially I thought this could be done with the fieldgroup module, just only a matter of configuring the fieldgroup setting for < div >? And in that form, this question is similar to earlier ones, and has also been well answered.  But on further research, this doesn't work. In the diagram, AAA and BBB are siblings. If the fields in BBB have a < div > but still under the larger container and not in their own block, then it can't float with the other AAA block since they are not siblings.  Therefore, I need not only to group with < div > for the fields but indeed must wrap these fields into a Drupal block. How to do that? Thanks.


Force a class to implement a specific constructor

Let's say I have the following class:  public class SomeClass<TSource> {       private Model _model;       // ...       public void SomeMethod()      {          // ...          TSource instance = Activator.CreateInstance(typeof(TSource), _model);          // ...      } }   And then I have this class:  public class OtherClass {      public OtherClass(Model model)      {          // ...      } }   If I do the following, everything's fine:  SomeClass<OtherClass> someClass = // .... someClass.SomeMethod();   But what if OtherClass has a parameterless constructor, or any constructor different than the stated?  Everything will compile just fine, but when creating the instance a runtime exception will be raised.  Is there a way to enforce the use of a certain constructor on every class that will be used as a generic argument to SomeClass<> ? (Like a generic constraint)


Javascript function scope variable is available in the global scope

In JavaScript, variables created within a function only have scope only within that function: if that's the case, why does the following code produce the output 1? Surely x cannot be accessed from outside of foo ?  function foo(){   x = 1; } foo() console.log(x) // '1'


Is there any standard (or even a de-facto standard) for TRRS to USB?

I've had a few MP3 players that used a single 3.5mm TRRS jack for both connection to earphones and for connection to a USB port (for transferring music files and re-charging the player.) To that end, these players always came with a short adapter like this image.    I've traced the wiring in these adapter, and have found them to be straight through (no apparent internal components I can detect). So I would like to use a similar scheme to provide USB access to some of my MCU based projects that are mounted within small enclosures. A TRRS jack has the advantage of mounting in an easily (and neatly!) cut round hole, that takes up very little space. They also tend to be much cheaper than special purpose panel mount USB ports.   But sadly, I don't seem to be finding ANY consistency in the wiring of similar adapters. If there were, I can see where it would be easy to find both female and male versions, but the few I've found have lead to disappointment. Recently, for example, I thought I had a great find on ali-express, a short cable with a male USB-mini on one side, and a TRRS female on the other. Eureka! I thought! Now I'll have an easy connection to my MCU's female mini, and won't have to resort to hand soldering what I put inside the enclosure. But not only did the wiring NOT correspond to the adapter in my picture here, also didn't even have all 4 connections!  So is there any standard here? Have any been proposed? Since lots of those  MP3 players used 3.5mm TRRS jacks for their USB access, I would have thought  manufacturers would draft some kind of de-facto standard. But GOOGLE is full of diagrams of such adapters, and i don't think I've found any 2 the same. :-(  EDIT: someone kindly pointed me to a similar question, which did at least let me know I wasn't alone in my quest for this, and did point out at least one "pinout' for for a TRRS USB (which was  NOT ideal IMO). But I'll let the question stand only because the one referenced was over 5 years old, and the answers were fairly limited. Maybe some things have changed since then, so any new experiences of others will be valuable to me.   EDIT2: I forgot to mention that what was referred to as the "most commonly used pinout in the  was indeed the same pinout as the one in my picture, namely...   Tip --> D- Ring1 --> D+ Ring2 --> GND Shield --> VUSB   My player wasn't among those mentioned, so maybe some un-officially documented standard has emerged. The pinout is certainly not ideal for a USB situation, providing way too many opportunities for shorts with the 5V being the shield. It probably was designed to make interface to ordinary earphones easier, because on the female side there would be no 5V on the shield (or "sleeve" ) connection. It still would likely be a useful cofiguration in situations where an MCU already has power from another source, so that would become an NC on the female side.  So... but...if that many companies use this pinout, maybe there is my a hope that som other compatible adapters exist!


What is the difference between those two sentences? Is ''was continuing'' even correct? Without her help, he continued the project slowly. Without her help, he was continuing the project slowly. Thank you, guys, for any help. I have been racking my brains for over two hours.


Controlling Two Circuits with One Switch

I'm trying to build a circuit with multiple timers, each with an SPST output relay. I want to connect up my circuit so that if any of the timers reaches their set point, they turn on a beacon.  It doesn't matter how many timers reach their set point, as long as one has I want the beacon to be on. Additionally each timer will turn on its own light when it reaches the set point.  I've drawn up a circuit, but have a question, is it possible to control two lights with one SPST switch? The simplest form of the circuit I'm visualizing is shown below:  (All the Lights and Beacon and Power Supplies are 12V)    The outsides (including the switches) are the timer circuit section, while the middle part is the beacon and its power supply.  I'm particularly confused about what happens in the red path. Would that be bad for the lights? Or turn them on before the timer switches close?


I've an unfair coin which has the probability of the head =70%, I toss the coin the first time and I get a tail.  Now how many time do I need to flip the coin so that the number of heads is equal to the number of tails.   My solution:  As I already have one tail, I need n-1 tail and n heads. If I have 3 coin tosses, I expect 2.1 expectations of heads and 0.9 of tails expectation. So I answered 3.  I'm not sure if this is the right way to solve, feel free to clarify anything that seems unclear


I am writing my thesis in LaTeX, using Overleaf as the site to compile the document. I want to make doublespace between lines. Can I know: How to set double-spaced text (1-inch margins, 12-point font) in Overleaf? Currently, my text style is: \ifthenelse{\boolean{PrintVersion}}{ \usepackage[top=1in,bottom=1in,left=0.75in,right=1.25in]{geometry}   % For twoside document }{ \usepackage[top=1in,bottom=1in,left=0.75in,right=1.25in]{geometry}   % For oneside document }  \usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments \usepackage{graphicx} % For including graphics   \usepackage{nomentbl}  \makenomenclature   \usepackage{ifpdf}


JSON schema pattern validation is failing


what's the exact way to get the position of an element?

related to browser window's upper left corner of client area.


Can you Multiattack twice with the Extra Attack Feature?

Assume the character build Any Monk 5/Moon Druid 2, wildshaped into a Brown Bear:  On their turn, can they use their attack action twice to multiattack?


can one create a custom linux install from a configuration?

I usually like to install a few things on my machine directly after install. Then do some general tasks like set the preferences, make a conkyrc, set up my git config, download my pictures, etc.  Is it possible to make this all done directly from install? As in, to write this as an install image so it would configure it automatically on install


See the overall percentage completion of a recursive cp command

Is it a simple way to track the completion of a large cp -r command? To get something like:  copying 10% ... copying 20%   Maybe using a pipe to another command? cp -rvv orig dest | show_as_percent    update  I've checked  question, but when I try to copy folder: rsync -P source dest or rsync --progress source dest or rsync --info=progress2 source dest    it says: skipping directory source  After checking  resource, I see the rsync command working is: rsync -r --progress source dest, great,  but the output comes as:  source/ source/a.c           4,114 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=3/5) source/b.c           5,480 100%    5.23MB/s    0:00:00 (xfr#2, to-chk=2/5) source/c.c           4,615 100%    4.40MB/s    0:00:00 (xfr#3, to-chk=1/5)   Is there an easy way to have the overall percentage (and not per file percentage) and a more simple output which can be easily parsed using awk for example?  Looking for a way of getting in console a nice integer representing a completion percentage.  Any suggestion in the shape of: cp -rvv orig dest | show_as_percent