Feb 27, 2006

Answer by BE students

Interviewer: Why is a thicker conductor necessary to carry a current in  A.C.as compared to D.C. ?  
Candidate:  An AC current goes up and down (drawing a sinusoid) and requires more space inside the wire, so the wire has to be thicker.  

External  (to  student) : "Why does a capacitor block DC but allow AC To pass through ?  
Student: See, a capacitor is like this  ---| |---  , OK. DC comes straight, like this ---------- , and the capacitor stops it. But AC,goes UP, DOWN, UP DOWN and jumps right over the capacitor!"

Interviewer:  How will you tell if that wall outlet carries AC or DC?  
Candidate: I will put my finger in. If it is pushed away, it is AC. If it gets stuck, it was DC.  

Interviewer:  H! ow will you reverse direction of an Induction motor?
Candidate:  I will remove the four bolts at the x-ud, turn the motor around, and put back the bolts.      

Interviewer:  How do you start a synchronous motor?  
Candidate:  Vrrrrrrrmmmmmmmmmmmmmmmmmmm (in rising pitch)  
Interviewer: Stop! Stop!  
Candidate:  rrrrrrrmmmmmmmmmmmmmmmmmmmm (in falling pitch)  

Examiner: "What is a step-up transformer?"  
Student: "A transformer that is put on top of electric poles."  
Examiner (smiling):  "And then what is a step-down transformer?"
Student (hesitantly):" Uh - A transformer that is put in the x-udment or in a pit?"  
Examiner (pouncing): "Then what do you call a transformer that is installed on the ground?"  
(Student knows he is caught-can't answer)
Examiner (impatiently): "Well?"  
Student (triumphantly):  "A stepless transformer, sir!"

PHP Designer 2006

PHP Designer 2006 Version 4.0.6 Beta is released.
The site (http://www.mpsoftware.dk/) and forums doesn't say anything about what's new. Debug option is not there.
While another debugger DBG ( http://dd.cron.ru/dbg/home.php) is available, but support is limited for php version up to 5.0.3. The php_dbg.dll version must match your php version.

ajaysajay

Internet Explorer and FireFox

Again stuck with Internet Explorer. It poorly failed where FireFox works fine, and logical.

Here are the line that create two submit buttons in a loop (i has a value from 1 to n). So I have an edit and a delete button on each item line. These have an associated value of item index. Now I can check btn_edit and btn_del and handle associated item.

<button type=\"submit\" name=\"btn_edit\" value=$item[i]>Edit</button>
<button type=\"submit\" name=\"btn_del\" value=$item[i]>Del</button>

With FF only the value of pressed button is passed. You can evaluate action easily, the other button is empty. You also have the item value. Everything looks and works fine in FireFox.
Run the same form in IE and be ready for shock:
  • Internet Explorer doesn't understand value clause in button tag!
  • It passes the caption of buttons as the value - Edit/ Del in above case!!
  • No matter which button is pressed, it passes button caption to the value property for all the buttons!!!
The worst thing: if you're doing anything that needs browser, you just cannot ignore Internet Explorer. There is a lot of interesting reading on IE/ NS/ FF, just google it.
There are many words on this problem, and a lot of work-around too, but a work around is not a solution! I need to keep exploring this, until I find a work around that is pretty close to a proper solution. Or, I need to change structure and give up BUTTON tag.

It is interesting to note in WDG documentation on HTML 4.0:
"However, BUTTON is new in HTML 4.0 and poorly supported among current browsers, so INPUT is a more reliable choice at this time."
Do they mean Internet Explorer when they say "current browsers" ?

ajaysajay

PHP/ HTML: Calling Forms

I've a form where user can click a Find button. Another form is opened in new window and user can select one of possible values.
When user Select a value, it is passed into the field at the calling form.

This is the main form:

<tr> <td width=25%>Type:</td><td><input type=\"text\" name=\"type\" size=20> <input type=\"submit\" name=\"typesubmit\" value=\"Find\" onClick=\"window.open('./search.php?', '_gltypesearch', 'HEIGHT=300,resizable=yes,WIDTH=600');return false;\" /> </td> </tr>

This is the function (in popup form) that sends the selected value to Main Form:

function refresh_name(selected_name) { opener.document.forms[0].type.value = selected_name; opener.focus(); window.close(); }

And the Select Option is like this:

<select name=\"name_list\"> <option>A</option> <option>B</option> </select> <input type=\"submit\" onClick=\"refresh_name(this.form.name_list.options[this.form.name_list.selectedIndex ].value);return false;\" name=\"use\" value=\"Select\" />

This worked fine in FireFox. But didn't worked in Internet Explorer. I found one suggestion that asked to qualify opener object with window ( window.opener.document...). It didn't worked either for IE.

It worked when I put value clause within option tag, like this,
<option value='A'>A</option>
<option value='B'>B</option>
Lesson 1: Never forget the value clause in form controls.
Lesson 2: FF is better than IE. What works in FF may not work in IE.

ajaysajay

Dell and SigmaTel: Hear what you say

I've faced this problem with Dell Inspiron. This may applies to other cases as well.

I wanted to hear when I record (or even when I do not record - just hear into my speakers when I use my microphone). But I cannot see Microphone on Volume Control, so I can record, but cannot hear what I am recording at same time. I remember I could do that on some other machine in Windows 95.

This is the place where I got the solution:
http://forums.us.dell.com/supportforums/board/message?board.id=insp_audio&message.id=24735&c=us&l=en&cs=&s=gen

Dell ships the Inspirons with the ability to monitor the input at the mic jack turned off. The Key DisableMicFromPlayback has a default value of 01. It should be 00 to enable microphone while playback. The above post details the steps for making necessary changes. It involves Registry changes, and restart.

ajaysajay

Feb 25, 2006

SAP CRM: Claims and Reality

Just noticed some articles about SAP:

SAP acknowledges barrier to mySAP CRM implementations

SAP claims to have 3,000 customers using CRM, but we believe only about a third of those are in full deployment.

The scandal of SAP's idle CRM seats

As many as 2,000 customers who’ve bought licences from SAP aren’t live yet
Why pay SAP for software you don't use?

Quote...

Living on Earth is expensive, but it does include a free trip around the sun every year.

WAMP

I've been trying to load Apache, MySQL and PHP on Windows XP. It is possible to do it, but you've to go through a lot of documents.
Reading documentation is okay, and in most cases I prefer going through documentation before getting into any product.
But many times it is not easy to find errors in documentation. Most of the time I was able to resolve problem after googling the error messages. But it takes time. I'd like to allocate that time to explore the features instead of fighting with installation.
So far Open Source Softwares have not been as efficient in this aspect. Many Open Sources Software Gurus feel that command line interface is better choice over GUI. True, but if you've time constraints, then copying and moving setup files, setting configurations etc is a problem.
After setting up AMP manually, I was struggling with some additional modules (PDF and MSSQL), I noted another open source project - XAMPP by ApacheFriends (http://www.apachefriends.org/en/ ). I was not willing to uninstall everything and try it, but after struggling with these modules, I gave it a chance. And setting up Apache, MySQL and PHP on Windows XP was like setting up a simple Windows application.
If you are looking for these this combination in development environment, a product like XAMPP is a good starting point. There are few concerns about using this for production environment. I read these elsewhere, and maybe I'll be writing about these concerns and solutions, once I explore this.
Still installing everything manually and making it work together is important, as it gives the real understanding of what is happening inside. I also plan to write about the issues I encountered while manual install.

ajaysajay

Hello World!

This is just to check if I can write from my email account.

ajaysajay