64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for james.lu.75491856

How do you get this: ![78dfa722ac966be9e9aa3a44ef62d566](/attachments/large/3/78dfa722ac966be9e9aa3a44ef62d566.PNG "78dfa722ac966be9e9aa3a44ef62d566") with pythoncard?

Member Avatar for vegaseat
0
108
Member Avatar for nikolaos

I want to list all files and directories from a start point using recursion. Here is my code. import java.io.File; import java.io.IOException; public class RecursiveWalk { void recursive (File[] allfiles) throws IOException{ for (File file : allfiles) { if (file.isDirectory()) { System.out.print("directory:"); System.out.println(file.getCanonicalPath()); recursive (file.listFiles()); } else { System.out.print(" file:"); …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Labdabeta

Hello, As may be apparent from my previous posts, I am in a "If its worth doing, its worth overdoing" sort of competition with a friend of mine. Our goal is arbitrary precision integer arithmetic. I think I am close to getting the data storage working, but now I want …

Member Avatar for Labdabeta
0
1K
Member Avatar for satti

How to popup alert message to a 2nd client end when a new data enter in database done by client1 on network ? for example me and my friend using an application for data entry, when i enter any data through software he get an alert message that new data …

Member Avatar for Begginnerdev
0
126
Member Avatar for joshmac

I have a query in which I insert data with json_encode(), and I am trying to receive that data with json_decode(), however, I get an error message that is something like this: stripslashes() expects parameter 1 to be string, array given in I have this database table that has about …

Member Avatar for joshmac
0
610
Member Avatar for tanha

Hi, I have been reviewing and reading the docs for the VLCJ but unfortunately could not come to a conclusion of configuring and running it correctly. It is appreciated if someone placing an example, snippet or tutorial of that.

Member Avatar for tanha
0
2K
Member Avatar for klemme

Hi all, I would like to get my head around how I can create a singleton db pattern. What I have now works though, but as I know its not a singleton - My idea is this: * I would like a class that holds all config information and them …

Member Avatar for pritaeas
0
389
Member Avatar for ddanbe

Could one be preferred over the other in terms of performance? Both option have to traverse the whole array somehow to find out which string contains an 'a'. Or does it not matter much and is it just a syntax thing. Or are there better ways to do this? All …

Member Avatar for Ketsuekiame
0
286
Member Avatar for Jahliah

Is it possible to simplify the codes below by using while loop? Match firstMatch1 = matches1[0]; Match firstMatch2 = matches1[1]; Match firstMatch3 = matches1[2]; Match firstMatch4 = matches1[3]; Match firstMatch5 = matches1[4]; Match firstMatch6 = matches1[5]; Match firstMatch7 = matches1[6]; Match firstMatch8 = matches1[7]; Match firstMatch9 = matches1[8]; Match firstMatch10 …

Member Avatar for Jahliah
0
124
Member Avatar for AmrMohammed

Greetings, I want to get all the last written files in a specified directory based on date and copy them to another directory.

Member Avatar for tinstaafl
0
166
Member Avatar for Fangling

Hi, i have this query: cmd.CommandText = "SELECT DISTINCT PaperNo,ModuleCode1,ModuleCode2,ModuleCode3, ModuleCode4, ModuleCode5, ModuleCode6, ModuleCode7, ModuleCode8, ModuleCode9 FROM(PapersList)ORDER BY PaperNo ASC" and i have this code to loop: Dim dt3 As New DataTable dt3.Columns.Add("AdminNo", GetType(String)) '/*Add column AdminNo dt3.Columns.Add("PaperNo", GetType(Integer)) Dim curmodule As String = String.Empty For Each dr2 As DataRow …

Member Avatar for Fangling
0
2K
Member Avatar for Fangling

i have dt1 from a query cmd.CommandText = "SELECT DISTINCT AdminNo, ModuleCode FROM(SEGDATA)ORDER BY AdminNo ASC, ModuleCode ASC" Dim dt1 As New DataTable dt1.Load(cmd.ExecuteReader) DataGridView1.AutoGenerateColumns = True DataGridView1.DataSource = dt1 another query dt2 cmd.CommandText = "SELECT DISTINCT PaperNo,ModuleCode1,ModuleCode2,ModuleCode3, ModuleCode4, ModuleCode5, ModuleCode6, ModuleCode7, ModuleCode8, ModuleCode9 FROM(PapersList)ORDER BY PaperNo ASC" Dim dt2 …

Member Avatar for Fangling
0
137
Member Avatar for frenchfrog

Hello ! I'm trying to do a similar thing as http://www.daniweb.com/software-development/python/threads/392697/calling-matlab.m-file-from-python. I managed to have Matlab launch, and run my Matlab file as the GUI of my matlab function is shown on screen. However it only stays on screen for 1 second, and Matlab closes ! import subprocess as sp …

Member Avatar for Gribouillis
0
2K
Member Avatar for dalebryant76

IF I wanted to change the text inside of a RichTextBox on the click of a button. What code do I need? So far I have: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click RichTextBox1.Text(???? What goes here? because I'm getting Property access must assign to the property …

Member Avatar for dalebryant76
0
197
Member Avatar for kedxu

The setSize() method of a Frame only resizes the frame itself, not the canvas inside. Is there a way to resize a frame based on what size you want the interior to be? I made this image to explain what I'm talking about: I used setSize(500,500); http://oi44.tinypic.com/4uymur.jpg I suppose I …

Member Avatar for kedxu
0
181
Member Avatar for kedxu

If I am given the exact coordinates of three vertices in image-space (as in, the numbers are not integers, but can be rounded to find their location on the screen), how can I determine which pixels are inside the triangle and should be colored? If you look at the diagram …

Member Avatar for kedxu
0
421
Member Avatar for SnehalBPatil

Hello I am working on project In django(Python web framework) where I want to call matlab file(.m ) file from the server. I tried subprocess module from the python [CODE]>>> p = Popen("/Applications/MATLAB_R2009a.app/bin/matlab.exe -nojvm -nosplash -nodisplay -r /home/spatil/LineShapeKin_Simulation_4/LineShapeKin_Simulation_4.1/Matlab_code/Simulate.m",stdout=PIPE)[/CODE] But its giving me following error [CODE]Traceback (most recent call last): File …

Member Avatar for Gribouillis
0
2K
Member Avatar for ram619

Hello, This code is from "Test Your C Skills" Book. In the book they have mentioned that this code won't work, and thats true. But I am not able to understand, why its not working. Please explain why it gives error. #include<stdio.h> #define SWAP(a,b,c) c t;t=a;a=b;b=t; int main() { float …

Member Avatar for ram619
0
195
Member Avatar for MasterHacker110

I am trying to find a scripting language for some simple tasks etc... I tried python - dont like the whitecpace thing. Ruby - just a weird language. Javascript on the other hand has syntex that I like - C/C++/C#/Java like - and it uses curley braces. But the draw …

0
85
Member Avatar for kedxu

So I have a PrintWriter as a class variable which is created upon initialization. I want to make sure it gets closed when the Applet closes, but overriding the destroy() method doesn't seem to work (a System.out.println inside the method does not appear). 1. should I be doing this in …

Member Avatar for kedxu
0
223
Member Avatar for archangel1177

So what I am trying to do is copy a row of information when an item in the 'k' column which will say 'recieved'. So what my code needs to do is copy the row of information on that row that says 'recieved' to sheet 2 and then remove it …

Member Avatar for archangel1177
0
206
Member Avatar for JohnKelly

Dear all I have a private MSMQ on a server in workgroup mode (SBS 2011) On a client I can see the queue using System.Messaging.MessageQueue.GetPrivateQueuesByMachine(servername) and am able to read the name of the queue. I am able to write to the queue but am unable to retrieve anything from …

Member Avatar for Begginnerdev
0
139
Member Avatar for nchy13

This is the code which put an extra line to the std::string array. I am here trying to print last k lines of file. Any help is appreciated. #include <iostream> #include <fstream> #include <string> using namespace std; //file.exceptions(ifstream::eofbit | ifstream::failbit | ifstream::badbit); void print_last(unsigned k, string file_name) { string *data=new …

Member Avatar for nchy13
0
825
Member Avatar for UKnod

I have writen a few DB programms in ADO.net now, and I hate it. It is riddle with confusion and problems, and because of the ridiculous idea of using all the data locally, it makes networking neigh on impossible and incredibly slow, so please please someone show me how to …

Member Avatar for UKnod
0
746
Member Avatar for old_apache

hello fellas i'm stuck in this function: function getDataForPagination() { $sql = "select * from t_book limit 1, 15; $result = mysql_query($sql); if (!$result) return false; $num_rows = mysql_num_rows($result); if ($num_rows == 0) return false; $result = dbResultToArray2($result); return $result; } i want to make the above function more flexible …

Member Avatar for old_apache
0
207
Member Avatar for murali2489

Hi All, I am trying to write a code which checks whether the username and password stored in the database matches to the string created locally and displays it in console. The program connects to the database and gets the string from the table space correctly, but the problem is, …

Member Avatar for murali2489
0
289
Member Avatar for showman13

Hopefully this will make sense and there is a solution in a single query... if not, I'm sure i can do it using multiple queries. I wrote a query that I thought would work, but didn't take into consideration that some of the records won't have data coming from one …

Member Avatar for showman13
0
213
Member Avatar for Rahul47

What is possibly wrong with following script that caused it to scream ? <!DOCTYPE html> <html> <head> <script> function formSubmit() { document.getElementById("form1").submit(); } </script> </head> <body> <form id="form1" action="test.php" method="POST"> Name: <input type="text" name="name" ><br/> <input type="button" onclick="formSubmit()" value="Submit" /> </form> <?php $name1=$_POST['name']; echo "<br> Your name is $name1 . …

Member Avatar for JorgeM
0
180
Member Avatar for Mr.M

Hi DW I've created a project on NaviCoder for java and when I tryied to export the project I had a problem then I redo my project using the Netbeans and that where I was then able to export or should I say build the jar file which is an …

Member Avatar for JamesCherrill
0
255
Member Avatar for brandon66

Hello, I am wondering how i would connect PHP to Microsoft Exchange? I have a form set up that when it gets submitted i want it to be emailed to a certain person the problem im having is im not sure how i would get the connection to exchange.

Member Avatar for brandon66
0
11K
Member Avatar for major_lost

Hello all; I have a random data file that I created with code. The file contains strings that represent items I want to display in a combobox control. The strings contain multiple fields with headers that describe the data to follow. I have NO problem displaying any single field of …

Member Avatar for Reverend Jim
0
328
Member Avatar for bojan123

Hi, I have a problem with PHP error is: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4320001 bytes) in /home/explorer/public_html/secure/foto/libs/upload/Image.php on line 480 Image.php code > http://pastebin.com/Wu8cHYUx Please help

Member Avatar for bojan123
0
250
Member Avatar for Eruditio

I've written a script to alter images in a number of Excel workbooks. In order to properly access the image information, I need to iterate through all Sheet.Shapes on a particular worksheet. I'm having trouble with grouped worksheets. **How do I ungroup worksheets from VB.NET?** I've tried both activating and …

Member Avatar for Eruditio
0
790
Member Avatar for Learner010

there are 10 labels and 1 button in the form and i want to set some properties using code(which will applicable to lable only) , and for this i used the code For Each lbl As Label In Form1.Controls lbl.Font = New Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Point) lbl.Top = settop lbl.Left …

Member Avatar for Learner010
0
3K
Member Avatar for Eruditio

I've written a script to change all images in many hundreds of Excel documents to a .png format in order to reduce their file size (the largest were coming up on 25MB). **If the images in the Excel document are not in their original orientation** i.e., if they have been …

Member Avatar for Eruditio
0
378
Member Avatar for murali2489

Hi All, I am new to use of database in Java. I am trying to write a simple java application which connects to my Database and sends some query and retrieves the output. I have downloaded MariaDB and then created a database named iff and created tablespaces which has some …

Member Avatar for murali2489
0
524
Member Avatar for Assembly Guy

For fun, I want to write my own image format. I'm going to have to draw pixels to a Window, but I haven't found any nice, simple, light librarys that can do this. I've thought about using OpenGL, but it's kind of messy and over-complicated to write code for and …

Member Avatar for Assembly Guy
0
394
Member Avatar for Mikey12345

Hi all, Need help, How can i read a dat file in c# and display data in datagridview. the data is in a comma format. Ie a,b,c,d etc....... many thanks,

Member Avatar for dskamburapola
0
782
Member Avatar for mmcdonald

Hi all, I've been playing around with PHP for a while now and never really studied hardcore (Just used it as best as I could on a whim) but I've now decided to sharpen the skill and get much better. I'm playing around with my first class and would like …

Member Avatar for mmcdonald
0
509
Member Avatar for Rahul47

Hi Folks, Recently I installed WAMP server for web development, during my first run I tried My Sql Console, but I was gettting error while creating a new table. I am surely missing something. I googled for it but cannot get what i was looking for . . . Am …

Member Avatar for Rahul47
0
145
Member Avatar for kudakwashe.kadzungura

I'm trying to do a project at schooL but I need help on how to choose a simple working system for a certain company.

Member Avatar for kudakwashe.kadzungura
0
156
Member Avatar for Priti_P

Hello, I have one query, $sql_query = db_select('Int_schedule_Table', 'c'); //name given as **c** $sql_query->fields('c',array('Int_Schedule_Id', 'cand_id', 'Int_Panel_Id', 'Interview_Date', 'Interview_Time','Interview_feedback_status', 'Interview_for_vacancy', 'hr_name', 'Int_Type')); //took fields from C $sql_query = $sql_query->extend('TableSort')->extend('PagerDefault')->limit(20); // I fired qury here $result = $sql_query->orderByHeader($header)->execute(); // after this I have simply applied my logic of displaying fields on $result. …

Member Avatar for Priti_P
0
147
Member Avatar for entropic3105

This is probably a very commonly asked question but is it possible to make an app with python?

Member Avatar for svf_
0
183
Member Avatar for Papa_Don

Hi group! I hope all is well! As part of my connection string and database insert/update, I have an exception command in it to display an error message. Can this also be read or made into a true/false answer? I would like to have my program run very short command …

Member Avatar for Reverend Jim
0
184
Member Avatar for tanha

Hi, I have a png image wihtout background and want this png to be my JFrame where the transparent section must be transparent; I have tried different ways I used the setOpaque(), setOpacity(), ImageIO but no clue. I want only my transparent png as JFrame. Any idea and solution will …

Member Avatar for tanha
0
2K
Member Avatar for alex9620

Hi, This question is related to the below. http://www.daniweb.com/software-development/cpp/threads/352685/error-c3861-menu-identifier-not-found I used that to solve my issue. What I would like to understand is why the function prototype is to be declared before the main function? In my textbook that I am following the function prototype wasn't there. I did as …

Member Avatar for MandrewP
1
397
Member Avatar for entropic3105
Member Avatar for Priti_P

I have a directory called 25 and I want to print the list of files in that directory using PHP. How can I ?

Member Avatar for Priti_P
0
351
Member Avatar for joshmac

I few weeks ago, I posted some code that I need help converting to MySQLi, now I need some help converting it to PDO. The code allows you to enter queries and commands and brings back the column headings and the information that I am looking for into a table. …

Member Avatar for joshmac
0
3K
Member Avatar for nchy13

I stumbled upon the fact that one can't bind a temporary variable to a reference unless it is a constant and found it to be indeed true in the given code. However, i am not able to find out the difference in my other code snippet where I didn't use …

Member Avatar for nchy13
0
840

The End.