paolo@rigel:~$ sudo badblocks -n -s /dev/sdg
[sudo] password di paolo:
Ricerca dei blocchi non validi (test in moalità lettura-scrittura non distruttiva)
Controllo con un modello casuale: 24.33% done, 8:14:38 elapsed. (0/0/0 errors)s)

It’s a long long way to check a 500Gb disk over Usb2 for bad sectors.

I used to carry this disk around. Last summer I plugged it into a TV to play some movie I had on it and it began making a horrible “tlack!”. Ok, I told my family, it’s going to break, let’s make something else.

Now I do really want to check it out, since I already formatted it at low-level and it didn’t show any error.

Are they really allowing this?

 

I’m shopping for some books to update my rusting C++ proficiency coming to Trip report: Summer ISO C++ standards meeting (Oulu) | Sutter’s Mill from the omnipresent Wikipedia entry.

I almost jumped when I read this:

Two language features that didn’t make it (yet)

Of the new language features I mentioned last time, only two didn’t make it into C++17:

  • operator. (dot) to allow smart references (in parallel with smart pointers) and much more. During final core language wording review, the authors discovered a problem that couldn’t be fixed in real time at this meeting, and was pulled back while the authors fix the proposal.

Gosh, allowing to redefine the dot operator is a mind blowing, bold move. I can barely think about the consequences.

Let’s spice up

In the last two months I’ve been almost forced to use this humble EeePc of mine at work:IMG_20170428_084551 a humble netbook from 2010. It was cheap even then (199€ with Ubuntu!) that I have bought because of its portability, knowing it was a slowish machine. For my work flow it’s unbearably slow so I use the plain old remote X sessions, such as paolo@eeepc:~$ ssh -Xf laboratorio oocalc. On a plain LAN it’s almost perfect, while a VNC session is much slower.

I tried Xrdp but on Centos it has some glitches. So why keep trying to use when good old X-Windows is up to the task?

Well, I do acknowledge that in case of real remote session a plain X-session is the slowest thing on planet Earth while RDP seems to provide a better experience than VNC. Too bad I’ve been unable to make it work without passing trough a local VNC session which seems to me a workaround.

µWS

https://github.com/uWebSockets/uWebSockets?_utm_source=1-2-

µWS is one of the most lightweight, efficient & scalable WebSocket & HTTP server implementations available. It features an easy-to-use, fully async object-oriented interface and scales to millions of connections using only a fraction of memory compared to the competition. While performance and scalability are two of our top priorities, we consider security, stability and standards compliance paramount.