Goodbye Tumblr
Just moved to wordpress blog since it's quite difficult for me to post snippets in the post here. It has been a nice ride and thanks for your Great Work, Tumblr!!!
we're not kids anymore.
Cosmic Funnies
Monterey Bay Aquarium

Kaledo Art
wallacepolsom

blake kathryn
official daine visual archive
cherry valley forever
Mike Driver

⁂
trying on a metaphor
untitled

Janaina Medeiros
RMH

Origami Around
almost home
🪼

oozey mess

Love Begins

JVL

seen from United States

seen from United States
seen from United States
seen from United States

seen from Türkiye
seen from Poland
seen from United States

seen from United States
seen from United States
seen from Netherlands

seen from Türkiye

seen from United States
seen from United States
seen from United States
seen from Argentina
seen from United States
seen from United States

seen from United States
seen from United States
seen from United States
@paingpyi-blog
Goodbye Tumblr
Just moved to wordpress blog since it's quite difficult for me to post snippets in the post here. It has been a nice ride and thanks for your Great Work, Tumblr!!!
How to dynamically scroll the list?
- Attach an DOM event listener using jQuery
- use `float:left` for your `ul` class which will help to get total Height of the list view
- make sure you scroll to the Parent of your `url` list element with the height of `ul`
```javascript
$(".chatList").bind('DOMNodeInserted',function(){
var self = this;
$(self).parent().clearQueue().stop().animate({ scrollTop: $(self).height() }, "slow");
myLog('DOMNodeInserted triggered');
});
```
How to show UILabel for one or multiple lines nicely?
UILabel automatically set vertical-align center so when you want have only 1 line of text, your label will not be on "Top-Left" position.
To solve it, set max lines in XCode and treat as multiple lines for Default.
in the code, you need to check if text length is enough for one line.
if([mainLabel length] < 31){
self.c_MainTitle.numberOfLines = 0;
[self.mainLabel sizeToFit];
}
That's it. Your label will be in "Top-Left" position when text is short and two lines if longer.
Update:18/6/2013 :
if you are using it for UITableView cells, must set fixed width and height for cells at "CellsForRowsAtIndexPath" like this :
CGRect tmp = trackTitleLabel.frame;
tmp.size.width = 180;
tmp.size.height = 29;
trackTitleLabel.frame = tmp;
How to fix invalid Provisioning Profile due to expired Certificate?
Go to "Provisioning Profiles" in Apple Developer Center.
Click on an inactive particular provisioning profile and press "Edit".
It will bring to the detail panel where you will see "Certificates" is unchecked because new certificate has been created while this provisioning profile was attached to old one which is not existed anymore.
You will need to check the certificate you want to use for this provisioning and "Generate" to download updated provisioning profile.
Bravo! you can now still use same Bundle Identifier from your old XCode project and able to install to device.
How to create Bundle Identifier and Provisioning Profile for new XCode iOS project?
Assuming you already have a valid certificate in your Apple Developer Center.
Go to Identifiers > App IDs > click + button.
AppID should follow this format : com.myCompany.myAppName
Other configuration settings can be varied.
Click continue to finish this step.
After created an AppID successfully, go to "Provisioning Profiles" > click + button.
Choose "iOS App Development" for development purpose and choose the AppID we just created from previous step.
3rd step allows you to choose the Certificate and you will be able to download the Provisioning Profile after that.
Summary
An iOS app must have an AppID (which will be used as Bundle Identifier)
AppID and a certificate is required to generate Provisioning profile which will help to install the iOS app in the real device during development stage.
How to Synchronously get the Height of UIWebView
use
CFRunLoopRunInMode((CFStringRef)NSDefaultRunLoopMode, 1, NO);
and stop the loop after your UIWebView delegate.
Check here for code: https://gist.github.com/philokezzar/5670599
Maintaining uniform image size for an image grid with CSS
Maintaining images in a grid view with uniform width and height without forcing/stretching each images with fixed width and height.
The main ingredients are "picasa-image" should be "block" with fixed width/height and overflow 'hidden'. Then child images should have min-width & min-height so images are not stretched even though they may have longer or wider rations.
https://gist.github.com/philokezzar/5440841
Open source Map and 3D Geometry
Open Street Map & Open Layers
http://www.openstreetmap.org/
http://www.openlayers.org/
Creating Custom Map (commercial)
http://mapbox.com/
An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps
http://leafletjs.com/
Visualizing 3D OSM building geometry on interactive maps.
http://osmbuildings.org/?lat=52.52111&lon=13.40988&z=17
Google Map is layered inside BingMap Control by overriding GetUri Method.
Detecting Current Device with Html/Javascript
This gist will show you how to detect which mobile device is the visitor is using to surf your site.
https://gist.github.com/philokezzar/5352226
iOS - Date Timestamp Format
2013-03-12 09:49:25 +0000
yyyy-mm-dd HH:mm:ss Z
Kinect Fusion for Windows SDK
Video
http://www.youtube.com/watch?v=quGhaggn3cQ
Article
http://blogs.msdn.com/b/kinectforwindows/archive/2012/11/05/kinect-fusion-coming-to-kinect-for-windows.aspx
Arduino : Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.
Philips Hue Lighting with API
Philips Hue API & Home Page
Philips Hue iPhone APP
Turn Music Into Light
Philips Hue & iPad App for Minecraft Day/Night Simulation
for all modern browsers !!!