Posts Tagged ‘intrigues’

9
Mar

The Slavic Esperanto

   Posted by: Swizec    in Uncategorized

Codex Zographensis in the Glagolitic alphabet ...
Image via Wikipedia

Sometimes when I’m out and about and not being careful about my clothing my penis slips out.

No wait that’s not right. My linguistic geek slips out.

Yeah, that one! Linguistic geekdom! All over the place! Like a vulgar Andy Warhol rip off painted on a pornstar’s fake boobs.

So last time that happened it was because I stumbled upon something called a Slovianski Jezik, which is apparently something not unlike an Esperanto exclusively for slavic languages.

Of course I went full monty on it and was all like “Omigosh omigosh this is liek SO brilliant yeah!?” in my best cockney accent impersonation.

But the thing is that, all joking aside, us slavs are in dire need of a language such as this. The most painful thing we have to deal with is that already, as it is, in our natural state, it’s almost like we were talking dialects of the same language. Well not really, but still, there are many many similarities.

Like I’ve read once that Slavic languages are the only family of languages in the world where speakers talking to one another feel like the other person should be understandable, but has such a horrible speech impediment that they just can’t quite make them out. Combined with regional differences in vocabulary and you’re in a fucked up situation where you instinctively feel like you should be able to converse normally …

… but just can’t.

For example I went to Prague last week. When there I could almost understand everything I saw in written language and could understand something like 50% of the things I was told. 70% when I tried really hard.

But as soon as I tried to do some proper communication there was a big fail and we were all forced to default back to English, which is just horrible. Come on, a Slovenian and a Czech conversing in a stupid germanic language. EW!

The Andy Warhol Bridge (7th Street) Bridge in ...
Image via Wikipedia

That’s where Slovianski comes in. It is specifically designed to be instantly and intuitively intelligible to anyone who understands slavic languages, more specifically, anyone who is a Slav. You can try this on the Slovianski language front page

Personally I can make out just about everything it says. Even when a word is missing I can very simply understand it from the context.

This is without ever having learnt any other Slavic languages than Slovene and I guess I learned some Serbocroatian by ear simply from … well those who know why know, the rest don’t really have to know.

I think every Slav out there should learn this language, I sure know I want to. It looks easy enough anyway.

Reblog this post [with Zemanta]

Tags: , , ,

This is a howto that might come in handy to some people, but mostly I just want to document how I poked around some very angry django dragons and created something marvelous. There are also people on twitter who were wondering what the fuck I was doing.

So let’s start by describing the problem. We have a base user model named pUser (yes stupid naming convention) that is tied to a cookie, which holds an id. These users are then tied to a number of different API accounts. In my case it is Delicious, Twitter and Facebook. The user_id is also used to tie a bunch of meta data in different other models to them.

The problem is that we do not want to trouble users with a special login for our service. But they are using different computers and browsers, so the same physical user can have multiple user id’s.

However through their Delicious et al. credentials we can tie them back together into a single entity. But we do not want to trouble the rest of the code with this detail, it should just work seamlessly because otherwise we’d be forced to introduce checking for this stuff at about 50 different places in the project.

My approach to solving this goes as follows; at the end will be the three tests that indicate that the solution is valid. A hardcore test through the actual UI also confirmed that everything works.

Funky geek stuff follows, you have been warned

First we introduce a model that connects different user id’s to the main user (i.e. the first id said user was given)

class UserNormalisation(models.Model):
	main_id = models.IntegerField()
	sub_id = models.IntegerField()
 
	class Meta:
		unique_together = ("main_id", "sub_id")

Then we give our Delicious model a ModelManager that will perform duplicity checking and tie different users together as needed.

class DeliciousManager(models.Manager):
	def create(self, **kwargs):
		try:
			old = Delicious.objects.get(username=kwargs['username'])
			new = super(DeliciousManager, self).create(**kwargs)
			try:
				UserNormalisation(main_id = old.user.id,
						  sub_id = new.user.id).save()
			except IntegrityError:
				pass
			new.delete()
			return old
		except Delicious.DoesNotExist:
			return super(DeliciousManager, self).create(**kwargs)
 
class Delicious(models.Model):
	user = models.ForeignKey( pUser )
	username = models.CharField( max_length=255 )
	password = models.CharField( max_length=255 )
	isScrobbled = models.BooleanField( default=False )
 
	objects = DeliciousManager()

Basically when the createfunction is called it checks whether a Delicious model with the same username already exists and if it does, then a row is added to the UserNormalisation table to tie the two user id’s together.

And here’s the real magic, the changes we did to the pUser model.

class pUserManager(models.Manager):
	def get(self, **kwargs):
		user = super(pUserManager, self).get(**kwargs)
		try:
			id = UserNormalisation.objects.get(sub_id=user.id).main_id
			user = super(pUserManager, self).get(id=id)
		except UserNormalisation.DoesNotExist:
			pass
		return user
 
class pUser(models.Model):
	username = models.CharField( max_length=50 )
	password = models.CharField( max_length=255 )
	creation = models.DateTimeField( auto_now=True )
 
	objects = pUserManager()
 
	def __init__(self, *args, **kwargs):
		super(pUser, self).__init__(*args, **kwargs)
		try:
			id = UserNormalisation.objects.get(sub_id=self.id).main_id
			self.id = id
 
		except UserNormalisation.DoesNotExist:
			pass

The pUserManager should have a few more functions that do essentially the same thing for other operations (filter comes to mind). Essentially whenever a pUser is fetched from the db the manager will return the real user as per the UserNormalisation model.

Another trick that makes this work seamlessly even when used as a connecting model (primary key for instance) in a different table is that __init__ function. What I’ve discovered is that there it’s enough to just change the user’s id in place and everything will work.

Here are the tests that confirm all of this funky stuff actually performs as expected

	def test_normalisation(self):
		user = pUser(username="test", password="test")
		user.save()
 
		user2 = pUser(username="test2", password="test")
		user2.save()
 
		norm = UserNormalisation(main_id=user.id, sub_id=user2.id)
		norm.save()
 
		fixture = pUser.objects.get(id=user2.id)
		self.assertEquals( fixture.id, user.id )
 
	def test_normalisation2(self):
		user = pUser()
		user.save()
		user2 = pUser()
		user2.save()
 
		user.delicious_set.create(username="test", password="test")
		fixture = user2.delicious_set.create(username="test", password="test")
 
		self.assertEquals( fixture.user.id, user.id )
		self.assertEquals( UserNormalisation.objects.get(sub_id=user2.id).main_id, user.id )
		self.assertEquals( fixture.user, user )
 
	def test_normalisation3(self):
		user = pUser()
		user.save()
		user2 = pUser()
		user2.save()
 
		user.delicious_set.create(username="test", password="test")
		fixture = user2.delicious_set.create(username="test", password="test")
 
		norm = UserNormalisation.objects.all()
 
		Concepts.relate(user=user2, concept1="tag1", concept2="tag2")
		relation = ConceptRelation.objects.filter(user=user2, concept1="tag1")[0]
		self.assertEquals( relation.user.id, user.id )
		self.assertEquals( relation.user, user )

Take special note to the latter two examples. In test_normalisation2 you can see that when a delicious_set is created for user2, the two users become the same thing because both we’re using the same delicious username both times. Something similar happens in test_normalisation3, but there we see that creating a ConceptRelation for user2 actually creates it for the first user because they both behave as if they were the original user.

Tags: , , , ,

4
Feb

Maths is purdiful

   Posted by: Swizec    in Uncategorized

This whole week I’ve been doing a lot of maths studying. Things like parametric curves, LaGrange theorems and funky functional sequences.

Naturally I’ve developed a bit of a love for pretty mathematical objects, so I wanted to share some with you.

1. Our first contestant is the cardioid. She’s a bit chubby on the sides but has a heart of gold.

Cardioid

2. The second contestant is an implicit heart and was contributed by a bloke on Facebook whom I believe has had this saved somewhere because it would be just mindblowing if he even know it from heart, let alone could create it.

Implicit heart

3. This little nugget followed from my experimentation with parameters of a curve I don’t know the name of … it’s a flower if you haven’t noticed.

Flower

4. The Butterfly Curve is well known in some circles, but I found it by stumbling around wikipedia like a drunken madman

Butterfly Curve

5. There are likely to be other contestants I have yet to discover.

So, which curve do you think is the most beautifulest mathematical construct?

Reblog this post [with Zemanta]

Tags: , ,

27
Jan

Apple pulls another Newton with the iPad

   Posted by: Swizec    in Uncategorized

Lately we’ve been hearing a lot, and I mean a bloody metric shitload, of rumours, speculation and other fun things about the soon-to-be-announced Apple tablet. You know how those Apple fanboys get, the first time hype started building about this thing was several years ago, but lately it’s been getting soooo pervasive you just knew it was the real deal this time.

Of course after all this hype the features I expected were:

  • the casing is made of solid gold
  • it can make me a sandwich
  • it brings coffee
  • it fits in my pocket
  • it is very very useful
  • it can wipe my arse after I take a dump
  • it can fly me to the moon and back
  • it works like The Guide mk.2 (If you don’t know what this means you should be ashamed of yourself)

So let’s see what Apple gave us:

  • oversized iPhone that can’t make calls

Errr … what!? Seriously Apple? Seriously? This!? Really!? We’re doing this again!?

Ok look, I love Apple, hell I even want an iPhone. And I really believe the devices they create are marvelous pieces of technology that work very well. But this fucking piece of crap is the biggest technological let-down I have ever had the displeasure of seeing.

I mean seriously, what the fuck was Apple smoking when they designed this thing? They’re supposed to be this sooper innovative company performing feats of magic right before our eyes, but instead, they take all the old technology, add nothing of the new, and call it the next big awesomest thing.

Fuck off Apple. Call me when you start making useful and exciting stuff again.

At least with the Newton it was marvelous technology that was too far ahead of its time, the iPad is just boring, mundane and boring.

Oh and you can tell they know it’s boring and useless because it’s PRICED THE SAME AS THEIR OLD PRODUCT!

Reblog this post [with Zemanta]

Tags: , , , , , , ,

20
Jan

Why bigger penis == bigger confidence [nsfw-ish]

   Posted by: Swizec    in Insanity

Walking penis. Gay pride parade, 2005.
Image via Wikipedia

Size matters!

But obviously that’s a very lame argument so let’s work it out a bit.

Everybody knows that when it comes to impregnating homo sapienatic females any and all but the weirdest of male homo sapienatic instruments will do. It can be wide, it can be small, it can be whatever. As long as it’s longer than 5 inches you’re good and obviously since you’re here and we have this thing called evolution and inherited traits, chances are your phallic instrument is longer than 5 inches mister.

And 5 inches is quite alright, I wouldn’t want a 5 inch knife in my back …

But homo sapiens are smart cookies and they needed something more out of sex. This thing called an endorphinal high, we like drugs maaan, because after all, if sex would hurt nobody would do it and then we’d all be fucked. Not to mention that’s no fun at all.

So most of the time when a homo sapiens female and a homo sapiens male get together it isn’t to make little hobbits, it’s to make fun and create natural occuring brain drugs. Woo.

This however introduces a problem, the lukewarm hole most females sport is very stretchy and the more fun it’s having the more it stretches. The damn thing does not in the least care about what you’re putting inside, it just wants more and more and more and it gets bigger and bigger. Then the lady stops getting pleasure because she can’t feel anything.

Hell, there’s very little friction left!

What do? Well obviously you put a bigger instrument into the hands of the master male homo sapiens so that he could pleasure the female better. Problem solved!

By the by, many animal species have tricks to make the female more … uhm … willing. Like cats have spikes on their instruments and ducks have a spiral penis! Wow, amazing, shocker!

Ok so no bitching about “Size doesn’t matter, it’s how you use it” Sod off with those, size, in humans, is about 80% of the equation when it comes to pleasurable activities of the sort.

Therein lies the problem. The more the woman wants to have fun, the bigger instrument she needs. But how can you tell who’s got a big instrument when the damn bastards keep it neatly tucked away in their garment?

Confidence!

The more confidence a male sports the bigger their schlong! The mechanism for how big schlong == big confidence is probably self-evident so let’s leave it at this. The reason why bigger schlong equals bigger confidence is that lasses need a heuristic for finding bigger pleasure.

Reblog this post [with Zemanta]

Tags: , , , , , , , ,

After tonight’s midterm I simply couldn’t resist driving around and about Ljubljana in this magnificent snowy weather we’re having. It’s very rare to get a chance to drive in conditions where everyone is nice and calm. Nobody honks at you, nobody tries to swerve around you and do stupid things, nobody is in a hurry. It’s just fucking awesome!

Not to mention the snow and the occasional drift around a corner! Orgasmic! Oh!

Although winter services could be a little more vigilant, I got thrown all over the place driving through tracks others made. There was snow up to 20 centimeters deep someplaces! On main roads!!

Anyway, had fun, was awesome, got stuck in the snow on the parking lot at home. That was a big lol, but a surprisingly large amount of people I don’t know decided to be helpful and we got the car into a parking space in no time.

IMG00156IMG00153IMG00152

Reblog this post [with Zemanta]

Tags: , , ,

8
Jan

The best copypasta ever copy pasted

   Posted by: Swizec    in Insanity

Erotic art by Édouard-Henri Avril.
Image via Wikipedia
OMFG Guys… I seriously always thought that those wincest stories were bullshit, I have two sisters, though one’s a baby and the other is two years older than me. The thought of having sex with her was both simultaneously really creepy and in the realm of ‘would-never-happen-to-me’. My sister’s sort of a flower child, garlands and stuff all around her room. So I’m sound asleep one night, I’m a junior in High School and she’s at community college, she hasn’t moved out yet… and she knocks on my door much louder than she needed to, but she whispers through my door ‘Can I come in?’…
Well of course she can, she’s my sister. Anyway, she comes in in the skimpiest fucking night gown I’ve ever seen. I didn’t know she even had a night gown. She tells me that she thought she heard a gunshot in the woods and she doesn’t want to be alone. She asks if she can sleep with me, and before my mind gets out of the gutter, I recoil… but realizing what she means, I tell her of course and I let her into the bed. As she climbs in, I can smell honey on her breath, it’s mesmerizing. That sweet smell brings me closer to her and I curl up next to her like we were just little kids again.
Her snoring has always been loud, especially deep into the nights, but half-an-hour into trying to get some winks, she’s still not snoring. “What do you think of us?” she says randomly. I stammer because I’m fighting the fact that I’m turned on right now AND what she just asked. I tell her that she’s a wonderful sister and I loved her. She told me “What if I was more than her sister? Something much more?” And I shit bricks… It all became so clear to me now.
All those years of wondering, staring at her door, waiting for her, laying awake at night just thinking, rolling crazy suspicions around in my head, all of it came down to this Wednesday night, this very moment, everything I had wondered about her became very… very clear. It was an epiphany at its purest and most tense, most… terrifying in its own way. I could finally say it with no regret, no fear, only truth.
“You’re a bear, aren’t you?” I say. The honey, the gunshot in the woods… there are NO WOODS around here, the berries strung up all around her room. She lept out of bed and ripped off her mask, roaring and making other bear noises! I jumped out of my window and it gave chase, out into the streets! Moving as fast as my legs will let me, eventually she gives up and moves back into the house. Standing on the street, I know it in my heart… she’d always be my special bear.

OMFG Guys… I seriously always thought that those wincest stories were bullshit, I have two sisters, though one’s a baby and the other is two years older than me. The thought of having sex with her was both simultaneously really creepy and in the realm of ‘would-never-happen-to-me’. My sister’s sort of a flower child, garlands and stuff all around her room. So I’m sound asleep one night, I’m a junior in High School and she’s at community college, she hasn’t moved out yet… and she knocks on my door much louder than she needed to, but she whispers through my door ‘Can I come in?’…

Well of course she can, she’s my sister. Anyway, she comes in in the skimpiest fucking night gown I’ve ever seen. I didn’t know she even had a night gown. She tells me that she thought she heard a gunshot in the woods and she doesn’t want to be alone. She asks if she can sleep with me, and before my mind gets out of the gutter, I recoil… but realizing what she means, I tell her of course and I let her into the bed. As she climbs in, I can smell honey on her breath, it’s mesmerizing. That sweet smell brings me closer to her and I curl up next to her like we were just little kids again.

Her snoring has always been loud, especially deep into the nights, but half-an-hour into trying to get some winks, she’s still not snoring. “What do you think of us?” she says randomly. I stammer because I’m fighting the fact that I’m turned on right now AND what she just asked. I tell her that she’s a wonderful sister and I loved her. She told me “What if I was more than her sister? Something much more?” And I shit bricks… It all became so clear to me now.

All those years of wondering, staring at her door, waiting for her, laying awake at night just thinking, rolling crazy suspicions around in my head, all of it came down to this Wednesday night, this very moment, everything I had wondered about her became very… very clear. It was an epiphany at its purest and most tense, most… terrifying in its own way. I could finally say it with no regret, no fear, only truth.

“You’re a bear, aren’t you?” I say. The honey, the gunshot in the woods… there are NO WOODS around here, the berries strung up all around her room. She lept out of bed and ripped off her mask, roaring and making other bear noises! I jumped out of my window and it gave chase, out into the streets! Moving as fast as my legs will let me, eventually she gives up and moves back into the house. Standing on the street, I know it in my heart… she’d always be my special bear.

Reblog this post [with Zemanta]

Tags: ,

6
Jan

The greatest casual game ever devised

   Posted by: Swizec    in Uncategorized

Machinarium 2009-10-20 02-22-26-27
Image by deadman009 via Flickr
Machinarium 2009-10-21 03-01-19-71
Image by deadman009 via Flickr
Machinarium 2009-10-20 03-35-26-50
Image by deadman009 via Flickr
Machinarium 2009-10-20 02-42-19-66
Image by deadman009 via Flickr
Machinarium 2009-10-21 02-57-02-40
Image by deadman009 via Flickr
Machinarium 2009-10-20 01-28-26-39
Image by deadman009 via Flickr

Now and anon I like to fire up a game when I’m feeling a dash unmotivated to do pretty much anything. Most often I simply don’t have time to play, so when I do play I want the game to be something fascinatingly epic but in such a way as can be enjoyed ten minutes here, twenty minutes there, an hour over yonder. NOT something you have to play for three hours straight before you get in the groove.

Two nights ago I discovered Machinarium through a hapless link in a msn chat.

I was instantly hooked, the art is simply amazing, the level of detail beyond all comparison. The gameplay itself. Oh! Don’t get me started, I could *gasm all over at the mere thought of the brilliance therein.

Basically you play a robot that goes through a few adventures and solves many a puzzle in a beautifully designed world to, well I dont’ know what yet, haven’t gotten that far. It would seem though that it’s got something to do with love because whenever his memories are shown they’re about a lady robot.

It is also one of the hardest puzzle games I’ve ever had the pleasure of playing. Shivers, Monkey Island, Abe’s Oddysee/Exoddus? Don’t get me started, weaksauce in comparison to Machinarium! Downright bloody weaksauce! Often you will encounter a proper logic game, one as can be bought in stores sometimes, you’ve got to solve just to open a door.

Other times you are left solving five puzzles just to get to an item that solves a previous puzzle.

The best thing though? It’s absolutely DRM and any and all copy protection free. Buy the game, get the downloads for all OS’s and a soundtrack! Yay! How could I resist? So I didn’t, I shelved out the few euro it takes and it was possibly one of the best moneys ever spent.

Big game publisher, if you are reading this, yes, yes I do only buy games if they come without DRM. Sometimes I consider buying a big-name game, but usually get disappointed by the process half-way through and bail.

Reblog this post [with Zemanta]

Tags: , , , , , ,

4
Jan

3 pikchurs of a pretty goat

   Posted by: Swizec    in Insanity

While I was browsing through my blackberry a few moments ago to find a certain photo I stumbled upon some photos I took this Christmas.

They’re of a very bloody cute small boy goat thing. My grandmother says this is as big as they get and by god the little rascals are awesome. Soon as I came into the barn this guy jumped on me and demanded petting!

PETTING!

A goat!!

:D

Here he is, now let’s make him famous just because he’s so cool.

IMG00104IMG00097IMG00090

Tags: , ,

31
Dec

Rape has never been so beautiful

   Posted by: Swizec    in Insanity

Since it’s new year’s eve day party thingy mcthing I’ll keep this short because nobody is going to read it anyway.

Last night I went to see A Clockwork Orange at the playhouse and it was just a thing of joy. Shit was so cash.

No seriously, everybody who has ever even thought about doing far out things that bend the mind and touch you deeply and truly. I don’t think I’ve ever been this affected by a theatre performance before. It was weird. It was strange. It was fucking brilliant.

Such perfect captivation of the story, so amazingly performed. Half the time I was afraid they might actually start pounding away at the audience and doing all manner of strange things to us. And half the mind I was just left with a giant WTFLOL in my head. And then there were times when it was so mindboggling, so sick, so perverted it was painful to watch.

If you can possibly find the time, if you can spare the few euro it takes, fucking go see this show. You shan’t regret it; hat’s off to Mladinsko Gledalisce.

Now if you’ll excuse me, I’m feeling a deep urge to go fuck somebody up with a stick.

Reblog this post [with Zemanta]

Tags: , , , , , , , , ,

Page 1 of 712345...Last »