Friday, December 24, 2010
Sunday, December 19, 2010
me, myself and C
Friday, December 17, 2010
Mono tips
Thursday, December 16, 2010
XKCD 541 Emoticon Conundrum
When on Mac, press option+command+t and select the happy face character. Unfortunately that don't solve the problem entirely, there's no wink character ;-)
Saturday, December 11, 2010
Run multiple instances of an app on Mac OS X
if [ -n "$*" ]; then open -n "$*" else osascript -e 'tell app "Finder" to display dialog "PLZ DRAG AN APP 2 MULTIPLE INSTANCE" with title "MULTIPLE INSTANCE LAUNCHER" buttons { "OH HAI" } ' fi
On Pass input, change it to as arguments. Press command+S, on Save as type: Multiple Instance, on Where, choose Applications, click Save. Quit Automator.
Click Applications, drag Multiple Instance to Dock, preferably near Applications folder.
Click Applications, drag an app(example: Calculator) to Multiple Instance, repeat to launch multiple instance of that app.
Watch it on YouTube
mysql anyone?
Steve Ballmer on Developers
You get my drift? Maybe this video can help.
This video came from this videos:
and
Credit goes to the respective YouTube uploaders.
Love/Hate Objective C
nostalgia
Tuesday, December 7, 2010
Fluent NHibernate: cannot convert lambda expression error
Cannot convert 'lambda expression' to non-delegate type Options
...just add System.Core in your References
Monday, December 6, 2010
Performing ORDER BY on DISTINCT on Linq to NHibernate(version 3)
var cat = session.Query<Product>().Select(x => x.Category).Distinct().OrderBy(s => s);
Convert it to:
var cat = session.Query<Product>().Select(x => x.Category).OrderBy(s => s).Distinct();
Alternatively you can do this, which is quite neat:
var cat = (from c in session.Query<Product>() orderby c.Category select c.Category).Distinct();
Note the last two codes produces this(which is performant, heaven thanks):
select distinct category from product order by category asc
Not this:
select distinct category from (select category from product order by category)
Be aware that if you are using Linq to SQL, the 3rd code construct cannot construct proper query (ORDER BY is omitted on generated query, silent error). Documented here: http://programminglinq.com/blogs/marcorusso/archive/2008/07/20/use-of-distinct-and-orderby-in-linq.aspx
He advises to move the orderby out of query to .Distinct() extension method.
var cat = (from c in session.Query<Product>() select c.Category).Distinct().OrderBy(s => s);
Which leads to attaching two extension methods on the query just to make Linq to SQL emit the correct SQL. Which IMHO, renders the whole point of making Linq as query-like as possible lame.
I prefer the Linq to NHibernate approach than Linq to SQL. Not because NHibernate is database-agnostic(but it certainly adds appeal), but for the reason that it correctly informs the programmer that it cannot do something by not performing silent errors; it fail fast.
Here's the error emitted when performing OrderBy on Distinct expression:
Unhandled Exception: System.NotSupportedException: Operation is not supported.
Friday, December 3, 2010
Unix transport error when unit testing NHibernate for Postgresql under Mono
Internal error RemotingException: Unix transport error.
...Change your Npgsql version to a Mono one, then that error won't happen.
That error will appear on unit testing if you are using MS .NET version of Npgsql (example: http://pgfoundry.org/frs/download.php/2868/Npgsql2.0.11-bin-ms.net4.0.zip) under Mono. When unit testing under Mono, you must use Mono version of Npgsql (example: http://pgfoundry.org/frs/download.php/2860/Npgsql2.0.11-bin-mono2.0.zip)
Weird problem, the error only appear when the code is run under Unit Testing(built-in in MonoDevelop). But when run independently, MS .NET version of Npgsql will run just fine under Mono. Anyway, to make matters simple, use Mono version of the component if you are building Mono stuff
Saturday, November 27, 2010
For Your Dreams To Become Real: Try Unreal
UDK is free of charge. Isn't that nice?
Since many game developers use it, why not give it a try? Download it now at udk.com.
Sources:
UDK.com
Joystiq.com
Friday, November 26, 2010
When Cars and Technology Collide: Gran Turismo 5 Launch Trailer
It's been ages since we've heard of the name Gran Turismo 5, a video game for the PlayStation 3. Having the tag line "The Real Driving Simulator", playing it gives you the feeling of driving the real thing as every car in the game is an accurate representation of the actual car, including the handling, the spins, the dents, the dusts, and scratches.
To give you an idea of what I'm talking about, here's a trailer:
Other features include course maker, online racing, photo mode, and car modification. And since it's on PlayStation 3, you can find it on our local stores here in the Philippines.
Source: [url=http://gran-turismo.com]Gran-Turismo.com[/url]
Wednesday, November 24, 2010
lol on android
Saturday, November 20, 2010
Boom!
Check out this video of Steve Jobs saying that word again and again.
And while I'm posting this, I hear boom sounds outside the house. What a coincidence. hehehe
Credit goes to the YouTube poster.
HR Dilemma
Fake-project-managers,wannabe-programmers etc. blah-blah-blah they’re called
HR Dilemma.
In the murky past (college-days) one of my first-machine-problems (programming-lessons) was to program the fibonacci number sequence, which was quite mind-boggling. For me personally tests kill me, whether it is an IQ test or a ‘programming-exam’ (you can imagine how my college experience must have been).
I’m not an expert, but i wouldn’t call myself a total newbie. I’ve learned a lot and I have to agree with Jett Atwood who said:
“I am disturbed and appalled that any so-called
programmer would apply for a job without being able to
write the simplest of programs “.
I do not patronize certification (like java certification, zend etc).
I prefer the real-stuff I think to solve the issue of prankster-applicants (con-artists) even those who are applying for top level positions should take practical
exams to spare the HR-Dilemma . =P padded resumes — they all suck!
To end this rants, here’s a quote from john kegel:
“A surprisingly large fraction of applicants, even those with masters’
degrees and PhDs in computer science, fail during interviews when asked to
carry out basic programming tasks”
There’s just too many con-artists in this planet. tsk tsk.
Work and Management Douche style
There’s absolutely nothing wrong with having a retarded co-worker, We need them and they need us,and we can’t have the best of both worlds theyre always & will always be in existent for the rest of our fucking lives.commensalism or parasitism ? I dont know . I have been working for about 4+ yrs now and these horrible people should die,you get the idea? When you start working somewhere for awhile you start to notice there are people that piss the hell out of you and what could go wrong?
Fucking hell…
Tell tale signs that you have a douchetarded co-worker
1. Backstabber
The backstabber had to bite someone once and be damned if he wasn’t hungry an hour later for talking bullshit.And the award for the best traitor goes to the Backstabber. (applause-emoticon-goes-here)
2. Storyteller
It appears that he always had a similar experience or story to tell.Stupid!
3. Leech AKA Mr-I-know-everything
All merit goes to the leech or you will die. Even If you work harder like all night long with buggy eyes
you get paid less because the leech gets it. capische ? The sad part is he always win because hes allied with the Backstabber.
The list is not complete and you haven’t seen the worst of worst co-worker yet,
trust me.
No actual a-hole employee was harmed in the making of this rantarded post Which is actually a real shame because let’s face it; They’re mostly all a bunch of asswipes with no hope for the future.
Which glory hole do you work at?
Note:
With Carbon Dating, you can figure out how old something is really accurately like how long have you been burnout with work. ROFL
Annoying Boss
One of the things I find most annoying beside littering, second-hand-smoke & programmer-wannabe
are the people known as “know-it-all-project-manager” .
My Top Four Most Annoying Project Managers
1.Mr.ColorCoding
->The fact that his resume is 5 pages long,he’s full of sh!t.
->He doesnt know the contrasting stuff between “.ini” and “.exe” file
->He always have a lifestory to tell from non-fiction to fiction blah-blah
->Syntax Highlighting are used by real-programmers
the term colorcoding is exclusive for Mr.ColorCoding.
*Syntax highlighting is a feature of some text editors that displays
text—especially source code—in different colors and fonts according to the category of terms.(excerpt from wiki)
2.Ms.Colspan
->She doesn’t know what a loop construct is(for and while)
3.Mr.Html
->He doesn’t know how to code. enough said.
4.Mr.Shrek
->He is a good programmer but then his managing style is equivalent to zero less than the planck length (Lol) therefore this guy is a total-douchebag .
->He smellslikeshit!Lol
->A very nasty and barbaric boss, tend to shouts at people.
5.Mr.Shout
->Talk shit lame-ass-wipe-boss
->He is the tarzan to luciano pavarroti , need I say more?
->very close to Mr.Colorcoding
The Leadership Test: Are You a Bad Boss?
By Jessica Groach
Learning & Life Columnist
A 2001 Gallup poll says the #1 reason people leave their jobs is bad
bosses.
Are you one of them?
Leadership Test
Test your leadership style by answering these questions as honestly as
possible:
1.. Have you ever criticized an employee in public?
2.. Do you ever take credit for employees’ work?
3.. Do you subconsciously reward your favorite employees, or punish your least favorites?
4.. Are you hesitant to relinquish projects to your employees?
5.. Do you constantly check their work for quality?
6.. Do you expect your employees to do what they’re asked, without question?
7.. Are your employees afraid of you?
8.. Do you communicate with your staff through e-mail?
9.. Do you avoid knowing your employees personally?
10.. Are you hesitant to ask for feedback from your staff?
If you’ve answered “yes” to any of these questions, we hate to break it to you, but you might be a bad boss.Become a Better Leader As Theodore Roosevelt once said of leadership, “The leader works in theopen, and the boss in covert. The leader leads, and the boss drives.” Your leadership style may need some work, but leadership isn’t born, it’s made. Today, many management programs and professional associations offer leadership courses that help managers become good leaders, and good coaches.
Leadership courses help managers to develop good communication skills, so that they can effectively communicate their vision, mission, and expectations to their staffs. Programs like these instruct participants in improving listening skills, resolving disciplinary and performance issues, accepting criticism, public speaking, acknowledging and rewarding good work, delegating tasks, and building successful teams.So step out of the driver’s seat and start leading. Your team just might follow you.
http://www.learningandlife.com/career-tips/the-leadership-test-are-you-
a-bad-boss.php
Programming
Programming
Ten Commandments for Stress Free Programming:
1) Thou shalt not worry about bugs – bugs in your software are actually special features.
2) Thou shalt not fix abort conditions – your user has a better chance of winning state lottery than getting the same abort again.
3) Thou shalt not handle errors – error handing was meant for error prone people, neither you or your users are error prone.
4) Thou shalt not restrict users – don’t do any editing, let the user input anything, anywhere, anytime. That is being very user friendly.
5) Thou shalt not optimize – your users are very thankful to get the information, they don’t worry about speed and efficiency.
6) Thou shalt not provide help – if your users can not figure out themselves how to use your software than they are too dumb to deserve the benefits of your software anyway.
7) Thou shalt not document – documentation only comes in handy for making future modifications. You made the software perfect the first time, it will never need modifications. Thou shalt not hurry – only the cute and the mighty should get the program by deadline.
9) Thou shalt not revise – your interpretation of specs was right, you know the users’ requirements better than them.
10) Thou shalt not share – if other programmers needed some of your code, they should have written it themselves.
Software Development Cycle:
1) Programmer produces code he believes is bug-free.
2) Product is tested, 20 bugs are found.
3) Programmer fixes 10 of the bugs and explains to the testing department that the other 10 aren’t really bugs.
4) Testing department finds that five of the fixes didn’t work and discovers 15 new bugs.
5) Repeat three times steps 3 and 4.
6) Due to marketing pressure and an extremely premature product announcement based on overly-optimistic programming schedule, the product is released.
7) Users find 137 new bugs. Original programmer, having cashed his royalty check, is nowhere to be found. Newly-assembled programming team fixes almost all of the 137 bugs, but introduce 456 new ones.
Original programmer sends underpaid testing department a postcard from Fiji. Entire testing department quits.
9) Company is bought in a hostile takeover by competitor using profits from their latest release, which had 783 bugs.
10) New CEO is brought in by board of directors. He hires a programmer to redo program from scratch.
11) Programmer produces code he believes is bug-free…
This post is an excerpt :D
porting software
OK, I have to admit I am not well experience with porting software applications from one language to another ,and to be honest inspite of my lack of jittery-skills I’m very much thrilled to see projects ported from one machine to another. (The impressive MONO port of .NET and stuff.)
Maybe it is nostalgic memories (college days) ,writing mini application of foxpro
programs and porting it to cobol and vice versa etc. =p
Porting applications is a big challenge for every software developer and to share my
indebted experience my most recent side project was porting a point of sale application
written in foxpro to php and mysql . I tell you , it is terrible & nice thing I have some friends to back me up LOL .
And for those developers who are very much new to this software-porting-arena
Here is my scratch-your-left-pinky-to-your-right-toe-kind-of-tips:
1.If you are porting a very large rdbms type of application learn design patterns
2.remember realistic timeline slash timeframe =p
3.create test cases
4.use versioning software for a team of 2 to 3 developers
5.do it once and do it well
6.productive-wise.use managed-programming-language
That’s it fellow geektards LOLROFL
Frigtards
With the coming of the Internet comes two breed of software programmers the real one and the fakesters.
Majority of this fakesters belongs to (sad to say) the Open source demography which is basically a breeding ground for an army of wannabe and con artists programmers most especially in the web development arena.
I decided to write a wake up call for those frigtard con artists and to help you determine quickly whether someone you’re talking to is actually a developer or not, read the following tell tale signs. lol
1. padded resumes.
claims to be proficient in different types of programming languages or after completing 3 weeks of training and obtaining a certification proclaimed himself to be a master of a new language. i've got something for you yes you conman! shame on you :p . I mean don’t bite more than you can chew.
2.script kiddies
3.can’t write a batch file/shell script on their primary OS , dont know what a batch file is.
4.attitude. have to feign interests and opinions, and then be smugly confident that your “choices” are superior to the mainstream’s AKA I-want-to-change-his-attitude-because-I’m-far-better-than-him.
5.the knowledge of the vocabulary of technical jargon is a big hollaballo lol
well that's all folks.
tech tips for your grandma
b. SUPERAntiSpyware
c. Malwarebytes Anti-Malware
d. CCleaner
e. CleanMyPC Registry Cleaner
b. DivX
c. XviD
a. MemTest
b. cpuz
c. Process Explorer
Hasta Luego!
VIRUS is actually an acronym for Vital Information Resources Under Siege
Welcome to Webdunnit!
First, let me introduce ourselves. My name's Bobo Bambano and I'm here with undextrois. We are tech enthusiasts. We love technology. We admire these man-made and computer-made inventions. We love to explore these stuff.
We'll be talking about the web (woosh!), the desktop (drrr!), Windows (mrr!), Linux (wooz!), Apple (boom!), and maybe throw in some iOS (mrrr!) or Android (bfft!). Hopefully you'll learn something from us. You'll also see some other people's words, with credit of course.
Whether you're a n0ob (newbie) or l33t (elite), we hope you'll have fun reading our thoughts. The Internet is a fun place after all.