Add to activity in manifest:
android:configChanges="keyboardHidden|orientation|screenSize"
XMLAdd to activity in manifest:
android:configChanges="keyboardHidden|orientation|screenSize"
XMLA nice feauture in CSS3 is the box-shadow. Instead of working with tedious PNG-images you can add shadows to any element with the CSS property box-shadow.
The syntax works like this:
box-shadow: <offset-x> <offset-y> <blur> <spread> <color> <inset>
Here are some examples:
Here’s a super simple function that generates humanly readable passwords by weaving random consonants and wovels.
The generated passwords are by no means secure. I did this for an application used to launch game servers and wanted to make the passwords be easy to communicate over Skype. (more…)
Lets say you have a list of person objects (List
You may use Sort to update the existing list.
[c language=”#”]
personsList.Sort((x, y) => string.Compare(x.Name, y.Name));
[/c]
or OrderBy to produce a new, ordered list.
[c language=”#”]
var newPersonsList = persons.OrderBy(x => x.Name);
[/c]
Here’s a simple way to paginate when getting large amounts of posts from the database.
Here’s a great tool for generating dummy data for your database etc.
www.generatedata.com
This is an enhanced version of this
It’s a VERY simple php gallery. You could develop it in any direction. This one only supports jpg, but that could be augmented as well.
Here’s what it does:
To prevent a Phonegap-wrapped app from opening external links in the apps webview, use javascript to open the link in the external browser.
This works on Android (probably other platforms as well)
<a href="#" data-rel="external" target="_blank" onclick="window.open('http://www.jymden.com', '_system')">Jymden</a>
HTML