199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abhi10kumar

How I replace my eregi_replace with preg_replace expression? eregi_replace($word, '<font style="background:' . $color . '";>\\0</font>', $text); and I how do I check preg_replace function is executed or not?

Member Avatar for cereal
0
324
Member Avatar for rhys1619

Hi, at the end of the maze you see a red square. I was trying to make it say "you win , would you like to play again y or n". i have tried using def mes and gameover = false but nothing seems to work. would help a lot …

Programming os-x python
Member Avatar for Gribouillis
0
1K
Member Avatar for can-mohan

Hi All, After compiling below code , I am getting below error. error: cannot convert a* to b* in assignment. it seems to be assignment doesn't work with pointers . Can anybody throw some light on this? i tried to use unique_ptr by transfering the ownership from a to b …

Member Avatar for can-mohan
0
350
Member Avatar for gogs85

Hi, i have was make small social network website and now i need to use RESTful API for hybrid application. Social network website i make in php, mysql. How to make API now? Do you have some tutorial for API that integrate in existing website? Thanks!

Member Avatar for divyakrishnan
0
138
Member Avatar for jeffersonalomia

Good day !! I want to sort the values of the array in vb6. Here's the sample of an array that i want to sort `arr() = {21,2,33,"c","a"}` is it possible to sort an array with values of string and integer.** If not**, is it ok if you specify how …

Programming visual-basic
Member Avatar for jeffersonalomia
0
4K
Member Avatar for rahul208708
Member Avatar for williamsmith007
Member Avatar for TheFearful

Hey everyone, I have a question about prepared statements for PHP and mySQL. I have been able to do them for a single row such as ID and such for a particular object, but is it possible to do a SELECT all command as well? I want to be able …

Programming engineering mysql php
0
215
Member Avatar for Nether_1

So this is more work onto the project I've been working on with the browser and search database stuff, so here goes. I'm attempting to have a large amount of .txt documents stored on an ftp server, and then allow these files to be downloaded, edited, and so on so …

Programming client-server python
Member Avatar for Gribouillis
0
433
Member Avatar for kgizo

Good day I have a table which I have already uploaded a list on however I want to return all the records which are duplicated and have a year between 2014 and 2015, i.e if I have a table like this Year IDNumber FirstName Surname Email 2014 8809254 Tom Jackson …

Member Avatar for rproffitt
0
421
Member Avatar for showman13

I have a member table from which I'm trying to create a query using these fields mem_id / username / create_date / mem_status / ref_id / qualify_id A new member is mem_status 'F' with ref_id equal to the mem_id of their referrer and qualify_id of zero When the member upgrades, …

Member Avatar for showman13
0
333
Member Avatar for Ketaki_2

Hi, **Python script** from xml.dom import minidom doc = minidom.parse("wind7.xml") Ts = doc.getElementsByTagName("TimeStep") for Ts in TimeStep: Part = TimeStep.getElementsByTagName("Particle")[0] for Part in Particle: Pcid = Particle.getAttribute("Nr") Lat = Particle.getAttribute("x") Long = Particle.getAttribute("y") print("Pcid:%s,Lat:%s,Long:%s" % (Nr,x.firstChild.data,y.firstChild.data)) I have written this python script to extract XY data, but am getting lot …

Member Avatar for tinstaafl
0
474
Member Avatar for Mr.M

Hi Dw. Has anyone worked with TCP/IP socket in Windows Phone? I'm using Windows Phone 7 and I would like my app to communicate with my server which my client will send some data to the server and the server will also send some data to the client, It's more …

Member Avatar for rproffitt
0
453
Member Avatar for Nether_1

I'm attempting to write a simple search engine (which you might know if you read my previous question) that runs off of tags combined in a list. Currently it's just in a basic ASCII output, with things like print functions and the like. def main(): active = True done = …

Programming python
Member Avatar for Gribouillis
0
364
Member Avatar for සශික

heY, I need help.... I want to know about concept of combination between software and database on enterprise level software. Recently I develop software using vb.net. Then I install mysql and connect these two software. But this isn't the way enterprise level software. Ex : In Quick Book Accounting package …

Member Avatar for Mr.M
0
282
Member Avatar for keshav1234

import java.io.*; class projj { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18; int c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,c31,c32,c33,c34,c35,c36,c37,c38,c39,c40,c41; String name,n; public void game()throws IOException { System.out.println("YOU ENTERED 1.PS4 THE CHOICES ARE"); System.out.println("1.SPORTS"); System.out.println("2.RACING"); System.out.println("PLEASE ENTER YOUR CHOICE"); int ch=Integer.parseInt(br.readLine()); switch(ch) { case 1: System.out.println("\f"); System.out.println("1.CRICKET"); System.out.println("2.FOOTBALL"); System.out.println("PLEASE ENTER YOUR CHOICE "); int ch1=Integer.parseInt(br.readLine()); switch(ch1) { …

Member Avatar for Keshav_1
0
131
Member Avatar for Mr.M

Hi Dw. What is the correct way to write an sql query like this? `"select * from MyTable where username ='username' And password ='Password'"` in vb.net. My problem is that on my database I have some usernames repeated but they differ by their passwords. Each record has a different information. …

Member Avatar for Mr.M
0
252
Member Avatar for Gribouillis

This snippets contains a python program to find a shortest solution to the problem of the farmer who whishes to cross a river. The boat can only contain two things, including the rower. The farmer comes with a wolf, a duck and a bag of corn, and he can't leave …

Member Avatar for Gribouillis
0
2K
Member Avatar for Arzak

Hi everyone, I wanna ask about `Bytes` from `ifconfig eth0`. Like us know, menu's from `ifconfig eth0` is... **eth0 Link encap:Ethernet HWaddr 00:0F:20:CF:8B:42** **inet addr:217.149.127.10 Bcast:217.149.127.63 Mask:255.255.255.192** **UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1** **RX packets:2472694671 errors:1 dropped:0 overruns:0 frame:0** **TX packets:44641779 errors:0 dropped:0 overruns:0 carrier:0** **collisions:0 txqueuelen:1000** **RX bytes:1761467179 (1679.7 …

Programming python
Member Avatar for Arzak
0
2K
Member Avatar for Peter_30

I have been working on this to replace every code that is shared on post in my website but is not working for me. I need everything that appear inside `<pre><code></code></pre>`to replay all the tags and give it a color using css. please if there is any simple way to …

0
138
Member Avatar for සශික

I want to know about develop vb.net project by LAN users... I Find about this internet and I couldn't find..... Please give me steps to do that ....

Member Avatar for rproffitt
0
339
Member Avatar for MatthewYeend

I've created a new member for a website (that I'm making for myself) to see if it works and when I register, I can get in, but when I go to log in after, it won't let me log in and I can re-create the same member multiple times. The …

Member Avatar for hielo
0
410
Member Avatar for williamsmith007
Member Avatar for TheFearful

Hey everyone, I have created a PHP web application that allows people of different permissions to do certain things such as read-only, add, update, or delete. That works pefectly. However, it came across my mind that I have not done anything to prevent against SQL injection or XSS attacks. I …

Member Avatar for TheFearful
0
393
Member Avatar for DGULLIVER

Good morning, I have 2 client applications which do the same thing. The first app which is written in VBA(MS ACCESS) and the other is ASP.Net. We can have multiple items for a client so we use a transaction id. When the access application starts a new transaction the app …

Member Avatar for rubberman
0
310
Member Avatar for ramsiva

Below is my code function getWorkingDays($startDate, $endDate){ $begin=strtotime($startDate); $end=strtotime($endDate); if($begin>$end){ echo "startdate is in the future! <br />"; return 0; }else{ $no_days=0; $weekends=0; while($begin<=$end){ $no_days++; $what_day=date("N",$begin); if($what_day>5) { $weekends++; }; $begin+=86400; }; $working_days=$no_days-$weekends; return $working_days; } } $beginday=date("2016-04-01"); $lastday=date("2016-06-30"); $nr_work_days = getWorkingDays($beginday,$lastday); echo $nr_work_days; ?> above code is giving count …

Member Avatar for hielo
0
241
Member Avatar for cambraydesign

I am trying to pass a javascript variable into another function and keep getting undefined errors etc. In the first function I have chatName that I want to use as the display title only in the second function, you can see where I want it to appear in the div …

Member Avatar for cambraydesign
0
410
Member Avatar for 1stDAN

How can i simply review Q/A on forum databases??? Of course, a couple of years ago, I simply called up daniweb.com, selected a forum, e.g. internet, databases, mysql and then I had seen Q/A on mysql database. Now I am back (because of your mails "we miss you 1StDAN) and …

Member Avatar for Reverend Jim
0
195
Member Avatar for babaji01234

I am newbie to Angular Js. I am trying to use date range filter between two dates which will show the stock within that date. Here is my code. HTML Code: <div ng-app="myApp" ng-controller="myCtrl"> <div> <table> <tr> <td>Start Date</td> <td><input type="text" name="S_Date" ng-model="startDate"/></td> <td>End Date</td> <td><input type="text" name="E_Date" ng-model="endDate"/> </tr> …

0
248
Member Avatar for naheedkassam

I have the following code is asp.net <%@ Page Title="" Language="C#" MasterPageFile="~/Site02.Master" AutoEventWireup="true" CodeBehind="Tasks.aspx.cs" Inherits="DMS.Tasks" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <div class="row-fluid sortable"> <div class="box span5"> <div class="priority high"><span>Assigned By Me</span></div> <div class="task high" runat="server" id="Task01"> <div class="desc"> <div class="title">Test 45</div> …

Member Avatar for naheedkassam
0
740
Member Avatar for Siberian

I have installed Node.js but without going deep into Node at this point all I want to do is use an optimizing tool for Node. The instructions are straight forward but they are not working. I'm hoping someone can help get me started, the tutorials I've watched haven't been helpful.

Member Avatar for Siberian
0
131
Member Avatar for Nether_1

I'm creating a program that allows you to do a whole ton of stuff, basically just built to make my life a little easier on my pc. However, the idea I had was that I could have a form of 'settings bar' where I could edit the settings (duh) of …

Programming python
Member Avatar for Gribouillis
0
806
Member Avatar for Aeonix

$city = "Amersfoort"; if ($stmt = $mysqli->prepare("SELECT District FROM City WHERE Name=?")) { $stmt->bind_param("s", $city); $stmt->execute(); $stmt->bind_result($district); $stmt->fetch(); printf("%s is in district %s\n", $city, $district); $stmt->close(); } This brings many questions: - What is `s` on the line 4? Do I need to bother with that? - What if I …

Member Avatar for diafol
0
240
Member Avatar for doug65536

I have a project that uses DirectSound to play streaming sound. I use SetThreadpoolWait to get a threadpool callback every time the notification (AutoReset) events are signalled. (To fill the streaming buffer with more audio). The new Win7 threadpool API requires you to use SetThreadpoolWait to schedule a new wait …

Member Avatar for Klaus_1
0
562
Member Avatar for myhope

hi, all i am new in php developing i need to know how i could make a user data hidden or inactive to the viewer of my website without deleting this user data from my database can i do that using php code? if yes what is this coding criteria …

Member Avatar for Er Richa
0
3K
Member Avatar for Nathan_6

Hi, everyone! I have to make a function which would get a c-string of an inputted text and it would output the number of times each unique word occurs in it. Of course, I must use c-strings [yeah yeah, I know but that is what the assignment is]. Here's my …

Programming c++
Member Avatar for Nathan_6
0
402
Member Avatar for ktush

Hi, I am trying to plot live data reading them from a txt file. The interesting thing is that it works fine without the animate function and I am not sure what is going on when I introduce this function. The code is appended below. from datetime import datetime import …

Member Avatar for tinstaafl
0
466
Member Avatar for riahc3

I have the following: string oledbcmd = ""; string constr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Excel.xls;@Extended Properties='Excel 8.0;HDR=Yes;"; oledbcmd = "Select top (1) * From [CLIENTES$] ORDER BY id desc"; OleDbCommand oconn = new OleDbCommand(oledbcmd, con); OleDbDataAdapter sda = new OleDbDataAdapter(oconn); DataTable data = new DataTable(); sda.Fill(data); It fails. What is wrong with …

Member Avatar for riahc3
0
297
Member Avatar for Tenck

I'm currently reading a huge Python book. I've just written my first Python code (from this book). It's [CODE]import sys print(sys.platform) print(2 ** 100) x = 'spam!' print(x*8) [/CODE] It works fine and I get the results I want. The only problem I have right now is running it off …

Member Avatar for rproffitt
0
2K
Member Avatar for can-mohan

Hi All, Below is the code of implementation of aggregation in c++. In this code class bar object will be contained in class a but class a won't act as a owner of class bar and due to this bar object is deleted after class a's life time ends. Now …

Member Avatar for StuXYZ
0
218
Member Avatar for NEwB!e

Help me please! below is a part of the code which causes the error. int B[996]; for (j = 0, k = 0; j < (N / 6); j++){ if (A[j] == 0){ continue; } B[k++] = A[j]; } //팀원이 여섯명인 팀만의 순위대로 저장한 배열을 새로 만듭니다. int SUM[167] = …

Member Avatar for AssertNull
0
225
Member Avatar for MWAMBA
Member Avatar for iFrolox

Hi, I got multiple threads in different classes created in this manner: private ThreadStart someName_TS; public Thread someName_Thread; public void someName() { someName_TS = new ThreadStart(someNameThread); someName_Thread = new Thread(someName_TS); someName_Thread.Start();} } private void someNameThread() { while(!Shutdown) { //Do heavy work } } The heavy work is set to a …

Member Avatar for iFrolox
0
433
Member Avatar for Doogledude123

Hey everyone, I'm looking for some help with coming up with a system to communicate data between client and server sockets. I was thinking of a command system, but that would only work when the client is sending a request to the server, not when the server is returning data …

Member Avatar for JamesCherrill
0
380
Member Avatar for sukumar paul

sorry for this silly question, i would like to learn ORACLE but i dont know from where should i start and what toopics should be covered? i know sql.so i like to start pl/sql. please suggest me what topics should i cover?

Member Avatar for sukumar paul
0
186
Member Avatar for JOSheaIV

Alright this one has me stumpted. I have a piece of code to do TCP Listening running on a thread that was executed from the ThreadPool, using this little one liner `ThreadPool.QueueUserWorkItem(ServerListener);`, that will continue to run until a status flag is altered. When the thread has ended I need …

Member Avatar for rubberman
0
289
Member Avatar for Aeonix

`INSERT INTO 'members' ('username', 'password', 'email') VALUES ('axe', 'axe', 'weql')` - `#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''members' ('username', 'password', 'email') VALUES ('axe', 'axe', 'weql')' at line 1`

Member Avatar for cereal
0
162
Member Avatar for Regan_1

Hi there! I am having trouble figuring out what is wrong with my code also I'm kinda new to Python. I'm trying to get variables to one class to another class then return it back. Here is my code: from tkinter import * from tkinter import ttk class Logic: def …

Member Avatar for Regan_1
0
345
Member Avatar for can-mohan

Hi All, In below code i am surprised to see destructor for rectangle class is not being called though base class destructor for IShape is virtual. below is the output of below programme: draw the rectangle draw the circle draw destructor deleting circle **deleting the Rectangle** is missing from output …

Member Avatar for can-mohan
0
271
Member Avatar for AntonyRayan

Hi, In an excel file, I have 10 headings and that file contains more than 6000 records. I upload file using oleread.inc and excelreader file. It takes time to upload recods in table minimum 4 - 6 minutes. How to decrease the time and insert records in table fastly.

Member Avatar for urtrivedi
0
189

The End.