Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Tags

10 Posted Topics

Member Avatar for abhishek2301

Hello, I need to display 2 images and 2 corresponding radio buttons so that a user can select one choice and then submit. After submit, it should be posted to the server where some image metadata (size, etc.) will be stored in a db and the previous 2 images will …

Member Avatar for vibhaJ
0
132
Member Avatar for abhishek2301

Hello, I am trying to understand the exact procedure of the IMG_FILTER_CONTRAST function available in the GD library. After delving through the source code, I found the following function which performs the computation: [code=c] int gdImageContrast(gdImagePtr src, double contrast) { int x, y; int r,g,b,a; double rf,gf,bf; int new_pxl, pxl; …

0
78
Member Avatar for abhishek2301

Hello, I intend to execute a shell script from PHP using shell_exec() in a simple file as follows: [CODE] <?php $result = shell_exec('sh /var/www/script.sh'); echo "<p>$res</p>; ?> [/CODE] This fails to produce any sort of output! I have manually executed the script from the shell of the PHP web-server and …

Member Avatar for pritaeas
0
106
Member Avatar for abhishek2301

Hello, I am trying to make a simple image editor by changing the brightness randomly. I have a simple HTML page with an image and a button which is supposed to be clicked and the brightness of the image will change to a random value using POST method and a …

Member Avatar for diafol
0
254
Member Avatar for abhishek2301

Hi, This is a very known problem with lot of solutions in many forums but none of them works for me. A simple code to load a jpeg image as follows: [code=php] <html> <?php $im = @imagecreatefromjpeg("/home/public_html/MyPic.jpg"); header ("Content-Type: image/jpeg"); imagejpeg($im, NULL, 75); imagedestroy($im); ?> <head> <title> My First PHP …

Member Avatar for diafol
0
454
Member Avatar for abhishek2301

Hello, I need to implement the following situation in C++: I have a counter which I want to increment with a certain probability. I am giving a pseudo code which will clear: counter = 0; prob = 0.5; for i <- 1 to 100 if(prob) // want to increment the …

Member Avatar for ArkM
0
140
Member Avatar for abhishek2301

Hello, I require a help on a basic issue. I have 2 classes and I want to have an interaction among the classes. Suppose my 2 classes are testA and testB. Now I want a handle of object pointer in each class to the other class. Like I want a …

Member Avatar for mirfan00
0
140
Member Avatar for abhishek2301

Hello, I am stuck with a multiple declaration error during linking. I have 4 C++ source and corresponding header files(A, B, C,D) and one main source file(Main.cpp). Apart from that, I have one header file which contains two function declarations and some #define constants (Config.h) and 2 array decl which …

Member Avatar for Ancient Dragon
0
166
Member Avatar for abhishek2301

Hello, I have a BinaryHeap class that uses template <class Comparable> as follows: [code] template <class Comparable> class BinaryHeap { public: explicit BinaryHeap (int capacity = 0) const Comparable & findMin( ) const; ......................................................... private: int currentSize; vector<Comparable> array; ........................................................ }; template <class Comparable> const Comparable & BinaryHeap<Comparable>::findMin( ) const …

Member Avatar for Murtan
0
278
Member Avatar for abhishek2301

Hi, I am using a JSP from to collect data from user and then inserting those values into a table in MySQL.But it is returning 'null' always.I am able to query the DB and view the entire table and everything else is fine. But the INSERT is not working somehow!!! …

Member Avatar for tommybobby
0
148

The End.