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.
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:
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
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 .
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
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
- At the end of the period, make sure you book all your income, expenses, interest received, etc
- Make sure you match your accounting with Bank statements
- Note: Some atm withdrawals or expenses may reflect in the next periode.
- Run all schedule task and disable them, if you have, if neccessary
- Save and Close Gnucash
- Backup the gnucash file in case something goes wrong. (duplicate the gnucash file and rename including something like "BEFORE End of Period" or else)
- Open gnucash file again
- Run the close book year: Tools - Close book.
- Save Gnucash
- 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
- Export the customer, vendor, employee data using one of my method discuss on this blog
- You may make print screens of your File - Proprieties and Edit - Preference screen
- 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)
- Close Gnucash
- Open the new file created
- import the customer, vendor, employee data you have exported previously
- Amend the business properties
- Amend Gnucash preference if necessary
- 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.
- Save your file
- Go to the file location
- Right click the file and slect properties
- In the file roperties windows, check the option Read Only.
- Click ok to save and exit the Properties windows
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!!
Dropbox is a folder synchronization software over the internet.It's create a folder named Dropbox in your User profile folder (C:\Users\
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!!
- Install Dropbox
- Login or sign up to Dropbox
- After successful login, open the Dropbox folder, if it is not open
- Create a folder within Dropbox.
- Name this folder as RoamingProfile
- 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) - If you still did not have exceed the limit of Dropbox, you may copy Documents to the RoamingProfile like desktop
- If you still did not have exceed the limit of Dropbox, you may do the same for music
- If you still did not have exceed the limit of Dropbox, you may do the same for pictures
- If you still did not have exceed the limit of Dropbox, you may do the same for videos
- Search and open regedit.exe from the start menu.
- 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.
- Modify the string value for Desktop to C:\Users\
"login name"\Dropbox\RoamingProfile\Desktop - If you have copied the Documents in step 7, modify the string value for Personal to C:\Users\"login name"
\Dropbox\RoamingProfile\Documents - If you have copied the Music in step 8, modify the string value for My Music to C:\Users\
"login name"\Dropbox\RoamingProfile\Music - If you have copied the Pictures in step 9, modify the string value for My Pictures to C:\Users\
"login name"\Dropbox\RoamingProfile\Pictures - If you have copied the Video in step 10, modify the string value for My video to C:\Users\"login name"
\Dropbox\RoamingProfile\Videos - 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.
- Repeat step 13 to 17 for the User Shell Folder key
- Now restart your computer
- If something when wrong you will need to double click the reg files you create at step 12 and 18 and restart your computer
- 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.
- Go to next machine and repeat step one to 22.
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!
https://dev.mysql.com/doc/refman/5.7/en/installing.htm.
Read more at https://ppsolutionnet.blogspot.com/2017/01/gnu-cash-graphic-custumer-export-tool.html
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.
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!
- Export GNUCASH data through Mysql workbench
- Export GNUCASH data through Mysql command
- Export GNUCASH data through Graphic tools
- 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.- 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)
- 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!!!
https://dev.mysql.com/doc/refman/5.7/en/installing.htm.
- Open gnucash and open the desire gnucash file to convert
- Save as that file with the MYSQL format, with the mysql account you created earlier in the Mysql setup with it correspondent password.
- Close Gnucash
- 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
- Folow the steps from Install Mysql and Covert Gnucash xml file to Mysql database from "1.Export GNUCASH data through Mysql workbench"
- Start command prompt and type the following command (I assume you install Mysql in C:\Mysql)
- C:
- Cd C:\Mysql\bin
- mysql
SELECT *FROM customersINTO OUTFILE 'c:/var/lib/mysql-files/customers.csv'FIELDS TERMINATED BY ','ENCLOSED BY '"'LINES TERMINATED BY '\n' mysqlSELECT *FROM vendorsINTO OUTFILE 'c:/var/lib/mysql-files/vendor.csv'FIELDS TERMINATED BY ','ENCLOSED BY '"'LINES TERMINATED BY '\n'mysqlSELECT *FROMemployeeINTO 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)
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)
Subscribe to:
Posts (Atom)