Hassan's profileDhicrypt's Live SpaceBlogListsGuestbookMore ![]() | Help |
|
|
December 02 Code Snipset: Retrieve an Image from HTML Source Hi friends, after a long time...again today I'm back to you guys with a simple code snippet, which I have written for a website. But I just thought to share this with you guys... I know its simple but a very useful code snippet when you want to retrieve an image from any HTML content. So lets begin, using System.Text; ///This is the main part of this snippet. ///At first I have setup a string called bodyX which will get the input text(HTML source) and it will change its case to simple for easier use and to avoid case problems. ///int getPositionY is used to find the starting position of the first 'src=' from the HTML content. We very well know that mainly in HTML codes, src is use to mention the path of Image. ///int getPosition is used to find the starting position of the extension of image. ///now we can easily get the starting position and ending position of the first image tag in html. And by removing characters and applying a simple formula we can extract the image from the content. ///Anyways dont worry about the code snippet. juz copy paste it and have a look on the code written under the Button click event. And also it would be useful if you review the codes I;v written in getHTMLImage function. protected virtual String getHTMLImage(string Body) { String bodyX = Body.ToLower(); int getPosition = -1; int getPositionY = -1; String Extension = ""; getPositionY = bodyX.IndexOf("src="); //----------------------------------------------------- //1st phaze String ImagePath = bodyX.Remove(0, getPositionY + 5); //2nd phaze if (getPosition == -1) { getPosition = ImagePath.IndexOf(".jpg" + '"'); Extension = ".jpg"; } if (getPosition == -1) { getPosition = ImagePath.IndexOf(".png" + '"'); Extension = ".png"; } if (getPosition == -1) { getPosition = ImagePath.IndexOf(".jpeg" + '"'); Extension = ".jpeg"; } if (getPosition == -1) { getPosition = ImagePath.IndexOf(".gif" + '"'); Extension = ".gif"; } if (getPosition == -1) { getPosition = ImagePath.IndexOf(".bmp" + '"'); Extension = ".bmp"; } try { ImagePath = ImagePath.Remove(getPosition, ImagePath.Length - getPosition); } catch { ImagePath = "no Image in the HTML Code"; Extension = ""; } return ImagePath + Extension; } private void button1_Click(object sender, EventArgs e) { label2.Text = getHTMLImage(lblhtml.text); } If youre' having any problem in coding, you can download the sample project I have written in C# (.net 2008-SP1) I hope you'll like this code snippet and I know It can be written much more flexible without writing all those extensions. But to save time and energy I did it in such a way that I can achieve my goal easily...hehe November 12 Windows Live Messenger 2009 Wave 3 (Built.14.0.5027.908)![]() Nowadays Microsoft deliver its free software's like Windows Live, .net framework etc, as Online-Installation software's. Microsoft Windows Live Messenger is one of the most important software which would be important for users after a fresh installation of Windows. And at the time Microsoft didn't provide any stand-alone version of WLM which could be downloaded by users and save in their Harddisk for future use. As a result the Internet limited users or the users who are having limited Bandwidth are unhappy about it. So I have posted the latest version of Messenger 2009 (built.14.0.5027.908) with all it's components. Now you can download it from my Skydrive freely. And Install the files one by one according to the file arrangement in the .rar file. October 19 Adobe CS4 is out now!
Important for Windows users: Download both .7zip[xGB] and .exe[1MB] File and then launch the .exe file October 09 Sidebar Gadgets: Windows Vista
October 07 Microsoft Visual Studio 2008: INNOVATION . DESIGN . POWER
Visual Studio 2008 provides advanced development tools, debugging features, database functionality, and innovative features for quickly creating tomorrow's cutting-edge applications across a variety of platforms. October 05 NERO 9: Simply Create, Rip, Burn, Copy, Share, Backup, Play, and EnjoySeptember 30 Activate your Kaspersky Internet Security Legally!
This activating method of Kaspersky Internet Security 2009 is 100% legal and It’s only a promotion offered by Computer Shopper’s.
UPDATE[11th March 09']: New keys added after 11th March, 2009. Download Now!
Info: To be a subscriber, leave your valid e-mail address on the comment box below. So that I will share my skydrive files with your e-mail address September 25 What’s the truth of MDP’s seven-cities illustrating flowerA spoke men of DRP ( Dhivehi Raiyyithunge Party [polical party of Maldives] ) said the Seven-cities illustrating flower of MDP is a Temple Flower which are used in Christianity. Well I partially agree about it. But in Maldives, these flowers are very common and mostly found near to Mosque and Graveyards. So we just can’t say its a flower against our Islamic Religion. In his speech he continuously told this is a Temple Flower. Well it is. But his researches didn’t prove that there are different names and uses of this flower depending on where they are found. I did some researches on this flower. Mostly people name this flower as Plumeria. Plumeria are in 7-8 species. But in here I’m talking about Plumeria alba or White Frangipani. The common name of Frangipani came from an Italian noble family on sixteen-century. In Mexico, they call this flower as “cacalloxochitl”, which means “crow flower”. They use this flower in medical purposes. In the world, different areas, different people name this tree and flower depending on their territory or location. For eg; "Kembang Kamboja" in Indonesia, "Temple Tree" or "Champa" in India, "Kalachuchi" in the Philippines, "Araliya" or "Pansal Mal" in Sri Lanka, "Champa" in Laos, "Lantom" or "Leelaawadee" in Thai, “Plumeria” in English, “Boalha Kin Kiri Maa” in Addu Language. So I think It is very clearly proved that in his speech he took this flower as a political weapon. I’m not going decide, but you will decide. I wrote this article to prove that we can’t say the White Frangipani is a symbol against our religion. A detailed profile of PLUMERIA ALBA: The tree itself is rather unusual in appearance; the 20-inch-long, coarse, deciduous leaves clustered only at the tips of the rough, blunt, sausage-like, thick, grey-green branches. Branches are upright and rather crowded on the trunk forming a vase or umbrella shape with age. They are rather soft and brittle and can break but are usually sturdy unless they are mechanically hit or disturbed. A milky sap is exuded from the branches when they are bruised or punctured. General info:
September 24 Windows Live Messenger 9.0 Wave 3![]() Microsoft has unveiled its latest Windows Live Messenger 2009 beta. This time they have improved its performance and the user interface. And one of the best feature is they have introduced a new service called Windows Live Call. Moreover now users can put animated GIF pictures on their dps. I think now you should experience it by your self. So why don't you download it from Windows Live With this new messenger, i have found a nice patch which is compatible this version of Messenger. This patch enable 7 features: 1· Polygamy 2· Remove Advertisement (in IM window) 3· Remove Nudge Delay 4· Remove Nudge Shake 5· Remove Featured Content 6· Accept more than 3 files (transfers) at a time 7· Disable Windows Live Spaces Contact Card Integration By the way, Microsoft has declared to release an improved version of Windows Live Hotmail on next week. In their deceleration they have mentioned that the speed of the new hotmail service would be increased upto 70% and an IM will be integrated. Next week is not so far, so why dont you just keep a focus on your inbox and compare it with gmail or yahoo? September 19 We are developing a new application [code name: dhiSMS] to manage dhiraagu WebSMSDhicrypt is proud to announce the successful working progress of its dhiSMS application. dhiSMS is a portable application which is dedicated to bring all possible features of managing Dhiraagu WebSMS Service (DWSMS) on your desktop. If you Google “dhisms”, you would be able to come across many software’s which can manage DWSMS on your desktop. All those software’s were great. But they consists some good and bad points. If you have experienced them, you might have noticed that some of them are large in file size and others are not working perfectly. After experiencing those software’s we decided to develop our own application which can directly connect to DWSMS and allow users to manage the service more easily and quick. For that reason we have done lots of code-works and developed a user friendly application which can assist its users more professionally. Our milestones of first phase were pretty cool and hard. We took three - four days to complete the infrastructure and another two days to complete the other features of the application. We have used many important classes of .net framework to develop this application. On the other hand we had to design our own controls like textboxes, context menus and forms to create a user friendly environment. Our software covers the below six important features:
All the features of dhiSMS are powered by our own ideas and code works. And it is written in c sharp (c#) language and you would need Microsoft .Net Framework 3 or late to run it. At the moment we are debugging the application and we hope to release it very soon! If you want to see how our application works, please have a look on the demo posted below:
© 2008 dhicrypt August 24 SATA/RAID HDD NOT FOUND ERROR DURING WINDOWS SETUP!When I tried to install windows XP, it was unable to find the hard disk installed in my pc and it shows a blue screen (shown below)
My Hard Disk detects in BIOS and also in the Computer Startup Screen. [Changing BIOS Settings]
You can change the SATA/RAID Mode to IDE by: Enter to BIOS(eg:AwardBIOS) > Integrated Peripherals > SATA Devices Configuration > SATA Mode > [RAID] and change to [IDE]
But if this idea is not suitable, goto 2nd Idea
[Load Drivers from a FloppyDisk / USB Drive]
- You can load SataRaid Drivers from a Floppy disk by Pressing F6 from keyboard While you are installing Windows XP it shows “Press F6 if you need to install a third party SCSI or RAID driver…” bottom of the screen.
If you don't have a Floppy Drive, goto 3rd Idea
[Burning a nLited Windows CD] For a long term solution of this problem I would suggest you to follow first Idea(Changing Bios Settings) or else burn a nLited Windows CD and use it to install Windows on your PC.
So here below I have posted a Video Tutorial which can help you to make a nLited Windows XP CD with SATA/RAID Support:
Click the above Link to Play
© 2008 dhicryp May 22 The World’s Thinnest Notebook - MacBook AirApple® unveiled their MacBook® Air on 15th January. This notebook is known as world's thinnest notebook.Air measures an unprecedented 0.16-inches at its thinnest point, while its maximum height of 0.76-inches is less than the thinnest point on competing notebooks. MacBook Air has a stunning 13.3-inch LED-backlit widescreen display, a full-size and backlit keyboard, a built-in iSight® video camera for video conferencing, and a spacious trackpad with multi-touch gesture support so users can pinch, rotate and swipe. MacBook Air is powered by a 1.6 GHz or 1.8 GHz Intel Core 2 Duo processor with 4MB L2 cache, and includes as standard features 2GB of memory, an 80GB 1.8-inch hard drive, and the latest 802.11n Wi-Fi technology and Bluetooth 2.1. ![]() MacBook Air has a vibrant 13.3-inch LED-backlit glossy widescreen display that is energy efficient, and its spacious trackpad offers multi-touch gesture support for pinch, rotate and swipe, making it more intuitive than ever to browse and rotate photos or zoom into web pages in Safari™. MacBook Air features a full-size keyboard design in a sleek and durable aluminum enclosure. MacBook Air delivers up to five hours of battery life for wireless productivity and includes AirPort Extreme® 802.11n Wi-Fi networking, which delivers up to five times the performance and twice the range of 802.11g*. MacBook Air is powered by Intel Core 2 Duo processors running at 1.6 GHz or 1.8 GHz, and includes as standard 2GB of memory and an 80GB 1.8-inch hard drive. An optional 64GB solid state drive contains no moving parts for added durability. The new MacBook Air embodies Apple’s continuing environmental progress with its aluminum enclosure, a material highly desired by recyclers; Apple’s first mercury-free LCD display with arsenic-free glass; and brominated flame retardant-free material for the majority of circuit boards as well as PVC-free internal cables. In addition, MacBook Air consumes the least amount of power of any Mac, and its retail box, made primarily from 100 percent post-consumer recycled material, is 56 percent smaller by volume than the previously smallest MacBook packaging. Configuration:
So is this worth to buy? May 16 Atlast Godaddy Supports ASP.net 3.5Godaddy is one of the cheapest web hosting provider around the world.
They provide Windows Hosting Plans(IIS) and LINUX Hosting Plans(APACHE)
affordable prices. GoDaddy.com hosting plans are ideal for most
individuals and small businesses with a 99.9% network uptime commitment
and 24/7 support. Checkout their Plans Now!
May 04 Cyber-crime on the rise in the Maldives says FBI![]() Cyber-crime using credit cards are on the rise in the Maldives according to the US Federal Bureau of Investigation. Two experts from FBI are assisting the Maldives police with cyber-crime projects. According to the agents, online credit card fraud is a difficult crime to track it's nearly impossible to stop it. However, they said that it is important to trying stop it.
Maldives police also said that they had noticed a rise in cyber crime in the country and that is the reason for the close cooperation with FBI. Police also said that they were drafting a Cyber Law bill to enable them to apprehend such criminals. In addition to that, police also said that criminals, including paedophiles are also taking advantage of the easy access to internet in the country.
Child abuses via chat and social network websites, child pornography, credit card fraud and identity theft, are common cyber crimes faced by internet users. Most developed countries now have mechanisms in place to deal with such criminals and many have been convicted.
Parents need to be vigilant and must not let their children surf the web freely. Taking such precautions and use of parental locking software goes a long way in tackling such crimes. Also, use of a reliable internet firewall is essential for safe and secure use of the internet. Windows XP SP3 still AWOL, but resides on Microsoft serversThough Windows XP SP3's official release has been delayed, it can be found on pirate sites and well as Microsoft's servers While Microsoft makes users wait for the official version of Windows XP SP3 (Service Pack 3), the update has been widely distributed on pirate sites and can still be found and downloaded from Microsoft's servers. Days before that, however, copies of the RTM build had leaked to the Internet and were easily available through Rapidshared search sites such as Warez-bb. Currently, there are several language-specific versions of Windows XP SP3 RTM showing in search results on that site. Some have been tagged as Build 5512, which Microsoft manager Chris Keroack confirmed earlier this week is the official designation for XP SP3 RTM. Wednesday, ZDNet blogger Adrian Kingsley-Hughes posted a collection of links to 12 XP SP3 installers, including those for the Chinese, English, French, German, Russian and Spanish versions of the operating system. Those links led to executables on Microsoft servers. Earlier in the week, Microsoft had cautioned against downloading such files. "It's possible that some third party websites are linking to the Windows XP SP3 software that we have published for MSDN and TechNet subscribers," a company spokeswoman said in an e-mail Wednesday. "Since we cannot confirm the source of every link, our recommendation is that customers wait until we've published Windows XP SP3 to Windows Update and the Download Center." Microsoft, however, has not pulled the standalone installers from its servers; as of today, the links were still live. Computerworld downloaded the English-language installer -- a 316MB file -- used it to install XP SP3, and confirmed that the result is Build 5512 of Service Pack 3. In response to a query, a Microsoft spokeswoman said the company had no new information to share about when it would add XP SP3 to Windows Update and post an official standalone installer to its download site. This article prove, all Windows XP SP3 versions in different torrent and rapidshared sites are not officially released versions. So I suggest all my fellow friends to wait for Microsoft to Publish official version on their Download Center. April 08 Western Digital's (WD) MY BOOK![]() ![]() WD has unveiled its My Book Studio Edition II high-performance dual-drive storage systems
Western Digital announced a new dual-drive external storage system, the My Book Studio Edition II, featuring a lower power consumption. This drive consumes approximately one-third less power than standard dual-drive storage systems and comes already formatted for Mac computers (btw, it is also possible to format it for PC with the provided software).
The My Book Studio Edition II has wide connection capabilities thanks to the four different interfaces included (FireWire 400/800, eSATA, USB 2.0) and allows to build both a RAID 0 and RAID 1 system.
My Book Studio Edition II dual-drive storage systems are available now at select retailers and WD’s online store. The manufacturer’s suggested retail price for My Book Studio Edition II with 1 TB is US$349.99. The MSRP for My Book Studio Edition II with 2TB is $599.99. Nokia readies iPhone response
Company's 'Tube' device would be touch-based and feature Java support Nokia remains at work on its answer to the Apple iPhone, codenamed "Tube," a company official said on Monday. Shown in a slide at the Evans Data Developer Relations Conference in Redwood City, Calif., Tube looks similar to the popular iPhone. The Nokia device showed graphical displays, such as a promotion for the movie Shrek the Third. Other capabilities will be featured, such as the ability to upload photos. "It's our first touch device," said Tom Libretto, vice president of Forum Nokia. Interfacing with the system is done via touch similar to the iPhone. He said the company has not published the planned date of shipment for Tube. Nokia believes it can compete with iPhone, and during his presentation, Libretto compared volume shipments of iPhone to Nokia's shipments of phones. Since the launch of iPhone in June, Apple has shipped 5 million to 6 million of the devices, paling in comparison to Nokia's device shipments, Libretto said. "We've done that [volume] since we've had dinner on Friday," he said. (Apple afterward said 4 million iPhones had shipped worldwide by January.) The Tube will support Java, something Apple has been reluctant to do with iPhone.
Google offers to host services for free on App Engine
Google's App Engine will compete with similar services such as Amazon's EC2 and Salesforce's AppExchange Google is offering to host enterprise Web applications on its own infrastructure with a new tool for developers, App Engine.
App Engine will compete with similar services such as Amazon's Elastic Compute Cloud (EC2) and Salesforce's AppExchange -- but it may be the cheapest, as Google's basic services will be free.
Google's goal is to make it easy to get started with a new Web application, and then make it easy to scale when that application reaches the point where it's receiving significant traffic and has millions of users, Google said in its new App Engine blog.
App Engine is based on technologies Google already uses. It is powered by Bigtable, a distributed storage system currently used by its Google Earth service, and by Google's own file system GFS.
The search giant is treading lightly, so far. The version launched on Monday is a preview release, and is by no means feature complete, according to Google.
Only 10,000 developers will be able to sign up initially, but that number will increase.
During the preview period, capacity will also be limited. Applications will for example be able to use 500MB of storage, and transmit up to 10GB of data per day. Google expects most applications will be able to serve around 5 million page views per month within those limits.
Google is keeping mum on how it will price the service, but applications operating within the limitations of the preview release will remain free, even when App Engine goes live.
App Engine will initially only support applications written in Python, but Google is looking to add support for other languages as well. February 22 A Focus on the Year 2006 Name Tags![]() Want to see the Nametags Templates I’ve done on the Year 2006? Since the year 2000, I’m working only on Software Developing and I’m not good at graphics so far. However, a niece of mine, few friends and ofcourse including my very first girl friend requested me to design nametags for them. So I thought to make a difference on their nametags and that’s why I left bored-rectangular style of designs and put some curves as well colorful layers to my nametags. We printed all those Nametags on Gloss Papers [Photo Quality]
and were really cute. I got good and bad comments about my designs. But the
fact is that I’m not a graphics designer and those tags are not perfect. So I have
attached few Nametags those I liked most with this content and you are allowed to
bring any changes to make them perfect. Coreldraw Graphics Suite X4![]() Hey Friends, have you heard about the new CorelDRAW X4? Though I don’t use Corel that much, happiest news for me is that now it is fully integrated on Windows Vista. They have added some cool gears into their main three new features: - Layout & Text Editing - Design Assets - Workflow New features include ability to create and edit tables interactively. About its interface, it looks awesome on Windows Vista, but lil classic on Windows XP. X4 support for the new formats, which are used in Microsoft Word 2007, Adobe Illustrator Creative Suite 3, Adobe Photoshop CS3, Adobe Acrobat, AutoCAD and even Corel Painter X. Cool isn't it? CorelDRAW Graphics Suite X4 can manage all your vector graphics with any place at anytime. So why don’t you try it now? Corel Corporation allows all users to download their product from their website itself: Download CorelX4 To activate it, you can download few [DLL’s]: Rapidshare: Download Patch(dlls) |
|
|