Two-step authentication is the technology to use everywhere as much as possible, to prevent identity and data theft. Many online services, including Dropbox, LastPass, Facebook, are using Google’s Authenticator app. It generates random time-dependent one-time codes that should be entered in the process of the two-factor authentication.
Microsoft’s live.com service also supports the 2-step authentication. However, by default Microsoft wants you to use its own app to generate the one-time codes. It does not make much sense to use it, if you are using Google Authenticator (GA) for all other services. Luckily, Microsoft is smart enough to support GA as well, just in a little hidden, even though simple, manner. Here is how to set it up:
- “Add a new identity verification app”
- Choose “Android”, press “Next”
- (If you now choose “Install the app from the Google Play Store.”, you’ll be offered to install a Microsoft app.) DO NOT DO IT.
- At the bottom, there is a line: “Android device not compatible? Try this app instead.” It is a link to the Google Authenticator. Click it.
- On the next page, a QR-code for Google Authenticator is shown. Scan it with “Set up account” function in Google Authenticator, verify the code and you are good to go.
cksum utility can calculate the file checksum using 3 different algorithms. The third one is the well-known CRC32.
- CRC32 of a single file: cksum -o3 filename
- CRC32 of all files in the current directory: cksum -o3 *
To verify the checksum in Windows, I recommend using HashTab. After installing it, just check the proerpties of a file and compare the CRC32 value returned by HashTab to the value calculated by cksum. Note that HashTab shows CRC32 as a hex number while cksum shows a decimal value; you can use an online converter to compare the two values.
Example (for some file on my Synology):
ds414> cksum -o3 mrr40320.JPG
946866417 14531 mrr40320.JPG
The first number returned by cksum is the CRC32 value, the second the file size in bytes.
Value returned by HashTab for this file is 387008F1 which is the same as 946866417 returned by cksum.
Does anybody know what the 1st and the 2nd algorithms of cksum are?
- Control Panel: User: activate admin account, make sure you know the password.
- Control Panel: Terminal & SNMP: activate SSH
- Download Putty (link), a popular terminal client for Windows.
- Run Putty and enter the Synology IP address without the port, choose connection type SSH. The port will be set automatically by Putty.
- Press Open. Putty will ask if you want to trust the Synology key. Press yes (make sure your network is safe, otherwise your admin password may be compromised).
- Synology should ask for login and password. Use admin and the corresponding password.
A lot of people associate torrents and pear-to-pear (P2P) technology in general with illegal music, film, and software downloads. Some internet providers even block the torrent protocol claiming that it’s illegal to use it.
Next time they do it with you, tell them: P2P is fully legal, and a lot of digital material can be downloaded via torrent. The advantage of using P2P instead of the direct download links is that reduces the load on the company server and may even help get the file quicker while also helping others. Be internet ecology-friendly.
I will be collecting here examples of what you can legally download via p2p. Please feel free to contribute in the comments.
Some sites also specialize on freely distributable material:
log4php is best configured using XML file.
Database encoding is best set to UTF-8, since it will allow storing non-Latin values in the log.
It can be achieved by the following modification of the DSN setting line in the XML configuration file (under Appender):
<param name="dsn" value="mysql:host=localhost;dbname=mysql;charset=UTF8" />
OSRM — beautiful map and extremely fast routing for car and bicycle.
Useful links for OpenStreetMap beginners
GPSLogger — a simple beautiful and functional logger and track uploader. Runner-up: OSMTracker — not as easy to use or beautiful, but more functional, with POIs, photos, voice recorder and more.
ClipSync is a wonderful simple tool for sharing of text clipboard between Android smartphone and a Windows PC. Install the server part on the PC, install the app on the smartphone, connect them—and start copy-pasting between the devices.