How to generate PDF using flex with php.Currentely am using amfphp to do this.But it takes more time to generate.please guide me if anyone know the solution.

Member Avatar
Member Avatar
+0 forum 2

hey i'm trying to generate numbers from 1 to 3 in a way such that number 1 has the probability 70% being generated number 2 has the probability of 20% of being generated number 3 has the probability of 10% of being generated how do i do that?? can anyone please help. Random r=new Random(); int i=1+r.nextInt(3); this doesn't take into account the probabilities and generates the numbers in a random way..i need to generate the numbers according to their probabilites of being generated

Member Avatar
Member Avatar
+0 forum 5

What do you think? Everywhere there is buzz about cloud computing.How is it helpful to business?

Member Avatar
Member Avatar
+0 forum 4

Do anyone here knows flex builder? I'm a beginner in this language. I have written a code for cloudstack api request and signature generation using hmac to authenticate the user account. here the command is 'listzones'. The output will be in xml shwing the list of zones available in the cloudstack i have installed. No error is showing while compiling. But when i run, the browser opens blank. The url is correct, ie it includes alla the commands and parameters and also the signature is genetated. I can see it in the url.But the orginal output is xml command it …

Member Avatar
Member Avatar
+0 forum 6

I've decided to try my hand at programming neural networks since I'm in an adaptive critic course. The thing that I want to attempt is a solver for the game located here http://moh97.us/flow/. You basically have to connect like-colored circles together without crossing over any paths and while filling up all the empty squares with a path segment. I've been reading up on Hopfield Networks and I think this is the right network to use since I am essentially going to turn on or off a node (square) depending on these conditions to check: 1) Is square already filled? 2) …

Member Avatar
+0 forum 0

Hi Guys, I've just picked up an old projcet I was working on (about 6 months ago) and trying to get my head around my own messy N00b code. I've managed to get the grid views working with links back to the tables and showing data in the correct places. However, I have some tables with values in which seem to be passing correctly but don't seem to update on the order tables. on the 'Save' button I am using the following code: private void btnOrderSave_Click(object sender, EventArgs e) { System.Data.OleDb.OleDbCommandBuilder cb; cb = new System.Data.OleDb.OleDbCommandBuilder(cashDA); DataRow DRO = cashOrdersDS.Tables["cashOrders"].NewRow(); …

Member Avatar
Member Avatar
+0 forum 5

Hi im writing a program to simulate a slot machine, where a user enteres a coin and has a 70% chance of winning (say 3 coins). Anyways, I have a class slotMachine with a public int random() function. Here is the function: int slotMachine::random() { srand( time(NULL)); randomNum = rand() % 7 + 1; // from 1 to 7 return randomNum; } The function should generate a number between 1 and 7, if the user enters a number between this they win. However, when I run the program and test to see what number the function prints it always prints …

Member Avatar
Member Avatar
+0 forum 5

There is a black spot on the top part of my ipod touch. The day before, I dropped it into water. To try to fix the water damage, I put the ipod into the oven at 170 degrees and left it in there for about 2 hours. After I took it out, the ipod seemed to work fine except the black spots were there. Any slolutions?

Member Avatar
+0 forum 0

I want some help to generate a report in PDF/Doc(MS Word) format . I’m not able to find any module to generated report in doc, except “docx” which I’m not able to comprehend. Actually my actual task is to generate the report in Doc only, but as I’m not able to find a module to work on it, I opt for PDF. I’m using “Report Lab” module, but I’m finding some limitation in that. It write anything based on co-ordinate system. The problem I’m facing with that the report is usually a string, whose length is not limited, so sometime …

Member Avatar
Member Avatar
+0 forum 2

i am used wkhtmltopdf for convert the web page to pdf. but i have a following error [CODE] **WKPDF couldn't determine CPU ("").**[/CODE] how to solve it, does any one know plz tel me how to solve it. Thank you

Member Avatar
Member Avatar
+0 forum 1

Hi, i have an ipod touch 4th generation running IOS 5 and the push notifications dont work. They are all on in settings and still nothing. My ipod is NOT jailbroken and it never will be. Thanks

Member Avatar
+0 forum 0

hi i'm making an excel worksheet that will generate some random numbers. i used this formula: =RAND()*(High-Low)+Low, to generate a number between 0 and some other value and then subtract that from another number. Like this i obtain random variations around a value(just lower than the original). However, i need these numbers to vary by a given value. (the maximum difference between consecutive values to be given by the user) can anyone tell me if this can be done with excel(and if yes how;)) or do i have to get into VBA? If no, and i have to write code, …

Member Avatar
+0 forum 0

Hi, I want to capture snapshot of a URL. User enters URL, hits Capture button and sees the captured image of that website. I have done some google-ing but not real solution it. Does anyone know any example in PHP and only on Linux? Not interested 3rd party websites though. Thanks

Member Avatar
Member Avatar
+0 forum 7

Hi :) Is there any way, using PHP, to display a mini-version of an external website ? What I'm trying to achieve is when my users enter a link, then it should automatically try to display the link's contents - but within a given height / width. Appriciate any feedback :D

Member Avatar
Member Avatar
+0 forum 4

friends i want to create a array which contain no of unique key , it also need store in mysql database , which i have done on my wamp server but when i m running this code on web server online i getting that my page will hangup .......so please help me.... code [CODE]$no_of_pin=$_POST['no_pin']; $pin_cost=$_POST['pin_cost']; if(($no_of_pin!=null) && ($pin_cost!=null)) { for($a=0;$a<$no_of_pin;) { $pin=mt_rand(1000000,9999999999); $qry=$obj->ex_query("select pin_id from uapl_pin where pin_id=$pin")or die(); if($qry==1) { $a--; } else { $qry=$obj->ex_query("insert into uapl_pin values($pin,$pin_cost,'unused','$date','')")or die(); if($qry>0) { $prt_pin[$a]=$pin; $a++; } } } } else { $mgs="Please Enter The value First."; }[/CODE] plase help its urgent …

Member Avatar
Member Avatar
+0 forum 5

Friends... I'm doing INVENTORY project... front-end : vb.net back-end : Access I'm having PURCHASE, SALES tables... In sales form, i need to create CONTROLS during RUN-TIME... i.e, when we gone for shopping to a DEPARTMENT store, we buy LOT things... they will give us only one BILL... when they are entering BILL, they will enter only CODE of the product, all the other particulars will be loaded automatically... if v buy 10 items, there will be 10 items in BILL... if it s 15, 15 in bill... i need to create like this only... i.e in SALES form, CODE, CATEGORY, …

Member Avatar
Member Avatar
+0 forum 9

This code is giving minimal change from real Python class to JavaMonster with every method having setter and getter not following the PEP8 naming but capitalizedWordsFormat. When instrunctor turns his head or if you put the code in your library, you can simply remove the setter/getter lines.

Member Avatar
+0 forum 0

The End.