Search Results: "Michael Janssen"

14 November 2007

Michael Janssen: On happiness

I was viewing one of my most favorite speakers today, Lawrence Lessig, talk about copyright, giving a speech that is very similar to one that I have heard a few times online, but Lessig presents it so well that I end up watching it over and over again. This particular speech was given at TED. The nice thing about coming across a TED talk is that it is almost always enlightening in some way. Lessig's speech is enlightening enough, and it reminded me that I should watch something of his since he has switched to fighting corruption instead of copyright.

Another nice thing about the TED talks is that they are all sitting on the same site - so they are all interlinked with similar topics and they also include the new videos which are being posted fairly often. Sometimes I don't have time to watch more than one talk, but today I was blessed with a surfeit of time, so I clicked on another link which interested me. This talk was from Dan Gilbert and was coarsely about happiness, and more importantly synthetic happiness and how our brains work. It started with talk about the foundation of our evolved brains, of which the most important fact was considered the Impact Bias. Gilbert talked about the Impact bias as a primary result of the evolution of the mind from earlier man to modern man - it is the ability of our mind to predict the future without actually trying it. It is the reason why you have an aversion to a food that you haven't even eaten or don't think you will like a movie that isn't even released, or the opposite. I believe that the impact bias is very important to the psychology of human beings - while it may not actually be very important to the state of the world that you eat a pastrami sandwich today instead of a salad, it must mean something to you, or your life will end up seeming meaningless and insignificant. Gilbert focuses on the impact bias in the dual - that choices that we are given to make ourselves will eventually have an effect on our overall happiness. The experiments explained in the video show that, if a choice has been made, the user is more likely to be happy with that choice later, especially if the choice is an irreversible decision. In the talk he talks about simulated happiness and actual happiness, and that the mind is incredible at simulating happiness when placed in a situation where it did not come out for the better - some famous examples include people who are in jail for long times feeling that they are better for their incarceration after being released (or even while incarcerated). One important part which I think wasn't really touched upon by Gilbert was the fact that while the mind can produce synthetic happiness, in the long run the difference between synthetic and "real" happiness is actually rather small - over the long run all the happiness produced tends to even out, and the mind doesn't distinguish about really being happy or not. For a third point, it is a very interesting conclusion (and probably a significant jump) that most people strive to be happy overall, and most people succeed. This means that even though there are people in many different levels of happiness from an outside perspective, it is worthless to look at someone who is rich and happy and someone who is poor and happy and say that one must be happier than the other because they have more of the "real" and less of the synthetic happiness. Happiness is not a zero-sum game - everyone can be happy all of the time, and noone loses out. This may be an interesting ideal to reach for and may seem impossible to achieve considering all of the hate and rage which exists in the world today, but I believe that it is even possible yet - especially considering this "Happiness Bias" which seems to exist within everyone.

13 November 2007

Michael Janssen: How long until we have laptops with no moving parts?

Today I was reminded about a thought I was having earlier this year by a twitter from Garrick Van Buren about the new ultra-thin MacBooks. It seems altogether likely that the next laptop computer that I buy will have no moving parts. Currently the only moving parts in the MacBook that I have now are in the optical drive, the fan, and the hard drive. This is of course not counting the moving parts which I move myself - the buttons to actually interact with it and the lid. Apparently the optical drive in the laptop is going the way of the floppy drive in laptops, so there is only the fan for the CPU and the hard drive. Hard drives are also heading toward the realm of non-moving parts with solid state drives gaining acceptance and size. You can now get a 32GB solid state flash drive for pretty cheap, and they are sure to go in the direction all storage goes - faster, larger, and cheaper. That only leaves the fan which cools the CPU. It is not impossible to run a high-end computer without a fan nowadays, but unfortunately the heatsinks required in order to keep the most crucial part of the computer without burning up. The OLPC hardware is already in some ways the wave of the future - there are no moving parts at all. Unfortunately it is also completely underpowered and it's not possible to run a ton of programs on it. I'm not sure that a solid-state laptop for the general public will ever be possible with the general increase in computing power, but if it happens, I would bet it happens in the next 5 years.

People will be pointing out that the optical drive being missing is a new and novel concept and that Apple is pushing the boundaries of laptops, but they are hardly the first ones to ship a laptop without a optical drive. The world of sub notebooks have been taking out the optical drive in their smaller models for a while now. One model that I've seen around quite a bit is the Sony PictureBook which got quite a lot of press because it featured the Transmeta Crusoe chip. There are also a number of other sub notebooks which don't have a drive. However, I don't believe that the drives will be replaced by flash drives or network installs - there will always be a need for boot media for completely broken computers. The common solution in the sub notebook world is to just have a drive which attaches when it's needed, in the mode of the first drives. The solution which uses flash drives is not likely to happen anytime soon - software isn't getting any smaller, and the cost of flash media isn't falling quickly enough to catch up with the cost-effectiveness of pressing CDs.

5 September 2007

Michael Janssen: Other Twitter Bots that I use

Earlier this year I blogged about using the twitter bot for Remember the Milk. I still use it fairly well, even though the SMS messages from the RTM come late a bit. It's working for me in order to get a good chain going for the thesis proposal. There are a couple other bots that I'm using which are on twitter as well.

The first bot that I use is the bot at timer. The timer bot will let you set a timer (surprisingly). You only need to send it a direct message with the amount of minutes as well as a reminder for you about what it was set for. For example, if you want to remember to plug the meter before it runs out in 40 minutes, just twitter 'd timer 38 plug the meter' to timer and in 38 minutes it will inform you that your timer is up. You can have multiple timers running at once, which is useful if you are perhaps having tea at a coffee shop while you are parked on the street.

Another bot I use is the gcal. Gcal is a connection to your google calendar through twitter. You can set up new appointments by messaging the gcal bot with something like 'd gcal Pick up joe at 7pm' or 'd gcal set up web application for judy tomorrow' and it will
add it to your calendar. I use it in the morning to track my weight. I just pull out my phone while I am at the scale and SMS 'd gcal my weight is XXX', and it adds the event as a day event on the day it was sent.

The last bot I will go over today is the mymm bot. It is slightly more complicated but still useful. When you're at the pump, you can direct message mymm a little info and get back the MPG that you have done since the last fillup. It helps me keep a tab on how good or bad I'm driving, which is a good thing. The car we drive usually gets about 24 MPG, but I learned through this that when I'm carrying a bunch of crap in the back, the MPG drops 3-4, so it's better for me to have an empty trunk.

I'm sure there are a bunch of other useful bots out there (ququoo is one, which I may cover in another post), but these are the most useful that I've found so far. Twitter is turning out to be much more useful than just random status updates.

30 August 2007

Michael Janssen: In my own head consume, I sit down in my room

Lately I have been tasked with a lot of writing to do. I'm writing a chapter for a book on the field that my research is in, which is a good thing for me to get done, but I started it quite late. I had to finish a 9,000-12,000 word chapter in 2 weeks. Here's how I set it up:
  1. For the first week, write 2,000 words each day.
  2. For the second week, edit the words already written.
The first half of the schedule was easier than I thought it would be. In general, writing in my field doesn't usually happen that fast, but the subject is something I'm pretty versed in, so it was not too hard to get 2,000 words out. I had a clear defined goal for each day that once I met, I could feel okay about not working on the project for the rest of the day. I also only had to write 6 days, and I was able to take the seventh day off. Both of these combined made it a lot easier to not feel guilty about being behind. Editing is a bit more abstract and ongoing than the writing part, so it's hard to tell how well it's really going. There are some easy parts like fixing grammar and proofreading to make sure you don't repeat yourself, but there are also a good portion of hard parts as well, like which sections to cut a bunch of words in, and which word choice should be made in a particular spot. I'm at the point where some things NEED to be cut because the document is too long, so I have to make some hard choices. I also met with my advisor last week and we discussed my progress toward finishing my Ph. D. I had been thinking about this problem for a while now and was glad that it was also on his mind as well. We agreed that I would set the goal for having my orals done by the end of this year (christmas). I am thinking I will use a similar tactic to the chapter that I am writing, but on a much slower schedule, so next week I will start writing 500 words a day, and do that for a couple months. This will leave me with 30,000 words that I will then edit down by quite a bit, reducing it by almost half. Hopefully this will make the process easier as it has for the chapter. If writing my thesis proposal works well this way, I hope I can use a chunk of it for the final thesis, which I want to finish one year after my orals, putting me on track for graduating at the end of 2009. I'm looking forward to that.

20 August 2007

Michael Janssen: Things That I Wish Remember The Milk Had

A little bit ago I blogged about how I was using Remember The Milk in order to get some things done around the house and to remind me about stuff that I want to do. Things have been going pretty well on that account, I have been using it to great effect for basically everything that I need to do outside of things that I need to get done at Honeywell (I keep a separate todo list for there). However, when using it these past weeks, I have noticed a few things that I wish it would have or things that could be improved upon, I think in a big way.

I think the twitter interface should have some enhancements. For example, it is impossible currently to mark off an item that repeats through twitter, because you always have more than one of them on your list. I would love to do this with daily tasks so that I can mark them off as soon as I finish them with a few button presses on my cell phone. Also it would be nice to be able to add things to lists and not just the INBOX through twitter. Possibly another command starting with '!' that takes a keyword.

Remember the milk has as a major component the map of locations that items in a list can be placed at. There are a couple improvements that I would like in this area. The first is to have multiple locations that are all just as valid in order to complete the task. Remembering the Milk (the actual task) is a great example. There are literally hundreds of places that I could get milk, and two or three of them that I use regularly, depending on which one I am driving by at the moment. If you could place these three markets in a group of some sort, then they could all be associated with the item and you could see it on your mobile or however you're viewing the map.

The other map improvement is fairly simple - offer to give me directions from one place to another. I don't know how to drive to a random location I've just put in because it is where I need to drop my car or pick someone up or whatever, and a small link to a google maps directions would be nice. Even just a link to google maps (where I could then click on the "directions from..." link) would be a big improvement.

The last improvement that would be nice is to be able to click on the URL or visit the site in the URL field for tasks in some way. Currently the URL field is pretty useless as a URL, because there is no way to click it and actually visit the site. If I click on it, the editing field pops up and I have to do all the hard work myself of cutting and pasting the URL into the location field. It's also a mis-cue because the URL looks like a link before I click it, just like I could click on it as I want to. A keyboard shortcut for visiting the site would be nice as well since I do use the keyboard interface quite a bit.

These improvements I think would make a big difference to RTM users. The map improvements alone would be a big upgrade in my opinion. As for now, I will continue to use RTM whether these are implemented or not - it's a good way to keep an online list in any case. It's kept me writing blog posts at the rate of about once every two days. Not sure if that's a good thing or not yet..

18 August 2007

Michael Janssen: Got a camera rolling on your back

For the last few weeks, I've been trying to participate in Project 365. For those that don't know about it, it is the idea of taking one picture a day in order to accomplish.. something. I'm mainly just doing it for fun, and in order to improve my picture-taking skills with my camera phone. I have it walking around everywhere basically, so when I see something interesting, I try to have my phone at the ready. Some times I just take pictures of random stuff, but others are more interesting.

I've found that it's pretty useful for me. If you see the set, you can almost notice a perceptible increase in quality of the photos. It may just be because I'm taking 2-3 photos per day and choosing the best one, or I may be actually improving in my photo-taking abilities. Hopefully by the end of the year, the set of mine will actually have more than 300 photos in it.

The idea of taking a picture a day is quite interesting to me, if only because if you asked me what I was doing last year this time, I would probably give you a general idea because my life is basically boring - I work in an office, even when I'm at school. This way I might have some idea or get reminded.

I do have a couple of kinks that I would like to work out when I'm doing it though - when I download my photos through Bluetooth using my phone, it sets all of the creation dates to the time that I transfer the photos instead of the time that I took the photos. This means that I need to fiddle with the "taken on" date when I finish uploading the pictures - there's no way to use the Flickr Uploadr to set the date. This, and the horrible VGA camera that I have in the phone make it tempting for me to buy a new phone with a better camera and tools for transferring. Also, some days I just stay in, and don't do anything interesting, so I don't have anything interesting or different to take a picture of. I'm thinking of just taking a self-portrait on those days, but I'm not sure that it would be interesting enough.

13 August 2007

Michael Janssen: Don't you (dun dun dun da dun dun) forget about me

Recently I've been using Remember the Milk to remind me to do stuff. In the past I had used the service briefly on my search for an online GTD tool. I discarded it because it was too hard then to add new lists, which I had planned to use for each project. I also was turned off by it because I wasn't keen on requiring the Internet to work.

A couple of events has recently made this decision change. The first thing that happened was my addition of messaging to my cell phone plan. I did it mainly to interact with Twitter while I was on the road. It's something I never saw myself using before, but now that I am, it is really nifty and I can see why people use it from their phones.

However, with their recent introduction of a Twitter bot, it is now much more useful. The bot lets me add things to my Inbox list from anywhere, unchaining me from the Internet. All I have to do is text 'd rtm whatever' to twitter and it automatically adds a item to my inbox, which is where I keep everything I need to do. I have it setup as a template in my phone, so that I can even avoid typing the 'd rtm ' part. Remember The Milk also has notification settings for phones, so at the beginning of the day it will message me with the things due that day. Having it turned on reminds me to do most things, because I check my phone quite often, even though I don't get any calls.

I've stopped trying to use the lists for separate projects. I now use the Inbox as a main list, not caring how long it gets. I also have separate lists for categories of things that I'd like to do, but I don't care what order or when they get done. For example, I have a list for the pizza places that Diana and I might go to on our pizza place tour of the cities. I also have a list of cheaper and more expensive restaurants that we haven't been to, so when we want to go out to eat somewhere but can't decide where, we can just grab one off of the list. Remember the milk is particularly decent for lists like the two described because you can associate a geographical location with any element on a list, so I can see where the restaurants are instead of having to look them up.

There is one special list that I keep which isn't of the two types above - the projects list. This is the list of projects that I have committed myself to. It has one entry for each project, with a note on each entry explaining the past-tense result of the project. It is used in my weekly review, in order to populate the list if I have for some reason marked off a part of the project and not added a task for the next action in the project. I find that it keeps me honest because I can't mark off something from here until the past-tense description has actually come true.

Generally my workflow now goes like this. I add the task to my Inbox list either from the road or from the web interface. Then it gets moved to a special list if it is of a special class like the "Eating out" or "Pizza Places" lists. If it has more than three or four steps, I will put it on the project list instead and create a new task on the Inbox list that is doable and is the logical next action for the list. When I do something, it gets crossed off the list and then I go on to the next item. I know that if I don't have anything left to do on that day in remember the milk, I can just do random stuff from farther down on the list without a due date.

I've been doing this for a couple weeks now and its working out just fine. I was happy to have everything work out together so that I could use Twitter and Remember the milk, and I am being more productive than any other system that I've tried. This may just be an example of Using What Works. I thought I would share just in case it can help someone else find their workflow to get things done.

Comments: (1) Trackbacks: (0)

Comments
  1. ewtikins: Thank you for this! I will definitely look into it. I have been trying to figure out a way to use online list-making and todo-list facilities without being unable to edit when I'm away from internet for a while, and this sounds like it might just do the trick.
Trackbacks
  1. No Trackbacks

9 August 2007

Michael Janssen: UI Peeves: Locking, Proximity and Purpose

I have had, on occasion in the past, a reason to use the wonderful TortoiseSVN software. It is, by all standards, a really great solution for someone wanting to use SVN in a MS Windows environment, and uses the official svn client in order to leverage open source as much as possible. Recently I have been using it a bit more as I work at Honeywell as a programmer. I've come across a couple things that bug me about the interface.

The first is that some actions inexplicably lock the place that initiates that action. The best example I have of this is when I am looking at the window for an Update, and want to see what happened in the log, I click the button to open the log, and I can't use the window while the log downloads. Sometimes this can be an issue because the server is pretty slow at producing logs for some reason (it's beyond me, and NotMyProblem(tm) because I'm not in charge of the admin). This makes it irritating because I can't inspect other files while the log is downloading. Strangely, the server actually will return other requests quickly, like the request needed to see the diff between the working copy and the tree. It would be much better if the windows were separate - they're not related to each other in effect, so the locking of the initial window is completely useless. I could have called up the log from another action, that would leave the update window perfectly usable, so I know it's possible.

The second problem that I have run across more than once relates to the proximity of actions in the right click menu while committing a change. Take a look at the screenshot of this menu.
TortoiseSVN commit context menu

There have been many times when using this window that I realize that I forgot to add a file that I need to commit, so I right click on the file and move down to the "Add" menu item, only to miss and click on the "Delete" item. "Delete", when used on a unversioned file, performs a windows delete, causing me to curse at the (now missing) entry in the commit log and go running to the recycle bin to retrieve this temporarily lost file. These two options in the context menu are entirely too close to each other. The "Delete" and "Add" actions have completely opposite meanings and effects, and having the program do exactly the opposite of what you expect is what I consider to be a Very Bad Thing. I would move the "Add" action up to the top of the list (it is, by far, the most common reason for me to use the context menu), or at least place another menu item in between.

I'm feeling like I'm being very unhelpful here, complaining about these issues in an open source project and not producing a patch to fix these issues. I may produce one in the near future - unfortunately when I'm not at Honeywell, I don't really have a Windows development environment setup.

Comments: (1) Trackbacks: (0)

Comments
  1. JD: The reason diffs are quick is because svn keeps a copy of the original file in the checkout, so diffs and reverts don't need to hit the server.
Trackbacks
  1. No Trackbacks

6 July 2007

Michael Janssen: :

Well, the last day in Greece went swimmingly. It was mostly just relaxing, playing on the Internet, chatting with lovely Di, and working out logistics of taking a long flight back to the United States. The only strange thing about it is that I haven't slept since the last post, which is away from the norm. It's a kind of forced all-nighter caused by the bad scheduling that I made for myself. The flight from to Athens happened at 10:20pm in the evening. This was the latest flight that I could get and assure that I could get to the Athens airport in time for my 7:20 flight to Madrid, which connects through Chicago and back to Minneapolis at last.

I've spent a total of 10 days outside of the United States now, the longest time since I have been alive, according to my knowledge. It has caused some interesting results. I realized that I am inextricably connected to the people who I am familiar with in my life, and being without them decreases my mood significantly, and without contact to them decreases my mood sharply.

I am not alone in this fact. There are many studies that show that people who have more social connections lead happier lives. I am lucky in that I am technologically ept and can connect to my near and dear in a number of ways, and be resourceful in finding other ways to contact them if necessary. I feel that I am lucky to live in a time which it is possible for me to spend so much time apart and still be in connection with people. I am also lucky that I was born in a geological area which enables me to be as such.

At the same time, I am sad to leave this place. It is a nice area, with good food and a very long history. As Nikos reminded me the other day, it is the birthplace of Democracy, which I hold to a fairly high regard. It is also the birthplace of modern medicine, and a significant portion of many early sciences. The wealth of the nation as a whole and as parts is clear to me, and I wish to return.

I've learned part of the language while I am here, and it has made me more cognizant of communication with other cultures. People in Athens seemed put off when I tried to talk in Greek, but in Kos they were at the worst amused at my attempts. The language may not be as romantic to learn as French or Italian, and may not be as useful in the long term as Latin, but it would be interesting to speak nonetheless. I am tempted to start working on some of the i18n Greek QA issues in Debian -- It would help me learn the language more, and also keep me aware of the issues in software when you start working with other countries' characters. I have been lucky to be using a MacBook this entire time with decent Greek support, allowing me to type at least some greek while I was here. It helped me understand even more of the language - I now know mostly the numbers 1-9 at least.

The trip has highlighted for me something which is highly lacking in airports: power. Every airport that I have been to has prominently displayed the signs of wireless access, and has people using their laptops in almost every direction you can look (I am one of those), but they are sorely without power points for people who are using those laptops. This may be a designed flaw in order to save energy, but I don't really believe that 50 or even 5,000 laptops at 65-150W will put a significant dent in the power grid at somewhere as large as an airport, where LCD screens are running 24/7 with ads and bright lights illuminate every corner for all to be seen. I won't even start talking about the airplanes themselves.

All in all, the trip has been a happy one, and I would very much repeat it. I will make different decisions on lodging at some places and probably plan a shorter trip. I however wholly endorse Greece as a vacation spot, and even would consider moving here if offered a position (that would depend highly on Diana as well, obviously). I find it entirely favorable. I hope that this small series on the site has caused you, the reader some pleasure at least, even if it was at my expense.

Now begins the long trip home, on three planes and with 14.5 hours in the airplane and 18 hours in total. It'll be only 10 hours counting local time, unfortunately -- the jet lag will, I'm sure, be horrible.

Comments: (0) Trackbacks: (0)

Comments
  1. No comments
Trackbacks
  1. No Trackbacks

5 July 2007

Michael Janssen: :

Yesterday was pretty much a long day of preparation and presenting. The day started with no internet, possibly for the entire island of Kos, I wasn't really every that clear on the whole of it. Apparently there are 2 underwater lines coming to Kos island and both had been severed or put out of service by someone. This was a bad thing, because I had intended to finish some final experiments and do some statistics on results, and Excel wasn't working. I suspect it is because I hadn't installed the updating tool of Office 2004 for Mac. Anyway I could do what I needed to do with R or Gnumeric, but they were both not installed yet. No internet = no new applications.

I finished the experiments and data gathering and the internet came back on just in time for me to download Gnumeric and get some of the stats working correctly. The final presentation didn't change that much, only changing on one slide and adding one small table, but the added result was significant enough to justify all of the work that it entailed. Indeed, it proved that the entire premise of the paper and simulation was valid. That made me feel all warm and fuzzy inside.

The talk was at 3:30, the first in a session which was mostly unrelated papers. I don't feel as bad because many of the other papers were kind of a hodge-podge as well, and we were probably all placed in the session because we didn't really fit anywhere else. I met a nice researcher who was chairing the session because the actual chair was presenting in another session (something we had worked out with software in the ICRA2006 schedule, but apparently wasn't taken into account here). The actual presentation went well, and Nikos lent me his laser pointer which added a little to the presentation I believe. Nikos said the talk was good, but I also got a comment that it was well-presented later in the day from a unrelated researcher. I was so-so about the presentation until I got the unsolicited comment.

After the talk I called up Diana on Skype and chatted for a while, but the network was too flaky at the conference, so she called my cell phone. Using Skype is one of the things that I have done more in this trip than I have done before ever. It is really a wonderful program and network for people who are far away from each other, and it actually has much more impact when you consider the costs of calling home with other methods. I estimate I saved about $200 in just three days of Skype calling instead of regular calling, even with calling to cell phones in the US every once in a while, and with Diana calling my Hellenic cell phone when my network was flaky as well. It is much more of a disruptive technology in the non-US world where every call isn't already paid for.

The banquet was next. Usually I don't like going to banquets, but this was set up different than the normal ones that accompany these conferences. Instead of a large service crew bringing out fancy food to a large set of tables, it was setup in a buffet with a large selection of Greek food so you could pick and choose your favorites and even go back for more food if you liked. I ended up trying a large variety of foods and discovering some new tastes that I hadn't had before. It was throughly enjoyable especially when listening to the others at my table of which three or four were Greek.

Then it was back to the hotel by bus, and an early bedtime in order to stock up on sleep for the long hours in the next day. Today I plan on just relaxing, sleeping a bit when I get tired, and maybe trying out some local snacks. I've already arranged for a Taxi. The last installment will be written from the Athens airport tomorrow.

Comments: (0) Trackbacks: (0)

Comments
  1. No comments
Trackbacks
  1. No Trackbacks

16 June 2007

Remi Vanicat: How I use git

Michael Janssen ask about workflow and git, so I will explain mine. I have three types of git repositories: For the first ones, I work like this: For the second type, well, it is only one project, and I work like that: When I decide to commit my job into the main repository, I then rebase the topic branch I want to commit from local to master, and use git-snv dcommit to commit everything into subversion.
I then rebase the local branch, over the new master, and rebase the different topic branch over the new local one.
In-this project, I also from time to time do some real history rewriting, changing the order of the commit, transforming two commit into one, or breaking one commit into several part, this kind of stuff. for the rest, those project are for now so simple or young, that the problem of the work flow is not one I’ve already have

Michael Janssen: Ask the Interwebs #1

Lately I have been thinking about switching source code management systems. In years gone by, I have used CVS, Subversion, arch, and most recently bazaar-ng for managing all the source code that I have to change. Lately I have been unhappy with the speed that bazaar takes to get some things done, and after watching a Google talk by Linus about Git, I thought I would give it a look.

I was surprised to find out that it actually models the way that I work normally slightly better than the bazaar model does. The main thing is that a repository holds a bunch of branches, but the working directory only has one of those branches checked out at any point in time. I use bazaar with about 4-5 branches per project, and only work on one of them at once (normally, sometimes I want to transport a bug across a couple branches) - so the "working space replaced by branch you want to work on" actually works out OK for me. I also need to collaborate with a bunch of projects at school and work that use other systems including CVS and Subversion, which Git seems to make it easy to do.

I did run into some questions that I don't really have a good answer to, however, therefore the new segment on the blog: Ask the interwebs. Normally I would just ask on some IRC channel, but the Minneapolis public library doesn't seem to allow anything but HTTP out. On to the question!

When using Git, how do you manage having multiple computers (at multiple locations) that you work on? I have approximately 5 different computers that I use regularly. Luckily I have enough space to have git installed on all of them, and I also have a web server that I can use WebDAV on if necessary. What I would like to have is a repository that I can pull from before I start work (if I am connected) and then push to when I finish so that the next computer I sit down at I can just pull again and get everyting. I would like this to include any branches I may have made on the first computer. Is this possible, hard, or easy for Git users? How much do I need to worry about slowdown? My WebDAV server is in the cloud, and I would prefer to be able to get up and go on say, a minute's notice.

I'm also interested on what your workflow is like even if it doesn't match the model I just described. I'm open to changing - the bazaar-ng to git change is big enough that I can probably incorporate a new workflow as well.

Comments: (8) Trackbacks: (1)

Comments
  1. adrian: hi, i'm a just a newbie so can't help much.
    You can host your push repository in http://repo.or.cz.
    If you prefer to do it your own you have git-daemon (Have a look to tutorials). Good luck!
  2. Michael Janssen: I looked at the public repo.or.cz, but decided against it, because while I want my branches to be available at some point, I'd rather not all of them at the same time. People randomly finding them is okay, but I'm sure I'll check in unworkable/uncompilable code in this state, because I would basically be using git as an easy sync between computers at times.

    I'm just really interested in how other people deal with this issue of needing semi-location-independent access to the branches.
  3. mike: Sounds already good for you to use git.

    Enjoy!
  4. R mi Vanicat: I haven't answer to the synchronization problem on my blog post because it is one I don't have. Still, you can make a git repository that can be pull and push from, and git can use https/dav or ssh or its on git protocol for this.

    Just read man git-remote, man git-push, man git-pull and man git
  5. JM Ibanez: Just upload a bare git repository (e.g. copy /.git in particular) to a server you have ssh access to. Then, in your working copy in git 1.5:

    <br />
      $ git remote add upstream git+ssh:///path/to/bare/git<br />
     


    You can then

    <br />
      $ git pull upstream .<br />
     


    or
    <br />
      $ git pull upstream/some-upstream-branch my-local-branch<br />
     


    or
    <br />
      $ git push upstream/some-upstream-branch<br />
     
  6. Josh Triplett: A followup to that: you can do the same thing without ssh access, by using WebDAV. See Documentation/howto/setup-git-server-over-http.txt in the Git source (also available various other places in other formats).
  7. Steven Walter: Whenever I want to create a non-local git repository for push, whether for sharing the code or just backing it up on another system, I follow this procedure:

    ssh remoteserver
    mkdir myproject.git
    cd myproject.git
    git --bare init --shared=all # world readable, group writeable
    chgrp -R git .
    vi description
    exit
    # back on local system
    git remote add origin git+ssh://remoteserver/path/to/git
    git push origin master:master
    git push origin branch2:branch2 # repeat for other branches

    You may then want to re-create your local branches so that they "track" the remote branches. "man git-branch" for more details on this.

    Hope that helps!
  8. brian m. carlson: For your workflow, you can try this:
    [geshi lang=sh]
    # first time on each machine only (you can use DAV, too)
    git remote add server git+ssh://server-hostname/path/project.git

    # every time
    git push server
    ssh anothermachine
    git fetch server
    git pull server branch-on-server-to-merge-from
    # merge happens; continue working
    # start over again from the push
    [/lang]
Trackbacks
  1. How I use git
    Michael Janssen ask about workflow and git, so I will explain mine. I have three types of git repositories: git-svn repositories where I don’t have write access on the upstream subversion repositories. git-svn repositories where I do have write ...

2 May 2007

Michael Janssen: MPAA claims they own this number.

I can write a program that counts up to 13256278887989457651018865901401704640, but apparently that would be illegal, because whoever owns HD-DVD claims they own the number. Perhaps the DMCA has gone too far when numbers are copyrightable?

10 January 2007

Michael Janssen: Steve Jobs sets insane goals..

..or he's not telling us something. If the multi-year exclusive agreement is true, then the goals are probably unachievable. In the keynote yesterday, Jobs put out there that almost a billion phones are sold each year to consumers. Granted, most of these are regular phones without the whiz-bang and special features of the iPhone -- and are usually free to the consumer, subsidized by the contract agreements. Still, he set what most would consider a modest goal, of getting 1% of the cell phone sales - 10 million phones, by the end of 2008.

However, lets do some napkin math. A very small percentage of phones out there today are smart phones. C Net says that 37.4 million smart phones out there. This is probably a pretty conservative estimate by now -- the Gartner study was released in October. Let's give the smart phone people the benefit of the doubt and say that usage triples by the end of 2008. That makes about 100 million smart phones out there. 10 million is ten percent of that market.

Let's look at the math another way. Cingular has 58 million subscribers. Assuming that they gain 20% per year, they will have 68 million at the end of 2008. If Apple is aiming at 10 million phones, that is one out of every seven Cingular customers. Next time you walk down the street, notice count 7 people that you can notice have a phone. If Apple makes its goal, one of those 7 people will own a iPhone, and will have shelled out at least half a grand on it.

These are amazingly high goals for a company that is new in the market. Granted, the iPhone is pretty revolutionary, but I don't think Steve is that crazy. I'm betting that he has something up his sleeve that will help him meet or beat this 10 million goal.

Michael Janssen: Why the iPhone is the next iPod.

It's not the reason that you think. Sure, it includes a bunch of iPod functionality, but that's not what I'm referring to. Not the least of which is, absolutely everyone is talking about this device. I haven't seen this much buzz over a device in a long time.

Buzz is definitely nice, and warranted, but that's not why either. Back in the day when the iPod was released, everyone thought that it was going to flop - because it had a hard drive, and almost all of the players at the time were using flash. The iPod changed the mp3 player from a device that had a tiny screen that you could display maybe 2 lines of text (if you were lucky), and that you needed a course in computers to use, to a high-resolution screen, easy to use device. Nothing else at the time was even close. It succeeded because of it's complete rethinking of the user interface, and that is why the iPhone is the next iPod. This got pretty long, so I'm cutting it. (Sorry, people who hate clicking!)
Continue reading "Why the iPhone is the next iPod."

9 January 2007

Michael Janssen: Learned Bad Ideas

There are some things that I have learned over the years as bad practice. There are some that I have learned through reading and contemplation, and a little experimentation. One of the categories of bad things that I have learned is visual aids for statistics. There is basically one cardinal rule for data presented in a graphical form:
Let the user see the actual data.
It seems kindof obvious, doesn't it? I'm presenting data, you should be able to see it. If you want to show me that there are 450 widgets, and 230 whazits, and only 210 whositz, then you should show those. The simplest way of doing this is by just listing them out in a table:
TypeAmount
Widgets450
Whazits230
Whositz210
That's simple, isn't it? However, it doesn't help the viewer any. They're pretty good if you want to know exactly how many of something there is, but not great at other things that you want to do with data. How do you find the minimum (or maximum) of all of the values? You scan, remembering the highest one you saw so far, and then go back to that one and find out. If the goal is to somehow compare, the viewer will be helped out by using a graphical display of some sort. One thing that humans are good at estimating is length. Quick, tell me what we have the least of: Bar graph.  If you're reading this with a text-only browser, this post won't be as interesting. Sorry, lesser-sighted folks.
That was easy, wasn't it. Bar charts are good - they can still be abused by people in evil ways, but most of the time they're pretty useful.

All of this is working up to pie charts. What's smaller, Whazits or Whositz here:
Pie graph.  Text-only people can breathe easy, they can't see the evil.
Is Widgets half or more than half of the pie? Pie charts are the bad seed of the graph world. They aren't very useful, hang out a lot, and don't help you much. The worst thing about pie charts is that they aren't even good at the thing they're supposed to be the best at: comparing relative sizes. Consider thanksgiving, or christmas, or whatever large gathering you prefer where there is pie. Lots of pie slices are laid out on the table. Which one is the biggest? It's hard to tell. It's even hard to cut even slices from a normal pie. Sure, you can cut in 4ths, 6ths, or 8ths, but I challenge you to cut a pie in 5 pieces equally - it's really hard! It's because humans aren't great at judging the differences between angles. They're only really good for seeing one thing: the largest piece in the pie. Even then, it's sometimes questionable - if you looked at a evenly sliced pie, could you tell the difference between a 23% piece from a 20% piece? The bad thing about this is that they are ingrained into our culture. There wasn't a finance report in the last 10 years without a pie chart.

All of this ranting was basically brought to you by a recent post on BoingBoing. This post features the most horrible monstrosity I have seen in a long time: the hierarchial pie chart. Feast your eyes on this monstrosity. I challenge any reader to tell me: what is the smallest third-level category? What is the largest?

6 January 2007

Michael Janssen: Apparently, I'm flexible.

You scored as Either. You brain is neither specifically male, nor female in the way you perceive your surroundings. As bad as this may sound to some, it can easily mean that you are capable of combining both gender aspects to your advantage. Rather than being genderless you are possibly able think freely. This does not mean that you are bisexual or androgynous or indecisive, but it might.

Either
64%
Male
57%
Female
43%
Neither
18%

Should you be MALE or FEMALE?*
created with QuizFarm.com

This quiz was blissfully short. I've seen ones at quizfarm go hundreds long. I love the "this does not mean xxxx, but it might" complete cop-out.

5 January 2007

Michael Janssen: Setup will complete in approximately: 39 minutes

Hardware evils

I've had quite the unfortunate week, hardware-wise, here. Nothing on my end is broken, but [lj user=ceilingsarecool]'s computer is screwed but good. It all started near the beginning of this week when I started to look into her machine. It had been loud for a while, and was being unreliable in regards to applications. Running memtest86+ on it via a handy System Rescue CD I always keep around discovered a couple of stuck bits on the memory that otherwise had been perfectly fine. However, I have had sticks die before, so I called Crucial and am having the memory replaced. (thank you Lifetime warranty). While I was taking the Memory out I noticed the couse of the loudness. Apparently there was ailing fan on the south bridge, which explained her issues with USB-connected devices. No problem - I'll just order a replacement motherboard. The old FIC AD11 was getting pretty bad anyway.

The new motherboard (a PCCHIPS M810LMR) arrived yesterday, so I went through the lengthy process of removing the old motherboard and moving the CPU from one to another. Just one problem: the new motherboard didn't start up. After checking that I had everything connected right, I thought the board was DOA. This would be my first DOA ever, but as usual the place I bought from has a DOA replacement policy so I thought I just wasted 2 hours and a bunch of time replacing. Unfortunately, this isn't even the end of this sad tale of brokenness. When I put the CPU back in the old motherboard, it didn't start either. So now I'm left with two motherboards for a processor that doesn't work, I assume. I don't really have another one that I can test it out on, and I can't test the motherboards with another CPU because I don't have one.

Luckily, I have some old towers sitting here that were about to be dragged out to the dumpster. I rescued them. They're ancient, even more than the machine that was in use was. I had to burn a Maxtor MaxBlast4 CD just to get them past the 65GB barrier, and of course I need to do a "repair" install of Windows because all the hardware changed since I installed it.

Lesson of this tale: Almost-broken computers are a delicate ecosystem. Just buy a new computer - you'll have to do that in the longrun anyway. Currently I'm looking at replacing the mainboard and CPU with this combo from newegg. It's got mixed reviews, but is reasonably priced, and if DOA I am sure that newegg will replace it. I'm debating between doing this and just saving up to get a decent new motherboard and CPU (generally around $150-$250, $300 easily with new memory) later in the year. I feel pretty bad because every computer that I've given [info]ceilingsarecool to use has had issues like this. She tells me that she doesn't really care that much, and she does have a laptop which works well when the desktop has issues like this, but it's still like a poison apple.

Windows XP Setup

It doesn't seem to matter what you are installing Windows XP on. It can be 500MHz or 1.2GHz or 3.0GHz, the first time estimate that you get for finishing the install is 39 minutes. When XP was first released, I never ever had a computer that would finish that fast - it consistently took an hour or more from that state, and then I jumped to fast computers that come under the mark most of the time (although not by much). At least the estimate is monotonic, not going up to an hour. I can at least assess the progress a little more. Installing a couple times in the last few weeks has got me wondering about the origin of that estimate, and if it was going to be so inaccurate as to just guess and be constant at the beginning of the install, why include a time estimate at all?

1 December 2006

Michael Janssen: These are just a couple of my cravings

Food has always been a source of contention for me when I am trying to lose weight. I never want to restrict the types of food - I've spent a long time working out what I like and dislike. One of the benefits of the Hacker's Diet isn't all that concerned with what food you eat, but simply that you get a certain amount of calories, it gives you a lot of choices for dining. The first time I was on it, I used ramen and rice to keep me fed. Those worked well because I was basically broke and the rice filled up the stomach just fine.

There are a lot of diets out there, and it's easy to try one or the other just to get completely fed up with the lack of diet-allowed food that you actually like to eat. I believe that this is a major reason that most diets fail, and why there are so many of them - after all, Atkins might work great for the people who don't have a jonesing for a bunch of fries every once in a while. If you're looking for a diet right now, think about the kinds of foods that you won't be willing to give up. There are diets out there for every type of favorite food nowadays, just walk down the fitness and health section of your local bookstore. I'm convinced that the final word is going to be a calorie deficiency. After all, what is dieting but controlled starvation?

This time dieting has been slightly different, but not very much. I've been trying to buy pre-packaged food more than normal, because it's easy to find calorie counts for them - right on the box. Lately I've been eating some TV-dinner like things, which clock in at about 400 calories a piece. This means that I'm eating 4-5 of them a day, which is like an extra bonus because eating more smaller meals is supposed to help keep the metabolism up. The maxx market economy of these meals is amazing - you can easily get 7-8 for $10, making my daily expense very low. They are also not completely horrible for you - most have some vegetables and protein and starch of some sort. There is also a decent variety, so it's hard to get bored of the same old stuff. I've also switched some of the eating out to a more healthy fast food sub place, which has the extra bonus of also being cheaper.

This Week (Nov 24 - Nov 30):
Minimum: 334.0 (-1.0) (Nov 29)
Maximum: 337.0 (-2.0) (Nov 26)
Average: 335.0 (-1.8) (135.0 to goal)
Exercise Calories: 3172 on 6 days
Average Calories per session: 528.9

24 November 2006

Michael Janssen: She keeps a picture of me

This is a picture of me before I started this whole diet watching and exercising regimen. Hopefully I will be able to take regular pictures that can document my progress. This is one thing which I don't plan on doing very regularly, maybe every two or three months. Pictures have been known to be a great motivator to people on diets - they remind people how they used to look, and more importantly point out how far they have gone so far. Usually the most dramatic change is seen in the picture, even if you don't see much movement on the scale. The picture is so powerful that it is usually used alongside actual insane weight loss claims in TV commercials. Anyway, this is how I looked when I started this whole thing.

As this week's entry falls on turkey day, it may be interesting to note something which has been at the back of my mind during these “special” days in which you are urged by almost every sane diet plan to just forget the plan on that day. Many websites say that cheating on your diet may actually be good for you in the long run. While some emphasize the psychological aspects of having a day off, others actually cite scientific reasoning involving a hormone called Leptin. At any rate, the line between cheating and giving your diet a little boost is getting quite a bit blurred. So on this turkey day and days after, don't feel like you have to work out extra hard just because you're eating more.

This week I started using a new diet tracking site. This one is more closely in line with the method I used before. It's Physics Diet, and is basically an online notebook like you would keep if you were on the hacker's diet. This also calculates some more stuff that would be a little complicated to keep track of yourself, like Total Energy Expended (calories). It also has a nice CSV export which still allows me to give all of you your weekly stats. I've continued with the watching of anime while I am exercising, but am supplementing it with some podcasts and some episodes of a BBC show called QI or Quite Interesting. There is a downside to watching QI while exercising: I am laughing so hard sometimes I need to re-concentrate on the exercise so that I don't fall over. I'm sure it's not a bad thing for my calories expended in total.

This Week (Nov 17 - Nov 23):
Minimum: 335.0 (-0.5) (Nov 22)
Maximum: 339.0 (-0.5) (Nov 17)
Average: 336.8 (-0.4) (136.8 to goal)
Exercise Calories: 2719 on 6 days
Average Calories per session: 453.1

Next.