43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for powerade661

So I am trying to self teach myself Python, and so far it is working great. However I have ran into a bump in the road and can't really figure out why this script isn't working... Any ideas? import os answer = raw_input('Ready for shutdown, continue?') if answer == raw_input('Yes'): …

Software Development python
Member Avatar for powerade661
0
231
Member Avatar for kouty

The console says arr1 is not a function! function union(arr1, arr2, arr3) {//1 arr1 = arr1.concat(arr2).concat(arr3); console.log("concatenation of arr1", arr1, '\n'); arr1 = arr1.sort(); console.log("arr1 good ordered", arr1, '\n'); for(i = arr1.length - 1; i > 0; i --) {//2 for(j = i -1; j > 0; j --) {//3 …

Software Development javascript
Member Avatar for kouty
0
298
Member Avatar for kouty

Hello I try to learn the String.charCodeAt(index) method Here is a snippet that demonstrate that the first index is allways 48 independentely of the character. How work's it (I was expecting that each letter has her unicode-number equivalent. function unicoding(str) { for (i = 0; i < str.length; i ++) …

Software Development java javascript
Member Avatar for Traevel
0
393
Member Avatar for hefaz

Hi all, i am using a ribbon in my c# 2010 project, first i had .net framwork problem while i was running the form then i changed that to .net framework 4.0 now it says Win32 exception Unhandled. What is the problem? is the problem in debugger?

Software Development vb.net visual-studio
Member Avatar for rproffitt
0
549
Member Avatar for BobFX

Hi, I have built a shell extension handler, using this as a template: https://code.msdn.microsoft.com/windowsapps/CppShellExtContextMenuHandl-410a709a In this instance, it registers with a ".ts" extension: hr = RegisterShellExtContextMenuHandler(L".ts", CLSID_LNtoALL, L"CppShellExtContextMenuHandler.LNtoALL"); The project compiles fine, and the registration works also. But on one PC, it fails to load (the context menu for .ts …

Software Development shell-scripting
Member Avatar for BobFX
0
370
Member Avatar for kayleigh0411

I am trying to write a generic class with at type parameter T, and add a method that takes an ArrayList of type T and returns a standard deviation as type double. My program is compiling with no errors, however the standard deviation is incorrect. It is outputting the standard …

Software Development java
Member Avatar for Traevel
0
938
Member Avatar for Dmennite

Everything I have found shows how to add a row to a database for new images... I am trying to update an existing row with a longblob field to store a logo and cannot seem to grasp what to do Any help would be greatly appreciated

Software Development c c# c++ mysql
Member Avatar for Ehab_1
0
2K
Member Avatar for nana_1

Exercise Three: In this exercise, you will create a program that gets two numbers from the user and checks to make sure the first number is less than the second number. It should then display the sum of the even numbers between, and including, the two numbers entered by the …

Software Development algorithm c++
Member Avatar for nana_1
-1
284
Member Avatar for Violet_82

Hi guys, I'm now looking at what seems to be a nice exercise on my java book. Basically, the exercise asks me to build a virtual keyboard GUI - see screenshot - and when you press each key on your real keyboard the key you've pressed will change its background …

Software Development gui java
Member Avatar for Violet_82
0
5K
Member Avatar for jerome2467

hi i got a bank account project and i dont know how to figure out this problem i need to be able to transfert money from checking account to saving account if someone can help me with an exemple ,because i am a bit lost thanks by advance

Software Development c c# c++
Member Avatar for Sudarvizhi_1
0
6K
Member Avatar for major_lost

Rev Jim: I need to get a random file name from a specific directory (folder) each time this routine is called. I was given these steps on another website, but I need to be shown how this is done. Can you please assist? Get the files - Directory.GetFiles or DirectoryInfo.GetFiles …

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for overwraith

Hey I have a question, how many people actually use telerik? Does anybody have experience with it, and what are your opinions on it? To me it is just another third party library that nobody knows, but I want an opinion on it from actual seasoned developers. I have worked …

Software Development asp.net
Member Avatar for overwraith
0
291
Member Avatar for Doogledude123

I was wondering if it would be more efficient to render a single BufferedImage instead of rendering a bunch of BufferedImages in a double for loop? I have an idea of how to do it, I just don't know what methods in BufferedImage you would use to create the bigger …

Software Development gaming java seo
Member Avatar for JamesCherrill
0
294
Member Avatar for Eppie

Hello everyone, I am new in assembly programming for MIPS and I was given a project to write a program that converts any decimal bumber from 0 to 511 into octal and return the result with 3 digits in reverse i.e. 170 for the decimal 57, 026 for 400 and …

Software Development assembly
Member Avatar for Eppie
0
3K
Member Avatar for cambalinho

i'm trying getting the richedit caret positions. seems that i can't use the caret functions. LONG firstCharIndex(HWND hwnd) { POINT pt; pt.x=0; pt.y=0; LONG n = SendMessage(hwnd, EM_CHARFROMPOS, 0, (LPARAM)&pt); return LOWORD(n); } COORD GetCaretPos( ) { COORD pos; //getting the line from caret position: pos.Y=(LONG) SendMessage(consoleedit, EM_LINEFROMCHAR,(WPARAM)-1,0); CHARRANGE cr; …

Software Development c c# c++
Member Avatar for cambalinho
0
558
Member Avatar for kouty

Hello. My question is very basic but I can not find/understand the answer anywhere. How check if the name-value "name": value in an object. I know that with Object.keys() method we can checking the names of the properties. I know too that with Object.name or Object["name"] we can see the …

Software Development java javascript
Member Avatar for kouty
0
331
Member Avatar for Violet_82

HI guys, as I'm gettng into Java GUI again after a long time, I'm trying hard to remember things, but not everything is that clear anymore. I'm in the process of building a very simple GUI application with a few buttons. First question is about the JFrame and JPanel. From …

Software Development gui java
Member Avatar for Violet_82
0
305
Member Avatar for Mike Askew

Howdy I have a timespan that contain in excess of 24 hours. For the example lets use a value of 1 day 6 hours and 32 minutes. I would like to get this into a string that displays "30:32". Have so far tried something along the lines of `string.Format("{0}:{1}", TimeSpan.TotalHours, …

Software Development
Member Avatar for Teme64
0
2K
Member Avatar for Miurei

I need help about this, I've been working for this a quiet while... I want to log-in using one login form for both admin and normal user but after log in, some of its form and/or buttons in the form should not be available for normal users. here is my …

Software Development open-source vb.net
Member Avatar for Miurei
1
7K
Member Avatar for 9580515953

write a program for ascii no.from tushar

Software Development
Member Avatar for rproffitt
0
118
Member Avatar for robotnixon

First off, happy thanksgiving everybody. Second, my program has problems. I've discovered a horrible way (for me anyway) to design and my attempts to fix it aren't getting any where. I have to design a roman numeral calculator (input romans, output romans) with at least two functions (decimal->roman, roman->decimal). I …

Software Development c++ web-design
Member Avatar for Edwin_6
0
1K
Member Avatar for overwraith

Say hypothetically you had a reader which did something like this... //testing reader, automatically parses strings and converts to the custom type via attributes! using ( FlatFileReader<MyCustomClass> reader = new FlatFileReader<MyCustomClass>(config) ) { MyCustomClass custom; while ( (custom = reader.ReadLine()) != null ) { Console.WriteLine(custom.ToString()); } } Would this actually …

Software Development
Member Avatar for ddanbe
0
249
Member Avatar for WolfShield

I'm wanting to make a voice controlled program, But when I type: 'import javax.speech' into NetBeans it says that 'javax.speech' doesn't exist. I then downloaded Free TTS, copied the speech.properties like I was supposed to. It still is showing the error. I did some more research and found a place …

Software Development java virtual-reality
Member Avatar for Asif_12
0
2K
Member Avatar for kouty

Hello. I want to submit a code stuff with an explanation. It is not a valid code. Someone can help me to find error? <code> ** ** I'm trying to build a program that change numbers writen in decimal notation. If we consider each ranges of numbers: unities, 10-es, 100-es …

Software Development java javascript
Member Avatar for kouty
0
647
Member Avatar for zachattack05

I am starting a new application for our business to help maintain our client information, so it is going to be a very data driven application. I'm curious, from the standpoint of those who have used both and who may have constructive suggestions on the future direction of development, should …

Software Development
Member Avatar for zachattack05
0
221
Member Avatar for Divyang_1

i am trying to write code for login system .. but .. i know how to work normally .. nut how to create ..perfect i dont know , help me

Software Development c
Member Avatar for jwenting
0
236
Member Avatar for Suzie999

Please excuse my terminoligy, as I'm not certain of it in regards winforms components. I have a ContextMenuStrip on my form and in it there are some SubItems created manually. I need to add more to SubItem dynamically. I'm unsure if I'm saying this correctly so I'll post a screen …

Software Development
Member Avatar for ddanbe
0
2K
Member Avatar for Doogledude123

I know you're not supposed to use Lightweight Components like JFrame with non-Lightweight Components like JFrame, so my question is, what do you use with a Canvas? Is there also some example code for it? Thanks!

Software Development java perl
Member Avatar for JamesCherrill
0
479
Member Avatar for LibraryCode

How would i fix the search function? AVL.h: #pragma once #include<iostream> #include<stdio.h> using namespace std; template<class T> struct TreeNode; template<class T> class AVLType { public: AVLType(); void InsertItem(T item); void Insert(TreeNode<T>*& tree, T item, bool & taller); void RotateLeft(TreeNode<T>*& tree); void RotateRight(TreeNode<T>*& tree); void RightBalance(TreeNode<T> *& tree, bool & taller); …

Software Development c++ seo
Member Avatar for tinstaafl
0
2K
Member Avatar for JModak

how to search a data in particular fields(ms access database) in vb6.0 using data1 control. I create a project in vb 6.0 using ms access data base and data control. I want to find a particular name from the data base table field. My code is.... If Data1.Recordset.Fields("C_Number") = Text15.Text …

Software Development microsoft-access seo visual-basic
Member Avatar for DenisOxon
0
428
Member Avatar for Hamza_9

Hey guys!! I have my semester Project on Libaray database and they asked me to bring Class diagram of the project. Its just that i am confused how to make that ? Can anyone help me in that or give me an example of that

Software Development c++
Member Avatar for rproffitt
0
164
Member Avatar for Doogledude123

Is there a way to require a subclass to call super explicitly in it's constructor?

Software Development java oop
Member Avatar for JamesCherrill
0
329
Member Avatar for OMER AHMED

Hi i am making an application in vb.net and i need help. The user will send me his issues or information through attachment. but i want a restriction on filesize that he can not attach file more then 20MB i did some coding but its not working. it will show …

Software Development file-system vb.net
Member Avatar for Minimalist
0
433
Member Avatar for Violet_82

Hello guys, long time no see! i've put together a very small simple console base application that takes a date and a few strings and print them off. Let's look at the code first. Date.java /*Date.java this class represents dates */ public class Date{ private int month; private int day; …

Software Development java
Member Avatar for jwenting
0
3K
Member Avatar for Hermelix

Can somebody help me, why this aren't working? I always get: else without a previous if PS: I'm from Austria, sorry for my bad English :) #include <stdio.h> int main(void) { int w; double v, s, t; printf("Dieses Programm berechnet Geschwindigkeiten, Wegdifferenzen und\n" "Zeitdifferenzen fuer eine gleichfoermige Translation.\n" "1 ... …

Software Development c
Member Avatar for AndrisP
0
590
Member Avatar for Simon180

Hello am trying to encrypt my strings in delphi I already encrypted my needed strings in php but am having a little trouble getting the matching string from my delphi test application below is the php code am using to encrypt on website then following code is my delphi app …

Software Development delphi php
Member Avatar for Simon180
0
1K
Member Avatar for pyguy25

Hello. I was wondering if anyone could help me with a caesar cipher program I am attempting to create. I was asked to write a caesar cipher encoder program. Ok. No problem. This is what i got: [code] import string def main(): print "This program will encode your messages using …

Software Development python
Member Avatar for FaZeSkwlSh00ter
0
7K
Member Avatar for NightOwl19

Heya guys, i've been learning python for few weeks now and it's one of the best decisions i have made in my life so far..it's quite an interesting language and very helpful for beginners, i must say..now i tried to do some tickling with django and somehow managed to install …

Software Development python python-django
Member Avatar for Manjunath_3
0
363
Member Avatar for ravi_14

Hi All, I am trying to implement generic link list in c++ . But getting below error . Please assist me to correct it. LinkedList.hpp LinkNode<E>* head; errr: unknown tpe name ''LinkNode // LinkNode.hpp // cplus // // Created by Ravi Rathore on 10/12/15. #ifndef LinkNode_hpp #define LinkNode_hpp #include <stdio.h> …

Software Development c c# c++
Member Avatar for deceptikon
0
288
Member Avatar for pritaeas

Hi. We're looking into building an easy to use audio player to use at parties. BPM Studio works great, but most people don't know it and have trouble using it. So far I've found [NAudio](https://naudio.codeplex.com), which makes playing mp3's easy. I'm looking for something I can use so I can …

Software Development audio
Member Avatar for qingshan05
0
439
Member Avatar for scheppy

Ok, so I have a JButton on my program and later on in the program i want to put an image on the JButton I have many buttons that start out with images on them, but Im wondering how to add images to the JButton at a later date so …

Software Development image java
Member Avatar for JamesCherrill
0
4K
Member Avatar for iarpana

import java.io.*; public class testprog { public static void main(String args[]) throws IOException, InterruptedException { String command="find BEL/ -type f | wc -l"; Process p=Runtime.getRuntime().exec(command); p.waitFor(); BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream())); String line=reader.readLine(); while(line!=null) { System.out.println(line); line=reader.readLine(); } System.out.println("Done"); } } It's return null value. plz help me

Software Development java
Member Avatar for jwenting
0
243
Member Avatar for tiger86

I've decided to write a Website in C++. I am sick of dealing with languages that layer on top of other languages, so I just want to write it in C++. I know about CGI++, but I was wondering if there were any other tools or methods used for writing …

Software Development c++
Member Avatar for zelrick
0
3K
Member Avatar for JordanAMAN

I tried to make a program that would give the whole factors for an inputed number. When i run it throught the command prompt it gives me a bunch of 1's, how do I make it to print each factor only once? import java.util.Scanner; public class Factors { public static …

Software Development java
Member Avatar for Taywin
0
261
Member Avatar for eman neercs

I'm trying to run a python script from the cron but get the error "No module named requests" Traceback (most recent call last): File "testscript.py", line 2, in <module> import requests ImportError: No module named requests The script will run from the console but not through a cron job. I …

Software Development file-system python
Member Avatar for eman neercs
0
5K
Member Avatar for LukeJWhitworth

Hello, I am looking to return all the usernames and SIDs of users on a computer or network. Has anyone got any idea how to do this? I know I can return the SID of the current user using the code below: System.Security.Principal.WindowsIdentity.GetCurrent().User.ToString Any help with this would be great! …

Software Development listview vb.net
Member Avatar for Teme64
0
944
Member Avatar for Aditya0025

hello i m writing a program in which i try to write on the frame by mousemotionlistener and mouselistener methods till now i did the writing part and i i want to start that writing by clicking the button Ok then another frame is open in which i can write …

Software Development gui java java-swing
Member Avatar for Aditya0025
0
451
Member Avatar for Ferron

Hello I've found a working script for what I want to do: https://www.daniweb.com/programming/software-development/threads/384778/copy-files-from-a-list-in-excel Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'get the last saved settings btnCopy.Enabled = False txtExcel.Text = My.Settings.ExcelFile txtSrce.Text = My.Settings.SourceFolder txtDest.Text = My.Settings.DestinationFolder SetCopyButtonText() …

Software Development assembly microsoft-office session vb.net
Member Avatar for Ferron
0
314
Member Avatar for rproffitt

I didn't see anyone bring up how VW and other companies have lost their integrity. We know those that code "bad things" may lack a moral compass but when I've worked in large groups or companies not once was there any question about doing the job in a dishonest way. …

Software Development
Member Avatar for rproffitt
-1
177
Member Avatar for Dat One Lefty

I am trying to make a MS-DOS like program like python. I am adding a system to see if a command exists. the file "known.txt" contains: ['catfish', 'cls', 'dl', 'hello', 'help', 'help1', 'help2', 'info', 'logout', 'ping', 'run', 'stop', 'time'] This is the code i am using to run it: if …

Software Development python
Member Avatar for Dat One Lefty
0
163

The End.