Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

July 28 2010

lmumar
10:35

Rails: Class wide scoping

Overriding find and find_every ActiveRecord::Base class methods in your model should do the trick.

Example:

class << self

    def find(*args)
      if name == 'ProgramTemplate'
        self.with_scope(:find => {:conditions => {:type => 'ProgramTemplate'}}) do
          super
        end
      else
        super
      end
    end
    
    def find_every(*args)
      if name == 'ProgramTemplate'
        self.with_scope(:find => {:conditions => {:type => 'ProgramTemplate'}}) do
          super
        end
      else
        super
      end
    end

end

June 20 2010

lmumar
02:51
I view Linux as something that's not Microsoft—a backlash against Microsoft, no more and no less. I don't think it will be very successful in the long run. I've looked at the source and there are pieces that are good and pieces that are not. A whole bunch of random people have contributed to this source, and the quality varies drastically. My experience and some of my friends' experience is that Linux is quite unreliable. Microsoft is really unreliable but Linux is worse. (source: http://en.wikiquote.org/wiki/Kenneth_Thompson)
— Ken Thompson

June 17 2010

lmumar
14:50

June 08 2010

lmumar
22:46

RIP, Mac ?

If they are going to kill the Mac where would developers go to develop there iOS apps? Linux? :P
Tags: mac macosx osx
lmumar
14:18
8804_fbde
Risk calculator graph working now. 
Tags: android score
lmumar
14:16
8791_cb4c
My "crazy everyday" project, this is the main screen for the risk calculator app, basically it is an android version of the score tool app that I developed for Caresharing (for more info visit this site http://www.scoremeter.nl). 
Tags: score android

June 02 2010

lmumar
14:57

BSD vs Linux

BSD is what you get when a bunch of Unix hackers sit down to try to port a Unix system to the PC. Linux is what you get when a bunch of PC hackers sit down and try to write a Unix system for the PC.

May 12 2010

lmumar
15:10
lmumar
14:15

Windows 7 x64 fastest OS for gaming (shut-up XP)!

Where's the under-the-hood changes Steve J is bragging about? Snow Leopard's performance in this benchmark is soooo pathetic. Maybe it's the reason why it's price is only $29.00 :-(  

May 10 2010

lmumar
02:04

New js framework to learn, this time it's from a fruit company.

<script type="text/declaration">

storeTitleC : Gianduia.AppKit.NSDynamicElement {
action = openDropDown;
}
moreLinkC : Gianduia.AppKit.NSDynamicElement {
action = openDropDown;
}
dropdownC : Gianduia.AppKit.NSDynamicElement {
delegate = self;
}
sliderC : cust.component.timepicker.TimeSlider {
list = selectedStore.days;
pageSize = 4;
sliderUnitWidth = 199;
activeClass = "enabled";
hasPageDots = false;
localizedUpText = 'Up';
localizedDownText = 'Down';
localizedBackToOpeningText = 'Back';
errorMessage = '';
}

MapLinkC : Gianduia.AppKit.NSHyperlink {
action = mapOverlayAction;
}

mapOverlayC : cust.component.MapOverlay {
storeNumber = window.MapURL;
instanceClass = "mapOverlay";
refDivID = "BODY_REF_DIV_ID";
}
innerTopC : Gianduia.AppKit.NSDynamicElement {
}

</script>
<script src="http://concierge.apple.com/concierge/18110/scripts/common/ccweb/1-2-SNAPSHOT/Gianduia.js"&gt;&lt;/script&gt;
<script>
DataURL = "/WebObjects/Concierge.woa/wa";
IsDataFile = false;
//PageLocaleCode = 'testing';
DOCROOT_VERSION = '18110';
LOCALE_CODE = 'en_US';
NSPackage("cust",'http://concierge.apple.com/concierge/18110/scripts');
NSPackage("rrs",'http://concierge.apple.com/concierge/18110/scripts/common');

NSPackage("Omniture",'http://images.apple.com/global/metrics/js/retail/concierge');

NSLink('cust.page.TimePicker');
var isKiosk = false,
isPortal = false;
</script>
<script type="text/javascript">
TimeslotsURL = '/WebObjects/Concierge.woa/58/ja/iJLstrHRKwVgGGNwJbmOkw/3.0.1.0.1.1.1.3';
MapURL = 'R003';
</script>

May 04 2010

lmumar
13:48
Play fullscreen
MS Terminator
Tags: weird funny

April 30 2010

lmumar
14:54
lmumar
14:17
1381_dc26_500
Our new coaching app.

April 29 2010

lmumar
02:05
Nice optical illusion
Reposted byJaBBvoisard

April 26 2010

lmumar
13:40

April 24 2010

lmumar
02:24
Play fullscreen
Who say programmers can't dance. Go Knut!
Reposted bytaratcygenb0cklydschibigbear3001heroine88ralreemactuxdayneAluslaw

April 13 2010

lmumar
14:09


Who, in his right mind, expects Steve Jobs to let Adobe (and other) cross-platform application development tools control his (I mean the iPhone OS) future? Cross-platform tools dangle the old “write once, run everywhere” promise. But, by being cross-platform, they don’t use, they erase “uncommon” features. To Apple, this is anathema as it wants apps developers to use, to promote its differentiation. It’s that simple. Losing differentiation is death by low margins. It’s that simple. It’s business. Apple is right to keep control of its platform’s future.

— Jean-Louise Gassée (BeOS founder)
lmumar
13:54
Play fullscreen
This is very cool! Alice for the iPad!
Reposted byowrange owrange

April 10 2010

lmumar
13:36
Why buy an iPad stand if you have Sylvester? Just keep him away from Tweety.
Tags: iPad apple osx
lmumar
12:25
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.