View resize_disk_image.sh
#replace count=1024 with the number of MB (!) you want to grow the image file | |
dd if=/dev/zero bs=1024k count=1024 >> my_loop_image_file | |
e2fsck -f my_loop_image_file | |
resize2fs my_loop_image_file |
View IDViewController.m
// | |
// IDViewController.m | |
// MyFirstIndoorsApp | |
// | |
// Copyright (c) 2013 indoo.rs GmbH. All rights reserved. | |
// | |
#import "IDViewController.h" | |
#import <CoreLocation/CoreLocation.h> |
View extract-certificate.sh
keytool -list -keystore keystore.jks | |
keytool -export -alias 1 -keystore store.jks -file store2.crt | |
openssl x509 -in store2.crt -out store2-pem.crt -outform pem -inform der | |
keytool -v -importkeystore -srckeystore store.jks -srcalias 1 -destkeystore store2.p12 -deststoretype PKCS12 | |
openssl pkcs12 -in store2.p12 -out store2.pem | |
openssl rsa -in store2.key -inform DER -out store2-nopw.key | |
# https://devcenter.heroku.com/articles/ssl-endpoint#update-certificate |
View gist:796504
java.lang.OutOfMemoryError: bitmap size exceeds VM budget | |
at android.graphics.Bitmap.nativeCreate(Native Method) | |
at android.graphics.Bitmap.createBitmap(Bitmap.java:468) | |
at android.graphics.Bitmap.createBitmap(Bitmap.java:435) | |
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340) | |
at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:488) | |
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:462) | |
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:323) | |
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) | |
at android.content.res.Resources.loadDrawable(Resources.java:1709) |
View School going Google.
So, I want to migrate my school to Google Apps. Problem is, that we're a technical school (http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=en&u=http%3A%2F%2Fwww.htl.rennweg.at%2F) and Google Apps isn't that attractive for most of us (considering you could create your own Gmail Account within seconds...). | |
In order to make Google Apps more attractive, I thought about something like offers for cheaper Android phones / tablets and / or ChromeOS netbooks. Additionally, someone asked if it's possible to maintain some kind of default content set that's available for every new account (important contacts, documents, ...). | |
My theses would then deal with the dis- / advantages of migrating schools to Google Apps, and maybe how behavior changes when using Google-only (Android + ChromeOS + Google Apps) in classroom (how do people share documents? how do they communicate?). | |
What do you think? Ever done before? Interesting? Stupid? Feedback welcome. :) | |
Have a great day | |
Tom |
View happy.be_json
{"id":1,"text":"Tom³ Tag","timestamp":"Apr 23, 2011 12:11:43 PM","url":"http://threetimestom.com/","author":{"id":1,"name":"Tom"}} |
View uservoice_announcify.js
<script type="text/javascript"> | |
(function() { | |
var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true; | |
uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/1I1faem5ZQM8ojOSkiew.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s); | |
})(); | |
</script> |
View gist:1025735
<receiver android:name=".CallListener"> | |
<intent-filter> | |
<action android:name="android.intent.action.BOOT_COMPLETED" /> | |
<action android:name="android.intent.action.USER_PRESENT" /> | |
</intent-filter> | |
</receiver> |
View mobfox_ads.java
MobFoxView mobfoxView = new MobFoxView(this, publisherId, test, includeLocation, boolean animation); |
View bloki_integration.html
<link href="http://bloki-engine.appspot.com/style/uservoice/horizontal_red.css" | |
rel="stylesheet" type="text/css" /> | |
<script language='javascript' | |
src='http://bloki-engine.appspot.com/submit/submit.nocache.js' | |
type='text/javascript'></script> |
OlderNewer