2017 [Solved] Slow tranfser on Samba Shares

This article is written for my personal reference

Check the following to solve the issue
  1. Use a switch instead of router or hubs
  2. Use cable network instead of wireless networking
  3. Check your network cable
  4. Disable antivirus temporary in some cases

2017: Create Windows OEM Like Recovery Partition without windows 7 built-in softwares

I was browsing, same like you, about this topic and found many website that offering many tools to this job. Many of those method offered recovery environment using a bootable disk. This trigger me the question why I can not accomplish the recovery partition with Window Recovery Environment?
I accept the challenge and came with a solution to create this OEM like Recovery Partition using simple tools within Window 7
At least my system does not react on F11 , but is works by pressing F8.

Requirement:
  •  Computer with a clean windows 7 with 3 or 4 primary partition. This may work with other Windows version as long as you know how to access the Windows Recovery Environment #.
    •  3 Partition schema
      1. System reserved
      2. Windows partition
      3. Optional: Users or Data
      4. Recovery partition
    •  4 Partition Schema
      1. System reserved
      2. Windows partition
      3. Optional: Users or Data
      4. Recovery partition
  • There is no other software requirements, but if you prefer to use another partition software, you may as long you can follow steps 1.
Skills:
  • You need to be able to manage partition using Windows Disk management or any other partition tools
  • You need to be able to create a windows 7 System image
Steps to create the recovery partition

At this point I assume that you have installed a clean copy of your window, have installed the latest driver, has update your windows with the latest service pack and patches,  has installed your preferred or recommended software (see list recommended software) and has configure your windows.
  1. Create a 32 GB partition at the end of the dik (with any available drive letter) and label it as "RECOVERY"
  2. Run "create a systen image" from Control panel / Backup your computer. (If you are unable, try  Control Panel / Backup and Restore)
  3. Save the image on disk selecting the Recovery labeled disk
  4. Continue to save only the system reserved and drive C partition
  5. After a successful image open windows disk manager and remove the drive letter from the RECOVERY Partition. If you do not want to remove the drive letter, then change the partition permission to List only to avoid accidental delete.

How to restore your computer using your recovery partition

To restore your computer you will have to access the recover environment in windows 7#.   

Press F8 repeatedly just after the Bios post*. Then select the Repair your computer option from the boot menu that appears.   

After the Windows Recovery Environment is loaded you be prompt for
  • language
  • password for your administrator account
Then when the System recovery option appears, just click the option Windows Image recovery, then follow the screen.

# This article explain how to enable windows recovery environment in other windows version.
https://www.terabyteunlimited.com/kb/article.php?id=322

* Bios post is recognized during the period you see your computer manufacture logo appears right after you press the power button to start your computer. This may last 3 - 10 seconds depends on the bios settings








The best 2017 Ubuntu variant for Pentium 4

Last update: july 13, 2017

This blog is written as reference from my personal experience testing Xubuntu 16.04.2 LTS  and Lubuntu 16.04.2 LTS.

My preference is Lubuntu 16.04.2 LTS, due this operating system runs very smooth.
In xbuntu there is several error message poping up. Also I took notice of constant program freezing in xbuntu running on Pentium 4 processor.
While using Lubuntu I did had none of above issues.

I have install many other third party software without any dependencies issue on lubuntu.
While the same software are install on xubuntu with difficulties.

Networking and file sharing and other configuration will be test later and will post backthe result!






Code C++ In One Day

C++ In One Day:
The Ultimate Beginners Guide To C++ With 7 Awesome Projects
Ean, W.B.

I found out that it will helpful to post the completes code from the book above mentioned.
Will updated once i got the other code tested.

Chapter  3  http://ppsolution.net/download/cppinoneday/chapter3.txt

Chapter  4  http://ppsolution.net/download/cppinoneday/chapter4.txt

AutoIt3 and FF.au3 - “error reading registry entry for FireFox” 2017 March


AutoIt3 and FF.au3 is striking again with the “error reading registry entry for FireFox”.
On one of my 32 bit computer the registry key CurrentVersion under  KEY_LOCAL_MACHINE\SOFTWARE\\Mozilla\Mozilla Firefox does not exists. 
Therefore I got the following error when I run the script on this particular computer:
__FFStartProcess ==> General Error: Error reading registry entry for FireFox.
HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\*CurrentVersion*\Main\PathToExe


How to fix?
By replacing the regread function with RegEnumKey function in the __FFStartProcess function. The fixes is highlighted below. 

Note: I made an improvement in how to declare $sHKLM variable.

 ======Before Update

Local $sHKLM = 'HKEY_LOCAL_MACHINE\SOFTWARE\'
If @OSArch <> 'X86' Then $sHKLM &= 'Wow6432Node\'
$sHKLM &= 'Mozilla\Mozilla Firefox'
Local $sFFExe = RegRead($sHKLM & "" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe")
If @error Then
    SetError(__FFError($sFuncName, $_FF_ERROR_GeneralError, "Error reading registry entry for FireFox." & @CRLF & _
            $sHKLM & "\*CurrentVersion*\Main\PathToExe" & @CRLF & _
            "Error from RegRead: " & @error))
    Return 0
EndIf

====== After Update

Local $sHKLM = 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\'

If @OSArch = 'X86' Then $sHKLM = stringreplace($sHKLM, "Wow6432Node\", "")
$sHKLM &=  Regenumkey($sHKLM ,1) & "\Main"
If @error Then
    SetError(___firefox_Error($sFuncName, $__firefox__ERROR_GeneralError, "Error reading registry entry for FireFox." & @CRLF & _
    $sHKLM&"\*CurrentVersion*\Main\PathToExe" & @CRLF & _
    "Error from RegRead: " & @error))
    Return 0
EndIf

GNUCASH CLOSE BOOKING YEAR

I kindly like to thank you for reading my blog. Before we continue I like to inform you that I'm not an accountant, but an experienced IT in deploying accounting software and have a junior degree in business administration.

What really happen during closing of a booking period is that you will move total expenses and income balance to your Equity balance. The result of both balance could be a profit or loss at the end of the booking period. This means that your expenses and income accounts for the new booking year will open with zero (0.00).

In Gnucash, the above is an easy task by running a running a tools from the menu Tools - Close book.
This tool will prompt you for a closing date, in most cases the last day of the year. The total Income and expenses account must be created in the Equity account tree. You may use the following:
  •  Equity
    • 20xx    ( the closing year)
      • Expenses
      • Income
Last but not least a description, like EOY 20xx  (End of Year 20xx).

Although some people or companies like to close their booking period with the above mentioned tool, but some may prefer to keep separate files for each booking year. They may reason that each closed booking year should be a read only file. They are right! But this same reason is also a disadvantage in case of corrections. For this situation you will have to correct the old year file and also the new year file.

For those who want to keep each booking year separate, here follows some steps and recommendations to help you with closing and opening new booking period in separate file in Gnucash.
Create booking period in a separate file
  1. At the end of the period, make sure you book all your income, expenses, interest received, etc
  2. Make sure you match your accounting with  Bank statements
    • Note: Some atm withdrawals or expenses may reflect in the next periode.
  3. Run all schedule task and disable them, if you have, if neccessary
  4. Save and Close Gnucash 
  5. Backup the gnucash file in case something goes wrong. (duplicate the gnucash file and rename including something like "BEFORE End of Period" or else)
  6. Open gnucash file again
  7. Run the close book year: Tools - Close book.
  8. Save Gnucash
  9. Create the new file year by exporting the account structure: File - Export- Export Account
    • At prompt type a name and browse for the desire location to save the new file structure
  10. Export the customer, vendor, employee data using one of my method discuss on this blog
  11. You may make print screens of your File - Proprieties and Edit - Preference screen
  12. Generate a Balance sheet Report: Reports - Assets and Liabilities - Balance sheet
    • You must include the transaction from the beginning till the end of the period
    • Also modified the report level to show level 3 or 4 (recommended)
  13. Close Gnucash
  14. Open the new file created
  15. import the customer, vendor, employee data you have exported previously
  16. Amend the business properties
  17. Amend Gnucash preference if necessary
  18. Using your balance sheet create the open balance entry (or Balance brought forward) for each Assets and Liabilities account. Note: Invoices can not be imported in this turial, but the opening balance. Payment for invoice created in the previous booking year should be post manually.
  19. Save your file
To make you gnucash file read only
  1. Go to the file location
  2. Right click the file and slect properties
  3. In the file roperties windows, check the option Read Only.
  4. Click ok to save and exit the Properties windows
For this point you are unable to save or overwrite the previos booking period file. Nevertheless you may save it to another location and has access back to write, but the one locked will remain locked

To unlock the file, just repeat above, but uncheck the Read Only option

In case of error
In case of error, do not panic! You have create the backup as suggested at step 5, right?
If not, post me your email immediately.
If you did then restore the backup you created at step 5 and start over at step 6.

If you have difficulties following my tutorial, you may contact us or comment your request .

Roam (share) your user profile with Dropbox

If you have more than one computer, you may agree with me that times to times you wish to have your desktop roam over the multiple computer you owned. Well....., you can with Dropbox.

Dropbox is a folder synchronization software over the internet.It's create a folder named Dropbox in your User profile folder (C:\Users\"login name"\Dropbox). Whatever you drop or creates in this folder with be sync over the internet and all devices you have Dropbox installed.

The following steps are tested on Windows 7 and Windows 8. Note there is a limitation for Dropbox for 2 GB of space. If you are concerned about privacy or security of your files, DO NOT FOLLOW THE FOLLOWING STEPS.
For each computer you need to follow these steps below.

From now you are on your own!!
  1. Install Dropbox
  2. Login or sign up to Dropbox
  3. After successful login, open the Dropbox folder, if it is not open
  4. Create a folder within Dropbox. 
  5. Name this folder as RoamingProfile
  6. Copy your current desktop folder (I assume the location is C:\Users\"login name"\Desktop) to the  RoamingProfile folder (in this tutorial C:\Users\"login name"\Dropbox\RoamingProfile) 
  7. If you still did not have exceed the limit of Dropbox, you may copy Documents to the RoamingProfile like desktop
  8. If you still did not have exceed the limit of Dropbox, you may do the same for music
  9. If you still did not have exceed the limit of Dropbox, you may do the same for pictures 
  10. If you still did not have exceed the limit of Dropbox, you may do the same for videos
  11. Search and open regedit.exe from the start menu.
  12. Browse to the key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders and make e backup (VERY IMPORTANT)
    • Right click
    • select export
    • When prompt select the location and type a name ShellFolders for the backup reg file.
  13. Modify the string value for Desktop to C:\Users\"login name"\Dropbox\RoamingProfile\Desktop
  14. If you have copied the Documents in step 7, modify the string value for Personal to C:\Users\"login name"\Dropbox\RoamingProfile\Documents
  15. If you have copied the Music in step 8, modify the string value for My Music to C:\Users\"login name"\Dropbox\RoamingProfile\Music
  16. If you have copied the Pictures in step 9, modify the string value for My Pictures to C:\Users\"login name"\Dropbox\RoamingProfile\Pictures 
  17. If you have copied the Video  in step 10, modify the string value for My video to C:\Users\"login name"\Dropbox\RoamingProfile\Videos
  18. Browse to the key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders and make e backup by exporting this key and it subkeys and value
    • Right click
    • select export
    • When prompt select the location and type a name UserShellFolders for the backup reg file.
  19. Repeat step 13 to 17 for the User Shell Folder key
  20. Now restart  your computer 
  21. If something when wrong you will need to double click the reg files you create at step 12 and 18 and restart your computer
  22. For computer space you may delete the content of the previous profile directory (C:\Users\"login name") for desktop, documents, music, pictures, videos. Before delete make sure that the folder was copied to roaming profile. If not, DO NOT DELETE IT.
  23. Go to next machine and repeat step one to 22.
I hope you will enjoy your roaming profile over the internet

Export GnuCash Data for WIndows

THIS ARTICLE IS DRAFT and some section may be not completed.

At the end of the year 2016, I was looking for a best option to close my books in Gnu cash.
I google many website and found out that the best way to achieve my goal is to create separate gnucash file for each booking year. (I manage to do this way, click here).

But how to export the customer, vendor and employee data to the new file?
This subject seems to be a long discussion on internet. Some of this discussion are so complicated for a average user computer. Therefore I though it is better to bring a solution for this controversial issue.

There are several method! But on this page i will discuss 3 way!
  1. Export GNUCASH data through Mysql workbench
  2. Export GNUCASH data through Mysql command
  3. Export GNUCASH data through Graphic tools 
  4. Export GNUCASH data from the xml file (gnucash file itself)

1.Export GNUCASH data through Mysql workbench

If you familiar with some basic sql command it will be easy to extract the data in a minute. However the installation of Mysql server will take hour to set it up. The following steps are  written for Windows OS, but you may follow these steps on other OS.
Install Mysql
  1. Download full package of MySQL Community Server from http://dev.mysql.com/downloads/mysql/. (You need to have an oracle account to download the files)
  2. Run the installer and choose sever only setup type.
    • Make sure you do not loose your root password. Write it down. 
    • If you are able, please create an gnucash account
    • Do not forget to  install as the Mysql workbench!!! 
                For more information, please read the documentations at
               https://dev.mysql.com/doc/refman/5.7/en/installing.htm.
Covert Gnucash xml file to Mysql database
  1. Open gnucash and open the desire gnucash file to convert
  2. Save as that file with the MYSQL format, with the mysql account you created earlier in the Mysql setup with it correspondent password.
  3. Close Gnucash
 Export Table with Mysql Workbench
  1. Open the Mysql workbench and follow the instruction https://dev.mysql.com/doc/workbench/en/wb-admin-export-import-table.html to export the data from customer, vendor , employee or any table in the data base.

2.Export GNUCASH data through Mysql command

  1. Folow the steps from Install Mysql and Covert Gnucash xml file to Mysql database from "1.Export GNUCASH data through Mysql workbench"
  2. Start command prompt and type the following command (I assume you install Mysql in C:\Mysql)
    1. C:
    2. Cd C:\Mysql\bin
    3. mysql SELECT * FROM customers INTO OUTFILE 'c:/var/lib/mysql-files/customers.csv'FIELDS TERMINATED BY ',' ENCLOSED BY '"'LINES TERMINATED BY '\n'
    4. mysql SELECT * FROM vendors INTO OUTFILE 'c:/var/lib/mysql-files/vendor.csv'FIELDS TERMINATED BY ',' ENCLOSED BY '"'LINES TERMINATED BY '\n'
    5. mysql SELECT * FROM  employee INTO OUTFILE 'c:/var/lib/mysql-files/ employee.csv'FIELDS TERMINATED BY ',' ENCLOSED BY '"'LINES TERMINATED BY '\n' 

3.Export GNUCASH data through Graphic tools 

A tool is develop by me in order to extract the customer, vendor and employee data from the graphic user Interface (GUI) of Gnucash.This tool have some limitations, but work like a champ.

Read more at https://ppsolutionnet.blogspot.com/2017/01/gnu-cash-graphic-custumer-export-tool.html 

4.Export GNUCASH data from the xml file (gnucash file itself)

Under construction.

A tool is being created by me to export data from the gnucash file directly. This tool is beta and will be released soon. You may consider to donate if you wan to support the cost of this project.

Requirements:
7-zip. To download 7-zip, please visit their download page at http://www.7-zip.org/download.html


Please leave a comment to improve this article.



Contact Us

PPSolution.net

For any inquiries or request you can contact us at the following contact details.

C: +599 9 6940875
F: +599 9 8680265
E: ppssupport@hotmail.com

Business hours:
Mon - Fri 09:00 - 18:00 (-04:00 GMT)