Fast (CLI) posting to twitter with cURL and identi.ca #
i got sick of not having a fast way to post to twitter. Twitter, it seems, doesn't like external programs posting anymore. i used to use Pwytter Portable but that seemed to have died. There is Echofon but that stopped working with twitter a while back and they didn't fix it for months, also it's a Firefox addon and the less things to slow down firefox the better.
i'm a bit of a joiner and when the micro-blogging thing was taking off i made an identi.ca account. It's just like twitter, maybe better, it's just twitter was the one to take off.
It is dead easy to add a twitter account in the identi.ca settings, so anything posted on identi.ca is cross posted to your twitter account, cool.
The reason i'm going on about identi.ca is i found this. You used to be able to post to twitter from all sorts of places but as they want you on the site (so they can advertise at you), they put a stop to most of them.
Make an identi.ca account, link it to your twitter account, get cURL (i used: Win32 7.23.1 binary SSL enabled Dirk Paehl), stick it in a folder:

Make post.cmd:
@echo off
color 0a
set /P tweet=Tweet what:
curl -u YourIdenticaUsername:YourIdenticaPassword -d status="%tweet%" http://identi.ca/api/statuses/update.xml
exit
As you can see, a simple batch file. The /P in
opens a prompt window:

assigning what you type in to tweet, it's then posted in: status="%tweet%"
Don't forget to change YourIdenticaUsername:YourIdenticaPassword to your identi.ca username and password.
It's fast, you don't have to open a browser, log on to any web-site or any of that crap. You have a thought, click the shortcut (linked to post.cmd), type what you want, press enter and BOOM! it's done, it takes seconds.
It's quick and dirty but i like it (:
i'm a bit of a joiner and when the micro-blogging thing was taking off i made an identi.ca account. It's just like twitter, maybe better, it's just twitter was the one to take off.
It is dead easy to add a twitter account in the identi.ca settings, so anything posted on identi.ca is cross posted to your twitter account, cool.
The reason i'm going on about identi.ca is i found this. You used to be able to post to twitter from all sorts of places but as they want you on the site (so they can advertise at you), they put a stop to most of them.
Make an identi.ca account, link it to your twitter account, get cURL (i used: Win32 7.23.1 binary SSL enabled Dirk Paehl), stick it in a folder:
Make post.cmd:
@echo off
color 0a
set /P tweet=Tweet what:
curl -u YourIdenticaUsername:YourIdenticaPassword -d status="%tweet%" http://identi.ca/api/statuses/update.xml
exit
As you can see, a simple batch file. The /P in
set /P tweet=Tweet what:
opens a prompt window:
assigning what you type in to tweet, it's then posted in: status="%tweet%"
Don't forget to change YourIdenticaUsername:YourIdenticaPassword to your identi.ca username and password.
It's fast, you don't have to open a browser, log on to any web-site or any of that crap. You have a thought, click the shortcut (linked to post.cmd), type what you want, press enter and BOOM! it's done, it takes seconds.
It's quick and dirty but i like it (:
Labels: command line, cURL, Identica, twitter
My Dad's Dead Man #
i was recently forced into the company of humans for a while. This place is mandatory attendance for the unemployed and i had to sign in. Most times in front of the signing in book there was an unemployed person standing there trying to figure out how to write their name. i would wait patiently.
One day there was a man standing in front of the book, leaning on it, talking to the receptionist, he wasn't signing in. When i want a member of the human race to pay attention to those around it and maybe move aside so other human can pass, i ask politely, in not a loud voice but by no means a low voice, "excuse me". i never put aggression into it or weakness, i am simply asking a human to move aside for a moment in a firm but polite voice.
As this man wasn't signing in i said "Excuse me Sir", at that he raised the volume of his voice at the bit in his sentence where he said "...my father died" turning to look at me. Lighting fast the thought flashed into my mind *Good, then he can't breed any more retards like you*. i couldn't help but smile at this thought my brain had come up with and he said, "What are you laughing at?". He hadn't turned his body or anything, it was impotent rage. Thinking his dead dad gave him the power of entitlement. i just kept on smiling, didn't even look at him. Signed in (he had moved at this point, he actually moved straight away) smiling all the time and walked away to get coffee.
i promises you there was no aggression in my voice or anything, i can make "Excuse me Sir" sound friendly but disinterested.
Later in the day i thought of a new superhero called "My Dad's Dead Man", his superpower, his dad died that day. Bank robbers holding hostages, police standoff, flying in he would land in front of the bank, cape flappin', and shout to the robbers, "MY DAD DIED TODAY, YOU MUST COME OUT WITH YOUR HANDS UP!". Drug deal gone wrong, machine guns blazing from both sides of a warehouse, he would land in the middle, both sides stop and like WTF? "MY DAD'S DEAD, YOU MUST GIVE YOURSELVES UP!".
Hell is other people - Sartre
One day there was a man standing in front of the book, leaning on it, talking to the receptionist, he wasn't signing in. When i want a member of the human race to pay attention to those around it and maybe move aside so other human can pass, i ask politely, in not a loud voice but by no means a low voice, "excuse me". i never put aggression into it or weakness, i am simply asking a human to move aside for a moment in a firm but polite voice.
As this man wasn't signing in i said "Excuse me Sir", at that he raised the volume of his voice at the bit in his sentence where he said "...my father died" turning to look at me. Lighting fast the thought flashed into my mind *Good, then he can't breed any more retards like you*. i couldn't help but smile at this thought my brain had come up with and he said, "What are you laughing at?". He hadn't turned his body or anything, it was impotent rage. Thinking his dead dad gave him the power of entitlement. i just kept on smiling, didn't even look at him. Signed in (he had moved at this point, he actually moved straight away) smiling all the time and walked away to get coffee.
i promises you there was no aggression in my voice or anything, i can make "Excuse me Sir" sound friendly but disinterested.
Later in the day i thought of a new superhero called "My Dad's Dead Man", his superpower, his dad died that day. Bank robbers holding hostages, police standoff, flying in he would land in front of the bank, cape flappin', and shout to the robbers, "MY DAD DIED TODAY, YOU MUST COME OUT WITH YOUR HANDS UP!". Drug deal gone wrong, machine guns blazing from both sides of a warehouse, he would land in the middle, both sides stop and like WTF? "MY DAD'S DEAD, YOU MUST GIVE YOURSELVES UP!".
Hell is other people - Sartre
Labels: dead dad
+1 individual Blogger posts #
i did it, with help from WEBADO over at Google Webmaster Central.
Put this code in your byline:
Put this code just before the close body tag, i originally put it in my head tag but that didn't seem to work:
Now your readers can +1 individual posts, pretty cool (:
EDIT: Silly me, forgot to put a link the the make your +1 button page.
Put this code in your byline:
<g:plusone size="small" count="false" href="<$BlogItemPermalinkURL$>"></g:plusone>
Put this code just before the close body tag, i originally put it in my head tag but that didn't seem to work:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang: 'en-GB'}
</script>
</body></html>
{lang: 'en-GB'}
</script>
</body></html>
Now your readers can +1 individual posts, pretty cool (:
EDIT: Silly me, forgot to put a link the the make your +1 button page.
Peter Amundsen gets out. #
Chilled pad #
Gypsy Unit #
A friend of mine is in this band (Kezza) and it's good shit.
Gypsy Unit
SoundCloud
get some.
Gypsy Unit
SoundCloud
get some.
Labels: Gypsy Unit
a sound file #
Publish Draft 2: #
kill draft (never to be seen)
the wind has started knocking at my doorA seagull flies by my window with its cry
A seagull flies by my window with its cry, my life is shite compared to that cry.i could take a pic of the window but let me try and describe it...
the light... it is the nothing, suicide light. it is nether beautiful or horrid, it just is, is is the light of nature, i doesn't care about how beautiful you think you are, it just gets on with being
Where i lay my head down
My last few posts here have been quite tame, dwelling on the technical, safe. i have been running away from the feelings of last Christmas, you see, i spent last Christmas planing to kill a human.i don't read letters anymore
i have never been comfortable
TV
Television in the UK is now only for the people to stupid to use a computerPrivacy International STFU
Fuck in Hell, what a bunch of fucking cunts. We all know Google maps is the best, they just do it right, you can embed Google maps in your web-site, overlay your own graphic on it and you have an amazing resource.a friend died outside my front door today
A poem, a flame, a song, once they are used, they are all gone.The spider inside me
Your deathbed will be surrounded by friends & family, you are received. Mine is concrete, in a London back ally, drunk and alone, full of fear.Don't call the police if i kill myself
It's funny but i don't think i have ever really liked anyone i have every met,i think it was about age 5 i realized i was surrounded with humans and they were useless
i was absolutely born alone, i have lived on this Earth alone and i shall die alone, at this moment i don't cry as i write this, i am not alive.
, i made friends to not appear weird.
there is a bucket full of shit in my bathroom
the toilet in there blocked and had to scoop it out with a plastic margarine container into the mop bucket (my hand wrapped in a Safeway bag). it got blacked from the sick i pored into that bucket as i has one of mu belly-ache nights, on some times my stomach decides to rip it's self apart, puking it the only relief, and not some.Labels: button, comfort, DEATH, death. life, dole, festering, murder, not for public veiwing, rot, twitter, twitthis, you and me
Firefox: Foobar Controls for a dark theme #
i love the Foobar Controls add-on for Firefox by Ben Basson. As you can see from the above pic i like the dark themes. Although it's a cool add-on the buttons are a bit flat, this post will tell you how i got the dark theme 3D buttons for this add-on.
i did a Google search for dark foobar buttons and i found this: Foobar2000 Buttons by sawb (site), a nice set of dark theme buttons for foobar.
After installing the Foobar Controls add-on i had to change the buttons to go with my dark theme. As i had a set of cool dark buttons i looked in the add-on folder (C:\Documents and Settings\your user-name\Application Data\Mozilla\Firefox\Profiles\extensions\{weird number}\chrome\content\) and found foobar.png. It's a single pic with all the buttons on, cool all i had to do is change this pic... right?... no. The "Foobar2000 Buttons" were bigger than the ones in the foobar.png so this would need a bit of work.
Looking in foobar.css in the add-on folder i saw that it points too foobar.png and i realized i could use Stylish (or you could use your userChrome.css) to override this, cool. i fired up Photoshop and put the Foobar2000 Buttons on foobar.png all equally spaced out and saved it as foobar2.png:
(use this one if you want as i've done all the work (:, right-click/Save Link As...)Put foobar2.png in the add-on folder, this is cool as you don't even have too change the original foobar.png, CSS is cool. An important note is when the Foobar Controls add-on updates you will need to put the foobar2.png back in the add-on folder as updating deletes it, as we are using Stylish to use this png the update doesn't effect the code. This is the code i put in a new style in Stylish:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* foobar controls - modz */
.foobarcontrol{list-style-image:url("chrome://foobar/content/foobar2.png")!important;}
#foobar_prev,#foobar_next,#foobar_play,#foobar_stop,#foobar_paus,#foobar_rand,#toolbar-menubar image{padding:0!important;margin:0!important;border:0!important;}
#foobar_prev:hover,#foobar_next:hover,#foobar_play:hover,#foobar_stop:hover,#foobar_paus:hover,#foobar_rand:hover{background-color:#aaa!important;}
#foobar_stop,#foobar_stop_item{-moz-image-region:rect(1px 19px 17px 3px)!important;}
#foobar_stop:hover,#foobar_stop[checked="true"]{-moz-image-region:rect(1px 19px 17px 3px)!important;}
#foobar_paus{-moz-image-region:rect(1px 41px 17px 25px)!important;}
#foobar_paus:hover,#foobar_paus[checked="true"]{-moz-image-region:rect(1px 41px 17px 25px)!important;}
#foobar_play{-moz-image-region:rect(1px 64px 17px 46px)!important;}
#foobar_play:hover,#foobar_play[checked="true"]{-moz-image-region:rect(1px 64px 17px 46px)!important;}
#foobar_prev{-moz-image-region:rect(1px 86px 17px 69px)!important;}
#foobar_prev:hover,#foobar_prev[checked="true"]{-moz-image-region:rect(1px 86px 17px 69px)!important;}
#foobar_next{-moz-image-region:rect(1px 108px 17px 91px)!important;}
#foobar_next:hover,#foobar_next[checked="true"]{-moz-image-region:rect(1px 108px 17px 91px)!important;}
#foobar_rand{-moz-image-region:rect(1px 130px 17px 114px)!important;}
#foobar_rand:hover,#foobar_rand[checked="true"]{-moz-image-region:rect(1px 130px 17px 114px)!important;}
/* foobar controls - modz */
.foobarcontrol{list-style-image:url("chrome://foobar/content/foobar2.png")!important;}
#foobar_prev,#foobar_next,#foobar_play,#foobar_stop,#foobar_paus,#foobar_rand,#toolbar-menubar image{padding:0!important;margin:0!important;border:0!important;}
#foobar_prev:hover,#foobar_next:hover,#foobar_play:hover,#foobar_stop:hover,#foobar_paus:hover,#foobar_rand:hover{background-color:#aaa!important;}
#foobar_stop,#foobar_stop_item{-moz-image-region:rect(1px 19px 17px 3px)!important;}
#foobar_stop:hover,#foobar_stop[checked="true"]{-moz-image-region:rect(1px 19px 17px 3px)!important;}
#foobar_paus{-moz-image-region:rect(1px 41px 17px 25px)!important;}
#foobar_paus:hover,#foobar_paus[checked="true"]{-moz-image-region:rect(1px 41px 17px 25px)!important;}
#foobar_play{-moz-image-region:rect(1px 64px 17px 46px)!important;}
#foobar_play:hover,#foobar_play[checked="true"]{-moz-image-region:rect(1px 64px 17px 46px)!important;}
#foobar_prev{-moz-image-region:rect(1px 86px 17px 69px)!important;}
#foobar_prev:hover,#foobar_prev[checked="true"]{-moz-image-region:rect(1px 86px 17px 69px)!important;}
#foobar_next{-moz-image-region:rect(1px 108px 17px 91px)!important;}
#foobar_next:hover,#foobar_next[checked="true"]{-moz-image-region:rect(1px 108px 17px 91px)!important;}
#foobar_rand{-moz-image-region:rect(1px 130px 17px 114px)!important;}
#foobar_rand:hover,#foobar_rand[checked="true"]{-moz-image-region:rect(1px 130px 17px 114px)!important;}
Through trial & error i discovered i just had too add 4 to a few pixel values to accommodate the larger buttons, you can use this code, if it works cool, if not just play with numbers until it looks good, it's not hard.
recap:
download foobar2.png
put in add-on folder
put code in Stylish
have cool looking dark foobar controls
(:
Labels: CSS, dark theme, foobar controls, stylish
Firefox Lock-down #
Zapping around the internet these days is nasty business, you have to assume every site you visit wants to track you (or help their partners track you) or infect your PC. Here are a few things i do to make my FF a bit more secure and private:
i have come across a few sites that do not work unless you let them place a cookie on your PC, they go into a weird loop where as soon as you arrive at the site your browser is redirected to a "no cookie" script which then redirects to another page (probably because you haven't allowed scripts for this site) which then loops back to the no cookie page, it is stupid to see. Any site that forces you to accept a cookie just to view the site is dodgy.
If you join a site, say... You Tube then of course you are going to let YT put a cookie on ya PC, it's how it knows it's you when you log on, but just to look at a site (not join) then it wrong. Whenever i get to a site like that (cookie needed just to view site) i stop, copy the URL and put it in my hosts file thereby making it impossible for my PC to ever go to that site again (more on the hosts file later).
Just as i started this post i went to PortableApps for a little look at what was going on over there, funny new app, Billy Mays Caps Lock 1.0, lol cool, on that page that was a link to John T. Hallers blog. On his blog i found this, Warning: AddThis Puts Flash Tracking Objects on Your Website. You have got to be kidding me, i use AddThis (it's the little icon down there below this post with the plus sign on), well i used to, that icon used to be red, now it's blue because i now use AddToAny instead of AddThis. ClearSpring bought AddThis and used it (it is java-script after all) to plant LSOs (Local Shared Objects/flash cookies) on the PCs of anyone who visits a web-site using the AddThis widget. It is a coincidence that on the very day i start to make a post about how nasty flash cookies are i find out my own blog has been planting them on peoples PCs without my knowledge, ClearSpring are worms.
Anyway back the the subject, BetterPrivacy dose not, like CookieSafe, block LSOs, it lets flash cookies get planted. What it does is delete those cookies when you open/close Firefox. Unless these cookies stay on your PC permanently they are useless (:
Man, i am so pissed off about ClearSpring/AddThis. Seriously, ClearSpring are fucking dodgy cunts.
RefControl lets you set which site the site you visit thinks you came from, i set mine to the Wikipedia Referrer spoofing page so now every site i visit thinks i came from that page :D
It can break on some sites but RefControl let you set sites you trust to see the normal referrer.
It used to use the hosts file (when the internet wasn't that big that all the web-site addresses could fit in a text file). Your browser still looks at your hosts file first before DNS. If you haven't edited it it should just have: 127.0.0.1 localhost (this is your PC and you shouldn't mess with this line). 0.0.0.0 is an invalid IP address so if i put: 0.0.0.0 www.google.com in the hosts file and typed www.google.com into Firefox it would look in the hosts file (before DNS) and see it as an invalid IP and not go there.
So you could put in something like: 0.0.0.0 ads.example.com, you can still go to www.example.com, Firefox just would not (could not) connect to their ad server so no ads. You can google around for lists of nasty sites to copy/paste into your hosts file.
It's hard work surfing the internet these days but i hope these few things make it a bit safer/private for you (:
NoScript
Of course the first one is the great NoScript, you know what it is. Doesn't allow sites to run java-scripts unless you allow them. Simple and it works.CookieSafe
CookieSafe is the NoScript for cookies, no site is allowed to place cookies on your PC unless you allow them. A lot of companies track your browsing habits though the use of cookies and partner companies web-sites. They say they profile you to better serve you ads but who knows what they do with these profiles of you.i have come across a few sites that do not work unless you let them place a cookie on your PC, they go into a weird loop where as soon as you arrive at the site your browser is redirected to a "no cookie" script which then redirects to another page (probably because you haven't allowed scripts for this site) which then loops back to the no cookie page, it is stupid to see. Any site that forces you to accept a cookie just to view the site is dodgy.
If you join a site, say... You Tube then of course you are going to let YT put a cookie on ya PC, it's how it knows it's you when you log on, but just to look at a site (not join) then it wrong. Whenever i get to a site like that (cookie needed just to view site) i stop, copy the URL and put it in my hosts file thereby making it impossible for my PC to ever go to that site again (more on the hosts file later).
BetterPrivacy
This is where cookies get really nasty, in XP look in: "C:\Documents and Settings\your user-name\Application Data\Macromedia\Flash Player\#SharedObjects\random code\", oh look cookies, WTF are these (other locations here). These are flash cookies or "Local Shared Object" (that's a nice name isn't it). These are cookies that any site that uses flash can put on your PC, i only found out about these recently and i was shocked, all this time i was blocking HTTP cookies and every site with flash on (and some without flash) were planting these cookies all up in my PC.Just as i started this post i went to PortableApps for a little look at what was going on over there, funny new app, Billy Mays Caps Lock 1.0, lol cool, on that page that was a link to John T. Hallers blog. On his blog i found this, Warning: AddThis Puts Flash Tracking Objects on Your Website. You have got to be kidding me, i use AddThis (it's the little icon down there below this post with the plus sign on), well i used to, that icon used to be red, now it's blue because i now use AddToAny instead of AddThis. ClearSpring bought AddThis and used it (it is java-script after all) to plant LSOs (Local Shared Objects/flash cookies) on the PCs of anyone who visits a web-site using the AddThis widget. It is a coincidence that on the very day i start to make a post about how nasty flash cookies are i find out my own blog has been planting them on peoples PCs without my knowledge, ClearSpring are worms.
Anyway back the the subject, BetterPrivacy dose not, like CookieSafe, block LSOs, it lets flash cookies get planted. What it does is delete those cookies when you open/close Firefox. Unless these cookies stay on your PC permanently they are useless (:
Man, i am so pissed off about ClearSpring/AddThis. Seriously, ClearSpring are fucking dodgy cunts.
RefControl
i like this one. When you go to a web-site it knows what site you came from by using the HTTP referrer header. This could be use to track you browsing habits by a site.RefControl lets you set which site the site you visit thinks you came from, i set mine to the Wikipedia Referrer spoofing page so now every site i visit thinks i came from that page :D
It can break on some sites but RefControl let you set sites you trust to see the normal referrer.
Stylish + Ad Blocking FiltersetP
i don't use Adblock Plus as i always have Stylish installed and Ad Blocking FiltersetP does the same job without the overhead of having another add-on installed.SSL Blacklist
This one just informs you if a site uses the unsafe MD5 algorithm for RSA signatures.hosts file
Not really Firefox but the hosts file is a useful little chap, in XP it is in: c:\windows\system32\drivers\etc\. As you know all site have a IP address. When you put www.google.com into your browser it uses DNS to tell which IP address is associated with www.google.com.It used to use the hosts file (when the internet wasn't that big that all the web-site addresses could fit in a text file). Your browser still looks at your hosts file first before DNS. If you haven't edited it it should just have: 127.0.0.1 localhost (this is your PC and you shouldn't mess with this line). 0.0.0.0 is an invalid IP address so if i put: 0.0.0.0 www.google.com in the hosts file and typed www.google.com into Firefox it would look in the hosts file (before DNS) and see it as an invalid IP and not go there.
So you could put in something like: 0.0.0.0 ads.example.com, you can still go to www.example.com, Firefox just would not (could not) connect to their ad server so no ads. You can google around for lists of nasty sites to copy/paste into your hosts file.
It's hard work surfing the internet these days but i hope these few things make it a bit safer/private for you (:
Labels: AddThis, BetterPrivacy, ClearSpring, CookieSafe, hosts file, laptop security, NoScript, privacy, RefControl, Referrer spoofing



