199,114 Archived Topics
Remove Filter ![]() | |
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 | |
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 = … | |
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 … | |
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 … | |
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 … | |
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({ … | |
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 … | |
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' … | |
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 … | |
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 … | |
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 … | |
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! | |
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 | |
![]() | 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 … |
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" … | |
# 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 … | |
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 … | |
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 … | |
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 … | |
**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 … | |
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 … | |
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 ; … | |
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?! ![]() | |
<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) … | |
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 … | |
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 , … | |
How to build a website like emp3world.com Please help me... > Munna Bharadwaj | |
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 … | |
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 … | |
l am trying to setup a USSD application working through sockets. l have no idea where to start, can someone point in the direction. | |
can anybody tell me how to display image in C++ (C-Free) | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
hii all, i hope everyone is ok, can someone tell me why my crystal report dosesnt show any of my data. Best regards | |
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 … | |
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> … | |
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 = … | |
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") … | |
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 … | |
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 … | |
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" | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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.. |
The End.