RSS
Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

開発:Project 偽ななし(仮)

最近もらった新しいMacのお祝いとして、むかし使っていた偽リンゴ/偽林檎を導入してみると、全く動かなかった。なんとSnow Leopard以降のOSには対応できないようだ。

もう一つ手として、Unix系のninix-ayaを導入してみた。本体をinstallされたら、後はmacportsでpygtkを導入。すると、大好きな「お姉さま」がやっと挨拶に言ってきた!

さすがUnix系!最新のLionにでもちゃんと対応できるじゃないか!…と思っていると、いきなり落ちた。

そして、いろいろな機能をテストした結果、不具合ことはよくある。お話ししたいときも、Xを使えているため日本語の入力さえできないから無理。残念ながら、使えないと思うほうがいい。

ここまでLionでちゃんと動ける伺かがなしってことだけわかった。偽リンゴのコードを調べてみたら、Javaとはいえ実はJava-Cocoa Bridgeってものを使っている。それはSnow Leopard以降のOSには全く対応できないので修正したくても無理。

やはりObjective-CでNativeな伺かを開発しないと駄目だ。そのためにまずObjective-Cを勉強する必要があるって訳で、今はちょっと忙しいから、これから暇があればちゃんと開発作業でもしようと真剣に考えている。

仮のProjectだけど、とりあえず「偽ななし」の名を付けてしよう。

 


Making PDF booklet from images [Mac OS X]

iTunes has an amazing feature to attach PDF files as album booklets. By specifying the tag of imported pdf to the corresponding album, you can then view the booklet directly within iTunes. But sometimes I get a number of images instead of a stand-alone PDF booklet, so what then?

In fact, under Mac OS X, you can use the built-in all-round software Automator to do that right thing. You can download the following workflow and place it into directory ~/Library/Workflows/Applications/Finder/. To use it, just select all the images that should be included in the booklet, and then choose "More">"Automator">"Make Booklet". The resulting PDF booklet will soon appear on your desktop.

Download

Rather, assuming you are familiar with Automator, you can also do it manually by yourself or even make some necessary alteration. Just build a workflow with Automator as following:



To make it work within Finder, just save it as a Finder plugin under "File" menu.

This method is a modified version of the one posted here. Many thanks to Jerry Stratton!

True Randomness: Does It Exist At All?

These days I found a website providing service to generate random numbers. What I actually need was a randomized sequence generator, which I was about to use for my user study purpose. However, I was shocked by a statement of the website saying: "In reality, most random numbers used in computer programs are pseudo-random, which means they are a generated in a predictable fashion using a mathematical formula. This is fine for many purposes, but it may not be random in the way you expect if you're used to dice rolls and lottery drawings."

It's interesting to think about what we are expecting about our random numbers. Although we all know the computer programs generated random numbers are pseudo-random, what kind of numbers are true-random? How can we generate them and distinguish them from those pseudo ones?

What they offered is a TRUE random number generator which shown below. They do that by recording and interpreting atmospheric noise with several radios.



However, how can we prove the generated numbers are truly random? It's a rather difficult question then you might have imagined, in fact, it's impossible to prove randomness definitively. A visual analysis approach can be found from that website, which visualize the generated numbers into image and decide their randomness with human eyes. Besides, you can find some other methods from the same page.

Meanwhile, though most random number generator program are actually pseudo-random, it's not always possible to predict the generated numbers. Most of these programs rely on 2 points: the generating formulae, and an initial number (seed). In most of cases, the system time is used as seed. Thus, in order to predict the resulting numbers of a specific program whose algorithm is already known, we'll have to know the time when it generated them as well, which could be difficult to determine. In this way, pseudo-random number generator can obtain some true randomness by involving the randomness from the physical world, which is also exactly what the true random number generators do.

But, since we can't prove a truly randomness, it's also impossible to say the numbers genererated in that way is truly random or not. After all, how can we prove the randomness of the world, while the world itself could be deterministic? How can we say the atmospheric noise is definitely random?

We don't have to. What's the problem of those pseudo-random number generators? Simply because patterns can be spotted in the results, which made them predictable to some extent. Nevertheless, what we really need is unpredictability, rather then true randomness. Regarding to the theory about deterministic universe, it's even hard to say the true randomness ever exist at all.

JPSM: Java PSP Savedata Manager

JPSM aims to be a platform independent PSP savadata manager. It had been tested against Mac OS X 10.5 on a Intel Mac and Microsoft Windows XP currently, and should be able to work on any platform with JDK 1.5+ installed. The PSP firmware version 3.71 M33-4 and 5.00 M33-6 had been tested.

At the moment, it is only able to do a very limited job: show information of save data, and copy from/to a PSP. New features and interface will be added to later release. The whole project will be released under GPL when come to release 1.2.



Download
Version 1.1 (build 27 Oct 2009)
Platform independent zip
Mac OS X specified zip (dmg.zip)

If you have any problems, feel free to contact me.

The method for dealing with the Sony's sfo file is inspired with
yet another PlayStationPortable Documentation