199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for raviaaaa

Hi All I wanted to write string.contains() in jdk 1.4, but i know 1.4 doesn't support contains is there any way to do the same ex: if the string contains "," i want check the condition String name; if(name.contains(",")) is there any way to do in jdk 1.4 Regards Ravi

Member Avatar for DavidKroukamp
0
569
Member Avatar for warlord902

I want to know, is it possible to use a mySQL database simultaneously from a PHP website and a Java Website both making continous read and write operations. Are there any tradeoffs? Does connection pooling affect this?

Member Avatar for joehms22
0
187
Member Avatar for tunisia

Trying to convert the following block of perl to python for($row = 0, $mytype = 500; $row < $filearray_count; $row++) { if ($_ eq $filearray[$row][0]) { $mytype = $filearray[$row][1]; print "$row, $mytype, $_ \n"; break; And here is the python attempt. I'm not sure if I'm dealing with $mytype = …

Member Avatar for TrustyTony
0
216
Member Avatar for dany12

Hello I want to chnage the background to the latest radio btn clicked like in the atached image I have made somecode but this is not doing the job I have strated like this `jQuery(':radio:last:checked').length`I thought that by this way I will get one result and I was right then …

Member Avatar for dany12
0
452
Member Avatar for infinityblade

Hey guys, So I really need help writing a c++ program that is supposed to read in values for Red Green and Blue colors between 0 and 255, and then use a different function to convert them to Cyan Magenta Yellow and blacK color using set formulas. 1. Write a …

Member Avatar for triumphost
0
3K
Member Avatar for rbean10

I am creating a program to decrypt the line of code ":mmZ\dxZmx]Zpgy" with ASCII method. What I have so far translates individual characters perfectly. But I can't seem to translate whole lines/words. Everyway I've tried gives an error somewheres. I think I need to use cstring or string. Any tips …

Member Avatar for Moschops
0
565
Member Avatar for teedoff

Ok, I have some sorting/drag and drop code that works fine as far as that basic functionality goes. I need to be able to serialize and save the sorting order to send back to the set method for the database. Here is my js: <script language="JavaScript" type="text/javascript"> $(function() { $("ul.droptrue").sortable({ …

Member Avatar for teedoff
0
311
Member Avatar for atummapala

Hello Everybody, I am having a doubt regarding how to upload a file to multiple machines or servers. I tried using with FTP but getting ConnectException:connection Refused import sun.net.ftp.*; import java.io.*; public class SendFile { public static void main(String args[]) { String hostname = "172.14.3.23"; //Remote FTP server: Change this …

Member Avatar for JamesCherrill
0
459
Member Avatar for veledrom

Hi, I'm trying to insert incoming data from teaxarea into txt (can be without extention as well) file but the incoming data is being manipulated automatically which I don't want. I need to insert as is. How can I solve this problem? Thanks **My codes to insert:** $handle = fopen('cms/files' …

Member Avatar for veledrom
0
101
Member Avatar for TheVendor

Hi there, I am trying to customize a Woothemes shortcode toggle in their 'Canvas' theme, and in my particular case I have two toggles on my Wordpress page. One toggle shows by default, the other is hidden. What I want to do is switch those toggle states around (open the …

Member Avatar for TheVendor
0
668
Member Avatar for kesh1000

Hi Guys, I have to do a solution for a event which fires at every 500 millisecond. I need a solution which i can use to check if the function has run once for a purticular day. If i use a static variable it becomes out of scope and as …

Member Avatar for gusano79
0
120
Member Avatar for perllearner007

Okay pardon me for this silly question (I am learning perl!) but how do we run a perl file that has many sub functions. For example, if a file called thisismyfile.pl has following sub functions sub thisismyfunction1 sub thisismyfunction2 where sub thisismyfunction1 will output table 1 and sub thisismyfunction2 will …

Member Avatar for perllearner007
0
150
Member Avatar for MooGeek

Hi, I'm searching for an Audio/Sound monintoring sample code. What it does is it **meters** the sound coming out of the computer. Can you give me some examples on how to do it? Thank you!

Member Avatar for gusano79
0
153
Member Avatar for mogaka

function name_loop(){ var names_array = []; $('.name_class').each(function(index){ names_array[index] = $.trim($(this).val()); }); return names_array; } the problem with the above code is that it returns only the first element and not the specified array. can someone solve it for me

Member Avatar for JJenZz
0
110
Member Avatar for arcticM

in this code- CREATE TABLE `tablename` ( `id` int(10) unsigned NOT NULL auto_increment, `a` varchar(10) NOT NULL, `b` varchar(45) default NULL, `c` varchar(45) NOT NULL, `d` varchar(45) default NULL, PRIMARY KEY (`id`), KEY `Index_a` (`a`), KEY `Index_bcd` (`b`,`c`,`d`), KEY `Index_cd` (`c`,`d`) ) ....; what do the lines that start with …

Member Avatar for firdousahmad
0
152
Member Avatar for <HHH>

i have error which teel me no resource found in my main.xml file and i cant resolve it any help please <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@android:drawable/images.jpg"{it give me error here} > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.07" android:gravity="center_horizontal" android:text="@String/hello" />{and here} > <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.01" android:text="Back" android:textSize="40dp" …

Member Avatar for peter_budo
0
134
Member Avatar for TheSomalilander

# Hello every bodyI'm new to database modeling, my teacher asked me to choose a government institution and design/model a database for it using ERD modeling. I need help on creating the business rule and identifying the entities, I can add attributes once I create the business rule. I choosed …

Member Avatar for seslie
0
162
Member Avatar for helenc

Hi there, I'm having trouble getting a rotating image script working on a site. Unfortunately it's not displaying correctly in Firefox or IE9 and I need some help to fix that and wondered if anyone would be kind enough to help please? It seems to get stuck on the Sharpie …

Member Avatar for dany12
0
213
Member Avatar for G_S

Hello. I need your help with PHP. I recently began studying it, and I am stuck at the "make a contact form" exercice. I am trying to understand the concepts behind it. I think I get everything, but still my Form won't work. I event went as far as to …

Member Avatar for G_S
0
280
Member Avatar for apanimesh061

I want to display the first or any frame of a youtube video directly as I click on its url. Can I also get the dimensions of that particular frame ? How should I do it ? Is 'ffmpeg' an option, but I have seen that it is used with …

Member Avatar for apanimesh061
0
1K
Member Avatar for johnadamson

**PLEASE HELP ASAP!!! I need help completing this by tomorrow afternoon!!! Can anybody write this for me???????? ** Chemin de Fer is a French card game. You will be creating a simulation of this card game. In Chemin de Fer, cards have the following values: aces are worth 1, cards …

Member Avatar for Schol-R-LEA
0
481
Member Avatar for maad_jhangir

Hi, Guys i need a simple help from you guys. There's a scenerio that i m sure is very common in mysql and i know most of you can answer that but i m new to mysql so need some basic polish. so my scenerio is that for example i …

Member Avatar for maad_jhangir
0
218
Member Avatar for akshay.lahiry

Hi Guys I am trying to create a global object instance and am currently running into a segmentation fault while accessing a member variable. I have a capture.h file and a capture.cpp file //In capture.h struct ringinfo { // a simple struct }; class capture_manager{public: func1(); func2(); ringinfo ringinf ; …

Member Avatar for akshay.lahiry
0
3K
Member Avatar for lemur

Hi guys, For the staticstic purpose I try to write code that will count word "articles" in array in outside file sheet. $file = "articles"; $word = count($details[5]($file)); echo substr_count($word, ' '); so far, I try somethig like u can see above, but it s not work. any idea why?!

Member Avatar for diafol
0
121
Member Avatar for willjohanz

<html> <head> </head> <body> <img src="blue hills.jpg" name="slide" width="350" height="300"/> <script type="text/javascript"> var image1=new Image() image1.src="Sunset.jpg" var image2=new Image() image2.src="Winter.jpg" var image3=new Image() image3.src="Blue hills.jpg" var image4=new Image() image4.src="turf.jpg" var image5=new Image() image5.src="white.jpg" var step=1 function slideit() { <!--if browser does not support the image object,exit.--> if(!document.images) return document.images.slide.src=eval("image"+step+".src") if(step<5) …

Member Avatar for Troy III
0
364
Member Avatar for Goomba79

Hello (again) I have a problem with my SQL, all the other statements i have written work so I can't understand why this one isn't!! the sql is... sql = "Select * From Skills Where StampNo = " & Stamno & " Cell = " & cell & " And …

Member Avatar for Goomba79
0
128
Member Avatar for M.Waqas Aslam

hello ! i am using mssql server 2008 , i have a table with three fields , 1- ProdID 2-ProdName 3-ProdPic , now i want to show the all records of the table in the datagridview by using vb.net , how can i show my image field in datagridview , …

Member Avatar for poojavb
0
2K
Member Avatar for asrsmunna

How to build a website like emp3world.com Please help me... > Munna Bharadwaj

Member Avatar for asrsmunna
0
113
Member Avatar for xzero1

hi, i am using regular expression in extract paragraph from html code but it gives me only one (the first one) line written in first <p> i want the whole article in my string. here is my code. Match m = Regex.Match(htmlstring, @"<p>\s*(.+?)\s*</p>"); htmlstring=m.Groups[1].Value; where "htmlstring" all the html code …

Member Avatar for nmaillet
0
3K
Member Avatar for ocs2me

Below is my scripts: <% connstring ="Provider=MSDAORA;Data Source=(DESCRIPTION="&_ "(ADDRESS=(PROTOCOL=TCP)(HOST=cqcmdb1.corp.mot.com) (PORT=1521))"&_ "(CONNECT_DATA=(SID=CQPD2)));User ID=report_ccmpd_ro;Password=report" set con = server.CreateObject("ADODB.Connection") con.open connstring set conn = server.CreateObject("ADODB.Connection") conn.open connstring sqltest = "select T1.screen_failure, DBMS_LOB.SUBSTR(T1.ROOT_CAUSE_ANALYSIS,9000,1) AS RCATT from Submission_Record T1 where T1.dbid <> 0 and (T1.Headline like '%[O2O7]%')" set rs=server.createobject("adodb.recordset") rs.open sqltest ,con,1,3 sqltestonly = "select …

Member Avatar for gs98
0
115
Member Avatar for masocha

l am trying to setup a USSD application working through sockets. l have no idea where to start, can someone point in the direction.

Member Avatar for pritaeas
0
195
Member Avatar for chamnab
Member Avatar for theflier13

Hi, I am in the process of trying to use VB 2005 to connect to a MySQL DB . I have the data connection working between the program (VB 2005) and my MySQL server but now I need to make my code connect to it. I have never done a …

Member Avatar for yihkiat
0
214
Member Avatar for Myrna90

Hi, I'm new to python, although I have experience with other programming languages. I installed python and downloaded packages, which all work fine. But now I downloaded Obspy, and it can't find the modules. For example, if I type: from obspy.core import read, it gives an error stating that there …

Member Avatar for Myrna90
0
237
Member Avatar for aeshabana

Here is the poblem Class file I am not sure if it reading the id and saving it Java file (Error: After end of result set) when trying to display SQL, (Error: in the id) package homework1; import java.text.FieldPosition; import java.text.SimpleDateFormat; import java.util.Date; import java.sql.Connection; public class RegisterEntry { //Registration …

Member Avatar for DavidKroukamp
0
526
Member Avatar for ganges

how to connect html form feilds with mysql using hibernate, like giving input through the html form storing data, and retriving data kindly provide me simple example for those connection. thanking you.

Member Avatar for DavidKroukamp
0
132
Member Avatar for blackmagic01021

I have a marshalled data packet from the ActiveMQ connection. When I deceive the message my unmarshalling method should unmarshall the message to ite appropriate class object. I have the follwing message in the console of the Eclipse Indego. Exception in thread "ActiveMQ Session Task-87" java.lang.IllegalAccessError: com/sun/xml/bind/v2/runtime/reflect/opt/Const at weathergenerated.IMaritimeWeatherStationInformation$JaxbAccessorF_visibilityDistance.set(FieldAccessor_Integer.java:59) at …

Member Avatar for DavidKroukamp
0
741
Member Avatar for thacravedawg

Alright, so I have a datagridview that I'm populating with a datatable, and I have added a button column. Now I am trying to use this button's click event to open a new child form. I can't for the life of me figure out what I've done wrong. When I …

Member Avatar for phadalemadhuri
0
305
Member Avatar for HibaPro

hii all, i hope everyone is ok, can someone tell me why my crystal report dosesnt show any of my data. Best regards

Member Avatar for kvprajapati
0
116
Member Avatar for ehpratah

hi need a hand here.. im having trouble in making my code work(well actually im not getting it)what i need to do is to compute the rate of vehicle that is rented..the only thing that i came up is with the **perday rate** and the other 2 i cant find …

Member Avatar for ehpratah
0
133
Member Avatar for kingofnothing

hi i need to show the last post thumbnail only i had the code but im now looking for code to get image i need to place the image on the top <ul> <?php $recent = new WP_Query("cat=1&showposts=10"); while($recent->have_posts()) : $recent->the_post();?> <li><a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?> </a></li> …

Member Avatar for kingofnothing
0
150
Member Avatar for rupes0610

I am attempting to remove 3 commas from the file below but it is not working. #!/usr/bin/perl use strict; use warnings; my @data; my @line; open(FH, "error_log"); @data = foreach $line (@data) { if ($line =~ /notice/) { if ($line =~ /rdy/) { $line =~ s/ /,/g; my @L1 = …

Member Avatar for 2teez
0
122
Member Avatar for M.Waqas Aslam

hello all of you ! i am making a simple form which can create the text file from the database table , for this , i am using this code at the load event of my form so that it can create the files at the load time. IO.File.Create("C:\Customers.txt") IO.File.Create("C:\Towns.txt") …

Member Avatar for M.Waqas Aslam
0
211
Member Avatar for McLaren

I need query tool, which has one simple function - to be able to execute different queries not commending out another queries. This is so annoying, how those another software can not have this simple feature, like pgadmn does not have (I guess), dreamcoder does not have, have just tried …

Member Avatar for McLaren
0
159
Member Avatar for pmark019

Is it possible to send the content of a textbox in an android application to the textbox of a website?... Example: I have IDNo and Pass as textbox in my application. There is also a log.in button. If i press the login button, the content of IDNo and Pass will …

Member Avatar for pmark019
0
123
Member Avatar for code739

guys am a newbee and starting to use oracle as a database for php i just want to ask on how to connect php to oracle then how to select a particular database is there an equivalent function for this in oci "mssql_select_db"

Member Avatar for code739
0
127
Member Avatar for sammoto

The issue will be pretty clear to those of you with experience. As the title suggests, I'm having trouble accessing private variables from other classes. I'll tried to attach all the relevant files, but it wouldn't let me, so I'll try to explain my issue first then post all the …

Member Avatar for sammoto
0
192
Member Avatar for adishardis

Hi, I'm sorry if this is answered already but I'm such a newbie at programming that I apperantly can't formulate my problem to find an answer! :-/ Here goes: I have a table filled with data. I want a user to be able to select via a dropdown list what …

Member Avatar for adishardis
0
220
Member Avatar for mozart_azul

Hello! I am new to Python, and I want to learn it. I have just installed Python 2.7.3 And Visual Python Tkinter IDE for Ver 2.6-2.7-3.1 (BETA) –Version: 2.0.12.2524. I was looking into some the Tutorial and follow the first example to code. Here begun my issues. First Step: I …

Member Avatar for mozart_azul
0
926
Member Avatar for vijukumar

can any body help me how to create a site with session on when the user login and without session when the guest visit the front page? please pass me the sample code..

Member Avatar for Biiim
0
4K

The End.