Just so I never foget… observe the following test cases -

$foo = 8.37*40*0.175*100; echo $foo.' == '.(int)$foo;
> 5859 == 5858

$foo = 8.37*40*0.175*100; echo $foo.' == '.round($foo);
> 5859 == 5859

I believe that casing to INT will round towards zero as documented in the php docs, I also believe the 5858 number above is because the floating point number is always fractional…

another interesting one -

$foo = 8.37*40*0.175*100; echo $foo.' == '.(int)(string)$foo;
> 5859 == 5859

By casting to string first the floating point element is removed….

Looking for a quick way to use a "text" object to store a log – do it in one query using the following … 

UPDATE [TABLE] SET [TXT_COL] = CONCAT(IF([TXT_COL] IS NULL, "", [TXT_COL]), "[DATA]") WHERE ....

If you get something along the lines of -

fatal: unable to rename temporary pack file: Permission denied
Auto packing the repository for optimum performance.
error: failed to run repack
Pushing to ….

When making a push you may have a courrupt pack file within your git repo…

Using the shell you can rebuild the "pack" files by running -

git repack -a -f

Ok – so this didnt fix the problem….

Running git push from the command line gives much more detail than "Git Gui"…

will update this post when we get to the bottom of it…

Ok – problem is with 64bit version of Msysgit – the current beta is broken (1.7.0.2),  We have reverted to Git-1.6.5.1 which doesn't exhibit the problem!


July 2010
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
July 2010
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
June 2010
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
27282930  
May 2010
S M T W T F S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
powered by
wordpress
theme and icons by
web-engineer

©2008 web-engineer™
all rights reserved