Previous

Recent From Databases

Create a Data Generator using sequence a...

Create a Data Generator using sequence and a loop in Oracle DB Posted by on Mar 1, 2013

Recent From Microsoft

OneDrive for Business stops syncing libr...

OneDrive for Business stops syncing libraries, or the icon overlays don’t appear on synchronized files and folders after you install Office 2016 Posted by on Sep 30, 2015

Recent From OSes

How to install Code::Blocks with a Fortr...

How to install Code::Blocks with a Fortran compiler Posted by on Oct 23, 2014

Recent From Programming

How to fix VB application not running on...

How to fix VB application not running on Windows Vista, 7 or 8 Posted by on Feb 1, 2013

Recent From Scripts & Batch

How to check a Hard Disk’s health ...

How to check a Hard Disk’s health status Posted by on Jul 2, 2013

Recent From Tools & Technical

How to remove a “not a member of t...

How to remove a “not a member of the local group” user in Windows XP Home Posted by on Aug 27, 2013

Recent From Web development

How to translate pages with WPML in Divi...

How to translate pages with WPML in Divi – YouTube Posted by on Oct 5, 2015
Next

Recent Posts

How to create a simple Backup script using windows HTA

Prerequisites:

  • a notepad (I recommend: notepad++)
  • some HTML knowledge
  1. Start a simple HTML page and add the following as the main structure:[xml]<head>
    <title>Backup Reminder</title>
    <HTA:APPLICATION
    APPLICATIONNAME=”Backup Reminder”
    ID=”myware”
    VERSION=”1.0″
    CAPTION=”yes”
    BORDER=”normal”
    SYSTEMMENU=”yes”
    MAXIMIZEBUTTON=”no”
    MINIMIZEBUTTON=”no”
    ICON=”gumware.ico”
    SCROLL=”no”
    SCROLLFLAT=”yes”
    SINGLEINSTANCE=”yes”
    CONTEXTMENU=”yes”/><style>
    img{border: 0px}
    input{color: blue; background-color: white; font-variant:small-caps;
    font-family: Arial,Helvetica,sans-serif; border: 1px solid blue}
    H1,H2,H3,H4,H5,H6,P,BODY,UL{font-family: Arial, Helvetica, sans-serif}
    </style>
    </head>[/xml]
read more

How to make Firefox search from the address bar

1. Type the following in the address bar:

[text]about:config[/text]

2. In the search field type:

[text]keyword[/text]

Result:
keyword.URL
keyword.enabled

3. Double-click “keyword.enabled” to be set to false.

4. Double-click the “keyword.URL” to set your source search engine:

Bing: http://www.bing.com/search?q

 

Restart Firefox and enjoy searching from the address bar!

read more

Create a Data Generator using sequence and a loop in Oracle DB

Create a sequence (i.e. “tmp” starting with 10001) to be used in statements:

[sql]CREATE SEQUENCE TMP
START WITH 10001
MAXVALUE 9999999999999999999999
MINVALUE 1[/sql]

Enter the following in a DB-Tool editor:

[sql]begin
FOR Lcntr IN 1..10000
LOOP
insert into customer (surname, forname, some_id, some_field)
values (‘SN’ || tmp.nextval, ‘FN’ || tmp.nextval, 123456, ‘abcdef’);
END LOOP;
commit;
end;[/sql]

Output should be something like this:

[text]SN50076,FN50076,123456,abcdef
SN50077,FN50077,123456,abcdef
SN50078,FN50078,123456,abcdef
SN50079,FN50079,123456,abcdef
SN50080,FN50080,123456,abcdef
SN50081,FN50081,123456,abcdef[/text]

read more

How to create a bootable usb to install Windows X

Firstly, insert your USB  (WARNING: the following steps will erase ALL DATA on selected USB!!).

Open a cmd prompt and type “diskpart” to start the partitioning program:

[bash]list disk # <– to list the disks on the system

# Disk ### Status Size Free Dyn Gpt
# ——– ————- ——- ——- — —
# Disk 0 Online 931 GB 3072 KB
# Disk 1 Online 1944 MB 0 B
# Disk 2 Online 7498 MB 0 B <– this will be our selected disk

select disk 2

# Disk 2 is now the selected disk.

clean

# DiskPart succeeded in cleaning the disk.

create primary partition

# DiskPart succeeded in creating the specified partition.

select partition 1

# Partition 1 is now the selected partition.

active # <– make the partition active

# DiskPart marked the current partition as active.

format fs=ntfs quick

assign # <– assign a letter to the drive

# DiskPart successfully assigned the drive letter or mount point.[/bash]

Your drive is now ready to copy a loaded iso DVD of your version of Windows.

 

read more

JMS error when running/debugging ADF application with JDev (10g)

If you get the following or similar error:

OC4J – (SEVERE) Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig (jms.xml)

You may need to delete all contents within the “persistence” folder:

[text]jdev10.1.3.5.adf\jdev\system\oracle.j2ee.10.1.3.43.6\embedded-oc4j\persistence\[/text]

read more

How to Factory Restore the system for various PC models

Lenovo S10 : Lenovo OneKey Rescue System v7.0

  1. Press the “OneKey Recovery” button on right side of display (like and upside-down U)
  2. Click on “OneKey Recovery” icon on screen
  3. Choose “Restore from initial backup” and click “Next”
    WARNING: ALL YOUR DATA/PARTITIONS WILL BE ERASED!
  4. Click “Start”

Dell Inspiron N5110 : Dell DataSafe

  1. Press the F8 while booting the PC to get you to the windows “Advanced Boot Screen”
  2. Choose language and an administrator user and click Next to continue
  3. Click on “Dell DataSafe Restore and Emergency Backup”
  4. Choose “Select other System Backup and more options” and click “Next”
  5. Choose “Restore my Computer” and click “Next”
  6. Select the “Factory Image” from the list and click “Next”
  7. Choose “Restore without preserving new or changed files” and click “Next”
  8. Choose “Yes, continue”
    WARNING: ALL YOUR DATA/PARTITIONS WILL BE ERASED!
  9. Click “Next”
read more

How to fix VB application not running on Windows Vista, 7 or 8

Older VB application built on VB 5 or 6 may not work properly under the newer versions of Windows Vista, 7 or 8. The app may even require specific dll or other file to be registered on the system.

  1. You may need to register MSCOMCT2.OCX and/or COMCTL32.OCX
  2. For a 32bit system run as follows:
    [text]Regsvr32 MSCOMCT2.OCX[/text]
  3. For a 64bit system run this:
    [text]Regsvr32 c:\windows\SysWOW64\MSCOMCT2.OCX[/text]

Do the same for other files if needed.

read more