background preloader

Resources

Facebook Twitter

Netkas.org. The Religion of The Big Lebowski | Great Dudes in History. Bubb Rubb And Lil Sis Soundboard. Schneier on Security. DIY Dropbox alternatives. July 26, 2011, 8:20 AM — Dropbox, when it's working and you feel good about it, is that kind of advanced technology that's indistinguishable from magic. You drop a file into a folder, and it's available on the web, on your other machines, and on your phone, often with multiple version backups. But the curtain has been drawn back on Dropbox's conjury lately, with Terms of Service (TOS) changes, a brief but scary any-password-opens-any-account moment, and then another TOS change that left many confused. It might be the case, then, that you don't want to trust just one blue-hued box for your file syncing. Your clients might have concerns about their data being stashed on a third party's servers, or you might just be a fan of redundancy.

In any case, it's not that hard to create a kind of Dropbox clone that relies on your systems and your bandwidth, but provides the same kind of drop-and-forget peace of mind. You've got a few options, depending on your proficiencies and desire to tweak. Apple Time Capsule Repair - LaPastenague. Every Apple Time Capsule, running 24/7, purchased in 2008 will be dead by end of 2010. (Well a few have made it longer.. good fortune to you.. ) The cause is dead capacitors in the oven baked, internally roasted power supply.. Average life appears to be 18-20months (See the register closed at 2500 dead TC). If you have an AppleCare warranty on any current MAC computer it should be replaced but check policy in your local area.

Note: Apple did have extended warranty on the first 6months worth of production.. this has now expired as all the Time Capsules produced in first half of 2008 exceed 3years. What is the cause? Power supply fails. But there is nothing fundamentally wrong with the power supply! Apple really designed cooling very poorly. Note, the hard disk is rarely going bad.. Is a repair worthwhile? Absolutely.. even yes! To do yourself it isn't that expensive. Updated summary. Method 1.. Running from an external power supply... Please note these warnings. 1. Time Machine for every Unix out there - IMHO. Rsync is one of the tools that have gradually infiltrated my day to day tool-box (aside Vim and Zsh). Using rsync it’s very easy to mimic Mac OS X new feature called Time Machine. In this article I’ll show how to do it, but there is still a nice GUI missing – for those who like it shiny. What Time Machine does Time Machine makes a snapshot of your files every hour. The files are usually stored on a external hard drive connected to your Mac via USB or Firewire.

So if you lose a file, or did a devastating change to one of your files, simply go back in time until you find your file or a version that’s not corrupted. Incrementally backing up all files every hour so that you can access them in reversed chronological order isn’t that hard with standard Unix utilities like rsync. Making full backups in no time every hour You can use this method to make a backup every hour or every ten minutes if you like. So, here the command to make the backup: Lets go through the parameters step by step. #! #! #! Shuffling. Shuffling is a very interesting programming problem, Almost everybody can come up with a good algorithm using a simple rand() function, but it gets a little tricky when one has to perform a in place shuffle (i.e. w/o using any extra memory). Knuth's Algorithm described in the Art of Computer programming, Vol 2 (which is based on Fisher Yates algorithm) is regarded as one the best known algorithm for the problem.

The description on wikipedia is a little clearer and goes like this:1. Let A1 := 1, A2 := 2 and so on up to AN := N, and let n := N.2. Pick a random number k between 1 and n inclusive.3. If k ≠ n, swap the values of Ak and An.4. Decrease n by one.5. Alternately, instead of going n to 1 we can do a forward pass like here: int N = array.length; for (int i = 0; i < N; i++) { int r = i + (int) (Math.random() * (N-i)); int t = array[r]; array[r] = array[i]; array[i] = t; } Ben Pfaff: How can I shuffle the contents of an array? The function below is a reasonable way to shuffle an array into pseudo-random order in C. The quality of the shuffle depends on the quality of implementation of the rand() function.

Many implementations of rand() have predictable lower bits, so the function instead extracts randomness from the upper bits of rand()'s return value, as described in C FAQ 13.16. The shuffle's quality is also influenced by UINT_MAX, the number of possible seed values passed to srand(). Many implementations of the standard C random functions only have UINT_MAX + 1 possible internal states, so that there will only be UINT_MAX + 1 shuffles total for a given n. An array of unique elements can be shuffled ! For the true story of how a badly seeded random number generator led to predictable shuffles, see Viega and McGraw, Building Secure Software, pp. 238–241, section “How to Cheat in On-line Gambling.” #include <stdlib.h> /* Arrange the N elements of ARRAY in random order. Learn Vim Progressively. Tl;dr: You want to teach yourself vim (the best text editor known to human kind) in the fastest way possible.

This is my way of doing it. You start by learning the minimal to survive, then you integrate all the tricks slowly. Vim the Six Billion Dollar editor Better, Stronger, Faster. Learn vim and it will be your last text editor. There isn’t any better text editor that I know of. I suggest you teach yourself Vim in 4 steps: SurviveFeel comfortableFeel Better, Stronger, FasterUse superpowers of vim By the end of this journey, you’ll become a vim superstar.

But before we start, just a warning. 1st Level – Survive Install vimLaunch vimDO NOTHING! In a standard editor, typing on the keyboard is enough to write something and see it on the screen. You should feel a bit better. You now know how to switch between Insert and Normal mode. I → Insert mode. Only 5 commands. But first, just a little remark about Normal mode. A last word about notations: 2nd Level – Feel comfortable 3rd Level – Better. LinuxUSBPenBoot - atv-bootloader - Apple TV bootloader. In this guide, we will build an atv-bootloader based USB flash disk that can be used for standalone boot. We will also enable telnet so we don't need a USB keyboard attached and can do everything remotely using a telnet session using a wired network connection. Unfortunately, wireless is not supported at this time. Since atv-bootloader contains all the disk tools required for creating GPT formatted partitions, one can use it to boot, partition and install Linux with a USB cdrom using only the AppleTV.

Of course you do need a working Linux system to first create this USB flash disk. We need our standard items for creating an AppleTV "Recovery" partition. Parted --version parted (GNU parted) 1.8.8Copyright (C) 2007 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later < is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.

Verify that it looks fine and the atvrecv flag is set. ATVBackup - atv-bootloader - Apple TV bootloader. Note: This requires "recovery-0.6.tar.gz" or greater. The previous versions do not contain all the required command-line tools. You have bought an AppleTV and want to alter the original internal PATA disk. To be able to restore the original contents, you need to make a backup. This is highly recommended and does not take much storage space. The AppleTV comes into two flavors, a 40GB version and a 160GB version.

This method works with either and takes the same amount of storage space and time to perform. What we do is take advantage of the self-restoring capability that is already built into the AppleTV EFI fireware. Warning You might use "dd" to copy the entire disk but that's a waste of time and storage space and "dd" is not the correct tool to copy GPT format disks. Let's get started, first build atv-bootloader on a USB pen disk with telnet support. This is the USB flash drive created in atv-bootloader on a USB pen disk parted -s /dev/sdb unit s print mkdir src dst mkdir tmp mkdir staging. Prepare a Hard Drive. From AwkwardTV Overview atvDrive 1.1 <- greatly simplifies this process (Mac OS X only!) These instructions will guide you through the preparation of a new hard disk to replace the factory disk in the Apple TV.

When complete, the newly prepared disk will be identical to a factory disk but with a larger Media partition. Remark: There are several methods to add a new (larger) hard disk around. The Apple TV factory disk consists of four partitions: EFI - a small partition containing very basic information used by the Mac's EFI boot system to identify the drive and boot from it Recovery - contains an original factory-fresh version of what is copied into OSBoot during a Factory Restore OSBoot - the boot partition with the Mac OS version the ATV runs. The goal of this document is to illustrate several methods of re-creating the basic layout of the original drive, and then re-formatting the Media partition in order to increase the storage.

Requirements Compatible Drives Your Options: 4. 5. Apple TV Harddrive Upgrade Tutorial. Update: Thanks to reader Epon, we now have a way to do this without requiring iPartition. So you can now do the upgrade for only the price of your new harddrive. Here it is, a step by step tutorial on upgrading your Apple TV harddrive. With thanks to Jonathan Bare, the brave soul who worked this out! It should be noted that this process will almost certainly void your Apple TV’s warranty and you are attempting this upgrade at your own risk. You can do this via the terminal, or by using some applications (which add $100 to the cost of the process). What you need: Hex-bit screwdriver 2.5″ hard drive (we used a Western Digital 120 GB WD1200VE drive) Wiebetech Forensic DriveDock (optional, but recommended) or any 2.5″ to Firewire bridge Subrosasoft’s CopyCatX ($49), or be comfy with the terminal Coriolis’s iPartition ($45), or use the Apple Factory Restore This process was done on an Intel Mac Pro.

Step 1 Two volumes will mount, OSBoot and Media. Step 2 – Using the Terminal All done! Bell System Technical Journal, 1922-1983.