Thursday, March 30, 2017

cURL on Windows in only two steps

Hello and welcome. This is really a short post here, 

cURL is a very useful tool for interacting with web APIs and services. I just found that lots of students and friends refrain from following lots of steps to install such a simple CLI tool.

I depend in my proposition on chocolatey and a package created by their wonderful community, so the first step is to actually install chocolatey by the command below. If you already have it installed, skip to step two.

Step One
Run on cmd.exe as an administrator :
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
At this time , you might want to close your cmd and reopen it , again as an administrator

Step Two
cinst curl -y
That's it, now from the cmd try
curl wttr.in/cairo

TaDaa !! and that would be the weather in Cairo.. It's getting hot in here 😆 .. see ya..

Saturday, December 24, 2016

PDF24: The Easiest free tool to combine images into a PDF file on Windows

I wanted to join some scans into a single pdf , and they're all in png. My requirement is simple, I've got some images and i want to combine them into a single PDF. I googled out everywhere and the closest I've found was this article from this gentleman here for the excellent tool graphicsmagick . However, if you're not a CMD lover, you probably won't be fancying the idea of writing down all the images in the order you want them in the PDF. PDF24 gives you the image combining feature out-of-the-box and it takes you three simple steps.

1- Download PDF24 ,install and run (duh!), the interface looks like the following.


2- From the PDF , click the PDF printer assistant , and drag the images to the left pane like below.
Note that you can use the up and down arrows to sort the images as you'll like them in the final PDF.

3- Now , use the join button (the one with the infinity symbol ) . The program will join them into one item.

 


4- Finally , use the Save as PDF and choose the file location .


That's it , have a blast.

Popular