Life • Tech • Social Media • Research • Puerto Rico
In: Uncategorized
25 Jul 2010You probably heard about that nifty app for the iPad called Flipboard. It curates content from different sources and shows it in a magazine layout. Other than having a strong position against the whole conversion of a stream to just ‘relevant’ stuff (which would do an awesome post later), I think the app is really nice and very usable.
The integration with Hacker News is really nice because the content of Hacker News is already ‘curated’ by their users. Thus the content shown under Hacker News is content ‘approved’ by Hacker News users and probably relevant to you too.
I wanted to do the same with Reddit; another content aggregator website with an awesome community. I basically added some Twitter accounts that tweet reddit stuff to a Twitter List and try to add it to Flipboard. The result: not that pretty.
The problem is that reddit links take you either to the comments site on reddit or to the content overlaid with a top bar, which causes the content to not be crawled correctly.
So, in order to get Flipboard to crawl reddit content correctly, I prepared a Twitter account that send tweets whenever there is a new story in the Front page and tweet the link of the content, not the one that goes either to the comment page or to the content with the reddit bar in the top.
Here is the how to for those interested.
Reddit has a very easy way to crawl its content. Just append .json or .xml to any of the reddit urls and you will get the content structured in the desired format.
Here is a sample of the content on the front page, in JSON format, which you can access through this URL: http://reddit.com/.json (the content we want is in bold).
{“kind”: “t3″,
“data”: {
“domain”: “guardian.co.uk”, “media_embed”: {}, “subreddit”: “worldnews”,
“selftext_html”: null, “selftext”: “”, “likes”: null, “saved”: false,
“id”: “ctl49″, “clicked”: false, “author”: “nostraticispeak”,
“media”: null, “score”: 1140, “over_18″: false, “hidden”: false,
“thumbnail”: “”, “subreddit_id”: “t5_2qh13″, “downs”: 509, “is_self”: false,
“permalink”: “/r/worldnews/comments/ctl49/wikileaksguardiancouk_afghanistan_the_war_logs/”,
“name”: “t3_ctl49″, “created”: 1280119054.0, “url”: “http://www.guardian.co.uk/warlogs”,
“title”: “Wikileaks+Guardian.co.uk: Afghanistan: The war logs.
Massive leak of secret files exposes truth of occupation. Includes interview with Wikileaks’
Julian Assange.”, “created_utc”: 1280093854.0, “num_comments”: 488, “ups”: 1649}
}
We want to get the URL of the website being upvoted and the title of the submission. We could go through the fuck yeah route and develop a simple script to crawl the content and tweet it, which I did at first, but then I noticed it would be a lot easier to others to use a visual approach. That’s why we are going to use Yahoo Pipes, which provide an awesome interface to create filters and get content out of feeds and other sources.
Go to pipes.yahoo.com, create an account if you don’t have one.
Then choose the “Fetch Data” block from the Sources tree and add the URL “http://reddit.com/.json” and the path “data.children”. Then drag a “Loop” block from the “operators” section and connect the “fetch data” block to it. Drag a RSS Item Builder and insert it inside the loop block. This will create a RSS feed of Reddit submissions, but with the content URL instead of the comments URL. In the RSS Item Builder block add “item.data.title” in the Title field,”#reddit #flipboard” in the Description field (this is optional, I did it to attribute both parties in the tweets), add “item.data.url” in the link field and “item.data.created” in the PubDate field, as well as “item.data.author” in the author field to attribute the authorship to the user that submitted the story to Reddit. Then connect the pipe to the output and save the pipe.
Go to the pipe info site, and see the list of the output. It should look like the screenshot I am adding below. Click on “get as RSS” and save that URL. Here is the URL of the pipe I created so you can play with it.
Now, as Flipboard has no support for RSS feeds, you need to have a Twitter account tweeting the content so Flipboard can read it. Actually, you even need to add that twitter account to a list and then add it in Flipboard, as the search apparently doesn’t work quite well yet (it didn’t find the account I was trying to add as a source).
Go to Twitter Feed, create an account and sign in. Click on “create new feed” and add a name for the feed. I named it “Reddit for Flipboard”. In the URL, add the pipe URL you saved earlier, the one you got when clicking in “get as RSS” in Yahoo Pipes. Click on “Advanced Settings” and choose “Every 30 minutes” in the “update frequency” field and 5 in the “post up to” field.
Click in “Continue to Step 2″. There, add your Twitter account clicking in “Twitter” under “Available Services”. Click in “All Done” and you should be set already.

Then, add that Twitter account in a list. I did this already in the @redditflipboard account under the list called “reddit-flipboard” (pretty stupid, I know, but I did not find a way to add the account to flipboard without adding it to a list).
Then in Flipboard click in “Edit” under content, then in “Add a Section” and add the Twitter List you just created with the account tweeting the frontpage links from Reddit.
Be aware that this is the raw front page, with no removal of NSFW stuff or anything else. For bonus points, create a filter in Yahoo Pipes that only pass contents from certain subreddits and SFW. There are fields with that information in the JSON file.
Here is how Reddit looks in Flipboard.
In: Uncategorized
25 Jan 2010Twenty it is:
Put 1tbsp of butter in a sauce pan on medium-low heat, add 1tbsp flour to the melted butter, mix until you get a doughy consistency, and cook for a minute or two. Add 1cup of milk. Season lightly with pepper, parmesan, basil. Let it come to a boil, then immediately simmer it. It’ll thicken up. You now have homemade Alfredo Sauce. Prepare to impress your friends, especially of the opposite sex.
Get involved in the things going on around you, even if it’s just your schoolwork. Sitting in a dark room using a keyboard to talk to people a million miles away is not a social life. Talk to the people at class, even if it’s just about the upcoming test. Join a club or something. Intramural sports are awesome. Varsity are good too if you’ve got it in you.
If it’s meant to be, it’ll happen. Don’t rush it. It’s nice to be a fiercely passionate person in all walks of life, but it’s a lot less nice to be the guy who can’t think ahead, or the girl who can’t see the forest for the trees.
Slow and steady does not mean glacial. You’re going to get spread pretty thin in life if you’re doing it right. Learn to cut your losses on a project that’s not going anywhere rather than wasting five minutes every two months on it. Better to come back to it refreshed.
Exercise really is important. We harp on it all the time, but if you seriously want to improve the way you FEEL about life: go to the gym. I come from a wrestling background, and Dan Gable is quoted as saying “Once you’ve wrestled, everything else in life is easy.” Same thing with working out. If you go to the gym and work yourself out HARD a few times a week, you will come home and everything else will seem to fall into place.
They’ve all said it already, but it’s got some truth to it. Disregard females. Acquire currency. It’s nice to have someone who is a close friend. It’s nice to have someone who will sleep with you. Do not make either a priority. If you treat people right and respect them, they’ll be there in a few years when you’re ACTUALLY an adult, and you guys can start making plans. However, you don’t want to go out there wasting your time and money on somebody that’s going to have giant life decisions to make in a few years, one of which will be “Has it gone as far as it’s ever going to go?” Treat the opposite sex well, and feel free to spend time with them, but make it a fair deal, not a one-sided pursuit. Don’t waste your time and money on them until you’re ready to make a commitment to someone. (ps- At 20, you’re not ready.)
Take every opportunity to travel. Broaden your horizons. See the world. If you’re lucky, and aren’t digging yourself into student debt, go on foreign-aid jobs during vacation periods. If you’re like the rest of us, and need to make money, look into working abroad for a few years when you’re done. Overseas experience is a HUGE boost on a job application. Many countries offer “working vacation” visas.
Always have fun. Work is hard. School is hard. Find something that’s fun and keep doing it, no matter what else is going on in your life. Make time for it, or use it as a reward, but keep having fun. When your life becomes all work and no play, you become one of the drones helping to make this world a colder, more boring place.
Control your vices. Fun is fun, but too much fun is exactly that: too much. I like a drink. I set aside time and money to partake. It’s not a lifelong commitment, but it’s something I do to socialize with friends. I do not, however, fall down drunk four days a week. No one ever should. Once a week is plenty.
Milestones come and go. Woohoo! You’re twenty! Big deal. You said it already: “it doesn’t feel much different at all.” The same is true with holidays, anniversaries and other celebrations. Too much stock is laid into arbitrary dates. Make every day count. Do things for a reason, not for a season.
The brands you wear are less important than the total package. If you’re concerned about the way you look, it’s better to spend time learning about Colour Theory than it is to figure out where you can find a good deal on designer phones/mp3players/computers/pants/shirts/cars. Buy for build quality, not perceived quality. Buy to last.
Your taste in <insert object> does not define who you are. You are not a collection of songs, movies and TV Shows. Be proud of what you like, but don’t turn it into the definition of your personality (see: Goths, Trekkies, Metalheads.) Experience the multitude and be open to it all.
“Be the change you want to see in the world.” Gandhi was a wise man, and this is probably the most important thing he ever said. No matter what you want from the world: be the exemplar rather than the fool crying for change. Lead by example, and preach from that example, but do not become the hypocrite who strives for a green planet while trashing his own house.
Respect yourself. Far too often in life do we question our instincts and decisions. If you’re faced with unquestionable evidence that you’ve done something wrong, then accept it and move on. Until then, believe in who you are, and believe in what you do. You’re right more often than you’re wrong, even if you seem to be wrong an awful lot.
Get shit done. Work to completion. Finish what you start. Do everything within your power to make sure that the important things in life happen on time and with minimal worry. Procrastination is both a valuable stress-relief tool and a dangerous enemy. Use it wisely.
Learn the value of hard work. If you’ve never had a job: get one. ESPECIALLY if you don’t need it. When I was twenty, this was one of the biggest lessons I had yet to learn. I still haven’t learned the whole of it. Learn exactly what a dollar is worth to people. Learn how much it takes to earn one, and learn how much you can buy with one. Learn the lessons that money can’t buy you at school. Learn punctuality and teamwork in a real environment.
Set your goals and achieve them. Think about it now. Where do you want to be when you’re 25? 30? 40? Retired? Take some serious time and write out some serious goals for your personal life, your career, your fame and renown. If you want to be the billionaire madman with a harem and your face on the nightly news: plan it out. If your goals are much more humble: plan them out too. Even if you just want a nice, simple job with a wife and kids… start planning. Look at the road in front of you, or you’re going to finish school/whatever and be left with no idea where to go from here.
It’s okay to fail. Sometimes you are going to make the wrong decision. Accept it. Move on with your life. No one’s perfect, they only pretend to be. Learn from your mistakes, but don’t be afraid to make them. Someone’s already said it above, but you learn more from what you do than what you don’t do, and when you’re old and dry, you’re going to regret more the things you shied away from than the things you threw yourself into.
Don’t argue on the internet. There are exceptions to the rule. It’s one thing to make a strong argument. It’s a whole other thing to be dragged into a drawn-out fight with an anonymous stranger. Avoid the latter. It’s a waste of valuable time and you’re going to gain what from it? Superiority? Be the better person to start with and walk away from the fool that wants to waste his time arguing trivialities.
Stop asking for advice on the internet. How much time have you spent, TODAY, watching this thread for updates? If you NEED advice, the internet is a great place to get diverse viewpoints. You didn’t NEED advice today, though. Go outside and play.
In: Life| Puerto Rico
22 Dec 2009Es fuerte. Somos siempre inconformes. Nos quejamos del gobierno, de nuestros diminutos problemas y muchos nos sentamos a esperar a que sean otros u otras quienes resuelvan nuestros dilemas.
Es cierto que muchos líderes, como el de Puerto Rico, no han hecho un excelente trabajo este año. En mi opinión, ha sido terrible. Pero preguntémonos: ¿cuan bueno ha sido nuestro trabajo como ciudadanos? ¿Cuanto hemos aportado a que este año haya sido diferente?
Es cierto ese dicho que dice “With great power comes great responsibility.” – (Stan Lee). Pero también es cierto, que el poder lo tenemos nosotros; no cada cuatro años cuando votamos por nuestros líderes, sino cada día cuando nos levantamos y creamos nuestro futuro inmediato, que no es más que nuestro PRESENTE.
¿A que viene este súbito “rant”? Hoy estaba en mi casa, lo usual: mi laptop al lado, Twitter, Facebook y un poco de noticias en Reddit. Cuando de repente me encuentro con un tema bien interesante: “What is the nicest thing you’ve ever done that no one knows about?”. La respuesta de esta persona, me dejó atónito, simplemente sin palabras. Está un poco largo, pero créanme, vale la pena sacar cinco minutos y leerlo.
“I was day tripping to Vancouver from Seattle and stopped in for lunch at a little cafe. From my window I saw a young teenage girl out in the cold, squatted down in a closed up businesses doorway, holding a small bundle in her arms. She was panhandling, people were mostly walking by ignoring her. She looked just broken.
I finished up my meal and went outside, went through my wallet and thought I’d give her $5 for some food. I got up to her and she was sobbing, she looked like she was 14-15. And that bundle in her arms was a baby wrapped up. I felt like I just got punched in the chest. She looked up putting on a game face and asked for any change, I asked her if she’s like some lunch. Right next door was a small quick-Trip type grocery store, I got a can of formula for the baby (very young, maybe 2-3 months old.), and took her back to the cafe though I’d just eaten. She was very thankful, got a burger and just inhaled it. Got her some pie and ice cream. She opened up and we talked. She was 15, got pregnant, parents were angry and she was fighting with them. She ran away. She’s been gone almost 1 full year.
I asked her if she’s like to go home and she got silent. I coaxed her, she said her parents wouldn’t want her back. I coaxed further, she admitted she stole 5k in cash from her Dad. Turns out 5k doesn’t last long at all and the streets are tough on a 15 year old. Very tough. She did want to go back, but she was afraid no one wanted her back after what she did.
We talked more, I wanted her to use my phone to call home but she wouldn’t. I told her I’d call and see if her folks wanted to talk to her, she hesitated and gave bad excuses but eventually agreed. She dialed the number and I took the phone, her Mom picked up and I said hello. Awkwardly introduced myself and said her daughter would like to speak to her, silence, and I heard crying. Gave the phone to the girl and she was just quiet listening to her Mom cry, and then said hello. And she cried. They talked, she gave the phone back to me, I talked to her Mom some more.
I drove her down to the bus station and bought her a bus ticket home. Gave her $100 cash for incidentals, and some formula, diapers, wipes, snacks for the road.
Got to the bus, and she just cried saying thank you over and over. I gave her a kiss on the forehead and a hug, kissed her baby, and she got on the bus.
I get a chistmas card every year from her. She’s 21 now and in college.
Her name is Makayla and her baby was Joe.
I’ve never really told anyone about this. I just feel good knowing I did something good in this world. Maybe it’ll make up for the things I’ve f-ed up.” -WarToad (reddit.com).
Fuerte, ¿verdad? En mi opinión, si creemos que va a venir Superman, Obama o cualquier líder supremo a salvar la navidad, o incluso la humanidad, estamos fallando, por vagos. Debemos levantarnos, ayudar a los demás y poner diariamente nuestro granito de arena para así poder disfrutar no tan solo de una bonita navidad, sino de un futuro mejor para los que vienen detrás de nosotros. Esos son mis dos centavos.
Stuff that happens in my life. My adventures in San Francisco, the DC metro area and Puerto Rico. Randomly switching entre español and english. Sometimes giving away random ideas and a little bit of geek/nerd and new media stuff.
Stalk Me!