Archive

Archive for the ‘Programming’ Category

Error Code: 81115 on PayPal Express Checkout code

January 27, 2010 1 comment

I just tried to use the Express Checkout Wizard from Paypal, but, after 1 hour, I didn’t had any success. All the time I get the same error:

GetExpressCheckoutDetails API call failed.
Detailed Error Message: PaymentAction : Required parameter missing
Short Error Message: Missing Parameter
Error Code: 81115
Error Severity Code: Error

Looking where the Payment action is “hidding” I found the following mistake on paypalfunctions.php code


$token = urlencode($_SESSION['token']);
$paymentType = urlencode($_SESSION['paymentType']);

should be:


$token = urlencode($_SESSION['TOKEN']);
$paymentType = urlencode($_SESSION['PaymentType']);

And this solved my problem.

I hope this will help you.

Regards

Categories: PayPal, Programming, Random Tags: , ,

Every Build You Break

October 16, 2009 Leave a comment

A song by programmers for programmers.

But who the hack is Naggi ?

And the new version:

Categories: Funny, Programming Tags: , ,

Application Development with RAD Studio 2010 |Delphi , C++Builder & Delphi Prism

October 15, 2009 Leave a comment

One of the most productive IDE applications, Delphi RAD Studio 2010, from Borland Embarcadero, had reached version 2010:). Here is a video demonstrating why Delphi is still the best player in area.

The introduction explains about multitier development, multiple databases code quality tools, touch and gesture inmput.

via Embarcadero

Quick tip: How to install Maven on Linux

September 30, 2009 2 comments

Apache Maven is a software project management based on concept of a project object model (POM).

Get Maven from http://maven.apache.org/download.html, unarchive it and add maven binary path to system path.

$ cd /usr/local
$ tar -xzf maven-2.2.1.tar.gz
$ ln -s maven-2.2.1 maven
$export PATH=/usr/local/maven/bin:${PATH}

Now you are ready to run maven commands like

$ mvn assembly:assembly
$ mvn site assembly:assembly
$ mvn install

I’m using Debian Lenny 5.0 and java 1.6.0_16, but should work on every Linux disitribution.

InnoDB Plugin 1.0.4 for MySQL 5.1.37 is out

August 17, 2009 Leave a comment

InnoDB version 1.0.3 was a historical one because integrates several patches what boost the InnoDB with more than 100% speed in some cases. Now version 1.0.4 is out and it comes also with some improvements. Some of the new features:

1. Multiple Background Threads
2. Master Thread I/O Capacity Tuning
3. Group commit now allows InnoDB to scale better from 16 to 64 users
4. Adaptive flushing dramatically eliminates throughput dips during checkpoints

For more detailed features please read: http://www.innodb.com/wp/products/innodb_plugin/license/third-party-contributions-in-innodb-plugin-1-0-4/

If you want to see some tests just look here: http://www.innodb.com/wp/products/innodb_plugin/plugin-performance/innodb-plugin-1-0-4-performance-tests-and-results/

Also with this version some bugs was fixed.

Fuck in Linux Kernel

May 31, 2009 1 comment

Is Sunday, is raining, my wife is reading some psychological shit and I’m bored. I knew from the morning I need to do something very very important today, so I start to count the “fuck” word in Linux Kernel.

This command is faster

find . -name *.[hcS] -not -regex ‘\./\.git.*’ | xargs cat | grep ” fuck” | wc -l

than this command:

egrep -ir “( fuck)” * | wc -l

Read more…

Categories: Funny, Linux, Programming, Random

Microsoft programmers start banning memcpy on their products

May 30, 2009 1 comment

Memcpy is the fastest way to copy one chunk of memory to another. But right now Microsoft is banning memcpy function from their products. memcpy over the years was responsable for a lot of security problems in Microsoft products, but the main problem of this function was the programmer. The approach of this function was to provide us a very fast way to copy a chunk of memory to another and it succeed over the years, but passing bad variables to it is the programmer fault not the function itself.

I was just curious how many times memcpy appears in linux kernel source (2.6.29.4) code and I just run following command to find out

find . -name *.[hcS] -not -regex ‘\./\.git.*’ | xargs cat | grep memcpy | wc -l

And the result was
12092

A lot of possible bugs … then why Linus doesn’t ban this function from the Linux kernel?

Beside that Microsoft also ban : RtlCopyMemory, CopyMemory.

From msdn site: http://blogs.msdn.com/sdl/archive/2009/05/14/please-join-me-in-welcoming-memcpy-to-the-sdl-rogues-gallery.aspx

Now developers who want to be SDL compliant will should replace memcpy() functions with memcpy_s, that takes an additional parameter defining the size of the destination buffer. But my Question is: what if happens if all parametres are wrong ? You can only check the consistency of 2 arguments … and memcpy_s it seems is 3 times slower.

In the article from msdn site posted by sdl we have some hints how to write our code SDL compliant.
Add

#pragma deprecated (memcpy, RtlCopyMemory, CopyMemory)

in your header files and at compile time you should see something like

warning C4995: ‘memcpy’: name was marked as #pragma deprecated

Also you can ban this on GCC compilers in this way:

#pragma GCC poison memcpy RtlCopyMemory CopyMemory

Happy Coding !

You are a programmer ? Then you are a Schizophrenic

January 15, 2009 3 comments

I just found this article: 30+ Reasons Why All Programmers Are Schizophrenics. Is very funny.

Symptoms of Schizophrenia:
Deterioration of personal hygiene
Check
Irrational statements
“IE’s ActiveX control ‘XMLHTTP’ and XMLHTTPRequest(W3C Standard) can be used for Ajax Programming“
I don’t think it is irrational – but schizophrenics rarely think their own statements are irrational

Excessive writing without meaning
What do you think programming is?

Indifference
Once I am on the computer I really don’t care about anything else

This are just few funny reasons … read more on http://blog.binnyva.com/2007/11/30-reasons-why-all-programmers-are-schizophrenics/

Categories: Funny, Programming Tags: ,
Follow

Get every new post delivered to your Inbox.