My iPad 2 froze up and went into recover mode, I gave t to a friend to fix and it has come bk restored but I can't get on it because there is a passcode on it.  I've tried all the obvious ones I would have used but it will not let me in to set it up. Please help me! Is there a factory '4 digit' passcode it would reset to or would it be my friends passcode?
I have just fitted a new screen to my iPhone 5s, and i need to restore it to factory settings.  One problem though, it's disabled for over 23,000,000 minutes and the home button doesn't work.  Does anyone know how I can restore it?
Brackets in if condition: why am I getting syntax errors without whitespace? I am using the below script to move two days back when script runs at starting two days of the year and also check first and second days of every month and move two days back. if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;01&quot;]; then         date=&quot;$last_month/$yes_day/$last_year&quot;         fulldate=&quot;$last_month/$yes_day/$last_year&quot; else         if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;02&quot;]; then                 date=&quot;$last_month/$yes_day/$last_year&quot;                 fulldate=&quot;$last_month/$yes_day/$last_year&quot;         else                 if [ $day = &quot;01&quot; ]; then                         date=&quot;$last_month/$yes_day/$year&quot;                         fulldate=&quot;$year$last_month$yes_day&quot;                 else                         if [ $day = &quot;02&quot; ]; then                                 date=&quot;$last_month/$yes_day/$year&quot;                                 fulldate=&quot;$year$last_month$yes_day&quot;                         else                                 date=&quot;$month/$yes_day/$year&quot;                                 fulldate=&quot;$year$month$yes_day&quot;                         fi                 fi         fi fi  But my bad am getting the below error message Etime_script.sh: line 19: [06=01]: command not found Etime_script.sh: line 24: [06=01]: command not found What does it mean if a Python object is "subscriptable" or not? When I write C++ code for a class using templates and split the code between a source (CPP) file and a header (H) file, I get a whole lot of "unresolved external symbol" errors when it comes to linking the final executible, despite the object file being correctly built and included in the linking.  What's happening here, and how can I fix it? Imported 3D scan displays texture in editor, but renders without texture I am new to blender and I have a 3D scan of a stone tablet (which I am unfortunately not able to share, so I will try to be as detailed as possible) which was imported as OBJ and MTL files.  The editor displays the texture and mesh perfectly, but when I render the scene (pressing F12) the texture is not there.  I am trying to use blender to reduce the file size of the tablet for use in a three.js visualizer for a website.  I have tried exporting the file as a JSON file (as well as several other file formats to the same effect) for use in my three.js webapp and thought it was an issue with three.js, but after seeing that blender did not render the tablet with the texture I now believe it is an issue with my blender configuration. I am unable to find within blender or online any way to check what current resources I have displayed and what options I have with them.  I have not applied a mesh or texture to the object, but when I do so it renders with the generated texture applied in the default pink.  I am confused as to where the disconnect is between the editor and the renderer. I am still figuring out what is important and where to find all the relevant information, so any help on that regard would be very much appreciated.  Here is what blender looks like for me with the sensitive parts censored (can't be too careful these days):   I have looked at this question:  And there is no material overwriting the texture - I have not assigned a material to the tablet at all. EDIT: In regards to the duplicate answer, I looked at that one as well and the issue I have is that it doesn't have an actual texture file that I can just put on it.  The OBJ MTL files come with their own file that can't be applied directly to the model.  Blender read the OBJ MTL files and recreated the object inside blender algorithmically - and now I need to know how to get blender to tell me where that texture is and how I can get it to show up in the render.  The texture is not on my hard drive, but entirely within blender which is the issue I am having. Most of something is plural or singular? I am writing a literature review. My question is which sentence is correct?   Most of the existing work focus on... Most of the existing work focuses on ... Most of the existing studies focus on ...   Thanks ［I'm Done］ button is available after ［Save Edits］ even when nothing was edited in First Posts queue I have been running Ubuntu 12.04 for the past few weeks. I recently tried to download and install some files through the Update Manager. It located a few files, downloaded them, but then failed to install them. It gave the error:  installArchives() failed: (Reading database ...  (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error   I tried using apt-get upgrade but a similar error was produced:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be upgraded:   icedtea-6-jre-cacao icedtea-6-jre-jamvm openjdk-6-jre openjdk-6-jre-headless   openjdk-6-jre-lib 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/34.6 MB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)   Any help would be greatly appreciated. Thanks in advance.  Edit: Here's some extra information that may be useful. My original problem was that the Ubuntu Software Centre would not open. I found that the Update Manager and Synaptic Package Manager also failed to open. They all gave an error along the lines of:   "installArchives() failed: dpkg: error: reading package info file '/var/lib/dpkg/available': Input/output errorError in function:"   After much googling I seemed to fix that problem as the package managers would open again. When I then tried to download and install any updates from the Update Manager I got the error at the beginning of this post. Changing Screen Brightness Through Keyboard Functions on My Notebook I've installed Ubuntu 16.04 on my Asus X555LJ.  But I don't know how to install drivers or how to enable function keys to controls screen backlight brightness. I want to give a client access to my server, but I want to limit those users to their home directories. I will bind-mount in any files I want them to be able to see.  I've created a user called bob and added him to a new group called sftponly. They have a home directory at /home/bob. I've changed their shell to /bin/false to stop SSH logins. Here is their /etc/passwd line:  bob:x:1001:1002::/home/bob:/bin/false   I've also changed the /etc/ssh/sshd_config to include the following:  Match Group sftponly         ChrootDirectory /home/%u         ForceCommand internal-sftp         AllowTcpForwarding no   When I try to log in as them, here's what I see   $ sftp bob@server bob@server's password:  Write failed: Broken pipe Couldn't read packet: Connection reset by peer   If I comment out the ChrootDirectory line I can SFTP in but then they have free rein over the server. I have found that ChrootDirectory /home works, but it still gives them access to any home directory. I have explicitly tried ChrootDirectory /home/bob but that doesn't work either.  What am I doing wrong? How can I limit bob to /home/bob/?  ----EDIT-----  Okay so I just had a look at /var/log/auth.log and saw this:  May  9 14:45:48 nj sshd[5074]: pam_unix(sshd:session): session opened for user bob by (uid=0) May  9 14:45:48 nj sshd[5091]: fatal: bad ownership or modes for chroot directory component "/home/bob/" May  9 14:45:48 nj sshd[5074]: pam_unix(sshd:session): session closed for user bob   I'm not entirely sure what's going on there,  but it suggests something is wrong with the user directory. Here is the ls -h /home output:  drwxr-xr-x 26 oli      oli      4096 2012-01-19 17:19 oli drwxr-xr-x  3 bob      bob      4096 2012-05-09 14:11 bob Proper fstab entry to mount a samba share on boot? I am a little confused on the proper fstab entry for a samba share in Ubuntu 12.04     I can get the drive to mount manually by using:  sudo mount -t cifs //192.168.2.2/raid_drive /mnt/homeserver -o username=jon,password=password  So I tried putting this in fstab:  //192.168.2.2/raid_drive /mnt/homeserver cifs username=jon,password=password,iocharset=utf8,mode=0777,dir_mode=07‌​77 0 0  Which gives me this error in syslog:  kernel: [ 2217.925354] CIFS: Unknown mount option mode kernel: [ 2217.936345] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3  This  says to use smbfs although I believe smbfs is deprecated?   What is a common fstab configuration for a samba share in Ubuntu 12.04?   EDIT:  Using the accepted answer below I was initially getting this error message (from dmesg):  [   45.520883] CIFS VFS: Error connecting to socket. Aborting operation [   45.520990] CIFS VFS: cifs_mount failed w/return code = -115   although it turns out this was due to network connectivity issues, and not related to improper fstab entry. Showing that a sequence is monotone and thus convergent Here's the original question:     Let $(a_n)$ be bounded. Assume that $a_{n+1} \ge a_{n} - 2^{-n}$. Show   that $(a_n)$ is convergent.   Okay, I know that if I can show that if the sequence is monotone, I can conclude that it is convergent. But I am not sure how to show that it is monotone.  I know that  $$a_n \le a_{n+1} + \frac{1}{2^n} &lt; a_{n+1} + \frac{1}{n}$$  It looks to me as if it is monotonically increasing but I'm quite not sure how to prove my claim. Any hints would be appreciated. DateTime.TryParse century control C# irreducibility of a polynomial over $\mathbb{F}_2$ Strange math notation, vertical bar with parentheses. So I was reading "Resistance Distance" (D. J. Klein, M. Randić) (Journal of Mathematical Chemistry 12(1993)81-95) when I came up with strange notation.  From the paper:  The graph adjacency matrix is defined as: $$A_{xy} = (x|A|y) =  \begin{cases} 1/r_{xy} &amp; x \sim y \\ 0 &amp; \text{otherwise}  \end{cases}$$  The graph degree matrix of a graph is defined as:  $$\Delta_{xy} = (x|\Delta|y) = \delta(x,y) \sum_{z}^{\sim x} 1/r_{xy}$$  $$ |\phi) \equiv \sum_x |x)  $$  My main question is what does the combination of the vertical bar parentheses mean. Thanks in advance. Install on usb external hard drive I am new to ubuntu and i would like some help. I have a laptop with windows 7 installed but i would love to have ubuntu too because it's a great OS. So i would like to install ubuntu on an external usb hard drive (320 - 500 GB) and i have some questions about that :   Do i need a usb external hard drive which will be compatible with ubuntu - linux ? or i can do it with any hard drive  If i make a partition on it for ubuntu staff will i be able to use it and save other staff in the usb hard drive (movies,songs,documents etc) ? If i have ubuntu installed on the usb hard drive will i be able to boot ubuntu from any pc ? Are my changes going to be saved normally or my settings will be lost after shut down ?   Waiting for your answers, if something is not explain well tell me to try explain it better . Thank you! Can I board if my flight arrives 1.5 hours before my UK visa becomes valid? My visa to UK is valid starting from June 25 but my flight to LGW is June 24 10:30 PM (edit: this is landing time not departure based on VCE-LGW flight times presented by easyjet.com). I still have 1.5 hours until my visa becomes valid. I prefer not to change my flight because I don't want to pay extra charges.   Will the EasyJet airlines going to allow me on board? I will be coming from Venice. How long does it take from landing to Immigration in London Gatwick? Can I stay longer in the airport before I pass through Immigration? Can I still see my luggage in the conveyor belt after 1.5 hours? How much time before they take away my luggage from the belt? Which of the following sentences is/are incorrect? ("Permit" vs. "allow" vs. "let") Which of the following sentences is/are incorrect? Why?   The visa permits you to study for two months. My father would never allow me to study English Let me to go. You're hurting me.   This is question from an English learning book. All the sentences seem right to me. Do you know which one is incorrect and why? Accented letters with IM FELL fonts How do you add tags to blocks so they can only be placed on 1 type of block? When is the product of $n$ subgroups a subgroup?