<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2710481326514242732</id><updated>2024-08-31T09:34:21.826-07:00</updated><category term="Asp.net"/><category term="PHP"/><category term="Perl-Cgi"/><category term="Networking"/><category term="Seminar Topic Computer Science"/><category term="C/C++"/><category term=".Net"/><category term="Linux"/><category term="White paper"/><category term="Windows"/><title type='text'>Mitul Jariwala</title><subtitle type='html'>The Greatest virtue of man is perhaps curiosity</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mituljariwala.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-5720127726304251760</id><published>2009-02-25T07:35:00.000-08:00</published><updated>2009-02-25T07:40:13.812-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>New Web based  Camera D-Link DCW-1000W</title><content type='html'>&lt;div class=&quot;normalfont&quot;&gt;                                 The DCW-1000W is a web camera with 802.1b and a streaming video server built in.                                 It is a stand-alone device that does not require a computer for normal operations.                                 Once plugged into your network, it becomes a web accessible &#39;streaming video&#39; server.                                 Just plug the devices ip address into a web browser, type in an optional userid                                 and password, and you can access the video stream!&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 Although $400-$500 is expensive for a web camera, consider the fact that you do                                 not need a computer or physical network connection for this camera to operate. Once                                 configured, all you need to do is apply power! This makes both permanent and temporary                                 installation a snap.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 A friend mentioned that this would be perfect for an office lobby. Just mount the                                 camera and suddenly everyone on your corporate network can see who is waiting in                                 the lobby from their web browser!&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 With a weather-proof housing, this camera could be placed anywhere on your property                                 that has electricity. This would save you a bundle in cabling costs for any kind                                 of property monitoring project. For you automation buffs, the camera has two 5v                                 output triggers and one input trigger out the back that can be enabled and disabled                                 from the web browser. Think about hooking up a lighting system or alarm and you                                 can start to see this camera&#39;s potential.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 &lt;img style=&quot;left: 47px; top: 817px;&quot; src=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-diag.gif&quot; width=&quot;400&quot; height=&quot;238&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;largefont&quot;&gt;                                 &lt;strong&gt;Getting Technical &lt;/strong&gt;                             &lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;strong&gt;Ports:&lt;/strong&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                      two omni directional antennas&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                      One 10/100mbps RJ-45 Ethernet connector&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                      Two 5v outputs triggers&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                      One 5v input trigger&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;em&gt;**Note, antennas can be replaced with standard SMA connector antennas to increase                                     the range of the camera! &lt;/em&gt;                             &lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;largefont&quot;&gt;                                 Administration&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;strong&gt;Configuration&lt;/strong&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 The camera defaults to an IP address of 192.168.0.12. The easiest way to configure                                 the camera is to plug it directly into a computer with Ethernet, change the computers                                 IP address to something like 192.168.0.13 and the use a web browser to navigate                                 to the camera. Once there, you can configure the camera&#39;s 802.11b adapter, change                                 the ip address and a host of other things. I was impressed to see that the camera                                 supported so many configuration options like 802.11b ad-hoc mode (for use without                                 an access point). Take a look at this configuration screen.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 &lt;a href=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-4.gif&quot;&gt;                                     &lt;img src=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-4s.gif&quot; border=&quot;0&quot; width=&quot;250&quot; height=&quot;141&quot; /&gt;&lt;/a&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 (click this image)&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;strong&gt;Image and Streaming &lt;/strong&gt;                             &lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 Streaming image resolution is selectable between three modes maxing out at 640X480.                                 If you plan to stream this out to the internet, keep the image smaller to improve                                 frame rate. The compression rate can also be adjusted inversely affecting image                                 quality and bandwidth. This of course translates into maximum frame rate.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 &lt;a href=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-3.gif&quot;&gt;                                     &lt;img src=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-3s.gif&quot; border=&quot;0&quot; width=&quot;250&quot; height=&quot;137&quot; /&gt;&lt;/a&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 (click this image)&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 The image can also be adjusted by manually setting the brightness, contrast and                                 hue control. I found that the camera did a pretty god job keeping the image quality                                 ok except under bright sunlight conditions where image burn occurred - areas of                                 complete whiteness with no definition. If using this camera outdoors in bright conditions,                                 you might have to tweak the controls a bit.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;strong&gt;Security &lt;/strong&gt;                             &lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 Multiple user id&#39;s can be created giving people access to just the streaming image                                 or the administration. Would also like to see the ability to disable access to the                                 external triggers. With the current security capabilities, if someone has access                                 to the images, they have access to the triggers.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;strong&gt;Triggers &lt;/strong&gt;                             &lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 Two 5v output triggers are provided on the back of the device. These triggers could                                 be used to turn on and off other devices like lights, alarms, or even doors or door                                 locks. A 5v input trigger is also provided. The 5v input trigger can be set up to                                 send a series of images using standard email. It can also be used to trigger either                                 of the output signals for a configurable number of seconds. The most obvious application                                 would be an external motion sensor that could turn on a light, then send a series                                 of images to your email address. Remember, no computer is needed for these capabilities                                 - all the software is built into the camera!&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 &lt;a href=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-2.gif&quot;&gt;                                     &lt;img src=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-2s.gif&quot; border=&quot;0&quot; width=&quot;300&quot; height=&quot;140&quot; /&gt;&lt;/a&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 (click this image)&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;strong&gt;Time Sync &lt;/strong&gt;                             &lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 The last feature of the camera just adds to the completeness of the camera. The                                 camera can be set up to synchronize it&#39;s internal clock to an external source using                                 either the NTP or Time standard protocols. This may seem trivial, but when using                                 it as a security camera, proper time becomes very important for evidence!&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/web/review/images/dlink-dcw-1.gif&quot; width=&quot;468&quot; height=&quot;207&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;largefont&quot;&gt;                                 Wrap Up&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 The DCW-1000W is an extremely flexible &#39;single package&#39; web camera perfect for security                                 applications. Its wireless capabilities bring the cost of installation down to an                                 absolute minimum. This is a great device for both an office and home automation                                 environment.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 I would love to see a web camera with a better quality image, but honestly there                                 is a functional limit to the amount of bandwidth a camera can suck up. With that                                 in mind, the only deficiency I found in this feature rich camera was finer tuning                                 over the security. Hopefully this will be fixed in a firmware upgrade.&lt;/div&gt;                             &lt;div class=&quot;normalfont&quot;&gt;                                 &lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;                                                              Another nice thing to have would be an FTP client capable of uploading images on                                 a timed basis. This would make it attractive to many existing web cam operators                                 that often have an entire computer dedicated to this job. Again, this is something                                 that could be added to the camera with a firmware upgrad</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/new-web-based-camera-d-link-dcw-1000w.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5720127726304251760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5720127726304251760'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/new-web-based-camera-d-link-dcw-1000w.html' title='New Web based  Camera D-Link DCW-1000W'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-6486440359926565691</id><published>2009-02-25T07:21:00.000-08:00</published><updated>2009-02-25T07:25:53.581-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>Improve  Speed of Cable Modem With connection Setting</title><content type='html'>&lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;  &lt;table align=&quot;left&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt; &lt;script&gt;window.google_render_ad();&lt;/script&gt;&lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 600px; position: relative; visibility: visible; width: 160px;&quot;&gt;&lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 600px; position: relative; visibility: visible; width: 160px;&quot;&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;       &lt;div class=&quot;normalfont&quot;&gt;At NetWorld+Interop 2001 I        found an interesting piece of software called &lt;a href=&quot;http://www.midcore.com/features/glance.htm&quot;&gt;MidPoint&lt;/a&gt; from &lt;a href=&quot;http://www.midcore.com/&quot;&gt;MidCore&lt;/a&gt;                     Software. Midpoint has a        feature called ‘connection teaming’. Connection teaming aggregates        multiple connections to the Internet for increased bandwidth. Along with        connection teaming, the software splits large files being downloaded into        multiple smaller parts and downloads each part at the same time along each        connection. Wow! &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;               I came up with this idea for cable modem users.        Cable modem companies sometimes allow you to purchase additional IP address’ for a monthly fee.        @Home does this for $5 per IP address. @Home caps        your bandwidth per account, not IP address - but at the very least, it might        increase the efficiency of your conenction and allow your throughput to closer reach        your capped maximum speed.... So I set off to test my hypothesis.&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt; &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;Planning the network &lt;/strong&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;Because I would be testing the aggregation of 2        Internet IP address, I needed a computer that could handle 3 network cards        – three for the WAN and one for the LAN. A stripped down Pentium 233 fit        the bill nicely. &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/web/howto/images/midpoint-diag.gif&quot; width=&quot;435&quot; height=&quot;122&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/web/howto/images/MidPoint-NIC.jpg&quot; width=&quot;300&quot; height=&quot;150&quot; /&gt;                                                                                                                                           &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;                                                                                                                                           &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;Problems with the        testing &lt;/strong&gt;                                                                                                                                           &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;One of the biggest problems in        testing this setup is finding a way to push the speed of the cable modem.        To do this, I had to find some servers willing to let suck up a whole lot        of bandwidth without running into something that would throttle my        connection. This is VERY HARD to find. My best performance came from some        &lt;a href=&quot;http://www.tucows.com/&quot;&gt;TUCOWS.COM&lt;/a&gt;                                                                                                     mirrors. Since TUCOWS is mirrored all over the        country, I was able to locate some servers willing to let me suck up some        bandwidth. &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;Measuring Bandwidth &lt;/strong&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;The next thing I needed was a        measurement tool. IE’s meter on the download is good for measuring speed        because it averages things over a long period of time and does not allow        you to ‘see’ what is going on. &lt;a href=&quot;http://www.homenethelp.com/web/review/software-MyVitalAgent.asp&quot;&gt;MyVitalAgent &lt;/a&gt;                                                              was a good solution because I could see how solid        the connection was. If there were major connection pauses I could see them        visually – plus the software is free! &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;&lt;strong&gt;&lt;img src=&quot;http://www.homenethelp.com/web/howto/images/MidPoint-1NIC.gif&quot; align=&quot;right&quot; width=&quot;248&quot; height=&quot;270&quot; /&gt;&lt;/strong&gt;  &lt;/strong&gt;Bandwidth measurement on the Internet is not an        exact science. It is impossible to recreate the exact conditions across a        public network. Because of this, I chose to measure bandwidth at its peak        if sustained for 10 seconds or more. To do this, I chose files of no less        than 5Mb to download. &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;How Fast? &lt;/strong&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;For Reference, I tried pushed        each if two IP address’ individually first. IP address A gave me about        840kbps sustainable bandwidth and IP        address B could give me about 600kbps sustained bandwidth. I was surprised at        the difference since they were from the same cable modem        - They did however have different default gateways and were on        different subnets. These speeds will of course vary betweed service providers.        Notice that my speed is capped at 1.4~1.5 but my throughput is        unstable and reaches only about 850kbps. &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/web/howto/images/MidPoint-2NIC.gif&quot; align=&quot;right&quot; width=&quot;249&quot; height=&quot;261&quot; /&gt;With connection teaming enabled, &lt;strong&gt;I was able        to sustain speeds of 1300kbps, or 1.3Mbps &lt;/strong&gt;when downloading multiple        large files (note, the cap is        still 1.5Mbps). This is not bad for a single cable modem! In addition, web        page surfing seemed to ‘spring’        to life. A single web page might require 7 or more requests for        text and graphics. When these requests are being done over two different IP        address response time improves dramatically.  This does not push your &#39;throughput&#39; but        it does make web pages come up faster due to the increased        network efficiency. &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;                                                                                        &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;IMPORTANT: The Key is the        Subnets&lt;/strong&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;They key to my success seemed to        be in the fact that the two tested IP address’ were on different subnets with        different default gateways. I tried running the same test on two        IP address’ that were on the same subnet / same default gateway and had        almost no improvement. This is a VERY important note. These tests were done with STATIC        IP address. &lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;ATTN: @Home Users&lt;/strong&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;When you sign up for multiple computers, you are        getting multiple IP address&#39; - STATIC ONES!  Instead of setting your        computer name, set IP, Subnet, default gateway and DNS servers        manually.  You can get all that information from this &lt;a href=&quot;https://ms1.home.net/MultipleIP/&quot;&gt;@Home networking site&lt;/a&gt;.         When you set your IP info manually, you do NOT need a specific computer        name!&lt;/div&gt;       &lt;div class=&quot;normalfont&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/improve-speed-of-cable-modem-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/6486440359926565691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/6486440359926565691'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/improve-speed-of-cable-modem-with.html' title='Improve  Speed of Cable Modem With connection Setting'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-7173823305512987946</id><published>2009-02-25T07:15:00.000-08:00</published><updated>2009-02-25T07:20:50.988-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>Assign Static IP Setup  from DHCP based LAN Configuration</title><content type='html'>&lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;       &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;DHCP Servers              automate the process of setting up the &#39;IP Schema&#39; of your home              network. When your computer is turned on, it seeks a DHCP server on              the network and gets a &#39;dynamic&#39; IP address. Each time the computer              is turned on, it could get a different IP address depending on a              bunch of other factors. Usually your Internet connection sharing              solution is responsible for having a DHCP server built in. All              broadband                                         routers come with DHCP Servers and almost every        software solution like Microsoft Internet Connection Sharing (ICS) does too. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;  &lt;table align=&quot;left&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt; &lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 600px; position: relative; visibility: visible; width: 160px;&quot;&gt;&lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 600px; position: relative; visibility: visible; width: 160px;&quot;&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;To see your current IP address, go              to a command prompt and type IPCONFIG &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;strong&gt;DHCP              Servers and Advanced Applications &lt;/strong&gt;                  &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;The primary reason for switching              from a DYNAMIC (DHCP) addressing schema to a static one is the              ability to run servers and other advanced applications behind a NAT              firewall. When you run any kind of server, a hole must be punched in              your firewall and pointed at the computer with the server running -              this is called port forwarding. If the IP address of the server              changes, the hole will be pointing to the wrong place! &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Static IP address&#39; require a small              amount of configuration and management up front for a small network              but allow the reliable configuration of game and application              servers. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;largefont&quot; align=&quot;left&quot;&gt;                                                     INSTRUCTIONS &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;             &lt;table align=&quot;right&quot; bgcolor=&quot;moccasin&quot; border=&quot;1&quot; bordercolor=&quot;black&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; width=&quot;25%&quot;&gt;                              &lt;tbody&gt;&lt;tr&gt;                 &lt;td&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Side Note:&lt;/strong&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;an IP                    address is composed of 4 octets, each ranging between 0 and                    255. A zero is never used in the first or last                octet.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;                                                      &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;strong&gt;IP              Ranges &lt;/strong&gt;                                              &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;  There are three &#39;ranges&#39;              that are deemed private and are usable for home networks. They are              as follows. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;  192.168.x.x              &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;  172.16.x.x              &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;  10.x.x.x              &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;                &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;The most              popular IP address schema set as the              default schema is 192.168.x.x, often 192.168.10.x or often 192.168.1.x. Routers              and other internet sharing solutions are usually positioned as the              first IP address in the schema - in our example it will be              192.168.10.1. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;First go to your router&#39;s              administration page and configure the built in DHCP server. Each              router will be a little different and hay have different              capabilities. You should leave the DHCP server enabled, but limit              the number of IP address it can distribute. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;If we allow our DHCP server to              start numbering computers at 192.168.10.2 and allow 50 IP address,              the last DHCP reserved address will be 192.168.10.52. Sometimes this              is done as a &#39;range&#39; instead of a &#39;number of computers&#39; setting. To              make it easy on ourselves, we might want to start numbering static              addressed computers at 192.168.10.100 - well out of the DHCP Range              &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/web/howto/images/static-ip1.gif&quot; width=&quot;312&quot; height=&quot;84&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;em&gt;Example of a DHCP              setting. &lt;/em&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;em&gt;Note that this shows              192.168.100.x network instead of a 192.168.10.x&lt;/em&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/web/howto/images/static-ip2.gif&quot; width=&quot;384&quot; height=&quot;108&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;em&gt;Example of a DHCP range              setting&lt;/em&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Our IP schema looks like this  &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;em&gt;192.168.10.0 &lt;/em&gt; subnet 255.255.255.0 is              our &#39;network&#39;. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;192.168.10.1 is our router &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;192.168.10.2 to .52 are DHCP              reserved address &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;192.168.10.100 to .255 are the              STATIC address &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Setting up a computer: &lt;/strong&gt;                                                                                                                             &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;    When we              change a computer from DHCP to Static IP, we must type in FOUR              pieces of information. IP address, Subnet, Default Gateway, and DNS              Server. The IP address will be one from our static IP range, the              subnet will be 255.255.255.0 and the Gateway and DNS will be the              address of our router - 192.168.10.1 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Get the TCP/IP properties of your              computer and set them up with the four required pieces of              information. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Computer 1 &lt;/strong&gt;                       &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;IP: 192.168.10.100 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Subnet: 255.255.255.0 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Gateway: 192.168.10.1 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;DNS: 192.168.10.1 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Computer 2 &lt;/strong&gt;                       &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;IP: 192.168.10.101 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Subnet: 255.255.255.0 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Gateway: 192.168.10.1 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;DNS: 192.168.10.1 &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;center&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/web/howto/images/static-ip3.gif&quot; width=&quot;368&quot; height=&quot;240&quot; /&gt; &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;Etc. &lt;/div&gt;             &lt;div class=&quot;normalfont&quot; align=&quot;left&quot;&gt;&lt;img src=&quot;http://www.homenethelp.com/images/transparent.gif&quot; height=&quot;15&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/assign-static-ip-setup-from-dhcp-based.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/7173823305512987946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/7173823305512987946'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/assign-static-ip-setup-from-dhcp-based.html' title='Assign Static IP Setup  from DHCP based LAN Configuration'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-8162608874244833491</id><published>2009-02-12T08:34:00.000-08:00</published><updated>2009-02-12T08:35:37.546-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Session Funcions in Php</title><content type='html'>session.name string&lt;br /&gt;session.name specifies the name of the session which is used as cookie name. It should only contain alphanumeric characters. Defaults to PHPSESSID. See also session_name(). &lt;br /&gt;&lt;br /&gt;session.auto_start boolean&lt;br /&gt;session.auto_start specifies whether the session module starts a session automatically on request startup. Defaults to 0 (disabled). &lt;br /&gt;&lt;br /&gt;session.serialize_handler string&lt;br /&gt;session.serialize_handler defines the name of the handler which is used to serialize/deserialize data. Currently, a PHP internal format (name php) and WDDX is supported (name wddx). WDDX is only available, if PHP is compiled with WDDX support. Defaults to php. &lt;br /&gt;&lt;br /&gt;session.gc_probability integer&lt;br /&gt;session.gc_probability specifies the probability that the gc (garbage collection) routine is started on each request in percent. Defaults to 1. &lt;br /&gt;&lt;br /&gt;session.gc_maxlifetime integer&lt;br /&gt;session.gc_maxlifetime specifies the number of seconds after which data will be seen as &#39;garbage&#39; and cleaned up. &lt;br /&gt;&lt;br /&gt;Note: If you are using the default file-based session handler, your filesystem must keep track of access times (atime). Windows FAT does not so you will have to come up with another way to handle garbage collecting your session if you are stuck with a FAT filesystem or any other fs where atime tracking is not available. &lt;br /&gt;&lt;br /&gt;session.referer_check string&lt;br /&gt;session.referer_check contains the substring you want to check each HTTP Referer for. If the Referer was sent by the client and the substring was not found, the embedded session id will be marked as invalid. Defaults to the empty string. &lt;br /&gt;&lt;br /&gt;session.entropy_file string&lt;br /&gt;session.entropy_file gives a path to an external resource (file) which will be used as an additional entropy source in the session id creation process. Examples are /dev/random or /dev/urandom which are available on many Unix systems. &lt;br /&gt;&lt;br /&gt;session.entropy_length integer&lt;br /&gt;session.entropy_length specifies the number of bytes which will be read from the file specified above. Defaults to 0 (disabled). &lt;br /&gt;&lt;br /&gt;session.use_cookies boolean&lt;br /&gt;session.use_cookies specifies whether the module will use cookies to store the session id on the client side. Defaults to 1 (enabled). &lt;br /&gt;&lt;br /&gt;session.use_only_cookies boolean&lt;br /&gt;session.use_only_cookies specifies whether the module will only use cookies to store the session id on the client side. Defaults to 0 (disabled, for backward compatibility). Enabling this setting prevents attacks involved passing session ids in URLs. This setting was added in PHP 4.3.0. &lt;br /&gt;&lt;br /&gt;session.cookie_lifetime integer&lt;br /&gt;session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means &quot;until the browser is closed.&quot; Defaults to 0.See also session_get_cookie_params() and session_set_cookie_params(). &lt;br /&gt;&lt;br /&gt;session.cookie_path string&lt;br /&gt;session.cookie_path specifies path to set in session_cookie. Defaults to /.See also session_get_cookie_params() and session_set_cookie_params(). &lt;br /&gt;&lt;br /&gt;session.cookie_domain string&lt;br /&gt;session.cookie_domain specifies the domain to set in session_cookie. Default is none at all. See also session_get_cookie_params() and session_set_cookie_params(). &lt;br /&gt;&lt;br /&gt;session.cookie_secure boolean&lt;br /&gt;session.cookie_secure specifies whether cookies should only be sent over secure connections. Defaults to off. This setting was added in PHP 4.0.4. See also session_get_cookie_params() and session_set_cookie_params(). &lt;br /&gt;&lt;br /&gt;session.cache_limiter string&lt;br /&gt;session.cache_limiter specifies cache control method to use for session pages (none/nocache/private/private_no_expire/public). Defaults to nocache. See also session_cache_limiter(). &lt;br /&gt;&lt;br /&gt;session.cache_expire integer&lt;br /&gt;session.cache_expire specifies time-to-live for cached session pages in minutes, this has no effect for nocache limiter. Defaults to 180. See also session_cache_expire(). &lt;br /&gt;&lt;br /&gt;session.use_trans_sid boolean&lt;br /&gt;session.use_trans_sid whether transparent sid support is enabled or not. Defaults to 0 (disabled).</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/session-funcions-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/8162608874244833491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/8162608874244833491'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/session-funcions-in-php.html' title='Session Funcions in Php'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-4717091157854839798</id><published>2009-02-12T08:23:00.000-08:00</published><updated>2009-02-12T08:33:14.220-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Php  Regular Expression</title><content type='html'>ereg (&quot;abc&quot;, $string);            &lt;br /&gt;/* Returns true if&quot;abc&quot;&lt;br /&gt;   is found anywhere in $string. */&lt;br /&gt;&lt;br /&gt;ereg (&quot;^abc&quot;, $string);&lt;br /&gt;/* Returns true if &quot;abc&quot;;&lt;br /&gt;   is found at the beginning of $string. */&lt;br /&gt;&lt;br /&gt;ereg (&quot;abc$&quot;, $string);&lt;br /&gt;/* Returns true if &quot;abc&quot;&lt;br /&gt;   is found at the end of $string. */&lt;br /&gt;&lt;br /&gt;eregi (&quot;(ozilla.[23]|MSIE.3)&quot;, $HTTP_USER_AGENT);  &lt;br /&gt;/* Returns true if client browser&lt;br /&gt;   is Netscape 2, 3 or MSIE 3. */&lt;br /&gt;&lt;br /&gt;ereg (&quot;([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)&quot;, $string,$regs); &lt;br /&gt;/* Places three space separated words&lt;br /&gt;   into $regs[1], $regs[2] and $regs[3]. */&lt;br /&gt;&lt;br /&gt;$string = ereg_replace (&quot;^&quot;, &quot;&lt;br /&gt;&quot;, $string); &lt;br /&gt;/* Put a &lt;br /&gt; tag at the beginning of $string. */&lt;br /&gt; &lt;br /&gt;$string = ereg_replace (&quot;$&quot;, &quot;&lt;br /&gt;&quot;, $string); &lt;br /&gt;/* Put a &lt;br /&gt;; tag at the end of $string. */&lt;br /&gt;&lt;br /&gt;$string = ereg_replace (&quot;\n&quot;, &quot;&quot;, $string);&lt;br /&gt;/* Get rid of any newline&lt;br /&gt;   characters in $string. */</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/php-regular-expression.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4717091157854839798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4717091157854839798'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/php-regular-expression.html' title='Php  Regular Expression'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-967249219047392589</id><published>2009-02-12T08:11:00.000-08:00</published><updated>2009-02-12T08:13:03.639-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C/C++"/><title type='text'>Circular Queue in C</title><content type='html'>#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;conio.h&gt;&lt;br /&gt;#define n 5&lt;br /&gt;struct cqueue{&lt;br /&gt;       int a[n],rear,front;&lt;br /&gt;       }*cq;&lt;br /&gt;typedef struct cqueue cque;&lt;br /&gt;int empty(cque *cq);&lt;br /&gt;int full(cque *cq);&lt;br /&gt;void insert(cque *cq,int);&lt;br /&gt;void del(cque *cq);&lt;br /&gt;void disp(cque *cq);&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt; int ch,no;&lt;br /&gt; clrscr();&lt;br /&gt; cq-&gt;front=cq-&gt;rear=-1;&lt;br /&gt; do&lt;br /&gt; {&lt;br /&gt;  textattr(ch);&lt;br /&gt;  printf(&quot;\ncase 1:insert&quot;&lt;br /&gt;  &quot;\ncase 2:delete&quot;&lt;br /&gt;  &quot;\ncase 3:display&quot;&lt;br /&gt;  &quot;\ncase 4:empty&quot;&lt;br /&gt;  &quot;\ncase 5:full&quot;&lt;br /&gt;  &quot;\ncase 6:get_rear&quot;&lt;br /&gt;  &quot;\ncase 7:get_front&quot;&lt;br /&gt;  &quot;\ncase 8:exit&quot;);&lt;br /&gt;  cprintf(&quot;\nenter req case &quot;);&lt;br /&gt;  scanf(&quot;%d&quot;,&amp;ch);&lt;br /&gt;  switch(ch)&lt;br /&gt;  {&lt;br /&gt;   case 1:printf(&quot;\nenter no &quot;);&lt;br /&gt;   scanf(&quot;%d&quot;,&amp;no);&lt;br /&gt;   insert(cq,no);&lt;br /&gt;   break;&lt;br /&gt;   case 2:del(cq);&lt;br /&gt;   //printf(&quot;\ndeleted no is %d&quot;,no);&lt;br /&gt;   break;&lt;br /&gt;   case 3:disp(cq);&lt;br /&gt;   break;&lt;br /&gt;   case 4:no=empty(cq);&lt;br /&gt;   if(no==1)&lt;br /&gt;    printf(&quot;empty&quot;);&lt;br /&gt;   else&lt;br /&gt;    printf(&quot;not empty&quot;);&lt;br /&gt;   break;&lt;br /&gt;   case 5:if(cq-&gt;rear==n-1)&lt;br /&gt;     cq-&gt;rear=0;&lt;br /&gt;   else&lt;br /&gt;     cq-&gt;rear++;&lt;br /&gt;   no=full(cq);&lt;br /&gt;   if(no==1)&lt;br /&gt;    printf(&quot;full&quot;);&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;    printf(&quot;not full&quot;);&lt;br /&gt;    if(cq-&gt;rear==0)&lt;br /&gt;     cq-&gt;rear=n-1;&lt;br /&gt;    else&lt;br /&gt;     cq-&gt;rear--;&lt;br /&gt;    }&lt;br /&gt;   break;&lt;br /&gt;   case 6:if(empty(cq))&lt;br /&gt;    printf(&quot;\nrear-&gt;-1&quot;);&lt;br /&gt;   else&lt;br /&gt;    printf(&quot;\nrear-&gt;%d value %d&quot;,cq-&gt;rear,cq-&gt;a[cq-&gt;rear]);&lt;br /&gt;   break;&lt;br /&gt;   case 7:if(empty(cq))&lt;br /&gt;    printf(&quot;\nfront-&gt;-1&quot;);&lt;br /&gt;   else&lt;br /&gt;    printf(&quot;\nfront-&gt;%d value %d&quot;,cq-&gt;front,cq-&gt;a[cq-&gt;front]);&lt;br /&gt;   break;&lt;br /&gt;   case 8:printf(&quot;GOOD BYE!!&quot;);&lt;br /&gt;   getch();&lt;br /&gt;   break;&lt;br /&gt;   default:printf(&quot;wrong case&quot;);&lt;br /&gt;   }&lt;br /&gt;  getch();&lt;br /&gt;  }while(ch!=8);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;int empty(cque *cq)&lt;br /&gt;{&lt;br /&gt; if(cq-&gt;front==-1)&lt;br /&gt;  return(1);&lt;br /&gt; else&lt;br /&gt;  return(0);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;int full(cque *cq)&lt;br /&gt;{&lt;br /&gt; if(cq-&gt;rear==cq-&gt;front)&lt;br /&gt; {&lt;br /&gt;  if(cq-&gt;rear==0)&lt;br /&gt;    cq-&gt;rear=n-1;&lt;br /&gt;  else&lt;br /&gt;    cq-&gt;rear--;&lt;br /&gt;  return(1);&lt;br /&gt;  }&lt;br /&gt; else&lt;br /&gt;  return(0);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;void insert(cque *cq,int no)&lt;br /&gt;{&lt;br /&gt; if(cq-&gt;rear==n-1)&lt;br /&gt;   cq-&gt;rear=0;&lt;br /&gt; else&lt;br /&gt;   cq-&gt;rear++;&lt;br /&gt; if(full(cq))&lt;br /&gt;  printf(&quot;circular queue full&quot;);&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;  cq-&gt;a[cq-&gt;rear]=no;&lt;br /&gt;  if(cq-&gt;front==-1)&lt;br /&gt;    cq-&gt;front++;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;void disp(cque *cq)&lt;br /&gt;{&lt;br /&gt; int i=cq-&gt;front;&lt;br /&gt; if(empty(cq))&lt;br /&gt;   printf(&quot;\nempty&quot;);&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;   while(i!=cq-&gt;rear)&lt;br /&gt;   {&lt;br /&gt;    printf(&quot;%d \t&quot;,cq-&gt;a[i]);&lt;br /&gt;    if(i==n-1)&lt;br /&gt;     i=0;&lt;br /&gt;    else&lt;br /&gt;     i++;&lt;br /&gt;    }&lt;br /&gt;   printf(&quot;%d&quot;,cq-&gt;a[cq-&gt;rear]);&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;void del(cque *cq)&lt;br /&gt;{&lt;br /&gt; int temp;&lt;br /&gt; if(empty(cq))&lt;br /&gt;  {&lt;br /&gt;   printf(&quot;\ncircular queue empty&quot;);&lt;br /&gt;   }&lt;br /&gt; else&lt;br /&gt;  {&lt;br /&gt;   temp=cq-&gt;a[cq-&gt;front];&lt;br /&gt;   if(cq-&gt;front==cq-&gt;rear)&lt;br /&gt;    cq-&gt;front=cq-&gt;rear=-1;&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;    if(cq-&gt;front==n-1)&lt;br /&gt;       cq-&gt;front=0;&lt;br /&gt;    else&lt;br /&gt;       cq-&gt;front++;&lt;br /&gt;    }&lt;br /&gt;   printf(&quot;\ndeleted no is %d&quot;,temp);&lt;br /&gt;   }&lt;br /&gt;  }</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/circular-queue-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/967249219047392589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/967249219047392589'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/circular-queue-in-c.html' title='Circular Queue in C'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-4372794668458309811</id><published>2009-02-12T07:58:00.000-08:00</published><updated>2009-02-12T08:02:21.707-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C/C++"/><title type='text'>Chatting Application in C++</title><content type='html'>Here it is basic chatting  application in c/c++ that will give you idea about serial communication in c/c++&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;conio.h&gt;&lt;br /&gt;#include&lt;dos.h&gt;&lt;br /&gt;void send()&lt;br /&gt;{&lt;br /&gt; char c[100];&lt;br /&gt; int port=0x3f8,i;&lt;br /&gt; printf(&quot;\nEnter String u want to send: &quot;);&lt;br /&gt; flushall();&lt;br /&gt; gets(c);&lt;br /&gt; for(i=0;c[i];i++)&lt;br /&gt; {&lt;br /&gt;  outpw(port,c[i]);&lt;br /&gt; }&lt;br /&gt; c[i+1]=&#39;*&#39;;&lt;br /&gt; outpw(port, c[i+1]);&lt;br /&gt; printf(&quot;String is sent.&quot;);&lt;br /&gt; getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void recieve()&lt;br /&gt;{&lt;br /&gt; int port=0x3f8,i=-1;&lt;br /&gt; char c[100];&lt;br /&gt; clrscr();&lt;br /&gt; getch();&lt;br /&gt; do{&lt;br /&gt;    i++;&lt;br /&gt;    c[i]=inpw(port);&lt;br /&gt;    if(c[i]==&#39;*&#39;)&lt;br /&gt;  c[i]=NULL;&lt;br /&gt;&lt;br /&gt; }while(c[i]);&lt;br /&gt; puts(c);&lt;br /&gt; getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt; int ch;&lt;br /&gt; clrscr();&lt;br /&gt; do{&lt;br /&gt; printf(&quot;\n1.Send\n2.Receive\n3.Exit\n\n\tEnter your choice: &quot;);&lt;br /&gt; scanf(&quot;%d&quot;,&amp;ch);&lt;br /&gt; switch(ch){&lt;br /&gt;  case 1:  send();&lt;br /&gt;    break;&lt;br /&gt;  case 2: recieve();&lt;br /&gt;    break;&lt;br /&gt;  case 3:   break;&lt;br /&gt;  default:  printf(&quot;Wrong choice!!&quot;);&lt;br /&gt;    break;&lt;br /&gt; }&lt;br /&gt; }while(ch!=3);&lt;br /&gt;}</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/chatting-application-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4372794668458309811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4372794668458309811'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/chatting-application-in-c.html' title='Chatting Application in C++'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-4924782583216129534</id><published>2009-02-07T22:28:00.000-08:00</published><updated>2009-02-07T22:30:23.445-08:00</updated><title type='text'>Email about Time Management  By Narayan Murthy to Infosys Staff</title><content type='html'>It&#39;s half past 8 in the office but the lights are still on...&lt;br /&gt;PCs still running, coffee machines still buzzing...&lt;br /&gt;And who&#39;s at work? Most of them ??? Take a closer look...&lt;br /&gt;&lt;br /&gt;All or most specimens are ??&lt;br /&gt;Something male species of the human race...&lt;br /&gt;Look closer... again all or most of them are bachelors...&lt;br /&gt;And why are they sitting late? Working hard? No way!!!&lt;br /&gt;Any guesses???&lt;br /&gt;&lt;br /&gt;Let&#39;s ask one of them..&lt;br /&gt;Here&#39;s what he says... &quot;What&#39;s there 2 do after going home...Here we get to surf, AC, phone, food, coffee that is why I am working late...Importantly no bossssssss!! !!!!!!!!!&quot;&lt;br /&gt;&lt;br /&gt;This is the scene in most research centers and software companies and other off-shore offices.&lt;br /&gt;Bachelors &quot;Time-passing&quot; during late hours in the office just bcoz they say they&#39;ve nothing else to do...&lt;br /&gt;&lt;br /&gt;Now what r the consequences. ..&lt;br /&gt;&quot;Working&quot; (for the record only) late hours soon becomes part of the institute or company culture.&lt;br /&gt;With bosses more than eager to provide support to those &quot;working&quot; late in the form of taxi vouchers, food vouchers and of course good feedback, (oh, he&#39;s a hard worker... goes home only to change..!!).&lt;br /&gt;&lt;br /&gt;They aren&#39;t helping things too...&lt;br /&gt;&lt;br /&gt;To hell with bosses who don&#39;t understand the difference between &quot;sitting&quot; late and &quot;working&quot; late!!!&lt;br /&gt;Very soon, the boss start expecting all employees to put in extra working hours.&lt;br /&gt;So, My dear Bachelors let me tell you, life changes when u get married and start having a family... office is no longer a priority, family is... and&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;That&#39;s when the problem starts... b&#39;coz u start having commitments at home too.&lt;br /&gt;For your boss, the earlier &quot;hardworking&quot; guy suddenly seems to become a &quot;early leaver&quot; even if u leave an hour after regular time.. after doing the same amount of work.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;People leaving on time after doing their tasks for the day are labeled as work-shirkers. ..&lt;br /&gt;Girls who thankfully always (its changing nowadays... though) leave on time are labeled as &quot;not up to it&quot;. All the while, the bachelors pat their own backs and carry on &quot;working&quot; not realizing that they r spoiling the work culture at their own place and never realize that they wuld have to regret at one point of time.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;*So what&#39;s the moral of the story?? *&lt;br /&gt;* Very clear, LEAVE ON TIME!!!&lt;br /&gt;* Never put in extra time &quot; *unless really needed *&quot;&lt;br /&gt;* Don&#39;t stay back un-necessarily and spoil your company work culture which will in turn cause inconvenience to you and your colleagues.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;There are hundred other things to do in the evening..&lt;br /&gt;Learn music...&lt;br /&gt;Learn a foreign language...&lt;br /&gt;Try a sport... TT, cricket..... ....&lt;br /&gt;Importantly Get a girl friend or boy friend, take him/her around town...&lt;br /&gt;* And for heaven&#39;s sake net cafe rates have dropped to an all-time low (plus, no fire-walls) and try cooking for a change.&lt;br /&gt;Take a tip from the Smirnoff ad: *&quot;Life&#39;s calling, where are you??&quot;*&lt;br /&gt;&lt;br /&gt;Please pass on this message to all those colleagues And please do it before leaving time, don&#39;t stay back till midnight to forward this!!!&lt;br /&gt;&lt;br /&gt;IT&#39;S A TYPICAL INDIAN MENTALITY THAT WORKING FOR LONG HOURS MEANS VERY HARD WORKING &amp; 100% COMMITMENT ETC.&lt;br /&gt;&lt;br /&gt;PEOPLE WHO REGULARLY SIT LATE IN THE OFFICE DONT KNOW TO MANAGE THEIR TIME. SIMPLE!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;NARAYAN MURTHY.</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/email-about-time-management-by-narayan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4924782583216129534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4924782583216129534'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/email-about-time-management-by-narayan.html' title='Email about Time Management  By Narayan Murthy to Infosys Staff'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-3561127726016785967</id><published>2009-02-03T08:21:00.000-08:00</published><updated>2009-02-03T08:22:56.542-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>What is trigger element in Ajax?</title><content type='html'>The &lt;Triggers&gt; element can contain any number each of two child nodes: &lt;br /&gt;&lt;asp:AsyncPostBackTrigger&gt; and &lt;asp:PostBackTrigger&gt;.  They both accept two &lt;br /&gt;attributes, ControlID and EventName, and can specify any Control within the current unit of &lt;br /&gt;encapsulation (for instance, if your UpdatePanel control resides within a Web User Control, you &lt;br /&gt;should not attempt to reference a Control on the Page on which the User Control will reside).   &lt;br /&gt;The &lt;asp:AsyncPostBackTrigger&gt; element is particularly useful in that it can target any event &lt;br /&gt;from a Control that exists as a child of any UpdatePanel control in the unit of encapsulation, not &lt;br /&gt;just the UpdatePanel under which this trigger is a child.  Thus, any control can be made to &lt;br /&gt;trigger a partial page update. &lt;br /&gt;Similarly, the &lt;asp:PostBackTrigger&gt; element can be used to trigger a partial page render, but &lt;br /&gt;one that requires a full round-trip to the server.  This trigger element can also be used to force a &lt;br /&gt;full page render when a control would otherwise normally trigger a partial page render (for &lt;br /&gt;instance, when a Button control exists in the &lt;ContentTemplate&gt; element of an &lt;br /&gt;UpdatePanel control).  Again, the PostBackTrigger element can specify any control that is a child &lt;br /&gt;of any UpdatePanel control in the current unit of encapsulation.</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/what-is-trigger-element-in-ajax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/3561127726016785967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/3561127726016785967'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/what-is-trigger-element-in-ajax.html' title='What is trigger element in Ajax?'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-9044583053275473096</id><published>2009-02-03T07:54:00.000-08:00</published><updated>2009-02-03T07:56:17.642-08:00</updated><title type='text'>IBM To build Strongest Supercomputer  for USA</title><content type='html'>The U.S. government has hired IBM to build a supercomputer with more power than all the supercomputers on the Top500 supercomputer list combined.&lt;br /&gt;&lt;br /&gt;It&#39;s an ambitious claim by IBM in a business where jumbo-size claims are the norm. The planned Sequoia system, capable of 20 petaflops, will be used by the U.S. Department of Energy in its nuclear stockpile research. The fastest systems today can only reach 1 petaflop, a remarkable achievement in its own right that was met only last year.&lt;br /&gt;&lt;br /&gt;It &quot;is the biggest leap of computing capability ever delivered to the lab,&quot; said Mark Seager, assistant department head for advanced technology at the Lawrence Livermore National Laboratory in Livermore, Calif., where the system will be housed. It&#39;s expected to be up and running in 2012.&lt;br /&gt;&lt;br /&gt;IBM is actually building two supercomputers under this contract. The first one, to be delivered by midyear, is called Dawn and will operate at around 500 teraflops. Researchers will use Dawn to help prepare for the larger system.&lt;br /&gt;&lt;br /&gt;Sequoia will use approximately 1.6 million processing cores, all IBM Power chips, running Linux, which dominates high-performance computing at this scale. IBM is still developing a 45-nanometer chip for the system and may produce something with eight or 16 cores -- or more -- for it. Although the final chip configuration has yet to be determined, the system will have 1.6TB of memory and be housed in 96 &quot;refrigerator-size&quot; racks.&lt;br /&gt;&lt;br /&gt;The cost of the system wasn&#39;t disclosed.&lt;br /&gt;&lt;br /&gt;The supercomputer is also helping to drive a massive power upgrade at Lawrence Livermore, which is increasing the amount of electricity available for all its computing systems from 12.5 megawatts to 30 megawatts. To achieve the upgrade, it will run more power lines to its facility. Sequoia alone is expected to use about 6 megawatts, according to Seager.&lt;br /&gt;&lt;br /&gt;The world&#39;s first computer to break the teraflop barrier was built at Sandia National Laboratories in 1996. A teraflop equals a trillion floating points a second; a petaflop is 1,000 trillion (one quadrillion) sustained floating-point operations per second.&lt;br /&gt;&lt;br /&gt;It takes government funding to build systems of this scale and size, but that also means that the U.S. is paying for much of the problem-solving it takes to scale across more than a million cores. &quot;This is what&#39;s so good about it,&quot; said Herb Schultz, manager of deep computing at IBM. &quot;They [the national lab] end up proving that you can get codes to scale that high.&quot;&lt;br /&gt;&lt;br /&gt;In effect, by solving those problems, the national lab&#39;s work will pave the way for broader adoption of massive systems that could improve weather research, forecasts, tornado tracking, and work on a variety of other research problems. Large systems such as Sequoia help researchers reduce uncertainty and improve precision in simulations that can, for instance, predict tornado paths. The more compute power available, the more fine tuned and accurate the simulation.&lt;br /&gt;&lt;br /&gt;The major problem in running a system of this scale is &quot;the applications -- porting the applications and scaling them up is a critical problem we are facing,&quot; said Seager.&lt;br /&gt;&lt;br /&gt;There are two petaflop systems in the U.S., IBM&#39;s Roadrunner at Los Alamos National Laboratory, which passed the petaflop barrier last May, and Cray Inc.&#39;s XT Jaguar at the Oak Ridge National Laboratory.</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/ibm-to-build-strongest-supercomputer.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/9044583053275473096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/9044583053275473096'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/ibm-to-build-strongest-supercomputer.html' title='IBM To build Strongest Supercomputer  for USA'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-1647021950764896803</id><published>2009-02-03T07:42:00.000-08:00</published><updated>2009-02-03T07:50:32.188-08:00</updated><title type='text'>President Obama Googlebombed as &#39;failure&#39;</title><content type='html'>A few years ago, online Bush bashers ganged up to link the term &quot;miserable failure&quot; from their blogs to the 43rd president&#39;s home page. As a result, a Google search for &quot;miserable failure&quot; returned the White House&#39;s Web site as top result.&lt;br /&gt;&lt;br /&gt;Today, though, it&#39;s President Obama who has been targeted for the search term &quot;failure&quot; at Google and &quot;miserable failure&quot; at Yahoo. Search Engine Land editor Danny Sullivan says he tried to warn Obama&#39;s staff through several channels but was ignored.&lt;br /&gt;&lt;br /&gt;That&#39;s probably the right response. But here in San Francisco, there&#39;s an obvious unanswered question: Is this the work of Republican bloggers, or was it our local left-of-left progressives unhappy with &quot;Barry O.&#39;s&quot; lack of support for medical marijuana and rent control?</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/president-obama-googlebombed-as-failure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/1647021950764896803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/1647021950764896803'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/president-obama-googlebombed-as-failure.html' title='President Obama Googlebombed as &#39;failure&#39;'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-2866915421001333866</id><published>2009-02-03T07:40:00.000-08:00</published><updated>2009-02-03T07:41:38.724-08:00</updated><title type='text'>Microsoft release New SandBox</title><content type='html'>January 29, 2009 (InfoWorld) Microsoft has made source code for its Live Labs Web Sandbox project for securing Web content through isolation available via open source under the Apache License 2.0, according to a report this week on Microsoft&#39;s Port 25 site.&lt;br /&gt;&lt;br /&gt;Web Sandbox features technology for mashing up code while maintaining process isolation, quality of service protection and security. It is intended to address a problem in which Web gadgets, mashup components, advertisements and other third-party content on Web sites either will run full trust alongside content or are isolated inside of IFrames. This results in many Web applications being intrinsically insecure with unpredictable service quality.&lt;br /&gt;&lt;br /&gt;Since announcing the  technology preview at the Professional Developer Conference 2008 in Los Angeles in October, Microsoft has open-sourced the Web Sandbox framework and is partnering with industry leaders to evolve Web Sandbox into an industry-wide solution, Microsoft said.&lt;br /&gt;&lt;br /&gt;Microsoft is looking for developers to experiment with Web Sandbox, even including samples so developers can try to break the Sandbox.&lt;br /&gt;&lt;br /&gt;&quot;Since the initial release of Web Sandbox we have received a great deal of feedback from the Web security community. We have also been collaborating with a number of customers, partners, and the standards communities that would like to adopt the technology when it is ready. Our goal is to achieve widespread adoption of Web Sandbox and to help foster interoperability with complementary technologies like script frameworks,&quot; Microsoft Live Labs said on its Web Sandbox Web page.&lt;br /&gt;&lt;br /&gt;Although Microsoft is using an Apache license for the project, it is not sponsored or endorsed by the Apache Software Foundation, Microsoft said. The company last year became a sponsor of the foundation.&lt;br /&gt;&lt;br /&gt;Web Sandbox builds upon Microsoft&#39;s experience with DHTML, Windows, Windows Live Web-based gadgets, and the Microsoft BrowserShield project, which leverages JavaScript virtualization through rewriting.</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/microsoft-release-new-sandbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2866915421001333866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2866915421001333866'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/microsoft-release-new-sandbox.html' title='Microsoft release New SandBox'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-3612575076500459583</id><published>2009-02-03T00:15:00.000-08:00</published><updated>2009-02-03T00:21:07.065-08:00</updated><title type='text'>USA &#39;s New Obamafied Robot.txt file of  whitehouse.gov</title><content type='html'>&lt;blockquote&gt;&lt;p&gt;User-agent: *&lt;br /&gt;Disallow: /cgi-bin&lt;br /&gt;Disallow: /search&lt;br /&gt;Disallow: /query.html&lt;br /&gt;Disallow: /omb/search&lt;br /&gt;Disallow: /omb/query.html&lt;br /&gt;Disallow: /expectmore/search&lt;br /&gt;Disallow: /expectmore/query.html&lt;br /&gt;Disallow: /results/search&lt;br /&gt;Disallow: /results/query.html&lt;br /&gt;Disallow: /earmarks/search&lt;br /&gt;Disallow: /earmarks/query.html&lt;br /&gt;Disallow: /help&lt;br /&gt;Disallow: /360pics/text&lt;br /&gt;Disallow: /911/911day/text&lt;br /&gt;Disallow: /911/heroes/text&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;And it goes on like that &lt;em&gt;for almost 2400 lines!&lt;/em&gt; &lt;a href=&quot;http://www.whitehouse.gov/robots.txt&quot;&gt;Here&#39;s the new Obamafied robots.txt file&lt;/a&gt;:&lt;/p&gt;  &lt;blockquote&gt;&lt;p&gt;User-agent: *&lt;br /&gt;Disallow: /includes/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;That&#39;s it&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/usa-s-new-obamafied-robottxt-file-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/3612575076500459583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/3612575076500459583'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/usa-s-new-obamafied-robottxt-file-of.html' title='USA &#39;s New Obamafied Robot.txt file of  whitehouse.gov'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-3634996373319958695</id><published>2009-02-01T00:38:00.000-08:00</published><updated>2009-02-01T00:42:32.045-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Procedure to Configure Php with apache on windows</title><content type='html'>&lt;h3 class=&quot;docSection1Title&quot;&gt;Installing PHP Files on Windows&lt;/h3&gt; &lt;p class=&quot;docText&quot;&gt;Unlike building and installing &lt;a name=&quot;idd1e10932&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e10940&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e10948&quot;&gt;&lt;/a&gt;PHP on Linux/Unix, installing PHP on Windows requires nothing more than downloading the distribution and moving a few files around. To download the &lt;a name=&quot;idd1e10954&quot;&gt;&lt;/a&gt;PHP distribution files, go  to the home &lt;a name=&quot;idd1e10960&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e10964&quot;&gt;&lt;/a&gt;of PHP, &lt;a class=&quot;docLink&quot; href=&quot;http://www.php.net/default.htm&quot; target=&quot;_blank&quot;&gt;http://www.php.net/&lt;/a&gt;, and follow the link to the Downloads section. Grab the latest version of the zip package from the Windows Binaries section—for this example we are using 4.2.3. Your distribution will be named something similar to &lt;tt&gt;php-&lt;/tt&gt;&lt;span class=&quot;docEmphasis&quot;&gt;&lt;tt&gt;version&lt;/tt&gt;&lt;/span&gt;&lt;tt&gt;.zip&lt;/tt&gt;, where &lt;span class=&quot;docEmphasis&quot;&gt;&lt;tt&gt;version&lt;/tt&gt;&lt;/span&gt; is the most recent release number.&lt;/p&gt; &lt;p class=&quot;docText&quot;&gt;Once the file is downloaded to your system, double-click on it  to launch &lt;a name=&quot;idd1e10985&quot;&gt;&lt;/a&gt;your unzipper. The distribution is packed up with pathnames already in place, so if you extract the files to the root of your drive, it will create a directory called &lt;tt&gt;php-&lt;/tt&gt;&lt;span class=&quot;docEmphasis&quot;&gt;&lt;tt&gt;version&lt;/tt&gt;&lt;/span&gt;&lt;tt&gt;-Win32&lt;/tt&gt;, and place all the  files and subdirectories under that new directory.&lt;/p&gt; &lt;p class=&quot;docText&quot;&gt;Now that you have all the basic PHP distribution &lt;a name=&quot;idd1e10998&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11006&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11014&quot;&gt;&lt;/a&gt;files, you  just need to move a few of them around:&lt;/p&gt;&lt;a name=&quot;ch03pro01&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;ol class=&quot;docList&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-weight: normal;&quot; value=&quot;1&quot;&gt; &lt;p class=&quot;docText&quot;&gt;In the PHP installation directory, find &lt;a name=&quot;idd1e11026&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11030&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11036&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11040&quot;&gt;&lt;/a&gt;the &lt;tt&gt;php.ini-dist&lt;/tt&gt; file and rename it  &lt;tt&gt;php.ini&lt;/tt&gt;.&lt;/p&gt;&lt;/span&gt; &lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-weight: normal;&quot; value=&quot;2&quot;&gt; &lt;p class=&quot;docText&quot;&gt;Move the &lt;tt&gt;php.ini&lt;/tt&gt; file to &lt;tt&gt;C:\WINDOWS\&lt;/tt&gt; or  wherever you usually &lt;a name=&quot;idd1e11062&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11066&quot;&gt;&lt;/a&gt;put your  &lt;tt&gt;*.ini&lt;/tt&gt; files.&lt;/p&gt;&lt;/span&gt; &lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-weight: normal;&quot; value=&quot;3&quot;&gt; &lt;p class=&quot;docText&quot;&gt;Move the &lt;tt&gt;php4ts.dll&lt;/tt&gt; file to  &lt;tt&gt;C:\WINDOWS\SYSTEM\&lt;/tt&gt; or wherever you usually put &lt;a name=&quot;idd1e11085&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11089&quot;&gt;&lt;/a&gt;your &lt;tt&gt;*.dll&lt;/tt&gt;  files.&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt; &lt;p class=&quot;docText&quot;&gt;To get a basic &lt;a name=&quot;idd1e11102&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11110&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11118&quot;&gt;&lt;/a&gt;version of PHP working with Apache, you&#39;ll need to make a  few minor modifications to the Apache configuration file.&lt;/p&gt;&lt;a name=&quot;ch03lev2sec3&quot;&gt;&lt;/a&gt; &lt;h4 class=&quot;docSection2Title&quot;&gt;Integrating PHP with Apache on Windows&lt;/h4&gt; &lt;p class=&quot;docText&quot;&gt;To ensure that PHP and Apache &lt;a name=&quot;idd1e11132&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11138&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11144&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11150&quot;&gt;&lt;/a&gt;get along with  one another, you need to add a few items to the &lt;tt&gt;httpd.conf&lt;/tt&gt;  configuration &lt;a name=&quot;idd1e11159&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11163&quot;&gt;&lt;/a&gt;file. First, find a  section that looks like this:&lt;/p&gt;&lt;pre&gt;# Example: # LoadModule foo_module modules/mod_foo.so # LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so #LoadModule auth_anon_module modules/mod_auth_anon.so #LoadModule auth_dbm_module modules/mod_auth_dbm.so #LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule headers_module modules/mod_headers.so &lt;/pre&gt; &lt;p class=&quot;docText&quot;&gt;At the end of this &lt;a name=&quot;idd1e11175&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11181&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11187&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11193&quot;&gt;&lt;/a&gt;section, add  the following:&lt;/p&gt;&lt;pre&gt;LoadModule php4_module c:/php-&lt;span class=&quot;docEmphasis&quot;&gt;version&lt;/span&gt;/sapi/php4apache2.dll &lt;/pre&gt; &lt;p class=&quot;docText&quot;&gt;Next, look for this section:&lt;/p&gt;&lt;pre&gt;# # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types. # &lt;/pre&gt; &lt;p class=&quot;docText&quot;&gt;Add the following lines:&lt;/p&gt;&lt;pre&gt;AddType application/x-httpd-php .php .phtml .html AddType application/x-httpd-php-source .phps &lt;/pre&gt; &lt;p class=&quot;docText&quot;&gt;This ensures that the PHP engine will parse files that end with  the &lt;tt&gt;.php&lt;/tt&gt;, &lt;tt&gt;.phtml&lt;/tt&gt;, and &lt;tt&gt;.html&lt;/tt&gt; extensions. Your  selection of filenames may differ, and you may wish to add &lt;tt&gt;.php3&lt;/tt&gt; as an  extension, for backwards compatibility &lt;a name=&quot;idd1e11232&quot;&gt;&lt;/a&gt;with any very old  scripts you may have.&lt;/p&gt; &lt;p class=&quot;docText&quot;&gt;Any files with the &lt;tt&gt;.phps&lt;/tt&gt; extension will be output as PHP source. That is, the source code will be converted to HTML and color-coded. This can be useful for debugging your scripts.&lt;/p&gt; &lt;p class=&quot;docText&quot;&gt;Save this file, and then restart Apache. If the server &lt;a name=&quot;idd1e11245&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11251&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11257&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e11263&quot;&gt;&lt;/a&gt;starts, PHP is now part of the Apache Web server.&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/procedure-to-configure-php-with-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/3634996373319958695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/3634996373319958695'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/procedure-to-configure-php-with-apache.html' title='Procedure to Configure Php with apache on windows'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-4418667956021628787</id><published>2009-02-01T00:36:00.000-08:00</published><updated>2009-02-01T00:37:48.817-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Procedure to Instal MySQL on Linux/Unix</title><content type='html'>Installing MySQL on Linux/Unix&lt;br /&gt;The process of installing MySQL on Linux/Unix is straightforward, whether you use RPMs or install the binaries. If you choose to install from RPMs, there are several that make up a full distribution. For a minimal installation you need&lt;br /&gt;&lt;br /&gt;MySQL-VERSION.i386.rpm— The MySQL server&lt;br /&gt;&lt;br /&gt;MySQL-client-VERSION.i386.rpm— The standard MySQL client programs&lt;br /&gt;&lt;br /&gt;To perform the minimal installation, type the following at the prompt:&lt;br /&gt;&lt;br /&gt;#&gt; rpm -i MySQL-VERSION.i386.rpm MySQL-client-VERSION.i386.rpm&lt;br /&gt;&lt;br /&gt; Replace VERSION in the filename with the actual version you downloaded. For example, the current MySQL-Pro 4.0 server RPM is called MySQL-4.0.4-0.i386.rpm.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another painless installation method is to install MySQL from a binary distribution. This method requires gunzip and tar to uncompress and unpack the distribution and also requires the ability to create groups and users on the system. The first series of commands in the binary distribution installation process has you adding a group and a user and unpacking the distribution, as follows:&lt;br /&gt;&lt;br /&gt;#&gt; groupadd mysql&lt;br /&gt;#&gt; useradd -g mysql mysql&lt;br /&gt;#&gt; cd /usr/local&lt;br /&gt;#&gt; gunzip &lt; /path/to/mysql-VERSION-OS.tar.gz | tar xvf -  Next, the instructions tell you to create a link with a shorter name:  #&gt; ln -s mysql-VERSION-OS mysql&lt;br /&gt;#&gt; cd mysql&lt;br /&gt;&lt;br /&gt;Once unpacked, the README and INSTALL files will walk you through the remainder of the installation process for the version of MySQL you&#39;ve chosen. In general, the following series of commands will be used:&lt;br /&gt;&lt;br /&gt;#&gt; scripts/mysql_install_db&lt;br /&gt;#&gt; chown -R root /usr/local/mysql&lt;br /&gt;#&gt; chown -R mysql /usr/local/mysql/data&lt;br /&gt;#&gt; chgrp -R mysql /usr/local/mysql&lt;br /&gt;#&gt; chown -R root /usr/local/mysql/bin&lt;br /&gt;&lt;br /&gt;You&#39;re now ready to start the MySQL server.</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/procedure-to-instal-mysql-on-linuxunix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4418667956021628787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4418667956021628787'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/procedure-to-instal-mysql-on-linuxunix.html' title='Procedure to Instal MySQL on Linux/Unix'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-5271831704494029187</id><published>2009-02-01T00:30:00.000-08:00</published><updated>2009-02-01T00:32:52.145-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Perl-Cgi"/><title type='text'>How to Upload file on server in Perl-Cgi</title><content type='html'>Basic method of file uploading on server in perl-cgi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;use CGI;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;$cgi = new CGI;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;$file = $cgi-&gt;param(&#39;file&#39;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;@fname=split(/\\/,$file);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;$name=$fname[$#fname];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;$fl=$cgi-&gt;upload(&#39;file&#39;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;open(FH, &quot;&gt;/var/www/html/uploads/$name&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;#binmode FH;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;while(&lt;$fl&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;   print FH;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;print $cgi-&gt;header();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;print &quot;$name and $file has been successfully uploaded... thank you.\n&quot;;&lt;/span&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/how-to-upload-file-on-server-in-perl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5271831704494029187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5271831704494029187'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/how-to-upload-file-on-server-in-perl.html' title='How to Upload file on server in Perl-Cgi'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-2564322388340791335</id><published>2009-02-01T00:06:00.000-08:00</published><updated>2009-02-01T00:07:23.293-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>ADO.net Dataset  V/s ADO Recordset</title><content type='html'>A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.&lt;br /&gt;· A DataSet is designed to work without any continuing connection to the original data source.&lt;br /&gt;· Data in a DataSet is bulk-loaded, rather than being loaded on demand.&lt;br /&gt;· There&#39;s no concept of cursor types in a DataSet.&lt;br /&gt;· DataSets have no current record pointer You can use For Each loops to move through the data.&lt;br /&gt;· You can store many edits in a DataSet, and write them to the original data source in a single operation.&lt;br /&gt;· Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/adonet-dataset-vs-ado-recordset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2564322388340791335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2564322388340791335'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/adonet-dataset-vs-ado-recordset.html' title='ADO.net Dataset  V/s ADO Recordset'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-2027696056356511747</id><published>2009-02-01T00:02:00.000-08:00</published><updated>2009-02-01T00:05:15.085-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>Close() and Dispose() Method difference in Asp.net</title><content type='html'>&lt;span style=&quot;font-family: georgia;font-size:100%;&quot; &gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;Close() Vs Dispose Method&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The basic difference between Close() and Dispose() is, when a Close() method is called, any managed resource can be temporarily closed and can be opened once again. It means that, with the same object the resource can be reopened or used. Where as Dispose() method permanently removes any resource ((un)managed) from memory for cleanup and the resource no longer exists for any further processing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Example showing difference between Close() and Dispose() Method:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Data.SqlClient;&lt;br /&gt;public class Test&lt;br /&gt;{&lt;br /&gt;private string connString = &quot;Data Source=COMP3;Initial Catalog=Northwind;User Id=sa;Password=pass&quot;;&lt;br /&gt;private SqlConnection connection;&lt;br /&gt;public Test()&lt;br /&gt;{&lt;br /&gt;connection = new SqlConnection(connString);&lt;br /&gt;}&lt;br /&gt;private static void Main()&lt;br /&gt;{&lt;br /&gt;Test t = new Test();&lt;br /&gt;t.ConnectionStatus();&lt;br /&gt;Console.ReadLine();&lt;br /&gt;}&lt;br /&gt;public void ConnectionStatus()&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;if(connection.State == ConnectionState.Closed)&lt;br /&gt;{&lt;br /&gt;connection.Open();&lt;br /&gt;Console.WriteLine(&quot;Connection opened..&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if(connection.State == ConnectionState.Open)&lt;br /&gt;{&lt;br /&gt;connection.Close();&lt;br /&gt;Console.WriteLine(&quot;Connection closed..&quot;);&lt;br /&gt;}&lt;br /&gt;// connection.Dispose();&lt;br /&gt;&lt;br /&gt;if(connection.State == ConnectionState.Closed)&lt;br /&gt;{&lt;br /&gt;connection.Open();&lt;br /&gt;Console.WriteLine(&quot;Connection again opened..&quot;);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;catch(SqlException ex)&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(ex.Message+&quot;\n&quot;+ex.StackTrace);&lt;br /&gt;}&lt;br /&gt;catch(Exception ey)&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(ey.Message+&quot;\n&quot;+ey.StackTrace);&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(&quot;Connection closed and disposed..&quot;);&lt;br /&gt;connection.Dispose();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;In the above example if you uncomment the &quot;connection.Dispose()&quot; method and execute, you will get an exception as, &quot;The ConnectionString property has not been initialized.&quot;.This is the difference between Close() and Dispose().&lt;/span&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/close-and-dispose-method-difference-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2027696056356511747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2027696056356511747'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/02/close-and-dispose-method-difference-in.html' title='Close() and Dispose() Method difference in Asp.net'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-2875067938852588696</id><published>2009-01-28T08:14:00.000-08:00</published><updated>2009-01-28T08:16:46.913-08:00</updated><title type='text'>How to Install Windows TeamSpeak Server</title><content type='html'>Step by Step Procedure to Install Windows TeamSpeak Server&lt;br /&gt;&lt;ol style=&quot;font-family: georgia;&quot;&gt;&lt;li&gt;Go to &lt;a href=&quot;http://www.goteamspeak.com/&quot; class=&quot;external free&quot; title=&quot;http://www.goteamspeak.com&quot; rel=&quot;nofollow&quot;&gt;http://www.goteamspeak.com&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.wikihow.com/Image:Downloads_17.JPG&quot; class=&quot;image&quot; title=&quot;Image:Downloads_17.JPG&quot;&gt;&lt;img alt=&quot;Image:Downloads_17.JPG&quot; src=&quot;http://www.wikihow.com/images/4/49/Downloads_17.JPG&quot; border=&quot;0&quot; width=&quot;162&quot; height=&quot;59&quot; /&gt;&lt;/a&gt;Click on Downloads on the left side of the screen.&lt;/li&gt;&lt;li&gt;Here you will see a list of different versions of TeamSpeak Client and Server. &lt;ol&gt;&lt;li&gt; &lt;div class=&quot;thumb tright&quot;&gt; &lt;div class=&quot;thumbinner&quot; style=&quot;width: 182px;&quot;&gt;&lt;a href=&quot;http://www.wikihow.com/Image:Ts_windows_378.JPG&quot; class=&quot;image&quot; title=&quot;Ts_windows_378.JPG&quot;&gt;&lt;img style=&quot;width: 350px; height: 69px;&quot; alt=&quot;&quot; src=&quot;http://www.wikihow.com/images/thumb/c/c6/Ts_windows_378.JPG/180px-Ts_windows_378.JPG&quot; class=&quot;thumbimage&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;div class=&quot;thumbcaption&quot;&gt; &lt;div class=&quot;magnify&quot;&gt;&lt;a href=&quot;http://www.wikihow.com/Image:Ts_windows_378.JPG&quot; class=&quot;internal&quot; title=&quot;Enlarge&quot;&gt;&lt;img src=&quot;http://www.wikihow.com/skins/common/images/magnify-clip.png&quot; alt=&quot;&quot; width=&quot;15&quot; height=&quot;11&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; Find the Windows downloads section.&lt;/li&gt;&lt;li&gt;Find the TeamSpeak 2 Server.&lt;/li&gt;&lt;li&gt;Click on either Site 1 or Site 2 to begin downloading.&lt;/li&gt;&lt;/ol&gt; &lt;/li&gt;&lt;li&gt;Read the TeamSpeak End User License Agreement.&lt;/li&gt;&lt;li&gt;Click &#39;I AGREE&#39; at the bottom of the page to continue.&lt;/li&gt;&lt;li&gt;Click Run when prompted with the next two screens.&lt;/li&gt;&lt;li&gt;When asked if you would like to install TeamSpeak 2 Server, click &#39;Yes.&#39;&lt;/li&gt;&lt;li&gt;The setup wizard will be displayed, click &#39;Next&#39; to continue.&lt;/li&gt;&lt;li&gt;The License Agreement screen will be shown.&lt;/li&gt;&lt;li&gt;Select &#39;I accept the agreement&#39; and click &#39;Next.&#39;&lt;/li&gt;&lt;li&gt;You will then be prompted to select a folder directory to install the server in&lt;/li&gt;&lt;li&gt;Select a folder to install the application in, and click &#39;Next&#39;. &lt;ul&gt;&lt;li&gt;For most users, the default location is recommended.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;You will then be prompted to select a folder to put the shortcuts in and then click &#39;Next&#39; to continue. &lt;ul&gt;&lt;li&gt;For most users, the default location is recommended.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;The wizard will then ask if you would like to create an icon on the desktop. &lt;ul&gt;&lt;li&gt;If you would like to create an icon on the desktop, leave Create a desktop icon checked and click Next.&lt;/li&gt;&lt;li&gt;If you would like to not create an icon on the desktop, uncheck Create a desktop icon and click Next.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Click Install to begin the install process.&lt;/li&gt;&lt;li&gt;Read the information about TeamSpeak Server and click Next.&lt;/li&gt;&lt;li&gt;The setup wizard will then be finished. &lt;ul&gt;&lt;li&gt;If you would like to launch TeamSpeak right away, Click Finish.&lt;/li&gt;&lt;li&gt;If you don’t want to launch TeamSpeak right away, uncheck Launch TeamSpeak 2 Server, Click Finish.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;TeamSpeak Server is now installed on your machine. &lt;ul&gt;&lt;li&gt;If you selected to launch TeamSpeak, you will see an icon running in the lower right bottom of your screen.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/how-to-install-windows-teamspeak-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2875067938852588696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/2875067938852588696'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/how-to-install-windows-teamspeak-server.html' title='How to Install Windows TeamSpeak Server'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-5630144941352763203</id><published>2009-01-28T07:57:00.000-08:00</published><updated>2009-01-28T08:03:59.200-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Explode function to divide string</title><content type='html'>&lt;pre style=&quot;color: rgb(204, 204, 204);&quot; class=&quot;code&quot;&gt;This will show explode function .&lt;br /&gt;it will divide the string into number of chunks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$someWords = &quot;Please don&#39;t blow me to pieces.&quot;;&lt;br /&gt;&lt;br /&gt;$wordChunks = explode(&quot; &quot;, $someWords);&lt;br /&gt;for($i = 0; $i &lt; count($wordChunks); $i++){  echo &quot;Piece $i = $wordChunks[$i]&lt;br /&gt;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 204, 204);&quot;&gt;$wordChunksLimited = &lt;/span&gt;&lt;span style=&quot;color: rgb(204, 204, 204);&quot;&gt;explode(&quot; &quot;, $someWords, 4)&lt;/span&gt;&lt;span style=&quot;color: rgb(204, 204, 204);&quot;&gt;;&lt;/span&gt;&lt;br /&gt;for($i = 0; $i &lt; count($wordChunksLimited); $i++){  echo &quot;Limited Piece $i = $wordChunksLimited[$i]&lt;br /&gt;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/explode-function-to-divide-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5630144941352763203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5630144941352763203'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/explode-function-to-divide-string.html' title='Explode function to divide string'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-685215062961304893</id><published>2009-01-28T07:33:00.000-08:00</published><updated>2009-01-28T08:08:28.270-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Perl-Cgi"/><title type='text'>File copy from one directory in Perl</title><content type='html'>&lt;pre style=&quot;color: rgb(204, 204, 204);&quot; class=&quot;code&quot;&gt;It will copy file from one directory to other directory&lt;br /&gt;&lt;br /&gt;it will copy file from its current directory to HTML directory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 204, 204);&quot;&gt;use File::Copy;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 204, 204);&quot;&gt;print &quot;content-type: text/html \n\n&quot;; #The header&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 204, 204);&quot;&gt;$filetobecopied = &quot;myhtml.html.&quot;;&lt;br /&gt;$newfile = &quot;html/myhtml.html.&quot;;&lt;/span&gt;&lt;br /&gt;copy($filetobecopied, $newfile) or die &quot;File cannot be copied.&quot;;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/file-copy-from-one-directory-in-perl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/685215062961304893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/685215062961304893'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/file-copy-from-one-directory-in-perl.html' title='File copy from one directory in Perl'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-5414343276773140583</id><published>2009-01-28T07:29:00.000-08:00</published><updated>2009-01-28T07:33:01.777-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Perl-Cgi"/><title type='text'>fetch data using Select query in perl</title><content type='html'>&lt;pre style=&quot;font-family: georgia;&quot; class=&quot;code&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Here is code to fetch the data from database and display it with loop&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;&lt;br /&gt;use Mysql;&lt;br /&gt;&lt;br /&gt;print &quot;Content-type: text/html \n\n&quot;;&lt;br /&gt;&lt;br /&gt;# MYSQL CONFIG VARIABLES&lt;br /&gt;$host = &quot;localhost&quot;;&lt;br /&gt;$database = &quot;store&quot;;&lt;br /&gt;$tablename = &quot;inventory&quot;;&lt;br /&gt;$user = &quot;username&quot;;&lt;br /&gt;$pw = &quot;password&quot;;&lt;br /&gt;&lt;br /&gt;# PERL MYSQL CONNECT()&lt;br /&gt;$connect = Mysql-&gt;connect($host, $database, $user, $pw);&lt;br /&gt;&lt;br /&gt;# SELECT DB&lt;br /&gt;$connect-&gt;selectdb($database);&lt;br /&gt;&lt;br /&gt;# DEFINE A MySQL QUERY&lt;br /&gt;$myquery = &quot;SELECT * FROM $tablename&quot;;&lt;br /&gt;&lt;br /&gt;# EXECUTE THE QUERY FUNCTION&lt;br /&gt;$execute = $connect-&gt;query($myquery);&lt;br /&gt;&lt;br /&gt;# HTML TABLE&lt;br /&gt;print &quot;&lt;table border=&quot;&#39;1&#39;&quot;&gt;&lt;tr&gt;&lt;br /&gt;&lt;th&gt;id&lt;/th&gt;&lt;br /&gt;&lt;th&gt;product&lt;/th&gt;&lt;br /&gt;&lt;th&gt;quantity&lt;/th&gt;&lt;/tr&gt;&quot;;&lt;br /&gt;&lt;br /&gt;# FETCHROW ARRAY&lt;br /&gt;&lt;br /&gt;while (@results = $execute-&gt;fetchrow()) {&lt;br /&gt; print &quot;&lt;tr&gt;&lt;td&gt;&quot;&lt;br /&gt; .$results[0].&quot;&lt;/td&gt;&lt;td&gt;&quot;&lt;br /&gt; .$results[1].&quot;&lt;/td&gt;&lt;td&gt;&quot;&lt;br /&gt; .$results[2].&quot;&lt;/td&gt;&lt;/tr&gt;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;print &quot;&lt;/table&gt;&quot;;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/fetch-data-using-select-query-in-perl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5414343276773140583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/5414343276773140583'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/fetch-data-using-select-query-in-perl.html' title='fetch data using Select query in perl'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-342566683527173084</id><published>2009-01-24T12:03:00.000-08:00</published><updated>2009-01-24T12:04:10.326-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="White paper"/><title type='text'>White Paper</title><content type='html'>Application DoS attacks exploit flaws in the bespoke application design and implementation to&lt;br /&gt;prevent legitimate access to the victim’s services. They represent a subset of potential attacks&lt;br /&gt;on such applications, as they are aimed specifically at disrupting operation rather than&lt;br /&gt;subverting the application controls.&lt;br /&gt;Attacks based on exploiting these flaws can offer the attacker a number of advantages over&lt;br /&gt;traditional DoS attacks:&lt;br /&gt;• The attacks will typically not be detectable or preventable by existing security&lt;br /&gt;monitoring solutions1 – Since the attacks do not consume an unreasonable amount of&lt;br /&gt;bandwidth and could, in many cases, be indistinguishable from normal traffic.&lt;br /&gt;• Application attacks are more efficient – The attacker may not need as much resource at&lt;br /&gt;their disposal to successfully complete the attack. Application level attacks target&lt;br /&gt;bottlenecks and resources limitations within the application and do not require many&lt;br /&gt;compromised “zombie” systems or a large amount of bandwidth. Furthermore, they&lt;br /&gt;can be targeted at the weakest link in an environment – for example if a web-farm of a&lt;br /&gt;hundred servers relies on a single back-office host to authenticate users, an application&lt;br /&gt;attack may be able to directly target it.&lt;br /&gt;• Application attacks are harder to trace – Application level attacks normally use HTTP or&lt;br /&gt;HTTPS as their transport. Proxy servers can therefore be used to obfuscate the true&lt;br /&gt;origin of the attacker; and many are available for an attacker to redirect his malicious&lt;br /&gt;traffic. Many of these proxy servers do not keep logs of connection attempts and could&lt;br /&gt;therefore successfully hide the true origin of the attacking host.</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/white-paper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/342566683527173084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/342566683527173084'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/white-paper.html' title='White Paper'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-257221213567768282</id><published>2009-01-24T11:38:00.000-08:00</published><updated>2009-01-24T11:58:57.809-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>Socket Programming in Asp.net</title><content type='html'>//Server Code&lt;br /&gt;using System;&lt;br /&gt;using System.Net.Sockets;&lt;br /&gt;using System.IO ; &lt;br /&gt;public class Echoserver&lt;br /&gt;{&lt;br /&gt;public static void Main()&lt;br /&gt;{&lt;br /&gt;//TcpListener is listening on the given port... {&lt;br /&gt;TcpListener tcpListener = new TcpListener(1234);&lt;br /&gt;tcpListener.Start(); &lt;br /&gt;Console.WriteLine(&quot;Server Started&quot;) ; &lt;br /&gt;&lt;br /&gt;Socket socketForClient = tcpListener.AcceptSocket(); &lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;if (socketForClient.Connected)&lt;br /&gt;{&lt;br /&gt;while(true)&lt;br /&gt;{&lt;br /&gt;NetworkStream networkStream = new NetworkStream(socketForClient);&lt;br /&gt;StreamWriter streamWriter = new StreamWriter(networkStream);&lt;br /&gt;StreamReader streamReader = new StreamReader(networkStream);&lt;br /&gt;string line = streamReader.ReadLine();&lt;br /&gt;Console.WriteLine(&quot;Read:&quot; +line);&lt;br /&gt;line=line.ToUpper()+ &quot;!&quot;;&lt;br /&gt;streamWriter.WriteLine(line);&lt;br /&gt;streamWriter.Flush() ; &lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;socketForClient.Close(); &lt;br /&gt;Console.WriteLine(&quot;Exiting...&quot;);&lt;br /&gt;}&lt;br /&gt;catch(Exception e)&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(e.ToString()) ;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;//Client Code&lt;br /&gt;using System;&lt;br /&gt;using System.Net.Sockets;&lt;br /&gt;using System.Windows.Forms;&lt;br /&gt;using System.IO ;&lt;br /&gt;using System.ComponentModel ;&lt;br /&gt;using System.Drawing;&lt;br /&gt;public class Echoclient: Form&lt;br /&gt;{&lt;br /&gt;private Button b1;&lt;br /&gt;private TextBox t1,ta;&lt;br /&gt;TcpClient myclient;&lt;br /&gt;private NetworkStream networkStream ;&lt;br /&gt;private StreamReader streamReader ;&lt;br /&gt;private StreamWriter streamWriter ;&lt;br /&gt;public Echoclient()&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;}&lt;br /&gt;public static void Main()&lt;br /&gt;{&lt;br /&gt;Echoclient df=new Echoclient();&lt;br /&gt;df.FormBorderStyle=FormBorderStyle.Fixed3D;&lt;br /&gt;Application.Run(df);&lt;br /&gt;}&lt;br /&gt;public void InitializeComponent()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;this.Closing+= new CancelEventHandler(form1_closing) ;&lt;br /&gt;//connect to the &quot;localhost&quot; at the give port&lt;br /&gt;//if you have some other server name then you can use that instead of &quot;localhost&quot;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;myclient = new TcpClient(&quot;localhost&quot;, 1234);&lt;br /&gt;}&lt;br /&gt;catch&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(&quot;Failed to connect to server at {0}:999&quot;, &quot;localhost&quot;);&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;//get a Network stream from the server&lt;br /&gt;networkStream = myclient.GetStream();&lt;br /&gt;streamReader = new StreamReader(networkStream);&lt;br /&gt;streamWriter = new StreamWriter(networkStream);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//User can enter a text in the textbox and on click of the button the message will be sent to the server..&lt;br /&gt;//then the Client waits and receives the response from the server which is displayed in the textarea..&lt;br /&gt;private void b1_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;ta.Text=&quot;&quot; ;&lt;br /&gt;if(t1.Text==&quot;&quot;)&lt;br /&gt;{&lt;br /&gt;MessageBox.Show(&quot;Please enter something in the textbox&quot;);&lt;br /&gt;t1.Focus();&lt;br /&gt;return ;&lt;br /&gt;}&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;string s;&lt;br /&gt;streamWriter.WriteLine(t1.Text);&lt;br /&gt;Console.WriteLine(&quot;Sending Message&quot;);&lt;br /&gt;streamWriter.Flush();&lt;br /&gt;s= streamReader.ReadLine();&lt;br /&gt;Console.WriteLine(&quot;Reading Message&quot;) ;&lt;br /&gt;Console.WriteLine(s) ;&lt;br /&gt;ta.Text=s;&lt;br /&gt;}&lt;br /&gt;catch(Exception ee)&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(&quot;Exception reading from Server:&quot;+ee .ToString());&lt;br /&gt;} &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/socket-programming-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/257221213567768282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/257221213567768282'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/socket-programming-in-aspnet.html' title='Socket Programming in Asp.net'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2710481326514242732.post-4084632915937961860</id><published>2009-01-24T11:36:00.000-08:00</published><updated>2009-01-24T11:37:56.016-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>File Handling in Asp.net</title><content type='html'>using System.IO; &lt;br /&gt;&lt;br /&gt;private void button2_Click(object sender, System.EventArgs e) &lt;br /&gt;{ &lt;br /&gt;TextReader tr = new StreamReader(&quot;c:/t.txt&quot;); &lt;br /&gt;&lt;br /&gt;string s = tr.ReadLine(); &lt;br /&gt;&lt;br /&gt;while(s != null) &lt;br /&gt;{ &lt;br /&gt;s = tr.ReadLine(); &lt;br /&gt;this.textBox2.Text += s + &quot;\n&quot;; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;tr.Close(); &lt;br /&gt;}</content><link rel='replies' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/file-handling-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4084632915937961860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2710481326514242732/posts/default/4084632915937961860'/><link rel='alternate' type='text/html' href='http://mituljariwala.blogspot.com/2009/01/file-handling-in-aspnet.html' title='File Handling in Asp.net'/><author><name>Mitul</name><uri>http://www.blogger.com/profile/18420907636561909089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>