Author Archives: Savas

Combine PDF files with a context menu option

I needed a way to quickly combine two or more PDF files without having to run a program or click mutiple times. This solution basically allows you to right click and automatically combine your PDF files then delete them once it’s finished combining.

First download a program called pdftk, once installed head over to where you actually installed it, copy two files; “pdftk.exe” and “libiconv2.dll” to a new folder (preferably where you will not accidently delete it).

Create a new text file and rename it to “PDF Combine.cmd”, edit the batch file and copy paste the below code:

@echo off
setlocal enabledelayedexpansion

for /f “tokens=2 delims==+-” %%i in (‘WMIC OS Get LocalDateTime /value ^| findstr “=”‘) do (
set _Date=%%i
set YY=!_Date:~2,2!
set MM=!_Date:~4,2!
set DD=!_Date:~6,2!
set HH=!_Date:~8,2!
set MIN=!_Date:~10,2!
set SS=!_Date:~12,2!
)
set today=20%YY%-%MM%-%DD%-%HH%%MIN%%SS%

FOR %%A IN (%*) DO (set command=!command! %%A)
D:\pdftk\pdftk.exe %command% cat output “%~dp1CombinedScan_%today%.pdf”

del %command%

The output file names for mine is “CombinedScan_DATE&TIME.pdf”. Make relavent changes preffered to you and save.

Now we want to set up the context menu for it so you can right click on files.

  1. Right click on your “PDF Combine.cmd” file, create a shortcut.
  2. Press your Windows key + R to bring up your run dialog. Type “shell:sendto”, which should open up your Windows SendTo folder. Move your shortcut you just created to this folder and feel free to rename your shortcut to whatever you prefer, I personally named it “Combine PDF’s”.

Now go ahead and test your automated method out. I recommend you use some spare PDF’s that are backups just in case you did something wrong. If you prefer to just skip downloading and copying the files, I’ve done that already and made a zip folder for you below.

Download pdftk.

Windows 10 startup folder location

The Windows startup folder is essentially a folder which you can place programs (or shortcuts to programs) or scripts that you want to run/open when your window starts. Hence the startup in the name.

To find out your Windows 10 startup folder. You have two options. Use your run command copy paste or type: shell:startup (right click on your start/window icon to bring up the menu).

This should bring you to the folder directly.

C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

If you wish to find your startup folder for all users on the system, you’ll need to instead run shell:common startup, which would bring you to:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

Firefox Developer Toolbar: Taking screenshots and uploading to Imgur in seconds

I used to use an add-on to take a screenshot and either save it to my desktop or upload it straight to imgur, what caused me to stop using it was I recently found out that this add-on decided that it would insert ads on pages! Now I’m not 100% certain it was causing my Firefox crashes, but lately I was experiencing them and that was the last thing on my mind, as it was just to take screenshots, not effect pages!

In an effort to replace this add-on I stumbled upon the Firefox developer toolbar, and how this exact process can be done with a simple command. One negative to this is I don’t think you can select a certain area that such add-ons can do.

How is it done?

First thing is you hit Shift+F2, which should bring up the developer console at the bottom of your page. FYI it stays on even as you switch tabs, so you can close the console again either by pressing the keys again or simply pressing the x on the right side.

Next you type screenshot (or you can type “s” and press tab). Then hit “-” and the options to either save it to your download folder or copy it to clipboard or upload it straight away to imgur.com (so you would type -i and press tab and enter and that’s it, a new tab with your screenshot is provided).

I do see the CSS selector so you could in fact inspect the elements and type out the exact div that you want to take a screenshot of, however not as easy as simply dragging to your preferred area, but may be useful if you find yourself taking regular screenshots of a certain page.

Copy paste option: “screenshot --imgur” and that should do it all for you. Later on, if you open the console again, just hit the up arrow key and press enter, thus you don’t need to repeat.

The downside to this is the screenshot, once uploaded to imgur seems to link you to the raw/direct image, skipping the page that gives you the delete URL, this may be bad if in the event the screenshot is wrong or contains information that you wish to not make public. I think once this gets adjusted and also adding maybe a selection area, then this would be perfect to replace any addons that do this.

To read more about the Firefox developer console, look here https://developer.mozilla.org/en-US/docs/Tools/GCLI

What else is useful?

Ever closed a tab by accident? Well use Ctrl+Shift+T to recover it.

 

Software Review: MyPhoneExplorer

Let me introduce you to MyPhoneExplorer, a piece of software that allows you to smoothly transfer files between your computer or laptop and Android device(s). Perfect for someone looking for a more user friendly, less time consuming and powerful way to sync, backup and move files to and from your phone.

The software allows you to connect via WiFi, Bluetooth or your USB connection. There’s even extra features like screen mirroring (being able to see your phone on your computer, useful for projecting things to your screen). A powerful contacts management, backing up your SMS messages.

How does it work?

Once you install MyPhoneExplorer on your phone then the client software on your computer, the application asks you to set a PIN, this will later be used to match and allow your computer to gain access to your phone, so not anybody can use this with your phone, even when on the same network, a nice security feature.

You can go through your phone directories just as if you were going through your folders on your computer. Transfer files to or from your computer, delete things you don’t need on your phone, rename, etc.

You can set up synchronization jobs so a certain folder such as your pictures folder can be copied to your computer straight away, with one click once you connect.

Is it free?

In 2015, the developer decided to remove ads, it’s 2017 now as I write this and there is still no ads. The application is free, the only thing the developer has done is ask for a donation if you want to as you close the program on your computer – completely understandable and respectful, I think people should donate too so his hardwork is paid off and actually one of the reasons why I write this review, because he’s done a good job and does it for free.

Link to MyPhoneExplorer on Google Play.

Link to the website to download the software or more.

How to fast switch between resolutions using a batch file.

Here’s a quick way to switch between Windows desktop resolutions using a batch file and an executable file. I needed to do this in order to have a better overview in the game Age of Empires HD (on Steam). Let me visually show you what I mean. Have a look at the screenshots below, you can clearly see a more broader view as you up the resolution.

For some reason the viewing distance is different to the one in the original game.. A few years ago I tested to see if there is a difference in resolution compared to the old Age of Empires and there is so they have in fact made your viewing distance closer. As someone who’s played Age of Empires for a long time this was a problem for me. Now in the original you could change your resolution so simply enabling DSR Factor via your graphics control panel and changing the resolution in-game could resolve this issue for me, in this version the ability is not there (I assume poor development). Anyway, you will first need to enable DSR Factor, I currently prefer x1.75 as shown below.

Then you’ll need to download the file below. Tweak the resolution settings for what you prefer and run the game. If you have the option you can play around with the smoothing, essentially it’s anti-aliasing between the pixels so it doesn’t look pixelated due to the difference of your monitors resolution capability and what’s being scaled.

Now I was under the impression that a batch file can’t actually do this (on its own), I still think this is the case, but with simple help from a file you can still achieve it. The benefits of this way is you can change your preferred resolutions and simply run the batch file with as less clicking as possible, while an executable would require a bit of extra clicks.

At the time I could not find the source code for QRes (and I downloaded it from a separate site) so I did a virus scan on it – here’s the result. Secondly I used Sandboxie and launched the file in a sandboxed environment and looked at what – if any – files were executed along with it.. It left zero trace and the file size also indicates to me it’s pretty simple.

Now here comes the actual batch file.

QRes.exe /X 1920 /Y 1080

Yup, that’s it. So in the folder there is the ‘QRes.exe’ file, then there’s ‘RC 1920×1080.bat’ and ‘RC 2560×1440.bat’ files which I run to switch between the resolutions. All these files must be in the same folder for it to work and by the size of the QRes.exe file it looks to just simply run based on the resolution that’s provided in the batch.

Download Resolution Changer version 1.0 here.

 

My PC System Specifications for 2017

As of writing, this is my current PC system specs:

Type Item Price (Purchased)
CPU Intel Core i5-6500 3.2GHz Quad-Core Processor £196.49 @ Scan.co.uk
Motherboard Gigabyte GA-H170N-WIFI Mini ITX LGA1151 Motherboard £109.99 @ Amazon UK
Memory Corsair Vengeance LPX 16GB (2 x 8GB) DDR4-3000 Memory £89.99 @ Scan.co.uk
Storage Sandisk SSD PLUS 240GB 2.5″ Solid State Drive £39.99 @ Amazon UK
Storage Seagate Barracuda 2TB 3.5″ 7200RPM Internal Hard Drive £62.99 @ Scan.co.uk (Today Deal Only)
Video Card EVGA GeForce GTX 960 2GB SuperSC ACX 2.0+ Video Card £167.95 @ Scan.co.uk
PSU
Case Fractal Design Core 500 Mini ITX Desktop Case £43.99 @ Scan.co.uk(Today Deal Only)
Operating System Microsoft Windows 10 Pro
Mouse SteelSeries Rival 100 Wired Optical Mouse £29.99 @ Amazon UK
Headphones Kingston HyperX Cloud II 7.1 Channel Headset £68.05 @ Scan.co.uk
Monitor LG 32LF580V http://www.lg.com/uk/tvs/lg-32LF580V
Total £809.43

You can check out my full list at PCPartPicker – https://uk.pcpartpicker.com/list/Vk9h2R

My PC System Specifications 2016

As of writing, this is my current PC system specifications:

CPU: Intel Core i7 950 @ 3.07 GHz
Motherboard: Asus P6X58D-E
Memory: 6GB Corsair
Storage: SanDisk SSD PLUS 240 GB Sata III 2.5 inch Internal SSD (£39.99 – Amazon.co.uk)
Graphics Card: Gigabyte GeForce GTX 460
PSU: Corsair HX850W
Case: LIANLI PC-8FI
Operating System: Windows 10
Monitor: LG 32LF580V
Internet: 80Mbits (Plusnet)

OLD (2015)

CPU: Intel Core i7 950 @ 3.07 GHz
Motherboard: Asus P6X58D-E
Memory: 6GB Corsair
Storage: OCZ 120GB Vertex 3 2.5 SSD (£169.34 – Scan.co.uk)
Graphics Card: Gigabyte GeForce GTX 460
PSU: Corsair HX850W
Case: LIANLI PC-8FI
Operating System: Windows 10
Monitor(s): 24″ Samsung SyncMaster 2493HM
Internet: 17Mbits (Plusnet)

World of Warcraft Useful Macros (6.2.x.x)

Priests

Fast Fade (stop casting anything and cast Fade):

This is pretty simple; it will stop whatever you’re casting and cast Fade.

#showtooltip
/stopcasting
/cast Fade

Fast Silence:

Same as above, but you will stop whatever you’re currently casting and cast silence on your target.

#showtooltip
/stopcasting
/cast Silence

Holy Fire & Shadow Word: Pain combined to save space:

Using the same button, spam this should cast Holy Fire and finish at Shadow Word Pain and reset to Holy Fire, saving button space.

#showtooltip
/castsequence reset=20 Holy Fire, Shadow Word: Pain

Holy Word: Serenity & Circle of Healing combined to save space:

Mostly due to preference, this is same as above, but for Holy Word: Serenity & Circle of Healing

#showtooltip
/castsequence reset=20 Holy Word: Serenity,Circle of Healing

Purify if friendly target or yourself if nothing selected, if unfriendly target Dispel Magic, if shift, alt or ctrl held down Mass Dispel selected:

Title is self-explanatory, puts 3 spells in one button.

#showtooltip
/cast [nomod,help,exists] Purify; [harm,exists] Dispel Magic
/cast [nomod,@player] Purify
/cast [mod:shift] Mass Dispel
/cast [mod:alt] Mass Dispel
/cast [mod:ctrl] Mass Dispel

Flash Heal modifier, if Alt, Shift or Ctrl held down ‘Heal’ is selected:

This is a simple modifier, if you hold shift, alt or ctrl you can cast ‘Heal’, if nothing is held you can cast ‘Flash Heal’.

#showtooltip
/cast [nomodifier] Flash Heal
/cast [modifier:shift] Heal
/cast [modifier:alt] Heal
/cast [modifier:ctrl] Heal

Cast sequence for trinket (Judgment of the Naaru) & Shadowfiend combined to save space:

This basically targets your target and casts your offensive spells and goes back to your previous target, making it easier to continue to heal without having to any specific manual targeting.

 
 #showtooltip
 /assist
 /castsequence reset=60 Judgment of the Naaru, Shadowfiend
 /targetlasttarget

General Macros

Change specs:

This should just switch from your Primary to your Secondary Specialisation and vice versa.

/usetalents [spec:1] 2; [spec:2] 1

RMS syntax support for Notepad++ (UDL)

So I wrote a guide on Steam on syntax colouring for Random Map Scripting for Notepad++, the scripting language to write random maps on Age of Empires. Essentially Notepad++ supports language syntax support, allowing you to make syntax easier on the eye.

So you’re writing a random map script, using standard default Notepad (that comes with Windows), it would look like this:
notepad

With Notepad++ and syntax colouring (User Defined Language Files) enabled, it will look like this:
notepad++

So you get the drift, basically giving you a clearer visual on your code and possibly preventing errors in them as well.

You can see the guide here:
http://steamcommunity.com/sharedfiles/filedetails/?id=439948511