Good day What I would like to do is to alter a mysql table with data in it then add manipulated string data to that created column i.e I first add an extra column to my table then add a reverse string coded from data that had already been inserted. I have an email field in my database so what I would actually do is to take the email address reverse string it then insert it into the newly added mysql column. My reverse string works perfectly its just that I can't seem to add the extra column to my …

Member Avatar
Member Avatar
+0 forum 2

kindly tell what is #pragma warning(disable: 4996) in the above program????and how can we cout the locations of each vowel in the sentence..

Member Avatar
Member Avatar
+0 forum 14

Hi i have a long script named **images.php** that handles the image manipulation and the following script to handle multiple images at once <?php // load the image manipulation class require '../../image.php'; // create a new instance of the class $image = new Zebra_Image(); $directory = 'jocuri'; if ($handle = opendir($directory.'/')) { $cat=array_diff(scandir($directory), array('.', '..', 'index.php')); //shuffle($cat); foreach($cat as $key => $game) { if ($cat!='.'&&$cat!='..'&&$cat!='index.php') { // indicate a target image // note that there's no extra property to set in order to specify the target // image's type -simply by writing '.jpg' as extension will instruct the script // …

Member Avatar
Member Avatar
+0 forum 4

Guys! I would like to know if it was possible to create an assembler using python since it has excellent string handling features. Any Ideas how it could be done?

Member Avatar
Member Avatar
+0 forum 2

Hi there, I have an array of unsigned chars that hold hex values, I’m interested in values [5] and [6] of the array. Say [5] = 0x5b = 0101 1011 and [6] = 0x7b = 0111 1011 I'm trying to get all of [5] and the first half of [6], so 1011011 1111. So far I’ve come up with this; short int holder = 0; memcpy(holder,&char_array[5], 2 ); short int alt = holder >> 4; return 0; I've tried creating a 14 bit data type to hold the bits, copying the 2 bytes in then shifting right 4 but this …

Member Avatar
Member Avatar
+0 forum 1

Hello guys For my project i am tring to compare elements of an array with string.This could help at a certain extent to prevent pornographics uploads based on the filenames Here is my snippet $banned_file_names = array('bestiality','lolita','porn','xxx','incest','cock','teenporn'); $filen = preg_replace("/\\.[^.\\s]{3,4}$/", "", $file_name); if (in_array($filen,$banned_file_names) === true) { echo 'Adult image upload is not allowed'; exit; This works fine for a filename like porn.png but i wanted to make it more efficient. I added `$filen = preg_replace("/\\.[^.\\s]{3,4}$/", "", $file_name);` so that if user upload an image with name like porn-img.png , filen becomes like pornimg and get blocked However this fails....... …

Member Avatar
Member Avatar
+0 forum 4

Program to compare if two strings are of the same length

Member Avatar
Member Avatar
-1 forum 2

I am trying problem 16 from project euler, i want to add a00 integers 50 decimal places each.So i searched and found BigIntegerLibrary, but can't find any good reference material on what are the varoius functions and operators in the library. Please provide me some decent material on how to use the library......

Member Avatar
Member Avatar
+0 forum 1

Can anybody help me out, show me where to look or a keyword or something? I'm trying to figure out how to write simple programs that can manipulate other programs. To keep it simple, and as a start, I'd like to be able to run the program to insert a pre-determined string into a field on the internet and (i.e. username and password) and then submit the form (press login). Can anybody send me in the direction of what this is called? Anything? Thank you very much. I'm also sorry if this is not the appropriate forum.. I plan to …

Member Avatar
Member Avatar
+0 forum 6

how do i freeze a form? scenario: i'm working currently on a form (running program). i'll click a button which will direct me to another form. input info and then back to the previous form. So, how do i freeze the previous form without using unload, and the data in it still intact after i'm done with the other form. have i explained it correctly or clear? hoping to find answers here. thank you in advance

Member Avatar
Member Avatar
+0 forum 2

** Having trouble running this code as the compiler keeps having issues with the method 'public void mannipulate()', I'm new to java so forgive my ignorance, but I've been trying to rearrange everything in every which way to please this thing and its just not turning out right. I'm sure I'm missing something but it's just not apparent at the moment. Help would be much appreciated, thanks!** public static void main(String []args) { public void manipulate() { String fileName = FileChooser.pickAFile(); Picture picObj = new Picture(fileName); picObj.show(); int y = picObj.getHeight(); int x = picObj.getWidth(); double xborder = (x*0.05); double …

Member Avatar
Member Avatar
+0 forum 1

OK, i'm working on a hangman game in cmd prompt. I'm about halfway done, but i have hit a wall regarding the secret word, and the user guess. Now mind you, my professor has not taught the class any array manipulation methods or techniques for finding specific char in an array of strings. My problem arises when the secret word is chosen randomly by the computer, I do not know how to "cover" the secret word in asterisks or whatever char. I imagine an algorithm where i use array.length and match the user input char to individual chars in the …

Member Avatar
Member Avatar
+0 forum 8

Hello Every one ! i am trying to make query to show the growth of sale of the product month wise ,i have one table name Sales .having following fields , SalesID,ProductID,amt,Qty,SalesDate i use this query to show my records [CODE] select ProductID,Amt,Qty,substring (datename(month,SalesDate ),1,3)as months,DATENAME(YEAR,salesdate ) as years [/CODE] this query shows my records in this way ------------------------------------------- ProductID*****Amt*****Qty*****months*****years ---------------------------------------------- 1****************400********6**********Dec**********2011 2****************300********4**********Jan**********2012 ---------------------------------------------- I WANT TO SHOW MY RECORDS IN THIS WAY ------------------------------------------- ProductID*****Amt*****Per.MonthQty*****Cur.MonthQty*****months*****years ------------------------------------------------------------------------ 1****************400**********0****************6*************Dec******2011 2****************300**********6****************4*************Jan******2012 ------------------------------------------------------------------------ sorry if you are feeling bad after reading it , can any one help me to solve this prob :( Regards …

Member Avatar
Member Avatar
+0 forum 4

i want to create a stored procedure that can return the initial character of two string inside the description field. ex. Computer Security -> in one data only if i use this statement select left(description) from table1 i want to return only CS when i run my script. is there a way to do this? thanks alot

Member Avatar
Member Avatar
+0 forum 2

I have question about if my input matrix was | 1 2 3 4 | | 2 3 4 5 | | 3 4 5 6 | how I would get an output matrix | 0 0 0 0 0 0 | | 0 1 2 3 4 0 | | 0 2 3 4 5 0 | | 0 3 4 5 6 0 | | 0 0 0 0 0 0 | WITHOUT using for loop || is it impossible in GNU octave? second question is, also related the 1. one I have a matrix i.e | 1 …

Member Avatar
Member Avatar
+0 forum 1

Hi, My name is Thomas (21), I am student of computer engineering. Task at my school was to make a program that changing original SIP/SDP messages when using VoIP. The task was hard, I admit to find help on the internet. I found SIP SDK that do the same. Check out if you like: [url]http://www.voip-sip-sdk.com/p_223-sip-sdp-message-manipulator-sample-voip.html[/url] Think that was great. But somehow I has to change it a little not to look like cheating. According to program (SIP SDK), can you giving me advice on this? Or other ideas are welcome also. Greetings to everyone

Member Avatar
+0 forum 0

Following is the code written to implement a employ manipulation system using pointer to structures . It makes some allocation problem in dev-cpp while work well in turbo c. Can you help me to understand the problem[CODE] // Implement pointers to structures to produce employ manipulation and produce output //as producing by the query select *from employ group by designation in DBMS #include<stdio.h> #include<conio.h> #include<malloc.h> struct employ { char id[20],name[20],desig[20]; int salary; }; int main() { struct employ *jamia; jamia=(struct employ *)malloc(sizeof(struct employ)*10); int gm=0,ow=0,man=0,exe=0,gm_sal=0,ow_sal=0,exe_sal=0,man_sal=0,i; char *mana="Manager",*owo="Others",*exec="Executive",*gma="Genaral Manager"; system("cls"); printf("Enter the details of employees one by one\n\nNote : Valid designations …

Member Avatar
Member Avatar
+0 forum 2

I am a beginner in openCV and C++ as well.I am stuck in a particular place while trying to implement face recognition in open cv. I have the stored training images in a folder called data the images of first person is stored like 1_john1.pgm 2nd image of first person .................1_john2.pgm and so on. Next persons first image is again 2_peter1.pgm etc etc Now I have - [CODE] vector<string> personNames;// array of person names (indexed by the person number). [/CODE] Now after running face recognition algorithm i am getting - [CODE]personNames[nearest-1].c_str()[/CODE] which contains the string with the persons name which …

Member Avatar
Member Avatar
+0 forum 8

Hi , I have interesting problem as I have a file 'A' which looks like [CODE]>BIG_CLUSTER96 ENSTNIP00000002777 TETRAODON8 1 [COLOR="Green"]105[/COLOR] 136 [B]Ank[/B] [COLOR="red"]NGCTPLHYAASKDRYEIALMLLENGADPNATD[/COLOR] >BIG_CLUSTER96 ENSTNIP00000002777 TETRAODON8 1 [COLOR="Green"]141[/COLOR] 169 [B]Ank [/B] [COLOR="red"]TPLHRASAKGNYRLIQLLLRQSASTNIQD[/COLOR] >BIG_CLUSTER96 ENSTNIP00000002777 TETRAODON8 1 [COLOR="Green"]172 [/COLOR] 202 [B]Ank [/B] [COLOR="Red"]GNTPLHLACDEERVEAAKLLVEHGASIYIEN[/COLOR] >BIG_CLUSTER96 ENSTNIP00000002777 TETRAODON8 1 [COLOR="Green"] 40 [/COLOR] 71 [B]Ank [/B] [COLOR="Red"]RRTALHWACSAGHTDIVEFLLDVGAEVNLQDD[/COLOR] >BIG_CLUSTER96 ENSTNIP00000002777 TETRAODON8 1 [COLOR="Green"] 74 [/COLOR] 103 [B]Ank [/B] [COLOR="Red"]WTPLHIAASAGREDIVRALISKGAQLNSVN[/COLOR] [/CODE] as you see the first coloumn and second coloumn is same , and the bold word is also same so what i want to [COLOR="red"]con catenate the string shown in red colour [/COLOR], to gether …

Member Avatar
Member Avatar
+0 forum 1

Hi all. I hope this is the right place to post this. I am a music technology student and I've recently picked up learning C++ as it would greatly help my career knowing a programming language, especially this one since it is used in the video games industry. Anyways onto the main topic. What I want to create is a program (in C++) that lets the user load a 16bit linear PCM WAVE file. Then I want to manipulate the audio sample data within that wave file. I want to either remove every nth sample or randomise them within a …

Member Avatar
Member Avatar
+0 forum 3

hello all , i'm new to C# and i have a problem, i created a program that categorize my files into folders and subfolders. and i want to run a script test.bat that will run a python script to the files with extension .gb in the subfolders and this script will create a txt file containing the result for all the .gb files in the subfolder where the script is found, so i placed a copy of test.bat inside each folder and subfolder and i saved the path of each one in a list , and after this i tried …

Member Avatar
Member Avatar
+0 forum 2

here's my code: [CODE=C++] #include <iostream> using namespace std; void func(int num) { num = num + 1; cout << num; } int main() { int num2 = 5; cout << num2; func(num2); cout << num2; func(num2); cout << endl << endl; system("PAUSE"); }[/CODE] when the program runs, it yields an output screen that looks like this, 5656 press any key to continue... as it should, however I'm wondering if there's a way to pass the variable "num2" on to the function "func()", change the data in "num2", and then return back to the main function with the newly updated …

Member Avatar
Member Avatar
+0 forum 2

i'm having problems with the edit function on my program. when i enter something, it crashes. it prints out "File not found" endlessly. [code] #include<iostream.h> #include<fstream.h> #include<conio.h> void info() { cout << " **********************************************" << endl; cout << " * Case Study - 2 *" << endl; cout << " * Phonebook *" << endl; cout << " * Y - 201 *" << endl; cout << " * *" << endl; cout << " * *" << endl; cout << " * *" << endl; cout << " * *" << endl; cout << " **********************************************" << endl; } …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to make a program that lets user to input an array of lastnames then firstnames. Then display the a list of firstname first, then the lastname. For example: Input: Smith, John : Doe, Jane displays like: John Smith Jane Doe This is what i got so far. [CODE]Module Ex04 Sub Main() Dim m As Integer Dim anArrayList As ArrayList = New ArrayList(5) Dim inputString As String = "!" Do While Not inputString.StartsWith("$") Console.WriteLine("Enter a full name, Last, First I. - $ to end input") inputString = Console.ReadLine() anArrayList.Add(inputString) Loop For m = 0 To 5 Console.WriteLine(anArrayList(m)) m = …

Member Avatar
Member Avatar
+0 forum 4

The End.