Skip to main content

Posts

Watch Youtube HD on PS3

Last few weeks i spent a lot of time searching on internet to watch Youtube HD videos on PS3, there were a few solutions available, but the following worked for me and is the simplest. 1. Open browser on ps3 2. Goto Ps3Youtube.com 3. There is a search box on top, enter your keywords (you may add word HD in your search criteria) 4. From the search list click on a video and play it, thats it !! I know there are some other instructions on website in green colored text but playing the video on same site worked for me. I hope this helps, searching through internet i found lot of people feeling this pain of unable to watch youtube HD videos and low quality that is provided by Youtube XL. Good luck !

View Drools Generated Code

When we execute rules, behind the scene java code is generated which is actually getting executed, to see this java code you need to set configuration path where you want java code generated by drools to be stored. PackageBuilderConfiguration configuration = new PackageBuilderConfiguration(); configuration.setDumpDir(new File("XYZ")); final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory .newKnowledgeBuilder(configuration); Set XYZ as a directory path where you would like drools to store generated code. e.g. XYZ = "c:/drools/codegen" When you run your program the java classes generated for the .drl files are stored at the path XYZ. This generated code is really helpful to understand the behavior in lot of situations.

Listen Hindi Internet Radio Channels on PS3

PS3 is the best gadget i have ever used and its true "It only do everything". Having used it to play games, watch netflix, youtube and see my collection of pictures and listen to songs. I was searching for a way to play radio on PS3 and specifically "Hindi Internet Radio Channels" After spending couple of days, finally I have it working in few easy steps: 1. Download PS3 Media server on you laptop or PC: http://ps3mediaserver.blogspot.com/ 2. Open WEB.conf file of PS3 and add following lines: audiostream.Web,Radio=Desi Radio - www.desi-radio.com,http://76.73.90.27:80/ audiostream.Web,Radio=Desi-Radio - www.desi-radio.com,http://76.73.126.218:80/ 3. Restart PS3 Media Server 4. In your PS3, you should see PS3 Media server, open following path: Web -> Radio You should see "Desi Radio" in list. 5. Click on Desi Radio and you have live hindi songs streaming on your Ps3. I am searching more hindi internet radio channels, will update this blog when i find more...

JSON Optimizing for Faster Rendering

All web applications have fast rendering as one of the primary goals, JSON is a preferred choice in most of AJAX based applications because it is lightweight data interchange format. Consider a scenario where you have to read data from database and render it on UI, typically the steps which will be followed are: a. Send request data to server using AJAX calls b. At server end invoke the Business layer c. Business layer calls the database layer d. Data returned from database layer is populated into business objects e. From business objects build JSON objects, send them back to client f. Client use Javascript libraries to render data on UI. If everything works fine for you, you can stop reading right now, because you are achieving the required goal in the best way. But in real world this might not be working for you because of performance issues at one or the other step mentioned above. Here are few performance tips, they might suite in some of the scenarios and might be th...

Drools - An overview

For Java based applications the most challenging part has always been the business logic maintenance, and pick any applications which you find complex and if we ask ourself how complex it would be moving forward, the answer will always be nX times. What do we do ? Drools comes for Rescue as a Rule Engine. Drools provides mechanism: a. To write business logic in simple english language b. Easy to maintain and very simple to extend c. Reusability of logic by defining keywords in a DSL file and using them in DSLR file. But be careful nothing comes free, everything takes cost in terms of memory and time space. Use Drools if you really have : a. Business logic which you think is getting cluttered with multiple if conditions because of variety of scenarios b. You will have growing demand of increase in the complexity c. The business logic changes would be frequent (1 - 2 times a year would also be frequent) d. Your server's have enough of memory as it is a memory hungar...

Give Me Some Sunshine Keyboard Notes

No doubt about the movie of this song that was one of the best movies but I liked this song and thought to play it, was able to work on some of the begining lines, here are few song notes. Sa Re Umar Hum Ga Ga Re Sa Re Mar mar ke jee liye Ga Ga Re Sa Re Loved playing this song, will work on chords next weekend.

Class Data Sharing

Class data sharing (CDS) a feature introduced in J2SE 5.0 reduces the startup time for Java programming language applications. When the JRE is installed on 32-bit platforms using the Sun provided installer, the installer loads a set of classes from the system jar file into a private internal representation, and dumps that representation to a file, called a "shared archive".Class data sharing is not supported in Microsoft Windows 95/98/ME. During subsequent JVM invocations, the shared archive is memory-mapped in, saving the cost of loading those classes and allowing much of the JVM's metadata for these classes to be shared among multiple JVM processes. The primary motivation for including CDS in the 5.0 release is the decrease in startup time it provides. CDS produces better results for smaller applications because it eliminates a fixed cost: that of loading certain core classes. The smaller the application relative to the number of core classes it uses, the larger the sav...