132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jorwill.harion

Hello! I am new in java and I have this code that will throw an exception if the numerator input is not an integer and will stop the loop process when the user input 'e' as its numerator. Thank you for your help in advance. package org.alibata.training.codes.exceptions; import java.util.InputMismatchException; import …

Software Development java
Member Avatar for JamesCherrill
0
446
Member Avatar for Brandon500

Hi, I'm taking an online Python class. This is the first time I have used Python. I need Help with an assignment. For the assignment I have to **Write a program that counts the number of words and the number of characters of each word in a sentence entered by …

Software Development python
Member Avatar for Brandon500
0
364
Member Avatar for Krs13

Hi, I have an access database and connected to vb.net through oledb. Am trying to filter the datagridview based on the combobox selection in the form. The combobox(emp id) is being loaded from the table called Employee. When the user selects an employee id from the combox i want the …

Software Development vb.net
Member Avatar for Krs13
0
480
Member Avatar for nimz143

Hi all ! I'm using vs2008, sqlserver2008 and vb.net as language. I would like to ask, i got this line of error when i'm debugging my code **----Too many arguments to 'Public Function getDrawingNumber(PlcCode As String) As System.Data.DataSet'.----** below is my program code : Protected Sub Page_Load(ByVal sender As Object, …

Software Development mssql vb.net visual-studio
Member Avatar for nimz143
0
2K
Member Avatar for Elmar_2

Hi is possible to cast List of objects to List of string array?

Software Development c c# c++
Member Avatar for JOSheaIV
0
6K
Member Avatar for sabeenasyed

Hi.I want to convert telugu text to unicode. please solve my problem. Thankyou --------- sabeena

Software Development java
Member Avatar for rubberman
0
138
Member Avatar for batoolhussain

hi everyone. how can I get a database consists of page of html images.

Software Development html-css image vb.net
Member Avatar for rubberman
0
123
Member Avatar for sheelakumari

I have two text files one file contains values as Id Value 1 apple 2 orange 3 mango 4 banana 5 strawberry 6 papaya In other file i have Id Value 6 strawberry 4 banana 3 orange 1 mango 2 papaya 5 straw berry I have to match between Id's …

Software Development apple shell-scripting
Member Avatar for parvai
0
341
Member Avatar for Flying_robot

Hello there. I am new in Python, so sorry for stupid question. Here is my chunk of code. class Map(object): scenes = [ 'central_corridor': CentralCorridor(), 'laser_weapon_armory': LaserWeaponArmory(), 'the_bridge': TheBridge(), 'escape_pod': EscapePod(), 'death': Death() ] def __init__(self, start_scene): self.start_scene = start_scene def next_scene(self, scene_name): return Map.scenes.get(scene_name) def opening_scene(self): return self.next_scene(self.start_scene)ap = …

Software Development python
Member Avatar for Flying_robot
0
222
Member Avatar for Anna123

Dear All, I want to know whether there is any perl script availabe to compare more than two files and print out the matching rows, for example if i have following files, file_1 TPT 0.0520852296 RP11 0.1062639955 AC01 1.4112745088 AC00 0.4992644913 file_2 LINC 0.1648703511 AC00 0.1632039268 CTD 4.3654577641 RP1 0.1357422856 …

Software Development perl
Member Avatar for Anna123
0
1K
Member Avatar for PinoyDev

Good day! I have a running code but I found it not very fast in terms of saving data. Is there a way to make it more faster? I am using msaccess as databse. Set RsTrandet = New ADODB.Recordset Sql = "SELECT TranDetail.AccountNo,cashflowcode, TranDetail.Narration, TranDetail.TranNature, " & _ "TranDetail.TranAmount, Acctmaster.Accountname …

Software Development microsoft-access visual-basic
Member Avatar for PinoyDev
0
279
Member Avatar for Santanu.Das

Good morning members. I am now in a small project on request of a friend for his school. This a WPF with VB.Net 2010 project with .accdb database. when I am trying to insert a blank data to the database only entering **Student Name** and **Roll No** and others are …

Software Development data-structure open-source vb.net
Member Avatar for Santanu.Das
0
190
Member Avatar for ManojRajput

Hi, Below is the code i am using. On console output is fine but when i am redirecting output to file then single line is breaking in multiple lines. Please help. for dir in */; do printf "%s, " "$dir"; ls -m "$dir"; done **Output on Consloe : ** buckets/, …

Software Development perl shell-scripting
0
217
Member Avatar for hadisur_rahman

# What's the problem in output where the algorithm was correct ???? # #include<iostream> #include<stdio.h> using namespace std; main() { int LA[100],K=1,N=5,L;//K=POSITION...N=element for(int i=0;i<=4;i++) { cin>>LA[i]; } L=LA[K]; for(int J=K ; J<N-1; J++) { LA[J]=LA[J+1]; } cout<<"DELETE ITEM:"; N=N-1; for(int P=0;P<=4;P++) { cout<<" "<<LA[P]; } }

Software Development algorithm c++
Member Avatar for StuXYZ
0
162
Member Avatar for Louis_2

I was bored so i created this program ti simulate a game of paper, scissors, rock. It was working well untill idecided to tinker a-bit. Now when I run it and enter a move it outputs this: Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03) [GCC 4.2.1 (Apple Inc. build 5666) …

Software Development apple python
Member Avatar for Gribouillis
0
311
Member Avatar for Kausik_1

I am using following C++ code to enter a value of X which is used to print out variable CDF. This C++ code is expected to give very similar value we get from NORMDIST function in excel. However I get following error in debugger with out getting any output in …

Software Development c++ file-system microsoft-office
Member Avatar for Kausik_1
0
238
Member Avatar for genux008

Hello Everyone, Actually i have one question. I create one generic method like below:- public static dynamic ExecuteSelectProcedure<T>(string procedureName) where T: class { SqlDataReader reader = ExecuteSelectCommand(procedureName, CommandType.StoredProcedure); if (typeof(T).FullName.Equals("System.Data.DataTable")) { DataTable dt = new DataTable(); dt.Load(reader); reader.Close(); return dt; } return reader; } Now i want to restrict user …

Software Development
Member Avatar for DaveAmour
0
255
Member Avatar for Martin_8

I am making a chat client to connect to a server I already made with sockets in Python 3, but I am having a problem with the new encoding and decosing stuff for Python 3. Here is the relevant code: else : # user entered a message msg = sys.stdin.readline() …

Software Development python
Member Avatar for Gribouillis
0
5K
Member Avatar for Arie_1

I know to save records from database into listview, but how to save listview to database instead.. this is the code for showing record into list view..but can any help me how to change the code to save listview into database? Imports System.Data.OleDb Public Class Form1 Dim con As New …

Member Avatar for Reverend Jim
0
2K
Member Avatar for basit_3

hello friends i want to use result of textbox1 of the form1 into my form2 , how to do this

Software Development vb.net
Member Avatar for Santanu.Das
0
197
Member Avatar for dtpp

Ive been having this issue for quite a long time. When coding in Java my IDE (Eclipse) will not allow me to create JAR file. Ive googled quite alot only to see there is no direct solution to this and the causing factor may be Win8.1. I thought - ok …

Software Development ide java
Member Avatar for stultuske
0
229
Member Avatar for ravi_14

assume latgeInt=2147483647 Debug.Log(largeInt); //2147483647 float largeFloat = largeInt; Debug.Log(largeFloat); ///2.147484E+09 int backAgain = (int)largeFloat; Debug.Log(backAgain); //-2147483648 *This part i did not get. I assume there was some data loss when float was explicitly casted into int . But the loss should be in right most digits. How come sign got …

Software Development c#
Member Avatar for sandeepjkl
0
210
Member Avatar for Ankit_18

import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Counter { public void split(String a,ArrayList<String> al) { char ch[]=a.toCharArray(); int p=0; for(int i=0;i<ch.length;i++) { if(ch[i]==32) {List<String> l=al.subList(p,i); ArrayList<String> al1=new ArrayList<String>(l); //String str=new String[al1.size()]; //al1.toArray(str); //al1.add(str); //al1.add(al1); //why this is also wrong al1.add(al.sublist(p,i)); p=i; System.out.println(al1); } } } public static void main(String... s) …

Software Development java
Member Avatar for stultuske
0
262
Member Avatar for Saran_1

I am currently attempting to work on converting a fairly sizeable JSON object and convert it into a CSV format. However, when I attempt to do so, using a conventional approach (that seems to work with other files). I am presented with a "ValueError: too many values to unpack" I …

Software Development json python
Member Avatar for Saran_1
0
2K
Member Avatar for Tcll

this applies to 3D vertex coordinates if I was planing to lower the quality and byte size to a bu16, bs16, bu8, or bs8 mantissa, how would I calculate the exponent I'd need to restore them when the data is needed?? some help understanding, here's the code that reads the …

Software Development python
Member Avatar for Tcll
0
305
Member Avatar for rajashree g.s.

1.Take input for boarding place,arriving place and date. 2.Date validation for 120 days(if date is more than 120 days you are not able to book the ticket).if days are less than 120 days then ask for the count of passengers. 3.Take passengers age and gender. 4.If age is less than …

Software Development java pay-per-click
Member Avatar for JamesCherrill
0
392
Member Avatar for Hsn_1

Hello everybody I'am trying to execute JavaScript in GeckoWebBrowser my code is : Hide Copy Code GeckoWebBrowser1.Navigate("javascript:void(" + TextBox2.Text.Replace("""", """""") + ")")` my JavaScript is : Hide Copy Code var r = confirm("Press a button"); if (r == true) { x = "You pressed OK!"; } else { x = …

Software Development java javascript vb.net
Member Avatar for stultuske
0
1K
Member Avatar for JOSheaIV

Here's a good one for everyone. I have been working on a Screensaver program for some time now (some of you may even remember questions related to this). Anyway, one of the biggest challanenges with developing it was finding a good way to transition images, smoothly, and not killing all …

Software Development visual-studio
Member Avatar for JOSheaIV
0
653
Member Avatar for necrovore

Hi, I am working on a module that uses a lot of object creation (by lot i mean, really lots). So for obvious reasons i have seen Out of Memory exceptions. Now although the objects are being created are too many they go out of scope quickly as well. So …

Software Development
Member Avatar for JOSheaIV
0
195
Member Avatar for cambalinho

i have these function for create the tooltip: HWND CreateToolTip(HWND hwndTool, string text) { /*INITCOMMONCONTROLSEX icc; icc.dwSize = sizeof(INITCOMMONCONTROLSEX); icc.dwICC = ICC_BAR_CLASSES | ICC_TAB_CLASSES | ICC_WIN95_CLASSES; InitCommonControlsEx(&icc);*/ if (text=="") { return FALSE; } // Get the window of the tool. //HWND hwndTool = GetDlgItem(hDlg, toolID); // Create the tooltip. g_hInst …

Software Development c++
Member Avatar for cambalinho
0
795
Member Avatar for cambalinho

i did several ways and nothing work correctly. i have 2 controls: 1 - label: with an animation; 2 - the tooltip is showed on top until the label is re-painted. so is there another way for put the control, always, on top?

Software Development c++
Member Avatar for cambalinho
0
228
Member Avatar for cambalinho

see my property constructor: template <typename T> class property { private: T PropertyValue; std::function<T(void)> getf; std::function<void(T)> setf; public: property(const T &value) { getf=nullptr; setf=nullptr; PropertyValue=value; } property(const property &value) : PropertyValue(value.PropertyValue) , getf(value.getf) { } property(std::function<T(void)> GetFunction=nullptr,std::function<void(T)> SetFunction=nullptr) { setf=SetFunction; getf=GetFunction; } inside a class i have 2 functions: void …

Software Development c++
Member Avatar for cambalinho
0
192
Member Avatar for tgreiner

I want to read data into an array from a data file. Because I do not know, ahead of time, how much data is contained within the file I need to declare the array at run time using new. My current strategy is the read through the data file to …

Software Development c++ file-system
Member Avatar for David W
0
485
Member Avatar for hadisur_rahman

int main() { int a=10; printf("%d",a); return 0; or return a; } # 1ts question:In the program Why you used 0 in return 0 ; and 2nd question : if you use a in return a; then it also print the correct output but why ? #

Software Development c
Member Avatar for sepp2k
0
281
Member Avatar for Mike Askew

Howdy So I have a set of data coming back from a process with five different pieces of data per entry in the set. Are there any fancy ways you can generate some kind of look-a-like report on the fly in WCF, else what would be the best way to …

Software Development asp.net
0
243
Member Avatar for HITMANOF44th

i am new to c# i have been working on controlling a io card i have no issue writing to turn on / toggle / or get status turn on bits |= 1 << bit; toggle bits ^= 1 << bit; but i cannot get the item pin to turn …

Software Development
Member Avatar for HITMANOF44th
0
127
Member Avatar for Suzie999

I'm writing a small backup app, where a folder is selected, zipped, and stored in an SQLite database as a blob along with it's MD5 hash, date, paths ect.... My problem is that when the zipped file is around 600MB+ I get an SQLiteExecption out of memory. The error was …

Software Development sqlite visual-studio
Member Avatar for JOSheaIV
0
2K
Member Avatar for Szabi Zsoldos

Hi guys, I've made an application in JavaFX and I do want to export it into a runnable jar. When I run it from Eclipse or Netbeans, it works well. But when I run it from windows as an executable jar I get this error for my layout. Exception in …

Software Development java java-netbeans
Member Avatar for Szabi Zsoldos
0
4K
Member Avatar for Darth Vader

Hello, I will try to ask this question very straight forward to not complicate the example. As seen the an event called currentTime is located INSIDE a public class EWrapperImpl. The functions comes from a DLL reference file that I code against. By default it seems that the currentTime(long time) …

Software Development
Member Avatar for Darth Vader
0
276
Member Avatar for ram619

Hello everyone! this is a code to reverse strings of a array of char ptr. I am passing the char* array, dynamically allocating memory to reverse and link with the char* array. The print it gives in the str_rev() are perfect. But when I print same thing in main(), it …

Software Development c
Member Avatar for David W
0
205
Member Avatar for weekendrockstar

I am working with Visual Basic Studio 2013 and one of my forms requires the use of a web client component. I added Web Client to my toolbox and easily added it to my form. When VBStudio cooperates the form does everything as it should perfectly. However, when I loaded …

Software Development api vb.net visual-basic visual-studio
Member Avatar for djjeavons
0
259
Member Avatar for wilsonchama

Hi guys, I am trying to build an applicatio to keep student records for a small schoo. I have a table in acces 2010 and the application is with vb.net 2008(Visual studio). The table has eight fields (stNumber, stDOB, stGrade, stClass, stAddress, stGender and stPhoto. and the commant button on …

Software Development open-source visual-studio
Member Avatar for djjeavons
0
300
Member Avatar for Orionizer

I'm having an issue using the ADO.Locate function (Using Delphi 7). I've got the following code: procedure TFrmMain.RzBtnProcessClick(Sender: TObject); var WB: IXLSWorkbook; WS: IXLSWorksheet; X: Integer; MillStyle: Integer; KnitNo: Integer; CustSKU: String; begin if RzBtnEditInputFile.Text = '' then Application.MessageBox('You Must Select An Input File!','Error',MB_OK) else if not FileExists(RzBtnEditInputFile.Text) then Application.MessageBox('Cannot …

Software Development delphi pascal
Member Avatar for Orionizer
0
442
Member Avatar for Raisefamous

Function coinT() tests if two time series are stationary using ADF test and Hurst exponent. Time series are stored in cvs files 1511x6 each, but for testing only a vector of the 5th column is returned by function stock(), there are 50 files in total. It seems that the program …

Software Development api os-x python seo
Member Avatar for Gribouillis
0
842
Member Avatar for ram619

Hello Everyone, I got this question in some book. As per question we need to find a substring in a array of char* and replace it with another string. The program I wrote doesn't work. I tried using strcpy as well char by char. Please help me to figure out …

Software Development c
Member Avatar for ram619
0
347
Member Avatar for Rachna_2

in an examination the grades are given according to the marks obtained. wap in java to display the grades acordingly 80% and above-distinction 60% or more but less than 80%- first divison 45% or more but less than 60%-second division 40% or more but less then 45- pass Less then …

Software Development java promotion
Member Avatar for JamesCherrill
0
176
Member Avatar for paul.deku.50_1

Hi please i like to know how emails are send using java.Thanks

Software Development email java
Member Avatar for jwenting
0
80
Member Avatar for kayecng

Can anyone check my search code? What seems to be the problem? **ERROR: **Object variable or with block variable not set. Dim con As New SqlConnection(connectionString:="Data Source=APBIPHAP06; Initial Catalog=PMT; Integrated Security=SSPI") Dim ds As New DataSet() Dim da As New SqlDataAdapter() Dim query As String = "SELECT * FROM tblPM …

Software Development dataset seo vb.net
Member Avatar for kayecng
0
261
Member Avatar for wudie47

Write a function called parseExtension that takes a file name as a string parameter and returns the file extension. Example: If your function was passed “python.exe” as a string parameter it would return “exe”. I want it to take userinput and seperate the files from the extension starting at the …

Software Development python
Member Avatar for wudie47
0
507
Member Avatar for Tcll

been scouring google for nearly a month now trying to find something. now as the requirement grows, I need more help tryingto find something. Portable Python is what I'm currently using, but alot of my developers (including myself) don't like the Wine wrapper... Pyzo supports linux mac and win, but …

Software Development file-system python
Member Avatar for Tcll
0
786

The End.