The title of below webpage is "Null trailer Null"...where can i watch this movie :)
Wednesday, November 12, 2014
WashingtonPost.com - null trailer null
WashingtonPost.com website is written in Java. Back a couple of years they were an atrocious website, mainly because they had hired a bunch of java idiots who had over architected the whole thing, throwing all the latest java technology like JSF, Spring, Hibernate, etc...into the mix, making a very fine mess of everything. Every couple of days they would advertise for a new software developer, as some poor soul, ran away screaming. They seem to have gotten their crap together now. But, every so often we get stuff like below.
The title of below webpage is "Null trailer Null"...where can i watch this movie :)
The title of below webpage is "Null trailer Null"...where can i watch this movie :)
wtf
i found this at this url: http://www.codingforums.com/showthread.php?t=267682
what could be the problem :)
what could be the problem :)
With thanks to all codingforum members and volunteers...
I'm facing weird issues for a few days while im working with if condition.
Whenever i use something like
<? if ($x='1') { ...
this always returns $x to be 1, even though my database records say its not.
Hulu software developer job application
Hulu software developer job application
i was looking at Java jobs in LA on indeed.com and ran across Hulu's software developer position. So, I did ok on qualifications, CS degree, TDD, web services, etc. Also, ok on experience, Java, no objective-C, Python, no streaming video or Flash, but you know I could dream. So far. But then, I ran into this:
Since we're clearly into lists, here's a Top 5 for how you know you need to work at Hulu in no particular order (* they probably meant - how you need to think ! (nice, if a little Orwellian)):
You fall asleep thinking of ways to search through 100 billion sheep (sadly my last thoughts before going to sleep all involve ludicrous fantasies, involving women, mad money, absolute power, world domination...)
You recently had a nightmare that involved an unbalanced red-black binary tree (i kinda know what an unbalanced binary tree is, but a red-black one...)
You can compress better than H.264 (it's a video compression format, good for making torrents of Hollywood movies (jk, i'm into arthouse)...)
Your most recent open-source app was the 'Most Active' entry on SourceForge (SF and now there's github - sadly my projects always run into my arch enemies - beer, women, junk tv (storage wars !))
You rule at ping-pong, eating contests or Project Euler (exercise is a must, i love eating (PHO) and Euler was a mathematician)
If you're the kind of developer who obsesses over indentation (spaces or tabs), monitoring services, and jumps at the opportunity to take on new math challenges then Hulu may be the place for you. (i do like well formatted code, Euler was a mathematician....)
Dear Hulu,
Why do you have to be such dicks. Did you really have to give us this list? To utterly crush our hopes, just when we were getting ready to fire off our resume. To deny us the small satisfaction of saying, "hey i tried, i applied". A justification to spend the rest of the afternoon watching tv...contemplating your dwindling bank balance...the resultant panic of impending homelessness...causing you to call your Mom, after forgetting her birthday and ignoring countless calls...Did you REALLY have to drive us to this ???
I give up. Job postings like this make me realize, that I am just a mediocore developer. I do like writing code and am pretty good at it, but it's not my life. It's not the end all. Hire a bunch of us mediocore guys, pay your CEO a little less.
Ranjit
http://hire.jobvite.com/CompanyJobs/Careers.aspx?c=qxc9Vfwx&jvprefix=http%3a%2f%2fwww.hulu.com&jvresize=%2fjobs%2fresize_jobvite_frame&page=Job%20Description&j=oAaCWfw2
i was looking at Java jobs in LA on indeed.com and ran across Hulu's software developer position. So, I did ok on qualifications, CS degree, TDD, web services, etc. Also, ok on experience, Java, no objective-C, Python, no streaming video or Flash, but you know I could dream. So far. But then, I ran into this:
Since we're clearly into lists, here's a Top 5 for how you know you need to work at Hulu in no particular order (* they probably meant - how you need to think ! (nice, if a little Orwellian)):
You fall asleep thinking of ways to search through 100 billion sheep (sadly my last thoughts before going to sleep all involve ludicrous fantasies, involving women, mad money, absolute power, world domination...)
You recently had a nightmare that involved an unbalanced red-black binary tree (i kinda know what an unbalanced binary tree is, but a red-black one...)
You can compress better than H.264 (it's a video compression format, good for making torrents of Hollywood movies (jk, i'm into arthouse)...)
Your most recent open-source app was the 'Most Active' entry on SourceForge (SF and now there's github - sadly my projects always run into my arch enemies - beer, women, junk tv (storage wars !))
You rule at ping-pong, eating contests or Project Euler (exercise is a must, i love eating (PHO) and Euler was a mathematician)
If you're the kind of developer who obsesses over indentation (spaces or tabs), monitoring services, and jumps at the opportunity to take on new math challenges then Hulu may be the place for you. (i do like well formatted code, Euler was a mathematician....)
Dear Hulu,
Why do you have to be such dicks. Did you really have to give us this list? To utterly crush our hopes, just when we were getting ready to fire off our resume. To deny us the small satisfaction of saying, "hey i tried, i applied". A justification to spend the rest of the afternoon watching tv...contemplating your dwindling bank balance...the resultant panic of impending homelessness...causing you to call your Mom, after forgetting her birthday and ignoring countless calls...Did you REALLY have to drive us to this ???
I give up. Job postings like this make me realize, that I am just a mediocore developer. I do like writing code and am pretty good at it, but it's not my life. It's not the end all. Hire a bunch of us mediocore guys, pay your CEO a little less.
Ranjit
http://hire.jobvite.com/CompanyJobs/Careers.aspx?c=qxc9Vfwx&jvprefix=http%3a%2f%2fwww.hulu.com&jvresize=%2fjobs%2fresize_jobvite_frame&page=Job%20Description&j=oAaCWfw2
Java Code - This returns the first key in a HashMap given a value
Java Code - This returns the first key in a HashMap given a supplied value
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* general purpose utility methods
* @author ranjit sandhu
*/
public class Utils {
// gets first hashmap key from supplied value
public static String getKeyByValue(LinkedHashMap lhm, String value) {
String tt = "";
Iterator fat = lhm.entrySet().iterator();
while (fat.hasNext()) {
Map.Entry pairs = (Map.Entry)fat.next();
String key = pairs.getKey().toString();
String val = pairs.getValue().toString();
if (val.equals(value)) {
tt = key;
}
}
return tt;
} // end getKeyByValue
} // end Utils
Monday, August 4, 2014
Oracle Jobs - DBMS JOBS - broken fix re-run
Oracle Jobs - DBMS JOBS - broken fix re-run
i was working on a pl/sql application and apparently it had some jobs which were being run on some schedule. I should have just used SQL Developer's Scheduler folder tab to see what jobs were running...but i didn't think of it and ended up googling for some SQL which was:
-- sys level select * from dba_jobs -- sys level select * from dba_scheduler_jobs -- schema user level select * from user_scheduler_jobs -- schema user level select * from user_scheduler_job_run_details -- schema user level WORKED select * from user_jobs order by broken, job asc
if a job fails to successfully execute it will go into a broken state after 16 attempts, so all my jobs were broken and the scheduler was NO longer trying to re-run them. i wanted to reset that flag and execute them straight away. i wrote a loop in a stored procedure to do this.
FOR i IN (SELECT * FROM user_jobs WHERE broken = 'Y') loop num := i.job; -- i didn't want to restart some of my broken jobs if (num <> 232 and num <> 233 and num <> 241 and num <> 270) then -- true does the opposite dbms_job.broken(i.job, false); -- run the job one time, if it's broken throws an error dbms_job.run(i.job); end if; END LOOP;
Friday, July 18, 2014
javascript object hashmap associative array
javascript object hashmap associative array
i use javascript quite a bit and i program for work in Java, so I wanted to mash them both together and as a result was reading about Rhino, which allows javascript to call Java classes and methods. And I was looking through some sample code and the following blew my mind:
var f = new File(arguments[0]);
var o = {}
var line;
while ((line = f.readLine()) != null) {
// Use JavaScript objects' inherent nature as an associative array to provide uniqueness
o[line] = true;
}
for (i in o) {
print(i);
}
i didn't understand the code! after some investigation, i found that the base javascript object acts like a HashMap, a TreeSet and an associative array. check out the code below:
<script>
var tt = {hair:"black,cat,dog",eyes:"brown"};
console.log(tt);
tt["eyes"] = true;
tt[""] = true;
tt[null] = true;
console.log(tt);
console.log(tt[0]); // should print hair
console.log(tt[0][1]); // should print cat
</script>
it's output is:
Object { hair="black,cat,dog", eyes="brown"}
Object { hair="black,cat,dog", eyes=true, =true, null=true}
undefined
TypeError: tt[0] is undefined
the only drawback is that the last two don't work, you can't access it like an array, even though internally it's an array of arrays. anyways that explains how they were able to get unique lines, they were checking the values against the javascript objects keys (which have to be unique).
Subscribe to:
Posts (Atom)
