hash_bucket()

Archive for the ‘Programming / Technology’ Category

It’s been quiet here for so long… When I look back at the posts, the fact that just the first page covers as much as 7 years is truly… humbling.

I was thinking about writing a post about the events of the past 7 years, but seriously who really wants to read about that? :) Better to look ahead.

I’ve just built a new gaming rig for the family, my first PC build in over 8 years. This woke again in me the desire to code more, and I’ve been dipping my toes back in .net over the past month or so. With that, I’ve decided to get serious (within hobby limits) about building out a tool to help S monitor her sickness and flares. Who knows, maybe it will turn into something I can release to a wider audience in the future…

For now, that’s it.

Advertisements

Getting the following error when you deploy your first asp.net 4.0 website:

Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive.

is most likely because of either of 2 reasons:

1. You installed the .net 4.0 bits after IIS was set up, resulting in the wrong version of the .NET framework beeing registered with IIS.

Most often the above results in conflicting versions of the framework, and so the easiest way of solving this is to re-register the .NET extensions with IIS using the aspnet_regiss tool. Make sure you run it from an elevated command prompt and that you use the correct version (in the v4.xx folder that is, not the v2.xx one). On my dev machine this tool is located in:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319

and you run it with the -iru flags like so:

aspnet_regiis.exe -iru

2. You haven’t set the framework of the IIS application to the correct version of .NET (4.0 that is)

Change this using either the IIS Manager or the command line. In IIS Manager you select ‘Application Pools’, click the Application you’ve pointed you site to use, select ‘Basic Settings’ in the ‘Actions’ pane and change the ‘.NET framework version’.

This post over at MSDN should also be of great help. Gotta love Microsoft’s documentation!

http://msdn.microsoft.com/en-us/library/dd483478(VS.100).aspx

Installing Ruby / Gems (/ Rails) from the Debian packages is very convenient and nice, but the versions are old. If you want to stay on top of things, naturally you will want to install from source, but many who do run into the error below, when trying to install / update gems after a fresh install.

$ gem update --system
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:1:in \
        `require': no such file to load -- zlib (LoadError)

The cause for this and a remedy has been suggested in the following thread (Bug#1090):

http://redmine.ruby-lang.org/issues/show/1090

Not sure if I agree with the thread that this is a bug because ruby doesn’t complain loud enough about the missing zlibs, but here’s the concise solution anyway:

Essentially, unless you first install the zlib packages ruby will build without them, so this is the first step:

apt-get install zlib1g zlib1g-dev zlibc libzlib-ruby

next, when you ./configure ruby, add the –prefix =/usr/local

$ cd 'your ruby source dir'
$ ./configure --prefix=/usr/local

next make, make test, make install and you should be able to

$ gem update --system

without problems.

眠いのに眠れない。。。
仕事後ちょっと片付けて、そしてちょっとだけルビーで遊ぼう。。。

新しい言語を覚える時はやっぱりどうしても夢中になってしまいますね。。。。

 

昔(本当に昔)は仕事関係でよくPerlを使っていたが、それはもう全然覚えていない。ソースを読むのは問題ないが、書くのは無理だね。ま、だからこそルビーが楽しいかもしれません?

言語

Posted on: November 25, 2009

ソフト開発プロジェクトの設計段階には色々な資料が必要になりますが、こういう資料を作成する時いつも迷います。何で迷うかといいますと、言語を選ぶ時点です。設計書、要件定義書、アーキテクチャの図などを書く時、どうしても英語が使いやすくて、しかもソフトの開発に使われている用語はほぼ英語が世界共通となっているからです。また、日本語で書いてしまうと、基本的に日本国内しか共有出来ないことになるのももったいない気がします。

一方、英語で書いてしまうと英語の苦手な人には不親切、勘違いやコミュニケーションミスが増えることはよくあると思います。

文書で書かれる資料は日本語で書くべきが、個人的には図や機能の定義書の機能名などは英語がベストだと思います。。。

Ruby

Posted on: November 24, 2009

最近、Rubyの勉強初めています。。。色々やっぱり比べてしまいますね。C#、C++、Perlとか。自分は昔いPerlマニアックの時期があったけど、それも知らないうちに10年以上前になっちゃった。

ま、Rubyに関して、第一印象からいうと、ライブラリとか、ばらまくコードを書くのは大変そう。。。

でも久しぶりに新しい言語を学ぶのは楽しい。やはり言語はどうしても大好き。。。

From the BBC:

Mr Gonzales used a complicated technique known as an “SQL injection attack” to penetrate networks’ firewalls and steal information, the US Department of Justice said.

oo those evil haxx0rsz with their complicated techniques!! for +++ sake people sanitize your SQL!!!

http://news.bbc.co.uk/2/hi/americas/8206305.stm

Reminds me of this excellent xkcd:

http://xkcd.com/323/


.

This blog has no clear focus. It has a focus though, it's just not very clear at the moment...

Dev Env.

Visual Studio 2008 Prof / NUnit / Gallio / csUnit / STools (ExactMagic) / doxygen / dxCore / TypeMock / TestDriven.net / SequenceViz / CLRProfiler / Snoop / Reflector / Mole / FxCop / Subversion / TortoiseSVN / SlikSVN / CruiseControl.net / msbuild / nant

Blog Stats

  • 81,435 hits