199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for renzlo

Hi All, Why is Webbrowser PreviewKeyDown event is not firing if the page loaded is a java applet? Is there a workaround here? I need to fire up a keypress event in the textbox of the java applet. Hope there's a solution.

Member Avatar for renzlo
0
177
Member Avatar for Thevenin

I have two Ajax function that are on the same div, so the first one isn't executed or better is canceled from the second one. Any hint on how to fix this problem? I wasted two days and wasted my brain too without finding a solution. $(function(){ $('#navigation').find('a').tooltip({effect: 'slide'}); }); …

Member Avatar for Thevenin
0
113
Member Avatar for SillyNoob

I'm at an absolute complete loss with this. I'm a using a pointer-pointer to "remember" the last node of a linked list so a function in the loop can add another node and then return the address of that new node so it's known for the next loop. Sounds easy, …

Member Avatar for SillyNoob
0
93
Member Avatar for nchy13

we can use $_GET method to pass info via url but it shows the info in url like <a href =profile.php?id=$user>click here</a> and in profile.php?id=$user , we can access username via $username=$_GET['id']; is there any safer method to achieve because i don;t want to show the info passed in url. …

Member Avatar for urtrivedi
0
346
Member Avatar for zachattack05

I'm working on a method that will save checkstates to a SQL server and something occured to me and I thought I would ask if there is a simpler way of doing this. If I have a single parameter, for example an initial checkstate, and an if...else statement is supposed …

Member Avatar for zachattack05
0
176
Member Avatar for MasterHacker110

i have this c++ code and i wondered how ot would be in c #include <vector> // for vector #include <sstream> // for stringstream #include <iostream> #include <string> using namespace std; int main() { stringstream ss; string input, temp; vector<string> comand; cout << ">: "; getline(cin, input); ss << input; …

Member Avatar for MasterHacker110
0
172
Member Avatar for janet@123

I am trying to use the glib HashTable implementation for my code and facing some issues in memory allocations. The code I've written is: GHashTable *g_hash_table; g_hash_table = g_hash_table_new (g_direct_hash, g_direct_equal); gint *port, *src_value, *value; guint32 *dst_key, *key; . . . while(1) { key = g_malloc (sizeof *key); dst_key = …

0
133
Member Avatar for arunkumars

Hi, the problem statement is that, i have written my code Process.GetCurrentProcess().Kill() to kill my process while the application exits, i know it happens automatically, but my application is a relly big application, there were scenarios where the application was not exitted properly and the only way to exit was …

Member Avatar for arunkumars
0
187
Member Avatar for queryme

Hi I am Trying to install visaulstudio2010 and sqlserver2008 in my lenovo laptop. I am having windows7 home premium on my machine. I have installed first sqlserver. installation done successfull but installed **Partially** means sqlserver management studio not installed. 1) Please let me know what should i install first. sqlserver2008 …

Member Avatar for faizan11
0
86
Member Avatar for joankim

Hi there. Recently, i wrote a program that would return ridiculously high numbers as BigIntegers. The program is working at all, but when the BigIntegers get to a value that I have estimated to be around 2^329554, and takes up between 30-45 kilobytes, i get this error: Exception in thread …

Member Avatar for joankim
0
149
Member Avatar for memomk

hey i have this code when starting the Process to make database it freeze at all what should i do? # -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui import sys try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(400, …

Member Avatar for memomk
0
2K
Member Avatar for SCass2010

Hi everyone, Again, I'm just trying stuff out to try and learn a bit more but here goes... I created a small Logger util - I included the pthread library and added a mutex lock in each of the "write*" functions, tested it by running a few instances of a …

Member Avatar for varungandhi
0
2K
Member Avatar for kutuup

So I'm working on a Windows Phone app using XNA and I'm at my wit's end with it. Here is the code: using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Input.Touch; using Microsoft.Xna.Framework.Media; namespace WindowsPhoneGame1 { /// <summary> /// …

Member Avatar for skatamatic
0
162
Member Avatar for lxXTaCoXxl

I realize I haven't released anything in a while so I figure I'll just type a basic set of things for you all to use or learn from. All of the following requires XNA Framework, but can be easily ported over to .NET Framework for use with forms applications. The …

0
123
Member Avatar for dschuett

I have a datepicker field that the maxDate doesn't seem to be working on. jQuery: $(document).ready(function() { $("#intorgDate").change(function() { var myDate = new Date($("#intorgDate").val()); //ENTER VALUE IN mm/dd/yy FORMAT var mymaxDate = new Date(myDate +7); $('#intnewDate').datepicker({ inline: true, dateFormat: "mm/dd/yy", changeFirstDay: false, defaultDate:myDate, minDate: myDate, maxDate: mymaxDate }); }); });​ …

Member Avatar for dschuett
0
6K
Member Avatar for dschuett

This works: while($row = mysql_fetch_array($results)){ if($isfirst){ $last_id = $row['id']; } $isfirst = 0; $msg_id = $row['id']; $message = nl2br($row['post']); $time = $row['post_time']; $name = $row['firstname']." ".$row['lastname']; if($row['updated']=='1'){ $updated = "- <font style='color:#DB4937;'>CORRECTED</font>"; } else{ $updated=''; } $newPosts .= "<li id='msgblk_$msg_id'><span id='message_$msg_id'>$message</span><p class='time' id='time_$msg_id'>$name - $time $updated</p></li>"; } $newID = $last_id; …

Member Avatar for dschuett
0
287
Member Avatar for mnshwarner

My ultimate goal is to save rendered presentation MathML to a .PNG file. Knowing just enough about programming to be dangerous :-) there may be a better way to do this...I am drawing the equation on a canvas element, then trying to save the canvas element as a .PNG. I …

Member Avatar for mnshwarner
0
1K
Member Avatar for <HHH>

i'm trying to read data from .csv file and it give me grabage so i will be pleased if someone help me thanks import java.io.*; public class ReadFile { public void File2 () throws FileNotFoundException, IOException{ FileInputStream fstream = new FileInputStream("C:/myfile.csv"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new …

Member Avatar for joankim
0
351
Member Avatar for bigzcoder

Hello, I am having trouble with my code. it does not seem to be comparing the two hands correctly I would really appreciate it if someone could take a look at it and tell me where i am going wrong. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define TOTAL_CARD_DECK …

Member Avatar for zeroliken
0
136
Member Avatar for FraidaL

I wrote this code to change all lowercase letters in a string to uppercase. That works, but I also want it to go the other way around and nothing I tried is working. #include<iostream> #include<string> #include<cctype> using namespace std; string change(); int main() { change(); return 0; } string change() …

Member Avatar for triumphost
0
163
Member Avatar for Wolxhound90

Hey guys, I have this code which gets some reults from a table and displays them: echo "<table><tr>"; while($col = mysql_fetch_array($columns)){ echo "<th>".$col['COLUMN_NAME']."</th>"; } echo "</tr>"; $i=0; while($row = mysql_fetch_array($data)){ echo "<tr>"; foreach($row as $r){ echo "<td>".$r."</td>"; } echo "</tr>"; } echo "</table>"; Getting the column names is fine, but …

Member Avatar for Wolxhound90
0
114
Member Avatar for c++bob1234

NEED help with this code, i need to put the code in place of(??????) The code is suppose to enter the car's information and it compares which car has best finance mileage and cost of car. #include<iostream> using namespace std; #include<string> #define INT_MAX 100000 #define INT_MIN 0 using namespace std; …

Member Avatar for thines01
0
246
Member Avatar for zachattack05

So if I have 3 stored procedures that act on a single table (or multiple tables for that matter), is it acceptable to combine them since they are related on some level and then using a switch or if statement to determine which "procedure" to actually run? As a simplistic …

Member Avatar for zachattack05
0
138
Member Avatar for Panathinaikos22

Does try { } catch make program slower? I think only if code on try fail will take a little more timebecause will run catch also... idk what you say;

Member Avatar for sknake
0
6K
Member Avatar for zachattack05

I have a checklistbox that I have been working on and I need to commit the changes made to those checkstates to a sql table, removing rows where the checkbox is not checked and adding rows where the checkbox is checked (assuming the checkstate actually changed). Instead of doing a …

Member Avatar for zachattack05
0
208
Member Avatar for gabrielcastillo

Im using this script to disable and enable input box. When I check the box, the input is enabled, but when I uncheck the box the input is still enabled. Not sure how to fix this. $(document).ready(function(){ $(".ncjhs_student").attr("disabled",true); $(".send_records").attr("disabled",true); $("#send_records").click(function(){ $(".send_records").removeAttr("disabled"); }); $("#ncjhs_student").click(function(){ $(".send_records").removeAttr("disabled"); }); });

Member Avatar for gabrielcastillo
0
155
Member Avatar for tadamagic63

#include <iostream> #include <iomanip> #include <string> using namespace std; // Constants const float RESLINEFEE = 22.42; const float RESperGALLONfirst10000 = 2.42; const float RESperGALLONnext13000 = 3.22; const float RESperGALLONover23000 = 4.03; const float COMLINEFEE = 22.09; const float COMperGALLON = 2.65; const float INDLINEFEE = 18.41; const float INDperGALLONfirst200000 = …

Member Avatar for scudzilla
0
185
Member Avatar for james6754

Hello I have this problem..I realise I am trying to I am calling function like this...a reference to E is passed in? B = D.sum1(E); MatrixClass MatrixClass::sum1(const MatrixClass &rhs) const//function to add elements of one MatrixClass to { //another and return the new MatrixClass MatrixClass C; if(this->dataptr == rhs.dataptr) { …

Member Avatar for StuXYZ
0
152
Member Avatar for sadzee

What are Locally caught Exceptions in Java? Whats the dofference between the ones that are caught locally and ones that are not caught locally??

Member Avatar for nbajordan
0
89
Member Avatar for Inny

I want to Show Videos inside an Image of theater curtains, image should float ABOVE the videos. Cant work out why it wont work, I have. [CODE]<style type="text/css"> #tablist{ padding: 3px 0; margin:0; font: bold 12px Verdana; } #tablist li{ list-style: none; margin: 0; width:130px; } #tablist li a{ padding: …

Member Avatar for lotsakandy
0
353
Member Avatar for dany12

Hello I need to setup a virtual host for my zend aplication I managed to link all my zend framework with php and windows I am using wamp 2.2d and I am having a problem with the virtual host NameVirtualHost 127.0.0.1:80 <VirtualHost 127.0.0.1:80> ServerAdmin webmaster@localhost DocumentRoot "c:/wamp/www" ServerName localhost ServerAlias …

Member Avatar for dany12
0
120
Member Avatar for beanboy

hi, i managed to upload files from client to server hard disk using apache commons. how could iretrieve files to client from server again? plz gimme an idea of implementation thx beanboy.

Member Avatar for imdeadsoul
0
1K
Member Avatar for Checkerboz

Hey! I got two classes here, one that does stuff with an image and one class utilizing the other class. So inside my picture class I have an Image object and in my other class I want to have a JFrame and I want to set the size of the …

Member Avatar for Checkerboz
0
355
Member Avatar for Pravinrasal

I want to display image from database to my htnl form but it id not displayed. Image copied from database to local c:\file_upload folder but from this folder i want to display in img src in html form .project doesn't give any error but image not displayed on html form. …

Member Avatar for imdeadsoul
0
284
Member Avatar for Black Magic

[CODE]#include <iostream> using namespace std; int main() { char exit; cout << "Exit? Y / N " << endl; cin >> exit; if ( exit == 'Y' || exit == 'y' ) { } if ( exit == 'N' || exit == 'n' ) system("PAUSE>nul"); else { } } [/CODE] …

Member Avatar for SamuelAdams
0
378
Member Avatar for apanimesh061

What should be the regular expression for thid code ??? `<span style="text-align:justify;">Stepping out of the Shadows:M6 Once touched... Marisa Somerville has changed. Now a confi dent, groomed, successful businesswoman, in some ways she's nothing like the scared wife of an abusive husband that Rafe Peveril survived a plane crash with …

Member Avatar for apanimesh061
0
297
Member Avatar for memomk

sorry but i still cant understand what is different betweeen Thread and Process in c# what to use?

Member Avatar for memomk
0
108
Member Avatar for imperialguy

Platforms: Windows 7/Mac OS X ActiveState Python 2.7.2 Installed docx on Windows 7 at D:\Program Files (x86)\Python27\Lib\site-packages. Installed docx on OS X at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Following is the sample script (named as docx_example.py), which runs absolutely fine on the python interpreter: #!/usr/bin/env python ''' This file makes an docx (Office 2007) …

Member Avatar for memomk
0
631
Member Avatar for gilgil2

Hi, I am trying to query a MySql database based on which search fields are filled in and ignoring those that aren't. I have only got as far as the first part and it isn't working, could anyone tell me why? It doesn't seem to be finding anything in the …

Member Avatar for diafol
0
143
Member Avatar for juster21

I am trying to program the last part of an application which needs to take data from an Excel sheet and add it to an Access table. I'm using Excel 2003 on XP. Any and ALL help is appreciated. The problem I'm running into seems to be on connecting to …

Member Avatar for Oxiegen
0
321
Member Avatar for harinath_2007
Member Avatar for Oxiegen
0
68
Member Avatar for meko22

Hi there, I would like to make an email form that would select all the emails from a MySQL db and then send that message to all addresses. I got this script but was unable to get it working. Any help would be great. [code] <?php //Connect to database mysql_connect("localhost","user","password") …

Member Avatar for shahidsidd
0
8K
Member Avatar for Thermalnuke

having a problem with a program im working on with inheritance. suppose to output the area, perimeter, and area i think i have it all set up correctly but its not out putting correctly here is the the superclass that inherites to the client form. public class CIRCLE extends CLIENT …

Member Avatar for Thermalnuke
0
137
Member Avatar for Dedrus

Hey guys :D I want some opinions on a few queries I have. Some background info: I'm adept at programming in VB, C++ and somewhat less experienced with Java and C#; considerably experienced in 2D graphical design; and I'm studying a minor course in game design and also game development. …

Member Avatar for Dedrus
0
205
Member Avatar for muralibobby2015

hello, i want to display social icons on images like facebook. is there any way to embedd? Thanks

Member Avatar for Coloradojaguar
0
93
Member Avatar for Nole_diver

I know this is a simple question but i am having a problem with an IF statement: [CODE] START: #START GOTO command **CODE REMOVED TO SAVE SPACE** print "Continue? (lower case only) \n"; $choice = <>; if($choice eq "y" || $choice eq "yes") { goto CONTINUE; } else { goto …

Member Avatar for 2teez
0
120
Member Avatar for nicewave

Could someone tell me how to go about this? I've a dataGrid and when a user right-click on one of the row's header I want a context menu pop-up with the menu choices "View Detail", "Cancel". Thanks in advance...

Member Avatar for nicewave
0
168
Member Avatar for NyQii

Hey guys.... Just wondered if anyone can help me, I'm busy writing an application with a login form using SQL Server, if the user logs into the specific for i want a lable saying logged in as : .... But how do you code that part? Hope you understand thanks

Member Avatar for SyncMaster170
0
160
Member Avatar for alanso

#include <iostream> #include <fstream> #include <string> using namespace std; int main () { string cosid1, cosid2; int no_cos=0, nostu1=0, nostu2=0; double score, total_1=0, total_2=0, avg_1=0, avg_2=0, avg_group1=0,avg_group2=0; ifstream group1, group2; ofstream outgroup; group1.open ("group1.txt"); group2.open ("group2.txt"); if (!group1 || !group2) { cout<<"Unable file"<<endl; cout<<"Programs terminates"<<endl; } outgroup.open("totalgroup.txt"); outgroup<<"Course ID"<<'\t'<<"Group No"<<'\t'<<"Course …

Member Avatar for nullptr
0
171
Member Avatar for kukula

Hi there, during developing website for my father's company ( [website](http://www.pgum-sill.pl/nowa_strona/index.html) ) I find out that I have problem with personalization of different lists. In this case I wanted to make a floating menu like thise one here: [Floating Menu](https://d2o0t5hpnwv4c1.cloudfront.net/018_Floating_Menu/demo/dhtml_float_menu_final_nettut.html) (this page is from this [Tutorial](http://net.tutsplus.com/tutorials/html-css-techniques/creating-a-floating-html-menu-using-jquery-and-css/)) At the pages above …

Member Avatar for fobos
0
346

The End.