CrazyEngineers Forum |
- A few tough riddles... Try to solve them...
- Here are some shortcuts / tips to find out the day of the week from the given date...
- A few tips and tricks you can do in Windows XP!
- PHP database connectivity!!
- Discharge resistor
- Heya Buddies! Praveen here... :)
- Greetings!
- Transmit Sound to 50 mtrs.
- Message to All Ceans.. about Beehive Intelligence.
- Watching Cricket Match live
- Java Interview Questions asked by IBM HRs
- metallurgical project
- Need good painting
- Click on vote if you like the idea
- CEans Should Concentrate On Adding Value & Benefiting From This Site
A few tough riddles... Try to solve them... Posted: 02 Mar 2011 12:36 PM PST 1. This person doesn't know your name and he never does. Why not? 2. A guy picked a book off the highest shelf in a library. On the spine, he read "How to Jog". He ran out of the room and opened the book but found it had absolutely nothing to do with jogging. Explain... 3. Eternally I am 1 to 6, eternally am 15 to 20, I am always 5, but I am never ever 21 unless I am flying, what am I ??? 4. A man lives on the 18th floor of his complex. He takes the elevator all the way to the top on days that are rainy. He goes to the 12th floor and walks up if he's alone on the elevator. Why is that? 5. I walk into a room where there are 10 people in who are 20 years old 10 who are 19, 10 who are 18 and 10 who are 30. How many people are there in the room? Actually they are easy! |
Here are some shortcuts / tips to find out the day of the week from the given date... Posted: 02 Mar 2011 11:30 AM PST Day of the Week: January has 31 days. It means that every date in February will be 3 days later than the same date in January (28 is 4 weeks exactly). The below table is calculated in such a way. Remember this table which will help you to calculate. Code: January 0 Step 2: Number of the month on the list, June is 4. Step 3: Take the date of the month, that is 23. Step 4: Take the last 2 digits of the year, that is 86. Step 5: Find out the number of leap years. Divide the last 2 digits of the year by 4, 86 divide by 4 is 21. Step 6: Now add all the four numbers: 4, 23, 86, 21 which sums to 134. Step 7: Divide 134 by 7 = 19 remainder 1. The reminder tells you the day. Code: Sunday 0 |
A few tips and tricks you can do in Windows XP! Posted: 02 Mar 2011 10:59 AM PST Quote: Disclaimer: Before performing any of these, please note, all these are possible and worked under testing conditions. Neither me, nor CE is responsible for the damage caused to your system or files, by the following procedures. Use these at your own risk. I say this because, it uses the system's advanced processes. Just be careful. Press 'Start'. Press 'Run'. Type 'cmd'. Then type 'net user'. A list of users in your computer appears. Type 'net user accountname *'. (accountname is the name of the user account, one of those displayed in the above steps) Then type the new password and press Enter. You will be asked to retype the password for confirmation. Type the same password and press Enter. The password will be changed. You need not know the old password! I am not sure whether this would work with the guest accounts, as all the corporate systems' users are guest users or limited users! Screenshot: Disable XP Boot Logo It is possible to disable the XP splash screen, which will slightly speed up the overall boot process. Be aware that removing the splash screen will also cause you not to see any boot-up messages that might come up (chkdsk, convert ... ), but if your system runs without any problems then it should not matter. 1. Edit boot.ini. 2. Add " /noguiboot" right after "/fastdetect". Upon restarting, the splash screen will be gone. It can be re-enabled by removing the new switch. Turn Off Indexing to Speed Up XP Windows XP keeps a record of all files on the hard disk so when you do a search on the hard drive it is faster. There is a downside to this and because the computer has to index all files, it will slow down normal file commands like open, close, etc. If you do not do a whole lot of searches on your hard drive then you may want to turn this feature off: - Open My Computer. - Right-click your hard drive icon and select Properties. - At the bottom of the window you'll see "Allow indexing service to index this disk for faster searches," uncheck this and click ok. - A new window will pop up and select Apply to all folders and subfolders. It will take a minute or two for the changes to take affect but then you should enjoy slightly faster performance. Clean Your Prefetch to Improve Performance This is a unique technique for WinXP. We know that it is necessary to scrub registry and TEMP files for Win9X/ME/2000 periodically. Prefetch is a new and very useful technique in Windows XP. However, after using XP some time, the prefetch directory can get full of junk and obsolete links in the Prefetch catalog, which can slow down your computer noticeably. - Open C(system drive):/windows/prefetch, delete those junk and obsolete files, reboot. It is recommended that you do this every month. Auto Login - Go to Start/Run, and type 'control userpasswords2'. - From Users Tab, Uncheck "Users must enter ...." - A dialog will allow setting a user and password to be used automatically. Use the Ultimate Configuration Tool (Professional Edition Only) One of the most full featured Windows XP configuration tools available is hidden right there in your system, but most people don't even know it exists. It's called the Local Group Policy Editor, or gpedit for short. To invoke this editor: - Select Start and then Run, then type the following: gpedit.msc After you hit Enter, you'll be greeted by gpedit, which lets you modify virtually every feature in Windows XP without having to resort to regedit. May I post more? Your comments needed! |
Posted: 02 Mar 2011 10:26 AM PST Hi Ceans, As everyone knows PHP is web scripting language in simple terms its the language used for creating webpage or website. And its really important to know how to use PHP to connect to databases as all the website which are in existence right now use database as back-end to store information in a secure way as well as organized way. So in this tutorial I am gonna show you how to establish connection to a database using PHP. Lets get it started.... First lets see how to establish a connection to a database and then we will see how to execute simple query in order to show the fetched result set to users through webpage. In order to establish a connection to MYSQL there is a predefined function called mysql_connect which takes three parameters, the first parameter is the host name ( the machine IP address where the mysql is residing ) and the second parameter is the username (mysql username) and the third parameter is the password (mysql password for that user name you have specified as second parameter) each parameter is separated from one another using a , (comma). So the connection string will be as shown below: mysql_connect("host", "username", "password"); NOTE: If the database your trying to access is available in the same machine you can specify localhost as host name (That's the first parameter) Ok now lets pass some real parameters to this connection string, mysql_connect("localhost", "slashfear", "arvind"); Ok your done!! the above connection string will connect to local mysql server with the user name slashfear and password arvind, that's how you can connect to database using PHP simple right!! For other databases like oracle, postgresql, sybase, db2 the predefined function as well the parameters will change and are listed below for your reference: Oracle database connection: oci_connect("username", "password", "host"); Postgresql database connection: pg_connect("host=hostname port=5432 dbname=demo user=slashfear password=arvind"); Sybase database connection: sybase_connect('host', 'username', 'passoword'); DB2 database connection: db2_connect("DATABASE=demo;HOSTNAME=host;", "username", "password"); Now we know how to connect to database, its important to know how to disconnect from it too so in-order to disconnect from a mysql database we have to call the predefined function mysql_close which will take one parameter which is the reference to the connection which your willing to close so lets look at a an example for clear understanding: $dbcon = mysql_connect("localhost", "slashfear", "arvind"); mysql_close($dbcon); So in the above snippet the variable $dbcon reference to the connection to mysql which connects to the local mysql server with the user name slashfear and identified by password arvind. So in order to disconnect from the database we call the function called mysql_close and pass the variable name which holds the reference to the connection string. Following is the list of predefined functions to perform disconnection from other database: Oracle database disconnection: $dbcon = oci_connect("username", "password", "host"); oci_close($dbcon); Postgresql database disconnection: $dbcon = pg_connect("host=hostname port=5432 dbname=demo user=slashfear password=arvind"); pg_close($dbconn); Sybase database disconnection: $dbcon = sybase_connect('host', 'username', 'passoword'); sybase_close($dbconn); DB2 database disconnection: $dbcon = db2_connect("DATABASE=demo;HOSTNAME=host;", "username", "password"); db2_close($dbconn); Stay tuned for continuation of this tutorial which will show you how to execute simple query from php to databases :) ..... ( will continue tomorrow as i have work now :( ) If you have any doubts please feel free to ask!! -Arvind |
Posted: 02 Mar 2011 10:25 AM PST Hi All CEans, Can anybody explain me what is discharge resistor in case of capacitor compensation in power system? |
Heya Buddies! Praveen here... :) Posted: 02 Mar 2011 09:29 AM PST Heya friends, mentors, and The Admin! :) I am Praveen Kumar, from Chennai. After a 10+2 Schooling, I successfully completed my Brain Emptying (Bachelor of Engineering) degree in Computer Science & Engineering. I am currently working as Front End Engineer @ TCS Innovation Labs... ;) This techiness in me grew from my 2nd standard of my schooling, when I first played my Dangerous Dave game and started working on stuffs like EDIT and DIR! In short, I started with Visual Basic 6 in my 6th and right now, a Web Developer, with 5+ years of experience in 3-tier architecture stuffs. Guys, behold, I am just 20! :P I try to think something innovative and develop some crap, which ultimately gets goofed up. Anywayz, I love internet and web development, so will be working on something new in those areas. I would love to be a trainer or a teacher, as teaching is a divine stuff, where you gain and let others too gain! My ultimate aim would be setting up my own Research Labs, and making it from Virtual to Physical! :) Did I say, I found PraveenTech Research Labs? It was a fine moment, when Praveena said me about this site, and yeah, I too heard it before, and now I am a proud CEan! :cean: |
Posted: 02 Mar 2011 07:33 AM PST Hello everyone! I've just found this site and forum thanks to the brilliant interview with the Chief Engineer of Project Bloodhound. My name is Frederico and I have a Masters in Engineering. I'm a former Formula 1 and motorsport engineer and I am now the Quality Manager for an aerospace machining company. I'm Portuguese but I work in the UK. I look forward to having a great time with you in this site! |
Posted: 02 Mar 2011 07:12 AM PST what are the ways to transmit the Sound 50 mtrs. ??? Can i get its Transmitter-Receiver circuits?? |
Message to All Ceans.. about Beehive Intelligence. Posted: 02 Mar 2011 07:08 AM PST Hi, to everybody.I am doing my final Engineering one of my lecturer suggested me to do a seminar on Beehive intelligence.but i don't no the Basics of it .. It would be very much appreciated if any one could assist me in understanding the basics of Beehive intelligence,as soon as possible. I thought of Posting this here in the forum as i found it as The best place. As it contains more number of Engineers. Thanks in advance..::happy: |
Posted: 02 Mar 2011 04:01 AM PST As world cup fever is in air ....can you share some experience of watching live cricket match ? It will be fun knowing :) |
Java Interview Questions asked by IBM HRs Posted: 02 Mar 2011 03:58 AM PST Q:Do you have to use design pattern in J2EE project? Ans:Yes. If I do it, I will use it. Learning design pattern will boost my coding skill. Q:What is Struts? Ans: A Web page development framework. Struts combine Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework. It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between. Q:What is Model 2? Ans:Using JSP and Servlet together to develop Web page. Model 2 applications are easier to maintain and extend, because views do not refer to each other directly. :) |
Posted: 02 Mar 2011 02:31 AM PST Dear friends, I am student of metallurgy & material engineering. On which topic I'll conduct project? Please give me instruction about my final year project topics |
Posted: 01 Mar 2011 11:14 PM PST There is a function in my college and i want to participate in the wall painting. I searched on google but could not found any good one.. all were professional artists paintings. Does anyone have good & easy wall painting theme. Please give it to me. |
Click on vote if you like the idea Posted: 01 Mar 2011 10:56 PM PST |
CEans Should Concentrate On Adding Value & Benefiting From This Site Posted: 01 Mar 2011 10:48 PM PST CEans, We come together on CrazyEngineers with a purpose and over the years, we've built a professional community of engineering students and professionals. Many CEans spend considerable time of CE Forums and are emotionally attached to it. I however warn everyone against taking things personally. When your views don't match with someone else's, it's better to accept them and post your views. Do not point out other's mistakes and if you must, do it very politely. Focus on adding value and benefiting from CE Forums. CE is meant for making you better engineer with the help of other engineers. If you have ANY issue with the site or content - your first duty is to contact Admins & the Mods. They'll take necessary action, if required. Let's all be :cean: |
You are subscribed to email updates from CrazyEngineers Forum To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment