as far as I know, it is not possible to execute bash functions in a makefile, so I put them in a external shell script and I call the script from the Makefile. running the script directly works well, but running through the makefile throws the error:    make deploy_staging  ./deploy.sh ./deploy.sh: 1: ./deploy.sh: function: not found publishing  usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run:   aws help   aws <command> help   aws <command> <subcommand> help aws: error: argument --function-name: expected one argument ./deploy.sh: 4: ./deploy.sh: Syntax error: "}" unexpected Makefile:7: recipe for target 'deploy_staging' failed make: *** [deploy_staging] Error 2   this is my deploy.sh script (the one that works if executed directly):  function publish {   echo "publishing $1"   aws lambda update-function-code --function-name $1 --zip-file fileb://./dist/src.zip }     publish endpoint1 publish endpoint2   and this is how I am calling it from the makefile:   deploy_staging: dist/src.zip     ./deploy.sh   wonder why Make complains about the "}" character, I expected the content of the script to be hidden or isolated from the point of view of the makefile.


How do I connect a dryer with a four prong plug to a three prong socket?

I've just moved house and my clothes dryer has a four prong plug but on the wall there's a three prong socket. Do adapters exist for this? Or do I need to get a new cord for my dryer? Or is there another solution?


What is the difference between 4-leg and 2-leg momentary tactile switch?

After many search, I don't know still that what is exactly the difference between 4-leg and 2-leg momentary tactile switch?  4-leg:      2-leg:      Why do they use 4-leg in many cases? for example, in mobile phones, in many cases, they use 4-leg. look:


Well attended: What question has the most views?

What SE question has the most views, and where could I find this information?


youtube-dl unable to download audio how to resolve that issue?

./youtube-dl https://www.youtube.com/playlist?list=PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK   It produce following output with warning  [youtube:playlist] PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK: Downloading webpage [download] Downloading playlist: Fear Files [youtube:playlist] PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK: Downloading page #1 [youtube:playlist] PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK: Downloading page #2 [youtube:playlist] playlist Fear Files: Downloading 223 videos [download] Downloading video 1 of 223 [youtube] R8lNWOGJ5cg: Downloading webpage [youtube] R8lNWOGJ5cg: Downloading video info webpage [youtube] R8lNWOGJ5cg: Extracting video information [youtube] R8lNWOGJ5cg: Downloading MPD manifest  WARNING: Requested formats are incompatible for merge and will be merged into mkv.  [download] Resuming download at byte 206757946 [download] Destination: Fear Files - Episode 44 - September 28, 2014-R8lNWOGJ5cg.f137.mp4  Because of waring youtube-dl download video without audio. How to solve that issue. I also try command  youtube-dl -f 22 URL_link but still not work.


I want to terminate a python script if it doesn’t output anything to the terminal in 2 min

Here's my current bash which is just a loop while true ; do       python3 /Users/Name/Desktop/pythoncode.py done  I want to terminate pythoncode.py if it doesn’t output anything to the terminal in 2 min


Is it good to add salt or oil to pasta water

Is it necessary as should i add salt or oil to the pasta water when it comes to the boil as before  i add the pasta??Does it  really effect the outcome of the pasta at all?


A few questions on $\mathrm{Aut}(G)$ when $G$ is finite.  1) $\mathrm{Aut}(G)$ is not cyclic when $G$ is not abelian  I proved this by showing the contra-positive, that if $\mathrm{Aut}(G)$ is cyclic then $G$ is abelian. I'm trying to show it directly now.  Since $G$ is not abelian, there exists a nontrivial inner automorphism of finite order. This inner autmorphism will generate a cyclic subgroup of $\mathrm{Inn}(G) \leq \mathrm{Aut}(G)$ If I can show that $\mathrm{Inn}(G)$ is a proper subgroup of $\mathrm{Aut}(G)$ I will be done.  2) $\mathrm{Aut}(G)$ is never cyclic of odd order $> 1$  I need help with this one.  Thanks!


More than one 'Open xxxxx here as Administrator'

I want the option to open a Command window or Powershell window as Administrator from the drive and directory context menus in Windows.   I can have either by creating and populating the special 'runas' registry keys shown below, but is there a way I can have both listed on the context menu and have both run as Administrator?  [HKEY_CLASSES_ROOT\Drive\shell\runas] ... [HKEY_CLASSES_ROOT\Drive\shell\runas\command] ... [HKEY_CLASSES_ROOT\Directory\shell\runas] ... [HKEY_CLASSES_ROOT\Directory\shell\runas\command] ... [HKEY_CLASSES_ROOT\Directory\Background\shell\runas] ... [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] ...


Connecting Dual Dell U2415 Monitors to Closed Macbook Pro (15" Retina, Mid 2012)

I have a MacBook Pro (15-inch Retina, Mid 2012) with 2.3 GHz Intel Core i7, 8 GB 1600 MHz DDR3, and a NVIDIA GeForce GT 650M 1024 MB.  It has two Thunderbolt ports and one HDMI port.  I want to connect two Dell U2415 24-inch monitors at 1920 x 1200 at 60Hz with the MacBook closed.  I'm prefer for them to be daisy chained.  And have one monitor vertical (that probably doesn't factor into anything)  Is this possible?  What would be the best way?  Thanks for the help!


Hold on, so Daniel found the seventh glyph, right? So, why did they do chevron 1-6 like they already tried before. I saw that they knew what they were doing, so why is the seventh chevron a mystery? Did they dial Abydos with all of the glyphs and succeeded or Daniel just told them the way to Abydos, using the Orion as an example.


We have a situation: someone saw the boy break the window. Can I make this passive sentence?     The boy was seen to break the window.   I use Murphy's Grammar and this structure is never discussed.


Is there a Tikz library for network symbols?  For example:   Server Database Firewall PC Laptop etc...


I would like to query feed items on a specific community, but can't figure out how to do so in SOQL.  For example, this query returns no results.  SELECT Id,Body,NetworkScope FROM FeedItem WHERE NetworkScope='123123123123123'   According to some documentation ( - my question isn't specific to the SOAP API, I'm just pointing this out), the NetworkScope field cannot be used in filters, so I understand why the above query won't work, but I can't figure out what the correct query would be.  For SOSL queries, I found documentation on  that does work, but I can't find any equivalent for SOQL, and since SOSL requires a text string to search I can't just use that instead.  Is the type of query I want possible?


What happened to the second Barry in Rogue Time?

At the end of Out Of Time, Barry has to run so fast that he accidentally jumps back in time by approximately one day, and becomes the doppelganger he had seen running alongside himself the day before... To Be Continued.  The next episode, Rogue Time, picks up right where Out Of Time left off, and Future!Barry starts living the previous day over.  But since he hadn't jumped back in time yet, for the next day at least, Past!Barry should still be around, but he never shows up.  As far as we can tell, except for those few seconds when the two versions of Barry saw each other running beside them, there was only ever one Barry Allen in Central City that day. (And, just to make things worse, because Future!Barry prevented the tsunami from happening, Past!Barry would never have ended up jumping back in time, so there should have been two of them indefinitely!)  So what happened to Past!Barry?  It's never explained on the show, but has anyone involved with the show provided any insight into what happened?


Creaking from cranks/spindle. How to fix?

Recently the cranks on my bike started to creak. I checked with my usual "bike-bible" . They recommended dis-assemble, lubricate, re-assemble.  So I did that.  Remove cranks. Remove spindle. Clean. Lubricate. Reassemble.  No, the creak is still there.  (To find out the source-area of the sound I had a friend riding the bike slowly while I ran alongside listening. And the sound where coming from the area of the bottom bracket/cranks. I am happy no neighbor saw me...)   For each revelation of the cranks there are two creak-noises.  If I, when on the bike, push down with both feet I hear a noise. Turn 180 degrees without pressure, push down again and there is the noise again. If I am "too soft", low pressure there are no sound. Since I have clips I have tried to only work with one foot to keep a constant load during a revelation, there where no detectable sound then.  Anyone have any idea what is wrong on the bike? And how I should fix it?  /Leif


Couldn't find list workflows under my workflows

I have created two workflows, list and normal workflow.   I have saved and published both the workflows. But under my workflows in the site I can only see the normal workflow, I am not able to see the list workflow.  Why is it so? Is there any other settings that should be done for list workflow?


How to Connect & Share your Internet Connection (Wired & Wireless)

I have Ubuntu 12.04 on a HP 430 notebook and this has a single wired internet connection and I would like to share this with a LG Optimus One with Android 2.3.3. I followed  instructions and created a hotspot as shown below, but UbuntuHost is not visible on the LG Optimus One when I enable the Wifi on it.  To summarize, I want my Laptop with an internet connection to act as a WiFi router and access the internet from other devices (LG Optimus One with Android in this case).  What additional steps have to be done?


Allow moderators to undelete comments deleted by magic words

No, you can't hocus pocus a comment to be banished to the outer realms of the ether, but there is a short list of words that, if contained within a comment, cause the comment to be removed after a single flag.  Remember when we had a problem with folks brow beating other users about their accept rate? Well, guess what word was tossed into the magic cauldron? That's right, accept(ing).  Earlier today on Judaism, someone wrote a comment that began with:     I'm not accepting that [point totally irrelevant to the green check mark]   It was flagged, and deleted instantly. This isn't a huge problem in and of itself, though we might want to examine if we still need to fire on that particular phrase - the problem here is that a moderator could not undelete the comment. The only time a mod should be preventing from undeleting a comment is if the comment author was the one that deleted it.  Tagging this as a bug as I'm reasonably certain it's just an oversight.  To reproduce:   Leave a comment with a magic word Flag it as a non mod Preform the diamonding ritual, channel the cosmos as a non-developer Weep, as the ashes of your toils lay in ruins before you, powerless to return them to former glory.   Saying please and reloading the page had no effect, so I don't think this is due to the INTERCAL rewrite that we just finished.   Note that this (and the linked question) talk about the "accept" example, but the bug report is about mods not being able to undelete.  Removing "accept" from the list of magic words doesn't fix this bug, just changes one way it's triggered.


I'm using the Insert module to allow users to insert images with a specific image style into a page. After upgrading to Drupal 7.20, the images are not stored in the files/styles folders, and the image url returns a 403 (access denied) error. I checked the folder permissions, and they are all set to 777.


When do you say "Earth" and when "The Earth"?

I'm reading :  Earth [...] is the third planet from the Sun[...] The Earth's human population is [...]   Then the   The Earth is certainly the most familiar planet [...] Apollo 11 shot of Earth Galileo shot of the Earth and Moon   I think no other planets have this problem. Nobody would say "The Mars is certainly the first planet that humans will travel to", so what's happening here?  So what is the correct way of referring to the planet that i'm on right now? Does it require "THE" or not? How come English-speaking Earthlings keep changing the rules in the middle of a paragraph?


is the shell a frontend to the terminal?

Is the shell only an addon to the terminal, so that a terminal daemon has to work in order to to start a shell as its frontend. What controll does the terminal exherts upon the shell?


How to share wireless network from Ubuntu 15.04 PC via wifi?

My laptop is connected to internet via wireless connection (which requires to setup a static IP). However my windows phone does not have this option, and hence I need to share the wireless connection from my PC (Ubuntu 15.04). Is there any way to do this?


Ubuntu killed Window volume. How to reinstall window from Ubuntu

Ubuntu killed Window partition  Hey guys, I have this trouble. At first my Lap has Ubuntu and Window. But the grub has crashed and the best way to save it was backup data and reinstall OS.  I chose to install Window7 first, after that was Ubuntu. The mistake happened and i didn't recognize was The volume after shrinked for Ubuntu was LOGICAL. And when then I let Ubuntu chose the place to live automatically so it killed my former Window ~cry~  Anyone have some info about how to gparted this Volume and re-install Window7 from Ubuntu OS ? Give me some instruction or links as possible.


Tried to clear trash and everything go removed!

I found a command online to clear the trash for you because I wanted to clear a file without doing it throught GUI. The command is sudo rm -rf ~/.local/share/Trash/* . I called it and saw the folder on my right monitor disapear. I looked on the left monitor to see everything gone. I looked up recovery tools for ubuntu and found photorec . I used it and it said it recovered 200 files but none are there. EVERYTHING from my home directory is gone as well as Documents downloads, etc. How can I recover this? I had many important things I didn't back up.


Is there a way to search for a value in the entire database without quoting each table that it might or might not be in?   For example:   select all.tables from db where all.tables = value.x


If  $g(x) = \text{arctanh}\  (\log x)$, find $g'(x)$.  I tried to separate the terms first and I got $\dfrac12 (\log(1+\log x) - \log(1-\log x))$.  The answer is $\dfrac1{x(1-\log x)^2}$.


Number equations and preserving alignment of equal signs

So as I have learned from a previous post that the  \begin{aligned}... \end{aligned} with the usage of "&" before "=" will help arrange neatly the equations where the equal sign of each equation will be just below the equal sign of the following equation and so on.  My question is if I have a total of 8 equations, how to number each equation and at the same time preserve the alignment of the equal signs.  Note if I use \begin{equation}... \end{equation}, I get only one number for the collection of 8 equations at the very end which is not what I want.


Can't navigate on git console, get A, B, C, or D when I hit an arrow key

I'm trying to use git rebase for changing a commit, but when I'm in the console inside the rebase comand if I try to use the arrow keys I get A, B, C or D letters. I created the .vimrc file with the line set nocompatible in case that was the problem but no luck... What am I missing?


I have a list of words (some of them are colors, some of them are not) written in a .txt file.  I need to save these words into an array so that I can apply color to a grid later on. How do I turn this file into an array?


How to remove USB write protection in windows 10

I am trying to remove the write protection on my USB. I run diskpart command in command prompt then it had changed read-only yes to no. But another attribute current read-only state is still yes.  DISKPART> detail disk  SanDisk Cruzer Blade USB Device  Disk ID: 6CA38DCA Type   : USB Status : Online Path   : 0 Target : 0 LUN ID : 0 Location Path : UNAVAILABLE Current Read-only State : Yes Read-only  : No Boot Disk  : No Pagefile Disk  : No Hibernation File Disk  : No Crashdump Disk  : No Clustered Disk  : No    Volume ###  Ltr  Label        Fs     Type        Size     Status     Info   ----------  ---  -----------  -----  ----------  -------  ---------  --------   Volume 7     H                FAT32  Removable   7632 MB  Healthy


How to play a sound when player respawns in minecraft?

I have tried looking around for the answer, but I kept on getting answers for playing a sound on death. I want to play a sound when player respawns. Any suggestions?


A simple question about nonnegativity of square roots

Say I have a sequence $(x_n)$ and also that $x_n \geq 0 $. Let $x = \lim_{n\to\infty}x_n$. I also know that $x \geq 0$. My question is,  Is $\sqrt{x_n} + \sqrt{x}$ a nonnegative quantity? I believe this is so because the square root operator returns the principal (nonnegative root)? Is this reasoning correct?


How to prove $A+ A^T$ symmetric, $A-A^T$ skew-symmetric.

Prove that if $A$ is a square matrix, then:  a) $A+ A^T$ is symmetric.  b) $A-A^T$ is skew-symmetric.  c) Use part (a) and (b) to show $A$ can be written as the sum of a symmetric matrix $B$ and a skew-symmetric matrix $C$, with $A = B + C$.


How to copy or restore OS via apt package-list?

I want to find a way to backup my system in the manner of storing a list installed packages. I want to be able to reproduce my setup for the case of a reinstall or automatically provision a VM with nearly the same software installed.  So I found out that its possible to export a list via dpkg by  dpkg --get-selections >/backup/package-selections   and than using it on target machine with  dpkg --set-selections </backup/package-selections apt-get dselect-upgrade   Unfortunately this wont work since the list will also contain information of packages I dont want to (re-)install (e.g. kernel images which are already installed or driver for a Nvidia card but target machine has a ATI).  So now Im wondering if there is a smart way to filter the list or decide while exportin or later while importing between necessary packages or not or between low-level-/system-packages and tools or something.  Any Ideas?


As the title states,  Are Ubuntu and/or Unity open source software?


As the limit of $n$ goes to infinity, prove that $x^n = 0$ if $\operatorname{abs}(x)<1$.   So I want to prove it this by observing that $\operatorname{abs}(x) < 1$ which means $1/(\operatorname{abs}(x)) > 1$.  How would I proceed from here?


Please add the ability to pause the real-time network questions

The real-time network questions page is cool, but could be better. I sometimes see a question I want to open - but it can be tricky because it is moving so fast (mostly Stack Overflow).  Please can there be a pause button somewhere?


Syncing music between Ubuntu and iPhone does not work

Ubuntu 14.04 and iPhone 5s. Connecting iPhone via USB cable mounts the device and I can open it in Ubuntu. Syncing photos with Shotwell works fine. Both Rhythmbox and Banshee also recognize the iPhone and pretend to be able to sync with it. By this I mean they go through the motions of syncing and even claim that the sync is complete yet the music app on the phone remains empty.   When connecting the iPhone to the PC, I get the "Lockdown (-3)" error that has been talked about extensively in other threads and have followed all advice to no avail. Solutions that seem to have worked for versions of iOS <5 (e.g. as suggested in the above duplicate suggestion) no longer work with new versions.   Is there anyone here with the same experience who has managed to get the music sync to work properly?


Truncate Log Files in SQL Server 2008 R2

Here is my query in SQL Server 2005 that I use for truncating log files.  My log file will grow to 7G and when I execute this query in a nightly job it will truncate it to 10M. How do I replicate this query in SQL Server 2008 R2? My current query errors with NO_LOG.  Use Master  BACKUP log DBNAME WITH NO_LOG  --Shrinks the size of the Log (.ldf) file USE DBNAME  DBCC SHRINKFILE (DBNAME_Log)


I am trying to set a dark theme in TeXworks. This is similar to the question "", but with the IDE TeXworks instead of TeXstudio.  The output should look similar to the following:    (Of course, it should look like TeXworks rather than TeXstudio.)  Is what I am asking possible?


What is the correct way to implement PBKDF2 + AES CBC + HMAC?

I've been doing a lot of reading on the proper way to implement AES CBC mode with HMAC authentication. I've seen many explanations, however, I've had a hard time finding an actual real example (with code) on all steps including key derivation, encryption, and decryption. My application uses PBKDF2 for key derivation. Here is what I have so far:  Derive Keys   Generate 256 bits of "key material" with KDF  key_material = pbkdf2(user_password, salt, iterations, size:256, alg:sha256)  Split key material in half yielding x2 128 bit keys for encryption and signing  enc_key = key_material.split(0, 127) mac_key = key_material.split(128, 255)    Encrypt   Generate 128 bit initialization vector  iv = secureRandomBits(128)  Do AES encrypt  cipher = aesEncrypt(plaintext, iv, mode:cbc, key:enc_key)  Compute MAC with concatenated IV and cipher bits  mac = hmac(iv + cipher, alg:sha256, key:mac_key)  Store resulting values to server (considered unsecure storage)  storeValuesToServer(cipher, iv, mac)    Decrypt   Fetch data from storage  cipher, iv, mac = getValuesFromServer()  Recompute mac  new_mac = hmac(iv + cipher, alg:sha256, key:mac_key)  Compare macs  if(mac != new_mac)   throw 'Failed MAC check!'  Do AES decrypt  plaintext = aesDecrypt(cipher, iv, mode:cbc, key:enc_key)    Questions  Does this look correct? Main concerns here are:   Have I derived the keys correctly, splitting them in half based on the output of the KDF? Am I computing the HMAC correctly by combining the iv + cipher. Does it matter if I had done cipher + iv instead?


Can my familiar fly with a small person?

The rulebook states that carrying capacity is the strength score times 15 (lbs). Find familiar allows me to get a hawk, which has a strength score of 5. This results in a carrying capacity of 75 lbs. This is well within the range of weights for small people such as gnomes or halflings. Does this mean my familiar can carry them and fly away (given they do not struggle)?


Wireless WLAN Transmitter for Desktop Computer?

I would like to know whether I can buy a Wireless WLAN Transmitter for my desktop computer in order to not use a internet cable to connect to the internet but rather via my router's wireless WLAN option, or not.   I was thinking about buying the product below:   The idea is to just put this stick in and connect it with my computer and just make it connect to the internet with only this device and not the cable.  I personally think that it actually might not work due to the fact that there is no WLAN card or whatever those devices are called, built-in in my computer but maybe it is possible. That is why I thought I'd just ask the pros.   Thanks in advance :)


What the difference between these two sentences?     I am the gardener.      I am a gardener.   The first phrase is said by Bob in "Myzzy in Gondoland" episode 1. The second phrase is generated by Google translate (translation this phrase from Russian). What is more correct? Or these phrases have different meaning?  First several phrases of Muzzy episode 1:  The king says:     How do you do?      I'm the King.      I'm the King of Gondoland.   The queen says:     How do you do?      I'm the Queen.   Bob says:     Hello. I'm Bob.      I'm the gardener.   Put another way: How you introduce yourself? "I am a computer programmer," or "I am the computer programmer," and why?


In Volo's Guide to Monsters, there is a race in the bestiary called Grungs. Were these created for 5e specifically?  I'm pretty sure they were created for 5e, as they have no deities listed which is always a bit suspicious, but I'm just making sure.


Is there a difference between the $R^2$ statistic of a linear regression and pearson correlation?

Is there any difference between $R^2$ that we get from linear regression and pearson correlation?


String[] to byte[] without converting values?

I have parsed a txt file and as a result I have now a String str = "33 00 9D F2 C9 59 02 0A 00 00 CB 08 01 01 03 01 43 97 B1 02 9D F2 C9 59 1C 01 04 00 10 00 00 16 03 80 05 00 19 00 00 00 4D 00 06 00 45 00 5A A0 47 3E A7 04 D5 08 00 00 00"  now I do str.split(" ") which gives me a String[] containing each of those values from the string. How can I translate each of those 2 char strings to bytes without changing their values?  So basically how to do String[] = {"33", "00", "9D"....} -> byte[] = {33, 00, 9D}?


Regression: Why does using quadratic expressions work with linear estimators?

My questions is, that I see people using R´s lm() (linear regression model) with Y ~ X^2 e.g. here:    But I dont see how and why it works, hence lm() is clearly stated as a linear estimator (using OLS), why does it work for quadratic, clearly non-linear estimation, as well?  Thank you.


Can we Ask Question to people for their ideas on something

I wonder if i can ask public about their ideas related to Android. This can be a consulting such an; how better i can attract users, is button or image better to be used in this layout, how i can manage this better and so on.  It is all about encouraging people commenting and giving suggestions to user who asked question.


My cPanel site was hacked - any advise on what to do?

My cPanel site was hacked. The attacker has changed my cPanel password. How could he do that and how can I gain access to my site back?  Thanks.


How to generate all permutations of the flattened list of lists?

How to generate all permutations of the flattened list of lists in Python, ... such that the order in the lists is maintained?  Example;  input;  [[1,2], [3]]   output;  [1,2,3] [1,3,2] [3,1,2]   1 is always before 2 in the permutations.


Wifi is Not Working on Ubuntu 18.04 LTS with RTL8723BU

I have just installed Ubuntu on my pc. Everything is working fine but the Wifi is not working properly When i am trying to connect to a network it is not working and showing error "Activation of Network Connection failed ". Sometime i am able to connect to the network but the network strength is very week. My PC uses realtek driver for wifi.  Here's the output of lspci; lsusb      00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 21) 00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 21) 00:13.0 SATA controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SATA Controller (rev 21) 00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 21) 00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 21) 00:1b.0 Audio device: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller (rev 21) 00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 21) 00:1c.1 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #2 (rev 21) 00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 21) 00:1f.3 SMBus: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx SMBus Controller (rev 21) Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 006: ID 5986:065e Acer, Inc  Bus 001 Device 005: ID 0bda:b720 Realtek Semiconductor Corp.  Bus 001 Device 004: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 001 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 001 Device 008: ID 2717:ff80   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   output of usb-devices | awk '/b720/' RS=  T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=04 Dev#=  5 Spd=480 MxCh= 0 D:  Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1 P:  Vendor=0bda ProdID=b720 Rev=02.00 S:  Manufacturer=Realtek S:  Product=802.11n WLAN Adapter S:  SerialNumber=00e04c000001 C:  #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=500mA I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I:  If#= 2 Alt= 0 #EPs= 6 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8xxxu   How to fix this issue??


"Hediger acquired a drone after losing half of her harvest in one year to weeds. She estimates that identifying problems faster with timely crop data and using less weed killer will save her tens of thousands of dollars in future years. Considerably more than the $7,000 she paid for the drone and any potential costs associated with reviewing images."   In order for the bolded section to be grammatically correct, do I need to use a semicolon (;) or an em dash (-)? I would also appreciate it if you could explain the reason why as well.


According to Newton's third law of motion, if body A exerts a force on body B, then body B exerts a force on body A that is equal in size but opposite in direction, then how do things move?


Use data driven pages to display certain data in each page

In ArcMap, is it possible to use data driven pages to display certain data based on an attribute. I want the extent to remain unchanged across pages, and just have certain data be symbolized differently so it stands out.   I would like to have my first page highlight points where DEPTH is 0-5, 2nd page 5-10, etc...  I know how to use data driven pages to move the extent based on a layer, but this is different.


Should students who copy homework answers from somewhere else state how they obtained the answer?

I'm an 3rd year undergraduate student, and this semester, I'm taking graduate course in one of my departments.  We have homeworks each week, and while doing the problems on those, I sometimes get stuck. In that case, sometimes I go to the instructor for some hints and discussions, and sometimes, if I really haven't made any progress in that question for long time, I search the answer onthe web (for example math.SE), and write that answer if it satisfies me.  In those latter cases, I put some notes/a disclaimer on the top of the question stating that "I've done these and these, but couldn't solve it, so I looked at the answer from the xxx website".  However, is this something that we indeed expected to do, or am I just making myself sometimes look like "incapable of solving even an elementary question" in the eyes of my instructor ?  Edit: My question is about the general norm in academia, not whether it is considered cheating or not.


Let $X=\mathbb{R}$ and $S=[-1,1]$, i don't quite understand why $[-1,0)$ is open in $S$ but not open in $X$. As far as i know, to show a set is open, we need to show there exist an open ball $B(x,r), r> 0$ st for all $x\in [-1,0)$ ,$x\in B\subset S$, however, i still can't see why  $[-1,0)$ is open in $S$ but not open in $X$. When we look at -1, i don't think this is a interior point of S.


Is it possible to rpm and yum package manager in Ubuntu

I saw rpm and yum packages in the official repos! Will installing it mean that I will be able to install .rpm apps from Fedora repos??  See the pictures attached


DB Structure: one table to hold all domain values?

One database I recently start working with was designed with one main table containing all possible values, and foreign keys in other tables are specifying the nature of each of those items.   CREATE TABLE entity (      indexid INTEGER PRIMARY KEY NOT NULL,      entitytype INTEGER,      entityname VARCHAR, );   For example, this main table contain a field named 'entityname' possibly containing records such as:   the upc code of the item the short name of the item the long name of the item the location of the item the vendor for this item  the quantity in stock (and many others)   Each record in this table got a entitytype number as a foreign key referring in another table what each records mean, such as   entitytype=10 mean that this entity is a UPC code type, and then   entitytype=12 mean that this entity is a vendor name type, etc...  Obviously there is dozen of such types for entities.  I feel like it is a bit unintuitive. There is this post  (See One table to hold all domain values section) where the author suggest the approach as I expressed it in my example may not be the best way to do this, and I would tend to agree with his opinion on the matter.  I also think it is difficult to make efficient queries, and I feel it is not how this should be done. I would rather have more tables and keep the whole more intuitive. I have a time window where I could redesign this and was thinking about long term and best practices.  So can this approach be considered a good practice in the long term and I just need to deal with it?


How to find employee's experience from two dates?

I would like to be able to find find the difference between an employee's join date and today.  Here is my C# code:      DateTime JoinDate = Convert.ToDateTime(TextBox1.Text );     DateTime TodayData = DateTime.Now;     TimeSpan servicePeriod = TodayData - JoinDate;     Response .Write ( servicePeriod);   It gives an incorrect answer:  1.11:52:52.6477489    The format of TextBox1.Text is MM/dd/yyyy.  I want the output in Years, Months and Days.


How i Update the managed metadata field with one more value keep old value in that column

I want to add one more value from the termset in the existing column value using Powershell script.     [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") $site = Get-SPSite http://invi28apps9c $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site) $termStore = $session.TermStores["Managed Metadata Service"] $group = $termStore.Groups["KB"] $termSet = $group.TermSets["IPS Document type"]      $terms = $termSet.GetTerms(100) $term = $terms | ?{$_.Name -eq "Docset"} $web = Get-SPWeb http://invi28apps9c/DemoTeamSite $list = $web.Lists["KBDocument"] $query = New-Object Microsoft.SharePoint.SPQuery $query.ViewAttributes = "Scope='Recursive'"; $query.RowLimit = 2000 $caml = "<Where>          <Eq>          <FieldRef Name='DocIcon'/>          <Value Type='Computed'>.zip</Value>         </Eq>         </Where>" $query.Query = $caml   do {     $listItems = $list.GetItems($query)     $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition     foreach($item in $listItems)     {         $spItem = [Microsoft.SharePoint.SPListItem]$item;         $taxField =     [Microsoft.SharePoint.Taxonomy.TaxonomyField]$spItem.Fields["Document Type"]         $taxField.SetFieldValue($spItem,$term)         $spItem.Update()     } } while ($spQuery.ListItemCollectionPosition -ne $null)


How many different versions are there of the legend surrounding the theft of the Death Star plans?

So the whole premise of Rogue One (2016) . But—as far as I can recall—many different attempts in various forms of media have been created to tell the pre-story of how:     During the battle, Rebel spies managed to steal secret plans to the Empire’s ultimate weapon, the Death Star, an armored space station with enough power to destroy an entire planet.   The main one I can remember is is . But what about others?  Would it be possible for someone post a answer that succinctly lists the following with regards to the whole Death Star plans backstory:   Name of Work (Type of Work, Year of Work): A short and sweet summary of how the plans were acquired.   For example, Rogue One could be summarized as follows:   Rogue One (Feature Film, 2016): Daughter of a scientist who was kidnapped to help complete the Death Star joins the Rebel Alliance to help them steal the plans from the Empire.   PS: Please add the NPR radio drama to whatever answer is provided to be complete.


I'm afraid I locked myself out of the sudo/root options. The one account that had sudo rights now reports that it doesn't have these anymore. How can I restore this? Do I need to use a live stick?


Google Play Error Retrieving Information RPC:S-2:AEC-2

Whenever I try to update an app, I get the error in the question title. I am also unable to view my installed apps. I've already tried wiping the store's data and cache, and removing and readding my account. Nothing helps.   I'm using a Droid Turbo running 4.4.4. Anyone know what the problem is?


Login loop in Ubuntu 16.04 after installing python3 and ubuntu-desktop

After I login in Ubuntu 16.04, it redirects to the above screen and then again back to the login screen. The last commands I ran were sudo apt-get install python3 and sudo apt-get install ubuntu-desktop


Is there an explanation for this change in perspective?

In the Goblet of Fire, when Harry has his dream-like visions of Voldemort, the visions take an outside perspective, in which Harry is just an observer of what is going on. For instance:     Harry tried to recall what he had been dreaming about before he had awoken. It had seemed so real.... There had been two people he knew and hone he didn't.... He concentrated hard, frowning, trying to remember....      ...      He closed his eyes tightly and tried to remember what Voldemort had looked like, but it was impossible.... All Harry knew was that at the moment when Voldemort's chair had swung around, and he, Harry, had seen what was sitting in it, he had felt a spasm of horror, which had awoken him... or had that been the pain in his scar?      And who had the old man been? For there had definitely been an old man; Harry had watched him fall to the ground...      Harry Potter and the Goblet of Fire - US Paperback - Page 17   As the passage shows, Harry does not see this from Voldemort's perspective, but rather as he himself were actually in the room at the time. Again, later in the book, when Harry has his vision of Voldemort torturing Wormtail, Harry saw himself riding an owl which delivered a message to Voldemort, not from Voldemort's perspective.  However, in Order of the Phoenix, Harry's visions come from the perspective of Voldemort. When Nagini attacks Mr. Weasly, Harry thought that he was the snake, and was personally responsible for the attack. It is later explained that Harry saw the scene from this perspective because it was likely that Voldemort was possessing Nagini at the time, and as Voldemort's mind was with the snake, so was Harry's. Again, later on, we see that when Voldemort plants the image of himself torturing Sirius, in an effort to lure Harry to the Ministry of Magic, Harry's vision takes the perspective as seen from Voldemort.  So why is it that after Voldemort regains a proper body, does Harry's visions of Voldemort change perspective? Is there any canonical explanation for this change?


let $x,y$ is positive integer,and such $$x^3-5x+10=2^y$$ find all $x,y$.  since $$x=1\Longrightarrow 1^3-5+10=6$$ can't $$x=2,2^3-5\cdot 2+10=8=2^3$$ so $x=2,y=3$  $$x=3,LHS=27-15+10=22$$ $$x=4,LHS=64-20+10=54$$ $$x=5,LHS=125-25+10=110$$ $$x=6,LHS=216-30+10=236$$ $$\cdots$$  I find $$(x,y)=(2,3)$$  I only find $x\le 7$ this solution.  maybe this have other solution.and This problem is from Mathematical olympiad problems Thank you


I've been trying to develop an intuition based understanding of Bayes' theorem in terms of the prior, posterior, likelihood and marginal probability. For that I use the following equation: $$P(B|A) = \frac{P(A|B)P(B)}{P(A)}$$ where $A$ represents a hypothesis or belief and $B$ represents data or evidence. I've understood the concept of the posterior - it's a unifying entity that combines the prior belief and the likelihood of an event. What I don't understand is what does the likelihood signify? And why is the marginal probability in the denominator? After reviewing a couple of resources I came across this quote:     The likelihood is the weight of event $B$ given by the occurrence of $A$ ... $P(B|A)$ is the posterior probability of event $B$ , given that event $A$ has occurred.   The above 2 statements seem identical to me, just written in different ways. Can anyone please explain the difference between the two?


won't compile properly since I updated BibLaTeX to the latest version.  ABNT's rules are terrible and very inconsistent, so I do a lot of weird stuff in that file to try to replicate them.  Here's one example that doesn't work anymore:  \documentclass{article}  \usepackage{filecontents} \begin{filecontents}{\jobname.bib}   @book{alves1995,       author    = {Roque {\relax de\nopunct} Brito Alves},       title     = {Ciência criminal},       location  = {Rio de Janeiro},       publisher = {Forense},       date      = {1995},   } \end{filecontents}  \usepackage{biblatex} \addbibresource{\jobname.bib}  \begin{document} \nocite{*} \printbibliography \end{document}   I can work around this particular example in other ways, but there are others, and I'm not sure what they have in common. Maybe the use of groups within entries? But sometimes that works. I don't know...  Also maybe the problem is related to  somehow?


Given:    Calculate $\int_{|z|=2}\sqrt{z^2-1} dz$    Hint:$\sqrt{z^2-1}=z\sqrt{1-\frac{1}{z^2}}:=z\exp(\frac{1}{2}\log(1-\frac{1}{z^2}))$    I tried it for several hours and didn't manage to get anywhere i would be happy to get another hint for solving this.    Edit: I thought maybe using the formula $(1+z)^k=\sum_{0}^{\infty}\frac{k(k-1)...(k-n+1)}{n!}z^n$ and i got to this after some calcualtions $\int_{|z|=2}\frac{z}{2}+\frac{1}{4z}+o(z^{-3})dz$


Blog sometimes losing pages due to picking up incorrect configuration

As SE developer Chris explains in :     We use a Jekyll-based blog generation system. Unfortunately, sometimes some of the pages do not generate correctly, thus causing the files to be missing. Regenerating the blog usually solves this, but knowing when we have a "busted blog build" is half the battle. (The other half of the battle is fixing the system for good so that all pages generate correctly all the time.)    This happens quite often, think the first time was reported as .  All past reports are about single missing page, hence starting now a "generic" report.  I am aware the battle is long and hard, would be happy to get updates about the progress right here in this report. :)


In node--article.html.twig  <article{{ attributes.addClass(classes) }}>   {{ created.content | date("d/m/Y") }}   {{ content.title }}   {{ content.body }} </article>   The title is not displaying. How do I do this?


Prove that $\Re \oint_\gamma \overline{ f(\zeta)}f'(\zeta)d\zeta=0$

Suppose that $f$ is homolorphic in a open subset $\Omega$ of $\mathbb{C}$. Why  $$\Re \oint_\gamma \overline{ f(\zeta)}f'(\zeta)d\zeta=0\ ?$$ with $\gamma$ a closed curve in $\Omega$  This is my reasoning: $$\Re \oint_\gamma \overline{ f(\zeta)}f'(\zeta)d\zeta=\oint_\gamma \Re \Big(\overline{ f(\zeta)}f'(\zeta)\Big) d\zeta$$ If we denote $f:=u+iv:\Omega \to\mathbb{C}$ it's easy to prove that: $$\oint_\gamma \Re \Big(\overline{ f(\zeta)}f'(\zeta)\Big) d\zeta=\oint_\gamma u(\zeta)\frac{\partial u}{\partial x}(\zeta)d\zeta +\oint_\gamma v(\zeta)\frac{\partial v}{\partial x}(\zeta)d\zeta $$ I think that we can apply some theorem of real analysis. Any hint?  Many thanks


use of "a" before the uncountable word "consensus"

All major English dictionaries say that consesnsus is uncountable, but right under this warning they provide example sentences like the following:"We reached a consesnsus." How come?


Determining total number of tickets sold

Let's say there is a lottery where ticket numbers 58,145,350, and 400 won. Is there a way to determine the most likely number of tickets sold? We are assuming non-replacement and fair draws.


Linux Mint LAN Connecting But Not Working

I am new to Linux and working on Linux Mint 17.2 on my laptop.  I am able to connect using LAN wire (i.e. on the right bottom it shows connected) but not able to access the internet. It works great on Wifi, but not working at all on LAN connection. I tried with the same LAN wire and same IP address on my friend's laptop (Windows), and it is working.  I have tried many things from , like installing a firmware package and driver, but no success. I also can't find any question on any forum where it shows that LAN is connected and then it isn't working. Please help me. I am new to this so I might be making some obvious mistake.


How is blink installed  Ubuntu Focal? nicholas $  nicholas $ sudo apt update Hit:1 https://download.jitsi.org stable/ InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease                                         Hit:3 http://archive.canonical.com/ubuntu focal InRelease            Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:6 http://archive.ubuntu.com/ubuntu focal-security InRelease          Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease         Ign:4 https://ag-projects.com/ubuntu focal InRelease                    Err:8 https://ag-projects.com/ubuntu focal Release   404  Not Found [IP: 81.23.228.137 443] Reading package lists... Done E: The repository 'http://ag-projects.com/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. nicholas $   Or, can it not be installed through apt repo's?  It must be manually installed?


I'm newbie to Ubuntu, I've just started using it, previously when I used cd command to change directory it was working fine but now I'm trying to change the directory using cd command but I'm getting this error on terminal No such file or directory.  I've tried commands shown in screenshot but it doesn't work for me.    Could you please help me to resolve that one.  Thanks in advance.


I have sample data file (csv) as below and required to generate large data from sample file. for that i need to change date (DD) in timestamp and run for loop to generate more data.  14/03/2017 00:05:58,General2,General3,General4,General5,General6,General7


I'm new to CSS. I want to use the Helvetica Neue font in my little project. I have downloaded the .ttf file and I tried to insert it through the @font-face rule:  @font-face{     font-family:"Helvetica Neue Light";     src:url("contenuti/HelveticaNeue-Light.ttf"); /*That's where I put it*/ }   To apply it I used:  .xyz{     font-family:"Helvetica Neue Light";     /*...other things...*/ }   The problem is that neither Safari or Chrome display it  What could I do?


Assiging a static IP - write permission denied

Reading the earlier posts, I followed the posted replies. Since I am brand new, I opted to use the Ubuntu GUI, from which I entered the Terminal. At the terminal, I entered nano /etc/network/interfaces. at the line AUTO enp4s0 and IFACE enp4s0 INET DHCP, I changed it to read:  auto eth0 iface eth0 inet static address 192.168.1.7 netmask 255.255.255.0 network 192.168.1.0 <---I guessed at this from a earlier post gateway 198.168.1.1 dns 192.168.1.1 <---this too was a guess    **note that the two lines marked as guesses were added because two posts had them, while others did not.   I then  entered CTRL+X to exit. Was prompted if I wanted to save.  Entered Y for yes. Return message was   ERROR WRITING /etc/netwrk/interfaces: Permission denied.   Any assistance to get a static IP assigned would be appreciated.


Why does my array become undefined as soon as the function is over?

Okay, I'm just doing a function that moves everything from one list to another, and as soon as that's finished, it spontaneously becomes undefined. There is no good reason for it to do that but what's the bad reason?  Here, look,  function moveList(){//in my real program it actually shuffles the list, this one just transfers the contents     var listOne=[0, 1, 2, 3];//we have a list     var listTwo=[];//now we have an empty list     var length = listOne.length//and now we have the list length     for (run = 0; run < length; run++) {         listTwo.push(listOne[0]);//it just copies the first entry from the first list to the second         listOne.splice(0, 1,)//and deletes it from the first list     }//this does it for an entry in the list, it's length amount of times     console.log("listTwo: " + listTwo);//this tells us what the new list now is, and it works     console.log("listOne: " + listOne);//this tells us what the original list is, which is empty } var listOne; var listTwo; //these are mandatory, without this, even with the function below script, //you have Uncaught ReferenceError: list(One and Two) is not defined moveList();//now we do the function, and then, console.log("listTwo: " + listTwo);//THE LIST IS NOW UNDEFINED??? What??????   Just why? I literally just defined it in my function. What's wrong with you (literally, I don't see)?


What's the difference between defining methods on a prototype individually vs via an object?  Example:  function Example() {   this.Test(); }  Example.prototype.Test = function() {   alert("Example"); };   instead of:  function Example() {   this.Test(); }  Example.prototype = {   Test: function() {     alert("Example");   } };


I have tried through the Google Play store and it does not seem possible from there, but does anyone know if it is possible to remove an application remotely?   In other words, if I do not have direct access to my phone, can I make use of some website, app or service to uninstall an app without being able to interact with the phone directly.


Installed Ubuntu 14.04 LTS, set a password, and when computer restarted, I typed in a password that Ubuntu said is incorrect

Installed Ubuntu 14.04 LTS, set a password   When computer restarted, I typed in a password that Ubuntu said is incorrect. >How can I solve this?


Why can't I create a new list Cusom setting?

I'm working on a Partial copy sandbox with a standard System Administrator profile User. Why can I only create Hierarchy Custom settings? In production I can create list Type custom Settings with the same User.  I couldn't find any related info in either the Custom Settings limits :   or Defining custom settings help :


Is using the definite article here in this sentence incorrect? If yes, what's its reason? The word 'chapter' is a count noun.   Have you finished the chapter eight of your novel book?


can we get electrical energy from gravitational energy?

Now I'm trying to give an answer of the question. Satellite rotates about earth by the gravitational force of earth. Now if we place the satellite in such an orbit so that it rotate in opposite to earth rotation and having a greater angular rotational speed.   Now there is an existence of earth magnetic field. Though it is very poor but strength of magnetic field is not the major factor of energy conversion. So as in electrical machine rotor rotates and stator gives magnetic field and electricity generates is it not possible to extract gravitational energy by using satellite as rotor and geomagnetic field as stator? how much it is effective?   Edited: OK eventually this question becomes duplicate. Now I am asking how can we store this energy. Can we store this energy? or not.


I saw this sentence:      The tea tastes better if you drink it hot.   Since 'drink' is a verb, it really confused me why the adj 'hot' is used here rather than the adv 'hotly'?


How to capitalize "get out of" in a title according to CMOS?

I need to know how to correctly capitalize this title. I usually go with the Chicago Manual of Style for rules, but wasn't able to find anything regarding something like this:        This Is How He Finally Got the Hell Out Of Mexico!   This Is How He Finally Got the Hell Out of Mexico!   This Is How He Finally Got the Hell out of Mexico!      I know that prepositions should not be capitalized as long as they are shorter than five letters. So is "out of" a single preposition consisting of two words, or does "out" act as a part of the phrasal verb "get out"?


Plural/singular verb agreement with units

When writing about specific quantities, should the verb reflect a singular or a plural value?  Do abbreviations vs. spelled-out words make any difference?  I took 2 ml of water, which was/were then added... Six microliters of protein solution was/were placed in a centrifuge...


I understand topic of Hot Network Questions was brought up a few times, but the question remains: Will there be any possibility to somewhat profile what is shown up there? I am totally uninterested in couple of categories (for example gaming, role-playing) which always show up, yet I am interested in others which never show up. Some user selectable option would be nice.


I am working on a thesis, I use report document, I need to format a list of figures as shown in the image:   The same heading should be repeated in all LOF pages. The "List of Figure" should be in centered and 16px.  Thanks


I am using Ubuntu 16.04 with an HiDPI monitor (3840x2160). Following an update earlier this week (which also broke the unity desktop) the display scaling now resets to 1 when resuming from sleep.  I was hoping that this would get corrected in the upgrade from 16.04.3 to 16.04.4 but that is not the case. When the unity desktop broke I ran the following commands which eventually corrected the issue of the missing launcher and top panel:  sudo apt clean sudo apt autoclean sudo apt install -f sudo apt install -f unity sudo apt install -f ubuntu-desktop sudo reboot   When I realized that display scaling was resetting to 1 after resuming from sleep, I tried the following commands:  cd .cache mv compizconfig-1 compizconfig-1_old reboot   and  sudo apt install --reinstall unity-settings-daemon reboot   However, neither of these approaches worked. Is this issue affecting anyone else?  Is there a way to prevent the display scaling from changing everytime the computer is inactive long enough to go to sleep?     Update: (7 March 2018)  I can't tell if this is truly a duplicate of the issue in Ubuntu 17.04 as indicated by david6. The problem with the scaling is the same, but only when using the AMD 17.50 drivers. When using the kernel's amdgpu driver the problem does not exist. Is this the same issue? Note using the latest AMD drivers released today (17.50-552542) does not fix the issue.      Update: (26 January 2019)  What an annoying problem.  Since the last update, subsequent upgrades resulted in the issue being present regardless of what driver I used.  After upgrading to 18.04 the issue was still there.  Presently my screen now goes blank but the computer does not inter a sleep state, judging by the whir of the fans, therefore there is no more scaling reset occurring.  This is fine for my desktop situation.


GetHashCode Implemetation for multiple properties in class

I need to compare to List's of Gu45Entity  List<Gu45Entity> Gu45EntityItemsFromDb = DataBaseModel.Instance.Gu45DocumentStore.Include(x => x.EGu45.Gu45).ToList(); List<Gu45Entity> temp = Gu45EntityItemsFormService.Except(Gu45EntityItemsFromDb).ToList();   If I understand correctly I need to implement IEqualityComparer<T> For every class. But how in my case should be implemented GetHashCodefor example to Gu45 . Id should not include in the comparison because it's random number generated by database.  public class Gu45 : IEqualityComparer<Gu45> {     [Key]     public int Id { get; set; }     public Branch Branch { get; set; }     public Direction Direction { get; set; }     public Org Org { get; set; }     public Wagons Wagons { get; set; }     public string Num { get; set; }     public string Date { get; set; }     public string Esr_mount { get; set; }     public string Esr_mount_name { get; set; }     public string Rw_mount_name { get; set; }     public string Delivery_time { get; set; }     public string Taking_time { get; set; }     public string Sign { get; set; }      public bool Equals(Gu45 x, Gu45 y)     {         throw new NotImplementedException();     }      public int GetHashCode(Gu45 obj)     {         throw new NotImplementedException();     } }   Classes:  Gu45Entity:  public class Gu45Entity {     [Key]     public int Id { get; set; }     public EGu45 EGu45 { get; set; } }   Egu45:  public class EGu45 {     [Key]     public int Id { get; set; }     public Gu45 Gu45 { get; set; }     public string Signature { get; set; }     public string DocState { get; set; } }   Gu45:  public class Gu45 {     [Key]     public int Id { get; set; }     public Branch Branch { get; set; }     public Direction Direction { get; set; }     public Org Org { get; set; }     public Wagons Wagons { get; set; }     public string Num { get; set; }     public string Date { get; set; }     public string Esr_mount { get; set; }     public string Esr_mount_name { get; set; }     public string Rw_mount_name { get; set; }     public string Delivery_time { get; set; }     public string Taking_time { get; set; }     public string Sign { get; set; } }   Branch:  public class Branch {     [Key]     public int Id { get; set; }     public string Code { get; set; }     public string Name { get; set; } }   Wagons:  public class Wagons {     [Key]     public int Id { get; set; }     public Wagon Wagon { get; set; } }   Direction,Branch,Org,... and others.


Why isn't a mapped drive available under an elevated cmd prompt but is under a regular cmd prompt?

With Windows 8, why isn't a mapped drive available under an elevated cmd prompt but is under a regular cmd prompt? I can run a net use and get it to be available but I still find this odd.


I'm creating a scene for a project and I wanted to go for the god ray effect achieved by the lights passing through the window. I added a mesh onto which volume scatter node was added, but still, even after fiddling with the volume scatter density, the desired effect couldn't be achieved. Also, the outline of the mesh on which the volume scatter node was applied is visible. For the environment, I used sky texture, and even after using a sun lamp, the results remain the same. I use blender 2.90 and use the sun disk feature to light the environment. when setting the sun elevation to a specific degree, while rendering it automatically changes. Heres a picture of the look that I'm going for (got it from blender guru tutorial)  and here's the render result of my project (ignore the noise)


I want to draw arrow with two colors, the resulted arrow should be filled by one color at the top and by other color at the bottom, like the following code do to a rectangle:  \draw[top color=blue,bottom color=green] (0,0) rectangle (2,1);   What should I do?


Rudin has a proof in which he is proving that $A=\{ p \in \mathbb{Q}\;|\; p^2<2\}$ has no maximum element (or in other words, an element which is greater than every other element).  For this he creates a rational $q=p-\dfrac{p^2-2}{p+2}$ and uses this rational $q$ to show that it is greater than $p$ and still in $A$. Since $p$ was arbitrary element of $A$, this finishes the proof.   I follow the proof but I don't understand where the formula for $q$ magically came from. Any help?


I am using this program "Scientific Workplace", which seems to have a proprietary-non-standard version of LaTeX, i.e., a version that cannot be readily interpreted by standard Latex readers; I uploaded a .tex workplace file to someone who has a LaTeX reader, and no matter how he tried to open it, all he got was a garbled mess.  Does anyone know how to go around this, i.e., does anyone now if there is a special way of saving a file in Sci Workplace, or some other trick so that a Sci. Workplace-version Latex file can be  read by standard LaTeX readers?


I have this simple code: \documentclass[10pt]{article}  % amsmath package, useful for mathematical formulas \usepackage{amsmath} % amssymb package, useful for mathematical symbols \usepackage{amssymb} \usepackage{changepage} % graphicx package, useful for including eps and pdf graphics % include graphics with the command \includegraphics \usepackage{graphicx} \usepackage{subfig} \usepackage{listings} \usepackage{caption}  % cite package, to clean up citations in the main text. Do not remove. \usepackage{cite}  \usepackage{color}  % Use doublespacing - comment out for single spacing %\usepackage{setspace} %\doublespacing  % Text layout \topmargin 0.0cm \oddsidemargin 0.5cm \evensidemargin 0.5cm \textwidth 16cm \textheight 21cm  % Bold the 'Figure #' in the caption and separate it with a period % Captions will be left justified  \usepackage[labelfont=bf,labelsep=period,justification=raggedright]{caption} \usepackage{amsfonts} \usepackage{t1enc} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{pdflscape} % Allow long tables to be split over multiple pages \usepackage{longtable}  \title{TEST}  \begin{document} \maketitle \section*{Equations}  \noindent Example Equation \begin{equation} E_x= 1-e^{-k_{time}t} \end{equation}  ...  \texttt{E_x}  \end{document}  I receive "Missing $ inserted" on the \texttt{E_x}, but I know that \texttt{} function is used to produce a text-mode of what it has inside the {}. What am I wrong?


I have run boot repairs twice and installed bionic beaver twice and still can't get the system to boot up.  I have generated the following url so someone can PLEASE give me a hand.   I installed and used Ubuntu 16.04 no issues I couldn't research and fix on my own but this bionic beaver is a POS.  No more upgrading for me.  I don't know enough.  Please help, I need a computer. Oh, there is no other OS on my laptop.


How can I stop being redirected to the App Store/Google Store by dodgy ad-scripts?

There are a load of sites that do this now, and it's really annoying:   I visit a content site on my Android device. 10-15 seconds after loading starts the site hangs for a few seconds. Google play store loads with a garbage app (usually some awful FTP or useless battery app) pre-selected.   This appears to be because a dodgy ad-script (i.e. Javascript running in the web page) is somehow able to redirect my device to open a link to an application in the store without me selecting it directly.  I consider it to be a critical security fail that Android lets this happen, but then Iphones do the exact same thing (but hang for much longer opening the app store).  This isn't me accidentally clicking on anything - the site loads, then the play-store redirect fires, every time.   Is there any way to stop this? Any option I can set in the store or browser to stop this incredibly annoying behaviour?  I'm on a Nexus 7, but I've seen this on lots of other Android devices.


How can I overwrite the same portion of the console in a Windows native C++ console app, without using a 3rd Party library?

I have a console app that needs to display the state of items, but rather than having text scroll by like mad I'd rather see the current status keep showing up on the same lines.  For the sake of example:     Running... nn% complete   Buffer size:  bbbb bytes   should be the output, where 'nn' is the current percentage complete, and 'bbbb' is a buffer size, updated periodically on the same lines of the console.  The first approach I took simply printed the correct number of backspaces to the console before printing the new state, but this has an obnoxious flicker that I want to get rid of.  I also want to stick to either standard library or MS-provided functionality (VC 8) so as not to introduce another dependency for this one simple need.


Front camera on an iPhone 4S no longer works

The back camera works just fine but the front one does not. When I select it, it just freezes. When I quit the app and select it again it presents just a black screen; no image. I tried closing and resetting the phone but that hasn't helped.  Can anyone help me fix this in some free way?


Ubuntu 20.04, appimage in dock adds a new instance upon launch

I got 3 appimage I'd like to launch via the Ubuntu dock on 20.04. I've manage to add them to the dock, with the correct icons I've downloaded apart. I'm sure it is possible to find the icon in the appimage, I've to check.  My issue is, when I click on the launcher (which works), the dock adds a new instance of the launcher, so that I've 2 launchers (one is permanent, the one I created and the other is temporary and will be removed when the application is closed).  Is there a mean to avoid the second temporary launcher to be created? Appimage concerned are CURA, REPETIERHOST, PRUSASLICER, all in last available version.


MOSFET terminology seems to vary in every article I read

For someone trying to learn about FETs, it seems there is no consistency in terminology (unless I am reading things wrong.) I am trying to understand the FET as a switch (for power applications.) It has become clear that you want to operate a switch in the ohmic region. To get to the ohmic region you would need to go from cut off -> saturation -> ohmic region. TI refers to it like this in an   From this I implied that the 'linear' region is in fact rather confusingly the saturation region of the FET as shown all across the web for a FET curve:  However, when I went to wikipedia I came across the following image:  This is saying the exact opposite of what I understood which is saying that the ohmic region is the linear region. Infineon has an app note around FET switching, titled  They refer to the linear mode as the saturation region as shown from this:  So what is it then? Also just to be clear: Is the reason we want to minimise time in the saturation region with an FET because here we have a VDS and an ID current flowing through the FET, whilst as soon as the FEY reaches linear region, it's VDS would fall close to 0 and hence minimise losses? When we say the FET is saturated, it means for a given Vgs, Vds makes no difference to drain current (because channel can't let more electrons to flow?) Shouldn't the ohmic region be called saturated? Since increasing VGS makes no difference to drain current as the ID is now limited by the circuit and not the FET? Edit: Answers in electronic stack exchange say it is the saturation region:


Do I need quote marks when I quote myself?

Hello language lovers,   English isn't my first language and I would like to know if I need to use quotation marks when I quote something I said in the past.


As far as I know, a period is commonly used for an abbreviation (e.g., Feb., Mon., Inc.). But I can also see a slash in these cases: w/, w/o.  Is there any grammar rule for an abbreviation? or is latter case an exception?


Is solvedstack.com Affiliated With Stack Exchange?

Lately I've noticed lots of search results coming up on the domain .  They appear to be [solved] questions from   The questions and answers are identical, and even the user pictures seem to be copied over.  Is this a legitimate affiliate of Stack Exchange that is intended to provide additional value?


I've obtained a multiple linear regression model in the form $$ \mathrm{log}(Y) = \beta_0 + \beta_1x_1 + \dots + \beta_4x_4 + \beta_5x_1x_2 + \dots + \beta_{10}x_3x_4 + \beta_{11}x_1^2 + \dots + \beta_{14}x_4^2  $$ from the model I've obtained some contour plots that, for a more immediate interpretation, I've back transformed in original units (using $10^{\tilde{y}}$).  Now my question is: do I need to back transform also the model parameters, the confidence intervals of the parameters themselves and the interval of prediction for new responses? How?  I think that would be nice to back transform at least the RMSEP and RMSE in order to obtain an estimate in original units of the mean error associated with the model in prediction and in fitting. How?


I am working on my thesis and I had to do a multiple regression. I have only 45 samples and I checked that there were not problems of multicollinearity (VIF < 3) and the residuals are normally distributed.     The overall model is statistically significant (p=0.001) but all the predictors are not significant except the constant. How is it possible? Which type of analysis can I do? Thanks a lot for your support. Dam


My transparent object show jungle? Every time I make transparent object there is always a reflection of a jungle. why? how do I get normal transparent object?


How do I set up my studio for shooting large rugs from the ceiling?

I am trying to take pictures of large rugs. The rug size is about 10mx5m, and I'm  planning to purchase , and Canon 7D Mark II with Canon EF 50MM F/1.2L USM lens, since we need high quality images.  We want to set up a studio to take giga-pixel quality images of the large rugs for museum conservation purposes  Could you please suggest the best way for mounting the camera to the ceiling, and any other recommendations for my camera/lens setup, and required lighting? It will be  an indoor shoot. Just we want to setup a studio to shoot the large rugs.


Factorization of polynomial $(a-b)^4+(b-c)^4+(c-a)^4$

Polynomial manifactoring of $(a-b)^4+(b-c)^4+(c-a)^4$ I've tried to factor all but didn't help. I'm in sevent grade and don't know many techniques So I wonder could someone help me.


How first-order logic based ZFC can model mathematical theories formulated with higher order logic?

Zermelo–Fraenkel set theory with axiom of choice (ZFC) can be used as a foundation of mathematics. It means, that any theory can be expressed in terms of ZFC. In particular, it should be possible to formulate Euclidean geometry in terms of ZFC. However, ZFC is based on the first-order logic and Hilbert axioms cannot be formulated in terms of the first-order logic, because of the Archimedes axiom and the axiom of completeness (for that we need to use second-order logic). How can one combine these two facts? I have two options:  Euclidian geometry cannot be expressed in terms of ZFC (and probably many other theories in mathematics are not expressible in ZFC because of the same reason). Things expressed in the second order logic can also be expressed in the first order logic. Or, less bold statement, some parts of the second order logic can be expressed in terms of the first order logic (maybe Hilbert axioms do not use all the elements of the second order logic).  My question is not about Hilbert axioms (they are used just an example). My question is about how a first order logic system can be used to emulate / model a second order logic axiomatic system.  does not answer my question.


xelatex: Minted code block represents tabs as ^^I

I am producing LaTeX output with org mode.  My code snippets wind up being indented with tabs, because of my c-mode settings.  Changing these would be inconvenient.  Although the snippet I am posting could be compiled with latex, I need to be able to compile Unicode documents, so I am using xelatex -shell-escape to compile the automatically generated latex source. The generated source looks like this: Which produces LaTeX like the following (some irrelevant stuff removed, this reproduces the problem):  \documentclass[11pt]{article}  \tolerance=1000  \usepackage{fontspec}  \usepackage{minted}  \author{Glen Stark}  \date{\today}  \title{sample}  \begin{document}   \section{Foo}   \begin{minted}[]{c++}  void foo()  {      void bar = fb();      std::cout << "fbar" << "\n"  }  \end{minted}  \end{document}  Compiling this with xelatex -shell-escape results in output like:  void foo() ^^Ivoid bar = fb(); ^^Istd::cout //etc.  The whitespace in the minted block is a tab.  Obviously xelatex is inserting something funny in place of the tabs.  I have a workaround where I force generation of spaces instead of tabs, but this is inconvenient. Anyone know what the fix/problem is?


"Thirty times weaker": Using a multiplier to describe the lack of something

I was watching CNN's coverage of the earthquake that struck northern California this morning, and I heard the following exchange between the CNN anchor and a seismologist, Walter Hays:  ANCHOR: This is 6.1 on the Richter scale, that means ... one-tenth the power of the one that struck in '89? HAYS: No, that's the confusion ... It's nearly thirty times mo—weaker. It's one-thirtieth of the Loma Prieta earthquake.  (Emphasis mine.) As it happens, this touches on a longstanding peeve (and I am perfectly willing to describe it as such) that I have about the use of positive multipliers to describe the lack of something: twice as small, three times colder. In everyday use, of course, this pattern is readily understood as indicating the reciprocal of the opposite quality: something that's thirty times weaker is actually one-thirtieth as strong. It was interesting to hear Mr. Hays catch himself making the mistake, and then correct himself using more formally precise language—something I think a scientist would be more likely to do than a layperson. So my question is: Is this really a mistake, or is it actually semantically proper/meaningful to use language indicating a positive magnitude to characterize a concept that is defined specifically as a lack of something else? We don't have a problem using ordinary intensifiers and superlatives in such contexts: a thing can be very small or much weaker. It seems intuitive to me that a multiplier should be treated differently from an intensifier, but I can't actually define why that should be the case. What about the reverse: if twice as small is semantically proper, what about half as small (the obvious ambiguity notwithstanding)? Or are these all more properly thought of as physics or mathematics questions, rather than language questions?


Add option to navigate from promoted question to that sites list page

On the iOS mobile app I get interesting questions from across the exchange network. Occasionally I click on one as it peaks my interest (I'm guessing that was the design intent).... Let's say a "Puzzling" question.  I'm intrigued now and want to see other questions from this site... I can't see a simple way to get such a view and clicking the name of the site just takes me back to that specific question.  It is even worse when the question is on a network I follow... I can't jump to the list from there either.   E.g. This is the screen I'm taken to:   And the back arrow in the top left just takes me to my "SE home screen"


Evaluate $\lim_{x \to 0} \frac{\cos (\sin x) - \cos x}{x^4}$

Evaluate $\displaystyle \lim_{x\to0} \frac{\cos (\sin x) - \cos x}{x^4}$   The answer stated is $\displaystyle {1 \over 6}$.     What I've tried:  $$\displaystyle \lim_{x\to0} \frac{\cos (\sin x) - \cos x}{x^4}$$  $$=\displaystyle \lim_{x\to0} \frac{\cos (\sin x) -1+1- \cos x}{x^4}$$  $$=\displaystyle \lim_{x\to0} \frac{1- \cos x}{x^4} - \frac {1-\cos (\sin x)}{x^4}$$  $$=\displaystyle \lim_{x\to0} \frac{2 \sin^2(\frac {x}{2})}{x^4} - \frac {2 \sin^2(\frac {\sin x}{2})}{x^4}$$  $$=\displaystyle \lim_{x\to0} \left(\frac{\sin(\frac {x}{2})}{x} \right)^2. \left( \dfrac{1}{2x^2} \right) - \frac {2 \sin^2(\frac {\sin x}{2})}{x^4}$$  I'm not sure how I can evaluate the limit by proceeding this way. All help will be appreciated.   P.S. I'd prefer not using L'Hôpital's rule, it can get really messy.  EDIT: I should have mentioned that I would prefer if the solution does not use taylor series approximations (or any approximations) for that matter.


Homework Problem Expected Value MM estimator, Correct?

We are given the following density function: $$ f_{\theta}(x) = \frac{\theta}{x^2} I\{x\in [\theta, \infty] \}, \theta > 0 $$ and are supposed to calculated the methods of moments estimator. To do so, I frist calculate the expected value: \begin{align} \int_{-\infty}^{\infty} x f_{\theta}(x) dx = \int_{-\infty}^{\infty} x \frac{\theta}{x^2} I\{x\in [\theta, \infty] \} dx &= \int_{0}^{\theta} x \frac{\theta}{x^2} I\{x\in [\theta, \infty] \} dx + \int_{\theta}^{\infty} x \frac{\theta}{x^2} I\{x\in [\theta, \infty] \} dx \\ &= 0 + \int_{\theta}^{\infty} x \frac{\theta}{x^2} dx = \theta (ln(\infty) - ln(\theta)) = \infty \end{align} Thus the expected value does not exist. Hence the MM estimator does not exist. Is my argument correct?


Suppose I have a block like this:  \begin{block}{My awesome block} It really is awesome! It has a header and a body, both areas filled with fancy colors! \end{block}   I want to use the background color of the block's body (that is, the area of the block, not the text within the block) OUTSIDE the block, because it's such a nice one. I know I can get the beamer color of any element by   \usebeamercolor[bg]{block}   however, using this I get white for the background and black for the foreground...which are probably the colors for the text within the block, but not the colors of the block structure itself.


How can I play the content from another account on my new Xbox 360 console?

My brother bought a lot of games and game expansions a while ago on our XBOX 360, and I could play those as well. Now we have a new 360 and I can't play them on my account any more, while he can. Is there a way to re-install them without having to purchase them again?  Also: When I launched Skyrim once on his account and then switched back to mine, I could play the expansions, but when I came back to play the next day I couldn't, and logging in on his account no longer worked.


I have a big LaTeX file which I would like to compile so that certain environments like figure are not shown. To that end I wanted to make use of the renewenvironment command. But the facilities of this command are rather limited: essentially, one can only replace an environment by something which is logically also an environment. What would suffice for me, hence, is to introduce a 'dummy enviroment' - one which discards the argument. Is there any way to define it?  EDIT: I also need to eliminate the displaymath environment. This might be essential, because the argument of it is not going to be valid text on its own.


How to discover my own IP address after login?

When I use SSH to connect to a Linux server, I see a message informing me about the origin of my last login. For instance:  Last login: Mon Jul  7 14:37:09 2014 from host.example.net   I would like to know if it's possible to discover the IP/hostname from my current session (that is, the machine that I'm logging from right now).


Solution of limit $\lim\limits_{x\to 0} \frac {e^{-1/x^2}}{x} $

Small question, I'm trying to solve this limit but I just can't wrap my head around this problem.  $$\lim_{x\to 0} \frac {e^{-1/x^2}}{x} $$  L'Hopital just seems to make it messier.   It's probably pretty simple - I'd like to hear what I'm missing.


Question about sines of angles in an acute triangle

Let $\triangle ABC$ be a triangle such that each angle is less than $ 90^\circ $.   I want to prove that $\sin A + \sin B + \sin C > 2$.   Here is what I have done:  Since $A+B+C=180^{\circ}$ and $0 < A,B,C < 90^\circ$, at least two of $A,B,C$ are in the range 45 < x < 90, without loss of generality, let these angles be $A$ and $B$.  $\sin A + \sin B + \sin C = \sin A + \sin B + \sin(180^\circ-A-B) = \sin A + \sin B + \sin(A+B)$  Since $45^\circ < A,B < 90^\circ$ it follows that $2^{0.5} < \sin A + \sin B < 2.$ Am I near the answer?


Comparing last character(s) of the output of \ref to manipulate output

I am trying to write a command that will replace \ref in a special way. It will add some text next to the number based on the last character(s) of the number \ref outputs.  I will try to explain this with an example:   If the last character of \ref output is 1 (like if it is 11, 21, etc.) then the output shall be "1'de" instead of "1" Similarly if the last character of \ref output is 5 (like if it is 5, 15, etc.) then the output shall be "5'te" instead of "5" If the last character is "0" then, the code should check last 2 characters. It will output something for 10 and another thing for 20 and so on.   So the spec goes like this:   1: 1'de 2: 2'de 3: 3'te 4: 4'te 5: 5'te 6: 6'da 7: 7'de 8: 8'de 9: 9'da 10: 10'da 20: 20'de 30: 30'da ...   It goes on forever. I will cut at some point.  I am stuck at the beginning. I couldn't get the output of \ref{} to compare it with anything. I tried the following as a first trial using etoolbox and xparsebut unfortunately failed to compare:  \NewDocumentCommand \reftr {m g}{% \ref{#1}%Outputs the output of \ref with no problem \IfNoValueTF{#2}{}{%     \expandafter\ifstrequal{\ref{#1}}{1}{'de}{'??} %this should at least give me 'de for the first crossref but it doesn't. }% }%   What am I doing wrong?


Who is [company name] or Who are [company name]

I work at a company and we are redesigning our website. One of the titles of a page is about the company and who we are. There is a huge debate going on regarding how the initial question should be phrased...  Who is [Company name] Who are [Company name]  I should also mention that our company name is in a plural form. Whether this makes a difference or not is also up for debate.  Looking forward to hearing peoples suggestions.


A part of my batch script involves creating a timestamp in the batch file. I am using the following code to get the date in yyyy-mm-dd format set mydate=!date:~10,4!-!date:~4,2!-!date:~7,2!  This when the setting on my pc is mm-dd-yy and date command returns The current date is: Mon 09/26/2016 and my above command converts it into 2016-09-26  but the problem is when i run my script on another machine which has a dd-mm-yy format where the date command returns this:  The current date is: 26-Sep-16 and my above command gives me this: -ep-16  How can i always get the date in my desired format (yyy-mm-dd) irrespective of the date format settings on the computer?


So before I reformatted (to get rid of Windows), I simply used this command to open documents by putting it at the end of the ~/.bashrc file:  alias commandless= 'gnome-open ./Documents/the-linux-command-line.pdf; gnome-open ./Documents/linux.odt'   But now everytime I start the terminal, it says:  bash: alias: gnome-open ./Documents/the-linux-command-line.pdf; gnome-open ./Documents/linux.odt: not found   before even typing anything in, and when I run the command nothing happens, not even error messages.


How can I recover files from a Western Digital (WD) My Passport external hard drive?

I have a Western Digital (WD) My Passport WDBYNN0010B external hard drive and I accidentally deleted some important media files (mostly wmv format). I have tried many recovery programs e.g. Recuva, easeuse, and stellar. All of these programs say that these files are not overwritten and can be recovered but I can not open the recovered files. All of these programs works well for my ADATA external drive. I have not stored any more files in the external drive after this accident. My PC has Win 10 and has USB 2 ports unlike the external drive that has USB 3. Does anyone know 1) how I can recover these files and 2)what is the reason of the above problem?


So I have this problem that I want to have a factory / manager class UserManager that manages Users. And Users have both UserType1 and UserType2 extending to it.  currently I have this for UserManager.   public abstract class UserManager<T extends User> {     // T is either UserType1 or UserType2     public ArrayList<T> users; }   Now I want to create UserType1 or UserType2 depending on conditions, e.g.  public T create(boolean isType1) {     if(isType1) // create UserType1     else // create UserType2 }   And I can't just do  T newUser = new T();   I'm stuck, any help is appreciated!!


Recently I've seen many people on Twitter use "of" instead of "have". Eg. Ben Stokes tweeted after the world cup final, " So proud to of represented my country in a world cup final"  I don't want to generalise, but I think I've seen this used by primarily British people. Is it slang or are my basics weak?


Why choose an APS-C mirrorless kit over a full-frame SLR kit?

The biggest tradeoff between SLRs and mirrorless cameras is compactness for sensor quality. In particular, an APS-C mirrorless kit costs about the same as a low end full-frame SLR kit.  There are lots of situations where you would lose pictures on the mirrorless kit that you might have gotten on the SLR kit (nighttime, concerts, buildings).  The other way around it is not so clear.  The word on the street is that mirrorless cameras are less obtrusive than SLRs, but I am not sure I believe this. Is a full-frame SLR gawdy enough that it justifies foregoing sensor quality?


SHA256 HMAC brute force with chosen plaintext attacks

This is a follow up to   I am using a SHA-256 HMAC function on a single-word input: sha256hmac(privatekey,word) = output. The private key length is 128 bits, it does not change. The "word" is literally one short word.  Assuming an attacker knows "word" and "output" for multiple words (e.g., dog = "dsfwrw3r3r323211", cat = "3erwerwetwewer"):   Is it significantly easier for an attacker to identify the private key by brute force with the above word/output pairs, as compared to a situation where they do not have those pairs? Is this brute force vulnerability (with word/output pair knowledge) an actual security concern?


Automated Cover Letters with Dynamic Content

I'm trying to generate cover letters starting from a single document. Since I'm sending the same letter to different persons with different address I thought it would be great to use this document as template and change only the information pulling data from another file, much in the way dynamic HTML documents works.   Now I have two documents, the main one that will contain all the letters and pull the information, and the other with the content. Here are my documents:  This document is called "Infection-Label_letters:"  \documentclass[11pt,a4paper,sans]{moderncv}    \moderncvstyle{classic}      \usepackage{datetime} \usepackage[ngerman,english]{babel}  \usepackage[english,ngerman]{babel}      \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox  \makeatletter  \patchcmd{\makelettertitle}% <cmd>  {\raggedright \@opening}% <search>  {\@opening}% <replace>  {}{}% <success><failure>  \patchcmd{\makelettertitle}%   {\end{minipage}\\[1em]}%   {\end{minipage}\\[2em]}%   {}{}   \renewcommand*{\makeletterclosing}{    \@closing\\[6em]%    {\bfseries \@firstname~\@familyname}%    \ifthenelse{\isundefined{\@jobtitle}}{}{\\\@jobtitle}% <-- added to orig. def   \ifthenelse{\isundefined{\@enclosure}}{}{%     \\%      \vfill%      {\color{color2}\itshape\enclname: \@enclosure}}}  \def\jobtitle#1{\def\@jobtitle{#1}}  \makeatother  \moderncvcolor{green}     \usepackage[utf8]{inputenc}   \usepackage[scale=0.75]{geometry} \name{Name}{Surname} \address{Address}{City}{Country} \phone[mobile]{+00~(000)~0000~0000}  \email{name@domain.com}      \homepage{www.domain.com}   \begin{document}  % Label #001 \begin{} \newcommand{\labelName}{Name} \newcommand{\addressFirstLine}{Address 1} \newcommand{\addressSecondLine}{Address 2} \newcommand{\addressThirdLine}{Address 3} \newcommand{\theName}{Sir} \newcommand{\theSurname}{ or Madam} \newcommand{\recipientJob}{News Editor} \newcommand{\enclosedItems}{one-sheet, demo CD, ''Title'' reviews.} \include{Infection-Label_letter_template} \end{}  % Label #002 \begin{} \newcommand{\labelName}{Name} \newcommand{\addressFirstLine}{Address 1} \newcommand{\addressSecondLine}{Address 2} \newcommand{\addressThirdLine}{Address 3} \newcommand{\theName}{Sir} \newcommand{\theSurname}{ or Madam} \newcommand{\recipientJob}{News Editor} \newcommand{\enclosedItems}{one-sheet, demo CD, ''Title'' reviews.} \include{Infection-Label_letter_template} \end{}   \jobtitle{Band Leader} \makeletterclosing  \end{document}   This one is called "Infection-Label_letter_template:"  \begin{document}  \recipient{\labelName}{\addressFirstLine\\\addressSecondLine\\\addressThirdLine} \date{\today} \opening{Dear \theName\theSurname,} \closing{Sincerely,} \enclosure[Attached]{\enclosedItems}     \makelettertitle \parskip 11pt  I'm writing to introduce Band, a death metal band in the vein of Death, Cannibal Corpse, and Monstrosity. During the time the band has been active, we have independently-released our first album, "Title,'' which received positive reviews from magazines and international press. We are now willing to take one step ahead and reach a broader audience with our music.  Infection have finished recording a new album entitled "Title.'' Therefore, our band is currently seeking a recording contract with a quality label like \labelName.   I have enclosed a CD and full press kit. I hope you can give Band's music a listen and consider us for a position on your roster. If you have questions, you can contact me by email at nameo@domain.com or at the address and phone above. Thanks for your time.  \end{document}   I acknowledge that my code is not working, but that's I have at this very moment. I tried to adapt the idea from this link:   Any help will be appreciated!


I am trying to get user input for date and time by allowing user to choose date and time himself. Then, taking that time and date which he entered , i want to make it to a timesatmp and enter the same in the MS Access Database.  I know how to do the database part but not how to allow user to pick date and time both(not jdatepicker which just allows date). I also want to know after taking that input how to make a timestamp out of it.   Thanks in advance


I read this great answer about how ReLu could approximate non-linear functions. However, if ReLu can approximate such functions, why cant linear activation function do the same? If they can, why linear activation functions are strictly prohibited in NN?


Spurious @ symbol at start of bash prompt in Debian Jessie

As of late, and without my deliberately doing anything to make it happen, my Bash prompt has an  (i.e. @) prepended to it. This did not previously happen. Nor can I see anything in my ~/.bashrc that seems as though it ought to be making this happen.  This is on Debian Jessie GNU/Linux, using GNU Bash.  For example, my current Bash sessions look like this:  @sampablokuper@debianbox:~$ python3 Python 3.4.2 (default, Oct  8 2014, 13:14:40)  [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information. @>>> 1+2 3 @>>> exit() @sampablokuper@debianbox:~$    whereas originally, they would have looked like this:  sampablokuper@debianbox:~$ python3 Python 3.4.2 (default, Oct  8 2014, 13:14:40)  [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 1+2 3 >>> exit() sampablokuper@debianbox:~$    Here are all the lines from my ~/.bashrc that appear to in any way relate to the Bash prompt:  # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then     debian_chroot=$(cat /etc/debian_chroot) fi  # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in     xterm-color) color_prompt=yes;; esac  # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes  if [ -n "$force_color_prompt" ]; then     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then         # We have color support; assume it's compliant with Ecma-48         # (ISO/IEC-6429). (Lack of such support is extremely rare, and such         # a case would tend to support setf rather than setaf.)         color_prompt=yes     else         color_prompt=     fi fi  if [ "$color_prompt" = yes ]; then     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt  # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*)     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"     ;; *)     ;; esac   How can I get my Bash prompt to appear as it did originally?


How to prove that homomorphism from field to ring is injective or zero?

Possible Duplicate:          $f:K\rightarrow R$ is a homomorphism from field to ring. To prove is that it is injective or zero.


How can i integrate one SFDC org to another SFDC using Rest Api

I am trying to integrate one Salesforce org to other org by using Oauth setup, I wanted to use  use consumer key and consumer secret key in my REST class to connect with the org, after connection part completion, I want to access Get(), Put(), Post(), etc. Including the ability to set Oauth and Authorization headers needed for Salesforce Rest API calls.  Actually I'm new in REST implementation so can you please explain me by using code samples.


Say you have a list value, y[0][1] that equals an object that looks like this  <seats.Sign object at 0x7fa029f6a1c0> , clearly it is part of the Sign() class. How could you return the exact class as Sign() not knowing what the object printed out looked like?


Why are Lily's eyes green and not blue like Harry's?

In the Pensieve in the Deathly Hallows you can see Lily as a young girl, but her eyes are GREEN eyes not blue eyes like Harry's. A ton of people tell Harry that he has his mother's eyes, but apparently they don't know what they are talking about. Why are Lily's eyes green now?


Why is the plural form of Moose not Meese?

Is there a reason that Moose becomes Mooses instead of Meese (as in tooth/teeth and foot/feet)


$\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{1+5\sqrt{1+...}}}}}$  My Attempt: I tried to use the regular way.  $A=\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{1+5\sqrt{1+...}}}}}$  $A^2=1+2\sqrt{1+3\sqrt{1+4\sqrt{1+5\sqrt{1+...}}}}$  But then I saw that nothing happened twice and I stopped. Any hints?  It's better to don't use limits but if you used no problem. If there is an answer that doesn't use limits will accept.  update1: The question that look likes this  wants to find the limit but I want a much easier way to solve it. But if there isn't any answer easier answer the limition one will accept.  update2: You solve the problem when you know the answer is 3 think that you don't know that the answer is 3 then solve.


My town doesn't have any pokéstops or gyms. Somehow it has 700 players but no pokéstops or gyms. Players can't go out to get some pokéballs or anything else because it's too far away from my town.   How can I get pokéstops or gyms added to my town?


When any device is attached how kernel will know which driver need to be loaded ?  I think its based on major-minor numbers but I did not get how major number is detected when device is attached ... Does major number is assigned by manufacturers or what ?


Possessive Pronoun or Possessive Adjective?

"I couldn't persuade Tim in spite of my begging him to come with us" So, is it supposed to be "me begging him", or it is grammatical? My teaher said the sentence was correct. But when I asked my different internet frineds, who claimed to be American and Singaporean, they all agreed "me begging him" was correct. So is it "me or "my"? If both are interchangeable, please explain to me when to use each individually in different contexts.


Prove that a 3x3 matrix always has an eigenvector in $\mathbb R^3$

I am trying to prove this statement. I am assuming that if a 3x3 matrix always has an eigenvector, then it also always has an eigenvalue. I tried to prove this looking at a general 3x3 case and trying to calculate det(A-$\lambda$I)=0, but it does not get me anywhere. Is there something intuitive that I am missing?


How do I gain enough rep to actually post on this site?

How can I gain 10 rep to even post my question?   I need to post an image so I can ask what it is.


How to convert file content to a string?

I have a constructor looks like this:  MyClassName(File f) throws Exception;   and a txt file looks like this:  . . . . . . . . . . . x . . . . x x . . . . . . . . . . . .   When open the file, how do I convert it to a String?   Like this:  ". . . . .\n . . . . .\n . x . . .\n . x x . .\n . . . . .\n . . . . .\n"


I have a shapefile which looks like this (this is a snippet of it):    I would like to create a grid in a new shapefile which will be overlaid (that's not a technical term, I'm just not sure how to describe it) on this map.    The grid should be comprised of equal sized polygons, except by the borders where they can (and in all likelihood will) be smaller. It should look like this:    I have tried using the Create Fishnet tool in ArcMap to accomplish this, but this gives me a grid which is always rectangular and does not stop at the borders of the original shapefile.  How do I create this shapefile?


I need to prove that $b^2 - 4ac = 11$ cannot happen for integers $a$, $b$ and $c$. I need to show that $b^2 = 4k + 11$ cannot happen, any hint?


How to solve $2 \tan x / (1 - (\tan x)^2) = (\sin 2x)^2$?

$$\frac {2\tan {x}}{1-(\tan {x})^2} = (\sin {2x})^2$$  I tried a lot but I get nowhere


I have installed python 2.5.1 and FWTools2.4.7 in my laptop(Windows 7) when i run my pythonscript in FWTools i get following error Import error:No module named _gdal can any one suggest how to solve this problem?


If a permanent turns into a(nother) creature, has it entered the battlefield?

I was playing a game last night with a guy who was playing a new Simic Gatecrash deck, and he claimed that if he made a land into a creature, it counted as entering the battlefield, thus triggering evolve (or other "enters the battlefield" abilities).  I thought this was incorrect, being that the creature didn't actually enter the battlefield, it was just created.  Which of us was right?


Fit individual-level model on aggregate-level target-data

The task is to build a regression model for individuals. I have all the independent variables for each individual, but the dependent variable only as an aggregates on group-level.  Lets say, I am trying to predict the score a student will achieve at some test. I have information about the student that can be used as predictor-variable (f.e. time spent studying). But the results of the test are only given as aggregated sums for each class. I can link every student to a class, but I don't know individual test-results.  One potential way I can think of would be to aggregate the independent variables too and run the regression completely on the aggregated data.  But it's probably rarely the case that correlation on aggregated level and individual level are the same. So I don't know how to make any judgement about the validity of such an approach.  Is there any 'good'(or less bad) approach to this problem?


Can I change the appearance of the bootloader, ..?

I was bored with my bootloader, .. Can I change the theme of the bootloader, .. I was looking on google, and I found the burg,. but I could not use it because my pc is UEFI, .. I dual boot windows8.1 and ubuntu14.10


Given lists of length M and N, how to get a list of length M*N with all possible pairs

Suppose we have two lists a and b:  a = [1, 2] b = [3, 4]   Is there a quick operation that will return the list of tuples [(1,3), (1,4), (2,3), (2,4)]?