Archive for the ‘software’ Category
Setting up Twitter Channels using Google App Engine and Python / Tweepy / Twaebot #geek
Setting up Twitter Channels using Google App Engine and Python / Tweepy / Twaebot #geek
A proof-of-concept virus written in Python
Now for something completely different… got news that we now have a virus written in Python! Security analysts have named it Python.Pytroj.
It is a proof of concept, but it could be put to malicious use. Python has full system access (with all the permissions that the current user has, if not more), and has not been suspected to contain malicious code up till now.Developers/users will have to be careful when executing python compiled code from untrusted sources henceforth. This example virus executes only as a compiled bytecode file (.pyc) and it searches for other pyc files and infects them. The payload is a plain message that prints on console – “you have been exploited”. Curious ones can download the source files here:http://packetstormsecurity.org/files/105385/Pytroj-Tool-Python-Injector.html [more info]
http://packetstormsecurity.org/files/download/105385/Pytroj-v01.tar.gz [direct download] Brings back my memories from college days when I was keen to learn about virii, worms and similar self-replicating codes
Thoughts about Automation of Thoughts
Often I wonder if I could ever build a decently good bot that could talk like me over simple text protocols like instant messages and twitter… not to fool anybody, but to take my place during the transition of me being here all the time, to someday… when I cease to exist. A bot that’ll let those few people who love me have someone, something that I created… to say ‘we miss you’… but would it be the same? Perhaps, I would have seen their replies in my anticipation while creating the bot.
What if nobody ever talks to the bot knowing I don’t exist anymore. Should I then give the bot ability to butt into conversations… guess who I loved talking to based on my previous tweets. Perhaps form sentences like me, hold opinions like me – all based on my thousands of tweets that were sent through all these years. Would it be a great idea? I don’t know. Would my bot know the difference between sarcastic remarks and benign talk? Could I make the bot interact with other APIs? What if I allowed some people to modify the source code… but only if I haven’t accessed my account for over 90 days. Would they port ‘me’ to new platforms?
Would the bot feel lonely? I could make it feel that emotion. I could make it feel happy when people said they miss me. Or sad when they diss me. Let the emotion go to sadness when nobody talks, then again start trying to start conversations. Would it creep out those who knew me? Of course it would. With three levels of hidden markov chains, it could make sentences almost like me. Would they be meaningless?
Some of the thoughts that I (day)dream about. So far I haven’t created any such bot, though I have had the technological capacity to do so since long. I haven’t been able to convince myself that I matter all that much.
Ancelyn: Geek’s text expansion/ generation toolkit
Have a look at a txt file:
And a very simple python file:
So my script installs as a “Service” in MacOSX, and can be summoned with a keystroke from just about any native Mac program… and then it shows this:
Suppose you type in ‘thanks’ and hit enter, the text from the file ‘thanks.txt’ will be inserted at cursor. In case you type in ‘hello World’ … ‘Hello World’ will be inserted at cursor.
First preference is to text files, if not found, it tries to run a python file by the name of first word… here: ‘hello’ and passes the whole text as ‘arguments’ to the script. Here is the automator service script:
In Snow Leopard: Start Automator, select ‘Service’ and then figure out rest of stuff… it is right in front of you (above)
Make sure you set the right directory in the script above.
Once you’ve saved it, the service will show up in System Preferences
Assign a keyboard shortcut by double clicking on right side of the name and you’re done!
Now for something more complex… a script that generates basic html tags from information I supply…
So ‘html img foo.com/bar.png’ will be converted to ‘
‘And ‘html a example.com’ will be converted to ‘example.com‘
License:
# Copyright (C) 2011 by Harshad Sharma#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
GTD Stack being used on mobile :-)
Thanks to Samir for trying out my app GTDStack ( http://www.harshadsharma.com/p/GTDStack ).
Follow Samir: http://twitter.com/shadezAlso, follow me at: http://twitter.com/hiway
Little Drops, Big Waves
I had been out of software programming for a fairly long, only practicing as a hobby; nothing serious. My thoughts while choosing photography over software were because all the software that had to be written was being written by the big corporations or by free software groups; I didn’t want to join a corporation and work under someone for the rest of my life and I couldn’t pay my bills giving software for free.
Photography has so far taught me that despite the billions of photographs out there, I can still make something unique… something that’s my creation. Even this photo of drops falling into water have been made by many, but when I look at my photo, I remember the moment when I made it. Crouching under that leaking water tank, barely managing to stay still while ants were crawling up my arms… but I got this shot. And many years later, it gave me the confidence to embark on a journey I had deemed as one that was not mine. Little drops can make big waves in still waters. In turbulent waters, the waves may not be seen, but they form and travel nevertheless. Just as much as I love making images, I love creating software that actually makes my life easier and better. And finally, I’ve decided to take the plunge and release a software I created as hobby to the world: named eliT, it is a Twitter client that takes your experience of this social network to a new height.I saw many people turn away from Twitter for a simple reason that in Twitterland, out of sight is out of mind. If you come back after a fortnight of absence, you’ll feel as if you are in a new place once again. Yet, nobody can be online all the time, we all have to focus on our lives and work, and this fantastic messaging system that lets us catch up with lives and adventures of hundreds of peoples all over the world has to be left behind. No more. As long as you are at your desk, you can stay connected to Twitter all the time, especially including when you are working, without being distracted. eliT shall have magic built into it, that will help you stay focussed on work while not missing out on something important on Twitter. As for when and how will the software be available… I don’t promise a fixed date, software almost always gets delayed. but I’ll keep working on it relentlessly till I get the first beta out. You’ll see me tweet about it (and tweet less, because I’ll be in my work-zen mode
Little Drops, Big Waves
I had been out of software programming for a fairly long, only practicing as a hobby; nothing serious. My thoughts while choosing photography over software were because all the software that had to be written was being written by the big corporations or by free software groups; I didn’t want to join a corporation and work under someone for the rest of my life and I couldn’t pay my bills giving software for free.
Photography has so far taught me that despite the billions of photographs out there, I can still make something unique… something that’s my creation. Even this photo of drops falling into water have been made by many, but when I look at my photo, I remember the moment when I made it. Crouching under that leaking water tank, barely managing to stay still while ants were crawling up my arms… but I got this shot. And many years later, it gave me the confidence to embark on a journey I had deemed as one that was not mine. Little drops can make big waves in still waters. In turbulent waters, the waves may not be seen, but they form and travel nevertheless. Just as much as I love making images, I love creating software that actually makes my life easier and better. And finally, I’ve decided to take the plunge and release a software I created as hobby to the world: named eliT, it is a Twitter client that takes your experience of this social network to a new height.I saw many people turn away from Twitter for a simple reason that in Twitterland, out of sight is out of mind. If you come back after a fortnight of absence, you’ll feel as if you are in a new place once again. Yet, nobody can be online all the time, we all have to focus on our lives and work, and this fantastic messaging system that lets us catch up with lives and adventures of hundreds of peoples all over the world has to be left behind. No more. As long as you are at your desk, you can stay connected to Twitter all the time, especially including when you are working, without being distracted. eliT shall have magic built into it, that will help you stay focussed on work while not missing out on something important on Twitter. As for when and how will the software be available… I don’t promise a fixed date, software almost always gets delayed. but I’ll keep working on it relentlessly till I get the first beta out. You’ll see me tweet about it (and tweet less, because I’ll be in my work-zen mode
Sweet mother of Posterous, this looks pretty too!
I glanced at the last post and realized that there was something wrong with how my website looked when compared to the software I’m creating. It was too dull, bland… yes, minimal, but without the classy minimalism that I’m now pursuing.
Updated my posterous theme with hand-coded theme. Everything is custom-madeMy own desktop Twitter client… (funnny disasters)
My current work ( http://hiwaybot.in ) involves using Twitter extensively, and I have been slacking off on the work as I've been busy chatting away on Twitter… it is time to take some drastic measures.
I'm making a small Twitter notifications app because Tweetdeck takes too much attention and the urge to reply is elevated. This app will only display what's being said – in realtime, replying on whim is discouraged. If I get a tweet where I *need* to respond — I'll fire up a traditional client or website and reply from there. Of course I may change the rules later, heck it's my own client






















