SELECT p.pid, p.filename, AVG(v.vote) as avgv, COUNT(v.vote) as avgc FROM wp_ngg_pictures p LEFT JOIN wp_nggv_votes v ON (p.pid = v.pid) ...
PHP SQL Query Optimization
by https://www.google.com/accounts/o8/id?id=AItOawmyRuor7Z0aC0QytK3lMrz5h5jH73-dECw,
December 13, 2011 21:03,
3 refactorings, tagged with speed, sql, optimization
$(function(){
$("a").each(function(){
var _this = $(this);
...
JavaScript Rewrite amazon URL's with J...
I use this with dotjs to re...
public static class Fnv1Hash
{
public static uint ComputeHash32(IEnumerable<byte> bytes)
...
C# FNV-1 and FNV-1a Hash for 3...
There has to be a better wa...
input = [9,9,9,9,9,9,9,9,9,9,9,9] input.uniq == 9 ...
Ruby Test if array contains the ...
by astropanic.myopenid.com,
May 23, 2011 07:50,
11 refactorings, tagged with speed, array, uniqueness
How I can check all element...
// this is in the global scope of my program. normally accepted as bad code, // but it seems to make sense in the context of an embedded platform. // "global" cache ...
C++ String parsing in AVR-GCC
I'm working on interfacing ...
def remove_blanks(hash)
values = {}
hash.each do |k,v|
...
Ruby Clear a hash of empty strin...
Any ideas for better implem...
function demortonize($n)
{
$row = $col = 0;
...
PHP De-interleaving bits. Again
by acmesquares.myopenid.com,
January 21, 2011 16:36,
1 refactoring, tagged with speed, php, interleave, bitwise
Function needs to take a se...
$css = preg_replace('/\s\s+/', '', preg_replace('@/\\*([\\s\\S]*?)\\*/@','',$css));
PHP Remove Whitespace & Com...
by https://www.google.com/accounts/o8/id?id=AItOawlfLKQUOxClQ5HmGAqM_lnwQLGwjnkD4TI,
January 06, 2011 20:34,
4 refactorings, tagged with speed, php, regex
I'm wondering if this is th...
function deinterleave(base4_arr)
{
var x='',y='',rc;
...
JavaScript De-interleaving bits
by acmesquares.myopenid.com,
January 01, 2011 12:08,
2 refactorings, tagged with speed, javascript, interleave, bitwise
Function takes an array of ...
asdf a
ActionScript faf
by https://www.google.com/accounts/o8/id?id=AItOawkfMCLMu0fYB4Lo5cyOkGzdvImXkQBM7yM,
August 06, 2010 06:56,
No refactoring, tagged with speed
asf
def render_page_sitemap(scope, sitemapname,statics, machines, lang) ...
Ruby Speeding up Sitemap generation
Hi,
I'm looking for a wa...
;(function($) {
$.fn.extend(
...
JavaScript filter selectbox with 3000+...
This is a little jQuery scr...
<?php
//class
class Collection{
...
PHP How should I optimize this ...
Hi everybody!
I'm kinda ne...
private static void Log(object message, MessageType type)
{
string str = message.ToString();
...
C# Line splitting optimization
by xeon06.myopenid.com,
December 07, 2009 20:59,
3 refactorings, tagged with speed, C#, optimize, xna, lines
This is a console logging f...
require 'net/sftp' class Net::SFTP::Session ...
Ruby NET::SFTP clear a remote di...
by dane.oconnor.myopenid.com,
August 19, 2009 15:38,
1 refactoring, tagged with speed, ruby, recursion, net-sftp, files
I'm trying to clear a remot...
<?php
function word_limiter( $text, $limit = 30, $chars = '0123456789' ) {
if( strlen( $text ) > $limit ) {
...
PHP Limit amount of words displ...
It returns a string with a ...
using System; using System.Collections.Generic; using System.Linq; ...
C# Cached IEnumerable<T>
Hello,
I created a this ...
class Array # insert i between each element in the array ...
Ruby Ruby: array intersperse, ef...
Intersperse is a method of ...
public static String findsite(InputStream text) {
String site, line = null;
Boolean nospace = true;
...
Java speed up this horrendous co...
I don't know too much about...
class Item def raw_tag_list; "one, two, three, four, five"; end def public_tags; [<#Tag name=two>, <#Tag name=five>, <#Tag name=one>, <#Tag name=four>, <#Tag name=three>]; end ...
Ruby Tag ordering code
Is there a faster way to do...
def haar_1d(a)
r = []
(Math.log(a.length) / Math.log(2) - 1).to_i.downto(0) { |j|
...
Ruby Fast Haar Wavelet Transform
by data.map.myopenid.com,
January 26, 2009 03:33,
4 refactorings, tagged with speed, haar, wavelet, optimize, fast
Anyone want to help me opti...
public static String[] loadFile(final String f) {
String thisLine;
final SortedSet<String> s = new TreeSet<String>();
...
Java Efficiently load a text fil...
by firesalamander.myopenid.com,
November 25, 2008 07:04,
2 refactorings, tagged with speed, buffered
Has full "finally" blocks, ...
// For faster converting of dates to strings
char* sLeadingZeroIntegerValues[] = {
"00","01","02","03","04","05","06","07","08","09",
...
C++ Stream ADODB recordset into...
by ctrager.blogspot.com,
November 11, 2008 12:30,
2 refactorings, tagged with speed, C++, COM, ADODB, STL
Can we make the code betwee...
This SQL query is currently...