Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Profiling the Program I Wrote

    I was certain my parser spent its time converting decimal numbers.

  2. Euler 15 in Python

    This one isn’t even funny… Starting in the top left corner of a 2×22 \times 2 grid, there are 6 routes (without backtracking) to the bottom right corner.

  3. Euler 11 in Python

    Project Euler’s problem #11 statement goes: In the 20×2020 \times 20 grid below, four numbers along a diagonal line have been marked in bold. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56…

  4. Euler 10 in Python

    I decided to take on Project Euler’s problem #10.

  5. Euler 9 in C

    The language can make a brute-force search faster, but eliminating unnecessary work is better.

  6. Euler 9

    So the other night I was a bit bored and decided to do something to pass the time.

  7. Euler 6

    So the other night I was a bit bored and decided to do something to pass the time.

  8. Euler 5

    So the other night I was a bit bored and decided to do something to pass the time.

  9. Euler 4

    So the other night I was a bit bored and decided to do something to pass the time.

  10. Euler 3

    So the other night I was a bit bored and decided to do something to pass the time.

  11. Euler 8

    So the other night I was a bit bored and decided to do something to pass the time.

  12. Euler 7

    So the other night I was a bit bored and decided to do something to pass the time.

  13. Gob on the Wire, for Now

    I needed to pass structured measurements between two copies of a test program.

  14. cgo Is a Border, Not a Bridge

    I have too much useful C code to pretend a new language arrives on an empty disk.

  15. This is part of a series of posts about Argentina and the City of Cordoba.

  16. The new goinstall tool removes some Makefile work from small Go packages.

  17. I rewrote a small Python log processor as three stages: read lines, parse records, and aggregate counters.

  18. Defer at the Exit

    I usually notice a missing cleanup path during review, which is a dignified way of saying after I wrote it.

  19. I’m not a big believer in keeping books forever, even though I do keep some.

  20. Coincidences have a way of catching one’s attention, haven’t they?

  21. Goroutines Are Not Pthreads

    My reflex when seeing go f() was to translate it into “start a thread.”

  22. Interfaces After Qt

    Qt taught me to appreciate explicit contracts.

  23. Go declarations looked backward to me for about ten minutes: var retries int var name string = "worker" count := 12 Then I noticed how little punctuation I was reading.

  24. Suquia Creek

    Things are starting to get busier on my new project.

  25. From Qt Slots to Small Tools

    Most of my systems work still begins in C.

  26. A Decade as a Linux Pro

    After I recently accepted my old age, I was talking to some friends who, to their own surprise, found they were old too.

  27. So today I was called grumpy, which was inconsiderate and uncalled-for, so I did what every stable adult man would do.

  28. Ever came across someone who wanted to show off how independent and free their own thinking was?

  29. I had two versions of a parser.

  30. Google announced a new language called Go last week, and I spent an evening rewriting a small concurrent program in it.

  31. My event-driven server stayed responsive under load, but its memory use climbed steadily.

  32. Qt 4.5 Lowers Two Barriers

    Two things have repeatedly made Qt harder to suggest: licensing confusion and the lack of an obvious first development environment.

  33. Btrfs entered the mainline kernel earlier this year, so naturally I created a filesystem and started putting unimportant data on it.

  34. My test laptop changes display modes several times while booting: firmware text, a console mode, the X server’s preferred resolution, and sometimes another mode after resume.

  35. ftrace Before More printk

    I was chasing a latency spike in a kernel path and began adding printk() calls.

  36. A multithreaded parser scaled nicely to two workers and then barely improved.

  37. I wrote a file server in the most direct way possible: read a block into a user-space buffer, then write that block to the socket.

  38. After changing a small server to use an event loop, I began with select().

  39. I wrote a small TCP service using one thread per connection.

  40. One of two batch jobs was eating the workstation, but their worker processes came and went too quickly for top to give me a useful total.

  41. ext4 After the Stable Label

    I have been testing ext4 on disposable filesystems for a while, but I have avoided recommending it for ordinary machines.

  42. I needed to show a formatted report inside a Qt application.

  43. I had a directory full of images to scale and a progress dialog that froze while doing it.

  44. I left an import dialog open, pulled the card reader, and clicked Import.

  45. My sound preview worked with the Xine Phonon backend and failed as soon as I switched the machine to GStreamer.

  46. I used to respond to a sluggish desktop by disabling compositing.

  47. Plasma Is Not Just a Panel

    I wanted a tiny display for a script: one number, updated every few seconds, sitting in the panel.

  48. I installed KDE 4.0 on a spare partition earlier this year and lasted about two days.

  49. Idle Host, Busy Guest

    My laptop stayed warm with an apparently idle KVM guest running.

  50. I added filtering to a Qt 4.3 table by copying matching records into a second list.