199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bilal.saim

<?php $tipi = array("asd","222","dda","xcs"); $gun = array("qwe","vvv","zzz","bffg"); $ay = array("asd","bbb","23a","wqe"); $yil=array("zzz","sad","cxc","zxca"); $say=0 ?> <script> var tipi = new Array(); var gun = new Array(); var ay = new Array(); var yil = new Array(); for(var j=0;j<4;j++) { tipi[j] = " <?php echo "$tipi[$say]" ?> "; gun[j] = " <?php echo …

Member Avatar for bilal.saim
0
244
Member Avatar for mbhanley

I am trying to configure a menu for my CMS I want to be able to use Nested Sortables just like you have in WordPress. The problem Im having is getting my head around how I am going to start I already have a column in my database table called …

Member Avatar for mbhanley
0
728
Member Avatar for LastMitch

Hi I'm bit stuck on how to put a period in array. This is my example: <pre> <?php $str = 'I like to eat Strawberry Cheesecake.'; $words = preg_split('@([\W]+)@', $str); var_dump($words); ?> </pre> This is how it's `var_dump()`: array(7) { [0]=> string(1) "I" [1]=> string(4) "like" [2]=> string(2) "to" [3]=> …

Member Avatar for LastMitch
0
270
Member Avatar for Eclip7e

Hello everyone, I want to implement Kruskal algorithm for finding minimum spanning tree in Adjacency Matrix for my program. So I want to write method Graph& getMinSpanningTree() . I have 2 classes: class Graph { public: /* Adds an edge between given vertices. Third argument is a weight of an …

Member Avatar for Eclip7e
0
2K
Member Avatar for FakeTales

I am able to set up a connection via client to server , however i am trying to write to a textfile the variables from a form this form is then sent to the server it is opened up then i exploded the data within the text file , place …

Member Avatar for FakeTales
0
328
Member Avatar for bilal.saim

<?php $say=0 ?> <script> for(var j=0;j<limit;j++) { tipi[j] = " <?php echo "$tipi[$say]" ?> "; gun[j] = " <?php echo "$gun[$say]" ?> "; ay[j] = " <?php echo "$ay[$say]" ?> "; yil[j] = " <?php echo "$yil[$say]" ?> "; <?php $say++; ?> } <script/> //I want to increase $say in …

Member Avatar for diafol
0
193
Member Avatar for <M/>

I am trying to add a feature into my webform that allows users to recieve text messages that confirm their web form submission... and I am kind of lost in doing so... Can someone guide me... I wasn't sucessful with google for the heads up....

Member Avatar for diafol
0
128
Member Avatar for naui95

Hi there, how can I split a string into variables?? better: string s = "one,two,three,four"; // Split string on character comma. string[] words = s.Split(','); foreach (string word in words) { Console.WriteLine(word); } how can I put an incrasing variable (for n splitted words) instead of 'Console.WriteLine(word)' thanks

Member Avatar for JOSheaIV
0
271
Member Avatar for tahity1

I am still new with c programming, I need to create queue with first in first out but it is going last in first out. Can someone give me advice in how to make it work. #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_LENGTH 30 #define NUMOFEMPLOYEE 15 typedef struct …

Member Avatar for VernonDozier
0
125
Member Avatar for Jsplinter

I understand how to write a function to loop through a vector<double> and calculate the mean and standard deviation of its values, but I was wondering if there is a library which I could simply #include<> and then just call a function to compute such values.

Member Avatar for Jsplinter
0
267
Member Avatar for cacadi

So i am doing a program that opens a file that contains grades and shows the average, total, etc.. But at the end I am supposed to make a histogram that would look something like this A= * * B= * * * C= * * * * * * …

Member Avatar for rstralberg
0
465
Member Avatar for AndreRet

I am totally stuck here and found tens of samples on posting to get and set values. What I am trying to do is - 1) Let a user enter a vehicles year model into a textbox in my form (set to post) 2) I then need to get this …

Member Avatar for AndreRet
0
226
Member Avatar for Stuugie

Hi all, I have a procedure that compares release dates to file download dates. I have a download folder that is added to a string Dim strFilePath = "\EconomicDBTemp\DownloadedCSVs\" I've removed the directory but the folder DownloadedCSVs is where I need to search each csv file. However, I am unsure …

Member Avatar for Stuugie
0
180
Member Avatar for amishosh

Hi, I looked all over and since I'm probably not using the right termonlogy I couldn't find anything in Google. Here's what I'm trying to do (in ANSI C). I have a text that represents a series of bytes that looks like this: "08 FF AB 0B 12 76 CD" …

Member Avatar for deceptikon
0
195
Member Avatar for tet3828

I have two forms that share data between eachother. 1. In Designer view of Form2 I establish a public variable. public bool isMyFormValid 2. When I attempt to access the variable in Form1 like this... if (Form2.isMyFormValid = true) { //do this} C Sharp no likey... I get this message: …

Member Avatar for tet3828
0
186
Member Avatar for cholleti.varaprasad

<html> <head> <style type="text/css"> /*#pwidget { background-color:lightgray; width:254px; padding:2px; -moz-border-radius:3px; border-radius:3px; text-align:left; border:1px solid gray; }*/ #progressbar { width:30px; padding:1px; background-color:white; border:1px solid black; height:10px; } #indicator { width:0px; background-image:url("shaded-green.png"); height:10px; margin:0; } /*#progressnum { text-align:center; width:250px; }*/ </style> <script type="text/javascript"> function disp_text() { var w = document.myform.mylist.selectedIndex; //alert(w); var …

Member Avatar for cholleti.varaprasad
0
160
Member Avatar for bikash barad

void main() { unsigned int x=500; int y=-5; if(x>y) printf("hello"); else printf("hi"); getch(); }

Member Avatar for amrita111
0
98
Member Avatar for monkeybut

I recently moved one of my sites to a Red Hat server with MySQL 5.0.22 from a Windows XP server with MySQL 5.5.25a. Now whenever I try to log into the site it will not start the session, but it will work on my Windows machine. Is there a difference …

Member Avatar for monkeybut
0
90
Member Avatar for jg1405

Thanks for the support! I have been working on a program with 7 classes, one the main and one starts the program, and I have been troubleshooting for a few hours trying to see why for one of the output constructors I'm not getting the classes to update the output. …

Member Avatar for Taywin
0
197
Member Avatar for randomkid73

I'm having an issue accessing values of an AJAX response from a PHP script. I'm using an `alert()` for debugging purposes to show the data and it shows "undefined" as things are done below. Here's what I have so far. jQuery AJAX request: $(".edit").click(function(event) { var id = $(this).parents("tr").attr("id"); alert(id); …

Member Avatar for GliderPilot
0
12K
Member Avatar for leesin

Hi everyone, i got a question about the fscanf. I input a file and scan the data in the file. It works good that if there are integers in line1,2,3,4 in the file. However, it does not work good with empty file or the file only has dat in line …

Member Avatar for leesin
0
98
Member Avatar for Ismail Issa

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Linq; namespace Discrete_Structures { public partial class Form1 : Form { int[] array2; int[] array1; int[] value; int num1; int num2; public Form1() { InitializeComponent(); } private void textBox1_TextChanged(object sender, EventArgs e) { …

Member Avatar for JOSheaIV
0
99
Member Avatar for MARKAND911

I have created threads dynamically. static void Main(string[] args) { int ThreadCount = Convert.ToInt32(ConfigurationManager.AppSettings["Threads"]); List<Thread> th = new List<Thread>(); for (int i = 0; i < ThreadCount; i++) { Thread t = new Thread(print); th.Add(t); } foreach (Thread t in th) { t.Start(); } } public void print() { console.writeline("123"); …

Member Avatar for Momerath
0
117
Member Avatar for bobbyraw

Does any one know of a software/program that can create a form. the form would have a drop down list, when your select an item on the list some part of the form would populate with items base on whats selected in the drop down. the other field can be …

Member Avatar for jd0007
0
140
Member Avatar for hwoarang69

note i want to do this code in background class. not in main class. so i have a main class and a background class. getting error at url = getDocumentBase(); also getting error at getImage drawImage background class import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.Rectangle; import java.net.URL; //#2 public …

Member Avatar for JamesCherrill
0
114
Member Avatar for yeliabsamoht

Hello New here I am looking for some information on Splay Trees. I can't find any c++ source code on splay trees. any idea on where to look

Member Avatar for cedricve
0
180
Member Avatar for newbie14

We have a php page inserting into mysql db. The problem all the tables in mysql we have been just using the default collation and character set as the latin1_swedish_ci. All have been working well where I can insert russian character and view it well. But I notice in the …

Member Avatar for diafol
0
415
Member Avatar for marcel.gybels

Improper use of typedef 'TManagerProc' struct TManagerData { public: // Card is inserted callback procedure TManagerProc CardInserted; // Card was activated callback procedure TManagerProc CardActive; // Card was removed from the reader callback procedure TManagerProc CardRemoved; // Invalid card was inserted into the reader callback procedure TManagerProc CardInvalid; // There …

Member Avatar for marcel.gybels
0
664
Member Avatar for chandnigandhi

please suggest me turbo c version for windows 7,32 bit which supports full screen mode and also supports graphics functionality....as soon as possible....

Member Avatar for Ancient Dragon
0
101
Member Avatar for Skeldave

Hi, I am creating an app using PhoneGap and I'm having trouble getting the selected id of a listview item when it is long pressed. I have tried using the JQUeryMobile TapHold event which works but only gets the ID of the listview, not the individual items. $('#listview').bind('taphold', '> li', …

Member Avatar for AleMonteiro
0
756
Member Avatar for HBovenkamp

Good day, I keep running into a very persistent "Could not fine installable ISAM" error when trying to connect to an Excel sheet (office 2010) by opening an OledbConnection Here's my connection string: Dim strCon As String strCon = "Provider=Microsoft.ACE.OLEDB.12.0;ACE OLEDB:Database Password=" & strEnter & ";Data Source= " & strExcel …

Member Avatar for HBovenkamp
0
2K
Member Avatar for ja3n

Hi, I am trying to solve a maze using queues(no recursion) What I've done so far is that I can figure out whether or not the maze can be solved. What my next step should be is to list out STEP BY STEP how the maze will be solved. For …

Member Avatar for ja3n
0
3K
Member Avatar for LastMitch

Hi, I want to know how did I came up with this error when I run my code: `Trying to get property of non-object in line 19.` What does it mean? I want to echo out `My favorite candy is M&M Peanuts.` But instead I echo out `My favorite candy …

Member Avatar for LastMitch
0
1K
Member Avatar for honeybee2090

i want to filter items from list view , i want to remove every kind of items from it but these 202.38.95.66:1080 67.191.234.52:1158 125.88.125.201:1080 65.30.204.106:1188 83.183.96.123:45712 72.74.41.97:46331 69.42.126.106:46486 69.42.126.106:46486 60.241.65.32:47501 60.241.65.32:47501 173.16.5.49:47708 173.16.5.49:47708 93.176.11.69:48293 93.176.11.69:48293 71.114.46.27:48505 i just want to show these items in list

Member Avatar for AndreRet
0
989
Member Avatar for SphirosOkelli

I have been working on a program for class- yes this is homework. I have completed the program, it runs- yay newbie me- but it does not run correctly. I am working with functions, wether referenced or not, and I have passed several values to a function inorder to calculate …

Member Avatar for SphirosOkelli
0
111
Member Avatar for ktsangop

Hello everyone. As the title suggests i need to implement a type of timer based function inside a UI Thread in MFC. Although CWinThread is a UI Thread and has a message pump it does not have a Timer function as CWnd::OnTimer Is there any way i can implement a …

Member Avatar for ktsangop
0
770
Member Avatar for katsmiley

suppose i have defined constant using #define MAX 5 and i am using it in function called find() as shown below: find() { if (MAX==5) { //do this; } else { //do this; } } ** If i am calling this function 100 of times** then which way is better …

Member Avatar for deceptikon
0
165
Member Avatar for phorce

Hello, So basically, I am trying to create a system based on the Singleton Pattern and I'm confused. If I have an Animal class, as well as a Cat class which is derived from Animal and then using a Singleton class will create a single object of which-ever class has …

Member Avatar for L7Sqr
0
228
Member Avatar for Mitch275

Hi Guys, I'm currently making the transition from matlab to python and am having some difficulties with nesting for loops. Below is a rough example of what I'm trying to do. However when this executes abc is only returned as [] and not a 1D array of each iteration. Any …

Member Avatar for TrustyTony
0
180
Member Avatar for gwolf1

Hi Everyone, I was wondering how I can implement a hashmap function in C. I have to define a struct: struct hashmap; typedef struct hashmap hashmap; This has to be a multimap so that a key can point to different values. If also need to initialise this hashmap like so: …

Member Avatar for deceptikon
0
575
Member Avatar for TheQuestor

I need some help here. I am writing a little desktop app that monitors my ToDo database and whilst it works great when run once, it kind of freaks out when I run it from a timer. As in all the labels start repeating. Below is the entire code. Imports …

Member Avatar for TheQuestor
0
387
Member Avatar for sachi059

Hello i found that only register storage class is allowed in function.But it gives error when i mae it extern auto,extern static... Hello i found that only register storage class is allowed in function.But it gives error when i mae it extern auto,extern static... #include<stdio.h> int sum( int ,int,int ); …

Member Avatar for deceptikon
0
877
Member Avatar for freedomflyer

I want to know how I can access the data stored in these variables...but I have no idea what N0$ for example stands for and how to extract the data from there into a register, for example. N0$: .byte DASH,DASH,DASH,DASH,DASH,END ; 0 N1$: .byte DOT,DASH,DASH,DASH,DASH,END ; 1 N2$: .byte DOT,DOT,DASH,DASH,DASH,END …

Member Avatar for deceptikon
0
178
Member Avatar for LastMitch

Hi I don't know how to do this. How can I delete a word from my array. $cheesecake = array("Apple Cheesecake", "Blueberry Cheesecake", "Strawberry Cheesecake", "Mango Cheesecake", "Raspberry Cheesecake"); I want to take out the `Blueberry Cheesecake` from the array. How do I do that? This is what I got …

Member Avatar for paulinetaylor85
0
257
Member Avatar for manuel.sabu

case 4: { cout<<"Enter the word you want to delete: "; gets(b); f1.open("anotherf.txt",ios::in); f2.open("tempf.txt",ios::out); while(!f1.eof()) { f1>>a; i++; if(strcmp(a,b)==0) { j=i; } } i=0; while(!f1.eof()) { if(i!=j) { f1>>a; f2<<a; } i++; } f1.close(); f2.close(); f2.open("tempf.txt",ios::in); f2.seekg(0); f1.open("anotherf.txt",ios::out); while(!f2.eof()) { f2>>a; f1<<a; } goto menu; } I am trying to …

Member Avatar for NathanOliver
0
167
Member Avatar for branding4you

Im stuck now it is day four, I have a bunch of clients that upload documents to the web server, the code works if I maually type the names of the documents into the array, but that is not what I want, Mysql has table called "transact" with a field …

Member Avatar for branding4you
0
776
Member Avatar for lo0lo0999

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Bank1 extends JFrame { private JLabel l1; private JLabel l2; private JTextField t1; private JPasswordField p1; private JButton b1; public Bank1() { super("Bank System"); Container container = getContentPane(); container.setLayout(new FlowLayout()); l1=new JLabel(" ID :- "); container.add(l1); t1=new JTextField(25); container.add(t1); l2=new JLabel(" Password …

Member Avatar for mKorbel
0
217
Member Avatar for JamesCherrill

Like me you may be curious about the "closures" or "lambda expressions" that were supposed to be in Java 7 and are now the centre-piece of Java 8 (due next year). Also like me you may have Googled for some info, and discovered a smattering of technical articles explaining the …

Member Avatar for JamesCherrill
0
170
Member Avatar for ddanbe

For anyone who likes to do something with sets in C#, this can be a starting point. The full project (VS 2010) is also included. Have fun with programming!

0
307
Member Avatar for nitin1

Can you please give me hints or can you teach me how can i convert my simple client server program(in which only client can send any number of messages it want to server) to chat server client program ? I am doing this by trivial way, but still only server …

Member Avatar for nitin1
0
2K

The End.