132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Himanshu Chawla

I newbie in JSON Programming . I have scratched to much youtube and also google about the retrieve of data into string json using C# windows form application .. I haven't found anything till now. Please give a example and step by step procedure of how to retrieve the data …

Software Development json
Member Avatar for aclx
1
14K
Member Avatar for vegaseat

Ever since I got a fancy iMac and started using the Xcode IDE, I got hooked on Apple's new Swift language. From what I heard, it is supposed to replace the aging Objective C. I left a couple of Swift code snippets in the Computer Science section about my one-month …

Software Development apple ide objective-c open-source
Member Avatar for vegaseat
1
397
Member Avatar for Brandon500

Hello everyone I'm having trouble with this program in Python called sumList(nums). I already tried to program it, but I get the incorrect output. The program is suppose to get the summ of numbers entered into a list by the user. Mine does not return the sum just the first …

Software Development python
Member Avatar for BustACode
1
1K
Member Avatar for Harsha_1

# GITHUB INSIDE THE CLI # This is my repo : [https://github.com/harshasrinivas/cli-github](https://github.com/harshasrinivas/cli-github) It's a **python app** to display **Github inside the Command line Interface** It uses the GITHUB API I started working on it, a couple of days back. If you people could give comments and suggestions on where i …

Software Development api github python
1
88
Member Avatar for William Hemsworth

Quite a while ago, I made [URL="http://www.daniweb.com/code/snippet217147.html"][B]this[/B][/URL] snippet. This code is basically the same, except that it adds animation. This method of blitting is very fast assuming you don't use a surface that's too large. On a 500 x 500 surface, I managed 350fps using only 0-1% of the cpu. …

Software Development api c++ image microsoft
Member Avatar for thetukiet
1
7K
Member Avatar for lewashby

I'm reading the book 'C++ Without Fear 2nd Edu' and I'm a little confused on the subject of shallow copies. The book says the problems can arise if you make a shallow copy of an object and something happens to the original, goes out of scope, is deleted, etc... I …

Software Development c++
Member Avatar for Moschops
1
171
Member Avatar for Graceyy Fanning

Hi! I have an assignment. A C++ program. But sad to say I dont know how. -Write a program that multiplies two numbers withou using (*symbol). (Use for loops) Please help me!

Software Development c c# c++
Member Avatar for hamzayammu
1
693
Member Avatar for aravindm

I was asked to write a program to eliminate the reoccurrence of numbers in an interview? For example if I give the input as 2233555697 then the output should be 235697

Software Development c
Member Avatar for Mayukh_1
1
156
Member Avatar for happygeek

It's been a year now since the Dyre malware family was first profiled, and there is no sign of infection rates slowing down. In fact, [reports](http://www.scmagazine.com/trend-micro-documents-new-malware-infections/article/418266/) would seem to suggest just the opposite with infections up from 4,000 at the end of last year to 9,000 at the start of …

Software Development cybersecurity python virus-malware
Member Avatar for Tcll
1
521
Member Avatar for nitin1

I have made very simple code to larn the functionality. String str = "ABC"; InputStream input = new ByteArrayInputStream(str.getBytes()); BufferedReader reader = new BufferedReader(new InputStreamReader(input)); System.out.println(Character.valueOf((char) reader.read())); System.out.println(reader.read()); System.out.println(reader.read()); System.out.print(reader.read()); Secondly this one, String str = "ABC"; InputStream input = new ByteArrayInputStream(str.getBytes("UTF-8")); System.out.print(input.read()); System.out.print(input.read()); } output is same for the …

Software Development java
Member Avatar for JamesCherrill
1
3K
Member Avatar for hefaz

Hello all, I have created a pharmacy application in vb6, i packaged that, itselt has an access database. it works well in my pc, but when i want to send it to another computer, it installs there but dose'nt work there and says: C:// desktop/main/pharmacy.mdb is not a valid path, …

Software Development visual-basic
Member Avatar for hefaz
1
306
Member Avatar for hefaz

in my vb6 application i face this error, Data Automation Error! No elements found, what is this belong to?

Software Development visual-basic
Member Avatar for hefaz
1
3K
Member Avatar for Djmann1013

I am trying to make a MP3 player using axWindowsMediaPlayer, and I am running into some issues. When the song stops playing, it is supposed to go on to the next song in the list, but instead it locks up. I don't know how to fix this, I tried googling …

Software Development c c# c++
1
269
Member Avatar for Toni_3

i need to write a loop program converting celsius to farenheit using the formula F=9*C/5+32 and terminating at -999

Software Development python
Member Avatar for Slavi
1
204
Member Avatar for hkdani

Wouldn't it be nice to have a sizable command button in VB6? Face it. In the hidden recesses of your mind you have always wanted to be able to resize that command button in VB6--after the program is running that is. It's just that VB6 has not provided you with …

Software Development api gui visual-basic windows-api
Member Avatar for hefaz
1
803
Member Avatar for Afghan2

when i click on a menu i should get a report for data but i just see the old report help???

Software Development visual-basic
Member Avatar for Afghan2
1
346
Member Avatar for matoo

I am trying to write program in vb6.0, in which i am using ms access database. i want to search in a table called "customer". the Field is called "Name". in the feild i have saved full name e.g Asmat Ullah Khan, Asmat Khan, Asmat Ullah. now what i want …

Software Development listview seo visual-basic
Member Avatar for matoo
1
349
Member Avatar for AmrMohammed

Greetings My question is about working with the Entity Framework. Lets say I am having an Entity data model and I am having a dbconext instance what is the difference between `dbcontext.EntityName.ExtensionMethodName(lambda expression)` and `dbcontext.EntityName.**Local**.ExtensionMethodName(lambda expression)`

Software Development
Member Avatar for DaveAmour
1
217
Member Avatar for happygeek

While keen to point out that Microsoft's TechNet portal security was "in no way compromised" by the tactic, researchers with security outfit FireEye [discovered](https://www.fireeye.com/blog/threat-research/2015/05/hiding_in_plain_sigh.html) that [a well established China-based hacking campaign called Deputy Dog](https://www.fireeye.com/blog/threat-research/2013/09/operation-deputydog-zero-day-cve-2013-3893-attack-against-japanese-targets.html) had managed to create profiles and posts on TechNet that contained embedded Command and Control codes …

Software Development cybersecurity microsoft virus-malware
1
405
Member Avatar for Aeonix

When you need to create a login page using PHP and MySQL, the safety of this login page relies on - Your PHP scripting abilities - How well and securely has PHP been programmed in C++. - How well C++ compiler of interpreter of PHP has been programmed. - How …

Member Avatar for ryantroop
1
259
Member Avatar for Schol-R-LEA

When posting any request for help with an assembly language problem, we ask that you provide some crucial information: * The operating system (Windows, Linux, MacOS, etc.) the program will be running under, including the version, * The assembler you are using, including the version, * the bit width being …

1
187
Member Avatar for DaveAmour

# Performing Selective Includes in Entity Framework with the Fluent API # When we are using Entity Framework as our data access choice to work with SQL Server then there are some potential pitfalls. One of these pitfalls is doing selective includes. What do I mean by selective includes? To …

Software Development api app-store asp.net sql
1
4K
Member Avatar for TnTinMN

I am posting this in response to those who ask about replacing the webbrowser (WB) control’s default browser. You cannot ask the WB control to use a different browser, it is hardwired to use the current version of Microsoft’s Internet Explorer that is installed on the target computer. It may …

Software Development vb.net web-browser
Member Avatar for Jim_8
1
3K
Member Avatar for BustACode

Allows multiple entries using raw_input. I often have to enter multiple items in my Python programs. I desired an easier way than using a loop(s). Today I discovered a way, and with a few mods made it happen.

Software Development python
1
699
Member Avatar for naz1234

Hello there,i have given the task to make the atm machine using the c program.. my question is, why i got some error..I cant recognize such of that error... [CODE]/*intro*/ #include<stdio.h> #include<conio.h> #include<time.h> int main() { printf("\n --UNIVERSITI TEKNOLOGI MALAYSIA--\n"); printf("\n FACULTY OF ELECTRICAL ENGINEERING\n"); printf("\n 1 SKEL 9\n"); printf("********************************************************************************"); …

Software Development c engineering file-stream
Member Avatar for jeevz
1
5K
Member Avatar for vegaseat

Just an example of a persistent list class that could have interesting applications in data mining.

Software Development python
1
682
Member Avatar for vegaseat

Sometimes it's easier to pick an image from the internet to display in your Python Tkinter GUI toolit program.

Software Development image python tkinter
Member Avatar for vegaseat
1
5K
Member Avatar for vegaseat

Shows how to convert a comma separated value (csv) string to a list of records, and then do some data processing. The csv strings usually come from csv files created by spreadsheets.

Software Development python
Member Avatar for vegaseat
1
3K
Member Avatar for Yuki_1

I want to show only specify database table in datagridview.I had use dataGridView1.AutoGenerateColumns = false; but i don't know how to add the column.For example on of the column is "attn_id".How should i add it? here my code to connect database private void tmst_timein_new_Load(object sender, EventArgs e) { try { …

Software Development vb.net
Member Avatar for AleMonteiro
1
6K
Member Avatar for J.C. SolvoTerra

=======Download The Full Solution Below======== This will be my last VB.Net soure as I've made the move to C#. For a recent job application I was given the technical test to create a horse race simulator which would calculate the odds of a runner winning a race of up to …

Software Development multithreading vb.net
1
887
Member Avatar for vegaseat

I thought it would be fun to code all the different ways to show Hello World on the display. Let's start simple ... `print("Hello World")` Can anybody print out "Hello World" vertically?

Software Development python
Member Avatar for ZZucker
1
910
Member Avatar for Suzie999

I was working on this function which was quite specific to my project, so thought I'd make it more generic and share it, since I could find very little on the subject in my searching. Code also demonstartes how exceptions can work to your advantage when you know they are …

Software Development oop sqlite
Member Avatar for Suzie999
1
2K
Member Avatar for fonzali

well , I just realised that we forgot about our " turtle " so here it is printing " hello world " from turtle import * title("hello world") shape("turtle") speed(2) color("blue") write('hello world',align = 'center', font=('imes New Roman', 36,'bold')) done()

Software Development python
Member Avatar for fonzali
1
122
Member Avatar for vivekH

I want convert the .csv file to .arff file can someone suggest what to do? my code is: package csvtoarff; import java.io.File; import weka.core.Instances; import weka.core.converters.ArffSaver; import weka.core.converters.CSVLoader; public class CsvToArff { public static void main(String[] args) { try{ String f1 = "C://Users//user//Desktop//testfold//test.csv"; String f2 = "C://Users//user//Desktop//testfold//output.arff"; // load the …

Software Development file-system java
Member Avatar for vivekH
1
4K
Member Avatar for BustACode

As a result of my research in number theory I find that I often need to break a number down into its numerical parts while stepping through one divisor to another. I call this process "break factoring," as I am just breaking a number down into parts, and not necessarily …

Software Development python
Member Avatar for vegaseat
1
337
Member Avatar for Budy_2

Does anyone know this error : Syntax error (missing operator) in query expression '***Budy Soleman***' **<--( this is content of textbox.text)** This is my code in VB.net with ms-access Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Call connect() Dim simpan As String simpan = "insert …

Software Development sql vb.net
Member Avatar for Budy_2
1
2K
Member Avatar for habib_6

Hi,I,m writing puts()function and I want to know that I which situations it returns EOF I know that when there is an error it return EOF but whad does it mean. can you give me an example?

Software Development c
Member Avatar for rubberman
1
115
Member Avatar for BustACode

Instead of using letters as substitutes for playing card suits, I came up with a way to use unicodes to produce the common suits. The following creates the coded needed, makes the deck, and then prints the deck. The printing was the hard part. Is 2.7, and should be 3.0+ …

Software Development python
Member Avatar for fonzali
1
1K
Member Avatar for DragonMastur

Is it posible to have an optional veriable in a funtion? Such as this: >>>def Say(msg, (optional)): >>> print msg >>> print optional >>> >>>Say('hi', 'option') hi option >>>Say('not') not If so How?

Software Development python
Member Avatar for DragonMastur
1
367
Member Avatar for sdtechi

#include<stdio.h> main() { int m1, m2, m3, m4, m5, per; printf("Enter marks in five subjects"); scanf("%d %d %d %d %d", &m1, &m2, &m3, &m4, &m5); per=(m1+m2+m3+m4+m5)/500*100; if(per>=60) printf("First division"); else{ if(per>=50) printf("Second division"); else{ if(per>=40) printf("Third division"); else printf("Fail"); } Enter marks in five subjects 100, 100, 10, 50, 60 …

Software Development c
Member Avatar for TalhaMoazSarwar
1
234
Member Avatar for Cup of Squirrel

I've skimmed the manual and cant find the answer to this anywhere: In basic, to add an Input function you would do (for example): [CODE] Input "What is your name? " name$ [/CODE] How do I do this in Python?

Software Development python
Member Avatar for Jason_15
1
18K
Member Avatar for Hawk123

Hi, Im trying to make a simple programe that will make my life easier. But its more complex than i thought i have 6 tables, 1 master and 5 sub. All the 5 tables are of different column and types. Master Table ID Names 1 Branch 2 Committee 3 Translation …

Software Development audio open-source vb.net
Member Avatar for Hawk123
1
222
Member Avatar for Froweey

Greetings: I've noticed that many people on these boards have experience using PyGame, so I thought it would be cool if i shared a creation I am currently developing. This creation is called **PyDark**. Basically, PyDark is a *2D game framework* built on-top of Python and PyGame. What makes PyDark …

Software Development python
Member Avatar for Gribouillis
1
157
Member Avatar for vegaseat

I used csv data readily available from http://www.weatherdatadepot.com/ to create a multiline plot of the average monthly temperatures of a given location.

Software Development python
1
330
Member Avatar for gretty

Hello I have made a simple win32 program that displays a window that has a button & a text area. When I click the button, my program grabs the text from the text area & displays the grabbed text in a MessageBox. [B]My Problem:[/B] When my program grabs the text …

Software Development c++
Member Avatar for malcolmsand
1
2K
Member Avatar for JamesCherrill

[This article](http://lifehacker.com/the-top-programming-languages-ranked-by-job-demand-po-1601752302) will give you at least one good reason...

Software Development java
Member Avatar for <M/>
1
334
Member Avatar for sneekula

You can accesss the clipboard simply by using the Tkinter GUI toolkit that comes with your Python installation.

Software Development microsoft-access python tkinter
Member Avatar for TrustyTony
1
14K
Member Avatar for kwonzo

Hello i have been working on my assignment for java for a while now and I was hoping I can get some help. My teacher makes us run test cases to ensure our code works. My code compiles successfully but does not pass any of the test cases. It would …

Software Development java
Member Avatar for kwonzo
1
345
Member Avatar for vegaseat

Python's double ended queue module makes Caesar's cipher easy.

Software Development encryption python queue
Member Avatar for vegaseat
1
678
Member Avatar for vckicks

The .Net Framework uses by default radians in its trigonometry calculations. Find out how to convert degrees to radians to use with C#

Software Development mathematics
Member Avatar for ddanbe
1
722

The End.