Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Nathaniel Mignot
Nathaniel Mignot
597 Points

USB Storage

Is there any reason I cant save everything I do on a flash drive? I'm new to all of this and right now I'm doing the Cupcake one and using sublime text 2. I have the portable one for computers that don't have it and I also have it on my computer. Right now I'm saving all my files to the USB drive but if I go to another computer will it mes up? What are some other builds I can use as well. I tried to google it but got more info then i can understand now.

6 Answers

Clinton Hopgood
Clinton Hopgood
7,825 Points

If you're using only HTML CSS and scripts then you will be fine to work from your USB. These languages are client side.

If you were using PHP for example this method wouldn't work, PHP is a server side language an requires the correct environment including SQL and a apache for example.

In answering you question, you should have no problem using your USB for you current requirements.

Sean T. Unwin
Sean T. Unwin
28,660 Points

It shouldn't be a problem. I would recommend backing it up on your home computer (copy the files but also leave the files on the stick) once in a while in case you lose it.

On a side note, I have a 64Gb thumb that I have linux installed on that I can use on any computer that allows to boot from USB. I use it primarily on a netbook that's slow as beans in molassas when using Windows that it came with, while it seems significantly faster with Linux on the thumb drive.

I have all my dev tools on it and I've been using for many of my Treehouse projects, as well as others. I don't do any graphic design with it; only for coding. I backup all the files regularly and don't keep anything on it that really matters for very long. It's also an encrypted install so if I lose it, yeah it wouldn't be great, but there is nothing too identifying on it for very long since there are no persistent logins for anything -- I have to manually log in to whatever web service I use each session. It takes longer (more typing involved and such) but it's more safe.

Herb Bresnan
Herb Bresnan
10,658 Points

I hope this isn't too much info...but, saving files to a USB will not mess anything up. As an EXAMPLE: if you have are downloading a file named html_forms.zip...

  1. Download this to your computer.
  2. Create a file on your USB and name it html_forms
  3. Right click on the downloaded folder. (the computer will ask you where you want the file extracted to)
  4. Click "browse"
  5. Choose the file you created on your USB drive.

The files will be extracted to your USB and they will have the .html and .css file extensions. You can open these files in which ever editor you are using (Sublime, or Notepad++, or whatever you are using on your portable device.
Hope this answers your question.

Nathaniel Mignot
Nathaniel Mignot
597 Points

Thanks for all the help guys. I just want to make sure before i unplugged it to use at other locations that i wouldn't lose the path when i load it later. I was also looking for a Linux program to download to a flash drive for later use but couldn't find anything to work just by googlilng it. I'm just at the HTML part now. it looks like ill have to get a different laptop for the other ones. I have a 8lb 17in goliath now that's a pain to care and just fits in my bag.

Ricky Catron
Ricky Catron
13,023 Points

The only problem I could forsee would be absloute paths in your links such as

<a href="C:/my_folder/moy_folder/myfile.html"></a>

This would go bad if you switched computers. To prevent this use a relative path like

<!--This assumes myfile.html is in the same directory as the file linking to it -->
<a href="myfile.html"></a>
Nathaniel Mignot
Nathaniel Mignot
597 Points

Thanks Ricky. I'll keep that in mind is i do an absoloute path. I'm looking to to smaller and lighter computers now. Maybe a Mac because i want to do IOS stuff and it looks like thats the only way to do it.