Category Archives: Uncategorized

How to copy files to AWS servers?

Here is how: scp -i ~/Desktop/key_file.pem ~/Desktop/yourfile.txt ubuntu@yourawsinstance:/home/ubuntu/

Posted in Uncategorized | Leave a comment

React Native android build failed. SDK location not found.

Go to your React native Project > Android Create a file local.properties Open the file paste your Android SDK path like below in Windows sdk.dir = C:\\Users\\USERNAME\\AppData\\Local\\Android\\sdk in macOS sdk.dir = /Users/USERNAME/Library/Android/sdk in linux sdk.dir = /home/USERNAME/Android/Sdk Replace USERNAME with … Continue reading

Posted in Uncategorized | Leave a comment

Remove spaces between tag in xml files

I need to compare two xml files but the spaces differences between tags preventing me from focusing on the real differences. I googled found this solution. You can use regular express to remove these white spaces: replace “>\s*<" will fix … Continue reading

Posted in Uncategorized | Leave a comment

Atom editor issue

I installed atom editor on my mac but when I ran it from the terminal it always disappear. So I have to run these commands again: rm /usr/local/bin/atom ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom

Posted in Uncategorized | Leave a comment

PHP page 500 error

If you got 500 error and you’re wondering what the error really is, you can use the following statement in your php file: ini_set(‘display_errors’, 1);

Posted in Uncategorized | Leave a comment

C# – understand delegate

A delegate can be seen as a placeholder for a/some method(s). By defining a delegate, you are saying to the user of your class, “Please feel free to assign, any method that matches this signature, to the delegate and it … Continue reading

Posted in Uncategorized | Leave a comment

Restore iPhone backup issue

Today I bought an iPhone X and tried to restore my iPhone 6s backup to it but failed. I got error message saying backup corrupt or incompatible. I was wondering if it was related to my carrier transfer from at&t … Continue reading

Posted in Uncategorized | Leave a comment

How to install gulp?

You need to run this command: npm install -g gulp-cli

Posted in Uncategorized | Leave a comment

Handy js to loop through properties in an object

var output = ”; for (var property in myObject) { output += property + ‘: ‘ + myObject[property]+’; ‘; } alert(output);

Posted in Uncategorized | Leave a comment

SVN – how to revert a single file to an old version?

If it’s only a single file, and if you’re using Tortoise SVN, you can use the following approach: 1.Right click on your source file, and select “TortoiseSVN” -> “Show log”. 2.In the bottom window that show changed files, right click … Continue reading

Posted in Uncategorized | Leave a comment