199,114 Archived Topics
Remove Filter ![]() | |
I have a blog with a domain that I moved to a new host and now it doesn't have SSL certificate installed on it. There are certain links to that domain that where bookmarked using https and now that SSL is not installed on the new server users who access … | |
I work for a company that does online coupons. We'd like to restrict the printing of coupons to only those people who have not printed them before. I'm doing this by inserting couponid numbers and ip addresses to a Print Tracking table. My plan is upon using the print button, … | |
Earlier on, in [URL="http://www.daniweb.com/software-development/java/threads/412571"]this thread[/URL] my question was answered about how to add objects of a custom class I called State into a HashSet which was a value for a key in a HashMap. [CODE]Map<String, HashSet<State>> mapping = new HashMap<String, HashSet<State>>();[/CODE] However, I need to ensure that there are only … | |
I have a form with a textbox and I want that textbox to read from http.conf on line 162. Line 162 reads ServerAdmin [email]you@yourdomain.com[/email] Shouldn’t this code work? [CODE]Public Class Form1 Dim apacheconf = "c:\httpd.conf" Dim line() As String = IO.File.ReadAllLines(apacheconf) Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles … | |
Hi there, I am relatively new to PHP and MySQL coding and I am currently using the Joomla CMS. What I am trying to do is get a game name based on a custom field value from my DB like so; [CODE] // fetch the value of field called Game … | |
hi.. Im new to mysql..i want to know how to generate daily reports for all employees i created 3 tables with fields employee table:emp_id,name job table:job_id,job_name activity table:act_id,emp_name,job_name,date,activity done(assigned values as email,phonecall,visits) Daily Activity Report : (Employee ID, Emp Name,Jobs Name, Activity Done) Eg: 1.| Date | Rajeev | Income … | |
Hello, pls can anybody show how works printing? here is the code: [CODE]class Student(object): def __init__(self, name): self.name = name self.report = dict() def add_subject(self, subject): self.report[subject] = list() def subjects(self): return self.report.keys() def s_subjects(self): lpre=[] for subject in self.subjects(): lpre.append(str(subject)) print lpre class Subject(object): def __init__(self, name, teacher = … | |
Hi all, Im running a update query like this to update multiple rows(about 1000). Example of query: [CODE]UPDATE DATA1 SET Column = CASE WHEN TIME = 0 THEN X WHEN TIME = 1 THEN y WHEN TIME = 2 THEN Z WHEN Time = 3 THEN Q END [/CODE] The … | |
hi friends plz tell me how to add time which is in HH:MM:SS (in 24 hr format). i have a array of time stored. need to add those times and calculate total time... | |
Hi All, Why my QueueUserWorkItem is not at all working. My code is here: [CODE] typedef struct { PCHAR URL[MAX_URL] ; PCHAR DestinationPath ; }MAINDATA, *PMAINDATA ; int main(int argc, char * argv[]) { PMAINDATA pData ; BOOL bQuwi ; DWORD dwIndex ; PCHAR pURL ; pData = (PMAINDATA)malloc(sizeof(MAINDATA)) ; … | |
HOw can i send and receive images over the socket in java? | |
Hello everyone, here is what I'm trying to do: I want to create a multidimensional array of this form: [CODE]Array([0] => a, [1] => Array([0] => Array([0] => d, [1] => e)), [1] => c, [2] => d))[/CODE] Where for every element in the array, another element or array is … ![]() | |
How can i delete a row in table using abstractTableModel ? | |
i am creating a button on the page and pressing button loads an image. when the image loaded button is moving down and the image occupies the top-left portion. How can i position the image on the right hand side, so that my buttons dont move and the images comes … | |
Not sure if this should be in the MySQL section but here goes, I basically need some sort of code which can read events from a database, display them on a webpage, and the ability to edit and add new events. Please do not suggest any sort of calendar as … | |
i found this code in a book. i am finding it confusing. [code] #include<stdio.h> int main() { int arr[3]={2,3,4}; char *p; p = (char*)arr; // line A p = (char*)((int*)p); printf("%d",*p); p= (char*)(p+1); //line B printf("%d\n",*p); return 0; } [/code] the answer is: 2 0 but i cant figure out … | |
I can create the CFCHART just fine and also save it to a folder on my server just fine. But when I try to merge it into pdf I get An error occurred during the MERGE operation in the cfpdf tag. Error: Invalid Document C:/inetpub/wwwroot/Clients/visionmanagementservices.net/tempgraphs4/charts.jpg specified for source or directory. … | |
| |
[CODE] <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#navlist li a').click(function(){ $('#navlist .current').removeClass('current'); $(this).addClass('current'); return false; }); }); </script> <ul id="navlist"> <li><a href="?p=home" class="current">Home</a></li> <li><a href="?p=product">Our Products</a></li> <li><a href="?p=enquiry">Enquiry</a></li> <li><a href="?p=contact">Contact Us</a></li> <li><a href="?p=about">About Us</a></li> </ul> <div id="content"> <?php require_once('config.php'); $default = 'home'; $page = isset($_GET['p']) ? $_GET['p'] : $default; … | |
How can I show data from table which have for example certain place, I need to make like dropdown menu with places and when I choice one I need statistic from that one, I have already made base here is page [url]www.anketa.comli.com[/url] At the end of page is dropdown that … | |
Hello everyone, Im developing an application in C# for a school project that encrypts data in text form using a password and vice versa, and i' d need some help with something. The program encrypts fine taking as input 1)the data (reading it from textbox) and 2)the password, and stores … | |
Hey all. Ok this is so basic but confused. I'm updating the student name in this instance. I'm able to extract the name out of the database, but I cannot update. Any hints as to where i'm going wrong? [CODE] <?php $dbhost = 'localhost'; $dbuser = 'nbsstud1_test1'; $dbpass = 'demon8'; … | |
My form has a TextBox with values like(e.g: P011112, C0212102) those are products lot numbers that the user enters. Then, what i want is that a DateTimePicker takes the first 4 digits as "MM-yyyy" and add 3 years to that date. Example: TextBox.text = P011112 DateTimePicker = January, 2014 Thanks … | |
I'm searching for a java library/framework that makes printing easier. By easier I mean something that makes it possible to layout and format text/images and other elements in a document by defining layouts in html/xml or something. I also want the layout to be decoupled from rendering so the document … | |
I got this question in a competitive exam i wrote today...n i was just curious if my answer was right. The Question is : Let G be a complete undirected graph on 6 vertices. If vertices of G are labelled, then the number of distinct cycles of length 4 in … | |
I'm trying to design Programmable Logical Array using c language. Due to lack of time I downloaded code for tabulation from internet. Now I have modified it to return f and f' in a character array. It works fine for some functions. But it shows memory allocation problem for some … | |
can someone tell me how can i do arrylist(of three classes) in one class ?? | |
[CODE] sem_t w,r,s1,s2,s3; pthread_mutex_t m; int main(int argc, char* argv[]) { mutex and semaphores initialization ..... call threads.... wait until finish and cancel threads... clean threads and semaphores [I]exit;[/I] } void *reader(void *argv) { while(TRUE) { sem_wait(&r); sem_wait(&s1); pthread_mutex_lock(&m); ... read data..... pthread_mutex_unlock(&m); sem_post(&s1); sem_post(&w); } printf("Done read\n"); sem_post(&extra2); pthread_exit(NULL); … | |
<select name="criteria" class="report_listbox"> <option value="">Status</option> <option value="PASS">PASS</option> <option value="FAIL">FAIL</option> <option value="ALL">ALL</option> </select> ------------------------------------------------------------------------------------ $date = $_POST['date']; $criteria = $_POST['criteria']; $sql=" SELECT frsemployees.`name`, bft.`date`,bft.`dpush`,bft.`push`, bft.`dsit`,bft.`sit`,bft.`drun`,bft.`run`,bft.`status` FROM `bft` INNER JOIN frsemployees ON frsemployees .empid = bft.empid WHERE bft.`date`= '".$date."' AND bft.`status` = '".$criteria."' "; -------------------------------------------------------------------------------------- the bft database table `status` row containes … | |
Hi, can you have a quick look at the two for loops here. I've declared the int 'i' in the first for loop but in the second for loop it doesn't recognise it and i have to declare it again. Why is that? [CODE]for(int i=0; i<x; i++) { cout << … | |
I need to upload of maximum 5 GB file size in php. I have given max_execution_time = 3600, LimitRequestBody = 0, max_input_time = -1, memory_limit = -1, post_max_size = 10000M, file_uploads = On, upload_max_filesize = 10000M. Many people said that have to use FTP. According to my project, it should … ![]() | |
Hi everyone! Am new to python, getting grounded in it as fast as i can but now, i have some issues. I use the web2py framework for web development. At the moment, am working on a blog using one of the CMS (named InstantPress) designed in web2py also. While editing … | |
I have set my table to InnoDB which has parent to child relation table 2(child) has FK Reference to table 1 (parent) PK table 2 has cascade on update and delete I am trying to insert a record in table 2 which PK doesnt exist yet in table 1 my … | |
What is the difference between == and === in PHP? | |
How to extract only first two paragraph form mysql? [CODE] while($row = mysql_fetch_assoc($result)) { $about=$row["about"]; } $start = strrpos($about, '<p>'); $end = strrpos($about, '</p>', $start); $paragraph = substr($about,$start,$end-$start ); [/CODE] This code gives first only one paragraph. How to get first two paragraphs? Please help | |
I definitely need assistance with homework assignment: I seem to have a lot of issues creating a program when I have to use JOptionPanes(s). After the instructions is my current code. 1. Design and implement a Java program that will gather integer numbers and performs some computations on the data … | |
Hi guys. I am a bit confused among the following three functions. read() readAll() readLine() How do they work? I'll be really thankful to you all. Thanks alot for your precious time! Regards. | |
Guys, I need again your help. I have to generate automatically a unique schedule for each subjects with only one click of a button. I'm having trouble with it. Please suggest....here's my codes: [CODE]Do Until conflict = False For y As Integer = 0 To DataGridClass.RowCount - 1 If txtbxClassID.Text … | |
hi every 1. i am trying to bind the combo box through details view in vb.net but unable. i am making a login form and i want to display two values e.g usertype admin , employee in combobox but when i run the form it doesnot show me anything in … | |
Hi, I have a form with a button which is disabled by default, and a CheckedListBox with 68 items in it. What is the simplest way of enabling the button, when an item in the CheckedListBox is selected or unselected? I’m looking for something like If CheckedListBox1…any of the items … | |
Hey, My following code doesnt seem to be working, it doesnt change the onclick function when you click the image... can someone please help me? Jquery is includes at the top of my page... [CODE]<script type="text/javascript"> function addfav(id){ var div = '#fav_'+id; $(div).attr("src","images/star.png"); $(div).unbind('click'); $(div).click(function() { removefav(id); return false; console.log('did … | |
[code]Form Payment DGV.Columns.Add("FullName", "Customer") ' DGV.Columns.Add("InvNomer", "Invoice No.") DGV.Columns.Add("BalanceDue", "Total") DGV.Columns.Add("Paid", "Paid") Private Sub cmdPayList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPayList.Click ' where = " AND InvNomer NOT IN(" ' where = where & "'" & row(2).Value & "', " ' where = where & ")" PayList.show() … | |
Hi. I have a test program written in VS 2005 with a DataGrid in it. The records are fetched from the database but I have a weird problem. The grid does not display the data if it starts with a Less Than symbol '<'. All it shows is a white … | |
Hi, This is code. $toname = 'XXXXXXXX'; $to = 'test@mail.com'; $fromname = 'YYYYYYY'; $from = 'test123@mail.com'; $subject = 'This is test email '; $body = 'Hai this is test email MIME......Help me out.....'; $text_body ='<html> <head> </head> <body> <table align="center" cellpadding="5" cellspacing="0"> <tr align="right"> <td bgcolor="#336699"> <b><font color="#FFFFFF" face="Verdana, Arial, … | |
I was studying for an exam and came across two questions that me and my friends didn't know the answer to. We are given the answer but we just can't figure out what the answer is what it is. First, why does this code give an error? [CODE]int z=5, q=2; … | |
Hello! I ma trying deferent times but nothing happened in my website the frontpage dont change ...I have 3 colums i need 2 colums ,when i set nothing happend.Can i have an help please?my website is [url]http://shqiplive.info[/url] i set like image here[CODE]http://desmond.imageshack.us/Himg201/scaled.php?server=201&filename=tablehj.jpg&res=medium[/CODE] | |
Hi I am now running this query [CODE] SELECT p.topic_id, p.topic_id, p.forum_id, p.author_id + @user_id_jump, p.ip_address, p.topic_date, (SELECT username FROM members WHERE member_id = p.author_id) AS post_username, p.title, p.body, CASE WHEN (SELECT post_id FROM forum_attachments WHERE post.id = p.post_id) != 0 THEN 1 ELSE 0 END AS post_attachment, FROM forum_topics … | |
Im building a very small website which has an admin and public area what i want to know is your prefence when it comes to reporting or logging ie. when admin or user insert, update, delete, from and to the database changes will be written to either a database or … | |
Hi I have a listview in a C# windows form. I have created 2 columns and set their size by using the Columns Property. The Scrollbar property is set to true and listview has been set as Details. The issue I am having is that when the listview is being … | |
[CODE=c]int OperateGumBallMachine(void){ int total = 0; char input = getchar(); RefillGumBallMachine(); for(input; input != 'x'; input = getchar()){ if(gMachine.iNumBlueGumBalls + gMachine.iNumGreenGumBalls + gMachine.iNumRedGumBalls == 0){ RefillGumBallMachine(); } switch(input){ case 'n': total += NICKLE; if(total >= QUARTER){ total -= QUARTER; DeliverGumBall(); printf("Your change is %d cents\n", total); total = 0; } … |
The End.