scaramanga

The hacker with the supernumerary nipple

Posts

  • Arbitrary Remote Code Execution is (Still) Arbitrary Remote Code Execution

    Long gone are the days when servers were like little pets. You logged in to them, you stroked them, you ran little commands on them. Probably some commands you copied and pasted out of stackoverflow or that you found in some google search results.

  • Python socket servers can drop received packets on exit

    Let’s say we have a datagram server written in python using the shiny new asyncio module:

  • Abusing the CPU's adder circuits

    Have you ever been asked the interview question “how do you count the number of bits set in an integer?”

  • SQL-Like Sorting in Python

    Sorting things in python can often be a pain point. You need to be familiar with the decorate-sort-undecorate paradigm. Also known as the Schwartzian transform. In python3 this technique replaced the old system of comparator functions. Lots of words have been expended discussing this in the quite excellent python documentation so I won’t try and duplicate any of that here.

  • Item-at-a-time Reduce Functions in Python

    If you need to write a Reduce function in python, there’s a number of ways of doing it. I’m going to assume you already know what that is and leap right in. Suffice to say, you can think of that as something like an aggregate function in an SQL query.

  • Getting Bitmasks from SSE Vector Comparisons

    These days the single-threaded performance of CPUs just isn’t advancing as quickly as it did in my salad days of the late 90s and early 2000s. Personally I think it’s God’s revenge for people putting pineapple on pizza. Regardless of the causes, I find it to be increasingly the case that if you aren’t using SIMD in the performance critical areas of your software, then you are leaving a lot of performance on the floor.

  • Tagliatelle al sugo di cipolle e pancetta

    That’s big flat spaghettis with bacon and onion sauce to you and me. It’s a bit less dense than carbonara but just as nice. It’s also a good dish for learning the basic techniques of italian cuisine which you can apply in a dozen other other dishes by substiting one or two ingredients.

  • Qemu, curses and caca

    I have recently discovered, and been very impressed with, the qemu ncurses display driver. Basically it lets you run a guest OS inside of a regular terminal emulator. Currently the curses display works almost perfectly when the BIOS and guest OS has the VGA card programmed in text mode but when switched to graphics mode all you get is a message telling you “Graphic mode 800 x 600″ for example.

subscribe with [RSS]

Projects by giannitedesco can be found on GitHub

Copyright © Gianni Tedesco 2013 | All Rights Reserved