199,112 Archived Topics
Remove Filter ![]() | |
function validate_font_family($font_family, &$error_message) { $valid_match1 = '"Times New Roman",Georgia,Serif'; $valid_match2 = '"Arial",Georgia,Serif'; if(preg_match($valid_match1, $font_family) || preg_match($valid_match2, $font_family)) { return true; } $error_message = "Invalid font family(" . $font_family . "). Must be either "; $error_message .= $valid_match1 . " or " . $valid_match2; return false; } The code is supposed … | |
Hi, I have 4 different files that contain the text below. I need to Remove specific whitespace from the text and to find if there is a number that appears in more then one file and to print the output result to a new file that will includ lines with … | |
Hey I want to declare a variable that is global that I can use (and modify) all over my website. Ive read that I may be able to do it with jQuery but not sure how to (more importantly, where). Its a simple text field, nothing else. Specifically it must … | |
Because UDP is unreliable protocol i want someone to try my code. For someone who have server, run my code and send packets to your server and then monitor to your server bandwidth usage Sender packet size is near to (Server)Receiver packet size ??? Soz for my english. using System; … | |
I'm developing a VB.NET application that is going to be checking if a table has been changed and if it has get the data and send it off to another application. I was looking into ways for an application to know that there has been new data added to the … | |
I have been looking on the internet for how to do a save as on my form, but can't seem to figure it out. All I know is you can do something with the saveFileDialog, but I don't even see it pop up. I want to incorporate 8 Different SaveAs … | |
I am having problems trying to center some text. I created a printdocument and it has a company name and title and then other information I have the information fine but I wanted to center the company name and I can't seem to do it correctly here is what I … | |
halo guys, I having problem executing the SQL statement in the visual studio but when in the MySQL it work fine. Here are my code. Dim sql As String = "SELECT * FROM (SELECT @row:= @row + 1 AS rowNum, std.* FROM Student std ,(SELECT @row:= 0) r) AS t … | |
i want to create column headers now in my first array have this http://uitm.x10.bz/!/1.png array CSC238,8.00-9.50 MAT183,1.00-2.00 ECO120,2.10-4.00 BEL311,4.10-6.00 MAT183,8.00,9.50 then second array, i want to do like this http://uitm.x10.bz/!/2.png array 8.00-8.50 9.00-9.50 10.00-10.50 11.00-11.50 12.00-12.50 1.00-2.00 2.10-3.00 3.10-4.00 4.10-5.00 5.10-6.00 6.00-7.00 7.00-8.00 8.00-8.50 9.00-9.50 hope can help this problem … | |
I got error ProfileCommon could be not found , in my code. I don't know how to fix the error. I put namespace using system.Web.Profile, but error still does here. Could someone help how to do that? Please help me if you know. Thank you public partial class UserProfile : … | |
I need your help regarding the message acknowledgement in the queue when the message reaches at the queue. Any help would be highly appreciated. the code for my queue class is; struct ListNode { ListNode(gcroot<message^> msg); gcroot<message^> msg; ListNode* next; }; ListNode::ListNode(gcroot<message^> msg): msg(msg), next(nullptr) {} public class queue { … | |
hi, i started using VB 2008 recently (with perl background, its a big leap) and having a problem with database. i am trying to access a database that is attached to a different form. i managed to get my code to work if i was writing on the same form. … | |
I'm having trouble with my some output in hexadecimal math. The subtraction overload seems to work fine, but when I add an address to another it goes all wierd on me. :( Here is a sample output: 00000000 + 0000055c = 0000000c // Incorrect 000a0000 + 00000180 = 000a000000000080 // … | |
Hello guys, i have a question regarding how to change the origin of a window, particularly a JFrame. I'm essentially running a program called "Fraps" to see the frames per second of my JFrame, with this program, you can display the fps on any 4 corners of the window currently … | |
Hi, my project works with emulating the file system. I can invent my own as well. I'm developing a unix like shell which will provide all the file handling commands similar to unix. Basically I want to allocate a large file on the actual file system, and treat it as … | |
I really hope someone can help me with this one. It is a Hotel Booking System: Tbl Room (RoomID, Floor, Notes) Tbl BookingsRoom (RoomID, BookingID) Tbl Bookings (BookingsID, StartDate, EndDate, Comments) I have to create an SQL select statement for checking if a room is bookable during a given time … | |
hi i have have problem with my code i try to do event that use me to know when the clipboard changed - but it doesnt work :( -> The Code: namespace YossApp { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public void InputStr(string dataObject) … | |
I have an ssis package the loops through an entire folder importing records into a sql 2005 database. I pull these records from a table in my database through an "execute sql task" then that gets pushed into the foreach loop container. However when one of the filenames is missing … | |
Hi, I am learning queues and I have found 2 examples. Both examples represent queues with limited size, for example 30. But <queue> allows us to create queue that is not limited by ***pre-set** queue size. Can anyone explain me how have they created something like that? Thanks! ***By *pre-set* … | |
Greetings, Can someone tell me on how can i call a certain textbox from web.aspx to another web.aspx in visual basic windows form application we use Me.lastname.text = Profile.lastname.text what is the equivalent code in asp.net? btw i'm using visual basic asp.net. Thank you in advance guys :D. | |
Hey,,I tried the following code to retrieve data from an excel file,apply query and save the result of query to another excel file. Now there are two problems: One,I am getting the required data but some reduntant unwanted data too. Second,It only works if the excel file, from which the … | |
How to check if table exist? **I would like to check if table exist then drop table. If not exist, create table.** My codes at this moment: import MySQLdb, csv, sys db = MySQLdb.connect("host","username","password","databasename" ) # prepare a cursor object using cursor() method c = db.cursor() # Drop table if … | |
When I am trying to design an algorithm , I had a programming problem in Java .. I want to write M nested "for" like that: for (I[0]=1; I[0]<=N; I[0]++) for (I[1]=1; I[1]<=N; I[1]++) ... for (I[M]=1; I[M]<=N; I[M]++) { Statements; } Where M is entered by the user during … | |
I am having trouble making the link open a web browser and going to the website can someone please show me what to do in the linkClicked. private void agricultureLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { } | |
Hey all, writing some code but keep getting a javascript related "Not Implemented" error. The code is window.onload=setTimeout('loadAll()',10); The code works fine but the error is annoying in that "An error has occured.." keeps popping up. Oh how I love cross browser coding. Anyways, any input is appreciated, thanks! | |
I need help creating a pause screen for my pong game. Also if you could make a way to make the game fullscreen that would be great. Here is the code: import pygame, sys, random, os from pygame.locals import * import screen import screem os.environ['SDL_VIDEO_CENTERED'] = '1' # Pygame init … | |
I know there are multiple variations of this question here, but not in this form. My Ledger table, in a basic form have the following columns. TransactionID | DateOfEntrydate | TransactionDate | ClientID | TrIsDebit | OpeningBalance | Amount | ClosingBalance DateOfEntry is a colums which stores time of insert … | |
Hey Let me see how I describe this.... I have a textbox (inside of a form) and that form also has a button that calls a Javascript function that does some unrelated stuff. This is all inside of Lightbox. I want to be able to type in text in that … | |
Hi there. I'm having trouble passing variables between Forms. Let me explian my self by an example. I have a Form1, the user types a "Client ID" in a textbox if it's not a valid one, it opens a Form2 in which the user selects the correct "Client ID", once … | |
I am tryin to add rectangle to on to an image in wpf. Rectangle is drawn at MouseLeftButtonDown event. Problem is I want to add this rectangle straight to the Grid (on to the image) without using a canvas. How Can I do that? or How can I avoid using … | |
typedef union { unsigned Color; struct { unsigned char B, G, R, A; }; } RGB, *PRGB; inline RGB Rgb(int R, int G, int B) {RGB Result = {((COLORREF)((BYTE)(R)|((BYTE)(G) << 8)|((BYTE)(B) << 16)))}; return Result;} inline RGB Rgb(COLORREF Color) {RGB Result = {Color}; return Result;} The above is my code … | |
Hi,I am new to mobile and i am still studying the components,layouts,etc..first i want to know how can i put radiogroup in listview, i made another xml file "Radiolayout.xml" but i could not display this in listview. More inputs will be much more appreciated. This is my java file "Sample01.java" … | |
I have a delim-tab file ID NAME FAMILYTAG EFFECT 001 John Black Positive 002 Kate Rhodes,Mich Positive 003 Aaron Sunders Negative 004 Shirley Rhodes Negative 005 Dexter Sunders,Hark Positive I want to input this file(which is much larger) and read in a name for eg: Kate. I want the script … | |
i have the following query: 1.$query="SELECT * FROM ab_service WHERE account_id=$account_id AND sku='".$sku."'"; 2.$query="SELECT * FROM ab_service WHERE account_id=$account_id AND sku='$sku'"; none of the above seems to work.the problem is with $sku var because when i dont put it as the condition, i get results.what is the problem ? the … | |
For some days I have been trying to optimize an image processing program (cropping, rotate, changing brightness and undo) written in c# 4.0. Getting suggestions from google I have optimized the code in many ways. At first some disposable objects hadn’t been disposed that’s why exception was shown. But I … | |
Can anybody here tell me please how to display a notification/message box in c++. suppose i'm making a program for factorial of a no. and i want to display the result in a message box with msg..." Factorial of No. is <fact>". help me please!!! | |
Hello Friends, I have three table ->PatientDetails ->ParentDetails ->InsuranceDetails -Patient id is the common column in all the three tables... While saving the data in table using VB.Net there is a column in PatientDetails i.e. Insured If the patient is insured then only the values from text boxes and the … | |
Hey Guys,, I'm new to PHP and and contact forms, I'm in need of help for the current website I'm making for a local sporting community. I have uploaded a current picture of what my contact us box (Name,Email,Message) looks like : As you can see im using a CSS … | |
hi there guys can you suggest me some games that I can program in c sharp in an object oriented way? just simple programs that can be done for maybe less than a week since I'm just starting to learn it yet. Any idea? Please help me guys I will … | |
Hi, I have a grid view having images and text.. i used handler to display image. but after implementing the code to display image,,, autogenerated edit/delete options are not displaying Data Fields........ mpId...int(Text), mpName.... varchar(Text), mpLocation... varchar (dropdown list), mpImageF.. image , mpGender... varchar(radio button list) **Please Guide me how … | |
Hi, I have a form in VB which is scrollable (using autoscroll) and when I currently click 'print', it only prints what I can see; it takes a screenshot of the viewable information. Here's my code: [CODE]Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click Dim settings … | |
I have this code which displays a login form, i want to encrypt the password before it stores into the sql database and should also be able to verify the pwd when a user logs in. Please help me, it'll be very greateful of you, Thank you. Private Sub Login_Click(ByVal … | |
Hi there, I am looking for help to code a php mysql search form with 4 dropdown list. I want the user to search for accommodation establishments by using a citytown, tourism route, accommodation profile and accommodation tariffs. All this will be in the dropdown list which reflects the fields … | |
Hello all, Im new here and looking for some advice re the google maps javascript API (which im also pretty new at) The background: I have managed to get some pages that use the googlemaps interface up and running add markers to them etc and allow the user view directions … | |
Hello all, I am trying to validate my ASP.NET page in W3C validator. I am getting following errors. Can anyone help with this? No DOCTYPE found! Checking XML syntax only. The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling … | |
-53 45 -54 43 -55 42 -56 41 -57 40 -59 37 -61 35 -61 36 -62 34 -64 33 -65 31 -65 32 -67 30 -68 29 -69 28 -72 25 -73 23 -73 24 -74 22 -76 20 -76 22 -78 20 -79 18 -80 17 -81 16 … ![]() | |
So my android project should show a startup image at first and then start the program but instead it shows a blank black screen . Here is my code : My class.java : package abcd.pack; import java.util.Timer; import abcd.pack.R.layout; import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class Class extends Activity … | |
Dear experties, I need your help. I have a problem when i want to view user remark that view in 1 line without enter to the next line as user enter during create remark. But it's ok if I view that remark using text area but need to scroll.. how … | |
Hey guys. Can you have a look at my queries? I can't spot the error with my foreign key linking. As of now, the table staff has already existed: StaffID char(7) Staff_Name varchar(50) Position varchar(50) And now I'm trying to create a new table called SalesInvoice: create table SalesInvoice( SalesInvoiceID … | |
**Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/u377251981/public_html/foll.php on line 69 how to fix this error? please help me... ** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css" media="all"> @import "style.css"; </style> <script type="text/javascript"> function … |
The End.