Categories
Tags
-
Recent Posts
Author Archives: njhamann
Android Market URL Format
Technique for launching android market with specific search terms. Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("market://search?q=pname:PriceBunnyClient")); startActivity(intent);
Posted in Uncategorized
Leave a comment
Drawing API: Circle
var myClip:Sprite = new Sprite(); this.addChild (myClip); myClip.graphics.beginFill (0×000000); myClip.graphics.drawCircle (0, 0, 10); // x, y, radius myClip.graphics.endFill ();
Posted in Uncategorized
Leave a comment
AOP tracing in clojure
Shows how its possible to do AOP like programing in clojure. (defn trace-wrap [v] (let [f (var-get v) fname (:name ^v)] (fn [& args] (println "calling" fname) (let [rtn (apply f args)] (println "done with" fname) rtn)))) (defn add [x … Continue reading
Posted in Uncategorized
Leave a comment
Mirror website
pavuk -adomain domain.tld http://www.domain.tld
Posted in Uncategorized
Leave a comment
16:9 on Youtube
<object width="425" height="265"> <param name="movie" value="http://www.youtube.com/v/MCkAtS1-zG0&hl=en&fs=1&fmt=22" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> <embed src="http://www.youtube.com/v/MCkAtS1-zG0&hl=en&fs=1&fmt=22" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="265" /> </object>
Posted in Uncategorized
Leave a comment
JS “JAH” Script by Kevin Marks
function jah(url,target) { // native XMLHttpRequest object document.getElementById(target).innerHTML = ; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = function() {jahDone(target);}; req.open("GET", url, true); req.send(null); // IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) … Continue reading
Posted in Uncategorized
Leave a comment
Displaying the Graphs (Bar charts) using PROC GCHART in SAS :
Just a day ago, I have received a question on Graphs in my orkut community, which prompted me to create following examples. Below are 5 different types of Graphs were produced (including 3d graphs) using Proc Gchart. Sample data set … Continue reading
Posted in Uncategorized
Leave a comment
Proc Transpose: Convert columns into rows or rows into columns
During my early days as a SAS programmer, I get confused very easily with PROC TRANSPOSE. I mean, I get confused with what are the variables that I need to include in BY statement and ID statement as well as … Continue reading
Posted in Uncategorized
Leave a comment
Python MySQLdb Insert Id
Documentation has a method listed at the connection level (conn.insertid()) and online there are references to an older conn.db.insertid(), but neither exists anymore (AFAIK). cursor.lastrowid
Posted in Uncategorized
Leave a comment
DocumentClass Template
Just a bare-bones DocumentClass template I use. package { import flash.display.MovieClip; public class MainClass extends MovieClip { public function MainClass() { // Constructor Function } } }
Posted in Uncategorized
Leave a comment