Find All .git in a Directory
To find all the git repositories in a directory, you can run the following command (which search for the .git
directories):
find . -type d -name .git
Continue reading →
aka @samwize ¯\_(ツ)_/¯
To find all the git repositories in a directory, you can run the following command (which search for the .git
directories):
find . -type d -name .git
Continue reading →
I have changed the classic Octopress theme to this cleaner greyshade theme by Shashank Mehta.
This is how you can install:
Continue reading →I made a commit to a git repos and broke the build.
(I should be punished to clean the toilet for a week for accidents like this)
But what happened was unexpected, because I added a framework (Crashlytics), and I thought the library will be pushed fine to the repos.
What I didn’t expect was that my GLOBAL gitignore has an entry for Crashlytics framework.
For developers who didn’t know, other than the project gitignore file, there is also a global file for your machine.
It is at ~/.gitignore_global
.
In the previous post, I discussed about how to Google Play manage compatibility between your app and devices.
The key is to make use-feature
optional.
Recently, I have encountered another problem which I want to share.
I have this in my manifest file:
1 2 3 4 |
|
On first look, it seems ok. Making TELEPHONY optional will make the app compatible with tablet (a common solution).
However, the above is WRONG! Because it should be android.hardware.telephony
(lower case)!
I made a mistake.
But I also blame Android, because for permission, it is upper case! android.permission.INTERNET
is correct.
Weirdedness of Android..
This is what happend to my Android app.
It works well when I install and test on my Lenovo IdeaPad Tablet (it could be any other device).
But after I upload the APK to Google Play Store, I could not find the app using the tablet!
Continue reading →Apple has long announced uniqueIdentifier
UDIDs would be deprecated. From 1st May 2013, Apple will reject apps that use the deprecated identifier.
So what you have do?
DoubleEncore has writtern a good article on the other ways to generate UDID. It is up to you and your use case.
For me, OpenUDID is the nearest replacement. The only difference is that it cannot persist the identifier if there is a system reset.
It has been nearly 3 years since I stopped Android development.
A lot has changed since the days of version 1.6. Now it is 4.x!
Trying to do a little bit of compiling and setting up stuff these days, and I had some hiccups. This is a refresher guide on some topics.
Continue reading →If you use s3cmd and encountered [Errno 32] Broken pipe
as you try to put an object in a bucket, understand that this is a very very bad error message.
Jeremy blogged about this and attributed the error to a typo in the bucket name.
Others attributed it to no permission, file too big, etc..
I attributed it to incorrect permission policy.
Continue reading →Similar to how you transfer data away from Dotcloud, you can do the same for your mongodb database.
I have been moving away from Dotcloud as they no longer provide free sandbox app.
Continue reading →If you have data on Dotcloud server that you want to transfer away via FTP directly, you can’t, because Dotcloud don’t provide FTP to the instances.
This is about the best way I know of transfering data, first by transferring to your own FTP server:
Continue reading →