Recent Blogposts | Page 7

Asynchronous Rock Paper Scissors Tournament 2016 - End of Service of Poland Website

June 1, 2016, 12:04 p.m. RPS

Better to be late than never announcing it. The Poland Event website is closed.

The hoster could not pay for the hosting fee. Therefore, the site is closed about a month after the begin of the event.

Considering that the hoster is relatively young, he is a genius of being capable for setting up a website for the event.

Give a big hand to Eruverio! Our hoster/organizer of the RPS tournament 2016!

The facebook page of the event is still alive. And the website of the event is now archived at Wayback Machine.

We will definitely host another event next year! I'll probably find someone who is capable for keeping the site alive for at least a few years.


Solution to CUPS Claiming Print Job Completed Despite Printing Nothing

May 10, 2016, 1:42 p.m. Sysadmin

Cause

The system runs out of RAM

Solution

Kill RAM intensive processes, or use swap.

How Did I Run into This Problem?

I have installed CUPS on my Raspberry Pi. It was connected to a USB printer and made it accessible via my LAN. It had been working very well until the recent. In these few weeks, somehow the printer does not print.

I entered the CUPS web interface of my Raspberry Pi and tried printing a test page. Funny enough. It claimed that the print job was completed, despite that the printer did nothing.

Then I dig up /var/log/cups/access_log. Here is what's inside.

localhost - - [10/May/2016:14:37:12 +0800] "POST /printers/Canon_MG2400_series HTTP/1.1" 200 422 Print-Job successful-ok

It claimed that the print is a success. Obviously that's not true!

Then I dig up /var/log/cups/error_log. Unfortunately, there was nothing inside.

Then I started trying stuffs like:

  • Reconnecting the printer
  • Restarting CUPS
  • Using another USB Cable
  • Rebooting the printer

None worked! :(

Then I figured out that there is something called LogLevel in CUPS config. I modified it as follows:

LogLevel debug

And I restarted CUPS. Then I noticed the following messages appeared in /var/log/cups/error_log:

D [10/May/2016:14:37:20 +0800] [Job 136] Error: /undefined in --setpagedevice--
...
D [10/May/2016:14:37:20 +0800] [Job 136] Last OS error: Cannot allocate memory
D [10/May/2016:14:37:20 +0800] [Job 136] GPL Ghostscript 9.05: Unrecoverable error, exit code 1
...
I [10/May/2016:14:37:22 +0800] [Job 136] Job completed.

What? Obviously something went wrong! How on the earth could the level of that message merely be a debug? I think that should be at least a warn! More importantly, how come it is called "Job completed"? I think that should be "Job Failed" instead! :<

After that, I increased the swap space. And remote printing starts working again. :D

Took me a few hours to figure that out. I couldn't find this solution in Google. That's why I blog about this. Hopefully someone somewhere would somehow find this blogpost helpful.

UPDATE: I've filed a bug report to the CUPS developers. Hopefully it will be fixed soon.


Sadale.net Goes HTTPS

April 15, 2016, 2:20 a.m. Meta

Thanks to Let's Encrypt. We can now get SSL certificates for free!

I was slacking off while doing homework. That's why I did the HTTPS setup yesterday. :P

Currently, only some of the subdomains of sadale.net supports HTTPS. I'd like to test it for a while before enabling it for all of the domains.

Many image links in blogposts are still having http:// prefix . I'll convert them to https:// when I got time.


Asynchronous Rock Paper Scissors Tournament 2016 - Poland Website Ready

March 30, 2016, 3:34 a.m. RPS

Finally the website of Asynchronous Rock Paper Scissors Tournament 2016 - Poland is ready!

To make the event more internationalized, it will be hosted by different country every year! The coming event will be hosted by Poland.

To join the event, just fill in the form in the site with your nickname, nickcountry and the hands to be played in 1st April UTC. After that, you can wait for the release of the result in 2nd April UTC.

Have fun in the coming April Fool's Day!


Hiatus of Development

March 3, 2016, 11:43 a.m. Cellphone Diver Koloniigo Meta RPS

I'm sorry to announce that the development of all project of Sadale is suspended since I made the last blogpost. It is expected not to be resumed for weeks.

The main issue is that right after my illness, I got a lot of homework to do because they stacks up while I was sick. Right after I completed them, I got tests. Then I got to do revision. And now I'm writing essays. Later I need to prepare for presentations. Then I got exams. :(

Apparently I won't be able to work on any project until (hopefully) the end of the exam.

Anyway, there is some unannounced progress on Cellphone Diver that I made a while ago. That's upgrade store! I've got the basic of upgrade store functional:

Cellphone Diver Upgrade Store

Currently, there are two projects to be completed:

  • Cellphone Diver
  • Koloniigo

When I got time, I'll do Cellphone Diver first. If it's a success(get to the frontpage of a flash game site), I'll start another flash game project before working on Koloniigo.

Meanwhile, there's a project that I completed developing. It's the website for next International Asynchronous Rock Paper Scissors event that will be held in 1st April 2016! I've contacted a Polish guy and he will probably host the next event. The site is done and instruction on setting up the site is sent to the hoster. I'll let you guys know when the site is ready. Stay tuned!