199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Pyler

I have two strings, `String one = new String("word");` `String two = new String("word");` Why does `System.out.println(one.equals(two));` Return true given that one and two are two different `String` objects.

Member Avatar for jwenting
0
156
Member Avatar for nileshbhanu

<?php $host = "localhost"; $user = "root"; $pass = ""; $databaseName = "foresight"; $tableName = "userinfo"; $con = mysql_connect($host,$user,$pass); $dbs = mysql_select_db($databaseName, $con); $result = mysql_query("SELECT * FROM $tableName where flag != 1"); //query $email = mysql_fetch_row($result); mysql_close(); //fetch result ?> <? $host = '192.232.240.245'; $user = 'root'; $pass = …

Member Avatar for diafol
0
210
Member Avatar for burhanahmed92

I have a array of dates like this $dates = ('2014-01-21','2014-03-11','2013-01-21','2014-03-11','2013-07-21','2012-01-21'); I want to get array values where year is 2014. I mean when i change value to 2014 it will return value from array which contain year 2014 only. In this case it will return '2014-01-21','2014-03-11' to me. Is …

Member Avatar for diafol
0
448
Member Avatar for vickey66

Hi, I am new to VB programming. I am using Aceess 2010 database with VB 2010. I have one main table which stores information of company details. The details are broken down in seven different tables with codes to avoid data duplication and keep the main table less bulky. e.g. …

Member Avatar for vickey66
0
300
Member Avatar for aisha.edris1

hi everyone i need website for free to create a domain name and hosting server to upload my project

Member Avatar for rozermartin28
0
331
Member Avatar for best4earn

I already used free hosting of these websites 000webhost.com byethost.com biz.ly & freeservers.com bt their free hosting is not best because their mysql link down or server some time redircts my site to some advertisments . Can any body suggest me a free webhosting which wil be best & their …

Member Avatar for rozermartin28
0
287
Member Avatar for nisbusiness

There are plethora of free hosting providers available in the online market. Is it true that choosing any one of these providers help gaining success in the online world? How can i choose between a right host and an ineffective host offering free hosting services? what are the things that …

Member Avatar for rozermartin28
0
196
Member Avatar for vibhuti@sharma

hi everyone recently I made a jsp website as a part of my minor project now my clg wants me to host it ,since i am very new to all this i dont know how to do it ...actually I also want that my website should also be connected to …

Member Avatar for rozermartin28
0
182
Member Avatar for baby_c

Hi friends..! Need little help here to choose a language to code my 2nd year project assignment. We are given to develop a 'Tank game' which will ultimately play over a network. maximum four players can join the game, there is a server application runnig on a server machine and …

Member Avatar for rozermartin28
0
338
Member Avatar for jovstudios

Hello guys, I want to validated in my textbox only numbers shoud be entered and i found this code. <script> function isNumberKey(evt){ var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } </script> then i …

Member Avatar for rtrethewey
0
120
Member Avatar for rory.starkweather.7

This only appears to move one character even though it does a lot of thrashing around when I step through it. It looks like it's only executing the loops once, but the topmost character in the array is corect. It just like the others aren't moved at all. #include <string.h> …

Member Avatar for rory.starkweather.7
0
277
Member Avatar for PsychicTide

Hey guys, I'm trying to start a yes/no vote div which, when clicked, increments MySQL entry either way. I've seen several examples of how to do this type of thing online, but can't seem to grasp this process on my current layout. I'll show a little as possible to not …

Member Avatar for PsychicTide
0
375
Member Avatar for skald89

I want to compare two images side by side. I am trying to grab and store the heights of the first column, to apply the heights to the corresponding image in the other column. Right now I can only get it to either get the first height or all of …

Member Avatar for rtrethewey
0
112
Member Avatar for Sajoo

Hello I am working on Parallelization of Fractal Image Compression. I have used prof. Yuval Fisher's enc.c and dec.c fractal image compressor / decompressor. The code is working fine but my question is: How to view the RAW images lenna.dat(input image) and lenna.out(decoded image) on Windows/Sun/LINUX machine. I think there …

Member Avatar for Arun_8
0
385
Member Avatar for abaddon2031

Ok so im working on a script that reads a large file then splits it up into seperate files using the field in it called PC Number. What im wanting to do is check if the file already exist if it does then it just appends the new data but …

Member Avatar for abaddon2031
0
428
Member Avatar for centenond

Im a little confuse with this particular function 'date()' Its a serverside time or it takes the time of the client computer? See its shows a time that in anymeans is my current time but still when i change my pc time it also change

Member Avatar for PsychicTide
0
235
Member Avatar for Prashant_4

dear friends, I am a beginner in c programming and I have learned the c++, java as well, In C I have been asked for a question about how to convert lower case string like any name into uppercase, and i have read a program for it by pointers and …

Member Avatar for naveen1993
0
238
Member Avatar for COKEDUDE

Can I please have a good detailed explanation on the differences between malloc and calloc? I always have trouble understanding that.

Member Avatar for deceptikon
0
350
Member Avatar for mcsreerag

I need help in reading numbers using scanf functions. A range of numbers have to be scanned.No array should be used.No limiting condition for reading is given.What shall i do.?

Member Avatar for naveen1993
0
162
Member Avatar for Subhasis giri

void main() { int i=2; clrscr(); printf("%d %d %d %d %d",i++,i--,--i,++i,i) ; getch(); }

Member Avatar for deceptikon
0
115
Member Avatar for abaddon2031

SO im working on a python code that reads a csv file with 1600 entries roughly and i am splitting them up on the collum value of pc numbers. I keep getting a error that states " Traceback (most recent call last): File "C:\Users\HatterX\Desktop\test\test25", line 50, in <module> data.sort(key=lambda x: …

Member Avatar for abaddon2031
0
486
Member Avatar for moaz.amin.37

Assalam o Alikum my question is that what is the difference between character array and string. my instructor is use char str [50] instead of string str. and i can not understand what is difference between them.

Member Avatar for moaz.amin.37
0
366
Member Avatar for smitsky

Hi. I'm trying to implement a disk scheduling algorithm using a vector. I am able to find the smallest element of the vector with my findMin() function: int computer::findMin( vector<int> v ) { int minIndex = 0; for( int i = 1; i < v.size( ); i++ ) if( v[ …

Member Avatar for mike_2000_17
0
302
Member Avatar for goutham.tandra

Hi! Need to refresh only div for cetrain time without loading any external content into that div.. Can you help me please??

Member Avatar for designershiv
0
765
Member Avatar for Eve_1

Hello guys, I am a new learner in PHP and I am modifying a simple binary site. I am here to ask help how can I calculate my downline pairs or the total left and right side of some user. Here is the example of my tables in database: +++++++++++++++++++++++++++++++++ …

Member Avatar for diafol
0
881
Member Avatar for yeeitsneo

Hi. So I was trying out bootstrap, and I wanted to make a photo gallery. The thing is , my modals work fine but it doesnt seem to fade and its supposed to "pop up" while making the rest of the webpage its background. Im using the images on the …

Member Avatar for yeeitsneo
0
185
Member Avatar for ravi142

I am making chat application but i am confuse where i put setInterval().bellow function working well. function text_input(id,img) { $("#chat_box").keydown(function (e){ if(e.keyCode == 13){ e.preventDefault(); var textval = $("#chat_box").val().replace(/\n/g,'<br />'); $("#chat_box").val(''); jQuery.ajax({ type: "POST", url: "chat_input_insert.php?action=save", //sql querys data: "textval="+textval+"&id="+id }); jQuery.ajax({ type: "POST", url: "chat_input_insert.php?action=display", //sql querys data: "textval="+textval+"&id="+id+"&img="+img, …

Member Avatar for ravi142
0
192
Member Avatar for Alex_24

so heres the code import pyHook, pythoncom, sys, logging file_log = 'C:\\LogFile\\log.txt' some other non important stuff here so the issue is that everytime i try to run the program it says that pyHook is not a module. I have downloaded it for my system but it still doesnt work, …

Member Avatar for tony75
0
612
Member Avatar for Totoo

hi can u please help me solve this question. A small company dealing with transportation has just purchased a computer for its new automated reservations system. You have been asked to program the new system. You are to write a program called ReservationSystem to assign seats on a vehicle. Your …

Member Avatar for Ancient Dragon
0
273
Member Avatar for jaga.dish.39

Hi all , can you pls say how i able to send the email notification alert with the datas getting from Sql server 2008 using windows service . - Thanks in advance

Member Avatar for deceptikon
0
279
Member Avatar for DeepKiran
Member Avatar for DeepKiran

I Have A DataTable In MSAccess TbJform and I want to Show the Columns of TbJform in ListView.................The Columns Are JformNo,JformDate,PartyName,Bags,Packing,Loose etc.............now what sholud i do to show the all the colmns in listview...

Member Avatar for DeepKiran
0
208
Member Avatar for winbala5

In my new project I decided that I will use RedBean ORM system with Codeigniter PHP Framework. How can I get all records from table with simple relation? I know, that I can use R::exec or R::getAll queries but I want to make sure if there any other solution(s). TABLE …

Member Avatar for winbala5
0
259
Member Avatar for hiiiiii@

how to set the minvalue=today and max value=today+30 in javascript or how to do it in jquery what are the files i need to download .plz explain me i never used jquery before .

Member Avatar for hiiiiii@
0
280
Member Avatar for laura301019

Hi I am creating a database that will help monitor attendance at uni. We were given the following spec. Each course is made up of a number of modules. Students enrol in 6 modules. Each module has a timetable which includes times of classes. Class can be a lecture, tutorial …

Member Avatar for jwenting
0
130
Member Avatar for maxpaine69

Hi all, i having a little problem, i have a webpage on iism that has 2 virtual directorys each with one project. Now the problem is bechas of "Paths", how can i get the path(virtual path) od the first level of the virtual directory?? Best Regards

Member Avatar for maxpaine69
0
142
Member Avatar for DawnofanewEra

Can anyone pointed out what is wrong with this code. I got an annoying error something with Scanner method. import java.util.*; import java.io.*; //import java.lang.System.*; public class cTedit implements ICommand{ @Override public void Execute() { InputStream istream; OutputStream ostream = null; int x; final int EOF = -1; istream = …

Member Avatar for jalpesh_007
0
4K
Member Avatar for software girl

//hello.java import java.rmi.*; public interface Hello extends java.rmi.Remote String sayHello() throws RemoteException; } //HelloImpl.java import java.rmi.Naming; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; public class HelloImpl extends UnicastRemoteObject implements Hello { public HelloImpl() throws RemoteException {} public String sayHello() { return "Hello world!"; } public static void main(String args[]) { try { HelloImpl …

Member Avatar for jwenting
0
443
Member Avatar for jalpesh_007

Dear all, I am developing SOAP web service using netbeans. As i have got preferred SOAP request and SOAP response,now i want to add security information like username and/or password in my SOAP header Request. Please tell me how can i modify or add username in my SOAP header Request …

0
266
Member Avatar for mehnihma

Hi Is there a way to set meta tags description and keywords in template file if no description or keywords are set? To chek if exsists and if not to set it? Thanks

Member Avatar for gamsoftware
0
188
Member Avatar for chrisschristou

hello. i have a project to do for android, i want to make a tourist guide app, but i want to have basic information on app and sometime i want 5 request data from google or from website. i must on app apk app or web application in reality i …

Member Avatar for peter_budo
0
228
Member Avatar for code_flea

I have a source code here that counts the frequency of alphabetic characters and non-alphabetic characters (see the source code below). import java.io.*; public class letterfrequency { public static void main (String [] args) throws IOException { File file1 = new File ("letternumberfrequency.txt"); BufferedReader in = new BufferedReader (new FileReader …

Member Avatar for Alberto Bucur
0
222
Member Avatar for sureronald

An image resize script that I have written to scale images from a digital camera. I couldn't used the gimp (my favourite image editor) to scale each of them one by one. This script takes two arguments which are both directory names. The first one is the directory containing images …

Member Avatar for Budy_1
0
749
Member Avatar for vegaseat

Using the Python Image Library (PIL) you can resize an image. Several filters can be specified. ANTIALIAS is best for downsampling, the other filters work better with upsampling (increasing the size). In this code snippet one image of each filter option is saved, so you can compare the quality in …

Member Avatar for Budy_1
0
73K
Member Avatar for joshl_1995

Hello Community, I'm about to start making a website for someone. So what I'd like to know is does the website creator credit themself, like have my name in the footer of the page. What is the right way to go about doing this?

Member Avatar for joshl_1995
0
236
Member Avatar for adam.wolnikowski.9

I'm writing a program where the settings of a spreadsheet-like field of textboxes are changed using two for loops, and I can't for the life of me figure out why it's not working.I have tried declaring the txt variable and name variable in different orders using different methods, but nothing …

Member Avatar for adam.wolnikowski.9
0
256
Member Avatar for sparky58

1. This assignment asks to add some code from to a previous assignment I had. I have been confused about this overload operators alot and im confused on how to do it in my code any help with this will be good A) overload the >> operator to allow for …

Member Avatar for Ancient Dragon
0
290
Member Avatar for ravi_14

i found following code to create a two dimensional array at run time if one of the dimension is known.. char (*c)[5]; c=new char[n][5]; first line is pointer to an array of 5 integers but i couldnt undesratnd the second step.

Member Avatar for Ancient Dragon
0
293
Member Avatar for tony75

Hi I’m working right now with computer forensics. I have an xml file which I have saved from Process Monitor . The file look like <?xml version="1.0" encoding="UTF-8"?> <Company>Sysinternals - www.sysinternals.com</Company> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6de80000</BaseAddress> <Size>24576</Size> <Path>C:\Windows\system32\Riched32.dll</Path> <Version>6.1.7600.16385 (win7_rtm.090713-1255)</Version> <Company>Microsoft Corporation</Company> <Description>Wrapper Dll for Richedit 1.0</Description> </module> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6f3b0000</BaseAddress> <Size>65536</Size> …

Member Avatar for tony75
0
499
Member Avatar for sigitas.darguzas

Hi all. sory but im beginner on web creating. I need create catalog. first page i need create item add form. after page i need create items catalog. all on mysql sory for bat English :) who can help me. i have login register index pages.

Member Avatar for Fernando_4
0
186

The End.