EACCES, permission denied
That was the error message that I received when I was trying to update my Atom packages (I think it was linter-php). Basically, the updater was failing because it didn’t have permission to remove an old config file. The fix was simple enough. All I had to do was resign the permissions to my user by running the following command:
sudo chown -R `whoami` ~/.atom
Easy as that the permissions were fixed and the updater could do its thing again.
If you have a Toshiba 37E200U LCD HDTV, and are looking for the code to program your Verizion FIOS remote controller, the answer is “0183”
If you have ever worked in a mulch-tiered web environment, you know how funny and true this is.
Honestly, I’m a curly bracket on the next line kind of guy. How about you? (Python programmers like @henrikjoreteg need not reply)
Recently while developing an app, I ran into an issues where the iPhone keyboard was sliding up and covering the text field. I did some quick searching on the on the internet an came across some sample code on StackOverflow (http://stackoverflow.com/questions/1247113/iphone-keyboard-covers-text-field)
I took the code that was given and spun it for my own uses. After placing the code in the project, I linked the hidden textFields ‘Editing Did Begin” and “Editing Did End” events to the “slideFrameUp” and “slideFrameDown” methods.
The end result works great!
-(void) slideFrame:(BOOL) up
const int movementDistance = 50; // tweak as needed
const float movementDuration = 0.3f; // tweak as needed
int movement = (up ? -movementDistance : movementDistance);
[UIView beginAnimations: @"anim" context: nil];
[UIView setAnimationBeginsFromCurrentState: YES];
[UIView setAnimationDuration: movementDuration];
self.view.frame = CGRectOffset(self.view.frame, 0, movement);