logicslab 15 Unverified User

Dear pals,

I have an online app site which need 11 JS files including jQuery & D3.js files. I need to compress it into a single file and it's easy to use . I check some but need node.js and complex stuffs. I found http://jscompress.com/ but it's not working Application error in web site . Please advise a solution.

Thanks,
Anes

logicslab 15 Unverified User

Dear Friends,
I need a payment integration method except paypal which connect to banks for a local site in Kerala,India. If you know any thing please let me know.

Thanks,
Anes

logicslab 15 Unverified User

Hi pals , I need a particular script for spun text generation:

We need to create a script that will generate a spun text using the data entered by the user, it can use JS/Ajax to make it user friendly. below you will see how the script will look like, you can add options if needed.. A spun text has the following style : {Hello|good afternoon}{how are you|how things are going}.So this script will allow the user to create addition fields and will add automatically at the output stage the "|" and the "{" and "}" signs.
The purpose of this script is to have a spun text that we can integrate in another tool which will generate many articles automatically with less duplication.

The script will have forms divided into :
Paragraph1
Sentence 1
Sentence 1-1
Sentence 1-2
Sentence 1-3
...
Sentence 2
Sentence 2-1
Sentence 2-2
Sentence 2-3
Sentence 2-4
...
Paragraph2
Sentence 1
Sentence 1-1
Sentence 1-2
Sentence 1-3
Sentence 1-4
Sentence 1-5
...

The user can click on a button to create an additional Block (Paragraph) where he can enter his sentences. Note that Sentence 1 is the original sentence and Sentence 1-1, Sentence 1-2... are alternatives to Sentence 1.
The script will have a button "Generate Spun Article" , by clicking on this button , the script will organize the …

logicslab 15 Unverified User

Hi pals,
I am newbie in C++ Development. I saw a code in a book named "Beginning C++ Game

Programming". I have a doubt regarding the Following Working Code.

#include <iostream>
#include <string>
#include <vector>

using namespace std;

//returns a reference to a string
string& refToElement(vector<string>& vec, int i);


int main()
{
    vector<string> inventory;
    inventory.push_back("sword");
    inventory.push_back("armor");
    inventory.push_back("shield");

    //displays string that the returned reference refers to
    cout << "Sending the returned reference to cout:\n";
    cout << refToElement(inventory, 0) << "\n\n";

    //assigns one reference to another-inexpensive assignment
    cout << "Assigning the returned reference to another reference.\n";
    string& rStr = refToElement(inventory, 1);
    cout << "Sending the new reference to cout:\n";
    cout << rStr << "\n\n";

    //copies a string object-expensive assignment
    cout << "Assigning the returned reference to a string object.\n";
    string str = refToElement(inventory, 2);
    cout << "Sending the new string object to cout:\n";
    cout << str << "\n\n";

    //altering the string object through a returned reference
    cout << "Altering an object through a returned reference.\n";
    rStr = "Healing Potion";
    cout << "Sending the altered object to cout:\n";
    cout << inventory[1] << endl;

    return 0;
}

//returns a reference to a string
string& refToElement(vector<string>& vec, int i)
{
    return vec[i];
}

it's output got as:

Sending the returned reference to cout:
sword

Assigning the returned reference to another reference.
Sending the new reference to cout:
armor

Assigning the returned reference to a string object.
Sending the new string object to cout:
shield

logicslab 15 Unverified User

Hi pals,
I try a code in my Dev -C++
Environment v 4.9.9.2 in Windows XP. I save file as "satwant_mysql.cpp"
in E:/C++/ Directory....

#include <mysql/mysql.h>
    #include <stdio.h>
   
   int main(){
   
     MYSQL mysql;
      MYSQL_ROW row;
     MYSQL_RES *result;
     
     unsigned int num_fields;
     unsigned int i;
  
     mysql_init(&mysql);
  
     if (!mysql_real_connect(&mysql,"localhost","root","","MyDatabase",0,NULL,0))
     {
      fprintf(stderr, "Failed to connect to database: Error: %s\n",
         mysql_error(&mysql));
     }
     else {
      if(mysql_query(&mysql, "SELECT * FROM my_table"));
        //here goes the error message <!-- s:o --><img 

src=\"{SMILIES_PATH}/icon_surprised.gif\" alt=\":o\" title=\"Surprised\"><!-- s:o 

-->)
      else {
        result = mysql_store_result(&mysql);
        num_fields = mysql_num_fields(result);
       while ((row = mysql_fetch_row(result)))
        {
           unsigned long *lengths;
           lengths = mysql_fetch_lengths(result);
           for(i = 0; i < num_fields; i++)
          {
               printf("[%.*s] \t", (int) lengths[i], row[i] ? row[i] : "NULL");
           } 
           printf("\n");
        }
      }
     }
  
     return 0;
  
   }

I got Error As:

In file included from D:/Installations/wxDev-Cpp/include/mysql/mysql.h:57,
                 from E:\C++\satwant_mysql.cpp:1:
D:/Installations/wxDev-Cpp/include/mysql/mysql_com.h:175: error: `SOCKET' does not 

name a type
D:/Installations/wxDev-Cpp/include/mysql/mysql_com.h:339: error: `SOCKET' was not 

declared in this scope
D:/Installations/wxDev-Cpp/include/mysql/mysql_com.h:339: error: expected 

primary-expression before "const"
D:/Installations/wxDev-Cpp/include/mysql/mysql_com.h:339: error: expected 

primary-expression before "unsigned"
D:/Installations/wxDev-Cpp/include/mysql/mysql_com.h:340: error: expected 

primary-expression before "unsigned"
D:/Installations/wxDev-Cpp/include/mysql/mysql_com.h:340: error: initializer 

expression list treated as compound expressionExecution terminated

I Install my application(Dev-C++) in D:/Installations/wxDev-Cpp/.

How it can avoid , pls Advise me.

Regards
Anes P.A

logicslab 15 Unverified User

Hi Pals,

I am Anes , from Kerala ,India. I am a PHP Programmer Basically
but have interest and now studying C++ , I plan to
take data from MySql in C++, for that I install mysql-connector-c++-1.1.0-win32.msi
in my Windows XP. I got a Script from net , but it will not Work... Do you
please Explain how to Insert and select data in C++ with the help of a Code
and other things related to the Driver(mysql-connector-c++-1.1.0-win32.msi).

Regards
Anes P.A

logicslab 15 Unverified User

Hi pals ,
I am really stuck in parsing a JSON string and take it's values. I got the json string as
{"user":{"id":"1","firstname":"Freelogin","created":"0000-00-00
00:00:00","lastname":"Administrator","email":"fred@websecurify.com",
"usergroup_id":"1","status":"1","ip_enable":"N","priv":"0","expire":""},"data":{
"1":{"5":{"last_update":"2010-12-13
16:16:16","status":"0"},"3":{"last_update":"2010-12-13
16:41:48","status":"1"}},"2":{"6":{"last_update":"2010-12-13
16:41:48","status":"1"}}},"server_array":[{"id":"1","name":"anes.yyy.net"},{
"id":"2","name":"neseema.xxx.net"}],"service_array":[{"id":"5","name":"POP3"},
{"id":"6","name":"Cpanel"},{"id":"3","name":"SMTP"}],"sort_by":"servername",
"sort_order":"ASC","pagelinks":"","totrows":"2","offset":"0","limitvalue":"10",
"rows_monitor":2,"current":"monitor","uri":false}

Friends How to Parse this and take the Results for further
processing in javascript.... I am waiting to hear from you
Soon..I am using jQuery for the purpose...

Regards
Anes P.A

logicslab 15 Unverified User

Hi pals,
I got a complex Array from the Query. it's Structure is like

Array
(
[0] => Array
(
[server_name] => anes.admod.net
[id] => 1
[server_id] => 1
[description] => nice Anes Server
[status] => 0
[max_down_count] => 9
[check_interval] => 15
[fail_recheck] => 6
[log_retain] => 1
[warning] => 12
[critical] => 15
[timeout] => 8
[audible] => Y
[email] => Y
[im] => Y
[sms] => Y
[rss] => N
[rssid] =>
[vcare] => Y
[created] => 2010-12-06 10:26:26
[last_update] => 2010-12-13 16:41:48
[name] => POP3
[port] => 110
[okay] => OK
[warn] => WARNING
[crit] => CRITICAL
[down] => Connection refused
[advanced] => N
[typestatus] => 1
)

[1] => Array
(
[server_name] => neseema.admod.net
[id] => 2
[server_id] => 2
[description] => another server
[status] => 1
[max_down_count] => 11
[check_interval] => 15
[fail_recheck] => 12
[log_retain] => 2
[warning] => 12
[critical] => 16
[timeout] => 6
[audible] => Y
[email] => Y
[im] => Y
[sms] => N
[rss] => N
[rssid] =>
[vcare] => N
[created] => 2010-12-07 10:27:42
[last_update] => 2010-12-13 16:41:48
[name] => Cpanel
[port] => 2082

logicslab 15 Unverified User

Hi pals,
I am a Newbie in C++ Programming field. I plan to add graphics.h header class in
Dev -C++ Version 4.9.9.2 from Bloodshed which is come along with Borland Compiler.
I follow the Steps in URL : http://www.uniqueness-template.com/devcpp/#step2

But I Got Error in the Sample code which test the Working , Please Help me
to get away from this problem . I am waiting to hear from you.

Regards
Anes P.A:'(

logicslab 15 Unverified User

Hi pals,
I am also in onclick problem, my code works fine in FF,OPERA,Chrome but not in Safari.
My problem is this onclick.

<?php if(has_access($userarray,'view_serverdet','server')){
	if (('Y' == $webpanel_ajax) && ('N' == $server_details || $usergroupid == "1")) { ?>
		<span class="expand" id="exp<?php echo $server_row['id']?>" onclick="view_details('<?php echo $server_row['id'];?>','page','<?php echo $shade;?>')">+</span>
<?php }
} ?>

The corresponding function like:

function view_details(id,from,class) {
  	 alert("id is:"+id);
  	 alert("from is:"+from);
  	 alert("class:"+class);
          //some other codes
}

In other Browsers these values alert, but in Safari not. Why Pls Give me a solution
ASAP.

Thankfully
Anes P.A

logicslab 15 Unverified User

Hi pals,
I am in a straight forward doubt. I use jQuery for a long time , but not use jQuery extends method, do any one can
explain it's purpose and need . I don't get not much from reading jQuery Manual. So if you have a Good idea reply me with a Good explanation and example....I can understand
user can create their own custom functions, pls explain ...

Thankfully
Anes P.A

logicslab 15 Unverified User

Hi Friends,
I am come with a new query in jQuery. I have a listing form in which the details showed , the View more Details is implemented using Ajax.
When Click "+" sign there is a loading image show First then the Result show there ... It's all working Fine , But I need a way to show Error
I mean some time Server Response is success with Empty String on that time I need to catch same .... I explain code Below:

if(proceed) {
	      $.ajax({
		  	type: "POST",
		  	data: "key="+id,
		  	dataType: 'json',
		  	async: true,
		  	url: "<?php echo site_url(); ?>/server/view_serverdet/",
		  	beforeSend: function() {
	        	$('#view_load'+id).show();
	        	$('#view_load'+id).addClass(class);
	  		},
	        complete: function(){
                      	
	        		$('#view_load'+id).hide();
	        	}
	        },
		  	success: function (server_msg) {
		  		if (null == server_msg) {
		  			var warning = "<font color=\"red\">Unable to load server details</font>";
                	$('#view_load'+id).html(warning);
				} else {
					
                       // Working Fine!
                               }

But that error Just Show and Hide ... How I can show that Error there, If you have any idea , pls help me ASAP...

Thankfully
Anes P.A :)

logicslab 15 Unverified User

Hi Friends,

I am new to C++ wxwidgets world . I plan to study same, I am basically
from web programming but I like to study this new technology come in
C++(I am newbie there too!). I have 2 types of C++ distributions
installed in my PC with Windows XP (SP3)...
1) DEV-C++ Version 4.9.9.2 from Bloodshed.net
2) Microsoft Visual C++ 2010 Express Evaluation version

and Installed wxWidget2.9.1 (come as wxMSW-2.9.1-setup.exe),
I have no idea How to run a Hello world application and How
and where to start my Study ... I am in dark, pls give me
a first Step , where to start and run my first test program.

Waiting Your reply

Bye Anes :)