Posted in : Silly O'clock quotes
Please note : Some participants names have been obscured to protect the innocent :|
tuxnus:yabba_hh: unluckyJust spent about a week making a new template for my companys newsletter. Guess what? CSS is hardly supported by email clients, both on and offline. Notably gmail, which has nearly no support at all.
So I have to redesign the whole thing in tables. AAAAAAARRRGHHH!!!
So there are times when tables still have to be used.
'Die Tables Die' indeed!
Ed
yabba_hh: I suppose this isn't the time to tell Ed that all my emails are "plain text" only, so shit like "my comments are in blue" tiotally fail?
tuxnus: which is why i italicized them
tuxnus: (for the color-impared)
yabba_hh: and you managed to do that in plain text by ....... ?
tuxnus: well, yer a moron
yabba_hh: lmfao
tuxnus: read (a most unusual character)
tuxnus: unique
yabba_hh: uhuh
tuxnus: odd
tuxnus: eccentric
tuxnus: weird
tuxnus: obtuse
tuxnus: cryptic
tuxnus: one of a kind
yabba_hh: as opposed to "of course italics will work if plain text format is all his client accepts and he can't see my colour"
tuxnus: I thought they would
yabba_hh: fuckin' muppet
Posted in : Plugins & Widgets
I decided to have another play with tags as I tend to use them quite a bit on my posts and I'm always forgetting which ones I've used before and which ones I haven't. So I threw together a plugin that will auto-suggest tags based on ones that you've used in the past. It'll also show you a list of all other similar tags in case you have more than one tag with the same starting letter(s) although they're not clickable at the moment because I haven't got that far.
Installation is pretty simple, just download the zip ( AM AutoTags ), upload it, install it, then meander into the plugin settings and set the tag separator for whatever your version uses. That's it. Now when you enter tags you it should try and auto complete them for you and show you a list of other tags.
NOTE : I've only tested this in FireFox as my IE is having a crisis of confidence when it comes to running javascript, so if you use IE and it doesn't work then tough shit. Also, this is a pre-release version so it's bound to have a few quirks, if you find any then just let me know and I'll see what I can do to eradicate them.
?
*edit* 24th April
I think I've finally managed to convince IE that it can actually understand javascript so this should now work in IE as well, zip file updated
Posted in : Spam Trap
The good new is that they're running Wordpress 2.3.3 which is exploitable ... so now the spammers are gonna have their blogs spammed by the spammers .... kinda poetic really.
I stumbled across this site ( http://blogs.pi.edu/ ... no link love for you biatch ) whilst I was wandering around the web. It's a dot Edu which has opened it's doors to the public and allows them to create their very own .edu blog for a mere $50 a month. That's right, for the princely sum of $50 the spammers can now have a blog on one of the most respected TLD's on the web ..... no longer do they need to search for obsolete .edu message boards to fill with their crap they can have their own shiny sub domain to play with
Perish the thought, they're totally against spam, you can tell just by reading their TOS :
PI.edu is a community specifically created for webmasters involved in educating the public about their websites and the products and services that they offer.
To maintain the high standards of this community, we have some simple requirements to administrate a blog on the PI.EDU network.
*** Keep your blog family friendly
***No Porn related Blogs
***No blogs promoting casino gambling
***No RX blogs promoting sites that sell drugs in the US without a PERSONAL doctor’s prescription.
***Your blog must contain original educational content that teaches and educates readers.
***Your blog may not present untrue data in order to mislead readers.
***No Link Farm Blogs.
***PI.EDU has the right to terminate your monthly membership if we feel your blog is detrimental to the PI.EDU blog community.
***If you discontinue payment for your blog, PI.EDU has the option to keep the blog up and running.By ticking the box below you agree to follow this TOS and agree to any decisions PI.edu makes concerning whether your blog is a good fit for our community.
Cool now I feel reassured .... if only it wasn't absolute bollocks ..... a cursory glance over the blogs that have already been set up will show you that it's soon gonna be a full blown spam source ... no worries though, because at least it'll be educated spam huh? :roll:
?
Posted in : Hacks
<bitchchecker> tell me your network number man then you're dead
I advise you don't piss off this hacker ...... unless you're bored ... or sadisitic ... source : Shut Up I Hack You :roll:
?
Posted in : Techno Babble
I decided to have a play with Bash this weekend as I'd been asked if I could come up with a backup process that was simple enough for the average joe blogs to configure to suit their needs. The script needed to be able to do daily/weekly/monthly backups of selected databases and files/folders and store them on a different server, as a nice touch it also emails the user to let them know that the backup had been done and which databases/files/folders had been included. As well as doing the backups it also keeps the latest 3 in a grandfather/father/son rotation which gives the user 9 potential backups which they can recover from.
As I haven't had a shedload of experience in using bash I spent a fair amount of time hunting round the web looking for clues as to how to do some bits and bats so I thought I'd share some snippets as some of them took a fair amount of searching for/solving and you never know, it may just help someone else in the future ..... probably me :p
#!/usr/bin/env bash
#
# Read a named file into a variable
#
# read "file_you_want" into $variable_name
contents=$(<foo.txt)
echo "${contents}"
#
# Read a variable file into a variable
#
# set $variable_name = "file_you_want"
my_file='/path/foo.txt'
# read file $variable_name into $variable_name
contents=$(<"${my_file}")
echo "${contents}"
#!/usr/bin/env bash
#
# Convert windows line endings to linux line endings
#
# set $variable_name = "file_you_want_to_convert"
filename='/path/foo.txt'
# remove all \r and save the output to $variable_name.linux
tr -d '\r' < ${filename} > ${filename}.linux
# remove original file
rm ${filename} -f
# rename $variable_name.linux to $variable_name
mv ${filename}.linux ${filename}
#!/usr/bin/env bash
#
# check if a process is already running
#
# name of the process to check for
# add [] around the first letter to stop the "grep process" from showing
check_process='[f]oo'
if ps aux | grep -q "${check_process}"
then
echo 'running'
else
echo 'not running'
fi
#!/usr/bin/env bash
#
# switch between 2 directories
#
# switch to directory 1
cd /path/foo/
# show current directory
pwd
# switch to directory 2 and "remember" previous directory
pushd /path/bar/
# show current directory
pwd
# switch back to directory 1
popd
# show current directory
pwd
# alternative method
# switch to directory 1
cd /path/foo/
# show current directory
pwd
# switch to directory 2 and "remember" previous directory
pushd /path/bar/
# show current directory
pwd
# switch back to directory 1
pushd
# show current directory
pwd
# switch back to directory 2
pushd
# show current directory
pwd
#!/usr/bin/env bash
#
# send an email using echo
#
echo 'your email content' | mail -s 'your email subject' email_1@domain.com email_2@domain.com
#
# send an email using a file as content
#
mail -s 'your email subject' email_1@domain.com email_2@domain.com < email_content.txt
#
# send an email using a variable file for content
#
# set $variable_name = "file_you_want_to_use_as_content"
email_body='/path/foo.txt'
mail -s 'your email subject' email_1@domain.com email_2@domain.com < ${email_body}
#
# send an email using a file and replace "%placeholders%" with variables
#
# set $variable_name = "file_you_want_to_use_as_content"
email_body='/path/foo.txt'
# set $variable_name = "replacement_value"
foo='bar'
# replace the placeholders and email the results
# replaces %placeholder% with $foo
sed -e "s!%placeholder%!${foo}!;" ${email_body}" | mail -s 'your email subject' email_1@domain.com email_2@domain.com
#!/usr/bin/env bash
#
# find the directory your script lives in
#
foo= `dirname $0`
echo $foo
?
Posted in : Techno Babble
Considering the number of times I've had to re-install ubuntu recently I should be a bloody expert! .... I've learnt not to play with X .... he gets pissed off real easily :| ..... Saying that, and with shedloads of help from Afwas, I've managed to get it installed with the majority of the software that I need to be able to play on the web, although I was devastated when I couldn't install IE6,7,8beta.....urm, well any IE version really...... the good news is, it would appear that my pc really CAN move files around without having the unsafest pile of crap since ......urm ........ sliced bread? .... is sliced bread unsafe? ..... I suppose you could always cut yourself with the knife while slicing it?
Anyway, I've mostly managed to install all the shit I need on a day to day basis ...... but I might need to reinstall, so this is just to remind me of stuff ;)
So, now that all y'all think I'm a bloody genius .... which I am of course :| ...... I should point out that even my dad can run linux, and he's like "really old" and shit. I've still got a fair few things that I'm missing ... like my second screen working, and a decent ssh client that can hold multiple sessions in tabs .... and I must setup all my email accounts, although the lack of spam whilst they're not setup is damn attractive ... ohhh and I must change the desktop background, the swirly modern art brown thing really isn't to my tastes.
Stupid bloody question really, of course it hasn't improved, I've spent the best part of a couple of days just trying to avoid another re-install ..... it's all X's fault .... so I've done bugger all work! ...... mind you, it IS the weekend so maybe I shouldn't feel ...... urm ..... you know, that feeling you get when yer meant to be doing stuff but instead you just piss off an play? ... anyway, I'm not feeling that.
/me wanders off to find a yen sign that I can copy+paste cos I haven't worked out a way to type "?" from the keyboard yet :S
?