sheepfilms

JBB: An Artblog!
art blog(derogatory)

Kiana Khansmith
Cosimo Galluzzi
Three Goblin Art

izzy's playlists!
Jules of Nature

No title available
Aqua Utopia|海の底で記憶を紡ぐ

Origami Around
trying on a metaphor
Sade Olutola
Alisa U Zemlji Chuda
Cosmic Funnies

⁂

❣ Chile in a Photography ❣
Show & Tell
DEAR READER
Claire Keane

seen from Italy

seen from United States

seen from Indonesia

seen from Germany

seen from United States

seen from Netherlands

seen from Germany

seen from Türkiye
seen from Chile
seen from Morocco

seen from United States
seen from United States

seen from Malaysia

seen from Italy

seen from United States

seen from United Kingdom

seen from United States

seen from Germany
seen from Russia

seen from Germany
@heyyyjay
Hey everyone! I'm cleaning up my social media for privacy reasons, but if you need to reach me, email [email protected]
[Linux Cheat Sheet] Copying Files to a Remote Host
I recently moved my portfolio from my old UC Irvine server to my new one at www.jaytolentino.com, and so ran into copying my local files to a remote host. I've had to use these commands several times whenever I'm moving things around, so I thought it would be fitting to have it on my blog. Plus, I'll tag this and any similar future posts with Linux Cheat Sheet for any commands I want to remember.
Anyways, there are two commands one can use to move files over, and the one you choose depends on what you're copying.
Secure Copy command: scp usage: to copy one or multiple files securely over a network syntax: scp [OPTIONS] /path/to/source user@host:/path/to/destination useful options: -r, --recursive (recursively copies directories) scp Example: copying everything in my current directory to my remote host's public directory: scp -r . [email protected]:~/public_html/
Rsync command: rsync usage: allows copying of only modified or new files syntax: rsync [OPTIONS] /path/to/source user@host:/path/to/destination useful options: -r, --recursive (recursively copies directories) -u, --update (only copy new files or updated files) --delete (deletes remote files that don't exist in source directory) rsync Example: copying everything in my current directory to my remote host's public directory: rsync -ru --delete . [email protected]:~/public_html/
So the story goes that, after making my initial move from local to remote, I ended up changing some files. But if I kept using scp, then every file would be recopied to the remote host, even ones I didn't change. As the number of files grew, so did the time it took to transfer things over. After a quick search, I discovered rsync solved this problem for me.
Another problem I ran into with scp is that I couldn't "copy over" files that I deleted. I would then go into my remote host and manually delete them from there. But! rsync solves that problem when you include that handy --delete flag.
Securing rsync I'm sure you're wondering "Well, is rsync secure?" Answer: if you use it in conjunction with SSH, then yes. For more on SSH and rsync you can check out "Securing automated rysync over SSH"[1]. And if you want to combine this with cron jobs (which is a tool for automating jobs based on some schedule, e.g. copying files to a remote host at 5AM daily), you can check out "Using Rsync and SSH: Keys, Validating, and Automation" [3].
Alright, so here's the breakdown... Use scp when:
copying individual files
copying individual or multiple files once
you want no-fuss security
Use rsync when:
copying only modified or new files
deleting files on remote that were deleted locally
doing automated jobs, but as long as you secure it with SSH
Lastly, if you're really curious about how SCP works behind-the-scenes, take a look at "How the SCP protocol works" by Jan Pechanec. Thanks and hoped this helped you guys as much as it helped me!
Notes: There also exists the rcp command which functions similarly to scp. However, as you might realize from the name, scp secures files transferred over the network using encryption since it's based on the ssh protocol. See [2]
Resources & Further Reading: [1] "Securing automated rsync over SSH" by Stephanie Kattoor (2008) [2] "rcp, scp, ftp - Comands for Copying Files Between Computers" by Juergen Haas (2008) [3] "Using Rsync and SSH: Keys, Validating, and Automation" by Troy Johnson (2013) [4] "How the SCP protocol works" by Jan Pechanec, Oracle (2007) [5] Full list of scp options [6] Full list of rsync options
Graduated from UC Irvine!
Because Facebook truncated my post on my timeline event -_- I'm posting the same here:
On my last day as an undergrad and my first as an anteater alum, I did the unthinkable - climbed the arts school fountain. LOL on my bucket list since those days long past when I was a first year art major haha. Thanks UCI for everything, and thanks to everyone I met along the way.
I started college unsure of myself, worried about what others thought of me and coloring only inside the lines. I told myself I can only measure my college success by the job I can secure before graduating, and here I am jobless. But I'm not scared. I left UC Irvine with something much more valuable - the wholehearted belief that I can achieve whatever goals I set for myself.
To all my graduating anteaters who are leaving college afraid of the job market, worried about starting at the bottom again, regretful of your past mistakes: let's move forward with confidence instead of fear.
Let's speak with genuine self respect, know that what we say is worth hearing. Let's aim high with the belief that we are worth the effort and hard work to make our individual difference in the world. Let’s act in full spite of the glass ceilings and doubts of those we will encounter.
We are the future, Generation Y! Screw what everyone says, we will work tenaciously against all odds and achieve what those before us thought unimaginable. I'll see y'all at the top.
Having fun with my random art knowledge lol
ESC is also CTRL-[ on American Keyboards
This means I don’t have to find a way to remap my CapsLock key to ESC in VIM. And I can keep my CapsLock as CTRL for most of the other things I need to do with it when I’m not in VIM.
HAHAHAH. nice.
OMG YAY this will make my VIM life so much easier!!! i always either end up accidentally writing a backtick or dimming my screen haaaa
The Most Inspirational Quotes
The Future of "Hacky" Culture - Fixathons?
Because my honors thesis is about software maintenance and rebuilding software infrastructure, I've been thinking a lot about "infrastructural debt" accrued by companies that build quick prototypes and then need to scale. Right now, there's a lot of attention shining on "hacky" and "scrappy" programmers, which makes sense: why waste resources on a product that won't catch on?
Hence, I understand the emergence of the hackathon - you get x number of hours to throw together an idea, then pitch it to venture capitalists and see if it's really worth it. Awesome. But then what?
I had a random pondering today about the future of these scrappy prototypes made during hackathons: where do they go? Maybe there's a good idea in there that never gets fully developed because it didn't make the top 3 in a competition.
I muse that in the future, software engineering as a craft will return, and maybe we'll hold competitions to add infrastructural support to flailing software systems: the fixathon (maybe a more brilliant little programmer will come along with a better name than that haha). Anyways, rather than muddling our industry with scrappy prototype after scrappy prototype, we can move into the art of creating sustainable systems and giving these product real life to them. Maybe that's the future of technology.
Who knows, just another musing of mine. Had a little too much coffee this morning haha
A little reading goes a long way!
Discovered ACM Queue, the ACM magazine for practicing software engineers, while looking for places to submit writing pieces to for my honors research. LOVED IT. Already "queueing up" some articles (haha get it?! ...it's okay, no need to laugh). First two on my list:
You Don't Know Jack About Software Maintenance by Paul Stachour and David Collier-Brown
Managing Technical Debt by Eric Allman
Truth
I was reading today about the GitHub investigation and Tom Preston-Werner's resignation and it got me thinking about the state of the industry.
Regardless of the truth of the allegations, I always find the air that surrounds these sort of stories reveals a truth about the relative place of women in technology. One thing I would kindly ask of privileged men in the field is to at least sit and listen. The thing that bothers me most is when a female is brushed away for being an "angry feminist." If I can sit through whatever it is you have to say, you should at least return the courtesy.
Practicing Some OOP PHP!
Working on a coding challenge right now in PHP and I'm exercising my OOP ("Object Oriented Programming") skills! This tutorial is helpful with understanding OOP practices in PHP lingo:
Object-Oriented PHP for Beginners by Jason Lengstorf (CodeTutsPlus, 23 Dec 2011)
A Reminder...
...to take care of myself, too, as I keep learning to program.
http://startingdotneprogramming.blogspot.com/2013/04/i-knew-programmer-that-went-completely.html
By Yolanda Davis, Senior Software Engineer at AdvancED The first and last time I cried over a computer was the fall of 1996. It was towards the end of the semester during my junior year at the Univ…
READ THIS ARTICLE. You won’t regret it, it’s amazing. A wonderfully written piece about never allowing your own self doubt to get in the way of what you love to do. When she describes crying over her final semester project, not because of the potential failing grade but because of the thought that this failure signified that she may not be meant for a career in Computer Science, I totally remember feeling that on multiple occasions and crying over the same thought. It’s one of the worst feelings when you want something so bad but it doesn’t seem like it was meant for you. The beauty of it, though, as Yolanda highlights in her piece, is that only you can decide if something is “meant for you.” If you want it, you just have to keep pushing and never settle until you get it.
I find her story about taking the risk in the job market to once again mirror my own experience in a lot of ways. Having recently quit my job to move to New York and start Hacker School, it definitely feels scary to take such a risk but it feels worth it and it feels right for me. I’m confident that in the near future, like Yolanda, I will also be able to say that “I am still living out one of the best decisions I’ve ever made.”
An inspiring quote from the piece:
My mantra then as it is now is to never settle for any “box”, any person or anything that stands in the way between you and your goals, your dreams and your aspirations. Don’t blindly follow a path just because there’s a perception of what you should do next. If it takes you against the current or drives you towards the wind take the chance. The great news is it’s your career! Do with it what YOU WILL. Allow nothing to stand in your way of your passion. Never settle for anything less than that.
-Yolanda Davis
Thanks Anita’s Quilt for the heads up on this article!
Nice pick-me-up around finals :3
Accurate.
Notice something different?
Haha yes I did change the colors of my theme. They're based off the syntax highlighting from GitHub, which I really like.
Here's a little cheatsheet of the hex codes I used if you're wondering:
BLUE #445588
TEAL #009999
RED #a61717