Tuesday, July 17, 2012

How to access Weblogic Server Datasource from jsp

Recently i was working on a project and I faced some security issues regarding the connection string. I was using the DriverManager.getConnection method>

Connection con=DriverManager.getConnection("jdbc:oracle:thin:tom/tom@l91c214gx:1521:orcl");
Later I searched and found a way to handle that. I accessed the Weblogic Server Datasource. Pulled the connection information from the datasource and made a connection to the database. :)


You can find the code below. Change the jdbc/wb_datasource to your datasource name. Always prefix JNDI Name with jdbc like jdbc/wb_datasource
eg: pool = (DataSource) env.lookup ("jdbc/xxxx");



<%@ page import="java.sql.*" %>
<%@ page import="java.util.Hashtable"%>
<%@ page import="javax.naming.*"%>
<%@ page import="javax.sql.DataSource"%>
<%@ page import="java.util.*"%>


<%try{

 Context env = null;
    DataSource pool = null;
    Hashtable ht = new Hashtable( );

    ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
    
    env = new InitialContext(ht);

    //Lookup this DataSouce at the top level of the WebLogic JNDI tree
    pool = (DataSource) env.lookup ("jdbc/wb_datasource"); 

 //get a java.sql.Connection from the pool
    Connection conn = pool.getConnection( );

 // change the sql_retrive string according to your need
 String sql_retrive = "select * from test" ;



 Statement st1=conn.createStatement();
 st1.execute(sql_retrive);

 ResultSet rs=st1.getResultSet();
 
 ResultSetMetaData rsm = rs.getMetaData( );
 
 int colCount =  rsm.getColumnCount( );

 %> 
 <table><tr>
 <%
  //print column names
        for (int i = 1; i <=colCount; ++i) { %>
            <th><%=rsm.getColumnName(i)%> </th>
 <%  } %>
           </tr>
          <% while( rs.next( )){ %>
                <tr>
    <%for (int i = 1;  i <=colCount; ++i) { %>
                <td>    <%= rs.getString(i) %> </td>
    <%} //for loop ended%>  
                </tr>
          <%} //while loop ended%>
 </table><% 
}
conn.close();
st1.close();
}
catch(Exception ex){

out.println(ex);

}
%>

(Read more inside ..)

Wednesday, June 27, 2012

Top 10 P2P File Sharing Softwares

A peer-to-peer (abbreviated to P2P) computer network is one in which each computer in the network can act as a client or server for the other computers in the network, allowing shared access to files and peripherals without the need for a central server. P2P networks can be set up in the home, a business or over the Internet.
  • eMule : eMule is one of the biggest and most reliable peer-to-peer file sharing clients around the world. Thanks to it's open source policy many developers are able to contribute to the project, making the network more efficient with each release. eMule is a filesharing client which is based on the eDonkey2000 network, but offers more features than the standard eDonkey client.
  • uTorrent : uTorrent is a powerful and efficient BitTorrent client for Windows. Most of the features present in other BitTorrent clients are present in uTorrent, including bandwidth prioritization, scheduling, RSS auto-downloading, and Mainline DHT. Additionally, uTorrent supports the protocol encryption joint specification and peer exchange. Unlike many torrent clients, it does not hog valuable system resources--typically using less than 6MB of memory, allowing you to use the computer as if it weren't there at all.
  • BitTorrent : BitTorrent's software client allows you to quickly download high-quality digital content such as video, music, and games. Available in over 20 languages, it leverages our community of over 70 million users to securely deliver files to your PC faster than anything else out there. Features include detailed graphs and stats on the health of digital media files provide you a safer, more controlled downloading experience, local peer discovery and automatic port mapping increase file transfer speed without the need to reconfigure routers or other hardware, and dynamic bandwidth management allows you to download content without disrupting Web browsing, e-mail, or other applications.
  • BitComet : BitComet is a fast and easy-to-use BitTorrent/HTTP/FTP download client. It is P2P file-sharing freeware and one of the most popular P2P protocols designed for high-speed distribution. BitComet supports simultaneous downloads, DHT networks (trackerless), a download queue, selected downloads in the Torrent package, fast-resume, disk caching, speed limits, auto port mapping, proxies, and IP filtering.
  • Vuze : Vuze is the most powerful bittorrent software application to Find, Download, and Play HD video content on the Web. With the latest release, you get powerful new search capabilities, along with the ability to play your HD videos on PC, Mac, iPhone, iPod, Apple TV, Xbox 360, PS3, PSP, and Tivo. Our award-winning P2P bittorrent technology enables users to quickly and easily download HD video with a single click.
  • MediaGet : MediaGet is a wonderful torrent-client software for searching and downloading media files which will be useful both for greenhorns and for experienced users. It uses open sources for search and helps you to download the files. You don't need to know how torrent works anymore, MediaGet will do everything for you. MediaGet also has integrated media player, which allows you to watch movies and listen to music online.
  • FrostWire : FrostWire is a free, open source BitTorrent client, first released as a fork of LimeWire. Gnutella support was dropped entirely, and now FrostWire only uses the BitTorrent network. You can now use FrostWire to send large files or entire folders to Colleagues, Friends and family.
  • Movie Torrent : The program's interface is basic, with buttons and drop-down menus at the top that allow access to the program's features. Things aren't particularly intuitive, and users who are new to torrent downloading will likely be confused. In fact, although the program's Web site states that users can search for torrents, we couldn't locate the search feature, leaving us on our own when it comes to finding torrents to download. Although the program has a Help menu, there's no actual Help file either within the program or online, which we found doubly frustrating given the program's unintuitive nature. Once we went to another Web site in search of torrents and found one we wanted to download, the program worked well enough, quickly opening the files and beginning the download. The program also makes it easy for users to turn existing files into torrents for sharing. The program is just fine for users who have used other torrent clients and are familiar with their features, but brand-new torrent users will likely find that Movie Torrent offers too little guidance.
  • Ares Galaxy : Ares is a peer to peer file sharing program that enables users to share any digital file including images, audio, video, software, documents. You may now easily publish your files through the Ares Network.As a member of the Ares network, you can also search and download just about any digital media file. With Ares you can also join or host chat rooms and meet new friends. Softgap is an international software company engaged in the business of providing cutting edge peer to peer filesharing software. Features include: Advanced search for all types of media files (Audio, Video, Games, Software, Photos). Very fast downloads from multiple users simultaneously. Automatic resume feature that assures the completion of all your requested downloads. A Media Player with play lists and full-screen mode. Ability to preview Audio and Video files while their download is in progress. Enhanced Library Manager ideally designed for organizing all your PC?s media files. Advanced media filter that prevents access to offensive files and viruses. Ability to create your chat room and chat with your friends while downloading. The most friendly and intuitive user interface. Bandwidth and queue control.
  • BitLord : BitLord is a p2p file-sharing program fully compatible with torrent files, which is one of the most popular p2p protocol designed for high-speed distribution of 100MB or GB-sized files. BitLord supports simultaneous downloads, download queue, selected downloads in torrent package, fast-resume, chatting, disk cache, speed limits, port mapping, proxy, and IP-filter.
(Read more inside ..)

Monday, May 14, 2012

Lytro - Capture Living Pictures


Lytro lets you take pictures like never before. Unlike a conventional camera that captures a single plane of light, the Lytro camera captures the entire light field, which is all the light traveling in every direction in every point in space.Capture living pictures with the press of a single button. By instantly capturing complete light field data, the Lytro camera gives you capabilities you've never had in a regular camera. Since you'll capture the color, intensity, and direction of all the light, you can experience the first major light field capability - focusing after the fact. Focus and re-focus, anywhere in the picture. You can refocus your pictures at anytime. And focusing after the fact, means no auto-focus motor. No auto-focus motor means no shutter delay. So, capture the moment you meant to capture not the one a shutter-delayed camera captured for you.
The Lytro camera is small, light, and stunning. A great conversation piece. Which it should be, because it's not every day you can take pictures that make history.

Features:

Form follows function.
The Lytro Light Field Camera boasts an 8X optical zoom lens with a constant f/2 aperture, capturing maximum light across the entire zoom range.

Intelligent design.
Extruded anodized aluminum structural skin. Center of gravity shutter button. Intuitive multi-touch screen. And less than eight ounces. What does it all mean? A meticulously designed camera that's lightweight yet solid, built for stability, and easy to use.

Speed, indeed.
Light field technology translates to faster snaps. Without an auto-focus motor, the Lytro's instant shutter means you don't lose time focusing. Plus, with instant power on, you can capture the perfect moment – not the moment after.


Elegant omissions.
What's missing? Nothing you'll miss. No auto-focus, no shutter lag, no unnecessary modes, dials, or settings. And no flash, because Lytro can handle many low light settings. So, no obstacles to the perfect shot.

Specification:


Price $499 $399 $399
Color Red Hot Graphite Electric Blue
Storage 750 Pictures 350 Pictures 350 Pictures
Model 16GB Light Field Camera 8GB Light Field Camera 8GB Light Field Camera
Storage Type Internal flash drive.
Technology Lytro Light Field Sensor and Lytro Light Field Engine 1.0.
Lens 8x optical zoom; Constant f/2 lens.
Controls Power button: Shutter button; Zoom slider; Touchscreen.
Display 1.52 in | 38.55mm back-lit LCD display with glass touchscreen.
Exposure Tap on touchscreen to set exposure.
Battery Long-life Li-Ion internal battery.
File Output Light field picture file (.lfp).
Light Field Resolution 11 Megarays: the number of light rays captured by the light field sensor.
Software Includes a free desktop application for importing, processing and interacting with living pictures from the camera. It is built for Mac OS and requires Mac OS 10.6.6 or higher. A Windows application is in development.
Picture Output Produces HD-quality interactive, living pictures.
Picture Storage Free storage for living pictures on Lytro.com, 
Picture Viewing View and interact with living pictures on the Lytro camera as well as any internet-connected computer, smartphone or tablet supported.
Light Field Engine Version 1.0. This is the software that processes light fields to produce interactive pictures. Keep watching this space!
Shell Ultra-light anodized aluminum structural skin.
Grip Silicone Rubber.
E-waste RoHS certified.
Weight 7.55 oz | 214 g
Dimensions 1.61 in x 1.61 in x 4.41 in | 41 mm x 41 mm x 112 mm
Included Lytro Light Field Camera; Lens cap; Cleaner Cloth; Wrist Strap; 3.28 ft | 1 m Micro-USB cable for data transfer and charging.
Optional Accessories Fast charger; Replacement lens cap. (Separate purchase required)


Gallery:


via Lytro.com
(Read more inside ..)

Wednesday, October 26, 2011

Nokia Lumia 710 Windows Phone - Specification


The purposely built, no-nonsense Nokia Lumia 710 can be personalized with exchangeable back covers and thousands of apps to bring the Lumia experience to more people around the world. The Nokia Lumia 710 is designed for instant social & image sharing, and the best browsing experience with IE9. It is available in black and white with black, white, cyan, fuchsia and yellow back covers. With the same 1.4 GHz processor, hardware acceleration and graphics processor as the Nokia Lumia 800, the Nokia Lumia 710 delivers high performance at an affordable price.

Nokia’s second Windows Phone 7 device is running on the latest Mango 7.5 build that comes with Internet Explorer 9, photo editing tools,multitasking, new Xbox live, deep Facebook, Twitter, and LinkedIn integration, Contacts Groups with Live Tile support, and many others.


Personalize it to suit you with colors and thousands of applications
  • Change covers to suit your mood - available in black and white with covers in five different colors
  • Personalize your start screen the way you want it
  • Group people based on how they fit into your life and pin individuals to the start screen for group conversations and photo sharing
Designed for instant social experience and image sharing
  • Keep in sync with Facebook, Twitter and LinkedIn
  • Chat and SMS messages in one conversation
  • Shoot, share and see photos easily
Best browsing experience with IE9
  • Browse with the fast and familiar Internet Explorer 9
  • Pin individual web pages to start menu
  • Instant search from Bing as you type
  • Switch smoothly between tasks
Additional features and Services
  • Nokia Drive with turn by turn voice navigation available for more than 100 countries. Nokia Maps available from Marketplace at sales start
  • Nokia Music and Mix Radio: Enjoy music from the world’s most locally relevant catalog (14 million tracks). 100 great radio channels with something for everyone. Nokia
  • Music Store available in 20 countries and Mix Radio in 12 countries.
  • Contacts transfer help users migrate phonebook contacts from other devices and platforms
  • App Highlights promotes locally relevant apps and content
  • XBOX Live Hub offers cool games, capability to see friends’ presence and leaderboards, 3D Avatar control and creation
  • Outlook Mobile for corporate email and private email support
Nokia Standard Sales package includes
  • Nokia Lumia 800 handset
  • Nokia Fast USB Charger AC-16
  • Nokia Charging and Data Cable CA-185CD
  • Nokia Stereo Headset WH-902
  • Soft cover, color match to phone
  • Quick Guide, User Guide and Product information leaflet
Nokia Original Accessories
  • Nokia Purity Stereo Headset by Monster (in-ear), Nokia Purity HD Stereo Headset by Monster (on-ear)
  • Colourful and exciting portfolio of Bluetooth headsets, wireless speakers, car holder, charger, protective pouches, soft covers and functional cases
Colors
  • Black, Cyan, Magenta
Technical Profile
  • Networks: WCDMA 850/900/1900/2100, GSM/EDGE 850/900/1800/1900
  • Speed: HSDPA cat 10: 14.4 Mbps, HSUPA cat 6: 5.76 Mbps
  • Display: 3.7” WVGA (800x480) AMOLED capacitive touch ClearBlack display with pinch zoom, 2.5D curved glass seamlessly integrated to unibody
  • OS: Windows Phone Release - Mango
  • Memory: 16GB internal user memory, 512MB program memory
  • Camera: 8Mpix auto-focus Carl Zeiss, LED flash, Video capturing MPEG-4 720p @ 30 fps
  • Size/Weight: 116.5 mm x 61.2 mm x 12.1 mm (LxWxT) / 76.08 cc / 142 g
  • Connectivity: WLAN 802.11 b/g/n, Bluetooth 2.1, A-GPS, micro-USB connector and charging, 3.5mm AHJ connector, Accelerometer, Proximity, Magnetometer, ALS
  • Processor: 1.4 Ghz Single Core MSM8255 (WCDMA)
  • Audio: MP3 player, Audio jack: 3.5mm, Supported codecs: mp3, AAC, AAC+, eAAC+, m42, m4b, wma, EVRC, QCELP
  • Battery: 1450 mAh
Operating times
  • Talk time: (GSM/WCDMA) up to 13 h/9.5h
  • Standby time: (GSM/WCDMA) up to 265h/up to 335 h
  • Music playback: up to 55 hours
Nokia Lumia 710 Price in India : Around Rs.18,000 . Coming in December 2011 .
(Read more inside ..)

Nokia Lumia 800 Windows Phone - Specification


The stunningly social Nokia Lumia 800 features head-turning design, vivid colors (cyan, magenta and black) and the best social and Internet performance, with one-touch social network access, easy grouping of contacts, integrated communication threads and Internet Explorer 9. It features a 3.7 inch AMOLED ClearBlack curved display blending seamlessly into the reduced body design, and a 1.4 GHz processor with hardware acceleration and a graphics processor. The Nokia Lumia 800 contains an instant-share camera experience based on leading Carl Zeiss optics, HD video playback, 16GB of internal user memory and 25GB of free SkyDrive storage for storing images and music.
The Nokia Lumia 800 was revealed to the attendants of the Nokia World 2011 event, and, just like everyone predicted, it will be the flagship of the Lumia line-up (“Lumia” means “light,” and represents the dawns of a new Nokia start).Nokia announced that the flagship of the Lumia line-up will hit the market in November 2011, at a price of 420 EUR (about 580 USD, if you are reading this from US), taxes not included.







Head-turning design
  • Smooth, one piece body
  • Screen that brings content to the surface
  • Vivid colors that stand out from the crowd
Best social experience – instant social and image sharing
  • Instant combined Facebook, Twitter and LinkedIn feeds, chat and SMS messages in one conversation
  • From pocket to photo to Facebook in seconds
Best browsing experience with IE9
  • New Internet Explorer 9 just like on your computer
  • Buttery smooth experience, lightning fast performance, broad support of Internet standards for HTML5 applications
Additional features and Services
  • Nokia Drive with turn by turn voice navigation available for more than 100 countries. Nokia Maps available from Marketplace at sales start
  • Nokia Music and Mix Radio: Enjoy music from the world’s most locally relevant catalog (14 million tracks). 100 great radio channels with something for everyone. Nokia Music Store available in 20 countries and Mix Radio in 12 countries.
  • Contacts transfer help users migrate phonebook contacts from other devices and platforms
  • App Highlights promotes locally relevant apps and content
  • Excellent camera. Superior shooting with Carl Zeiss optics and HD video
  • XBOX Live Hub offers cool games, capability to see friends’ presence and leaderboards, 3D Avatar control and creation
  • Outlook Mobile for corporate email and private email support
Technical Profile
  • Networks: WCDMA 850/900/1900/2100, GSM/EDGE 850/900/1800/1900
  • Speed: HSDPA cat 10: 14.4 Mbps, HSUPA cat 6: 5.76 Mbps
  • Display: 3.7” WVGA (800x480) AMOLED capacitive touch ClearBlack display with pinch zoom, 2.5D curved glass seamlessly integrated to unibody
  • OS: Windows Phone Release - Mango
  • Memory: 16GB internal user memory, 512MB program memory
  • Camera: 8Mpix auto-focus Carl Zeiss, LED flash, Video capturing MPEG-4 720p @ 30 fps
  • Size/Weight: 116.5 mm x 61.2 mm x 12.1 mm (LxWxT) / 76.08 cc / 142 g
  • Connectivity: WLAN 802.11 b/g/n, Bluetooth 2.1, A-GPS, micro-USB connector and charging, 3.5mm AHJ connector, Accelerometer, Proximity, Magnetometer, ALS
  • Processor: 1.4 Ghz Single Core MSM8255 (WCDMA)
  • Audio: MP3 player, Audio jack: 3.5mm, Supported codecs: mp3, AAC, AAC+, eAAC+, m42, m4b, wma, EVRC, QCELP
  • Battery: 1450 mAh
Operating times
  • Talk time: (GSM/WCDMA) up to 13 h/9.5h
  • Standby time: (GSM/WCDMA) up to 265h/up to 335 h
  • Music playback: up to 55 hours
Nokia 800 Lumia Price in India will be Rs. 29,000 approx.
(Read more inside ..)

Saturday, September 24, 2011

How to activate the new facebook look 'Timeline' now | f8

Facebook F8 conference held on yesterday and introduce new design to facebook which is very attractive and useful. But now this feature is only available for developers only not for all. So we have to activate new design manually. Facebook’s new look is appearance of this new course has been developed to attract everyone. If you like to bring facebook new design please follow the steps which is given below.


Steps
  • Visit the link https://developers.facebook.com/apps

  •  

  •  Next click the Create new app button which is given top right side corner.

  •  

  •  Next window will open it showing  App Display Name and  App namespace you fill this two column anything you want. But the namespace column your words will be available.

  •  

  • Next window will open to ask Security code fill correctly and click submit button and you will go to next level and click Open Graph link see below image to better understanding.

  •  
  • Next window will open and fill that columns for your words simply and click Get Started

  •  

  • Next click the Save changes and Next button

  •  

  • Finally your app is ready and your window will be like below the image

  •  

  • Next you go to your profile page and timeline message waiting for you


  • Finally your facebook New Design changed



Video

(Read more inside ..)

Thursday, May 19, 2011

U2opia Launches Fonetwish Service For Facebook Access on Airtel in India



U2opia Mobile, a Singapore-based mobile solutions provider has launched Fonetwish, a platform for accessing Facebook via USSD (Unstructured Supplementary Service Data) in partnership with telecom provider Airtel. The service has been developed jointly with Facebook and it’s the first of its kind.
USSD (Unstructured Supplementary Service Data) is a menu-based system that allows interfacing with content based services. Unlike a normal browser, the USSD menu acts as browser to pull content to the phone, hence it does so without using the internet or activating GPRS capabilities.

Airtel’s 150 million Indian customers will be able to update their Facebook status for free, but to use other features like viewing, commenting, posting on friends walls, confirming friend requests, ‘Like’ news feeds, view notifications and finding and adding friends, they will have to pay a minimal charge of Re 1 per day.

The users will have to dial *325# (“*fbk#” for non-qwerty mobile handsets) from their handsets which will open a menu that will prompt the user to enter their Facebook username and password and after the one-time registration, a text menu is displayed for browsing through content.



“Although smartphones are available in India, the number of users are not very high. Fonetwish will allow everyone with a mobile phone to access Facebook on their mobiles,” said Sumesh Menon, Co-Founder and CEO, U2opia Mobile, speaking to Techcircle.in. “Currently the USSD based service is only available on Airtel but talks are ongoing with other telecom operators for similar services. We are also looking at expanding our services to other countries like Indonesia and Philippines.”
(Read more inside ..)