199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for x2005man

hi geys , I need ow to return a array string to my method public String[] SearchPort(){ ArrayList<String> arr=new ArrayList<>(); Win32Driver w32Driver= new Win32Driver(); w32Driver.initialize(); port= CommPortIdentifier.getPortIdentifiers(); while(port.hasMoreElements()){ cuport=(CommPortIdentifier) port.nextElement(); if(cuport.getPortType()==CommPortIdentifier.PORT_SERIAL){ // return cuport.getName(); arr.add(cuport.getName()); String[] t=new String[arr.size()]; t=arr.toArray(t); for(String j:t){ return t; } } //System.out.println(cuport.getName()); } String h[]={"noo data …

Member Avatar for stultuske
0
123
Member Avatar for sourabhgkr

here is the code for menu. (document).ready(function(){ $("#main-nav li a.main-link").hover(function(){ $("#main-nav li a.main-link").removeClass("active"); $(this).addClass("active"); $("#sub-link-bar").animate({ height: "40px" }); $(".sub-links").hide(); $(this).siblings(".sub-links").fadeIn(); }); $("#main-nav").mouseleave(function(){ $("#main-nav li a.main-link").removeClass("active"); $(".sub-links").fadeOut(); $("#sub-link-bar").animate({ height: "10px" }); }); }); HTML code <div id="sub-link-bar"> </div> <div id="wrap"> <div class="roundfg"> <ul id="main-nav"> <li><a class="main-link" href="#">Home</a> <ul class="sub-links"> <li><a class="main-link" …

Member Avatar for PcPro12
0
2K
Member Avatar for xtreamcoder

I have good knowledge of C, and a good knowledge of core Java. Please list out the areas I need to cover for J2EE. There are many technology available in j2ee.. Please tel me which technology is using uptodate.. I have premium account in lynda, vtc, and pluralaight.. There many …

Member Avatar for stultuske
0
247
Member Avatar for pritaeas

I've posted a bug report here: http://tracker.firebirdsql.org/browse/DNET-540 If someone using Firebird and C# could verify this for me, or shed some light on (other) possible issues, that would be much appreciated. The code works as expected with 2.5.1, but does not with 2.5.2. Note: the sample is built on .NET …

0
240
Member Avatar for ismah

how to transfer data from excel to ms access database?? and how to retrieve data from ms access database using visual basic 6.0??anybody can help me..

Member Avatar for ling_tj
0
236
Member Avatar for syed rashid

Dear All, I have a listbox with various items like : Ali, Aslam, Akram, Jone, Mikle, Ebrahim etc. Now I have to select more than one items like : Jone, Aslam, Akram in a Textbox. Could anyone let me know the code. Rashid

Member Avatar for ling_tj
0
220
Member Avatar for jaejoong

Hi, I would like to know what does this mean? I have this script loaded in page_load from my master page Page.ClientScript.RegisterStartupScript(Me.[GetType](), "onLoad", "DisplaySessionTimeout()", True) and a javascript data in my mastepage.aspx var sessionTimeout = "<%= Session.Timeout %>"; function DisplaySessionTimeout() { //assigning minutes left to session timeout to Label document.getElementById("<%= …

Member Avatar for JorgeM
0
184
Member Avatar for satys.sara

Hello all, I have a question on how to use strtok funtion for the below scenario. A1.1*7.1&9.1&11.1/ I want to parse through & and make it as null (before 9.1) and once after I should pick the start end range between *. Say here 1.1 is start range and end …

Member Avatar for Ancient Dragon
0
112
Member Avatar for pars99

So, I see pointers defined in many different ways but I never quite understood what the difference was. Could someone explain it to me? Examples: `int * a; int* a; int *a` That second one may or may not be actual C++ but I've seen it done in all those …

Member Avatar for pars99
0
140
Member Avatar for Builder_1

the folllowing code i have made but its not catering for the vowels coming together...what should i do in this code to accurately count the number of vowels and count the remining char left in string without vowels as after tokenization only the first token remains in the char array/string …

Member Avatar for Builder_1
0
568
Member Avatar for ranjithattingal
Member Avatar for bhem-bhem

hi...im new in here can any give me or help me to have some code in vb6.0...my project right now is unit conversion..gope can anyone give me a big help..thank you so much.

Member Avatar for Marius_1
0
149
Member Avatar for CoilFyzx

Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly …

Member Avatar for CoilFyzx
0
408
Member Avatar for mixelplik

I'm practicing arrrays and in the following program I'm passing a multidimensional array to a function to fill it. This worked with a single dimensional array just fine. (1) Is this bad practice? (2) Do the multi-D arrays work the same way as the regular ones. In the program below …

Member Avatar for mixelplik
0
214
Member Avatar for kentuckyjoe

I have a question about best practices as far as opening and closing the database connetion in my app. Currently I am opening and closing each time the database is accessed with a query or update. Should I be doing this? It’s a lot of opens and closes. Or maybe …

Member Avatar for Reverend Jim
0
184
Member Avatar for pem

#include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <cstdlib> using namespace std; int main() { string title, nameX, nameY; const int maxData = 20; int data, maxValue; int count = 0; vector<int> v; maxValue = *(max_element(v.begin(), v.end())); for(int a = maxValue; a > 0; a++) { if …

Member Avatar for Moschops
0
122
Member Avatar for vjeshemv2000

Hai all, i have created a project in visual basic 6 and i made the exe file by clicking the command in file menu " Make Exe ........". but the icon represents like a form. i wnat to change this icon to my own. how can i change it. is …

Member Avatar for Omega330
0
3K
Member Avatar for fheppell

I'm learning django and for the latest version of the tutorial i'm using, you must have python 3 installed. Despite the fact I have python 3 installed, python 2.7.6 is being loaded. My path originally had no reference to python, so I added it. C:\Ruby200-x64\bin;C:\Users\Freddy\AppData\Roaming\npm;C:\python33\python.exe However, python 2.7.6 is still …

Member Avatar for slate
0
354
Member Avatar for LeNenne

In a list box some email now I will that the corresponding name to the email rs.MoveLast rs.MoveFirst max = rs.RecordCount rs.MoveFirst LstData3.Clear List1e.Clear For i = 1 To max If Not Len(Trim(rs("Email"))) = 0 Then LstData3.AddItem rs("email") & " " & rs("eftn") & " " & rs("namn") If Not …

Member Avatar for Minimalist
0
365
Member Avatar for chen.fisher

Hi, I'm having a problem when my friendly url path contains ".aspx". When the path contains ".aspx" all usage of "~/" is resolved incorrectly. For example: When the friendly url is something like this: [url]http://www.example.com/a/b/c/d.aspx[/url] then the tilde "~" is resolved as "../../../" which is good. BUT, when the friendly …

Member Avatar for balajijadhav
0
674
Member Avatar for FaheemSajid

Hi! I am facing a problem that i have redirected a website to the new one in htaccess but google webmaster is showing the "Links to Your Site" problem in webmaster and according to my knowledge this problem is very critical and serious. Is there any solution to get rid …

Member Avatar for FaheemSajid
0
396
Member Avatar for Fahad_3
Member Avatar for sravan953

Can the sibprocess.call('') function be used to execute .mp3 files, it doesn't work for me. Which function is used to run any video or audio file from within Python?

Member Avatar for aru123
0
2K
Member Avatar for Zizou_1

Month CBS GFS HR HR Payroll INCV cbs1 gfs1 hr1 hr2 hrm incv1 Baseline <=97 <=125 >=11 >=19 <=25 10 (6mths) 2013-07 97 89 14 28 30 4 2013-08 58 103 18 6 24 18 2013-09 54 110 11 14 25 17 2013-10 108 129 17 8 23 18 2013-11 …

0
260
Member Avatar for senokuza

#include<stdio.h> #include<stdlib.h> #include<string.h> #define sizeofhash 30 struct nsbh { char nama[100]; char norek[20]; char ttl[40]; char jk[20]; char alamat[30]; char kota[50]; char nohp[15]; int saldo; struct nsbh *next; }; struct nsbh bank; typedef struct nsbh atm; atm *hash[sizeofhash]; atm *a=NULL; atm *b=NULL; atm *c=NULL; //Nasabah bank; //Nasabah * pbank = …

Member Avatar for senokuza
0
297
Member Avatar for Mohamed_26

Hello Everyone, I have to create a temporary table for basket. I have to include certain fields from different table. Now I know the code to create a temporary table "CREATE TEMPORARY TABLE", is that right? But I dont know how to choose different fields from different table. Let me …

Member Avatar for Mohamed_26
0
309
Member Avatar for Nadeem_2

Hi folks I want to universal website crawler using PHP, so my crawler will work on any given site. By using my web application, user will input any site, will provide input, what he needs to get from given site and will click on Start button. Then my web application …

Member Avatar for cereal
0
414
Member Avatar for yann.bohbot.9

I'm new to C and I i have an assignment where I have to build a dictionary (Linked List). Basically the user inputs several words,year and their definitio likn this: Example: > love_#_2004_#_LOVING `trade_#_2001_#_INVEST` etc... Now what I need is to have a function that will scan the definition which …

Member Avatar for yann.bohbot.9
0
351
Member Avatar for Abdul Waseem

Read first row from csv file and create table automatically according to it(csv file fields) in mysql. Looking for PHP script? I have tried this. <?php $arr = array(array(),array()); $num = 0; $row = 0; $handle = fopen("./contacts.csv", "r"); while($data = fgetcsv($handle,1000,",")){ $num = count($data); for ($c=0; $c < $num; …

Member Avatar for Bachu
0
5K
Member Avatar for Iikeloa

Hi I have this code and the code is working very well but I have an error : Notice: Undefined index: id in /var/www/core/myaccount.php on line 9 Here is my code: <?php session_start(); require_once('inc/config.php'); require_once('inc/header.php'); require_once('inc/functions.php'); login(); if(!$_GET['id']) { header("Location: index.php");} switch($_SESSION['id']) { case $_GET['id']: $id = $_GET['id']; $query = …

Member Avatar for broj1
0
319
Member Avatar for judah.raine

Hi there, totally confused and hoping someone can help. I have an existing article template which suddenly developed this error when viewing the article: Parse error: syntax error, unexpected $end in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php on line 324 My confusion is because I was previously using the template without errors, and to the …

Member Avatar for Dani
0
270
Member Avatar for rubeea.jaffari

Hey everyone, Can we create a java file that runs without the JVM? I have googled the topic and found out about excelsior Jet that is meant to convert the java code into native one so that it won't require a JVM. Is it true and should I download the …

Member Avatar for stultuske
0
213
Member Avatar for DTSCode

so i "finished" my irc bot in python. by finished i mean it only connects to irc.quakenet.org #cplusplus (you can see it if you connect. its called DTSCode-Bot). however, the point of my class isnt just to create a bot. i also want to create a client. so i cant …

0
116
Member Avatar for momonq1990

hi sir! little bit lost here in php. Pls help! how can I add css file for may xml created from php? <?php bla bla bla..... ---------<?xml-stylesheet type="text/css" href="markers.css"?>-------how can i add this line? echo '<markers>'; while ($row = @mysql_fetch_assoc($result)){ echo '<marker '; echo 'name ="' . parseToXML($row['name']) . '" …

Member Avatar for Bachu
0
271
Member Avatar for imBaCodes
Member Avatar for mikepeal
0
4K
Member Avatar for rohit b k

Hello everyone, I have to create a wpf application where i have to create 2 windows(one for toolbox and one for work area) similar to visual studio appearance, in toolbox window i will have controls like button,textblock etc, when i do drag and drop from toolbox to work area on …

Member Avatar for KushMishra
0
303
Member Avatar for mohd.nasrul.iwan.fajaruddin

*new to C#* I have created a form , with a working coding , but i need an extra assistance. Somewhat , i am stuck on trying to figure out how to let the 3rd combobox value , determined by the first and second. Like this : [Main Form](http://i.imgur.com/1rePOge.png) For …

Member Avatar for KushMishra
0
248
Member Avatar for Khoo

Hello, I got a error 'Does not implement interface member' I search around the net and try a lots of solutions, both did not works for me. How can I fix this problem ? 'Browser.CoreServer' does not implement interface member 'browser.iDataConnection.tcpclient' ... namespace Browser { public interface iDataConnection { TcpClient …

Member Avatar for KushMishra
0
2K
Member Avatar for Trle94

Hello there, does anyone have some news system to share with me? Like reading news from xml but to show also links or something?

Member Avatar for KushMishra
0
103
Member Avatar for misd_bunder

![ef58374af47c49d4351e49bbebe0a030](/attachments/large/3/ef58374af47c49d4351e49bbebe0a030.jpg "ef58374af47c49d4351e49bbebe0a030") I have even uninstalled and reinstalled the visual studio 2010 but still the error comes. Please Help me to overcome this thank you

Member Avatar for KushMishra
0
329
Member Avatar for Aamit

Hi, I want to do like: 1> [COLOR="Red"]browse file and upload .xls file only[/COLOR] (Not csv or other format) 2> save into mysql database. Any sample demo example?? Or link please?

Member Avatar for Abdul Waseem
0
134
Member Avatar for João_5

Hello guys, i have been working on a new script that will import data from a TXT file to mysql. Using this code works ok: $sql = 'LOAD DATA LOCAL INFILE 'logons-16-12-2013.txt' INTO TABLE pcvsuser COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\\r\\n''; But if i …

Member Avatar for Abdul Waseem
0
4K
Member Avatar for stef1047

hi guys ... can you help me with an example of arrangements records either to modify, delete or search is that I will perform a program in c to enter, modify, delete and search data simply as integers but still not mastered well as that I mentioned before and if …

Member Avatar for Ancient Dragon
0
141
Member Avatar for karma2you

This semester is my first programming class and I am really struggling to complete this project. I just can't get a handle on this.I know its simple but my program is not running. Can someone help me and explain it ? Here are the rules(outline): - You must ask the …

Member Avatar for Ancient Dragon
0
245
Member Avatar for mikewyatt

I know that this is probably the stupidest question that I have ever asked but here goes....... I am trying to create a new application in netbeans..... and having no luck at all. First I create a new project called Interactive Campaign Manager by choosing java category and then Java …

Member Avatar for mikewyatt
0
212
Member Avatar for bryann

I am trying to create a Caesar Cipher in Python. I have managed to put together my program with the help of some other websites but have hit a bit of a wall. My code allows me to encrypt a single character and will then ouput this and write it …

Member Avatar for mathijs
0
253
Member Avatar for triumphost

Why is accessing data in an uninitialised array undefined behaviour? I ask because I was doing some benchmarking on `vector<int>` vs. `int*` vs. `int**`. My results were: http://stackoverflow.com/questions/20863478/class-using-stdvector-allocation-slower-than-pointer-allocation-by-a-lot Now I'm being told if I use the raw array and try to access an index without initialising it first, it is …

Member Avatar for mike_2000_17
0
193
Member Avatar for PerplexedB

When one sets the DropDownStyle property of a combobox control to DropDownList, the system (from windows 7 on, not sure I had this problem in Vista) changes the appearance of the field, so that it somehow reminds one of a command button. I definitely need the DropDownList behavior, but I'd …

Member Avatar for PerplexedB
0
206
Member Avatar for Iikeloa

Hi when I run my code the loop doesn't stop! which force the browser to freez.I don't know what is wrong with the loop I have around 4 users only ! and my query select only one of them here is my code : $id = $_GET['id']; $sql = "SELECT …

Member Avatar for cereal
0
195
Member Avatar for The_Thorn

To begin, I adore PHP. Wow. The "problems" with PHP is not PHP, it's me, honestly. I am having issues coding at times and a tad of frustration. But, I am receiving great results with reseach, help and hard work. My current issue is rather simple I believe but I …

Member Avatar for cereal
0
290

The End.