Skip to main content

23 posts tagged with "whereq"

View All Tags

WhereQ-DOSBox 1.0.0.8:保存整台机器,让「继续」真的能继续

· 8 min read
WhereQ-DOSBoxWhereQ-DOSBox

一个会骗人的按钮​

两个版本之前,我给启动器加了一个 Resume 按钮。它看上去就是个承诺:按一下,回到你刚才在玩的那局游戏。

结果不是。它每次都把上一款游戏从头开始。

我自己一直没发现,因为我桌上的模拟器进程还活着——游戏其实从没停过,自然也就没什么好「恢复」的。后来有位用户在手机上按了那个按钮,丢掉了一个小时的进度,直截了当地告诉我:你这个 Resume 其实是重开。

他没说错。而修它并不是改一行代码就行的——要做的是给整台机器拍一张快照。

WhereQ-DOSBox 1.0.0.8: save the whole machine, and a Resume button that resumes

· 8 min read
WhereQ-DOSBoxWhereQ-DOSBox

The button that lied​

Two releases ago I gave the launcher a Resume button. It looked like a promise: press it, and you are back in the game you were playing.

It was not. It started the last game from the beginning, every time.

I did not notice it myself, because on my desk the emulator process was still alive — the game had never really stopped, so there was nothing to resume. Then somebody on a phone pressed the button, lost an hour of progress, and told me plainly: the Resume button restarts the game.

They were right, and the fix was not a one-liner. It took a whole-machine snapshot.

WhereQ-DOSBox 1.0.0.9:把键盘改造成掌机

· 9 min read
WhereQ-DOSBoxWhereQ-DOSBox

一个戴着键盘外形的妥协​

DOS 的画面是 4:3,手机横过来是 20:9。多出来的那部分就是左右两条黑边,前两个版本里,键盘就住在那两条黑边上。

那两条黑边并不算糟。方向键排成真键盘上的倒 T 形,修饰键和编辑键在另一侧,画面占住了整个屏幕中间。用起来是没问题的。

但对一个想模拟的东西来说,那是错的形状。DOS 游戏是左手拇指管方向、右手拇指管按键的,而这些键全都不在拇指习惯待的地方。

WhereQ-DOSBox 1.0.0.9: the keyboard becomes a handheld console

· 9 min read
WhereQ-DOSBoxWhereQ-DOSBox

A compromise, wearing the shape of a keyboard​

The DOS picture is 4:3. A phone in landscape is 20:9. The difference is two black bars, one on each side of the picture, and for two releases those bars were where the keys lived.

They were not bad bars. The arrows went into the inverted T of a real keyboard, the modifiers and the editing keys into the other side, and the picture kept the whole middle of the screen. It worked.

It was also the wrong shape for the thing it was standing in for. A DOS game is played with the left thumb on the arrows and the right thumb on the keys, and every one of those keys was a long way from where a thumb expects it.

WhereQ-DOSBox 1.0.0.7:跑自己的 DOS 游戏、真正的 JIT,以及一个塞得进手机的启动器

· 10 min read
WhereQ-DOSBoxWhereQ-DOSBox

模拟器是最简单的那一环​

昨天,我把 WhereQ-DOSBox 放到了外面——DOSBox 的原生 Android 移植版,模拟器核心以真正的 libdosbox.so 跑在 APK 里面。

那篇发布公告许下了一个愿:你自己的 DOS 游戏,跑在你口袋里那台真正的机器上。

这种愿望,要是只做到“能启动、能看到 C:\> 提示符”,很便宜。可一旦有人真的拿去用,模拟器反而成了整个问题里最小的一块。

所以从 v1.0.0.2 到 v1.0.0.7,这六个版本真正修掉的东西,是这些。

WhereQ-DOSBox 1.0.0.7: your own DOS games, a real JIT, and a launcher that fits on a phone

· 10 min read
WhereQ-DOSBoxWhereQ-DOSBox

The emulator was the easy part​

Yesterday I put WhereQ-DOSBox out into the world: a native Android port of DOSBox, the emulator core running as a real libdosbox.so inside an APK.

The announcement made a promise: your own DOS games, on the actual machine in your pocket.

A promise like that is cheap to make with an emulator that boots to a C:\> prompt. It gets expensive the moment someone tries to actually use it — because then the emulator is the smallest part of the problem.

So here is what six releases, v1.0.0.2 through v1.0.0.7, actually fixed.

财经今日 开源了:界面、它读的库表结构,以及中间的 API

· 8 min read
财经今日 · CaiJing Today财经今日 · CaiJing Today

一个交易日,是六个标签页​

九点二十五,集合竞价结束。九点半,开盘。从这一刻起,接下来四个小时, 市场一直在说话:一次公开市场操作、一个期货点位、一个指数点位、一份征求意见 稿、一份公司公告,再加上一篇分析——而这两者到底差在哪。

这些消息都是真的,也都真实存在。只是它们不在同一个地方。

于是你打开六个标签页:行情快讯、指数页面、板块热力图、日历、公告检索、还有 一个论坛。它们各自的版式、配色、关注点都不一样,而且大多是为别人的问题而 做的。

CaiJing Today is open source — the board, the schema it reads, and the API in between

· 9 min read
CaiJing Today · 财经今日CaiJing Today · 财经今日

A market day is a lot of tabs​

At 09:25 the call auction ends. At 09:30 the tape starts, and for the next four hours the Chinese market talks continuously — a central-bank operation, a futures point, an index level, a draft regulation, a company filing, an analyst note about the difference between two of them.

All of it is real, and all of it is somewhere. But it is not in the same place.

So you end up with six tabs open — a wire service, a quote page, a sector heatmap, a calendar, a filing index, a forum — and the tab bar quietly becomes the product. Every one of them is a different layout, a different colour scheme, a different idea of what matters, and most of them are built for somebody else's question.

WhereQ-DOSBox:把 DOS 年代带回手机

· 8 min read
WhereQ-DOSBoxWhereQ-DOSBox

角落里那台机器​

我记得的,是风扇的声音。

不是游戏,不是跟软驱较劲的那几个晚上——是风扇。一台米色的主机蹲在父母客厅的角落,风扇转起来像是它正在想什么事情;旁边是一台带点偏绿、微微凸起的 CRT 显示器,那在当时,已经是一扇窗。

那台机器开着的时候,整个房间的温度都不一样。它是家里最吵的东西,而它属于我。

然后,是那个闪烁的光标。

C:\>

这个提示符像是一句邀请。它不自作解释,它只是等着。如果你愿意学它的语言——cd、dir、copy、mkdir——它就会老老实实照你说的做。那是我第一次觉得,电脑是一件工具,而不只是一个用来消费的家电。

WhereQ-DOSBox: bringing the DOS era back to your phone

· 8 min read
WhereQ-DOSBoxWhereQ-DOSBox

The machine in the corner of the room​

I remember the fan first.

Not the games, not the arguments with the diskette drive — the fan. A beige tower in the corner of my parents' living room, its fan whirring like it was thinking about something, and a green-ish CRT screen that was somehow a window. When that machine was on, the whole room changed temperature. It was the loudest thing in the house, and it was mine.

Then came the blinking cursor.

C:\>

That prompt was an invitation. It didn't explain itself; it waited. And if you were willing to learn its language — cd, dir, copy, mkdir — it would do exactly what you asked. I didn't know it yet, but that was the first time a computer felt like a tool rather than a appliance you consumed.