|
BonzoESC posted:Write a program that reads positive integers from STDIN. For each integer, print the number of times the digit '1' occurs when counting from zero to that integer. code:
|
# ¿ Apr 27, 2012 03:13 |
|
|
# ¿ Apr 27, 2024 21:04 |
|
so the windows api has a function called GetGlyphOutline that can be used to get character glyphs from a font, which is just what i needed. but it only works for truetype fonts and just throws up an error on raster fonts. so i go off to find the raster font equivalent for that function ... oh, there is none.
|
# ¿ May 8, 2012 07:21 |
|
Gazpacho posted:well yeah, because that information isn't in a raster font to be gotten the actual part i was using was grabbing a bitmap of the glyph at a specified size, which seems like it would be easy to do for a raster font, but alas there appears to be no way to do it with the windows api but i did find this when searching for a solution: http://wine.1045685.n5.nabble.com/Re-1-2-gdi32-GetGlyphOutline-should-fail-for-a-bitmap-font-td5675449.html "well this is incorrect behavior but the correct behavior breaks other things soooooo gently caress it"
|
# ¿ May 8, 2012 08:33 |
|
Tiny Bug Child posted:tbc what do you think of php's use as a general scripting language? like for non-web stuff?
|
# ¿ May 17, 2012 06:27 |
|
Tiny Bug Child posted:well it's not as ideally suited to the environment as it is for the web but it works just fine. i wrote a desktop app using php-gtk once and it turned out ok quote:A Year Later... rofl edit: oh hey lets see what wonderful apps people have made using php-gtk
|
# ¿ May 17, 2012 15:36 |
|
|
# ¿ Apr 27, 2024 21:04 |
|
Malcolm XML posted:it's a halfassed solution which requires an entirely new infrastructure to run /quickly/ not gonna pretend to know how its implemented but this js vm guy seems to think "the implementation cost should be small compared to the potential upside" https://code.google.com/p/v8/issues/detail?id=2599 also lol native client did some poster really suggest that was a better solution than this?
|
# ¿ Mar 29, 2013 04:10 |