Skip to main content

Posts

[ UBUNTU ] ping computer hostname

By default i cannot ping the computers hostname but i can ping their ip addresses. 1. Install libnss-winbind sudo apt-get install libnss-winbind 2. Modify nsswitch.conf gedit /etc/nsswitch.conf 3. Locate the line "Host:" then append with "wins" at end. so it look like this below:  hosts:          files mdns4_minimal [NOTFOUND=return] dns wins 4. Save the file then exit. 5. Restart winbind service service winbind start Reference:  http://askubuntu.com/questions/507649/ubuntu-can-not-ping-host-name-but-can-ping-ip    ---(post of Benoit )

Open / Run .bat file on Ubuntu Machine (DOS emulator set default application)

This is a quick procedure on how to run your batch file in Ubuntu Base Machine. (I assume you already have a .bat file.) Install DOS emulator. sudo apt-get update sudo apt-get install dosemu Make DOS emulator to be listed on Default Application List by editing the dosemu.desktop file. sudo gedit /usr/share/applications/dosemu.desktop Find the "Exec" variable (i.e, Exec=/usr/bin/xdosemu). Append these characters " %f" at the end of the line (i.e, Exec=/usr/bin/xdosemu %f). Save the document. Set DOS emulator as a default application for your .bat file. Right-Click .bat file Select Properties Click "Open With" Tab Select "DOS emulator" from list Click "Set as default" Close the properties window Double-Click your .bat file and you should see that it is run by Dos Emulator.  

[ UBUNTU 14 ] Zorin OS 9 - Share Folder from Standard Account

You are trying to share a folder from Standard User Account and you will get this error: "' net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permission denied You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share ." To fix this problem, you need to modify the file in /etc/group . So, Login to your administrator account first, then open terminal , and type the command sudo su and enter you admin password gedit /etc/group Find sambashare then add your standard user account there; (e.g sambashare:x:124:admin,<standard user account>). Save and Close the File. After that, you need also to modify the samba configuration file, so on the terminal type this command gedit /etc/samba/smb.conf Add this line on the Global Section, usershare owner only = false On the Share Definitions, set the create mask = 777 and directory ...

Bundy Clock Quick Setup Manual for IWATA TIME RECORDER CW-1A, CW-2A, CW-2SA

Recently, I bought IWATA bundy clock for our office and I'm happy because there is a Quick Setup Manual included in the package which is hard for me to find/download from the internet. Then I realized that it might be useful in the future so I decided to upload the manual here. Thanks,

SONY Ericsson XPERIA E15i (HARD RESET)

METHOD 1: a. Turn off your phone b. Press and hold LEFT, RIGHT and POWER buttons until the factory reset menu appears c. Select Wipe Data d. Reboot/Restart your phone. METHOD 2: (proven effective) a. Download SONY PC COMPANION 2.1 here b. Install it into your PC and run the program c. On "SUPPORT ZONE" panel, click "Start" d. On  "Phone / Tablet Software update", click "Start" e. Click "Repair my Phone / Tablet" f.  Click "Continue" g. Tick the box "I understand.." and click "Next" h. Tick the box "I understood..." and click "Continue" i. Tick the box on "Battery Level Info" and click "Next" j. Select you phone model in the selection and click "Next" h. Connect you phone to PC       h-1. Turn off you phone and wait for 5 seconds      h-2.  Connect your Phone to the PC while pressing the Back Button (Left Button) using USB Cord. i. F...

[FiXED] Cannot Create File Error when you try to open or save attachement in Outlook

References: http://support.microsoft.com/kb/305982/en-US http://www.technipages.com/outlook-cant-create-file-error-when-opening-attachment 1. Run REGEDIT.EXE 2. Navigate to "HKCU\Software\Microsoft\Office\14.0\Security" 3. On the right-pane, double click "OutlookSecureTempFolder" 4. Copy the value of OutlookSecureTempFolder 5. Open File Explorer 6. Paste the value onto addressbar, press enter 7. Delete all the content of that folder 8. Restart Outlook

VB6 Listview Sort when clicking the columnheader

Listview1 is the name of the listview control Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)     With ListView1         If .SortKey <> ColumnHeader.Index - 1 Then             .SortKey = ColumnHeader.Index - 1             .SortOrder = lvwAscending         Else             If .SortOrder = lvwAscending Then                 .SortOrder = lvwDescending              Else                  .SortOrder = lvwAscending             End If  ...