First, I applied for a tourist visa for 16 days, showing a reservation for a hotel as I thought that visiting places nearby could be done in a single day. Also I showed my interest to meet friends I met online but didn't provide their details.  Result: visa refusal saying "Justification of purpose and conditions of the intended stay was not provided."  I required to reschedule my flight and changed the itinerary because of less time.  The second time, I applied right away for a tourist visa again for 9 days, showing a proper itinerary with different locations and different accommodation reservations. I added a letter to tell them about changes in the plan. I told them I wouldn't meet friends because my main purpose is tourism and I wouldn't have time to meet them.  Result: refusal with 3 points:  "proof of sufficient means of subsistence...".  "There are reasonable doubts as to the authenticity of the supporting documents or the veracity of their contents or the reliability of the statements made".  "There are reasonable doubts as to your intention to leave the territory of the republic of Croatia before the expiry of the visa applied for".  The third time, I applied again for a tourist visa with the same planning. And as I found that I didn't have movements in my savings account so may be it caused the issue. I added my salary account statements and other saving account statements. But I didn't have anything to prove my intention to leave the country other than my confirmed return flight, booking of final day accommodation. I thought the bank statement was issue for doubts on supporting document. So my new evidence will clear it.  Result: visa refusal with 2 points:  "There are reasonable doubts as to the authenticity of the supporting documents or the veracity of their contents or the reliability of the statements made".  "There are reasonable doubts as to your intention to leave the territory of the republic of Croatia before the expiry of the visa applied for".  After the third rejection I rescheduled my flights to next year. But still I am unable to find what the exact reason behind the refusal was. Recently I found that the company where I'm currently working was registered in February but I joined in January. So is it possible that they checked the company registration?  Can it be the reason of refusal of the visa application?  This year I am planning to go to a nearby country for my first international  trip. Will it be helpful for my next application? Can buying a car be evidence of property? Can having a fixed deposit of 4,000 USD be evidence of property?  How can I improve my circumstance before applying again?  I tried to contact several consultants but they even didn't answer after listening to my query.  Any help would be appreciated. Thank you.

Over the course of time here on TSE, I have observed individuals whose pattern of visa applications is best described as ''...     serial refusals - Two or more consecutive visa refusals issued by the same regime to the same person. Commonly for the same, or nearly the same, reasons. In some visa regimes Serial refusals can have a cumulative effect wherein the applicant's credibility is increasingly eroded, especially when the application pattern suggests a secondary agenda.   A common thread appears to be the need to visit the destination country (especially Schengen, the USA, or the UK) with a special sense of urgency. Also common in these cases are the following types of questions...   Should I just reapply once again? What are my chances? What can I do to improve my odds in the future? Can I somehow address the previous refusals to avoid them being a burden on all future applications? How can I break the pattern?      NB: This question is intended as a canonical about serial refusals. I have never been personally denied a visa.


I am trying to put together a Powershell script that will:  -Search recursively from a root directory -Exclude files with existing "yyyyMMdd " file name prefix -Rename the files not excluded above with ""yyyyMMdd " file name prefix based on their specific LastWriteTime  Note: ideally, this script should include all file type extensions  I have tried myself, but it would seem to be above my head, as my attempts are not going well.  Thanks, in advance.    #StampMe.ps1 param( [string] $fileName)  # Check the file exists if (-not(Test-Path $fileName)) {break}  # Display the original name "Original filename: $fileName"  $fileObj = get-item $fileName  # Get the date $DateStamp = get-date -uformat "%Y-%m-%d@%H-%M-%S"  $extOnly = $fileObj.extension  if ($extOnly.length -eq 0) {    $nameOnly = $fileObj.Name    rename-item "$fileObj" "$nameOnly-$DateStamp"    } else {    $nameOnly = $fileObj.Name.Replace( $fileObj.Extension,'')    rename-item "$fileName" "$nameOnly-$DateStamp$extOnly"    }  # Display the new name "New filename: $nameOnly-$DateStamp$extOnly"   I am hoping to change the line:  $DateStamp = get-date -uformat "%Y-%m-%d@%H-%M-%S"   To be LastWriteTime instead of get-date, but I have no idea how to make this happen.  This code (from another Super User question):  Get-ChildItem "Test.pdf" | Rename-Item -newname {$_.LastWriteTime.toString("yyyyMMdd") + " Test.pdf"}   ...successfully renames a single file, but I can't seem to integrate this into the larger script.    With regards to running the above recursively, I have tried this (also from ):  foreach ($file in get-ChildItem *.* -recurse) { ./StampMe.ps1 $file.name }   Which succeeds to apply the PS script to files in the root directory, but fails to apply to any files in the sub-folder tree that propagates from the root directory.


How can I select every text between base64 and ==?  Please, I have tried a whole lot of REGEX without success.  I have an exported mailbox file from Apple Mail. I want to simply delete the image data (replace the Base64 data with nothing).  Every solution I've found is select every text between the first base64 and the last ==, which is not helping.

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


Question: Prove that a group of order 12 must have an element of order 2.   I believe I've made great stride in my attempt.  By corollary to Lagrange's theorem, the order of any element $g$ in a group $G$ divides the order of a group $G$.  So, $ \left | g \right | \mid \left | G \right |$. Hence, the possible orders of $g$ is $\left | g \right |=\left \{ 1,2,3,4,6,12 \right \}$  Suppose $\left | g \right |=12.$ Then, $g^{12}=\left ( g^{6} \right )^{2}=e.$ So, $\left | g^{6} \right |=2$  Using the above same idea and applying it to $\left | g \right |=\left \{ 6,4,2 \right \}$ and $\left | g \right |=1,$ we see that these elements g have order 2.  However, for $\left | g^{3} \right |$, the group $G$ does not require an element of order 2.  How can I take this attempt further?  Thanks in advance. Useful hints would be helpful.

I am working on the following problem from group theory:     If $G$ is a group of order $2n$, show that the number of elements of $G$ of order $2$ is odd.   That is, for some integer $k$, there are $2k+1$ elements $a$ such that $a \in G,\;\; a*a = e$, where $e$ is the identity element of $G$.


I currently have a valid B1/B2 visa. I got this visa when I had applied for a visitor/tourist visa, stating the purpose that I'll be visiting US for pleasure.  Now I need to travel to US for a training and wondering if I can do it legally using B1/B2 visa ?

I have been given B1/B2 Visa, but first time when I had applied, it  was for vacation & holiday. Now I need to go to US for business meetings. Is this Visa good enough or do I have to apply for a B1 Visa again?  Note: I originally applied for vacation purposes, but in my visa it is stamped "R b1/b2"


I am getting following error in drupal 8 :   The website encountered an unexpected error. Please try again later.  Twig_Error_Syntax: Unknown "check_markup" function.  Twig template line :   {% set featured_portfolio_text = check_markup(featured_portfolio_array['field_portfolio_link_text']['#items'][0]['value'],'full_html') %}   Is there any alternative to check_markup function for twig?

I am trying to modify output in my twig file. In D7, I was able modify data in my array with this  check_markup($tweet->text, 'full_html');   and I see that this function still exists in D8. However, I'm not sure how I would use this in a filter in twig. This is what I have so far:  {% for tweet in params.tweets %}

          {{ tweet.text }}

 {% endfor %}   I actually tried to do this before I sent it to the template as well, but it didn't change anything:   foreach($tweets as $tweet) {   $tweet->text = check_markup($tweet->text, 'full_html');   $cleanTweets[] = $tweet; } dpm($tweets); $params = array('tweets' => $cleanTweets); $tweet_template = array('#theme' => 'twitter_pull_tweet_listing', '#params' => $params); return $tweet_template;   What I'm trying to do here is make drupal create links for web links in the twitter tweet text. This worked fine for me in D7.


How to formally prove the following inequality -   $$\int_t^{\infty} e^{-x^2/2}\,dx > e^{-t^2/2}\left(\frac{1}{t} - \frac{1}{t^3}\right)$$

$X \sim \mathcal{N}(0,1)$, then to show that for $x > 0$, $$ \mathbb{P}(X>x) \leq \frac{\exp(-x^2/2)}{x \sqrt{2 \pi}} \>. $$


I own a domain. I will call it example.com. I want to set up a local BIND server on my private network. I have a box with the private IP address of 192.168.2.13   I would like to have this box named development.example.com, Is it considered normal practice to add an A record for example.com at my DNS provider pointing to the private ip (192.168.2.13), so that development.example.com can resolve to my machine inside my private network?

We have an SMTP only mail server behind a firewall which will have a public A record of mail..  The only way to access this mail server is from another server behind the same firewall.  We do not run our own private DNS server.  Is it a good idea to use the private IP address as an A record in a public DNS server - or is it best to keep these server records in each servers local hosts file?


I would like to do something like this:  It's quite common, but I have not been able to find a site or psd download that allows users to embed screenshots in phones. Does anyone know where a newbie can do this? Thanks for any tips.

I'm sure you've seen Dribbblers upload animated mockups of their designs.   Here's an example:     I can create mockups on Photoshop and even apply simple Tween Animations to them but I can never get my GIFs to look like the example here.   What are Dribbblers using to create these animations?   Notice that the animations also include touch points and perfect motion. I would like to convert my Photoshop mockups to do the same.  How can I create an animated example of my mockups, similar to the ones created by Dribbblers?


What's the recommended approach when you ask a question and you don't actually get valid answers?  It'd normally leave the question as unanswered but, of course, that leads to getting a low acceptance rate, which seems unfair. Asking in forums is normally my last resort so I tend to ask difficult questions and I understand some of them do not actually have a positive answer (for instance, when you ask whether there's a tool to do X and the only answer is "there isn't, you'd have to write it yourself").

I have posted questions on SO for which I have received answers that do not answer the question. No correct answers were offered (I guess I have really good questions ;) )  People tell me my accept rate is low, making my questions less attractive for answering.  Should I accept the wrong ones to boost my accept rate? Is there another option? Can I mark an answer as wrong?


I am trying to use sftp with cURL to upload files to my webserver, if I run curl -V on my server I get this output   curl 7.47.0 (i686-pc-linux-gnu) libcurl/7.47.0 zlib/1.2.8 libssh2/1.8.0 Protocols: dict file ftp gopher http imap pop3 rtsp scp sftp smtp telnet tftp Features: IPv6 Largefile libz UnixSockets   But if I try to upload files to my server using sftp:// for the curl URL I get this output after adding the -v option to the curl command:   * Protocol sftp not supported or disabled in libcurl * Closing connection -1 curl: (1) Protocol sftp not supported or disabled in libcurl   To install cURL with the SFTP protocol I used these instructions .

I have installed curl-7.27.0 and it is working fine. However, when I run curl -V, I get:  curl 7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp smtp smtps telnet tftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz   How do I enable SFTP protocol?


I have 2 SQL statements that I want to join up. The first gets the actual data per month for Turnover accounts. The second query gets budgets (if any) for the same Turnover accounts.  Query 1 Actuals  /* Turnover 1 */ SELECT * FROM ( SELECT T0.AcctCode AS 'SAP Code', T0.AcctName AS 'Description', T0.FatherNum, 1 AS 'Group', 'Turnover' [Definition], MONTH(T1.RefDate) AS Month, SUM(T1.Debit - T1.Credit) AS 'Amount' FROM OACT T0 LEFT JOIN JDT1 T1 ON T0.[AcctCode] = T1.[Account]  LEFT JOIN OBGT T2 ON T0.[AcctCode] = T2.[AcctCode]  WHERE T0.GroupMask = 4 AND T0.Levels = 5 AND (T1.RefDate BETWEEN '20150101' AND '20151231')  GROUP BY T0.AcctCode, T0.AcctName, T0.FatherNum, T1.RefDate) AS q PIVOT (     SUM(Amount)      FOR [Month] IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]) ) AS query   Sample data   Query 2 Budgets  /* Turnover 1 */ SELECT * FROM ( SELECT T0.AcctCode AS 'AcctCode', T3.AcctName AS 'Description', T3.FatherNum, 1 AS 'Group', 'Turnover' [Definition], CASE WHEN (T1.CredLTotal IS NULL OR T1.CredLTotal = 0) THEN T1.DebLTotal ELSE T1.CredLTotal END AS BudgetAmt, T1.Line_ID AS 'LineID' FROM OBGT T0 INNER JOIN BGT1 T1 ON T0.[AbsId] = T1.[BudgId] INNER JOIN OACT T3 ON T0.[AcctCode] = T3.[AcctCode]  WHERE T3.GroupMask = 4) AS q PIVOT (     SUM(BudgetAmt)     FOR LineID IN ([0],[1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11]) ) AS P   Sample Data   For the 2nd query, 0 represents Jan, 1 represents Feb ... and 11 represents December.  How do I combine the 2 queries such that I can get data such as below?    Not a duplicate as this contains a query to retrieve budgets.

I have these 2 queries below that I use to calculate net profits from Jan to Dec.  Query 1  /* Profit for the Period 13 */ SELECT * FROM ( SELECT MONTH(T0.RefDate) AS Month, '311999' AS 'SAP Code', 'Period Profit' AS 'Description', SUM (T0.[Credit] - T0.[Debit]) AS 'Amount', '311200' AS 'FatherNum', 12 AS 'Group', 'Liabilities' [Liabilities]  FROM JDT1 T0 WHERE (T0.RefDate BETWEEN DATEADD(yy, DATEDIFF(yy,0,'20151231'), 0) AND '20151231')  AND T0.[ContraAct] <> '311201' GROUP BY T0.RefDate) AS q PIVOT ( SUM(Amount)  FOR [Month] IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]) ) AS query   Results:    Query 2  /* Profit for the Period 13 */ SELECT * FROM ( SELECT MONTH(T1.RefDate) AS Month, '311999' AS 'SAP Code', 'Period Profit' AS 'Description', SUM (T1.[Credit] - T1.[Debit]) AS 'Amount', '311200' AS 'FatherNum', 12 AS 'Group', 'Liabilities' [Liabilities]  FROM OACT T0 INNER JOIN JDT1 T1 ON T0.[AcctCode] = T1.[Account] WHERE (T1.RefDate BETWEEN DATEADD(yy, DATEDIFF(yy,0,'20151231'), 0) AND '20151231')  AND T0.GroupMask > 3  GROUP BY T1.RefDate) AS q  PIVOT ( SUM(Amount)  FOR [Month] IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]) ) AS query   Results:    The difference between the 2 comes in month 12. Query 1 accurately gets the Dec profit because it is an account that stores data after a process of closing the 2015 year in December.  How do I combine the two into one query such that I get all results of query 2 except for month 12 instead of -4764758.550000 I get 3280335.630000?


So I've seen everyone saying that RAW format is much better for manipulation in photo editing applications like Lightroom than JPEGs or PNGs. While I read some posts here like  and , I'm  still wondering why is that.   Is it because of better dynamic range? Or because of the bit depth which is 12/14 bits in RAW compared to only 8bit in JPEGs?.  To clarify my question further... By format I mean how the file written, it's a purely technical question... What make those shadow recoveries, and such great dynamic range possible?

I'm curious to see some real examples of where simply capturing the same photo in RAW (and being processed by someone who can do it justice) has significantly improved the photo at the end of the process.  I understand what RAW is and why you might want to use it over JPEG, however, I'd like to actually see some examples where it has allowed for a better result. More control over tone, conversion from the more detailed data to 8-bit RGB etc.  Does anyone have or know of some processed RAW+JPEG shots for exact comparison?


It is not the first time I try to do a cheap progress bar. It's only to show there's some activity going on, but not polluting too much the output terminal screen.  I always re-try this simple:  print(".",end="")   I wonder why it only output at the end ? I mean, it will only output at the end of my script, or when another operation will output to screen, after the long long loop is finished. Is there a way to make it output to screen any time print is called ?

Is output buffering enabled by default in Python's interpreter for sys.stdout?  If the answer is positive, what are all the ways to disable it?  Suggestions so far:   Use the -u command line switch Wrap sys.stdout in an object that flushes after every write Set PYTHONUNBUFFERED env var sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)   Is there any other way to set some global flag in sys/sys.stdout programmatically during execution?


I get an error saying that I do not have enough space on /tmp to download a file. However, I have around 900 Mb of free space on the / partition. Is there a way for Ubuntu to actually use this space?  Here is the result of df -h:  Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur udev               1.8G     12K  1.8G   1% /dev tmpfs              351M    1.3M  350M   1% /run /dev/sda5           19G     18G     0 100% / none               4.0K       0  4.0K   0% /sys/fs/cgroup none               5.0M       0  5.0M   0% /run/lock none               1.8G    352K  1.8G   1% /run/shm none               100M     32K  100M   1% /run/user /dev/sda2          923M    250M  611M  29% /boot /dev/sda4           91G     29G   58G  33% /home overflow           1.0M    448K  576K  44% /tmp   and here is the lsblk result:  NAME   FSTYPE   SIZE MOUNTPOINT LABEL sda           119.2G ├─sda1 swap     7.5G [SWAP] ├─sda2 ext4     954M /boot ├─sda3            1K       ├─sda4 ext4    92.2G /home └─sda5 ext4    18.6G /

I'm not able to run update manager as I get an error saying that there is not enough free space in the /tmp directory. I've practically cleaned out the tmp directory but the error persists.  here's df-h  /dev/loop0       13G   11G  952M  92% / udev            2.0G  4.0K  2.0G   1% /dev tmpfs           785M  920K  784M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G  584K  2.0G   1% /run/shm /dev/sda6        20G   14G  6.4G  68% /host  overflow        1.0M   16K 1008K   2% /tmp


one=['nlo_90', 'nlo_90', 'nhi_88'] two=['12', '12', '84'] three=[['a','a','b','c'], ['a','a','b','c'], ['b','g','g','b']] new_three=[list(dict.fromkeys(q)) for q in three]  z=zip(one,two,new_three) for a,b,c in z:         c_str = ', '.join(c)         print(f'{a}, {b}, {c_str}')  I need to remove duplicate data after i combine the lists using zip() the output from above code is nlo_90, 12, a, b, c nlo_90, 12, a, b, c nhi_88, 84, b, g  my desired output is nlo_90, 12, a, b, c nhi_88, 84, b, g  I tried to code  this  new=list(dict.fromkeys(z))  to remove duplicate but it shows error TypeError: unhashable type: 'list'

Is there a built-in that removes duplicates from list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:  def uniq(input):   output = []   for x in input:     if x not in output:       output.append(x)   return output   (Thanks to  for that .)  But I'd like to avail myself of a built-in or a more Pythonic idiom if possible.  Related question:


I am struggling to add a header with a colored headsepline to my header.  I have tried to add a command like this:  \setheadsepline{\color{1blue}}   But instead of the colored line I got the whole text blue. I know it's probably an easier fix, but I just can't find it. I want to have the same color on the header line, as I have on the Titlepage.  Sample:  \documentclass[a4paper,12pt,titlepage]{scrartcl}  \usepackage[left=2.5cm, right=2cm]{geometry}  \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage{fontenc}  \usepackage{microtype} %Spacing \usepackage{graphicx} \usepackage[dvipsnames]{xcolor}  %\usepackage{hyperref} \usepackage{url} \urlstyle{same}  \usepackage{caption}  \usepackage{float}  \usepackage{setspace}  %Titlepage \colorlet{1blue}{RoyalBlue!65}  %NewCommand HRule for Titlepage \newcommand{\HRule}{\textcolor{1blue}{\rule{\textwidth}{0.5mm}}}  %Header \usepackage[automark, headsepline]{scrpage2} \pagestyle{scrheadings} \setheadsepline{\color{1blue}} \ihead{} \chead{} %\ohead{\includegraphics[width=2.5cm]{Bilder/krutec-logo-m.png}} \ifoot{} \cfoot{} \ofoot{\pagemark}  \begin{document}  Minimal example  \end{document}

i would like to add some colored-lines to my documentation and i while searching through the www i found this post here:   According to this, i would ask you, how i could add these lines to my headline and footline so it would look like the painted version below...  Image removed after solved...  My layout file looks like this:      % Seitenränder ----------------------------------------------------------------- \setlength{\topskip}{\ht\strutbox} % behebt Warnung von geometry \geometry{a4paper,left=20mm,right=20mm,top=25mm,bottom=35mm}  \usepackage[     automark, % Kapitelangaben in Kopfzeile automatisch erstellen     headsepline, % Trennlinie unter Kopfzeile     ilines % Trennlinie linksbündig ausrichten ]{scrpage2}  % Kopf- und Fußzeilen ---------------------------------------------------------- \pagestyle{scrheadings} \renewcommand{\titlepagestyle}{scrheadings} \clearscrheadfoot  % Kopfzeile \renewcommand{\headfont}{\normalfont} % Schriftform der Kopfzeile \ihead{\large{\textsc{\titel}}\\ \small{\untertitel} \\[2ex] \textit{\headmark}} \chead{} \ohead{\includegraphics[scale=0.4]{\logo}} \setlength{\headheight}{15mm} % Höhe der Kopfzeile %\setheadwidth[0pt]{textwithmarginpar} % Kopfzeile über den Text hinaus verbreitern (falls Logo den Text überdeckt)   % Fußzeile \ifoot{\copyright\ \autor} \cfoot{} \ofoot{\pagemark}  \onehalfspacing % Zeilenabstand 1,5 Zeilen \frenchspacing % erzeugt ein wenig mehr Platz hinter einem Punkt   % Schusterjungen vermeiden \clubpenalty = 10000 \widowpenalty = 10000  \displaywidowpenalty = 10000  % Quellcode-Ausgabe formatieren \lstset{numbers=left, numberstyle=\tiny, numbersep=5pt, breaklines=true} \lstset{emph={square}, emphstyle=\color{red}, emph={[2]root,base}, emphstyle={[2]\color{blue}}}  \counterwithout{footnote}{section} % Fußnoten fortlaufend durchnummerieren \setcounter{tocdepth}{\subsubsectionlevel} % im Inhaltsverzeichnis werden die Kapitel bis zum Level der subsubsection übernommen \setcounter{secnumdepth}{\subsubsectionlevel} % Kapitel bis zum Level der subsubsection werden nummeriert  % Aufzählungen anpassen \renewcommand{\labelenumi}{\arabic{enumi}.} \renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}.} \renewcommand{\labelenumiii}{\arabic{enumi}.\arabic{enumii}.\arabic{enumiii}}  % Tabellenfärbung: \definecolor{heading}{rgb}{0.64,0.78,0.86} \definecolor{odd}{rgb}{0.9,0.9,0.9} \definecolor{ww-lightblue}{RGB}{73, 111, 185} \definecolor{ww-darkblue}{RGB}{22, 59, 124} \definecolor{ww-orange}{RGB}{248, 147, 36}


My save files are way too large!  I have been playing up to lv 15 with ~40 mods and before I knew the word of it my save file went up to ~700Mb in size.  Any way to reduce this? I tried to remove orphaned script instances with a save tool but only 670 out of 72K scripts were removed. Most likely my save file is simply too big.   Is there any way to make it smaller or to prevent the same from happening in the future?

Anyone who's played Skyrim for some time by now probably knows that some unpleasant things can happen when your game saves start to become too large.  One solution I've heard of is to wait for about a month, so that old dungeons clear out of the save data.  Aside from this, is there anything else that can be done to reduce the save size?  For example, if I reduce my inventory or the contents of my houses, would that help?


I often read the phrase "not to" preceding an action, as in "not to run" or "not to swim". It seems awkward. Please explain explain the usage.

This is one thing that keeps bugging me, and maybe there's a direct answer. Grammatically, which one is more correct of these two?  Does it make a difference?  I tried not to do that. I tried to not do that.


I have just installed Ubuntu on my PC but there is no option for enabling WiFi. My PC is Lenovo g405.  lsusb gives the following output:  Bus 002 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 002: ID 105b:e065 Foxconn International, Inc. BCM43142A0 Bluetooth module Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 174f:114f Syntek  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   and lspci gives:  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Root Complex  00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8210]  00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0  00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1  00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1  00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 01)  00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]  00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39) 00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)  00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39)  00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 3a)  00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 1  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 2  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 3  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 4  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 5  01:00.0 Ethernet controller: Qualcomm Atheros QCA8172 Fast Ethernet (rev 10)  02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I'm attempting to give a player a painting named 'hel' using the following command: give @p painting 1 0 {display:{name:"hel"}}  But I'm getting the following error:  Line 1, Column 2 Missing '}' or object member name  I've tried everything I can think of to fix it. What am I doing wrong?

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


I need to understand why C++ don't allow to access Grandparent overloaded functions in Child if any of the overloaded function is declared in Parent. Consider the following example:  class grandparent{ public:     void foo();     void foo(int);     void test(); };  class parent : public grandparent{ public:     void foo(); };  class child : public parent{ public:     child(){         //foo(1); //not accessible         test();   //accessible     } };   Here, two functions foo() and foo(int) are overloaded functions in Grandparent. But foo(int) is not accessible since foo() is declared in Parent (doesn't matter if it declared is public or private or protected). However, test() is accessible, which is right as per OOP.   I need to know the reason of this behavior.

I have a function with the same name, but with different signature in a base and derived classes. When I am trying to use the base class's function in another class that inherits from the derived, I receive an error. See the following code:  class A {     public:     void foo(string s){}; };  class B : public A {     public:     int foo(int i){}; };  class C : public B {     public:     void bar()     {         string s;         foo(s);     } };   I receive the following error from the gcc compiler:  In member function `void C::bar()': no matching function for call to `C::foo(std::string&)' candidates are: int B::foo(int)   If I remove int foo(int i){}; from class B, or if I rename it from foo1, everything works fine.   What's the problem with this?


I was in the format C version of the Rock cruiser and attacked the crew was killed and clone bay damaged had the Backup DNA augmentation. All the crew is suspended waiting to be cloned except there is no one to repair the clone bay! Aside from starting the game over completely is there a way to continue?

Regarding the advanced edition of FTL:  If all of your crew dies but you have a cloning bay on your vessel, is it immediately game over, or does the cloning bay prevent that?  Is the game smart enough to know that a damaged cloning bay and a fully dead crew means you cannot recover, but a functional one (even if temporarily without power) could revive your crew?  Also, does this answer differ between hostile ships and your own ship?  (That is, do you get to capture and loot enemy vessels that have all dead crew but have a functional cloning bay?)


How can I add a page that takes the size of an A4 page in a document? I use the package \usepackage[left=2.5cm,top=3cm,right=2.5cm,bottom=3cm,bindingoffset=0.5cm]{geometry}. I tried to add it that way \documentclass[14pt,twoside]{extreport} \renewcommand{\baselinestretch}{1.4} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{color} \usepackage{float} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amsmath} \usepackage{enumerate} \usepackage{refstyle} \graphicspath{ {images/} } \usepackage[left=2.5cm,top=3cm,right=2.5cm,bottom=3cm,bindingoffset=0.5cm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyhead{} \fancyhead[RO,LE]{\footnotesize \nouppercase{\leftmark}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} \begin{figure}[H] \centering \includegraphics[scale=1]{image} \end{figure} \thispagestyle{empty} \chapter{chapter one} \section{text} \chapter{chapter two} \section{text} \end{document}  But the way failed in the image (extension pdf) move to the second page when zoomed. It is not A4 size. The following images illustrate    The image should be on the front page of A4 size and there are no margins. Please help, thank you anyway.

I want to put a background image on a title page of a document. Is it possible and does it work?  EDIT: The answer by Presidenten using the  and my answer found after some research using the  both work.


So I have been in touch with a prof for a few months about being a postdoc in his group. He promised (verbally) one year of funding saying he was not sure if his grant proposal for my second year of funding would be successful. After being in touch with him over six months, he let me know that he the proposal has been successful and he now has funding for my second year. In the mean time, my opinion about being a postdoc and going the academic route have changed quite a bit due to family and other personal circumstances and I want to move into the industry [I have an offer in hand too]. My question is, how bad would it be, in terms of loss of face, if I said no to being a postdoc with the prof? I haven't signed a contract with him or anything and all communication between us has been informal. How do I even begin to explain things to him? I haven't even given a hint to him so far.

I am PhD student in my final months, and I know that I don't want to stay in academia forever. However, I wouldn't mind doing a postdoc for two or three years, because I really like the academic work.  I have written a postdoctoral fellowship proposal together with my potential future host. The host has agreed to fund 1 year from her own funds, while the fellowship pays for another year. A few days ago, I have been awarded this fellowship.   In the meantime, I have also applied for industry positions (as I wasn't sure whether I get the fellowship), have recently had an interview and just now I got a job offer ready to sign.  Now, I have to choose between the two, and I am inclined to take the industry position and to leave academia for good - because the company has been on my "wish list" for many years and I potentially might regret having declined the job offer in a few years.  However, I am not sure whether this is fair towards the professor, as she has invested a fair amount of time into the proposal. I have not told her anything about the fellowship outcome nor the job offer. Could I still decline the fellowship without bad feelings, or have I already committed myself into this postdoc?  somewhat related:  Please note, I have not signed anything yet, so I am asking from a moral rather than a legal perspective.


Basically I've been using windows 10 on my hard disk (this is a laptop) and booting in kali linux with a usb stick from time to time, but since I realized I liked Linux a lot I decided to try a dual boot with Ubuntu (I have a backup just in case) possibly without wiping my data. So I made a live USB, booted into it and selected the 'install' option that appears on the desktop. I went with the 'dual boot with windows 10' option. I'm writing from Ubuntu from my main hard disk right now, but the problem is that from what I understood when I boot the 'black menu' (I think it's the grub bootloader or something like that) I should see an option to boot from windows, but I only have three options: Ubuntu, Advanced Ubuntu Settings (or something like that) and finally 'setup system' (once again, something like that). No Windows 10 option! As soon as I noticed it I installed GPARTED (I made some experience with kali) and I saw that windows is still there (could have done it with nautilus but due to being used to the crappy explorer in windows which can't even see freaking partitions I didn't think about it), so now if I'll have to reinstall Windows I can pass my old files which are still there with no problem (even though I'd prefer to resolve this with some faster solution), but even then, how can I keep both without ubuntu doing this? Any help will be appreciated, thanks in advance.  Edit: Fixed it! As @oldfred suggested I ran sudo update-grub and everything worked from then on.

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


This specific add keeps popping up as overlay at random. It's always the same Facebook Maket thing. I'd appreciate any hint on how to get rid of it.

I am getting these popups regularly. They do not appear in the notification center so I can't find out what app is causing them. The only app I can think of that I have installed recently, I have already deleted and they still appear. I am using the Nexus 4 Android 4.2.2. None of the ad detector apps have found anything.   How can I determine what is causing this?  Here is a screenshot of an ad, and a screenshot of my task manager immediately after. I am not sure if the app would have to be running to show the ad:


I have an apartment with 5 rooms inside. I painted the whole studio five years ago. I didn't really use the room. I left the apartment closed. The paint on the wall now dried out, a little faded from the original color. Some parts are damaged but the whole studio still remains the same.  I've already fixed the damage and I'm finding it hard to match the paint to the existing color of the room. I don't want to repaint the whole studio. Do you know any way to do that?  Thank you for your time.

I used to have a couple of small dents in one of my walls (the walls are plastered brick if that matters). I covered them and the wall is now smooth. However the main issue I have right now is the paint. Is there any way to paint the fixed areas without painting the whole wall and without having a noticeable difference between the old wall color and these fixed patches? First I thought about trying to match the original color but there are 2 problems with that:   I didn't paint the wall in the first place and finding the exact color will be impossible. I assume that since the wall paint is fairly old, even if I find the exact color, it is still going to be different from fresh paint.   Any ideas?


I have below code which is predominantly the most expensive in terms of time complexity in my application.  public class Test {      private static final DateTimeFormatter SQL_FORMATTER = DateTimeFormatter.ofPattern("MM/dd/yy HH:mm:ss");      public static void main(String[] args) {          Instant start = Instant.now();         try {             String parsedDate = parseISO8601UtcDateToSqlDateFormat("2000-01-01T00:00:00Z");             System.out.println(parsedDate);         } finally {             long timeTaken = Duration.between(start, Instant.now()).toMillis();             System.out.println("\n\nFinished processing in: "+timeTaken+ " ms!\n");          }     }      public static String parseISO8601UtcDateToSqlDateFormat(String param) {          TemporalAccessor accessor = DateTimeFormatter.ISO_INSTANT.parse(param);         LocalDateTime dateTime = LocalDateTime.ofInstant(Instant.from(accessor), ZoneOffset.UTC);         return dateTime.format(SQL_FORMATTER);      }  }   Date time formatting is consuming 16ms at the minimum.  Whereas my complete application which does a lot of complex processing is done in less than 1ms.  P.S: Question is not related to benchmarking, I just want to understand whether date time parsing with java 8 is really this expensive or am I doing something wrong.

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


Is there any way to make Windows 8 and newer show more info (address, file) when it has blue screen like it was before?  Googling "how to make windows 8 show info in blue screen" or sorts only shows typical questions on how to fix blue screen.

Windows 8's Blue Screen of Death is different from the previous Windows versions' one:    In order to find out what caused the problem you need to write down or remember the search term it presents you with. The two search terms I have seen suggested so far are SYSTEM_SERVICE_EXCEPTION and HAL_INITIALIZATION_FAILED.  While it’s nice not to have to look at a blue screen full of text, the previous BSOD was more informative than the Windows 8 BSOD, since it contained a detailed error code (information for diagnostic purposes that was collected as the operating system performed a bug check), which could get you closer to tracking down the root of the problem.  How can I get more information about the error Windows 8 has encountered, in order to track down the root of the problem?


I was wondering if two identical balls were dropped from say, 10 meters, but one of them was given a push to the side whilst dropped, which would hit the ground first and why? Would the ball that was pushed land later?

I read recently that if you hold a bullet in one hand and a pistol in the other, both hands at the same height, and subsequently fired the pistol at the same time as dropping the bullet, both bullets would hit the ground at the same time (assuming the fired bullet encounters no obstacles).  Is this true, and if so can you explain the reasoning behind it with as few equations as possible? I assume it is essentially that gravity is unaffected by momentum, but it just sounds counter-intuitive.


#Container {     width: 500px;     height: 600px; }  #TheElement {     width: 500px;     height: 100px;     background-color: #000000; }   How do i get #TheElement to be locked to the very bottom of #Container, regardless of the other content inside container, without a bunch of margin trickery?

Given the following HTML:

     Copyright Foo web designs

    I would like #copyright to stick to the bottom of #container. Can I achieve this without using absolute positioning?


i installed ubuntu 13.04 alongside windows 8 and almost everything works fine (dual boot for both windows 8 & ubuntu 13.04 is working great). but when i try to access my windows 8 partition via ubuntu i get the following error:  Unable to access “371 GB Volume”  Error mounting /dev/sda2 at /media/dan/544A4C7E4A4C5F3C: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/dan/544A4C7E4A4C5F3C"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   ideas anyone?   please note that i'm a linux newbie and ubuntu is the first non windows OS i've ever tried. thank you

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


I'd like to ask a question regarding omission of prepositions on sentences. I know it could be quite common to do so in journalism but upon reading the sentence below, I'd like to ask if this one is still acceptable as it could be a bit confusing...  "West did not say Thursday whether he agreed with Trump’s political ideas."  compared to   "West did not say on Thursday whether he agreed with Trump's political ideas."  It's part of an article,

There was the following sentence in New York Times (April 12) article titled, ‘Lone Wolf’ Theory Gains Ground in Texas Deaths”     “The Kaufman County district attorney’s office is small compared with   those in Houston or Dallas. It has about 13 prosecutors, and Mr.   Hasse’s docket the month he was killed provides a glimpse of the kinds   of cases common in the county: burglary, aggravated assault, forgery,   theft of a firearm.”   Is it common in today’s English not to use prepositions such as “in,” “of,” or "during" before nouns specifying time?  I know the expressions like “It happened the day he arrived in New York” is prevalent, but does it look redundant or outdated if I put “Mr. Hasse’s docket of (in) the month he was killed ....”?  Are there any handy rules with which I can judge easily when I should use and not use prepositions before nouns of time - year, month, week, day, and hour?


I just want to know how can I prove that:  Let $\{x_n\}\subset\mathbb{R}$ a real numbers sequence, if $\{x_n\}$ is a cauchy sequence, then $$x_n\longrightarrow x\in\mathbb{R}$$

First the textbook proves that all Cauchy sequences are bounded, and so have a convergent subsequence, $\{a_{n_{k}}\}$ that converges to a limit, say $L$. Now we use this to prove that all Cauchy sequences are convergent.  So an $N_1$ exists such that $$\left|a_{n_{k}}-L\right|<\frac{\epsilon}{2}$$ for all $ k > N_1$, and an $N_2$ exists such that $$\left|a_m-a_n\right|<\frac{\epsilon}{2}$$ for all $n,m > N_2 $.  Pick any $k > N_1$ such that $n_k > N_2$. Then for every $n > N_2$, $$\left| a_n - L \right | \leq \left| a_n - a_{n_{k}} \right| + \left| a_{n_{k}} - L \right| < \epsilon/2 + \epsilon/2 = \epsilon$$.  So $$\lim_{n \rightarrow \infty}a_n = L$$  I'm fine with this proof until the last part - I'm confused as to why we can pick an abitrary $k$ like we do? Should the limit not depend only on $n$? Now it appears like it also depends on $k$ and if we pick a $k < N_1$, the inequality isn't true. Can someone clarify this for me please?


My true home were the streets of the suburb of XYZ.   Not sure how to say that the streets (plural) were the home of a specific person.  Using the word homeless would be against the intended meaning. This specific person had a family and a house but mostly wandered and slept in  streets or alleyways, because he felt that's where he belonged.

Is the following sentence grammatically correct in regards subject-verb agreement?     One of the main facets of the soul is the feelings humans treasure   above all: love and compassion.   The sentence seems to retain its meaning when flipped around, revealing that "the feelings" might be the true subject, and indicating that the verb form "is" could be incorrect. For example:     The feelings humans treasure above all -- love and compassion -- are one of the main facets of the soul.


I encountered a scheme where a hash of a message was used to encrypt the same message:  result = Encrypt(message=m, key=hash(m))    Specifically:  result = AES-256-CBC(message=random(1..2^132), key=SHA3(message))   Is it possible for an adversary to decrypt the message if he knows the result?

Is it safe to use the hash of the data as the key to encrypt them?  That is, if I give one some encrypted data and tell them that the key that was used to encrypt them was the hash digest of the data before encrypting, will it be easier for them to decrypt them?  Edit as I can not reply to comments: The recipient will have the keys, that is no problem.


Is $\emptyset$ equal to $\{\emptyset\}$? I know an emptyset contains no elements.  So I feel like they would be equal. Can someone explain how they wouldn't be?

In naive set theory, I believe ∅ = {∅} = {{∅}} is correct, but just wanted to make sure that I understood this correctly.   ∅ is an empty set, so having an empty set as an element of a set that contains nothing else is pretty much the same thing as e.g. marking the number 2 as 2.000000, right? Doesn't the symbol ∅ intrinsically imply that this is an empty set which contains it self?


Is it possible for someone to help me out with my problem ?  I would like to know whether it is possible to enable/disable touch pad using command line or via scripting ?

For my rotation script, I'd like to disable the trackpoint when I have the screen rotated. It is pretty annoying if the screen is folded onto the keyboard and then moves the mouse with the trackpoint.  Is there some way to disable (and enable) the trackpoint via the command line and keeping the touch and pen input active?


Basically, I am told that $\varepsilon$~$N(0,1)$, and $\omega$~$IG(\frac{v}{2}$,$\frac{v}{2})$ where $IG$ is the inverted gamma distribution Now, I am told that the distribution of: $\varepsilon(\frac{v-2}{2} \omega )^\frac{1}{2}$ is Student-t distributed. But I can not figure out why. When inputting the code into mathematica I get the following PDF: $\frac{(1+\frac{x^2}{v-2})^{-\frac{v+1}{2}}.\Gamma(\frac{v+1}{2})}{\pi^{\frac{1}{2}}.(v-2)^{\frac{1}{2}}.\Gamma(\frac{v}{2})}$ for $v>2$ Of course it looks very similar to the PDF of the student-t distribution but sometimes the $v$ is replaced with $v-2$. Can I nevertheless conclude that it is student-t distributed and if so, with how many degrees of freedom, $v$ of $v-2$?

Using the student t-distribution with $k > 0$ degrees of freedom, location parameter $l$ and scale parameter $s$ having density  $$\frac{\Gamma \left(\frac{k+1}{2}\right)}{\Gamma\left(\frac{k}{2}\sqrt{k \pi s^2}\right)} \left\{ 1 + k^{-1}\left( \frac{x-l}{s}\right)\right\}^{-(k+1)/2},$$  how to show that the Student $t$-distribution can be written as a mixture of Gaussian distributions by letting $X\sim N(\mu,\sigma^2)$, $\tau = 1/\sigma^2\sim\Gamma(\alpha,\beta)$, and integrating the joint density $f(x,\tau|\mu)$ to get the marginal density $f(x|\mu)$? What are the parameters of the resulting $t$-distribution, as functions of $\mu,\alpha,\beta$?  I got lost in calculus by integrating the joint conditional density with the Gamma distribution.


I am working on oAuth integration with Drupal. I'd like to programmatically assign users to groups upon logged in. Does the Group module have an API to accomplish something like this?

I am trying add members to a group programmatically using Groups module in Drupal 8, and I am doing the following to achieve this:  use Drupal\Core\Entity\ContentEntityBase; $roles = array('test_role'); $values = ['group_roles' => $roles, 'gid' => 1]; $account = $this->createUser(); $group = \Drupal\group\Entity\Group::load(1); $group->addMember($account, $values);   So, users are already present in the site. I want to add only those users to a group who have successfully paid for it. Hence, I am trying to write a custom solution that I add a user to an already existing group on the site. I came across this addMember($account, $values) function in the group module, however am still not sure on what values its arguments ($account and $values) take. Above piece of code does not add users to my group. Can someone please suggest what wrong I am doing here?


I am trying to install Ubuntu 13.10 on my new laptop. The option mentioned in the install guide to "install alongside Windows" does, however, not appear in the install wizard. When I select "Something else" I am presented (as expected) with the disk manager.  My problem is that this laptop came with no less than 7 partitions! Windows is only aware of one 418GB partition. My question is this: How do I resize that windows partition to be as small as possible, create space to install Ubuntu, and use the rest as a shared NTFS partition. Ideally, I would like to put Win 7 on there as well, as I am not a great fan of Win 8.  I would be more than happy to live without Win 8 (If I can put 7 on). I am just apprehensive to completely format the drive and lose the recovery partition. I did make a recovery DVD and a recovery USB drive (which is about 14 GB big), though.  Any suggestions / help would be greatly appreciated!  To make it clear, i took some screenshots of the install wizard. Unfortunately, I cannot post images.

Whenever I startup from the LinuxLive USB, and try to install Ubuntu 12.04, it only gives me two options instead of the usual 3 or 4. My options are "Replace Windows 7 with Ubuntu" and "Something Else". Whenever I go into "Something else", it looks extremely confusing. How do I install it side-by-side while using the "Something else" section? These are my partitions.   /dev/sda /dev/sda1 ntfs (104Mb, System Required Partition) /dev/sda2 ntfs (1000097Mb, Windows 7 Partition)   Or should I try reinstalling my installer on a CD rather than USB and maybe then it will have the "Install alongside" function?


prove that for an idempotent matrix, trace=rank

How could we prove that the "The trace of an idempotent matrix equals the rank of the matrix"?  This is another property that is used in my module without any proof, could anybody tell me how to prove this one?


I'm trying to get my master committee on my master thesis. So I want to add in 3 names one after the other with a header of "master committee". I currently have the following:   \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{comment} \usepackage{titlesec}  \usepackage{graphicx} \usepackage{amsmath} \usepackage{rotating} \usepackage[square]{natbib} \usepackage{changes} \usepackage{placeins} \usepackage{geometry} \usepackage{helvet} \usepackage{tikz} \usepackage{subcaption} \usepackage{caption} \usepackage[hidelinks]{hyperref}  \renewcommand{\familydefault}{\sfdefault}   \geometry{  a4paper,  total={120mm,227mm},  left=40mm,  top=40mm,  }  \title{Example thesis} \author{Thijser} \date{June 2018}  \begin{document}  \maketitle    \end{document}   How would I go about adding this in? If I add anything to the document it will appear before/after the title page.   Basically what I want is                       Example thesis                     Thijser                    June 2018                            master committee (different font)                    member 1's full name and titles                     member 2's full name and titles                     member 3's full name and titles

The standard titlepage is quite simple. I am looking for a very  and need help customizing my title page.  It should match the  classicthesis doctoral thesis template  Below a minimal working example:   \documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook} \XeTeXinputencoding iso-8859-1 \usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}  \usepackage[parts,pdfspacing,dottedtoc]{classicthesis}    \frontmatter  \begin{document}     \pagestyle{scrheadings}        %this is the place to set up my cover sheet.       %*******************************************************      % Abstract     %*******************************************************    %\renewcommand{\abstractname}{Abstract}    \pdfbookmark[1]{Résumé}{Résumé}   \begingroup    \let\clearpage\relax    \let\cleardoublepage\relax    \let\cleardoublepage\relax       \chapter{Résumé}     Résumé de la thèse en français\dots      \vfill      \chapter*{Summary}   Résumé de la thèse en anglais\dots    \endgroup             \vfill     \end{document}


I'm trying to add some images to those labels,but Eclipse throw me java.lang.NullPointerException and I don't know why?! Please help :}  public class LabelPanel extends JPanel {                        public JLabel[] bills;                                public LabelPanel() {                              setLayout(new FlowLayout());                                                                               init();                           labelOrder();                   }                                  private void init() {                            bills = new JLabel[4];                                for (int i = 0; i < bills.length; i++){                                                                       bills[0].setIcon(newImageIcon("C:\\users\\Acer\\Documents\\images\\1.jpg"));                                                 bills[1].setIcon(new ImageIcon("C:\\Users\\Acer\\Documents\\images\\2.jpg"));                                        bills[2].setIcon(new ImageIcon("C:\\Users\\Acer\\Documents\\images\\5.jpg"));                                        bills[3].setIcon(new ImageIcon("C:\\Users\\Acer\\Documents\\images\\10.jpg"));                                       bills[4].setIcon(new ImageIcon("C:\\Users\\Acer\\Documents\\images\\20.jpg"));                               }                                    }            private void labelOrder() {                                           add(bills[0]);                           add(bills[1]);                           add(bills[2]);                           add(bills[3]);                           add(bills[4]);                       }     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


It's a big shame that this phone does not have any file manager by default.  I have the .apk installer of the file manager on my PC, but how to install it on phone offline? (offline = no internet connection)  Help

I downloaded the APK file for an app to my PC.  How can I install it on my phone?


I've acquired a license for Windwos 8 but my Sony support says that my Sony laptop is not compatible. I think that it will run Windows 8 and I've heard that it's possible to do a "parallel install" and keep Windows 7. How can I do this?  And if the parallel install works, can I then remove Windwos 7?   Will my 3G modem with builtin SIM card have support in Windows 8? I have no "strange" peripherals, only standard Sony Vaio VPCSA.

I currently have Windows 7 Home Premium, and I'm thinking about upgrading to Windows 8. Is it possible to use the Upgrade to dual-boot the two versions, or will the upgrade have to overwrite Windows 7? If it overwrites, is the process reversible to get Windows 7 back if I decide I don't like 8?


It's been While since i'm using dash(-) in unix command. But have never found out what exactly is this.  Have searched at some place it says . It mean stdin/stdout when used in end of command or like  echo hello > - .  For example When i write grep -i it checks with ignore case. (so i think it get argument here as -i)  While if sometime when filename or folder name begins with -folderName i need to run rm -f -- -folderName   What exactly this dash is can someone explain it in simple term.

I have seen -- used in the compgen command.  For example:  compgen -W "foo bar baz" -- b   What is the meaning of the -- in there?


Can anybody tell me how to enter $\bigcupdot\limits$? Thanks. I know how to enter \bigcupdot, but I don't know how to follow it by \limits.

In our lecture script, we use the notion of disjoint set union. It uses a special symbol to differentiate the disjoint from the usual set union, where we add an extra dot inside of the \cup symbol. Is there something like a \bigudot? Or any other way to add a centered dot to any symbol?


I need to free some space on my drive:  Not enough free disk space: The upgrade has aborted. The upgrade needs a total of 2,807 M free space on disk '/'. Please free at least an additional 1,396 M of disk space on '/'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.    It's different from , as the solutions for that question weren't sufficient

My Ubuntu cloud server has left only 900MB of disk space.   I'll just empty the directory /tmp and wondering if there is any other location to clean up.


When an Algerian citizen in Ireland on an Irish work visa wishes to visit the UK, say by air, on holiday, must he apply for a UK visa?

I hold an Indian passport and am living and working in Ireland with a valid work permit.   Do I need a visa to go to the UK? Do they have border control?


Let $f:[0,\infty[ \rightarrow \mathbb{R}$ be differentiable on $(0,\infty)$ such that $f'(x) \to b \; as \; x \to \infty$   (a) Show that for any $h>0$ we have $\lim_{x \to \infty} \frac{f(x+h) - f(x)}{h}=b$   (b) Show that if $f(x) \to a $ as $x \to \infty$ then $b = 0$  (c) Show that $\lim_{x\to \infty} \frac{f(x)}{x}=b$  I have no clue on how to approach this problem... I tried to show $h \to 0$ but I could not.

Let $f\colon(0,\infty)\to\mathbb R$ be differentiable on $(0,\infty)$ and suppose that $\lim\limits_{x\to\infty} f'(x)=L$.         a. Show that for any $h>0$, $\lim\limits_{x\to\infty} \frac{f(x+h)-f(x)}h=L$.      b. Show that $\lim\limits_{x\to\infty} \frac{f(x)} {x} =L$.   this is a differentiation question.  i don't know how to solve this question  Because it is Korean, it is difficult to deal with this cite. So for me, it is not easy to write.  thank you


A short story where: Two explorers land on a planet which has almost nothing except barren ground, oceans covered with thick algae, and humanoids whose only food source is the algae.  Since there is extreme competition to live near the shore, the inhabitants have evolved into a physically competitive / tall / strong species.  The explorers land away from the shore, and as they walk toward the alien species, they are spotted and chased down - one is captured (presumably killed, eaten), the other escapes back to the ship.  (I think) Before they land, there was discussion about the spaceship's windows being awful and causing weird vision problems or nausea, and that the next ship should not have windows.  Before they were chased, the explorers discussed how unfortunate the planet's inhabitants were.  They had nothing to begin a civilization with, (not even trees/wood?) and they were probably abandoned by an alien race eons ago.  I read this in the 1990's, probably from a paperback anthology I found in a dusty box from my dad's collection of classic sci-fi in the garage - I'd guess it was from 1950 - 70's(?).  If my details are too fuzzy to identify a specific story, a likely author or book title would help. Thanks.

Set out on another planet where a human spaceship lands for a research and they observer a huge mass moving below them. On closer look this mass appears to be humans, and the density of the population increases towards the sea. The reason for this is algae,the only nutrition found on the planet. On a beach they discover tall, huge humans (developed due to the natural selection), controlling the best access to the algae. Eventually the researchers die, because humans eat them.


Here is from the manual (version 2.10, page 183):     This option works like text height, only for the depth of the text   box. This option is mostly useful when you need to ensure a uniform   depth of text boxes that need to be aligned.   It's not clear where the difference is.

The LaTeX reference card states for example     \strut box w/ ht and depth of “(”, zero width   I came to see text as a two dimensional feature, but I must be missing out on something...  (following was off-topic: by the way, im trying to find documentation on how to use \vbox, \hbox,… i.e. to align a hbox within a vbox to the right)


Can anyone dumb it down for me on why you would need to format the first and last byte of a random number to properly generate a curve25519 private key as noted in 'Computing secret keys' section of .  Computing secret keys. Inside your program, to generate a 32-byte Curve25519 secret key, start by generating 32 secret random bytes from a cryptographically safe source: mysecret[0], mysecret, ..., mysecret[31]. Then do  mysecret[0] &= 248;  mysecret[31] &= 127;  mysecret[31] |= 64;   mysecret[0] &= 248 = 0b1111 1000...setting three lsb's to 0 to ensure multiple of 8? mysecret[31] &= 127 = 0b0111 1111...setting the msb to 0 for? mysecret[31] |= 64 = 0b0100 0000...setting the second msb to 1 for? I must be missing some important note on this in ?

According to the original paper of , there is no key validation needed when using Curve25519 for Diffie-Hellman Key Exchange. However, where does this property come from? Is there any proof or argumentation available in order to understand this really practical property of Curve25519? Does this mean that each $x$ coordinate could belong to a point $P=(x,y)$ from Curve25519? Is that even possible?


I have a fresh install of Ubuntu 13.10 on a brand new hard disk. My computer restarts after a few minutes I open Shotwell, which every time is importing my large Pictures library (150GB). I do have 29GB of free space in my /home, where the Pictures directory resides.  I have checked other posts about log files and none seem to point me to finding the root cause of the restarts. Can someone guide me on this?

I was at school SSHing to my homebox. All of a sudden, my connection was closed. Attempting to reconnect failed. When I returned home, I discovered that my computer was off.  Nobody was at my house and I am sure that I did not have a power outage.  How can I figure out how or why my computer shut off? Is there some log in /var/log that could point me in the right direction? Should there be a core dump somewhere that I should find? If so, how do I use core dumps?


Is there any standard capability using method/Api/Wire to get the translated value as per user language in LWC. Regards Stay Safe

In LWC, is it possible to get a pick-list field's possible values?  I'm writing a component that is embded into a lightning record page. I need my component to be able to load the record from the page, get data from the fields and use that data to pre-populate my search form with default values.  I have this working with city/state and checkbox fields. Right now the city/state fields are built pull data from an aggregate query of contacts to find all possible state/city combinations (I know this is doomed to fail when the records reach over 50k contacts but Its good enough for now).  I have a pick-list field on my object called skill level, I need to be able to build a combo box that has all the possible values for skill level and set the default value to the value on the associated record.  I'd like to avoid hard-coding the available options if possible.  In LWC, is it possible to get a pick-list field's possible values?


It's really annoying to insert 4 spaces manually for entering code into the text box.  I am wondering if there is a better method, as found normally in forums (like code tags).

How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .


I have a plan to attend academic conference in Romania and then take a short stay in Austria. Unfortunately, the Embassy of Romania in Thailand is temporarily closed and I have to go to Philippines for visa issuing instead. They also give me a link as the following    "Holders of Schengen valid visas with multiple entries may enter Romania and stay until the date of the validity of the Schengen visa. Further information available at: "  If I apply for multiple entry Schengen visa for Austria, but I will enter Romania first and go for Austria later. Would it be possible in this case? I have written email to ask Ministry of Foreign Affairs in Romania, but did not get any response for a while.

I hold a valid multiple entry Schengen visa issued by Spain, which has not been used so far to enter any Schengen country, Can I enter Romania based on such unused  Schengen visa ?


For a proper noun, in this case let's say Morty, would one replace the "-y" suffix when using the plural case with "-ies" or keep it as an unaltered "-ys"?

Frequently when I refer to or address a family, I do so by pluralizing their last name, e.g., The Smiths, or The Ramones. But suppose I want to address a family whose last name ends in a "y", e.g., Kennedy. Normally in English, I reflexively change the "y" to an "ies" when pluralizing words in this form, but as a proper noun, I'm not sure this is the right thing to do. On the other hand, The Kennedys doesn't seem right either--the "dys" looks like it would lead to a dysfunctional prononciation. I'm also pretty sure an apostrophe belongs nowhere near here.  So how do I properly pluralize a name ending in a "y"?


I was Non Resident Indians, purchased property in India with funds earned in USA. The funds were transferred from my US account to my In-Laws Bank Account in India.  I am now US Citizen. I am in the process of selling the property and bringing the funds back to USA.  Since, the conversions rates were vastly different compared to 10 years ago, although the property has appreciated in Rupee terms; it is still at loss in dollars terms due to the exchange rate.   What kinds of taxes on both ends are we liable for?

I am living in US for 17 years and became US citizen October 2015. My brother who is living in India gifted me the property in India, July 2015. He registered that property in my name in 2014, that time I was not an US citizen.   Now I want to sell that property in India and transfer the money to US bank. I have accounts with Citi and State Bank in US. Once I sell the property in India the buyer will give me the cash only, its worth of $50,000. I want to use that money for my daughters’ education.    Could you please advise me how to transfer the money from India to US bank?  Can my brother send the money to my account? Since I am US citizen now, is any issue to sell the property in India?   Appreciate your feedback and response!  Aruna


I was wondering if there is a way to configure on of your Ubuntu servers so it will download all the necessary security updates for your OS and your packages on it's own (via cron-job) in some kind of local repository, where other Ubuntu servers in your network without internet access can load their updates from?  I can do the part with the cron-job on my own, that's not the problem. What I don't find, is a tutorial to configure your server as an equivalent to WSUS for Linux. Is there a way like adding a repository to /etc/apt/sources.list ?  Thank you for your help!  -Metadata

I am a student at Case Western Reserve University, and the bandwidth from the Ubuntu servers to my location is often horrendously bad (on the order of a few hundred bytes per second). Myself and a few friends would like to be able to download the packages once, and have them cached for the rest of our Ubuntu installations on campus. To do that, we would either need to setup our own APT repositories, or setup some form of caching (squid?) server at which we could point our systems.  Is setting up such a mirror a difficult process? How would one accomplish it?


Adding 1/3 to 2/3 gives 1 EXACTLY. But expanding the two fractions and then adding gives 0.99999 Where is the flaw in this reasoning?

I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?


As we all know, in the first Terminator movie a T-800 model came from the future. It came disguised with human tissue and it can talk like a human.   So my question is: can T-800 Terminators and other (endoskeleton) models talk when they aren't covered in human tissue? I never saw a Terminator without human tissue talking in the Terminator films.

It seems obvious that Terminators don't have vocal cords, and their speech is probably generated by some kind of speaker assembly linked to a speech processor.  However, every time we see a Terminator speaking, it moves its mouth just like a human would.  In most cases, this is presumably because they want to appear to be human, and speaking without moving your mouth is a rare talent and, if a Terminator did it, they would raise suspicion. But there is at least one scene, in the first movie, where the Terminator is alone in his apartment, where no one can see him, and the landlord comes to the door and complains about a bad odor coming from the room.  The Terminator replies in terms that I won't repeat on this family friendly site.  The issue is that when the Terminator replies to the landlord, who - as I have said, can't see him - the Terminator's mouth moves. Note:  The dialogue in this clip is probably NSFW                                If moving his mouth wasn't a necessary part of his speech process, he has no reason to do it in this scene.  He doesn't need to keep up appearances when no one can see his face. Humans speak by a combination of muscle movements:  the diaphragm draws air in and forces it out of our lungs, after which it passes through the larynx, where the vocal cords shape the sound, and finally, the air passes out through our mouths, where our lips, and especially tongues, put the finishing touches on the sounds we are producing.  But Terminators don't have lungs, larynxes, or vocal cords.  So how do movements of the mouth and tongue affect their speech? This raises the question of whether the bare metal Terminators (see picture below) can speak, and if so, whether their mouths move when they speak.  They certainly don't have lips or tongues, so those can't play any part in the process.  So here's my question: Is there any information about how Terminator speech works?


I just came across a CSS issue. When I scroll down on the Ask Question page on Programmers, Meta Programmers, Workplace, Meta Workplace, and Meta Stack Exchange site, I see text overlapping the footer,.  The help text goes behind the footer, linked question says help text comes over footer.  Improper css :       Improper css      Improper css :      Proper CSS :     This can be reproduced in Firefox and Chrome.  This is not duplicate of  as my question says the help text goes behind the footer not over it.

I have noticed that while asking questions and scrolling to the bottom of the page, the right sidebar containing recent questions covers the footer partially. Also, a part of it goes beyond the browser's boundary. It may not be a big problem but it still doesn't look good.    This also happens on the  page


I've been studying PCA, and some of the terminology isn't very clear. I do not understand what they mean when they refer to a "principal component". One definition I have seen calls it the new coordinates after the transformation the original data. Another calls these new coordinates the principal component scores. Clarification would be greatly appreciated.

Suppose $u$ is the vector that maximizes the variance of the projection of the data with design matrix $X$.   Now, I have seen materials that refer $u$ as the (first) principal component of the data, which is also the eigenvector with largest eigenvalue.   However, I have also seen that the principal component of the data is $X u$.   Obviously, $u$ and and $Xu$ are different things. Can anyone help me out here and tell me what is the difference between these two definitions of principal components?


Let me know if this behavior is appropriate on StackExchange.

There are several localized versions of Stack Overflow: , , , and . I guess there will be more languages supported in the future.   This brings up a big question for me. Is it OK to pick any given question in the English Stack Overflow, translate it and repost it in a different language Stack Overflow site?  Obviously there will be a lot of duplicated questions about simple topics like:     How to concatenate two strings in X language?   But is it allowed to pick an answer from the English (or any other language in the future) site and completely translate it? Furthermore are we allowed to repost translated questions? For example, can I entirely translate  and repost it in the Portuguese version?


Why cannot a user change the group permissions of files which he owns. Let's suppose I have user martin:  $ ls -lAd /home/martin/ drwx------ 8 martin martin 4096 Apr 20 01:06 /home/martin/   For some reason, I want user paul to be able to access my home.  $ chgrp paul /home/martin/ chgrp: changing group of `/home/martin/': Operation not permitted   Is there a security reason why a user cannot change the group ownership of his own files?  I am using  (wheezy).

It appears I still miss some things about the way permissions work. I am on a debian 7 system btw. just now I have this file of which I downloaded and it belongs to myuser:myuser, that is both user and group are set to me. It also resides in my $HOME directory since that is where I downloaded it to.  So far so good. Now I want to share this file with some other users of the pc and for that I want to switch the group ownership of the file to group "users". however that fails:  nass@quarx:~/xmas_carol$ chgrp -R users *  chgrp: changing group of movie.mov': Operation not permitted   And the contents of the folder are:  -rwxr-xr-x 1 nass nass 2482411461 Feb  6 03:57 movie.mov   I am fuzzy about what is going on with the permissions. Can someone explain


I want to install Ubuntu as my main OS, but I'm worried that it will not work and mess up my laptop.  Here are my specs:   Also, I want to know if this will mess up things like wifi and speakers.

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I just bought a Dell Latitude 3330 with Ubuntu 12.04 pre-installed. Wireless worked without a problem for a few days and then stopped. The wireless broadcom is BCM4352. Tried everything but still not working. Works with wire and Reliance datacard. Please help resolve this issue. Thanks.  Suparna

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I am trying to add polyline in my existing leaflet map. But unfortunately its not overlapping the correct coordinates.    this.testd = [             [26.946345158021394, 45.30658810117468], [31.74737690870502, 58.27657611253403], [3.572373155835759, 50.87794848675696]         ]          this.pathLine = L.polyline(this.testd);         this.allLayers.addLayer(this.pathLine);         this.allLayers.addTo(this.map);    Please let me know how to make it work.

I'm coding an app with Phonegap, which requests user's current position. As an overlay I have loaded a geojson layer. I want the app to automatically extract a value of said layer at the exact location, where the user currently is (without the user manually clicking on the layer).  I've tried Leaflet PIP extension, but couldn't get it to work with leaflet 1.0.3. I've also tried simulating a touch/mouseclick event at screen coordinates, but that didn't work either.  I've found the extension Leaflet.PointInPolygon, which can check, if a point is lying within a polygon. Therefore a transformation from geojson to an array with coords is required.  I wrote the following code to parse my geojson and write it into arrays to add polygon layers to my map (in order to check later, if map.getCenter() coords are within any of these):  var coord = []; for (var i = 0; i < data.features.length; i++) {   feat = data.features[i];    for (var j = 0; j < feat.geometry.coordinates.length; j++) {     coord = feat.geometry.coordinates[j];      var polygon = L.polygon(coord, { color: "red" }).addTo(map);   } }   I'm facing the prolem now  that lat and lon are in the wrong order:  [[10.77932197941255,52.03584196145097],[10.77932197941255,52.03575906909681],[10.779636389761993,52.03575906909681],[10.779636389761993,52.03584196145097],[10.77932197941255,52.03584196145097]]   How can I fix this?  Is there maybe a leaflet extension or javascript framework, which can directly check, if given coordinates are within a geojson object?


I've run PhotoRec and it was able to recover photos, mp3s and video files from my phone's "dead" SD card.  The fact that it recovered these files would suggest that other files (Android system files, apps, application data) should also be recoverable.   The ideal situation would be to recover the complete directory structure. Assuming this were possible, how would it be done?

I have a 2 GB Kingston  card which is about three years old. I put it in a reader today in my Windows Vista computer, wrote a 32 MB file onto it, safely removed it, and then tried to read it elsewhere. Nothing. Putting it back in the Windows Vista computer it now says:     You need to format the disk in drive F: before you can use it.   What should I do? I have access to many computers and OSes if your recommendations need that. I would be very sad if I lost all the contents of the card. Most of the data is backed up, but there are a few things that aren't. :(  Doing a   # dd if=/dev/sdg of=~/tmp/sd.bin   gives me a 2 GB file, and  the file it seems like lots of my data is still there. How can I put it back together?


Question: The plaintext JULY is encrypted using Hill Cipher with m = 2, to give the ciphertext DELW, then determine the encryption and decryption matrix  My approach: We will form a 2x2 matrix of plaintext and ciphertext elements after converting them to decimals with mod 26. And then we will try to find the key by inverting the plaintext matrix and multiplying it to ciphertext as shown below \begin{gather}  Plaintext [P] = \begin{bmatrix}9&20\\11&24\end{bmatrix} \end{gather} \begin{gather}  Ciphertext [C]= \begin{bmatrix}3&4\\11&22\end{bmatrix} \end{gather}  \begin{equation} \label{3.1} [P] [K]= [C] \\ [K] = {[P]}^{-1}[C]  \end{equation}  Here (|P|) % 26 is equal to 22. And because gcd(22,26) $\neq$ 1, the value of $\frac{1}{22}$ cannot be determined in $\bmod 26$. Which makes me unable to find the key $[K]$. So my question is there any way around to solve this problem. Or have I committed any mistakes or overlooked anything?

I have a plaintext "monday" and ciphertext "IKTIWM" and $m=2$. I want to find the key of the Hill cipher.  I made a matrix  $$ \begin{bmatrix} a_1 & a_2 \\ a_3 & a_4 \end{bmatrix}\begin{bmatrix} m \\ o \end{bmatrix} = \begin{bmatrix} I \\ K \end{bmatrix} \pmod{26}$$  $X=\{\{m,o\},\{n,d\}\}$, $Y=\{\{I,K\},\{T,I\} \}$, I want to find $X \times K=Y$.   I will multiply this equation with inverse($X$).  But for the modulo inverse you need $gcd$(determinant($X), 26) =1$ . Which is not happening here.


I just want to save my file and I wrong button pressed. The window becomes this.

I'm stuck in full screen in the node editor. Escape isn't working, and I have no menus and no idea how to leave except to quit Blender and reopen the program.


My 9 year old son and I have British passports, and my husband Spanish. We have a 19 hour layover in Miami when flying from Madrid to Colombia, and intend to leave the airport and stay overnight in a hotel preferably just with our hand baggage. First question: do we need any kind of visa before we fly, and indeed are we allowed out of the airport (sure hope so...!). Second, will luggage be checked all the way through to Colombia or will we need to recheck? (Flying with American Airlines). We hope to do a quick trip to South Beach to check it out! Thanks!

In Europe usually you don't need to go through immigration to change planes (unless you are entering/exiting Schengen). Is it the case in the US as well? May I catch a connecting flight on one of the US airports if I don't have US visa?


I am running Plesk 9.5 on Ubuntu 8.04 LTS and have about 15 websites infected with some malicious code appended to the end of java files. I have installed Clamav and it has managed to pickup the infected files which have a pattern of starting with either /*km0ae9gr6m*/ or /*gootkitstart*/ and ending  with /*qhk6sa6g1c*/ or /*gootkitend*/    My Plesk panel is up to date and security patches were installed. How can I isolate the security vulnerability on the server?

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


When I know my question is resolvable by a specific user, how should we notify him/her? I heard there is no direct interaction to the person. Why not?  Its not an personal message I'm asking about, just a notification to user who is very good at some tag.

There has been quite a few times that I wished I could send a message to another user on SO - not ask a question for everyone to see, but just a short message informing them of something or requesting them to do something.  Are there any plans to allow this to happen in the future?  Related:


When setting multiple footmarks inside an environment that doesn't allow any (equation), the ids correspond to the correct footnotetexts but not the hyperlinks.  \documentclass{article}  \usepackage{amsmath} \usepackage{hyperref}  \begin{document}      Text\footnote{text1} Text\footnote{text2}      \begin{equation}         \refstepcounter{equation}         J=b a^3         \tag{\theequation\footnotemark{}\footnotemark{}}     \end{equation}      \#1 links to \#1      \#2 links to \#2      \#3 does not link anywhere      \#4 links to \#3      \addtocounter{footnote}{-2} %3=n     \stepcounter{footnote}\footnotetext{a}     \stepcounter{footnote}\footnotetext{b}      \newpage\null\thispagestyle{empty}\newpage   \end{document}

I'm trying to have some clickable footnotes within tables. I tried using \footnote{}, it does create a link but there's no footnote text associated with it. \footnotemark[number] along with \footnotetext[]{} does create a fotenote but then there's no hyperlink. (I would like to make it clear that I'm trying to have footnotes at the bottom of the page and not footnotes within the table.)  Here's a small code snippet:  \documentclass{report}  \usepackage{hyperref} \begin{document}  \begin{table}[h!]     \centering     \begin{tabular}{|r|r|r|}         \hline         A\footnote{Test!} & B\footnotemark[4] & C\footnotemark[5]\\         \hline         123 & Tim & Jane\\         \hline         456 & Tom & Jung\\         \hline     \end{tabular}     \caption{A table} \end{table}  This is a clickable footnote\footnote{You clicked me!}.  \footnotetext[4]{This is B} \footnotetext[5]{This is C}  \end{document}


I have succeeded in fitting my long theorem and its proof on multiple broken frames of the same environment. However I want to shrink my frames for better display.  How can I use   \begin{frame}[allowframebreaks]   together with [shrink]?

How can a theorem-like environment be (automatically) split into multiple frames if the vertical space it needs is not enough in a frame?  In my document preamble I have  \theoremstyle{definition} \newtheorem{exercise}{Exercício}   And a given frame in the document has an exercise environment which does not fit into a single frame. So I want it split in more frames.  Any clues?


I have a pet related site and posted 8 articles 2 months ago. Last month when I checked Google Search Console (search analytics) all my targeted keywords (8) for those articles were visible and they were moving forward.   But when I was checking for this month, I saw all those main keywords (8) are gone for those 8 articles.  Note: All articles are fresh, and they were checked for plagiarism, grammar, and that the word-count exceeded 750 words.  I just have a feeling that doing some quality backlinks will get those keywords back again, but I'm not sure about it. What should else should I do to help with this?

There has been a significant drop (90%) in traffic from Google to one of my well-established sites (6+ years) in the last week. Searches show that the top 3 wide keywords all dropped 4 spots. Searches for other keywords do not show ANY results in the first 10 to 25 pages of results, while previously one 1st or 2nd page at most.  Since there are , the question really is:  What steps are necessary to figure out what caused such a drop?  There have been no major changes during this period or the last month on the site and certainly not in the homepage which has dropped in rank. Over all the years of running this site and plenty of others, I have never experienced this. There are is duplicate content on my site and I have rigorously used canonical links for the last few years to ensure it is not misinterpreted as such.


I have a file on under my local machine with the name codes.examples and I want to copy it to a remote machine under the directory ~ahmet using the command rsync and ssh knowing that remote machine using this port ssh -p 45688  how can I write a command to do that

Hi I need to copy a folder of size 885 MB from a remote machine to my system using ssh and port no is 1500  What is the command I can use to accomplish this   path of remote folder is  /u001/app/oracle/product/frmsrv/Nayifat/finnone    and I need to copy the finnone folder to my system


I would like to obtain some clarifications about References and Pointers :   What are the points of similarities and Differences between References and Pointers? (Actually I am looking more about the "execution mechanism" kind of differences and not the theoretical ones) Is there any rule of thumb as to where either of them are to be used? Which of them is more useful compared to the other.   The reason for this question is that there is often confusion regarding the method of execution of statements containing references and pointers.  Thanks in advance.

I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?


What does it mean - status changed from "with editor" to "decision in process" directly in Elsevier within 10 days of submission?

I submitted a paper to one of Elsevier’s journals. After a couple of days, its status changed to “with editor”. But now after about ten days from the submission date, it changed to “Decision in Process”. Is there any hope that it will not be rejected?


I'm wondering if any of you have created a function to create a folder within a given path.   For Example:  NewFolder = ['/projects/Resources/backup_Folder']

What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried:  import os  file_path = "/my/directory/filename.txt" directory = os.path.dirname(file_path)  try:     os.stat(directory) except:     os.mkdir(directory)         f = file(filename)   Somehow, I missed os.path.exists (thanks kanja, Blair, and Douglas). This is what I have now:  def ensure_dir(file_path):     directory = os.path.dirname(file_path)     if not os.path.exists(directory):         os.makedirs(directory)   Is there a flag for "open", that makes this happen automatically?


So I just installed Ubuntu 18.10, but I can't add a guest account. there aren't any buttons for it.

After a recent package update, the guest session feature is no longer available on Ubuntu 16.10 and 17.04. What happened?


Why does the following code print "1234" rather than "welcome"?I think that String is not a primitive variable,it is an object.So the function "changeStr" get the reference of "str".But the fact is seem like "changeStr" get a copy of the str.Why?  public class Test1 {      public static void changeStr(String str){         str="welcome";     }     public static void main(String[] args) {          String str="1234";         changeStr(str);         System.out.println(str);     } }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?