64,152 Solved Topics
Remove Filter ![]() | |
Hie everyone, I am trying to develop a GUI through hard coding. I encountered a challenge: I created a Jframe and onto this I added a JPanel. **I assigned thge flow layout manager of the frame to null**(because i want to do the positioning of my components manually) The program … | |
''' in Python 3.4 Attempting to parse and print one line (actually a number)from the downloaded code from yahoo sourecode using regex to pull the number that is located at the (.*?). I've tried everything I can think of to get this to work - I expect the problem is … | |
I have the following struct definition: struct finfo { string filename; long fsize; bool operator() (finfo i, finfo j){return (i.fsize > j.fsize);} } fstruct; And the following vector definition: vector<finfo> fdata; In the code I use the following statement to sort the vector elements by fsize: sort(fdata.begin(),fdata.end(),fstruct); This works perfectly … | |
Hi ive been trying to InvokeMember onmouseup to close a banner in WebBrowser Control.. <div id="layer1" style="height: 0px; left: 240px; position: absolute; top: 30px; width: 10px; z-index: 1;"> <span onmouseup="document.getElementById('floatLayer2').style.display='none'"> <img alt="" border="0" height="12" src="http://www.streamking.info/images/close.png" width="12" /></span></div> PLease!!!! Help!! Thank You... | |
Hi, All, I am instructed to develop a console application which monitors a process. It is now done but the problem is when I'm running it the CPU usage increases up to 100%, kindly check below code for some enhancement: Console App: Sub Main() While True System.Threading.Thread.Sleep(1000) If IsProcessExist() = … | |
Hello Guys, How would I have a button that when I click skips the calendar forward one month from the selected date? I'm a bit confused as there is no skip option or anything. Regards, Luke | |
This code gets the data from the table to show in a table for the user using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Collections; using System.Collections.Generic; using System.Text; namespace Form { public class RelUse { public DateTime Date { get; set; } } public RelUse() { … | |
I have the following table User in my database Name(Varchar) DateOfBirth(datetime) Age(int) Name(Varchar) | DateOfBirth(datetime) | Age(int) John | 2014-12-20 23:59:59 | 0 Mary | 2014-12-20 23:59:59 | 1 How can i verify throught javascript if the field DateOfBirth of the table User of the database z is of type … | |
Dear fellow programmers, I am trying to build a form that has two datetimepickers (for date range) and one button. When a user clicks the button the datagridview will show results according on the date range (by the two datetimepickers). This is my code so far: Dim dbconnection As New … | |
Hey guys, I have this script that does count one year of files, 2014, but when it comes to this year, everything messes up. How could I count properly for each year in the same script ? In the attached screenshot it's obvious that I would only need 2014 - … | |
so, i got this code, what it does is that it counts down from 20 minutes, is there a way to do so it counts from 0 to 20 min in that same gui? try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk import … | |
write a c++ program that will do the . Enter 10 integer . Pushing on stack and poping on user choice . pushing on queue and poping form queue . Bring the integer in order. Display the calculator selecting oprtion by user choice (+,-,*,%) | |
I'm looking for a script that generates random images using the PIL Image module by assigning random RGB values to each pixel on a blank canvas. Does anyone have one of those lying around? (I want to write my own just for practice, but if it's already been done by … | |
Hi guys I need help with redirecting from post?id=11111 to index.php?page=post&title=title&id=11111 Solved and got solution from this link https://www.daniweb.com/web-development/php/threads/489469/how-to-redirect-dynamic-url-using-php $curPageURL="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $url="http://abc.com/gallery.php?id=1"; if($curPageURL == $url) { header("Location: http://abc.com/error404"); } | |
i have to make an numberplant genarator in python 3.4.2 but i am having a lot of trouble plz help | |
Hello. I'm working on a project that requires some data to be encrypted with AES 128. My encryption works fine but when I decrypt I get an `Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length not multiple of 16 bytes` exception. Code: import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; public class AESCipher { private … | |
I have designed Random number guessing game in windows form application. after user enters guessed number,hits button. for button click i entered code: private void buttonEnter_Click(object sender, EventArgs e) { string invalue; int number; Random r = new Random(); int target = r.Next(0, 100); invalue = textBox1.Text; counter++; label4.Text = … | |
Trying to update Packet.MSGState to P where if not R or D and it is Y in table Packet.MSGState SQL is MS-Access var ODBC from c# This is not undating all correct. UPDATE Packet SET Packet.MSGState = 'P' Where (MSGState <> 'R' and MSGState <> 'D') and Exists (Select MSGTO.Selected … | |
Good day! Is there a way to identify if a given date is hijri/arabic? Thank you! | |
Hello, I want expression for not acception string with specials characters. So I was with expression /^[ A-Za-z0-9_@.#&,()-]*$/ But it is accepting only special chars also. How can I restrict it for not acceptiong only special chars? like my string should contain atleast one character. | |
Looking on the web for how to do it. Found several solutions: serialisation, XML etc. Cannot decide which to use. My List class contains a string, some booleans and two other Lists. Awaiting some opinions that will be accepted with great gratitude. :) | |
I have the following code if (list.Date[0] != 'undefined') { for (var i in list) { var date = list[i].Data; var year = date.substr(0, 4); var month = date.substr(5, 2); var day = date.substr(8, 2); var newDate = day + "/" + month + "/" + year + " " … | |
Hello everyone, I want to develop a GUI like the one shown in the image below. I want to do this through hard coding - no drag and drop. Please may you assist me with: 1. what should i include to come up with such a **layout**. 2. how do … | |
Good day! I have a combo box which is readonly. It is loaded with data from the database. However, there is a point that I need to set text on it, and those text is equal to one which is in its list aleady. The below code produces runtime error … | |
*** Systems *** OS: Windows 8.1 64bit IDK: MS Visual Studio Express 2013 for Windows Desktop Problem: I created a simple (very simple) User-defined function named func_compare that compares two numbers, it has two parameters of type Integer. It has no errors whatsoever until you compile it, and it says … | |
please assist by explaining what this code is trying to do - i mean the logic. if ((InteractiveForm.this.tableModel.getRowCount() - 1) == row &&//i dont understand this line(the logic) !InteractiveForm.this.tableModel.hasEmptyRow()) { InteractiveForm.this.tableModel.addEmptyRow();//this is where we append a new row } the whole program can be found [here](http://www.javalobby.org/articles/jtable/?source=archives) any explanation is greatly … | |
I am trying to paginate through a set of results. I know how to do a simple pagination, but I have a lot of records in the database. So the problem is that when I have a lot of pages, the number of links are also high, therefore breaking the … | |
Hello everyone, I have my code that is supposed to append an empty row to a table at runtime when a user presses the enter button. The code is working fine. here is the code if it helps: table.addKeyListener(new KeyListener() { @Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == … | |
I have an html table with six rows and two columns. I have what it is supposed to look like [URL="http://wordpress.thelandman.org/test.html"]here[/URL]. But, what is really confusing me is that with the exact same source code snippet inside wordpress [URL="http://wordpress.thelandman.org/buying/"]here[/URL] is not displaying the same output, the image does not span … | |
I expected there to be one, especially on a site as popular as this one. | |
Hey all. I'm facing a bit of a challenge and and having a hard time trying to figgure out how do do this. Basically I have two computers (Raspbery Pi's) that I'm using. One (Pi A) is acting as a remote and sends a request to the receiver (Pi B). … | |
Group, I'm now having to merge several of these text files together. At the end of each of the text files is a line that says "End of Report". I need to eliminate this line completely. This code does the merge for me: RestranName = getRestranName(0) RestranName2 = getRestranName(1) System.IO.File.AppendAllText(RestranName2, … | |
im trying to make a simple example in threading this error msg can anyone help me to solve it ? Cross-thread operation not valid: Control 'cmb1' accessed from a thread other than the thread it was created on. Imports System.Threading Public Class Form1 Inherits System.Windows.Forms.Form Dim th1 As Thread Dim … | |
Hello everyone i have a google blog and we post many pages in my blog. and we add a div like <div id='header'> . the header div show all of the pages but i want to show my header only main page. 'www.myblogsite.blogspot.com/' and hide all of other pages using … | |
dashboard2.php if (isset($_POST['ok'])){ if (empty($_GET['class_id'])) { $class = $_SESSION['class']; $sqlstr = "INSERT INTO material2(`subject`, `title`, `content`) VALUES('".$class."', '".$title."','".$content."')"; echo $sqlstr; } else { $class = $_SESSION['class']; //echo $class; $sqlstr = "UPDATE material2 SET subject='".$class."', title='".$title."', content='".$content."' WHERE class_id=".$_GET['class_id']; echo $sqlstr; } $result = mysql_query($sqlstr) or die(mysql_error()); //Jika mode edit, maka … | |
is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = … | |
i couldn't edit my previous post or can't delete. so i open new. sorry again i have two text file one is a.txt and another is b.txt content of a.txt is a b c d content of b.txt is 1 2 3 4 5 6 7 8 9 i want … | |
![]() | this is my create and read.php files problem is that in read.php file image is not being displayed only its file name is displaying // crate.php <div class="control-group <?php echo !empty($imgError)?'error':'';?>"> <label class="control-label">Image Upload</label> <div class="controls"> <input name="image" type="file" placeholder="image" value="<?php echo !empty($image)?$image:'';?>"> <?php if (!empty($imgError)): ?> <span class="help-inline"><?php echo … ![]() |
Hi, I have been trying to create a game loop that is paused when a certain key is pressed. This seemed to work ok in Swing but in javafx the loop locks up the UI, even if i create a seperate thread. @FXML public void setPaused(KeyEvent e) { if (e.getCode().compareTo(KeyCode.P) … | |
I have the follow code, with checkboxes. Tried to do an array. I send these checkboxes to my mail-process file. How I do, that I only get these values, from these checkboxes, they are checked? <div class="cpt-item four columns"> <div class="thumb-wrapper"> <img src="/assets/images/custom/bigb002.jpg" alt="The Big Buddha Temple"> </div> <div class="cpt-detail"> … | |
Hello fellow coders, can anyone make me a working login system, like login, register, and send all files + the Database file (Test DB file)? Please be kind, it doesn't take long to made... Thanks - Martin | |
How can I find the width of a command line window from a GNU C++-program ? I'll use this information to display a progress bar when copying files, so I need to know the width to be able to display the progress bar correctly. | |
Hi, Let's say I have an array of 10 elements. I want user to enter 9 numbers so that they fill arrays 0 to 8 (9 numbers). Now I shift the arrays +1. so array[0] is now array[1] and so on. Now I ask user to enter 10th number (fills … | |
i hv 3 different user,user selection is based on radiobuttonlist and then login button,but im having error that "use of unassigned local variable 'sql'.I couldnt figure out the mistake.do help me :) protected void btn_Login_Click(object sender, EventArgs e) { string sql; if (btn_user.SelectedItem.Text == "Admin") { sql = "Select * … | |
Hi guys, Could someone please help me with a small problem i am having? I want to display a message if there are no entry's in a table but for some reason i cant get this right. Here is my Controller: ----------------------- <?php if ( ! defined('BASEPATH')) exit('No direct script … | |
Hello -- When using the PrintForm component in VB.Net 2010 I would like to change the back color of the form from black to white just prior to printing to preview. Then once the print preview window is closed the back color returns to black. Here is the code I … | |
I am developing a Java application that uses a JTable. I want to allow the user to enter data in a JTable that can later be printed or saved as PDF file. The issues is: Suppose the user has entered some data and the cursor is on the last cell … | |
hello everyone, i am developing a quotation generator application using Java. I am using a JTable to capture user input(this input is taken from a database i.e. each cell of the tale will have a combobox where the user can select an input value). when the user is done he/she … | |
Hey! I'm a beginner and I am making a code about getting the directory of a file, but I have something that I don't understand. What's the meaning of "./" in `DS = opendir ("./");` I have searched a lot of sites about C programming, but nothing gave me a … |
The End.