Filter Bubble Experiment: Googling “Stream”

All of my google searches over the past years have been saved.  All 10,293 of them. So, I decided to see what happens when I search for the word Stream.  Stream has many definitions these days, from the watery passageway to the video content delivery system to a programming data structure.  I wanted to see how the filter bubble affected my search results.  So here are the first ten results I got:

  1. www.stream.com/ – A call center organization. No clue why this would be first, other than the URL.
  2. en.wikipedia.org/wiki/Stream – Wikipedia’s page on the waterway stream.
  3. www.streamenergy.net/wp/ – Public energy company for the Southwest. Completely irrelevant to me.
  4. http://www.ustream.tv/ – Streaming media site.
  5. http://www.cs.virginia.edu/stream/ – Memory testing benchmark.
  6. store.steampowered.com/ – Gaming store. More relevant than the above five…
  7. msdn.microsoft.com/en-us/library/system.io.stream.aspx – Documentation for a built-in for the CLR. Not a platform I use, but hey, it’s one of the first things I would think of when I think of stream.
  8. stream.wpp.com/ – An initiative or something…their description is vague.
  9. http://www.justin.tv/ – Another media streaming site.
  10. music.aol.com/new-releases-full-cds/spinner – Another media streaming site.

Of these results, only two of them have any relevancy to me, and one of them is a typo of stream.  If I’m living in a filter bubble, the filter is not doing a good job keeping irrelevant stuff out, like businesses that I don’t care about.


heartless IRC Bot

I’m creating an IRC bot using Nodejs called heartless. Starting from scratch (a.k.a. Nodejs documentation & the IRC spec), I’m building up to a multifunctional bot. Today I made it so that the trigger character can be changed using a noconflict command. This is not a feature I’ve seen in any bot, and it wasn’t too difficult.

I also tried to do an auto-auth based on identified & seen in glist, but glist only works for oneself. I might still make it auto-auth on identified nick though…and add a command sequence for announcing groups. Probably ‘group nick1′ as nick2 and ‘group nick2′ as nick1. It’ll be a password-less system, but also slightly insecure to nick thieves if somebody lets their nick expire…

Also, I took my last data structures project and ported it into the bot. Right now it just does the ‘sammich’ command, but in the future it will do more.


Array.contains(array, value)

There are cases where one might want to know whether or not an array contains a certain value. There is no default function for doing this by default, and the other alternative to having a new function is to write out an anonymous function in the callback position of the some method.

var a = ["green", "blue", "black"];
if (a.some(function (el) { return (el === "black"); })) {
// do something;
}

That is extremely tedious, and worse, it makes code harder to read. As such, I sometimes use Array.contains, as defined here:

Array.contains = function (array, value) {
return a.some(function (el) { return (el === value); });
}

After that function is included the example can be modified to the cleaner

if (Array.contains(a, "black")) {
// do something
}


Jasmine Tweak: Show Passing Tests by Default

One of the most useful tools for coding is a testing framework, to show when code breaks, and to also add to documentation. For my purposes, I recently learned about a small BDD framework known as Jasmine. I won’t describe how to use it, for that has been done well already. Instead, I’ll point out a small modification that I employed:

Problem:  I have to press ‘show passed’ to show passed tests every time I refresh the page.  I refresh every time I add a new test.  I want to have it show passed tests by default.

Solution:  Open the jasmine-html.js file.

On line 34, find

this.outerDiv = this.createDom('div', { className: 'jasmine_reporter' },

And replace with

this.outerDiv = this.createDom('div', { className: 'jasmine_reporter show-passed' },

Specifically, this adds the show-passed class to the reporter when it starts.

Then, we have to make the checkbox accurately reflect its on by default.

Find (line 41)

showPassed = this.createDom('input', { id: "__jasmine_TrivialReporter_showPassed__", type: 'checkbox' }),

and replace with

showPassed = this.createDom('input', { id: "__jasmine_TrivialReporter_showPassed__", type: 'checkbox', checked: true }),.

Now passed tests will show by default when you load the page.


Taking Back

It’s been years since I’ve posted here.  I’ve grown in maturity, intelligence, and whatnot since I last posted. As such, it may be the case that I don’t agree with some of the statements I made in the past.


Escaping Slavery & Playing to The Gods

This is a recollection of a DnD game session.  It was the initial one with the characters we were using.

I am using a Half-Fey Human Sorcerer level 3.  The ECL is 5.  The other player is a Centaur Ranger 5 who was affected by a Polymorph spell so as that he does not have a tail, but does have wings that work.  Half-Fey also get the ability to Fly, and they can use Charm Person at Will.

The story starts out as I am in a forest clearing, camping with the little supplies I have on me.  Heck, I didn’t write any down on my character sheet.  I didn’t write any weapons or armor either, but I am a spellcaster.  I don’t need those.  I did take sudden silent and sudden still though.  Thanks Miniatures handbook.  While camping, fifteen men surrounded me, and forced me to take them to the centaurs.  On the way to the main force, I stumbled upon the flying one that is my friend.  He was captured, after a fight, but during the fight, I managed to use Charm Person on one of my captives, leading to his death after he tried to free me.

We were taken to the nearest slave market and sold…me for a few 100 gold pieces, and the flying centaur for a few thousand (hey..it looks like a Pegasus).  The centaur made a deal to go back to the men and receive a cut in the sale.  I had to (in a ship) cast Summon Monster 1 to get a dire rat, scream “Monster”, daze the person at the door, climb up the ladder, cast daze on the guy trying to stop me, and fly away, getting one critical attack (from a bow) at me doing four points damage.  I flew back to the Centaurs, but while I did so, I saw the Centaur with the men, and flew past them.

That night, the Centaur tried to steal a bag of holding, and when another wild man saw this, he killed the man the Centaur tired to steal from, and the Centaur took the bag.  He removed everything in it, and spread it among the men, kept the bag, and flew off towards town.  We both made it to the Centaurs at almost the same time.  He made it a few minutes before me.  His fly speed is 80, and mine is 60.  I questioned how he got there, and we then talked to the Centaur Elders.  They sent us on a quest to talk to some people in a town where some of the residents are cows with human faces.  They sent us, through Portal, to the main town of Lundonmere.  There, some Centaurs at an outside camp told us their divine magic wasn’t working anymore.  We paid no heed to that, and went to a bar in town for Centaurs.

As I entered, I used charm person on the barkeep, and he gave us free wine.  Then, we used our Perform skills.  I started with a dance, and got a total of 30.  The Centaur did a dance of 28.  People gave us gold, which I gave to the barkeep, to pay for my usage of magic on him.  Two drarves came up to me asking if they would like me to go back to their city, but I decided that I would play a racist half-hey human.  I said to them:

“Ah, well, uhh… hhmmm… How do I say this?  Oh right.  I don’t like your kind.”  I then explained why I was racist.

“When I was young, drarves raided my home town, killed my parents, and looted the town.”  One of the drawfs said that they were an anomaly and that there are not any like that at the town they wished we played at.  They gave me a platinum piece in any case.  They left us alone after that.

Next to visit was an Outsider who was watching from afar by accident.  S/he (?) took us to the Demiplane of his/her (?) Goddess, and we played for them.  I learned, though inquisitiveness, that the God of the Centaurs was kidnapped by another one, and that is why he cannot give his divine magic to them.  We were then taken back to 1 second later in the same place we teleported away, but we had gained a golden Torc (a necklace) each, and a magical instrument.  I got drums, along with 9 free ranks in Perform (Drums).  I do not recall what the centaur got.

The reason we even went to the town in Lundonmere was to escort a princess lioness to Nyan.

I just wish to say:  Flying is awesome.  Charm Person is awesome.  Daze is awesome.  Two more levels, and I get Suggestion 1/day.  That’ll be fun.

MY SPELL LIST:

0 level:  Ray of Frost/Daze/Ghost Sound/Arcane Mark/Mending
1 level:  Spider Climb/Ray of Enfeeblement/Summon Monster I
Fey Magic:  Charm Person (At Will)/Hypnotism (1/day)/Glitterdust (1/day)/Detect Law (3/day)/Sleep (1/day)


Rant

Why, oh why, is everybody bashing anonymity on the web?  It is *not* a bad thing.  Indeed, it is quite the opposite.  Such anonymity allows for a person to drop their weaknesses in strength, and show their strengths in intelligence.  What is beauty and muscle on the web?  It is definitely not what you see in the real world.  Society differs online because of this.  Because of these changes, which includes more people being more critical of others, people claim that it is ‘wrong’.  It is not wrong.  It is merely different.  The most prominent change is anonymity.

You have no clue who a certain person is.  You only know what data is given to you, which is very little for those who cannot grasp the concepts of the internet, but an extremely high amount for those that can.  Spotting patterns and whatnot is completely different.  It becomes rational.  While humans are not rational, we are highly adaptable, and if rationality is needed, that is what we will use.  But then, once found, nobody wishes to live without it.  Only those that take a taste of it or ignore it altogether will claim otherwise.

I know you by what you do.  You know me by what I do.  Looks never enter the picture.  Wealth means only a little.  Business ventures are not frowned upon as crazy.  People wish to see what you make.  Openness through the ultimate security of not showing anything you do not wish to leads to prosperity to all parties.


Follow

Get every new post delivered to your Inbox.