Items filtered by date: December 2015

Monday, 17 August 2015 17:30

Free Upgrade to Windows 10 - The Rules

Update

You can use the Windows Accessibility route. Search www.howtogeek.com for instructions

 

Computer Scenario 1

  • When you upgrade to win 10 over a  “daz” special Windows 7, you get a new win 10 key.
  • When I tried the same key on a completely new unit, it accepted it  , but would not activate.
  • When I did an upgrade  on a second laptop it activated ok and gave me the same key as the first .
  • When I wiped the second laptop completely and did a fresh install from the ground up  using the same key …the mofo activated fine…

Conclusion

So it would appear the key that is administered is the same across the board for the free upgrade (possible Win10 Pro and Win10 Home are different).

The license for the Free Upgrade is directly linked to the hardware, thus enabling you to activate throughout the lifespan of the PC ( assuming no major hardware changes take place) and it has been activated at least once throught the Free Upgrade process.


Computer Scenario 2

  • When you install win7 or win8 with no key, Win10 will ask for a key to be entered at the start of install. This was pretty much expected.
  • So your current version of windows must have a key and be activated to upgrade to Win10 with the Free Upgrade method.
  • When I upgraded 2 acer laptops that had daz loader installed I was given a Win10 pro key ending....3v66t.
  • I have just installed for a third time onto another completely different PC using a genuine Win7 Pro licence, It has also issued the same key ending ...3v66t.
  • Now I have wiped this 3rd PC and done a flat install of Win10 Pro using the same license issued on all 3 units. It installed and activated quite happily, so it would seem the same key is being used for everyone who upgrades ..
  • However if you try to use this key for a flat install on a system that has never been activated / upgraded.....It will not work.

Conclusion

The free license key will work for a flat install as long as the unit has been upgraded to Win10 at some point in its life, looking like the hardware Id is linked to the activation. This also assumes you are using the correcct key for Win10 Pro/Home.

Notes

  • The upgrade makes a windows.old folder upon upgrade and keeps it for 30 days just incase you want to roll back
  • Not all Windows 7 Machines will give you an activated Windows 10. I think it can depend on the source of the previous windows.

1511 version

  • you can now do a fresh install witout upgrading first to get a free winows license within the following rules
    • windows 10 will read the product key straight out of the bios and use that to install the relevant windows 10 version automatically. You are not prompted for the serial or which version you wnat to install. (this assumes you are using the x86/x64 combined disk)
    • you can now use any qualifying product key to do a fresh install without upgrading first
    • BIOS hacked windows 7 install now no longer will qualify for a free upgrade
    • you can use the Nirsoft utility (firmwaretablesview) to  read the serial out of a bios.

Windows 10 Default Product Keys for Free Upgrade

  • Windows 10 Home  --  YTMG3-N6DKC-DKB77-7M9GH-8HVX7
  • Windows 10 Pro  --  VK7JG-NPHTM-C97JM-9MPGT-3V66T

Links

Published in Windows 10
Thursday, 16 July 2015 16:31

Sync Outlook with Google Android

Most people who have android phones have windows PCs, some of those people have microsoft office and use it for their emails and calendars. Android does not have native support for syncing the calendars and emails on the phone.

When you have a samsung phone with a stock ROM it has support for syncing via the KIES software, but as soon as you install a non-stock ROM the kies software service on the phone is no longer present. This might be true for other manufacturers and their stock ROM solutions for outlook.

Contacts / Calendar / Phone Logs / SMS

I have found it frustrating syncing my Outlook contacts and calendar between outlook and my android phone. Outlook will always be my primary calendar and contacts.

I found this topic particularly difficult, i know what i wanted to do but i had loads of questions such as if i deleted the item on outlook how would it get deleted on the android phone.  So i decided to work through the pain and write some instructions on how i synced my details and the different types of sync there is.

You can choose either to sync to your android phone (only/local store) or to your google account. It is important that you know about these 2 places to store contacts and calendar details. If you use the local store option gogole cannot see your contacts adn calendar events.

General Notes

  • There are different ways of setting up syncing.
  • Do I want to sync with google or not?
  • There is a local calendar and a google calander in android phones
  • When you do too many deletions of either contacts or calendar items android (possibly Google) moans about it. I experiences this in MyPhoneExplorer but might be an issue on other software syncing with a Google Account.
  • Where can I force to store contacts local on the phone? I have not found an aswer to this. This come into play when you create new contacts on your phone.
  • Google contacts can take some to reflect the changes from Google Servers --> Android Phone or vice versa
  • Changes might be caused by Google adding extra info to contacts such as contact images
  • How to Import / Export Contacts Between Outlook and Gmail - This is a manual method to import and export contacts between Outlook and your Gmail account.

Software

There are 2 programs that are capable of performing sysncing with outlook and various endpointd (to be investgated) for both contacts and calendar


 

MyPhoneExplorer

FJ Software Development - Home of MtPhoneExplorer

This is my preffered option and works with most android phones.

MyPhoneExplorer has the ability to sync your:

  • Outlook Contacts
  • Outlook Calendar
  • Outlook notes
  • Call Log (to MyPhoneExplorer)
  • SMS Messages (to MyPhoneExplorer)

MyPhoneExplorer also has the following features:

  • Sync with either your Google Account or just the android phone's local store
  • Allows syncing over USB / WIFI / Bluetooth
  • Automatic Syncing
  • Syncing that allows you to control each sync item
  • Monitor some settings of the phone such as CPU  Temperature / Voltage
  • Storage Usage
  • Push Notifications to the windows desktop such as incoming SMS messages
  • Dial the phone from you PC
  • File Explorer
  • And more ......

Using Default settings, the following happens

You might find the follow useful so you know what will happen with default settings and to make sure you have them set as you require before you run the MyPhoneExplorer sync for the first time. I assume you have installed the app on the android phone and the windows app as per instructions. I also used a USB for these tests.

Created a Contact in Google Contacts (webpage)

  • If I create a contact on Google Contacts (webpage) it will appear on my phone after androids syncs the google account (or i manually start the sync). After this happens, i ran MyPhoneExplorer sync and the contact was synced to my Outlook contacts.
  • If I then delete this contact in Outlook and run a sync with MyPhoneExplorer, it deletes the contact from Google contacts on the phone. When the my android phone syncs the Google Account with Google, the contact will be removed from from my Google Contacts

Created Calendar item in Google Calendar (webpage)

  • I created the item in google calcnder (webpage) and it appeared on my phone. I then ran phonexplorer and it synced that entery to my outlook
  • I deleted the entery in outlook and the entery was deleted on my phone and on google calendars webpage after a sync

Created Contact in Outlook

  • If I create a contact in outlook. Myphoneexplorer will sync it to my android phone. So far it seems to only sync it to my android phone local store/contacts. This means that new contacts are created in the phones local contacts store and cannot be accessed by Google.

Created Calendar item in Outlook

  • If I create an event/calendar item/appointment contact in outlook. MyPhoneExplorer will sync it to my android phone local store/calendar. This means that new contacts are created in the phones local calendar and cannot be accessed by Google.

What I would do

I am going to use my Google Account rather than the Phone's Local Store. You can always change this later but would require a bit of effort. My Outlook will always be my primary store for contacts and calendar events.

  • install and configure the App on the phone:
    • set new contacts to be created in your Google Account (this is set in the android app - settings / 'Add new contacts to')
    • set new calendar/events to be created in Google calendars (this is set in the android app - settings / 'Add new events to')
    • set your the only contacts store to be synced to your Google Account (this is set in the android app - settings / 'Contact-accounts to sync') - if you dont things can get messy
    • set your Google Calendar to be the only calendar to be synced (this is set in the android app - settings / 'Contact-accounts to sync') - if you dont things can get messy
    • set the address format to a UK version, set this to Street, City, Region Zip code, County (this is set in the android app - settings / 'Address Format') (optional)
    • disable standby mode which kills Bluetooth connections and you have to restart the PC and phone to get things working again. Set too (Settings / Standby mode on active connection / Avoid Standby-Mode)
    • set the phone app to launch automatically
  • install the software on windows and:
    • Configure the Sync settings (File / Settings / Sync ) to point to Outlook.
      • The default settings will sync the data from the phone only with MyPhoneExplorer's internal datastore
        MyPhoneExplorer default Sync settings
      • When set to sync with Outlook, MyPhoneExplorer will sync data from Outlook to it's internal data store and then to the android phone. Changes coming from the phone will follow the reverse path. This will leave you with a copy of your data in your Outlook and a copy in MyPhoneExplorer.
        MyPhoneExplorer Sync set to Outlook
    • configure MyPhoneExplorer to prompt you when changes are discovered. This is only temporary whilst you check things works properly with the syncing. (File / Settings / Sync / Advanced )
    • Select connection method
      • Bluetooth
        • pair the phone via bluetooth with your PC
        • configure the connection method to be Bluetooth (File / Connection ) (see help file)
      • Wifi
      • USB
    • set the windows app to run automatically (optional)
    • set Multi-sync to run when a sync is run automatically (File / Settings / Mulit-Sync) (optional)
  • make sure all syncing works correctly
  • Done

MyPhoneExplorer Notes

  • You can decide in which contacts store (Phone only or Google Account) MyPhoneExplorer creates new contacts (this is set in the android app - settings / 'Add new contacts to')
  • You can decide in which calendar store (Phone only or Google Account) MyPhoneExplorer creates new items (this is set in the android app - settings / 'Add new events to')
  • MyPhoneExplorer by default reads the items out of both Local and Google Account for syncing with Outlooks (this is set in the android app - settings / 'Contact-accounts to sync')
  • MyPhoneExplorer by default reads the items out of both Local and Google Account calendars for syncing with Outlooks (this is set in the android app - settings / 'Calendars to sync')
  • Once you have everything setup how you like and you now it works well, set everything to automatic to make things easy
  • It might be worth only having sync on only for 1 calendar and contacts store to keeps things simple
  • If the item (calendar or contact) was created in the Google Account, then it will be deleted from the Google Account when deleted from Outlook. Basically this means that an item only exists in either the Google Account or the Local phone store and upon editing or deletion in Outlook this change is reflected in the item in its relevant store.
  • when you hit the blue sync button at the top in the windows app, it will only sync the contents of that tab. ie if you are on contacts it will only sync contacts etc.... There is a multi-sync option that you can run from the menu that will sync all items.
  • The items you see in the Windows Application are what you can see in your phone at the monent of syncing (need to 100% check this)
  • I am not sure what would happen if you have the exact same contact in your Google Account as you do in your Phone's Local Store
  • You can set the sync button to perform a multi sync by setting the following option and what features are synced with the Multi-sync (File / Settings / Mulit-Sync)
  • Contact Profile images do not always sync with outlook. Not having the images on my phone or in out look is not a desperate thing. I could always use that go mod app
  • How to use MyPhoneExplorer with an Android Device - FJ Software
  • MyPhoneExplorer - YouTube - An overview and simple instructions.

Delete Local Contacts and move them all to your Google Account

You can delete all contacts on the phone in one go by using the windows application. This example deletes the phones local store, and then uploads all your outlook contacts to your Google Account. You can also do the same instructions for your Calendar. As ever just make sure you have backups of you Outlook PST and your Android Phone's Contacts and Calendar just incase you have some issues.

  • Run a sync so you have the most upto date contacts in Outlook
  • open the windows app
  • make sure in the app you only have the contact stores synced that you want to delete contacts out of. ie. if you want to remove all the Phone's Local Store contacts only have that store enabled for syncning in the android app. If you have the Google Account selected aswell, those contacts could be deleted.
  • connect the phone, wait for it to be found
  • selecting all of the contacts and hit delete
  • Click the 'run the sync' button Only
  • The records should now be deleted out of the Phone's Local Store, so click 'Abort Sync'
  • You can re-enable the Local Contact Stores again if you want
  • make sure in the app, you have it set to create new contacts in your Google Account (settings / 'Add new contacts to')
  • run the sync again, but select 'Force Outlook --> phone'
  • All you local contacts are now removed and are present in your Google Account

NB: When you run the script again it might have a few records that need updating/syncing this might be because of slight inconsistencies with how the records were stored.

Syncing Profile Photos (Google -> Phone -> MyPhoneExplorer -> Outlook)

this feature is not perfect, but not absolutely required. The mechanisms in MyPhoneExplorer do exist but not always aas you expect. If you had no contacts in outlook and everyone of your google account contacts had a profile image they would all transfer to outlook withou issue. The problems come in when you have contacts in different locations.

  • If you edit a Google contact on your phone, the contact image stored at Google will be synced to the phone and then outlook via your MyPhoneExplorer
  • If you edit the contact at Google Contacts (webpage) this does not seem to push the contact image to your phone – not 100% verified
  • If you edit a contact on outlook, this will not cause the google account contact image to be download to the contact on the phone and then to outlook via MyPhoneExplorer (could not get this to work)
  • Basically if you sync both directions you will probably not get the images updated as myphonexplorer does not use image change as a trigger point. You need to force Phone to outlook.

  • MyPhoneExplorer can only download the phone logs, you cannot push the losg back to the phone

  • There should be an app that syncs the profile images. This should allow only those contacts at Google's Servers that have a profile image to updated the local cached version of these Google Contacts on your phone.


 

GO Contact Sync Mod

GO Contact Sync Mod - at SourceForge.net

This is a very simple piece of software that allows you to sync your outlook Contacts and Calendar directely with your Google Account and then by proxy, with your Android Mobile Phone because that syncs with your account. You can sync your contacts and calendar even if you do not have an android mobile phone. This software can be set to run automatically and sync automatically.

Easy to use and Easy to run. If you do not want all of the extra features of MyPhoneExplorer and do not want to use the Phones Local Store this would be for you.

Notes

  • When you first run this software it might prompt you what to do when it finds 2 matching contacts but this is straight forward and will only happen if you already have contacts in your Google Account.
  • GO Contact Sync Mod links a contact (and calendar events i think) by some sort of relationship it creates. I do not know if you remove this program whether this link is destroyed. You can always replace all of your Google Account Contacts with your Outlook ones if you get in to difficuly assuming you already have them synced
  • How to Automatically Sync Contacts Between Outlook and Gmail - This is a tutorial on how to use Go Contact Sync mod

 

Clear Phone Contacts Data

A common problem with Google Contacts is tha the profile images stored on Google's Servers do not always repliacte down to your android phone. These are a couple of methods to fix (sort of) the problem.

Method 1

  1. Find a contact that has a picture that is not synchronizing.
  2. Edit this contact
  3. This will cause Android to re-sync the contact with Google's servers.

Method 2

This option seems to be really popular on the internet and does seem to be successful boot has some caveats. This method will delete your recent call history, call logs and contact Favourites, possible more.... This method is taken from this article, Android: How to Delete All Contacts

  1. navigate to (settings / apps /  ‘contacts storage’)
  2. Clear data
  3. re-sync your Google account via (settings / Accounts / Google)

Some images were updated, some might still be downloading when i checked. Favorites were missing and recently called people. It did not cause all contacts to be updated, some had to be merged/updated (my choice) when i re-synced with MyPhoneExplorer. One of the accounts that I merge updated its contact photo. You should make note that it was updated because I merged the account changes and did not use the outlook contact only, I could of also just used the phone account which probably would have a similiar effect because my accounts were mostly in-sync. If there were already images on the outlook account I assume it would not get replaced. This method did delete call logs from the phone, recent calls, missed calls etc..

This method does work a little but does not seem able to 100% download all of the images, this could possibly i have not left it long enough or there is a sync limit which has been reached so you have to wait for a reset.

This is a video of a smiliar method but it uses 'contacts' not 'contacts storage'. I tried this but could not get it to work. Android Contact List Images Photos Missing - YouTube

 


Other Contacts and Calendar Syncing Software

Below i am going to list a few pieces of software i have found for syncing outlook with your android phone. Some are free and some are paid for.

 Syncing Links

 

 

 

Syncing Email

IMAP

If you are using IMAP then there is a chance you have all your contacts and emails stored with your email provider, even your calendar if Google.

POP3

This is not strictly achievable when using POP3 but i have a really good work around.

  • configure your pop settings in your outlook to leave emails in the mailbox for 14days
  • install K9 email app on your android phone
  • configure your email account as IMAP

what this does is allow your main PC to download the emails as it does normally but leaves 2 weeks worth of emails in the mailbox so your phone has upto 2 weeks to download these emails. But because the phone is setup as IMAP you get immediate emails via PUSH notifications. I think K9 caches the emails it downloads so it possibly is keeping emails for longer than 2 weeks, if it doesnt having 2 weeks worth of emails on your phone is more than enough.

If you find that your mailbox is getting too full you can either increase the size of the mailbox or reduce the number of days that outlook keeps emails in the mailbox.

The PC with outlook on will always be the master.

MS-Exchange

I have not tried this but i am sure there is full Microsoft Echange support available if you use one of these corporate systems in which case you email, contacts and calendar will be synced.

Published in Outlook

This has got to be one of the most annoying issues with Windows 8, and also one of the most unfixed issues. Below i will show you what i did to fix my issues and then expand on what i think the causes are etc..

There is UEFI (EFI) and non-UEFI versions of boot loader. I think this is the difference between secure and non-secure booting.

What I did to fix the Boot Loop?

Listed in order.

Stage 1

When you get this issue it always loads the choice screen where you can try to load windows again or try to repair your Windows installation. This menu never gives you any indication of what the error is, it just keeps looping.

startup repair menu

In this Repair menu i tried all of the following options, non of which worked to reapir the boot loop.

  1. Safe Mode - I followed the instructions to load safe mode and also the other restricted types of startup (accessed via the Advanced Tools)
  2. system restore - would not run because it could not find any system restore points
  3. chkdsk c: /r - this did not find any issues
  4. sfc /scannow - did not run
  5. bcdedit - options, add here copy, backup, rebuild - this could not find any windows installations and c:\boot did not exist

Stage 2

I now followed the instructions from this webpage with a few modifications because i relised that i was using a UEFI and that this might cause other issues. However the things i tried above are valid for Windows 8.

http://woshub.com/how-to-repair-uefi-bootloader-in-windows-8/
The matter is that the BCD loader configuration in Windows 8 installed in UEFI mode is stored on a separate hidden EFI volume (100 MB in size on FAT32 file system). Bcdedit can not see it and, therefore, manage the loader configuration on it.
NB: my bcdedit could see the BCD i think it was because the appropriate partition had a drive letter

My Modifications

  • My partition with the EFI folder on was J: and already had the drive letter assigned
  • My J: partition was 500mb

The commands i actually ran from the Windows 8 Boot Disk (DVD):

  1. cd /d j:\efi\microsoft\boot\   (/D : change the current DRIVE in addition to changing folder.)
  2. bcdboot C:\Windows /l en-us /s j: /f ALL

from here on i get the following error screen which actually shows you an error

recovery your pc needs to be repaired

The operating system couldn’t be loaded because a critical system driver is missing or contains errors.
File: \windows\system32\drivers\mfehidk.sys
Error code: 0x000000d

The file mentioned above, Mfehidk.sys is a system process that runs in the computer background and maintains the host intrusion detection system for McAfee Antivirus. Mfehidk.sys will not be the cause of everyones boot loop or the faulting file shown.

http://h20565.www2.hp.com/hpsc/doc/public/display?sp4ts.oid=4132189&docId=mmr_kc-0110048&docLocale=en_US - says what Mfehidk.sys is for.

Stage 3

The boot loop has now gone but I could no longer use the 'Auto Repair Menu' on the hard disk so i had to revert to using a Windows 8 Boot Disk with Dart Utilities.

When the disk had loaded i navigated to the Advanced Tools via the Troubleshooting menu and ran the following (you will be prompted to login)

  1. Startup Repair - once this had completed it says it could not repair the startup and gave me the option of shutting down or reloading the utlities. One other piece of information it gave was the location to its Logfile.
    C:\windows\System32\Logfiles\Srt\SrtTrail.txt
    I rebooted the PC and Windows still did not load and went to the same blue screen with the error message on it.
  2. SFC via Dart - This application ran and completed successfully but without finding any errors or corrupt files. Obviously windows did not load.

Logfile

So i decided i would go and have a look at this file and what the logfiles say. You can read the SRT log to see what issues are hyappening.

  1. boot of the windows DVD
  2. open the file explorer
  3. navigate to and open
    C:\windows\System32\Logfiles\Srt\SrtTrail.txt
  4. read the log file and see if this tells you what is causing the startup error.
    {insert my log file here}
  5. In my log file i was drawn to the lines

    Root cause found: 
    ---------------------------
    Boot critical file c:\windows\system32\drivers\mfehidk.sys is corrupt.
    
    Repair action: File repair
    Result: Failed. Error code =  0x2
    Time taken = 2781 ms
    
    Repair action: System files integrity check and repair
    Result: Failed. Error code =  0x490
    Time taken = 870141 ms
  6. i then navigated to this file on the disk because i know that windows was now loading because it shows c:\windows\ as part of the file path and the logfile probably is right that this file is the cause.
  7. when i examined the file i found the file to be 0 Bytes and no wonder that windows see the file as corrupt. Because this file is not a windows system file this is why it is not fixed with SFC. There were also other similiarly named files that were most likely part of mcafee anti-virus.
  8. I created a temp folder and moved all the 0 Byte files into that folder.
  9. I now rebooted the computer
  10. Windows now loads, Fixed

Stage 4

Just as a followup, when windows loaded it prompted me with a  system restore error. This could of been caused by some of the work i did or that my client had been messing before the failure, even though he told me he had not. I just cancelled the notification and all was well.

system restore warning

Causes of the boot loop

The cause for this boot loop was undoubtably the 0 Byte files that windows was trying to load as drivers, and inparticular because it was a low level antivirus file, this was why the loop happened so quickly.

even though i tried loading windows without low level malwaredrivers i think this file was either not a low level antivirus file or when it is parsed because it is 0 Bytes long caused a hard crash of the kerenl which always flaggs the last boot as dirty, hence the loop.

The files could of been made 0 Bytes by anti-virus cleaning the file because it thinks it is a virus or perhaps when Mcaffe updated itself it did not correctely delete these files.

What should you do?

above was a worked example of what i did to fix the boot loop but here is the order of things you should do. Try rebooting your PC after each section to see if that fixed your computer.

  1. boot of a windows DVD and examine the log file to see if you can fix any identified issues
    C:\windows\System32\Logfiles\Srt\SrtTrail.txt
  2. check the following folder for 0 Byte size files and remove them.
    C:\windows\System32\drivers\
  3. Run the 'Startup Repair' tool from the windows boot disk
  4. Run system restore from either the windows boot disk or the onboard 'Automatic repair menu'
  5. Check the harddrive for issues
    • chkdsk c: /r
    • SMART
    • full surface scan
  6. Try all the fixes bcdedit from
  7. Try the EFI repairs from - How to repair UEFI Bootloader in Windows 8 | Windows OS Hub

You should have a working PC by now, if not try going through them again to see if you have missed anything. After this the next step is to back all your stuff up and perfomr a refresh, reset or fresh install of windows.

Links

Published in Windows 8

Scenario

You have trired adding your SVN repository into your Redmine project and you get the follwing error when you try browsing the repository.

404 The entry or revision was not found in the repository

404 the entry or revision was not found in the repository error message

  • You have set up your SVN repository in your subversion server and verified it works
  • You are running your Subversion server using the https:// protocol
  • You have clarified all of the settings in Redmine and all appears correct.
  • Redmine is running as a windows service
  • These instructions also assume that your Redmine/Subversion/NetBeans setup has been installed using my tutorials. It is not mandatory but they might make more sense with file paths.

Causes

Althought my instructions are geared towards my own setup of Redmine, Subversion and Netbeans all running on windows these solutions might work for other setups including remote Subversion servers.

If you are getting an "404 - the entry or revision was not found in the repository" error, it may be due to an invalid certificate. When we use svn (via https) in small businesses, we tend to use self-signed certificates but subversion client doesn't trust those by default. So you have to add exceptions to the ones you trust.

  • Invalid SSL Certificate
  • Expired SSL Certificate
  • Untrusted or Self-Signed SSL Certificate
  • Permissions on the Redmine service are no good
  • Incorrect username and password entered in to Redmine
  • There are no entries or revisions in the repository to show

Solutions

Run Redmine from the Command Console

If you run redmine from the command line (not as administrator), this runs Redmine as the currently logged in user and because of that, uses that user's Subversion SSL store and correctely handles the 'non-verified' SSL certificate if that certificate is in the current user's Subversion SSL Store

  • open a command prompt (not as administrator)
  • navigate to your redmine directory
  • run redmine by running the following command
    rails server -e production

You should find that you can now browse your reopsitory through redmine. If this works it also proves that the permissions are wrong in the redmine windows service. Although it does not directly fix the issue when running Redmine as a windows service it is a quick work around and a useful tool for testing.

Change the Redmine Windows Service Credentials

This solution worked for me.

My instructions when setting up 'Redmine as a Windows Service' configure the service to use the windows system account. This causes problems with Untrusted SSL Certificates (non-verified) because the windows system account does not have a Subversion SSL store to hold an exception and when the untrusted SSL is used this causes the Subversion binary to fail.

The solution is very easy. You need to edit the Windows Redmine Service and change the 'Log On' User. I would not use an admin account for security reasons.

  • Right click on 'My Computer'
  • Goto Services
  • Right Click on 'Redmine Windows Service' and select properties
  • Goto the 'Log On' Tab
  • Select 'Log on as:'/'This Account'
    • Enter your current user account details.
    • You can use browse to find your user account
    • If your user account does not have a password you will need to add one before you can go any further
    • It should look like this when you are done
      redmine windows service properties
  • Click apply and make sure the changes are applied
  • Click OK

If you Redmine Windows Service is running, you need to stop and start it for these changes to be applied. I am also not sure if this will cause any issues with not running aas the system account.

Invalid, Expired, Untrusted or Self-Signed Certificate (non-verified)

Redmine utilises the Subversion Client Binary. This binary will not work correctly if called by Redmine when it comes across a 'non-verified' SSL certificate and no exceptions have been made for this SSL certificate.. The connection will fail and you will get the error above. So to fix this we need to add the 'non-verified' SSL to our Subversion SSL store.

  • open a command prompt (not as administrator)
  • enter the following command to access your repository
    svn list --xml "https://svn.quantumwarp.com:18080/svn/MyITCRM"@HEAD
    This will access your Subversion repository in an interactive mode and prompt you with questions if required
  • If the target repository's SSL certificate is  'non-verified' SSL you will get prompted with the following:
    the certificate is not issued by a trusted authority
  • Press 'P' for permanent and then click enter
  • The binary will add the certificate to your Subversion SSL store to allow an exception to be made.
    A file with a Hash for a name will be created in the folder below (assuming Windows 7)
    C:\Users\shoulders\AppData\Roaming\Subversion\auth\svn.ssl.server
  • After the certificate and connection has been establish you might be prompted for a username and password. These are the username and password for the repository. You can enter them and allow the repository to be listed for you or you can cancell out as it is not needed to fix this issue.

Or

Another solution is just to use a Trusted SSL certificate.

Other Solutions

These solutions might not work and could be out of date. They are here so you know about them if the solutions above do not work.

  • adding --trust-server-cert into <redmine root="">/lib/redmine/scm/adapters/subversion_adapter.rb
  • issuing new certificate with Common Name (CN) equal to server name. (click here)
  • change SVN_BIN = "svn" into SVN_BIN = "svn --trust-server-cert --tolerant-ssl --non-interactive --config-dir /tmp" - In "lib/redmine/scm/adapters/subversion_adapter.rb"

Notes

General

  • Don’t forget that if you have(‘administration/settings/repositories/’Fetch commits automatically’) unticked (i.e. off), Redmine will not automatically bring up the revisions etc.. until you run a commit with a functioning hook that calls Redmine. (you could manually run the URL triggers to run the update). This setting is mainly for when you are testing and setting up the SCM interaction

SSL Stores

Netbeans, Subversion and SubversionEdge all have their own SSL stores as shown below.

  • C:\Users\shoulders\AppData\Roaming\Subversion\auth\svn.ssl.server
  • C:\Users\shoulders\AppData\Roaming\NetBeans\8.0.2\config\svn\config\auth\svn.ssl.server
  • D:\Documents\Developer\SubversionEdge\data\svn_client_config\auth\svn.ssl.server

If you open a command prompt elevated to an administrator and run the Subversion binary, when you accept the certificate permanently the certificates will be stored in that accounts Subversion SSL store and not your currently logged in user's Subversion SSL store.

  • The certificate names are the hash of the SSL
  • Deleting the appropriate file from the SSL Store will remove the trusted status for that SSL certificate for that piece of software
  • You can possibly move the files from one folder to another to have the same affect as accepting them permanently as they seem the same file in both of the subversion and netbeans folders.
  • Having the certificate present in
    C:\Users\shoulders\AppData\Roaming\Subversion\auth\svn.ssl.server
    does not on its own fix the connection issue in redmine. The cert file is only created in here when you accept the fix permanently.
  • only the webserver process user is finally the user for the remote svn access.
    http://www.redmine.org/boards/2/topics/28422?r=32903#message-32903
  • The Redmine servers(Thin for versions > 2.0] by default run under the System account and this does not work wrong SSL certificate for SVN server. The solution is to change the process account for a service user with logon privilege, connect to SVN and accept permanently the certificate for that user. Don't forget to change the user for the two Thin or Mongrel services running in load balancing.
    https://www.redmine.org/projects/redmine/wiki/Error_parsing_svn_output
    I think what is saying don’t run the service under a system account but use a proper logon details
  • This issue can be is caused by running redmine under the system account and this does not use your certificate store of the logged in account.

Links

Published in Redmine

In this document I will be making a copy of the latest MyITCRM from github, then make my own project in redmine which will be linked to a Subversion repository and controlled via a NetBeans project which is my prefered IDE.

  • I will have a local Subversion Server
  • I will have the real files on my local xampp server so I can edit them and see the results straight away
  • I will store the NetBeans metadata in a different folder so the files do not get messey
  • The SVN metadata will also be stored elsewhere if there is any

It is worth reading this article - http://php.dzone.com/articles/creating-a-netbeans-php-projec

Prerequsites

  • Make sure your Subversion server is running
  • NetBeans is installed
  • Redmine is running
  • A download of the latest version of MyITCRM from github
  • MyITCRM installed to an appropriate folder in the development server:
    D:\Documents\websites\design\htdocs\development\myitcrm

Create a Repository in SVN

General

This is only required if you are creating your own repository or one has not already been setup.

  • Log in to Collabent subversion
    https://svn.quantumwarp.com:4434/csvn/
  • Go to repositories tab
  • Click create
  • Use the name ‘MyITCRM’
    • this creates a repository using MyITCRM in the path
    • it does not reduce the URL to lowercase letters D:\Documents\Developer\SubversionEdge\data\repositories\MyITCRM
    • It cannot be renamed later
  • Select Template, with ‘Create standard trunk/branches/tags structure’, this is a standard SVN configuration
  • Click create

Configure User

  • Goto users tab
  • Click create
  • Fill in the details with a decent password and leave the default user role unless you need anything different (should just be ROLE_USER – Basic User Authority)

Configure Access Rules

These access rules are not really GUI Driven but can be accessed through the console.

https://svn.help.collab.net/entries/24785311-Define-repository-access-rules

  • Got oto repositories tab
  • Click on ‘Access Rules’ in the left menu
  • By default all repositories are configured for read/write access by all users (not public)
    [/]
    * = rw
  • I could restrict this to only my shoulders account to prevent unauthorised access
    [/]
    shoulders = rw

Configure Hooks

Once you have created your repository it is important to create a hook that tells the redmine project tracker that changes have been mnade to this repository (you can set a global lookup command that does all repositories instead)

See my other notes

Accessing the repository

From the command line

svn checkout https://svn.quantumwarp.com:18080/svn/MyITCRM/trunk MyITCRM --username shoulders

This is the hook file

@ECHO OFF

#curl http://<redmine url>/sys/fetch_changesets?id=<project identifier>&key=<your service key>
#curl "http://<redmine url>/sys/fetch_changesets?key=<your service key>"

curl "http://svn.quantumwarp.com:81/redmine/sys/fetch_changesets?id=myitcrm&key=xxxxxxxxxxxxxxxxxxxx"
#curl "http://svn.quantumwarp.com:81/redmine/sys/fetch_changesets?key=xxxxxxxxxxxxxxxxxxxx"

Notice the project identifier is all lower case, this is the identifier is the redmine one.

The access key is taken from redmine (administration/settings/repositories/’API Key’), generate a key if none is present and then populate the selected line above with the repository id (if required) and the API key.

The above code should be added to a file called post-commit.bat and placed in:
D:\Documents\Developer\SubversionEdge\data\repositories\MyITCRM\hooks

Create Project in Redmine

General

Create a new project by going in to redmine and use the following settings

Configure Repository

  • Goto the MyITCRM/settings/repositories
  • Click ‘new repository’
  • Fill the’New Repository’ with the following information
    • SCM – subversion
    • Main repository – leave ticked
    • Identifier – myitcrm (only lowerc ase is allowed)
    • URL - https://svn.quantumwarp.com:18080/svn/MyITCRM
    • Login – shoulders
    • Password - xxxxxxxxxxxxxxxxxxxxxx

      currently not working, perhaps the url is not quite right or I am getting the
  • Click create

Check the repository is working

Load files into the repository

Now that the blank repository has been setup you need to load the files into it. This has to be done by a SVN client and in respect of this tutorial can be done in 1 of 2 ways:

  • Use tortoiseSVN to initially load the files in to the repository
  • Use netbeans inbuilt client to load the files

Again this assumes that you are creating your own repository and not just connecting to one that is already live

Configure a NetBeans Project (your SVN Repository is empty)

These instructions do not involve a subversion server yet

If you have already loaded you SVN project up via tortoiseSVN or you are using a Subversion server then you should use ‘PHP Application with Existing Sources’ but select a Subversion Server as the source

---------EOF-----------

https://netbeans.org/kb/docs/php/project-setup.html - setting up a php project
https://netbeans.org/kb/docs/php/quickstart.html - php quick start
https://netbeans.org/kb/trails/php.html - PHP and HTML5 learning Trail
http://wiki.netbeans.org/ConfiguringNetBeansProjectForWordPress - similiar setup to this one

In NetBeans pressing F1 will bring up the context sensitive help page.

  • Open netbeans
  • Create a new project
  • Select PHP
  • And then an appropriate option form the list below
    (I selected 'PHP Application with Existing Sources')
  1. ‘PHP Application’ – starting with no files
  2. ‘PHP Application with Existing Sources’ – use this when you already have installed a system such as wordpress or MyITCRM already on your local webserver. Same configuration options as above but will scan the folders and add them to your project and possibly import any netbeans metadata.
  3. ‘PHP Application from Remote Server’ - use this when you already have installed a system such as wordpress or MyITCRM already on your remote webserver. Same configuration options as above but will scan the folders and add them to your project and possibly import any netbeans metadata.
    Possibly + This is where the live files are not the ones you work on but are ones that have been published.?

    should look like
    Choose Project
  • Fill in the page ‘New PHP Project with Existing Sources’
    • Set the ‘Sources Folder’, this is where your actual files are
    • ‘Project Name’ give your project a name. this will default to the name of the sources folder but it is ok to change it.
    • ‘PHP Version’ = The PHP version that your project uses. Note that you do not affect your PHP code by your choice in this field. Only the IDE's code completion feature uses the value in this field. Either select the latest version of PHP or the one that matched your local webserver.
    • ‘Default Encoding’ – this should be left at UTF8
    • Tick ‘Put NetBeans metadata into a separate directory’ – this ensures that the NetBeans metadata is not present in the live folder on the webserver. This can be very messey if they are not separate. Ignore the warning, no-one ever seems to have a problem with this and everyone ticks this feature.

      should look like
      Name and Location
  • Click next
  • Configure with the following settings
    • ‘Run As´- leave this as ‘Local Web Site (running on local web server)’, this is your xampp server
    • ‘Project URL’ - this is the web URL of your project.
    • ‘Index File’ – this is obviously the default file to load.
    • ‘Copy files from Sources Folder to another location’ – not sure what I would use this for. It is not something I need

      should look like
      Run Configuration
  • Click finish
  • If prompted to enable SMARTY support, click and enable it.
  • Run any updates that are pending

Import into a subversion

  • In the projects tree on the left hand side of netbeans, slect the ‘Source Files’ for your MyITCRM project
  • Goto Team/subversion/’Import into Repository’
  • paste in https://svn.quantumwarp.com:18080/svn/MyITCRM - the boxes will change to match this protocol
  • fill in the following details
    • username – shoulders
    • password - xxxxxxxxxxxxxxxxxxxx
    • tick ‘Save Username and Password’
    • ‘Client Certificate File’ – I think this is the SSL certificate, might also be the fak Certificate Authority (CA) file – ignore this
    • Passphrase – this is the passphrase for the SSL certificate – ignore this
    • Ignore Proxy Configuration

      should look like this
      Subversion Repository
  • Click next
  • The Repository URL might get perverted to https://svn.quantumwarp.com:18080/svn/MyITCRM
  • You will now get a SSL error about the certificate. Accept permanently.
  • Click browse and select trunk
  • Now enter a message eg ‘First Import’
    It should now look like
    Repository Folder
  • Click next
  • You should get a warning about ‘Import into exisiting folder?’, click yes
  • It might take a while but then you should see
    Import into existing folder
  • Click finish

    you should now see
    Files to Import

  • The files are now imported in to subversion and should be connected to this project and as a consequence the team menu options have changed.

Notes

The subversion information is saved in the files, so while testing these will need deleting

Files already in Subversion Repository

  • Goto Team/subversion/checkout

Using NetBeans

Ie svn when should I use trunk/branches etc… what is the difference. Should I just use the trunk if it is me or should I create my own branch.

 

Published in Redmine

This article is 2 fold. It firstly tells you how to export your bookmarks from the AOSP browser in Android and then how to import them into Firefox. The other browsers such as Google Chome or Mozilla Firefox have a sync feature built into them and there are also apps to extract the links from these. But this article is for extracting the Bookmarks from the AOSP browser only. Once you have done this you should consider using the inbuilt sync features of the Chrome or Firefox browser.

Below are different methods based on the 2 Apps that I have used on how to export from android AOSP browser to importing them into firefox.

Bookmark Sort & Backup

This is my prefered option because of the nicely formed html file that can be imported straight into FireFox.

Download here

now on its description it says

  • '*** DOES NOT WORK ON NEWER DEVICES USING CHROME AS WEB BROWSER ***'
  • 'Warning: on Android 3 & 4, do not use this application if the Google Chrome bookmark synchronization is activated.'

From reading this means it willl not work on later version of android where the browser is chrome, not AOSP. it's second waring is about not using it if the syncronization was activated. well i had just installed the chrome browser and activated the sync, but i had no links in it and the backup happened fine. i would recommend uninstalling this after runnig the backup. It probably messes with the sync if you try and add things or alter them possibly.

  • when run, the app then loads the links and you can see how many there are. you can also access the backup withou performing any other function.
  • default location for backup export /storage/sdcard0/BookmarkSB  , this can be changed
  • bookmarks SB exports the bookmarks in an HTML file with all the hyperlinks working using the page title as the link name

Instructions

  1. Install Bookmark Sort & Backup on the Android phone
  2. Open the app and export links to the default location (no changes required for this)
  3. Copy the newly created backup file to your PC however you want
  4. Now select an option from below to import the files into your FireFox browser

Get Files into Firefox on your Browser

Now you have the file on your PC you have 2 options to import the links to Firefox because of the useful format it has been exported in.

Option 1

This is my prefered option because of the nicely formed html file that can be imported straight into FireFox.

  1. Make sure the root of your Firefox Bookmarks is empty of individual bookmarks, folders are fine. (This is the Bookmarks Menu)
  2. Create new folder in Firefox for the import, call it 'My Android Mobile Phone Links'
  3. Import directly into firefox via the 'Bookmarks / Show All Aookmarks'/Import Bookmarks from HTML'
  4. All files will be importe to the root of your FF bookmarks, so move these new links to the new folder

Option 2

  1. install a multilink opening plugin for Firefox (Snap Links Plus)
  2. Open the backup html file from Bookmark Sort & Backup in firefox (Drag and Drop)
  3. Select all links and open them
  4. Right click on the tabs and select 'Bookmark All' saving them into a new folder

Option 3

  • Use an online URL emulator and open all of the URLs in the browser
  • when all of the URLs are open, right click and slect 'Bookmark All'

Optional

To keep things clean you can delete the Bookmarks on your phone using Super Backup and use 'Remove Bookmarks' option

Super Backup : SMS & Contacts

Download here

  • This has an excellent feature to delete all bookmarks on the phone. This appears to only wipe the AOSP bookmarks, but possibly wipes Chrome, Firefox etc... but this needs checking.

  • This backed up the bookmarks to an xml file, i need to see if it did them all. ie local and those at google via the AOSP browser (AOSP browesr is not chrome and is the one with the blue world icon)
  • It does seem to do both local and the google ones but only supports folders in their format
  • The backup can be put wherever you want but defaults to the internal SD Card in the follwoing location. It should be noted that you can swap the SD Card or device it is saved in and unless you change it it will use the same relative location on that drive.
  • The XML that is created is in a proprietary format but the links are clear along with the other information if you wanted to perform any operation on them.

Instructions

  1. Install Super Backup : SMS & Contacts
  2. Backup the Bookmarks with Super Backup. This exports them in to an xml file format (proprietary format, located here....) on the SDCard
  3. Copy the backup XML file to your Windows PC however you want
  4. Scrape the bookmarks.xml to extract and convert all URLs to links and place them in a new HTML file. This can be done by some on tools or a simple PHP script
  5. Open the new html file in firefox
  6. Install a multilink selector plugin to Firefox
  7. Open the .html file you have just created
  8. Highlight and open all of the links that are displayed in your browser
  9. When all of the bookmarks have been opened use the 'bookmark all links' to folder option

Optional

To keep things clean you can delete the Bookmarks on your phone using Super Backup and use 'Remove Bookmarks' option


Links

Extract Domains Links

These might get moved to their own article

Published in Android

There might be occasions where need to know the colour of a text used in a libre office document. I will show you here the different methods that i know of.

These will probably work on open office documents aswell.

Copy and Paste

  • In libre office highlight the text and copy it
  • open up your favourite WYSIWYG (i used JCE Editor in Ioomla)
  • paste

The text is now pasted in to the wysiwyg and the hex code is contain in a <span> tag around the text for you to use.

Extract and Unzip

Most people dont know that libre office files are zip compressed and that the actual language is an xml style similiar to html if not a derivative.

  • but if you use an unzip file to look at the zip'd contents of a .odt file, you'll find content.xml.
  • In there will be style definitions that include colours specified in hexadecimal.

For example, from a little test file that I made:

<style:style style:name="T4" style:family="text"><style:text-properties fo:color="#008000"/></style:style>
<text:span text:style-name="T4">green</text:span>

You can then use Tools > Options > LibreOffice > Colours to add any desired colour to your GUI.

Other

  • Save the document as a html file and then read the HTML code for the HEX code
  • Use a windows based colour picker and just select the font you want for the colour. You might find zooming in on the text to make it larger helps you here.

Links

Published in Applications

I am running Cyanogenmod 10.1.3 on my Samsung Galaxy SII (GT-I9100), and starting yesterday my keyboard continuously crashes with the following message:

Unfortunately, Android keyboard (AOSP) has stopped.

This message pops up very 10 seconds or so even when I am not trying to type. I thought it might have something to do with my recent install of the DU Speed Booster app. But after uninstalling it I still get the same problem.

This is very serious, as my phone is rendered almost completely unusable since I can't enter any text, and message keeps popping up preventing me from even doing things that only require touch.

Solution

Go to System Settings > Apps > click Android keyboard (AOSP). Clear Data. Clear Cache.

Links

Published in Android
Thursday, 11 June 2015 13:33

Spudger and Pry Tools

These are my notes on those plastic opening tools for those fiddly phones and electronic devices that dont want to be opened.

A Spudger is also known as:

  • Spludger
  • Pry Tool
  • Prying Tool
  • Opening Tool
  • Pry Bar
  • Case Opening Tool
  • Guitar Paddle (searching for these make a Spudger cheaper)
  • Plectrum

All terms can prefixed with either: Metal / Plastic / Nylon

There are loads of different types of spudger, both plastic and metal. The most famous is the DottorPod iSesamo which is a metal blade with a plastic handle specifically designed for opening iPhones. The iSesamo requires care when being used because it is sharp metal

I have discovered that the plectrums are sold as Spludgers or pry tools as they are ideal for the job and because they are plastic they are not likely to damage your electronic goods.

Spudger - Wikipedia, the free encyclopedia

My advice, now that you know the different names of a Spludger, search on eBay and find the ones that suit your need. I found the following a good list:

  • Plectrum Spludgers
  • iSesamo
  • Bar Style Nylon Spludger
Published in Electronics
Thursday, 11 June 2015 10:46

My Desoldering Gun Research Notes

These are my notes i made while looking for decent Desoldering Gun

Desoldering Guns

Links

Published in Electronics
Page 46 of 96