Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
Click here to check if anything new just came in.
July 28 2010
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
“ 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
June 08 2010
RIP, Mac ?
If they are going to kill the Mac where would developers go to develop there iOS apps? Linux? :P
Risk calculator graph working now.
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).
June 02 2010
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
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
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"></script>
<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
Play fullscreen
MS Terminator
April 30 2010
April 29 2010
April 26 2010
April 24 2010
April 13 2010
“— Jean-Louise Gassée (BeOS founder)”
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.
April 10 2010
Why buy an iPad stand if you have Sylvester? Just keep him away from Tweety.
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...
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.


