{"id":301,"date":"2004-11-23T17:55:26","date_gmt":"2004-11-23T07:55:26","guid":{"rendered":"http:\/\/www.flamingspork.com\/blog\/?p=301"},"modified":"2004-11-23T17:55:26","modified_gmt":"2004-11-23T07:55:26","slug":"additional-code-into-voting","status":"publish","type":"post","link":"https:\/\/www.flamingspork.com\/blog\/2004\/11\/23\/additional-code-into-voting\/","title":{"rendered":"Additional code into voting"},"content":{"rendered":"<p>you can now accept nominations and put down your spiel.<\/p>\n<p>At some point I&#8217;m going to have to go through a bunch of the code and do a security audit. We should be fine with what we&#8217;re running now, but the head of 0.3 most likely isn&#8217;t. All that will be problematic is insertion of crap into the outputted HTML.<\/p>\n<p>There&#8217;s also been a number of improvements recently in the forms infrastructure which the older parts of the UI could benefit from.<\/p>\n<p>Not that speed is a current problem, but a bit of caching could really help some things along &#8211; esp with get_member_id, get_member and has_permission. We really don&#8217;t need to go back to the database multiple times in the same page display. Temporary variables can just be messy too &#8211; much better to keep the code clean.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>you can now accept nominations and put down your spiel. At some point I&#8217;m going to have to go through a bunch of the code and do a security audit. We should be fine with what we&#8217;re running now, but &hellip; <a href=\"https:\/\/www.flamingspork.com\/blog\/2004\/11\/23\/additional-code-into-voting\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6,13],"tags":[],"class_list":["post-301","post","type-post","status-publish","format-standard","hentry","category-linux-aus","category-memberdb"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5a6n8-4R","jetpack-related-posts":[{"id":3242,"url":"https:\/\/www.flamingspork.com\/blog\/2013\/03\/07\/other-mysql-code-size\/","url_meta":{"origin":301,"position":0},"title":"Other MySQL branch code sizes\u00ef\u00bb\u00bf\u00ef\u00bb\u00bf","author":"Stewart Smith","date":"2013-03-07","format":false,"excerpt":"Continuing on from my previous posts,\u00c2\u00a0MySQL code size over releases\u00c2\u00a0and\u00c2\u00a0MariaDB code size\u00c2\u00a0I've decided to also look into some other code branches. I've used the same methodology as my previous few posts: sloccount for C and C++ code only. There are also other branches around in pretty widespread use (if only\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3279,"url":"https:\/\/www.flamingspork.com\/blog\/2013\/04\/05\/drizzle-and-google-summer-of-code-2013\/","url_meta":{"origin":301,"position":1},"title":"Drizzle and Google Summer of Code 2013","author":"Stewart Smith","date":"2013-04-05","format":false,"excerpt":"Those interested in hacking on Drizzle for the Google Summer of Code this year should certainly jump on the mailing list and IRC channel and work out what they may want to do. I (and others) are happy to supervise this year. Drizzle is a relational database server with an\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3235,"url":"https:\/\/www.flamingspork.com\/blog\/2013\/03\/05\/mysql-code-size\/","url_meta":{"origin":301,"position":2},"title":"MySQL code size over releases","author":"Stewart Smith","date":"2013-03-05","format":false,"excerpt":"As the start of a bit of a delve into the various MySQL branches and patch sets that have been around, let's start looking at the history of MySQL itself. This is how big MySQL has been over all of the major releases since the beginning (where beginning=3.23). (edit: These\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"increase in MySQL source code size over version","src":"https:\/\/docs.google.com\/spreadsheet\/oimg?key=0Ar7e3-N2Y32IdHFGRWI2ODk4ZUY4TkhrclJSVC1mb3c&oid=1&zx=5h67vlc175bd","width":350,"height":200,"srcset":"https:\/\/docs.google.com\/spreadsheet\/oimg?key=0Ar7e3-N2Y32IdHFGRWI2ODk4ZUY4TkhrclJSVC1mb3c&oid=1&zx=5h67vlc175bd 1x, https:\/\/docs.google.com\/spreadsheet\/oimg?key=0Ar7e3-N2Y32IdHFGRWI2ODk4ZUY4TkhrclJSVC1mb3c&oid=1&zx=5h67vlc175bd 1.5x"},"classes":[]},{"id":1309,"url":"https:\/\/www.flamingspork.com\/blog\/2008\/12\/12\/debian-about-1234533-times-easier-to-install-than-solaris\/","url_meta":{"origin":301,"position":3},"title":"Debian about 1234533 times easier to install than Solaris","author":"Stewart Smith","date":"2008-12-12","format":false,"excerpt":"After what many hours trying to netboot the T1000 to install Solaris Express, I wondered \"how hard is it for debian?\". Easy. get the sparc64 boot.img, put it on TFTP server, add \"filename \"boot.img\";\" or similar to dhcp, boot the T1000 from the service console something like this \"bootmode bootscript=\"boot\u2026","rel":"","context":"In &quot;drizzle&quot;","block_context":{"text":"drizzle","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/drizzle-work-et-al\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":658,"url":"https:\/\/www.flamingspork.com\/blog\/2006\/04\/19\/rusty-on-floating-point-and-keeping-neat-code\/","url_meta":{"origin":301,"position":4},"title":"Rusty on floating point (and keeping neat code)","author":"Stewart Smith","date":"2006-04-19","format":false,"excerpt":"Rusty talks about the \"fun\" of floating point and how this all ties into Wesnoth. Platform consistency is certainly a good thing - so I'm guessing the attack_prediction code isn't run by each node in a network game in a way where machines could disagree on the outcome. This does\u2026","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1777,"url":"https:\/\/www.flamingspork.com\/blog\/2010\/01\/09\/shocked-and-stunned-that-code-exists-and-does-work\/","url_meta":{"origin":301,"position":5},"title":"Shocked and Stunned (that code exists and does work)","author":"Stewart Smith","date":"2010-01-09","format":false,"excerpt":"#define READ_ALL 1 \/* openfrm: Read all parameters *\/ #define EXTRA_RECORD 8 \/* Reservera plats f|r extra record *\/ \u00ef\u00bb\u00bf\u00ef\u00bb\u00bfand later on.... \u00c2\u00a0\u00c2\u00a0if (prgflag & (READ_ALL+EXTRA_RECORD)) \u00c2\u00a0\u00c2\u00a0 \u00c2\u00a0records++; Feel free to think about that for a second. (I have an urge to add this to questions asked in a job\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":1,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":2815,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/301\/revisions\/2815"}],"wp:attachment":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}