Taming the cat

4. September 2012 av Tengil Bli den første til å kommentere denne saken

Rotten Apple. Always getting something wrong. These are my basic customizations for (Mountain) Lion installs.

Fixing locale problems on (non Apple) SSH connections (UTF-8):
http://thegreyblog.blogspot.se/2012/02/fixing-mac-os-x-lions-ssh-utf-8-issues.html
(this bug is plain stupid).

And getting a decent terminal client:
http://www.iterm2.com/

Turn off history swiping in Safari:
System preferences > Trackpad > Mouse Gestures

Natural scrolling or not:
System Preferences > Trackpad > Scroll & Zoom
(Reverse scrolling + Natural swipe for desktops would be nice).

Get me to the library:
$ chflags nohidden ~/Library

Plus basic stuff like 24-hour clock, etc.

AND MORE OPTIONS TO CUSTOMIZE STUFF, PLEASE! I’m feeling trapped and dummified. We’re not all Californians!

Music recognition #2

29. April 2012 av Tengil Bli den første til å kommentere denne saken

Sometime in the mid eighties, between 1984 and 1987, NRK radio P2 broadcast a suspense/horror radio play Easter special in four parts called Skrekkyllinger. What I’m looking for is the theme music used in that series. It’s from an LP so it’s not composed for the series. Hope someone can identify this:

Excerpt of unknown music.

Taming QuickTime X

3. November 2009 av Tengil Bli den første til å kommentere denne saken

Did QuickTime X take you by surprise? Still need Pro-features in QT? Here’s my fix which sorts out all my QT problems on SL (OS X 10.6).

First thing I did was to install QuickTime Player 7 from optional installs on the SL CD. Then I can always open with QT 7. For most uses this is all you need.

But to get more freedom on (old fashioned) web tv sites like nrk.no, I also had to make QT 7 the default player, for real. Also for Flip4mac in web browsers. Only changing the applications’ filenames will fix that. Type or paste the following lines of code into a Terminal window:

cd /Applications
sudo mv QuickTime\ Player.app QuickTime\ Player\ X.app
sudo ln -s Utilities/QuickTime\ Player\ 7.app QuickTime\ Player.app
exit

QuickTime Player X then becomes QuickTime Player X (not just QuickTime Player), and QuickTime Player 7 becomes QuickTime Player (in addition to still being QuickTime Player 7).

If you need QT X to be the default player in Finder just Get Info, change the Open with, and Change all.

Problems with Your Analytics

30. March 2009 av Tengil Bli den første til å kommentere denne saken

First, there’s nothing wrong with the Your Analytics plugin (AFAIK). And the JW Player is a well crafted video player. No doubt. The problem lies in how you analyze the data coming from the plugin. How you count your hits. To build a proper analytics backend you have to know what the data you get actually is.

It’s nice to get lots of “hits” but don’t fool yourself.

The example php backend script simply counts the play, pause and completed states received from the plugin. If you think the play count is the number of times your video has been played, you’re wrong. If you think the completed count is the number of times your video has been played to completion, you’re wrong. The pause count is probably the only number which is what you think it is.

Here’s what’s being counted:

PAUSE. Every time a user hits the pause button the pause counter is increased. Fine.

PLAY. Every time a user hits the play button the play counter is increased. No surprise there either. But if a user hits play, then pause, waiting for the buffer to load, then hits play again (many people does this), he’s count twice. Also, everytime a user does a seek, that’s moving to a different place in time, either backwards or forwards, that’s actually resulting in a new play event. So if I want to rewatch the scene I just saw, clicking the timebar a few times to find the right spot, every move is a play count.

COMPLETED. When a user has played a video to completion the complete counter is increased. That’s what it sounds like, so that’s fine. We want to know how many has seen the whole film. But if a user “cheats” and skips to the end to watch the last few seconds, he’s also counted as a complete watch. And if you click to jump to a spot in the video which is not loaded yet, the player resets itself and it’s actually counted as a completion. Figure that. On the other hand, a user might watch the whole video but skip to something else 2 seconds before its completely done (skipping credits perhaps). Then that’s not counted. But it should be.

Also, I’ve been logging what comes out of Your Analytics for about two weeks. In addition to people watching a 40 minute lecture in 30 seconds (from the first PLAY to COMPLETE), there also seems to be a bug either in the player or in the plugin that results in a lot of COMPLETE events being sent. Sometimes 20 or 30 in a row. At other times many hundred from the same IP at the same time (from 4 to 10 each second).

MY POINT IS: If you simply count the play, pause and complete events sent from Your Analytics, as done in the example script, at best you get a reliable number of now many times people have paused your video. Well, you could use the play count as an indicator of the interest payed to a video. But not how many users are involved.

WHAT TO DO, NOW. Well, since the data coming from the plugin is transmitted by HTTP you actually get some interesting info in addition to the state and filename.

You get the user agent (name and version of the user’s web browser).

You also get the http referer (where they’re coming from, the url).

More importantly you get the users’ IP addresses. It’s not a session id, nor guaranteed to be a unique user, but combine it with a timestamp, and perhaps the user agent, and you have something somewhere up that alley.

To build a good analytics backend you have to keep track of state changes for each user along a timeline. That way you can not only count individual users, but also the number of playings.

To get good output data requires knowledge of the input data. Since that knowledge is not in the plugin it has to be in the backend.

If you have no clue what I’m talking about or if you have no experience in analyzing data you should not use this plugin.

 

NEW: COUNT TRACKULA
This new analytics plugin might be an easier choice. It does things a bit differently. Instead of sending all state changes to the backend it sends a message when the video starts, when it’s in the middle, and when it ends. It can also send a message when it has played a set number of seconds.

A couple of remarks: Each message is only sent once. Upon replay it will not send any messages to the backend. Also, there’s a bug causing development versions of the Flash player to popup with a warning. That shouldn’t be hard to fix.

 

Adobe still messes up cases

10. February 2009 av Tengil Bli den første til å kommentere denne saken
Adobe Flash CS4 still has upper/lower case mess-ups in file paths. We upgraded from 8 to CS4 at work but that obviously didn’t help.

Here’s a typical error message:

An error occurred opening file '/Users/test/Library/Application Support/Adobe/Flash CS4/en/Configuration//JavaScript/DeployVideo.jsfl'

You fix it by renaming the directory .../Javascript to .../JavaScript (with a capital S).

Who’s doing this rotten programming? Also note the double slash (//)…

Help me identify this track, plz

15. January 2009 av Tengil Bli den første til å kommentere denne saken

Ok. This is something I heard as a kid. It was on one of my dad’s home made tapes (audio cassette, you know) together with ELO’s “Rain is Falling” (from “Time”), “Ai no corrica” (not sure what version) and Sheena Easton’s “9 to 5“. So the tape is from around 1980/81. It’s a five-and-a-half minute electro ensemble thing. Please let me know if you recognize this!

3 excerpts from the track [mp3]

UiB VPN og iPod Touch

14. July 2008 av Tengil 6 kommentarer - Legg igjen din du og!

Har fått hendene mine i en iPod Touch, og kommer sikkert til å klage min nød litt senere, men her er hvordan den kan settes opp for bruk på det trådløse nettverket ved UiB.

På vanlige trådløse hjemmenett funker den “ut av boksen” — velg et nettverk, skriv inn passordet, og du er “på”. Nøyer du deg med dette på universitetsnettet, må du titt og ofte skrive inn brukernavn og passord i nettleseren. Dette blir fort plagsomt, og skal du bedrive andre nettaktiviteter enn rein surfing så funker det ikke. Da må du sette opp en VPN-forbindelse.

  1. iPod Touch VPN Settings (UiB)Du først være helt sikker på at du ikke allerede er tilkoblet UiB-nettet. En aktiv sesjon uten vpn vil klusse det litt til.
  2. Deretter går du til: Settings > General > Network > VPN > Settings
  3. Velg: PPTP
  4. Sett:
    Server: vpn-ansatt.uib.no eller vpn-student.uib.no
    Account: brukernavn@ansatt eller brukernavn@student
    RSA SecurID: off
    Password: passord
    Encryption Level: Maximum
    Send all traffic: on
  5. Velg: Save
  6. Slå på VPN

Tror det er stort sett slik det gjøres på iPhone også. Dette er for 1.1.4.

Pause i Split

Eg og Tyto tek ein liten pause no, og reiser ei veke til Split (og der omkring). Så får vi håpe at yr.no tek feil B-)

Og det gjorde dei. Ein og ein halv dag med litt regn, elles sommar og heitt. Reiste uspesifisert og havna i ei leilegheit i Makarska, og det passa oss veldig bra.

Dajm skrives med “j”

11. August 2007 av Tengil 1 kommentar - Legg igjen din du og!

Måtte bare si det. Og så heter det faktisk “Big Cat”!

UiB pullprint

16. May 2007 av Tengil 3 kommentarer - Legg igjen din du og!

Etter mye frem og tilbake ser det ut til at Konica Minolta har gitt opp å få C450-en her på jobben (Infomedia, UiB) til å funke med gutenprint (gimp) på linux. Under rein cups funker den hvis du får et eget brukernavn bestående av kun tall… Derfor har jeg heller byttet til den sentrale pullprint-tjenesten til UiB når jeg trenger fargeutskrift.

Den funker og er enkel og grei å sette opp (gnome):

1. Start kontrollpanel for skrivere (ubuntu: System > Administration > Printing), velg New Printer, og fyll inn:
> Printer Type: Network Printer - Windows Printer (SMB)
> Host: print.uib.no
> Printer: pullprintcolor eller pullprint
> Username: uib\brukernavn
> Password: passord
Trykk Forward

Studenter må sette rasmus eller student (eller noe) foran brukernavnet sitt istedenfor “uib”.

2. Velg driver: HP - Color LaserJet 4730mfp Postscript (f.eks.)
Trykk Forward

3. Skriv inn et fornuftig navn, f.eks. PullPrint ;-)
Trykk Apply

Se utskriftstjenester ved UiB, og payprint.uib.no der du (nesten) kan se hva du har i køen.