tag:blogger.com,1999:blog-74077638060938503682024-03-06T11:14:42.869+05:30Kartikeya's Knowledge Resource Centerkartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.comBlogger41125tag:blogger.com,1999:blog-7407763806093850368.post-81436682730008822020-08-17T22:21:00.000+05:302020-08-17T22:21:28.333+05:30Error: JavaFX runtime components are missing, and are required to run this application (Debian 10 )<p><span style="font-family: arial;">Running jar file ( Income Tax India Return filing utilty) on debain 10 gives... Error: JavaFX runtime components are missing, and are required to run this application</span></p><p><span style="font-family: arial;">First install Java if not installed by default</span></p><i>sudo apt install default-jre<br /></i><br />Test it with java -version <br /><br />if you want to install JDK<br /><br /><i>sudo apt install default-jdk </i><p class="code-pre command prefixed" style="text-align: left;"><code><span style="font-size: medium;"><span style="font-family: arial;">Test it with javac -version</span></span></code></p><p class="code-pre command prefixed" style="text-align: left;"><code><span style="font-size: medium;"><span style="font-family: arial;">Install Javafx </span></span></code></p><p class="code-pre command prefixed" style="text-align: left;"><code><i><span style="font-size: medium;"><span style="font-family: arial;">sudo apt install openjfx </span></span></i></code></p><p class="code-pre command prefixed" style="text-align: left;"><code><span style="font-size: medium;"><span style="font-family: arial;">Add module-path </span></span><span style="font-size: medium;"><span style="font-family: arial;">with argument like</span></span></code></p><p class="code-pre command prefixed" style="text-align: left;"><code><span style="font-size: medium;"><span style="font-family: arial;"><i>java --module-path /usr/share/openjfx/lib/ --add-modules=javafx.base --add-modules=javafx.fxml --add-modules=javafx.graphics --add-modules=javafx.controls --add-modules=javafx.media --add-modules=javafx.web --add-modules=javafx.controls --add-modules=javafx.swing -jar ITR-3_AY201920_PR2.jar </i></span></span></code></p><p class="code-pre command prefixed" style="text-align: left;"><code><span style="font-size: medium;"><span style="font-family: arial;"><i><br /></i><br /></span></span></code></p><p class="code-pre command prefixed" style="text-align: left;"><code><span style="font-size: medium;"><span style="font-family: arial;"></span></span><i><span style="font-size: medium;"><span style="font-family: arial;"><br /></span></span></i></code></p>Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-31332362395925518042020-07-28T18:39:00.002+05:302020-08-06T16:57:20.273+05:30Debain buster not showing Windows Network Shared Folder. Connect to server smb:// not working<div>In spite of all setting of Samba on Debian buster not accessing Windows Network from Explorer or not working smb://192.168.1.3 (window ip address or computer name)</div><div><br /></div><div>After the successful installation of <a aria-label="smbclient (opens in a new tab)" href="https://www.samba.org/samba/docs/current/man-html/smbclient.1.html" rel="noreferrer noopener" target="_blank">smbclient</a> opens the up the <b>/etc/samba/smb.conf</b> file and right after the <code>workgroup = WORKGROUP</code> add the below line to change the default.<span><br /></span></div><div><span><br /></span></div><div><b><span>client max protocol = NT1</span></b></div><div><b><span><br /></span></b></div><div><span>if not working try...</span></div><div><b><span><br /></span></b></div><div><div><b><span>client <i>min</i> protocol = NT1</span></b></div><div><b><span></span></b></div></div><div><b><span><br /></span></b></div><div><span>you just need to save the file and <b>reboot the system.
</b></span><p><b>Note:</b> Reboot is necessary otherwise the above solution will not work.</p></div>Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-62182602406272296962020-07-26T18:08:00.002+05:302020-07-26T18:08:58.393+05:30Repair or Reinstall Grub boot loader on dual boot Windows & Linux<div>Update Windows system on dual boot machine with Debain 10. Boot menu disappear after updating or replacing Windows 7 <br /></div><div><br /></div><div>To make Grub Boot Loader working again:</div><div><br /></div><div>visit: https://stackoverflow.com/questions/39685910/how-to-install-grub-after-installing-windows-10 <br /></div><div><br /></div><div>Boot from Linux Live CD Ubuntu/Mint or any other</div><div><ol><li><p>mount your Linux installed partition to some mount point. here XY is the number of your Linux distro partition.</p>
<pre><code>sudo mount <root-partition[e.g. /dev/sdaXY]> <mount-point[e.g. /mnt/]>
</code></pre></li><li><p>Now bind some essential live root partition directories to mounted root partition at /mnt.</p>
<pre><code>sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys
</code></pre></li><li><p>Now, change the root to newly mounted partition directory.</p>
<pre><code>sudo chroot <mount-point[e.g. /mnt/]>
</code></pre></li><li><p>Now, install the GRUB using grub-install command at your HDD MBR.</p>
<pre><code>grub-install /dev/sda
</code></pre></li><li><p>Finally update the grub entries to show newly detected partition operating systems.</p>
<pre><code>update-grub
</code></pre></li><li><p>And at last unmount all the binded partition directories, and then reboot.</p>
<pre><code>sudo reboot
</code></pre></li></ol> </div>Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-15575824556668270822020-07-12T18:33:00.003+05:302020-07-12T18:33:50.859+05:30Boot Debian 10 with splash screen<div dir="ltr" style="text-align: left;" trbidi="on">
edit file /etc/default/grub<br />
<br />
for safety before edit file copy file with new name :<br />
sudo cp grub grub_bakup<br />
<br />
commnet line:<br />
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"<br />
add new line<br />GRUB_CMDLINE_LINUX_DEFAULT=<b>"quiet splash video=SVIDEO-1:d"</b><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />Save file<br />
<br />
run in terminal:<br />
<big><strong><tt class="backtick">sudo update-grub</tt></strong></big><br />
<br />
<big><strong><tt class="backtick">Restart System </tt></strong></big></div>
Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-29428126169143254692015-01-19T12:51:00.001+05:302015-01-19T12:51:34.044+05:30Raspberry Pi B+ Model HDMI to VGA Problem<div dir="ltr" style="text-align: left;" trbidi="on">
Using HDMI to VGA converter ( using old VGA Montors) gives with Raspberry Pi may create following problems:<br />
<br />
- No Display<br />
- Inconsistent Display ( Some time on/Some time off )<br />
- Display Suddenly go off <br />
<br />
Pl Check /BOOT/config.txt file<br />
and make sure following lines there<br />
<pre>disable_overscan=1
hdmi_group=1
hdmi_mode=16
hdmi_drive=2</pre>
OR<br />
<pre>disable_overscan=1
hdmi_group=2
hdmi_mode=16
hdmi_drive=2 </pre>
<br />
For more details visit... http://www.raspberrypi.org/documentation/configuration/config-txt.md<br />
<br />
Above Problem solution courtesy... http://tech.enekochan.com/en/2013/05/28/fix-black-screen-in-raspberry-pi-with-hdmi-to-vga-adapter/ <br />
<br />
<br />
<br />
</div>
Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-34158488815703748172014-05-08T18:26:00.000+05:302014-05-08T18:26:04.715+05:30Running Android Device (Mobile/Tab) as an Emulator in ADT<div dir="ltr" style="text-align: left;" trbidi="on">
First visit this article... http://developer.android.com/tools/device.html<br />
<br />
If can not find your USB Vendor IDs<br />
<br />
Pl run command <b>lsusb</b> on terminal and take 4 char before :(colon)<br />
<br />
ie here IDs is 0bb4...<br />
Bus 001 Device 002: ID <b>0bb4</b>:0c03 High Tech Computer Corp. <br />
<br />
edit this code at file <code>/etc/udev/rules.d/51-android.rules</code>.<br />
<code>SUBSYSTEM=="usb", ATTR{idVendor}=="<b>0bb4</b>", MODE="0666", GROUP="plugdev"</code>
<br />
<br />
Change running config... Target Device.. Always prompt to pick device<br />
<br />
Select Your Mobile/Tab when ask for device to run.<br />
<br /></div>
Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-45528996420932612542014-03-10T16:13:00.002+05:302014-03-10T16:13:38.801+05:30Warning: require_once() [function.require-once]: SAFE MODE Restriction in effect.<div dir="ltr" style="text-align: left;" trbidi="on">
<b>After migration to new server</b> Linux-Php on share hosting following error occur<br />
<br />
Warning: require_once() [function.require-once]: <b>SAFE MODE Restriction
in effect. </b>The script whose uid is 1438 is not allowed to access
/usr/lib/php/PEAR.php owned by uid 0 in /home/yourdomain/php/DB.php on line
30<br />
<br />
Warning: require_once(/usr/lib/php/PEAR.php) [function.require-once]:
failed to open stream: No such file or directory in
/home/yourdomain/php/DB.php on line 30<br />
<br />
Fatal error: require_once() [function.require]: Failed opening required
'PEAR.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/yourdomain/php/DB.php on line 30<br />
<br />
Resolve it by adding Include path in your php script....<br />
<br />
some server not support<br />
require_once( "/home/yourdomain/php/DB.php" ); <br />
<br />
It should be...<br />
$path = '/home/yourdomain/php/';<br />
<b>set_include_path($path . PATH_SEPARATOR . get_include_path());</b><br />
require_once( "DB.php" );</div>
Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-45737249616103458312012-11-24T12:24:00.000+05:302012-11-24T12:24:05.155+05:30Perl Script gives 500 Internal server error on shared hosting<div dir="ltr" style="text-align: left;" trbidi="on">
Perl script throws error...<br />
<h1>
Internal Server Error</h1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<br />
Please contact the server administrator,
webmaster@yourdomain.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<br />
More information about this error may be available
in the server error log.<br />
Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.<br />
<br />
Following steps need to solve problem<br />
Just try following code with <b>test.pl.</b>..with execution permission <span style="font-size: large;"><b>(755)</b></span> on folder <span style="font-size: large;"><b>(cgi-bin) </b></span>www.yourdomain.com/<b>cgi-bin</b>/ and file<span style="font-size: large;"> <b>test.pl</b></span><br />
<span style="background-color: yellow;"><b>#!/usr/bin/perl</b><br />print "Content-type: text/plain\n\n";<br />print "testing...\n";</span><br />
<br />
and if it works than no problem with server side configuration.<br />
<br />
If not works than add <b>-w </b>in first line... <br />
<div style="text-align: left;">
<b>#!/usr/bin/perl <span style="font-size: large;">-w</span></b></div>
<div style="text-align: left;">
if not works than it may server configuration problem</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Got clue from... http://encodable.com/internal_server_error/ Thanks to them.</div>
<div style="text-align: left;">
<br /></div>
</div>
Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-72155539840018929392012-11-16T16:32:00.001+05:302012-11-16T16:41:15.548+05:30Server migration problems and php with pear display blank page (PHP Path Problem)<div dir="ltr" style="text-align: left;" trbidi="on">
My service provider( linux share hosting ) migrated my website to another server and following problems started<br />
1)<br />
require_once("DB.php"); gives error...<br />
<b>Warning</b>: require_once(DB.php) [<a href="http://lab108.com/function.require-once">function.require-once</a>]: failed to open stream: No such file or directory in <b>/home/username/public_html/test.php</b> on line <b>9</b><br />
<br />
<b>Fatal error</b>: require_once() [<a href="http://lab108.com/function.require">function.require</a>]: Failed opening required 'DB.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/username/public_html/test.php</b> on line <b>9</b> <br />
<br />
2)<br />
if you replace <b>require_once("DB.php");</b><br />
WITH full path...<br />
<b>require_once("/home/username/php/DB.php");</b><br />
THAN IT <b>DISPLAY BLANK PAGE</b>!!!<br />
<br />
<h3 style="text-align: left;">
<b>Possible Solutions:</b></h3>
1) If your service provider ready to edit php.ini than request them to add PEAR path <b>(most recommended ) </b><br />
2) edit .htaccess file and add <br />
<pre>php_value include_path "/yourpath/mywebsite" <b>( NOT Recommended )</b></pre>
<pre>you may have to use ALLOW OVERRIDE </pre>
<pre>3) edit your source code and add path</pre>
<pre><b>$path = '/home/username/php/';
set_include_path($path . PATH_SEPARATOR . get_include_path()); </b></pre>
<pre></pre>
<h3 style="text-align: left;">
Conclusion:</h3>
<pre>ALL SHARE HOSTING PROVIDER must co-operate their user and</pre>
<pre>check all path with php.ini</pre>
</div>
Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-66657158397894976202012-08-28T17:28:00.001+05:302012-08-28T17:28:16.192+05:30"Access is Denied" error message when you try to open a folder<div dir="ltr" style="text-align: left;" trbidi="on">
To retrieve data from Hard disk ( from other/old Machine and connected as secondary in the new/data retrieval machine boot with winXp with Primary hard disk ) WinXp.<br />
Will not allow to access folders as different user permission with old machine.<br />
Solution is simple here...<br />
http://support.microsoft.com/?kbid=810881 </div>
Kartikhttp://www.blogger.com/profile/18298131918028104584noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-57509898972644660192011-05-26T12:29:00.005+05:302011-05-26T12:47:38.951+05:30Export Excel CSVs with Double Quotesvisit... <a href="http://www.markinns.com/articles/full/export_excel_csvs_with_double_quotes">http://www.markinns.com/articles/full/export_excel_csvs_with_double_quotes</a><br /><br />Very useful to transfer data from Excel to CSV. without this VBA code you have to replace all , with space<br /><br />Use this with CSV using LOAD DATA and use Local LOCAL keywordkartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-21333505611664533962010-12-17T19:45:00.003+05:302010-12-17T19:53:43.526+05:30Excel adding days to specifc date gives error #VALUE!Excel 2000 onward...<br />Content of B1 Cell : 17/12/2010<br />Content of A4 Cell : 7<br />Formula of C5 cell : =B1+A4<br /><br />Gives error at C5 Cell #VALUE!<br /><br />Solution:<br />With WinXp Change setting Date to dd/MM/yyyy ( Control Panel- Regional and Langauge Options - Customized - Date - Short Date )<br /><br />After resolving problem content of C5 : 24/12/2010kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com1tag:blogger.com,1999:blog-7407763806093850368.post-83643036113240225652009-11-08T11:35:00.000+05:302009-11-08T11:52:58.386+05:30Restrict users to specified programs or applications in WindowsXp-Login as an administarator<br />-Run Policy editor ( start - run - gpedit.msc )<br />-Navigate following folder...<br />Local Computer Policy\User Configuration\Administrative Templates\System in the left pane<br />-Now double click the option Don't Run specified Windows applications in the right pane.<br />-Now select the Enabled and click Show button<br />-In the Show Contents dialog box type the name of the application (.exe file name) which you want to allow user not to run under List of Not allowed applications statement.<br />For eg. type iexplore.exe not to allow Internet Explorer to run.<br />-If you want to add more applications then type their names under the first one and so on.<br />-Click OK button.<br />-Click Apply and then OK button in Run only specified Windows applications window.<br />-Close Local Group Policy Editor window and you are done. <br /><br />More on Policy Editor...<br /><a href="http://support.microsoft.com/kb/307882">How To Use the Group Policy Editor to Manage Local Computer Policy in Windows XP</a>kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com1tag:blogger.com,1999:blog-7407763806093850368.post-71080273471584608822009-07-02T10:01:00.002+05:302009-07-02T10:12:32.679+05:30Re: Divya Bhaskar noted my Open Source effortsDivya Bhaskar a leading Gujarati Daily took note of my Open source efforts a part of Social-Eduction Projects.<br /><br />My <span style="font-weight:bold;">FireFox Add-Ons "Income Tax Calculator"</span> now goes to public...<br /><br />Divya Bhaskar...<br />http://epaper.divyabhaskar.co.in/bigwin.aspx?url=EpaperImages\01072009\Aa123-large.jpg&eddate=7/1/2009&pageno=3&edition=45&prntid=113913&bxid=966&pgno=3 <br /><br />My Add-on link...<br />https://addons.mozilla.org/en-US/firefox/addon/10095 <br /><br />I am very much thank full to column writer <span style="font-weight:bold;">Mr.Himanshu Kikani</span> for taking my efforts to public and also appreciate his creation <span style="font-weight:bold;">http://cybersafar.com/ </span>kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-87567815865515737322009-06-28T18:41:00.003+05:302009-06-28T18:52:03.443+05:30Re: LOAD DATA INFILE selective columnI want to import data from Local file(CSV) to Mysql 5.0 table with only selected column.<br /><br />My PHP code is... as per Mysql5.0 syntax<br />$query="LOAD DATA LOCAL INFILE '". @mysql_escape_string($tmpupfile) . "' INTO TABLE item_master <span style="font-weight:bold;">(item_code,item_desc)</span> FIELDS TERMINATED BY '" . "," ."'";<br /><br />It gives syntax error.<br /><br />Following works fine... put column(field) list at the end.<br /><br />$query="LOAD DATA LOCAL INFILE '". @mysql_escape_string($tmpupfile) . "' INTO TABLE item_master FIELDS TERMINATED BY '" . "," ."' <span style="font-weight:bold;">(item_code,item_desc)</span>";kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-74961061184375157502009-06-18T22:58:00.001+05:302009-06-18T23:09:37.333+05:30Writing Blog in Hindiआप हिंदी, गुजराती, मराठी और अन्य भारतीय भाषा में आसानी से लिख सकते हे|<br />इसके लिए आप http://www.google.com/transliterate/indic/Hindi की मुलाकात ले | <br />वहा से कॉपी कर के अपने ब्लॉग में पेस्ट करे और कोई भी UTF-8 एडिटर में एडिट केरे !<br />धन्यवाद सह,<br />कार्तिकेयkartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-83579253593963743912009-06-13T16:06:00.002+05:302009-06-13T16:19:08.915+05:30Fatal error: Cannot redeclare _pear_call_destructors()I was using PEAR HTML_Quick_forms and using my ISP PEAR.php and Quickform.php I got following message..<br /><br />Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /home/myusername/myuserincludes/PEAR/PEAR.php:765) in /usr/lib/php/PEAR.php on line 796<br /><br />Solution:<br />I made following change in Quickform.php...<br />line <br />require_once '<span style="font-weight:bold;">PEAR.php</span>';<br />replace with line<br />require_once '<span style="font-weight:bold;">PEAR5.php</span>';<br /><br />just force to use PEAR5<br /><br />You may also change PEAR.php by adding if (!function_exists("_pear_call_destructors()")){<br />before line <br />function _pear_call_destructors(){<br />also add } after end of Function.kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com2tag:blogger.com,1999:blog-7407763806093850368.post-60955073020507923392009-04-21T17:31:00.003+05:302009-04-21T18:37:47.375+05:30JavaScript Dynamic content Generation Problemif you generate dynamic content through JavaScript by<br />document.write('<html><head><h2>'+ varHeading +'</h2></head><body></body></html>');<br />this page will works fine but if you generate more dynamic content from this page onward it will not display anything without any error.<br />Solution:<br />every phase should end with document.close();kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-65508556422916286082009-04-21T17:25:00.003+05:302009-04-21T18:39:34.383+05:30MYSql 5 GROUP BY query not support Field Name "div"in MySql 5 query...<br />SELECT std,div,rollno,marks FROM result_data <span style="font-weight: bold;">GROUP BY std,<span style="font-style: italic; color: rgb(255, 0, 0);">div</span></span><br />gives Error...<br />Error is due to field name <span style="color: rgb(255, 0, 0);">div </span><br />Solution: Change Field Name div -> divi or other.<br /><br />It works fine with MySql 4.kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-46160102266355312562009-04-01T22:47:00.003+05:302009-04-01T22:52:59.309+05:30readonly not works in JavaScript DOMDOM- Javascript if you are using...<br />document.getElementById("idTest").readonly=true;<br />it will not work.<br />we have to use <span style="font-weight: bold;">read<span style="color: rgb(255, 0, 0);">O</span>nly</span> instead of <span style="font-weight: bold;">readonly</span><br />correct is...<br />document.getElementById("idTest").readOnly=true;kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-3962081638287251582009-03-20T18:07:00.002+05:302009-03-20T18:12:47.224+05:30csrcs.exe virus remove manually1. Go to Task manager and stop<span style="font-weight: bold;"> csrcs.exe</span> Process ( <span style="font-weight: bold;">csrss.exe</span> is windows Process )<br />2. Go Command Prompt and go to system32 folder and change attrib -r -s -h csrcs*.*<br />3. Delete all csrcs*.* including dll and exe<br />4. run regedit and find entry for csrcs. mostly it will find two entry. delete them.( Pl be careful while edit registry.kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-91153570160536982072009-03-20T17:14:00.004+05:302009-03-20T17:58:25.108+05:30local mdb data export to website backend mysql<span style="font-weight: bold;">Problem:</span> Laboratory Machine connected with rs232 update .mdb file on Local computer. We have to fetch this data from web page (web site running on service provider IIS/Apatche server) and send it to website Back-end MySql Server so everyone can use same data world wide.<br /><span style="font-weight: bold;">Solution:</span> Webpage in native PHP. write Javascript embedded into it with ADODB object... <span style="font-family:monospace;"><br />var obj = new ActiveXObject("ADODB.Connection");<br />fetch data and assign it through document.getElementById and import to input tag name by same ID.<br /></span>HTML:<br />input name=i1 type=text<br />JS:<br />document.getElementById("i1").value = jsVar;<br />PHP:<br />$PhpVar = $_GET["i1"]<br /><br />To fetch Data from Local .mdb you can use systemDSN ODBC<br /><br /><pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 750px; height: 498px; text-align: left;">var cObj = new ActiveXObject("ADODB.Connection");<br />var rS = new ActiveXObject("ADODB.Recordset");<br /><br />rS.CursorLocation = adUseClient;<br />cObj.CursorLocation = adUseClient;<br /><br />var iStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/userdata.mdb";<br />var adOpenKeyset = 1;<br />var adLockOptimistic = 3;<br />var adCmdText = 1;<br />var adUseClient = 3;<br />cObj.Open(systemDSN_Name) // or use cObj.Open(iStr)<br />var grStr = "SELECT * FROM table1 WHERE uid=12"<br /><br /><br /><br />recSet.Open(grStr,cObj,adOpenKeyset,adLockOptimistic,adCmdText)<br />recSet.AddNew;<br />var id = rS.Fields("Name").value;<br /></pre><span style="font-weight: bold;">Important:</span><br />To Access SystemDSN from another Machine on your Intranet Pl share Folder with FullAceess(Read-Write) on which your .mdb file reside. If this ignore you will get Error: <span style="font-weight: bold;">File already in use</span><br /><span style="font-weight: bold;">Settings for IE:</span><br />access Data Source across domain - Prompt/Enable.<br />ActiveX Control/Script running - Prompt/Enable.kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com1tag:blogger.com,1999:blog-7407763806093850368.post-81405132641279556242008-12-22T22:10:00.002+05:302008-12-22T22:18:38.454+05:30Income Tax Calculator India - FireFox Add-onsLaunch FireFox Add-ons. on 21 Dec 2008.<br /><br />Now Individual having Salary Income/Interest/Other Income can Calculate Income Tax Liabilities in India.<br /><br />There are Deduction of mediclaim (80D) and Other 80C (1,00,000 limit) available.<br /><br />Educational cess and Surcharge also considered.<br /><br />Suggestions are most welcome.kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com0tag:blogger.com,1999:blog-7407763806093850368.post-11822059028578698972008-12-13T18:04:00.002+05:302008-12-13T18:10:13.532+05:30Extension Developer zip fail to create xpiWhen You try to build xpi with Extension builder (Firefox 3.0 above) it gives error to create xpi file like zip failed.<br />Solution:<br />Please put xpi filename with extension<br />for example "helloworld.xpi" instead of "helloworld"kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com1tag:blogger.com,1999:blog-7407763806093850368.post-82323227611313606822008-11-03T17:02:00.003+05:302008-11-03T17:12:38.736+05:30DriveGuard.exe Virus removalSymptoms:<br />DriveGuard is Microsoft tool for removal drive protection but if you not installed it and it shows in TaskManager as DriveGuard.exe it should be malware.<br /><br />How to Remove:<br />1. Open Task Manager and End process DriveGuard.exe<br />2. Run regedit and search for "DriveGuard.exe"<br />3. Delete all entries with "DriveGuard.exe" (<span style="font-weight: bold;">be careful while edit registry</span>)<br />4. Also delete folder C:\Program Files\WinDriveGuard<br />5. Reboot the machine and check entry in task manager with DriveGurad.exe. It should not appear there.kartikeya Patelhttp://www.blogger.com/profile/07520599088878972159noreply@blogger.com1