http://stackoverflow.com/questions/14040371/sending-email-using-phonegap
http://stackoverflow.com/questions/4302403/send-a-file-as-attachment-in-objective-c
a ragtag collection of things I couldn't find in a quick 5-minute search on google, as well as some curiosities and what not.
Sunday, February 23, 2014
Friday, February 21, 2014
External files CMD/ST3... sadness.
If you created your app with Sencha Command then you should not edit index.html. Instead you should add JS files to the js property of app.json.
http://www.sencha.com/forum/showthread.php?211153-How-to-include-my-own-javascript-files
This is like, annoying at best.
http://www.sencha.com/forum/showthread.php?211153-How-to-include-my-own-javascript-files
This is like, annoying at best.
Wednesday, February 12, 2014
Sencha Touch is different from ExtJS
I've done Extjs4 for awhile and thought ST2 would be the same way. In fact, I've even built an app with ST2. Turns out I didn't know a few basic things.
One of them is that classes take a config object. This is important! My form just kept on never displaying because I was used to putting fields on the class itself not in the form object.
Also, scaffolds are very very useful. Use them!
http://www.sencha.com/blog/getting-started-with-sencha-touch-2-build-a-weather-utility-app-part-1
One of them is that classes take a config object. This is important! My form just kept on never displaying because I was used to putting fields on the class itself not in the form object.
Also, scaffolds are very very useful. Use them!
http://www.sencha.com/blog/getting-started-with-sencha-touch-2-build-a-weather-utility-app-part-1
Wednesday, February 5, 2014
jakarta mapping
to get the apache server to redirect to tomcat,
(to find it, run locate httpd.conf)
change workers2.properties
and run apachectl -k restart
(to find it, run locate httpd.conf)
change workers2.properties
and run apachectl -k restart
Friday, January 24, 2014
Accessing Postgres UUID with JPA
http://stackoverflow.com/questions/11284359/persisting-uuid-in-postgresql-using-jpa
JPA 2.1 provides a very easy way to use the PostgreSQL uuid column type and
java.util.UUID as the type of the corresponding entity field:@javax.persistence.Converter(autoApply = true)
public class PostgresUuidConverter implements AttributeConverter<UUID, UUID> {
@Override
public UUID convertToDatabaseColumn(UUID attribute) {
return attribute;
}
@Override
public UUID convertToEntityAttribute(UUID dbData) {
return dbData;
}
}
Just add this class to your persistence configuration and annotate UUID fields with
@Column(columnDefinition="uuid").Requests.py
I needed to do some RESTful calls via command line.
To set up,
Super simple, very fun!
It just works!
Naturally, I could have used curl, but I wanted to save my commands.
I remember I used Python a long time ago, so I was investigating curling via Python. There is a pycurl library, but this one seemed simple and fun.
To set up,
Get the Code
Requests is actively developed on GitHub, where the code is always available.
You can either clone the public repository:
git clone git://github.com/kennethreitz/requests.git
Download the tarball:
$ curl -OL https://github.com/kennethreitz/requests/tarball/master
Or, download the zipball:
$ curl -OL https://github.com/kennethreitz/requests/zipball/master
Once you have a copy of the source, you can embed it in your Python package, or install it into your site-packages easily:
$ python setup.py install
Super simple, very fun!
It just works!
Monday, January 13, 2014
Raspberry Pi WPA2 Enterprise
This thread seems to have the right thing with the pem file...
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=44029
This step by step guy also looks good
https://me.m01.eu/blog/2012/05/wpa-2-enterprise-from-scratch-on-a-raspberry-pi/
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=44029
This step by step guy also looks good
https://me.m01.eu/blog/2012/05/wpa-2-enterprise-from-scratch-on-a-raspberry-pi/
Subscribe to:
Posts (Atom)