Showing posts with label odds&ends. Show all posts
Showing posts with label odds&ends. Show all posts

Monday, November 7, 2016

Odds & Ends: Tombstones on The Internet

Or Why Anything You Delete Might Not Actually Be Gone



Imagine this situation:

You just signed up for Face+, a new social media service.  You find family and friends here, and you are just ecstatic about all the new bells and whistles.  Suddenly, an ex finds you and sends you a message.  OMG, what a stalker!  You write back a nasty reply and post it.  A few hours later you realize that you might have made a mistake, so you delete your reply and compose a more thoughtful one that doesn't include threats of bodily harm.

Here's the big question:  was your original reply really deleted?

To answer this question, first we need to discuss how information is stored on the Internet.  

The vast majority of data on the Internet is stored via a distributed system.  This means your data is physically stored on multiple computers in various locations, so that you have access to your data regardless of where you are and what's going on in the real world.  For example, if Houston has a flood and all local data centers go offline, all of the information needs to be replicated in other data centers so that users aren't impacted by the outage.  All of the major players on the Internet do this, which explains why a random hard drive failing in a data center doesn't lose data for anyone.


This distribution of data means that to truly delete something, you need to delete that piece of information off of all the hard drives in every location, which is somewhat of a logistics nightmare.  To combat the problem, tombstones were created.  A tombstone is a placeholder that states a piece of data has been deleted.  When information flows around the Internet, all the pointers to the data now find a tombstone, so whomever or whatever is looking for the deleted information is told that that data has been deleted.   

The problem comes from how and when tombstones are deleted.  You see, I/O (input/output) is expensive, as is CPU cycles.  But storage mediums, such as hard drives, are relatively cheap.  So leaving tombstones around for a long time is not a problem because they take up a tiny amount of space.  What matters to most users, though, is that the data referenced by the tombstone is only marked for deletion.  There is nothing to say the data has been deleted from the hard drive.  

There are a lot of practices in place for how and when to defragment disks, how to store and retrieve data in a timely fashion, and how to manage data centers.  These practices balance the need to provide fast service with the expense of a data center.  To get faster service, you can:
  • Increase the CPU speed
  • Increase the amount of memory
  • Increase the speed of the hard drives
  • Increase the speed of the network connection
  • Increase the I/O speed by not doing a lot of writes and keeping related data physically close on the media for faster reads
The last bullet point is key to this discussion.  By using tombstones, reads are much faster and with a definite answer if someone asks for a piece of data that has been marked for deletion.  Without a tombstone, a request comes back "not found" with no reason behind the error.  With a tombstone, a request comes back "data has been deleted".  

What does this mean for the average user?  Basically, if you delete something from the Internet, you will probably lose the ability to access that piece of data through regular websites.  But that does not mean that your data has been physically deleted from all of the places where it exists in data centers.


So to answer the original question, your original reply is marked with a tombstone, but there is no guarantee as to when it will be deleted or how long it will remain hidden on the hard drives. 


Monday, October 17, 2016

Odds & Ends: This Image Might Contain a Virus!



I'm sure you've heard of viruses and worms going around the Internet, but did you hear about the virus hidden in image files?

A long time ago, in a land far away, some creative programmer discovered that that early version of Internet Exploder Explorer allowed code in an image file to be executed. To be specific, the metadata (information about the image file that is never shown) can contain a larger amount of data than expected, causing a memory buffer overflow situation. Skilled programmers can inject a virus into that large data and place it in such a way that the OS will execute the code.

Suddenly, people had to worry about simply viewing an image sent to them in email or on a website. It took Microsoft several years to plug this particular security hole, and I think it still exists if you're running IE 5.0 or 5.5 (because these versions never got fixed).

Imagine, though, what you could do with a special picture that secretly runs code on a target computer. Bwahahahaha!!!

Monday, October 10, 2016

Odds & Ends: An Interactive Graphic with Every Active Satellite Orbiting Earth



While it's easy to talk about satellites orbiting the earth, it's another thing to actually see the number of satellites up there. This post links to a website that has a good, interactive graphic showing all known satellites orbiting the earth divided up by their orbital height. 

To see how the satellites move in relation to each other, press 'Q' and press the space bar. Just be warned, it might melt your browser. :D

If you have a few minutes, I suggest you look around here. It's interesting even if you're not doing a sci fi book.

Monday, October 3, 2016

Odds & Ends: Thermochromic Paint

Thermochromic paint is a type of paint that changes color due to the temperature of the painted object.   Either cold or warm temperature can trigger the color changes, though the heat-induced color changes are the more popular version.

I know that this doesn't sound exciting, but think about how awesome it would be to leave hidden messages to people using this type of paint.  In the desert, you can leave some messages that only show up in the daytime and some messages that only show up at night.

Maybe you can mark your evil lair with this paint - bwahahahaha!!!

To show the coolness of this paint, I've included a video of a motorcycle as it warms up.

Later!

Monday, September 26, 2016

Odds & Ends: The Ping of DEATH!!!



This week takes us back to the 1990s. First, you need to understand that the Internet has been around a lot longer than most people realize. It began back in the 1970s. And before we had fancy user interfaces to maintain the networks, we used command lines to do... well... everything.
One of the most useful tools for someone back then was ping. Ping is part of the TCP/IP protocol suite, and it works similar to a submarine ping, where someone sends out a signal and wait for a response. Only, network pings send out a series of short messages to the target computer and then wait for the appropriate responses.
You can try this out right now:
  1. Go to a terminal window on Linux, or a command prompt on Windows.
  2. Type in "ping google.com"
  3. Stop the ping using Ctrl-C.
You'll get a response that looks like this:
[katp@Werewolf-Den ~]$ ping google.com
PING google.com (216.58.218.14) 56(84) bytes of data.
64 bytes from atl14s39-in-f14.1e100.net (216.58.218.14): icmp_seq=1 ttl=55 time=21.2 ms
64 bytes from atl14s39-in-f14.1e100.net (216.58.218.14): icmp_seq=2 ttl=55 time=21.0 ms
64 bytes from atl14s39-in-f14.1e100.net (216.58.218.14): icmp_seq=3 ttl=55 time=20.9 ms
64 bytes from atl14s39-in-f14.1e100.net (216.58.218.14): icmp_seq=4 ttl=55 time=20.5 ms
64 bytes from atl14s39-in-f14.1e100.net (216.58.218.14): icmp_seq=5 ttl=55 time=24.0 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 20.573/21.603/24.086/1.276 ms
With me so far? Good.
Someone discovered that it is possible to send extra data along with a ping, and that some operating systems didn't handle the extra data well (coughwindows cough). A ping with extra data ended up at best writing over working memory and crashing the computer. At worst, malicious code got passed in that ran on the operating system before crashing the computer.
The best (or worst) part about this? There were no clues left behind as to why the crash occurred. The memory overwrites caused a variety of problems that had nothing to do with the ping. Plus, pings weren't typically recorded in event logs; and if they were, pings are anonymous.
Bwahahahahaha!!!
The idea of sending a message to screw with someone else is still around. Only last year (2015), it was discovered that you could send a specific text message and it would reboot an iPhone.
Makes me wonder what will happen next....

Freaky Friday News: Unicorn Licenses

Los Angeles County Gives a Young Resident a Unicorn License Last month, a resident of Los Angeles county, Miss Madeline, sent a handwritte...