Monday, August 17, 2020

Error: JavaFX runtime components are missing, and are required to run this application (Debian 10 )

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

First install Java if not installed by default

sudo apt install default-jre

Test it with java -version

if you want to install JDK

sudo apt install default-jdk

Test it with javac -version

Install Javafx 

sudo apt install openjfx  

Add module-path with argument like

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 




Tuesday, July 28, 2020

Debain buster not showing Windows Network Shared Folder. Connect to server smb:// not working

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)

After the successful installation of smbclient opens the up the /etc/samba/smb.conf file and right after the workgroup = WORKGROUP add the below line to change the default.

client max protocol = NT1

if not working try...

client min protocol = NT1

you just need to save the file and reboot the system.

Note: Reboot is necessary otherwise the above solution will not work.

Sunday, July 26, 2020

Repair or Reinstall Grub boot loader on dual boot Windows & Linux

Update Windows system on dual boot machine with Debain 10. Boot menu disappear after updating or replacing Windows 7

To make Grub Boot Loader working again:

visit: https://stackoverflow.com/questions/39685910/how-to-install-grub-after-installing-windows-10

Boot from Linux Live CD Ubuntu/Mint or any other
  1. mount your Linux installed partition to some mount point. here XY is the number of your Linux distro partition.

    sudo mount <root-partition[e.g. /dev/sdaXY]> <mount-point[e.g. /mnt/]>
    
  2. Now bind some essential live root partition directories to mounted root partition at /mnt.

    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
    
  3. Now, change the root to newly mounted partition directory.

    sudo chroot <mount-point[e.g. /mnt/]>
    
  4. Now, install the GRUB using grub-install command at your HDD MBR.

    grub-install /dev/sda
    
  5. Finally update the grub entries to show newly detected partition operating systems.

    update-grub
    
  6. And at last unmount all the binded partition directories, and then reboot.

    sudo reboot
    

Sunday, July 12, 2020

Boot Debian 10 with splash screen

edit file /etc/default/grub

for safety before edit file copy file with new name :
sudo cp grub grub_bakup

commnet line:
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
add new line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=SVIDEO-1:d"







Save file

run in terminal:
sudo update-grub

Restart System

Monday, January 19, 2015

Raspberry Pi B+ Model HDMI to VGA Problem

Using HDMI to VGA converter ( using old VGA Montors)  gives with Raspberry Pi may create following problems:

- No Display
- Inconsistent Display ( Some time on/Some time off )
- Display Suddenly go off

Pl Check /BOOT/config.txt file
and make sure following lines there
disable_overscan=1
hdmi_group=1
hdmi_mode=16
hdmi_drive=2
 OR
disable_overscan=1
hdmi_group=2
hdmi_mode=16
hdmi_drive=2 

 For more details visit... http://www.raspberrypi.org/documentation/configuration/config-txt.md

Above Problem solution courtesy... http://tech.enekochan.com/en/2013/05/28/fix-black-screen-in-raspberry-pi-with-hdmi-to-vga-adapter/



Thursday, May 8, 2014

Running Android Device (Mobile/Tab) as an Emulator in ADT

First visit this article... http://developer.android.com/tools/device.html

If can not find your USB Vendor IDs

Pl run command lsusb on terminal and take 4 char before :(colon)

ie here IDs is 0bb4...
Bus 001 Device 002: ID 0bb4:0c03 High Tech Computer Corp.

edit this code at file /etc/udev/rules.d/51-android.rules.
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" 

Change running config... Target Device.. Always prompt to pick device

Select Your Mobile/Tab when ask for device to run.

Monday, March 10, 2014

Warning: require_once() [function.require-once]: SAFE MODE Restriction in effect.

After migration to new server Linux-Php on share hosting following error occur

Warning: require_once() [function.require-once]: SAFE MODE Restriction in effect. 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

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

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

Resolve it by adding Include path in your php script....

some server not support
require_once( "/home/yourdomain/php/DB.php" );

It should be...
$path = '/home/yourdomain/php/';
set_include_path($path . PATH_SEPARATOR . get_include_path());
require_once( "DB.php" );

Saturday, November 24, 2012

Perl Script gives 500 Internal server error on shared hosting

Perl script throws error...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
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.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Following steps need to solve problem
Just try following code with test.pl...with execution permission (755) on folder (cgi-bin) www.yourdomain.com/cgi-bin/ and file test.pl
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "testing...\n";


and if it works than no problem with server side configuration.

If not works than add -w in first line...
#!/usr/bin/perl -w
if not works than it may server configuration problem

Got clue from... http://encodable.com/internal_server_error/ Thanks to them.

Friday, November 16, 2012

Server migration problems and php with pear display blank page (PHP Path Problem)

My service provider( linux share hosting ) migrated my website to another server and following problems started
1)
require_once("DB.php"); gives error...
Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in /home/username/public_html/test.php on line 9

Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/test.php on line 9

2)
if you replace require_once("DB.php");
WITH full path...
require_once("/home/username/php/DB.php");
THAN IT DISPLAY BLANK PAGE!!!

Possible Solutions:

1) If your service provider ready to edit php.ini than request them to add PEAR path (most recommended )
2) edit .htaccess file and add
php_value include_path "/yourpath/mywebsite" ( NOT Recommended )
you may have to use ALLOW OVERRIDE 
3) edit your source code and add path
$path = '/home/username/php/';
set_include_path($path . PATH_SEPARATOR . get_include_path()); 

Conclusion:

ALL SHARE HOSTING PROVIDER must co-operate their user and
check all path with php.ini

Tuesday, August 28, 2012

"Access is Denied" error message when you try to open a folder

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.
Will not allow to access folders as different user permission with old machine.
Solution is simple here...
http://support.microsoft.com/?kbid=810881

Thursday, May 26, 2011

Export Excel CSVs with Double Quotes

visit... http://www.markinns.com/articles/full/export_excel_csvs_with_double_quotes

Very useful to transfer data from Excel to CSV. without this VBA code you have to replace all , with space

Use this with CSV using LOAD DATA and use Local LOCAL keyword

Friday, December 17, 2010

Excel adding days to specifc date gives error #VALUE!

Excel 2000 onward...
Content of B1 Cell : 17/12/2010
Content of A4 Cell : 7
Formula of C5 cell : =B1+A4

Gives error at C5 Cell #VALUE!

Solution:
With WinXp Change setting Date to dd/MM/yyyy ( Control Panel- Regional and Langauge Options - Customized - Date - Short Date )

After resolving problem content of C5 : 24/12/2010

Sunday, November 8, 2009

Restrict users to specified programs or applications in WindowsXp

-Login as an administarator
-Run Policy editor ( start - run - gpedit.msc )
-Navigate following folder...
Local Computer Policy\User Configuration\Administrative Templates\System in the left pane
-Now double click the option Don't Run specified Windows applications in the right pane.
-Now select the Enabled and click Show button
-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.
For eg. type iexplore.exe not to allow Internet Explorer to run.
-If you want to add more applications then type their names under the first one and so on.
-Click OK button.
-Click Apply and then OK button in Run only specified Windows applications window.
-Close Local Group Policy Editor window and you are done.

More on Policy Editor...
How To Use the Group Policy Editor to Manage Local Computer Policy in Windows XP

Thursday, July 2, 2009

Re: Divya Bhaskar noted my Open Source efforts

Divya Bhaskar a leading Gujarati Daily took note of my Open source efforts a part of Social-Eduction Projects.

My FireFox Add-Ons "Income Tax Calculator" now goes to public...

Divya Bhaskar...
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

My Add-on link...
https://addons.mozilla.org/en-US/firefox/addon/10095

I am very much thank full to column writer Mr.Himanshu Kikani for taking my efforts to public and also appreciate his creation http://cybersafar.com/

Sunday, June 28, 2009

Re: LOAD DATA INFILE selective column

I want to import data from Local file(CSV) to Mysql 5.0 table with only selected column.

My PHP code is... as per Mysql5.0 syntax
$query="LOAD DATA LOCAL INFILE '". @mysql_escape_string($tmpupfile) . "' INTO TABLE item_master (item_code,item_desc) FIELDS TERMINATED BY '" . "," ."'";

It gives syntax error.

Following works fine... put column(field) list at the end.

$query="LOAD DATA LOCAL INFILE '". @mysql_escape_string($tmpupfile) . "' INTO TABLE item_master FIELDS TERMINATED BY '" . "," ."' (item_code,item_desc)";

Thursday, June 18, 2009

Writing Blog in Hindi

आप हिंदी, गुजराती, मराठी और अन्य भारतीय भाषा में आसानी से लिख सकते हे|
इसके लिए आप http://www.google.com/transliterate/indic/Hindi की मुलाकात ले |
वहा से कॉपी कर के अपने ब्लॉग में पेस्ट करे और कोई भी UTF-8 एडिटर में एडिट केरे !
धन्यवाद सह,
कार्तिकेय

Saturday, June 13, 2009

Fatal 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..

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

Solution:
I made following change in Quickform.php...
line
require_once 'PEAR.php';
replace with line
require_once 'PEAR5.php';

just force to use PEAR5

You may also change PEAR.php by adding if (!function_exists("_pear_call_destructors()")){
before line
function _pear_call_destructors(){
also add } after end of Function.

Tuesday, April 21, 2009

JavaScript Dynamic content Generation Problem

if you generate dynamic content through JavaScript by
document.write('<html><head><h2>'+ varHeading +'</h2></head><body></body></html>');
this page will works fine but if you generate more dynamic content from this page onward it will not display anything without any error.
Solution:
every phase should end with document.close();

MYSql 5 GROUP BY query not support Field Name "div"

in MySql 5 query...
SELECT std,div,rollno,marks FROM result_data GROUP BY std,div
gives Error...
Error is due to field name div
Solution: Change Field Name div -> divi or other.

It works fine with MySql 4.

Wednesday, April 1, 2009

readonly not works in JavaScript DOM

DOM- Javascript if you are using...
document.getElementById("idTest").readonly=true;
it will not work.
we have to use readOnly instead of readonly
correct is...
document.getElementById("idTest").readOnly=true;