199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bulger2503

Is there a way to add data into a RandomAccessFile using seek(long) without writing over the data at that position and beyond? For example: [code] public static void main(String[] args) throws Exception { RandomAccessFile raf = new RandomAccessFile("test.txt", "rw"); raf.writeBytes("Hello, World!"); seek(2); raf.writeBytes("Goodbye, World!"); raf.close(); } [/code] Using that the …

Member Avatar for JamesCherrill
0
108
Member Avatar for euwbah

Here you can share assembly code snippets for the YASM assembler and you can also help people with their YASM assembly programming and share 32-bit apps. :) I also have a problem when I do this (It is supposed to generate a very simple hello in the cmd(DOS/command.com/command prompt): [CODE] …

Member Avatar for euwbah
0
283
Member Avatar for kadriirdak

Hi There, I have a usage problem with CURL output. I have a web services and I use CURL to get the data, However this web services set up as XML output and I want to convert it to array to use the result in the web form. My CURL …

Member Avatar for kadriirdak
0
6K
Member Avatar for [V]

Ive noticed print() includes linebreaks, and its real easy to suppress them. Is there a way I can write lines to a file, but have the line breaks includes implicitly? eg: [CODE] file=open("testfile.txt","w") file.write("line 1") file.write("line 2") file.write("line 3") file.close() [/CODE] meanwhile the file will contain [code] line 1\nline 2\nline …

Member Avatar for vegaseat
0
134
Member Avatar for srikanth2321

HI, I have a software which gives me a text file which consist of German characters and are stores in the notepad with space. When I open it with note-tab software initially the german character is stored as space but they have a option " convert to ASCII text" then …

Member Avatar for srikanth2321
0
205
Member Avatar for mm_89

Hi, I have a website and it requires online payment but the problem is that the client wants no PayPal or any other intermediate service, just direct payment from one visa card to another. I would like to know if there is a way to do that , and whether …

Member Avatar for mm_89
0
77
Member Avatar for judithSampathwa

hi there, i am trying to build an website and i have formatted them with div tags, but when i view the same page in a web browser the text boxes and the labels are not in a proper place. how do i fix it the code is below [CODE] …

Member Avatar for judithSampathwa
0
174
Member Avatar for chifliiiii

Today 05/18/2011 If i do [CODE]echo date("H:i m/d/Y", strtotime("tomorrow"));[/CODE] i get 00:00 05/19/2011 as it should be but if i use the same function in setcookie like: [CODE]setcookie("wls_yesterday_review", 'completed', strtotime('tomorrow'),'/','myhost.com');[/CODE] My cookie will expire on 05/18/2011 at 09:00PM Im not sure what im doing wrong but i tested different ways …

Member Avatar for chifliiiii
0
290
Member Avatar for Red Dragon

the aim of this programme is to create a .txt file (of which the name is specified by the user) of all the items in a certain directory (also specified by the user) the problem is about half way down, the 'mydir' bit [CODE] #include <iostream> #include <fstream> #include <string> …

Member Avatar for Red Dragon
0
360
Member Avatar for towerrounder

Hi all, I'd appreciate some advice concerning the following issue. I have a situation with two very different ways to implement. Both are easy, but Im not sure of the pros and cons of each. Basically I am allowing users to message each other on a website, and so I …

Member Avatar for nick.crane
0
214
Member Avatar for itisnot_me

ok so im working with execCommand and trying to make a function to insert a youtube video into a content editable div with execcommand inserthtml. Now this works with every other browser except, OMG IE. now i am trying to use pasteHTML(), found that some people have gotten it to …

Member Avatar for foo123
0
652
Member Avatar for spiritsad

Write a C program to implement Queues using Singly Linked Lists. Hints: The operations to be performed are 1. Insert Front 2. Delete Rear 3. Display or 1. Insert Rear 2. Delete Front 3. Display i solve but there are error: [CODE]#include<stdio.h> #include<conio.h> #include<alloc.h> // Structure of each node in …

Member Avatar for zaraki
0
184
Member Avatar for TrustyTony
Member Avatar for TrustyTony
0
911
Member Avatar for kutuup

Hi, I'm working on an assignment where we have to have a client and server sending each other an integer that represents a noughts and crosses board. I had it working by simply sending back and forth the entire NoughtsAndCrosses class, but now we need to do it just using …

Member Avatar for kutuup
0
205
Member Avatar for rEhSi_123

Hi Guys, I am trying to do design a coarse grain algorithm in MPI for carrying out multiple pattern searches. For which I have created a function that does the main pattern searches as shown in the algorithm below called hostMatch. The code below, reads in the data and sends …

Member Avatar for rEhSi_123
0
194
Member Avatar for Acrotab

Hi, Changes made in TextBox is not saved and, consequently, no changes occur in the data base These characteristics are set in the TextBoxes: OnTextChanged="NamеTextChanget" AutoPostBack="true". What do I need to change in the code? This is the code: [CODE] private string resultBase = "Произошло изменение"; string str; string save_str; …

Member Avatar for Acrotab
0
143
Member Avatar for zalia64

Help! I need to write some code for SIMD, 64-bit Intel X86. I am fluent with Masm; Where can I get a Masm version for 64-bit, and some documentation as to the changes in registers, changes in instructions set, etc? Anybody here has some experience with AVX ? any usefule …

Member Avatar for Tahir007
0
787
Member Avatar for PHPExperts

hello, [B]Please help me to create and using mysql procedures using php scripts.[/B] I searched in web for the solution but i didn't get a perfect support from anywhere . Thanks Anoop Ravi

Member Avatar for twiss
0
78
Member Avatar for Joshua Kidd

I am creating an application with JQuery as the UI. The current, what I have now is using simple xml as the Select Menu options. [url]http://www.globalvirtualairlines.com/MyPages/jquerytestingapp.php[/url] What I am wanting to do is, when the user selects the Hub they want, use simple xml to get the data for that …

Member Avatar for twiss
0
232
Member Avatar for manish250

hi i have a jsp page in which there is three radio button one is for dropdown list,another is for text field and last is for File field.What i want is when someone select dropdown list other two fields should be blanked and disabled.and when i select file field then …

Member Avatar for twiss
0
230
Member Avatar for samueal

I have a database which contains Hebrew language(foreign characters) in it. When I populate it in grid view. It gets populated in reverse order(left to right) For example: "כן" is getting populated as "ןכ"

Member Avatar for samueal
0
332
Member Avatar for Hani1991

[B]hello every body i have been looking for a book (e-book) about java script can you tell me where i can find a great book about it that explains in detals? please i need it urgently and if it is free it will be much better thanks[/B]

Member Avatar for Pro2000
0
84
Member Avatar for spixy

I really don't know if you will be interested on my suggestion, 'coz this may seem like, I want you to help me, but i guess this is pretty interesting... I don't have an idea if you do javascripts, but i guess, you have a good idea on editing them... …

Member Avatar for Pro2000
0
247
Member Avatar for ninjatalon

[CODE] If count < max Then If Br.Checked = True Or AM.Checked = True Or LU.Checked = True Or PM.Checked = True Or SU.Checked = True Or EV.Checked = True Then 'Code End If End If [/CODE] is there a way i can put both if statements together like if …

Member Avatar for Jx_Man
0
118
Member Avatar for samueal

I need to disconnect internet connection of a single system which I'm using now,connected in LAN. And I need to Connect again to the internet. How could i make this. I used [CODE]ReleaseDHCPLease [/CODE] and [CODE]RenewDHCPLease [/CODE] But it didn't work Help me

Member Avatar for samueal
0
604
Member Avatar for gulbano

Hi I have two forms MainForm and DisplayForm. From MainForm i get the file name on button click and load the form in picturebox placed on display form... Can any one tell me how to do that??? Thanks in advance

Member Avatar for abelLazm
0
128
Member Avatar for Majestics

I AM WORKING OVER NEWS SECTION OF MY WEBSITE... I WANT TO RETRIEVE THE NEWS PRESENT IN THE DATABASE AND SHOW THEM AND ALLOW CHECK BOX TO SELECT THE NEWS TO DELETE THEM... I am able to create the news section that retrieve the data from mysql database and also …

Member Avatar for masterjiraya
0
105
Member Avatar for ninjatalon

I have a table that i'm trying to use as a template that I can then copy to a new page. i only got this much [CODE] Dim oWord As word.Application Dim oDoc As word.Document Dim oTable As word.Table FileCopy("C:/1535.doc", "C:/1535_1" & ".doc") oWord = New word.Application oDoc = oWord.Documents.Open("C:/1535_1" …

Member Avatar for ninjatalon
0
2K
Member Avatar for ScubaSam

Hey every one i need some help please! I am trying to save a Database through c# but cant seem to crack it. I read a few threads but every one explains how to save an existing DB. In my program I am creating a new DB in c# then …

Member Avatar for breath2k
0
233
Member Avatar for aplee

Hi everyone, I have this problem, I developed the program in C#(winform) in my computer, when I try to publish it and install in my computer, it works fine. But when other users with different computer install, the are receiving this error : unable to install or run the application. …

Member Avatar for aplee
0
564
Member Avatar for caierhui

How do i restrict access to other JFrame? if i open my main frame and click the add button, the user will not be able to go back to the main frame. how do i do that?

Member Avatar for mKorbel
0
145
Member Avatar for stereomatching

As far as I know, if we don't ask template to generate the code for us It would not do it because template is "lazy". The codes generated by template are same as handcrafted codes, so what makes template being blamed by code bloat if you know how to handle …

Member Avatar for pseudorandom21
0
176
Member Avatar for polystudent

Hi All, Need expert to teach me how to solve the below C++ questions. Thanks (a) void Triangle (int, char) The function takes in two arguments, the integer representing the base and height; and the character representing either original or mirror. These values are use to print the triangle. For …

Member Avatar for pseudorandom21
0
120
Member Avatar for denmarkstan

please people i need your help here. I am learning how to develop a hospital diagnostic software. problem is how to match user input sentence with what i have in the database, talking about symptoms matching. plaese help me to achieve this. here is my code: [ICODE]protected void Button1_Click(object sender, …

Member Avatar for Pgmer
0
196
Member Avatar for vincezed

Hi all I am developing a form with a toggle button in the toolstrip ... i have given the property checkonclick to true and gave this coding in the click event.... I am loading a Groups (Usercontrol) in the MainPanel1 (panel).... It works for first time but does not work …

Member Avatar for abelLazm
0
303
Member Avatar for Razer_90

Ok, i made a code to Encrypt a file (any file), but i have a problem to do the Decrypter and the code to the Decrypter (doesn't work) [CODE]if (RestoreFile.ShowDialog() == DialogResult.OK) { FileStream fsFileIn = File.OpenRead(o.FileName); FileStream fsKeyFile = File.OpenRead(o.FileName); FileStream fsFileOut = File.Create(RestoreFile.FileName); TripleDESCryptoServiceProvider cryptAlgorithm = new TripleDESCryptoServiceProvider(); …

Member Avatar for hirenpatel53
0
171
Member Avatar for hirenpatel53

Hi All i am filling dataadapter by using query which contains joins Means Retraive data from Multiple Table and fill that data into datatable code shows as follows [CODE]_problemAdapter = new MySqlDataAdapter("SELECT xr.ID,vw.ID view_ID, vw.DX, vw.DisplayName, xr.Active,xr.Preferred FROM vw_Dignosis vw LEFT JOIN diagnosisXref xr ON vw.ID=xr.View_ID ORDER BY vw.DX;", SupraClasses.SupraConnection.Instance); …

Member Avatar for abelLazm
0
219
Member Avatar for tikoti

Hi all, I am really new in bash scripting and I can't even make simple tasks What I am trying to do is executing a command (ls -l for this example), over a double leap ssh. [CODE] #!/bin/bash ssh -T myuser@entrypoint ssh -T myuser@targetpc<<EOI ls -ltr . exit EOI [/CODE] …

Member Avatar for thekashyap
0
251
Member Avatar for maii_18

Hello, I want to know how can I call VB.NET (Server Side) function to Javascript (Client Side). I want to insert function here in my Javascript code; [CODE]function ConfirmSave() { var Ok = confirm('Proceed to Save?'); if(Ok==true) return true; else if(Ok!=true) return false; }[/CODE]I want to exefcute the Save() function …

Member Avatar for twiss
0
383
Member Avatar for ryan102

Alright, so basic story, is a website, with an application form, and what im trying to do, is when the user presses the "submit" button, i get an email with all of the information they entered into the field, i *almost* had it working, almost being, when pressing the "submit" …

Member Avatar for vibhaJ
0
235
Member Avatar for jeff4L

Code runs perfectly. I can enter the parameters and quit the program but when I try to calculate the number of cycles and print out the instructions it crashes. I looked over the nested for-loops and changed the condition (whether it should be [ICODE]<[/ICODE] or [ICODE]<=[/ICODE]) and it still crashes. …

Member Avatar for jeff4L
0
152
Member Avatar for sakush100

[CODE] $qrysc = "select * from `communities` where `name` like \"%$key%\" or `type` like \"%$key%\" or `about` like \"%$key%\" union all select * from `personal` where `fname` like \"%$key%\" or `lname` like \"%$key%\" or `country` like \"%$key%\" or `state` like \"%$key%\" or `city` like \"%$key%\""; $rqrysc=mysql_query($qrysc); $numqrysc=mysql_num_rows($rqrysc); [/CODE] Here communities …

Member Avatar for pratik_garg
0
192
Member Avatar for blackcorona

Hi, I'm kinda new to VB.net programming and now I'm get stuck in one simple problem, plz help if you can. I'm trying to create a simple program that display a list of game(from database) according to user's input. The input is core, clock, ram, vga. How I make the …

Member Avatar for Jx_Man
0
179
Member Avatar for DavidB

I have almost no experience with PHP so I need some help with a small code block. My website used to be hosted by a company within my own time zone, so I used the following code to output the date and time on my web page: [CODE] <?php print …

Member Avatar for DavidB
0
107
Member Avatar for lovelyrose26

i need help because i have an error on line 28 of OrderingCustomer that it says cannot access Customer? what did i make wrong in this program.? thanks the product and customer method it complied properly. my only concern is the line 28 of the OrderingCustomer. import java.util.*; import Product_.*; …

Member Avatar for lovelyrose26
0
263
Member Avatar for Gibran

Hey everyone, When i try to write any new c++ program and run it, it doesnt even build and a different one runs(the same one runs all the time). I use Quincy. However, any of my old c++ programs work fine, just any new ones that i try to run …

Member Avatar for sergent
0
172
Member Avatar for Steven_B

Hi everyone! I'm working on a page that adds a new client. One of the form's values is a telephone number. The user enters a 10 digit number with no symbols (ex: 2288675309). Before it goes into the DB(MySQL), I want to format it so that it has hyphens (ex: …

Member Avatar for Steven_B
0
191
Member Avatar for Derek Elensar

I have another problem... Let's start with said code: [code] #include <iostream> #include <fstream> //I have tried using fstream.h like my teacher instructs me to do/ #include <cstdlib> //but it gives me another error: see below, in actual post. using std::cout; using std::cin; using std::ios; using std::endl; //using namespace std; …

Member Avatar for Derek Elensar
0
1K
Member Avatar for lexusdominus

Id like to have my console program stopped and code executed if a timer runs out. does this mean i need another thread? can anyone point me to some functions i may need to use as ive never forked a program before. im using visual c++ on windows.

Member Avatar for Tellalca
0
517
Member Avatar for chamnab

hi i have some question to ask everyone . 1.How make open form in full screen ? 2.Example: I created two completed forms,frmLogin and frmStudent and saved it name "Student".what i want is when i open saved file,i want it only show frmLogin auto(full screen) without choose a form from …

Member Avatar for boblarson
0
140

The End.