Sep
8
2009
From time to time I just blast tweets about software development, project planning, team dynamics, or whatever else comes to mind. Here is a synopsis of recent tweets and rants. If you want to follow the conversation follow me at techknow and/or juixe and I’ll be sure to follow back.
Software Development
- sudo gem install mixico; wishing sudo gem install vacation.
- Version control tools need a better way to diff source history than just diffing two versions of a file…
- If all bug defects are set to high priority, how are you to know, which one are really really really important ones?
- I have 20 bugs marked a high priority, but some are higher than others. In addition to the having a priority and severity on defects we need color code too, ‘high pink’ is lower than ‘high crimson.’
- Just remember, a two line fix can cost you a two hundred thousand dollar deal! Any code change to a production system must be tested.
- LOL, getting a NullPointerException in a method called initNullValues.
- Give me open source or give me piracy!
- Let your users help drive the development of your product, not the accountants.
Team Leadership
- Sometimes it seems that team meetings are anti-team building!
- You can still compare apples to oranges, but it is harder to compare apples to some ill-perceived subjective metric.
- Sometimes people tell you whatever you want to hear, because you are not listening to whatever they are trying to say.
- People are crazy, and you getting upset about other people’s craziness, will make you crazy.
- Not losing is not winning.
- Take your competitors and make them your competitive advantage.
Product Placement
- I don’t think Apple sponsored #iPhoneDevCamp 3, which is interesting because the iPhone dev camps generate a lot of business for Apple.
- One feature implemented in many MS products is to restrict other features unless you upgrade from the home to the super business edition.
- Why does Edible Arrangements require an answer to the following question ‘How did you hear about us?’ before I can place an order?
- Finally figured out how to cancel @UsWeekly, just typical of a old media company their web site/design/usability makes absolutely no sense!
- Facebook adds so many obstacles before you can follow someone… It’s like they don’t really want you to have friends.
- Updating and adding new plugins on my WordPress bloggie! Plugins are like bling for blog!
- You might have heard of ttyl, maybe of ttyn, but what about ttyat&t? ttyat&t: Talk To You if I get cell reception from AT&T.
Business Planning
- When you have lemons don’t just make lemonade, make lemon cake too!
- Having your mommy pay for your business plan is not a business plan.
- Everyone has a million dollar idea, I have a billion dollar idea, care to invest?
- Cash in your million dollar idea!
- If content is king, then context is like emperor.
no comments | tags: bug, iphone, iphonedevcamp, retweet, softdev, team, twitter, vcs | posted in TechKnow
Aug
22
2009
Programming related hashtags don’t make the top trend on Twitter. But last Friday night, when most people are out except geeks, the hashtag #songsincode made it to the top trends on Twitter. As of today, here some of my favorite songs in code.
Songs in Code
- @juixe: if(self.getLikes().contains(BIG_BUTTS) && !self.canLie()) {other.getBrothers().deny(false); you.getFace().add(ROUND_THING); you.getSprung()} #songsincode
- @techknow: Rhythm instanceof Dancer == true #songsincode
- @techknow: 2.times do we_will end; rock_you; face :has => ‘mud’; disgrace you, big #songsincode
- @anteaya: if “its” === 1999 then party; end #songsincode
- @cessor: for(int i = 99; i >= 0; i–) { Bottle b = _bottlesOfBeerOnTheWall[i]; b.Pass(); } #songsincode #CSharp
- @seeflanigan: Love.is_a?(Battlefield) => true #songsincode
- @stewdio_org: return “that’s” + ( name.indexOf([ “girl”, “stacey”, “her”, “jane” ]) > 0 ? “” : ” not” ) + ” my name” #songsincode #tingtings
- @malvim: try { me.go(“rehab”); } catch { return “No, no, no!”; } #songsincode
- @bricriu: if (self.go() { return new Trouble() } else if (self.stay()) { return new Trouble().intValue() * 2} #songsincode
- @projektdotnet: int main(void){get_your($body_beat); let_your(blood_flow); return 0;} #songsincode
- @NescioPhone: try { margaritaville.Resolve(“Lost”); } catch (Exception woman) { Trace(this.Fault); } #songsincode
- @brotzeitbrettl: for(int i=0; i==0; i=1) { we.celebrate(); oh_yeah.allright(); dancing.stop = false; } #songsincode
- @chiihime: foreach (night in myDreams) { me.see(you); me.feel(you); }; #songsincode
- @joestump: if (IN_YOUR_ARMS && TONIGHT) { die(); } #songsincode
- @brentgarner: if($theEnd){$loveYouTake = $loveYouMake;} // #songsincode #beatles
- @stewartyu: while(money++) { problems++; } #songsincode
- @dustinfineout: if (time.equals(‘hammer’)) { this.touchable = false; } #songsincode
- @kevinwo: hold($me, $close++, $tiny_dancer); #songsincode
- @llemirtrauts: for(var oclock = 1; oclock <= 12; oclock++){rock();} #songsincode
- @abachman: you.dance if you.want_to?; #songsincode
- @dbrady: i == sky << eye; i.looking!(@you); i.authorized?(your.mind, :read) == true #songsincode
- @zarkon: if (you.loves(somebody)) { them.set(free); } #songsincode
- @llemirtrauts: @paynen [money, show, getReady, goGoGo].forEach(function(value, key) {key + for(value);});!stepOnMy(blueSuedeShoes); #songsincode
- @jonrimmer: x = ‘Umbrella’; you.Permissions[‘StandUnder’] += self.GetPossession(x + x.Right(4) + x.Right(4) + ‘eh’ * 3) #songsincode
- @jverdi: while(true) {if(!this.touch()) {echo “can’t touch this”;}}#songsincode
- @tiemez: while(false){ self.giveYouUp(); self.letYouDown(); self.runAround(); self.desertYou(); } #songsincode
- @mikemangi: function iWant(){ $rocknroll=’allnite’; $party=’everyday’; keepon($rockn); } #songsincode
- @librarythingtim: if(!woman) { cry = false; } #songsincode
- @motherwell: if(you.think(sexy) == true && you.want(myBody) == true ) { you.tellMe(so) } #songsincode
- @TjoosDude: me.see(you.watch(me.watch(you))); #songsincode
- @cameronhunter: (function( you ){ return you.getLove().matches(/bad medicine/) })() #songsincode
- @tower10: @paynen function () { walk(this).way(); talk(this).way(); } #songsincode
- @eviltabbycat: public interface egyptian {public void walk();} #songsincode
- @frenchs: int *chicks = (int*)malloc(sizeof (int)); int *money = null; free(chicks); #songsincode #rusty_c
- @joestump: if (HUMPTY_DANCE) { define(‘TRANCE’, true); do_the_hump(); } #songsincode
- @paynen: (girls == boys).like(girls.do(boys.like(girls.do(girls.like(boys)))) #songsincode
- @beenewilliamr: dc -e'[dsm1laxsr]sj[2/ljxlcxq]st[3*1+ljx lcx]sy[d1=qd2%0=td2%0!=y]sc[100P]sw[0P] se[q]sq[d1700!>qdlm%d0=w d0!=esr1+lax]sa28lcx’ #songsincode
- @skatterbean: if not self.check(): self.wreck() #songsincode (thanks do @dreid for the bug fix)
- @frenchs: if(!roxanne) { self::turnOnLight(self::RED); } #songsincode
- @eegiffin: class HotelCalifornia { void checkOut () { canLeave=false; } } #songsincode
- @ald: try { Britney.Sing(); } catch (Exception ex) { throw new Exception(“Oops”); } #songsincode
- @herlifeinpixels: while you.find(me, indaclub): me.sipping(bub); if isinstance(you, sexylilthug): you.need = me.got; #songsincode
- @dhinojosa: assertTrue(heat.isOn()) #songsincode #glennfrye
- @llemirtrauts: [].push(“ah”).push(“good”).push(“real good”);#songsincode
- @ara_p: roof.set(“fire”, true); #songsincode
- @proxymoron: if(wantTo) { we = dance(); } friends = !dance(); if(friends != dance()) { we.remove(friends); } #songsincode
For some unexplainable reason, I found a lot of developers tweeted/coded the song Dude (Looks Like a Lady) by Aerosmith.
Dude (Looks Like a Lady)
- @davglass: var Dude = new Lady();#songsincode
- @jrconlin: @davglass Shouldn’t that be: (Lady) new Dude; ? #songsincode
- @Slow3000: dude.setLook(Looks.LADY); #songsincode
- @krigsi: LooksLike(“Dude”,”Lady”) #songsincode
- @ptone: import dude as lady #songsincode
- @clindh: looks == (lady)dude; #songsincode
I found these three variants of Jay-Z’s song 99 Problems interesting.
99 Problems
- @brotzeitbrettl: echo count($this->problems) == 99; foreach($this->problems as $p) { echo ($p instanceof Bitch) == false); } #songsincode
- @peterc: Okay, just one more: # problems.size == 99 && !problems.include?(“bitch”) #songsincode
- @tome: en(problems) == 99 and “bitch” not in problems
Some songs, in code, by Michael Jackson.
RIP MJ
- @techknow: dianna.setDirty(true) #songsincode
- @pud: If (BillieJean.is != my.lover) { BillieJean.justa = ‘girl’; i = 1; } #songsincode
- @RobertFischer: !my.isLover(billyJean) && billyJean.claims(my.theOne) && !my.isSon(theKid) #songsincode
- @krigsi: if($Annie = ‘OK’) { SmoothCriminal(Hit) } #songsincode
4 comments | tags: code, humor, lol, Programming, songsincode, trend, twitter | posted in Programming, TechKnow
Aug
19
2009
Politicians say the darndest things, especially when it comes to technology. Here are some technology related quotes made famous my our elected officials and civil servants.
During my service in the United States Congress, I took the initiative in creating the Internet. I took the initiative in moving forward a whole range of initiatives that have proven to be important to our country’s economic growth and environmental protection, improvements in our educational system.
– Al Gore/Vice President of the United States
Ten movies streaming across that, that Internet, and what happens to your own personal Internet? I just the other day got…an Internet was sent by my staff at 10 o’clock in the morning on Friday. I got it yesterday [Tuesday]. Why? Because it got tangled up with all these things going on the Internet commercially.
– Ted Stevens/Alaska Senator
They want to deliver vast amounts of information over the Internet. And again, the Internet is not something that you just dump something on. It’s not a big truck. It’s a series of tubes. And if you don’t understand, those tubes can be filled and if they are filled, when you put your message in, it gets in line and it’s going to be delayed by anyone that puts into that tube enormous amounts of material, enormous amounts of material.
– Ted Stevens/Alaska Senator

Internet != Big Truck
As broadband deployment and more importantly if you look at the megabyte per second how much information can we get though the pipeline is going to be so important as new and new software technologies are introduced what you are going to see is huge change from how applications are architected with skip logic to video and much more human ways of interacting with these applications rather than binary or COBOL ways to interacting with those applications.
– Vivek Kundra/United States Chief Information Officer
no comments | tags: humor, internet, lol, politics, quotes, technology | posted in TechKnow
Aug
17
2009
I’ve used a variety of layout techniques and technologies, from HTML tables to home grown CSS. I recently started using The 1Kb CSS Grid to layout my web content in a page. With The 1Kb CSS Grid you can specially design your grid CSS by selecting the number of columns, the column width and the gutter width between columns. The width of your grid will be calculated for you but just in case you care, the total width of the grid will be based on the following equation: (Number of Columns x Column Width) + (Number of Columns – 1) * Gutter With

1Kb CSS Grid
For my requirements I found when using The 1Kb CSS Grid that I tend to get more flexibility when I use 12 columns at 60 pixel wide each column and a gutter of only 10 pixels. The total grid width for this layout is 840px. If you peek in the generated grid.css you will find, with our configuration, 12 grid classes, such as grid_1, grid_2, etc. Think of grid_1 as a single column, and grid_2 as a one cell that spans two columns. You can have any number of rows, but each row you only have 12 columns. For example, you can have one grid_12, or three grid_4, or 12 grid_1 per row. Lets see the HTML for a few rows and how they would end up looking.
<div class="row">
<div class="column grid_12">12</div>
</div>
<div class="row">
<div class="column grid_6">6</div>
<div class="column grid_6">6</div>
</div>
<div class="row">
<div class="column grid_1">1</div>
<div class="column grid_2">2</div>
<div class="column grid_4">4</div>
<div class="column grid_5">5</div>
</div>

Basic Grid Layout
Notice that each row can have any number of grids, as long as the grid count adds up to 12. You can also nest rows
<div class="row">
<div class="column grid_8">8
<div class="row">
<div class="column grid_4">4</div>
<div class="column grid_4">4</div>
</div>
</div>
<div class="column grid_4">4</div>
</div>
As a tip, just remember that the grid count in the nested row must add up to the parent/containing column grid count. Below is a dramatization of what a CSS grid row with a nested row would look like.
1 comment | posted in CSS, HTML/XML, TechKnow
Aug
16
2009
From time to time I just blast tweets about software development, project planning, team dynamics, or whatever else comes to mind. Here is a synopsis of recent tweets and rants. If you want to follow the conversation follow me at techknow and I’ll be sure to follow back.
Software Development
- Refactoring documentation.
- The longest possible method name I have seen: getCorrespondingRowIndexInWisePickPopupListForCombobox
- Why did programmers ever put version/revision control ids in their code? Was that a best practice at that time?
- I know there is writer’s block, is there such thing as coder’s block? How do you break out of coder’s block?
- Debug your thinking process. You can remote debug your thinking process, so it is like a outer body hacking.
- Is your application user friendly or developer friend or management friendly?
- Reframe the problem instead of trying hacks that break the current mental frame for the problem.
- Half thought out features, means half thought out specs, means half thought out implementations, means 12.5% of what the end user wants!
- Most rehash it up, some mash it up, a few smash it up, I fresh it up!
- Own the source and distribution of the platform you use, don’t let the platform own your data or users!
- Have you ever had to reverse engineer your own code, your own application?
- Anyone using MonoDevelop on the Mac?
Product Placement
- I wish GVoice allowed me to get a phone number in another country. I need a London number.
- Can you get GVoice to forward to another GVoice number, which forwards the call to the original GVoice number? Will it break the internet?
- Did Google jump the shark with their announcement of the Chrome OS? Why would they duplicate their efforts between two different OS?
- Just got a Mac Mini to replace my old HP desktop. They are so small, I want on for my home, office, and car.
- The new Mac Mini is the size of some old 360GB Western Digital My Book external drives.
- Why is Go Daddy pimping Twitter with a popup dialog from their Domain Manager?
- You know what would be nice? If @wefollow had an open API! Also, wefollow is an oxymoron, they don’t follow anybody.
- Why doesn’t the phone company make it easy for you to give them a phone call? I can’t find their customer service phone number!
- The worst part is that when you finally get a number, you get several extensions/options except the one you are calling for.
- When calling the phone company, and finally reach a real person, the first thing they want to do is transfer you to another department.
Business Planning
- You know how they say that dog owners often resemble their dogs, I think this also applies to business owners.
- Many small businesses resemble their business owners, especially in terms of organization, quality, and planning.
- Since when did ‘Don’t worry, be crappy.’ become standard operating procedure for startups? I see entrepreneurs advocating for crappyness.
- Common advice is to make something people like. I say, instead of making a product/service make demand for that product/service.
- First earn while you learn, then earn while you sleep!
- Web 2.0 Distribution of Work: Let end users create the hard stuff.
- Free is the ultimate bait and switch.
- Never substitute value with volume.
- Sometimes the easiest thing to do is to give it a try.
- The probability of success increases with each time you try…
- No matter what business you are in, your are in the customer service business.
- If you shoot for the moon and fail, you get nothing but air. If you shoot for the stars and fail, you might get the moon.
Team Leadership
- The easiest way to see team dynamics at play is when the team is ordering food.
- I would rather have other people be pissed at me than me be pissed at myself…
- You can compromise on schedules and deliverables, but never compromise on happiness.
- Just like Hollywood people name drop celebrities, techies name drop three-letter acronym and buzzword technology sounding terms.
- A good leader will ask more questions than he can answer.
no comments | posted in Programming, TechKnow