132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pseudorandom21

Anyone know of a way to obtain an MD5 checksum of a file (through HTTP) before downloading it through HTTP?

Software Development
Member Avatar for Reinhard_1
0
7K
Member Avatar for gaurav_28

i just want to write a code for simple fare calculator using conditional statements in JAVA. whose out should be: Enter the distance covered: 22.6 First 5 KM : 50 Rs. Next 15 KM @12 Rs: 180 Rs. Next 2.6 KM @14 Rs. :36.4 Rs.

Software Development java
Member Avatar for tinstaafl
0
6K
Member Avatar for Nathan_13

I'm trying to write a program in C# that downloads a file from my DropBox account but I keep getting an error with `var task = Task.Run((Func<Task>)Download("", "largetest.mpk", folderName));` The error: Cannot convert type 'System.Threading.Tasks.Task' to 'System.Func<System.Threading.Tasks.Task> I've been trying to figure it out for multiple hours and haven't had …

Software Development api file-stream
Member Avatar for Nathan_13
0
1K
Member Avatar for jkon

Let me give you the context. We are a small company 5 persons , two owners and we do have a variety of interests. But to be honest the money flow comes from eshops , there we developed our own platform in PHP in a way that could be in …

Software Development html-css javascript ui-ux
Member Avatar for jkon
0
424
Member Avatar for renegade082208

my code is this: Me.Validate() Me.CFTINVENTORYBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(CFTDataSet) At first I can insert data into the cells and save it... but when i try to edit the same cell with data already saved in it I get this error... sqlcelexception was unhandled There was an error parsing the query. [ Token …

Software Development vb.net
Member Avatar for Abhishek_36
0
2K
Member Avatar for jmace

Well, I've been learning Java and I managed to create an FTP client that uploads and downloads files from a server. Oddly, the thing I can't figure out is how to do an FTP delete. Can anyone help me on that? I don't want to use an API or someone …

Software Development api client-server java
Member Avatar for rproffitt
0
706
Member Avatar for Dev_9

Hi, Please help in the below task using perl script compare file1 and file2 and print the updated line in file2, should print new line added in file2 and print missing line from file2

Software Development perl
Member Avatar for pty
0
3K
Member Avatar for ALosh99

I want to define a function like this: n_H = 0.9 # constant . x = np.array([16.7, 16.5, 16.1, 15, 13.5,14.2, 14.9, 13.7])# example to test D = np.array([0, 1, 4, 7, 16, 31, 64, 127]) Sec_nucli = [] x = [] D = [] Sec_nucli[i]= n_H *D[i]* x[i] where …

Software Development python
Member Avatar for ALosh99
0
360
Member Avatar for tensity

This is the first program for a class that I am taking. I am having trouble creating the classes. We were only taught briefly on the subject and then told to complete this project. I guess my first question is how should I set my class "deck" and "card" up? …

Software Development c c# c++
Member Avatar for Hunter_2
0
2K
Member Avatar for tensity

I am trying to use the getParent method of the File library. Here is the code I am working with, but I am getting a null string: public class MyCode { public static void main (String[] args) { File f = new File(""); String name = f.getParent(); System.out.println(name); } } …

Software Development java
Member Avatar for JamesCherrill
0
545
Member Avatar for nadiam

Hi. Sorry if the question is confusing or weird but I am trying to find a specific number of bytes after finding a different set of bytes. Hopefully with code and my explaination of code, i'll get my question across. import base64 find_bytes = bytearray(base64.b16decode('46726F4B6E6F')) with open("readfile.raw", "rb") as f: …

Software Development python
Member Avatar for nadiam
0
375
Member Avatar for Derek_11

Hi! I have encountered a small issue when attempting to create getters and setters in C#. I've been following along a course in unity and tried to replicate what the tutor had written in his C# scripts. As far as I can tell, everything is spot on and I can't …

Software Development c# visual-studio
Member Avatar for ddanbe
0
573
Member Avatar for Ahmed_99

i want to update row after union conection code conect Dim cmd As OleDbCommand = New OleDbCommand("SELECT tb1_type ,tb1_price FROM tb1 UNION SELECT tb2_supp,tb2_debt FROM tb2 UNION SELECT tb3_name,tb3_price FROM tb3", con) con.Open() DataAdapter1 = New OleDbDataAdapter(cmd) Dim builder As OleDbCommandBuilder = New OleDbCommandBuilder(DataAdapter1) DataSet1 = New DataSet() DataAdapter1.Fill(DataSet1, "tb1,tb2,tb3") …

Software Development dataset vb.net
Member Avatar for adam_k
0
298
Member Avatar for Rogayah

I have an assignment and don't have any clue what software to use to solve it. It asked to make algorithm as I have to sort students GPA and the highest rank will get a scholarship.

Software Development
Member Avatar for Reverend Jim
0
401
Member Avatar for ryantroop

Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - Thread 2 - accept() -> keep linked list of accetpted sockets - Thread 3 - recv() -> can I know …

Software Development c++ linked-list socket-programming
Member Avatar for ryantroop
0
302
Member Avatar for johndohmen1963

Hi can someone give me the code how i make the first and last word of a string to Propr case The folowing gives all words to proper case Dim plaats As String = Replace(TextBox1.Text, "'", "''") plaats = StrConv(plaats, VbStrConv.ProperCase) I want, shall we say: "ohe en laak" to …

Software Development vb.net
Member Avatar for johndohmen1963
0
394
Member Avatar for Owais_2

Hey guys this is my first time using this site. Im having trouble creating a grading scale that averages out grades. Whenever I enter the grades in from the console I get some odd answers that make no sense. Can someone give me some pointers in the right direction? public …

Software Development java
Member Avatar for Owais_2
0
411
Member Avatar for OnlyThierry

Hello, I would like to develop a sprite editor. Therefore I have programmed a software like paint. As you can see on the picture, on the right, there is a canvas with a grid on it. I use a GridBagLayout to manage every widgets inside my window. The canvas is …

Software Development java java-swing
Member Avatar for JamesCherrill
0
587
Member Avatar for JModak

i have 3 table i inner join with 3 table and add function but now getting error please help me how to solve the the problem please help me ERROR :Msg 8120, Level 16, State 1, Line 1 Column 'TBL_pur_inv.invno' is invalid in the select list because it is not …

Software Development sql vb.net
Member Avatar for Santanu.Das
0
399
Member Avatar for JModak

How to the excel data please help me In the original excel sheet data show column wise. But now I want to same change to data showing structure and re arrange the data structure. I can't upload the excel sheet that for i attached the IMG please help me https://ibb.co/jdzC4m …

Software Development data-structure
Member Avatar for rproffitt
0
376
Member Avatar for Kemuel

Private Sub btn_addc_Click() On Error Resume Next If Me.txtAddc.Text = "" Then MsgBox "Please fill up", vbInformation, "ADD CATEGORY" Exit Sub End If If Me.btn_addc.Caption = "ADD" Then If rs.State = adStateOpen Then rs.Close rs.Open " Select * From tbl_category WHERE CategoryList ", db, adOpenStatic, adLockOptimistic If rs.RecordCount > 0 …

Software Development visual-basic
Member Avatar for AssertNull
0
405
Member Avatar for esedee

Hi.. Am actually trying to write my final year project on how to use Android phone as remote control for pc.. Pls can anybody put me through on what to do and how to start it because am a newbie trying to build an android app.. Thanks

Software Development android-development c++ java
Member Avatar for Mridula_1
0
420
Member Avatar for Bim_2

can you help me in my program ? i want to connect my log in form to my database but i dont have any idea on how to connect it .pls help me .

Software Development vb.net
Member Avatar for rproffitt
0
973
Member Avatar for John_165

I feel hard to understand how the LayoutManager work even the GUI is quite simple. I trying to make the button place below the Tel No JTextField, but it placed beside Address JTextField , not below TelNo JTextField. package gui; import java.awt.BorderLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.Box; …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
538
Member Avatar for isam_1
Member Avatar for rproffitt
0
150
Member Avatar for Wookzy

Hey how do you install pyHook with pip? pip installs everything for me but pyHook, when trying to install pyHook it says: Could not find a version that satisfies the requirement pyhook (from versions: ) No matching distribution found for pyhook How can i fix this? i have got windows …

Software Development python windows-10
Member Avatar for mattrweaver
0
2K
Member Avatar for James19142

Inside of a class template having parameter `typename T` the compiler generates an error concerning 2 functions. `T` does not seem to be recongnized as the template class parameter it was declared as. template <class Return, class ...Args> void executeOnAll(Return (T::*function) (Args &&...), Args &&...args) { for(T &s : *this) …

Software Development c++
Member Avatar for James19142
0
1K
Member Avatar for munitjsr2

[CODE] #include <stdio.h> #include <stdlib.h> typedef struct filedata { char data[100]; }data_t; data_t * fname=NULL; //IS AN ARRAY OF the structure filedata REQUIRED HERE void quit() { printf("\nPress enter to exit"); fflush(stdin); getchar(); } int main() { char ch; fname=(data_t *)malloc(sizeof(data_t)); FILE *fptr=NULL; atexit(quit); printf("Please enter the file name to …

Software Development c data-structure display file-system
Member Avatar for AssertNull
0
3K
Member Avatar for darren110690

can i ask something whats the used of [B].org 100h[/B] in assembly language..., and why it is 100h why can/t it be 60,70,80 or 90h? tnx :)

Software Development assembly
Member Avatar for Reverend Jim
0
24K
Member Avatar for dongtrien

Suppose I need to capture the listView message and on the form have three listView, the variable m.Msg distinguish the listView1, listView2, listView3, ... and when run output message m.Msg variable in the attachment: http://www.mediafire.com/file/weab5ppsb355kc1/out_WndProc.doc protected override void WndProc(ref Message m) { Debug.Print("out if: " + m.Msg); if (m.Msg == …

Software Development listview
Member Avatar for dongtrien
0
211
Member Avatar for cookie19ks

Hi, I am a newbie to Java and I want some help with designing a simple search engine in java. The program would read from a text file and would display the results. If I searched for some keyword say "star" it should show me something like the following: Star …

Software Development java
Member Avatar for stultuske
0
9K
Member Avatar for Aakanksha_1

import java.util.ArrayList; import java.io.*; import java.util.*; import java.util.Graph; public class Graph { public int[][] adjMatrix;//Edges will be represented as adjacency Matrix int size; } public Graph(int size) { adjMat = new boolean[size][size]; for (int i=0; i < adjMat.length; i++) { for (int j=0; j < adjMat.length; j++) { adjMat[i][j] = …

Software Development java
Member Avatar for AssertNull
0
453
Member Avatar for Stefano Mtangoo

What are Similarities and differences, written in concise form? Thanks!

Software Development c# c++ java
Member Avatar for mayur_5
0
3K
Member Avatar for james_93

Hi, I have the following XML file (it is a TCX file) <?xml version="1.0"?> <TrainingCenterDatabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"> <Activities> <Activity Sport="Biking"> <Id>..</Id> <Lap StartTime=".."> <TotalTimeSeconds>..</TotalTimeSeconds> <DistanceMeters>..</DistanceMeters> <MaximumSpeed>..</MaximumSpeed> <Calories>..</Calories> <Intensity>Active</Intensity> <Cadence>75</Cadence> <TriggerMethod>Manual</TriggerMethod> <Track> <Trackpoint> <Time>2017-12-16T12:43:10Z</Time> <DistanceMeters>0</DistanceMeters> <Cadence>1</Cadence> <Extensions> <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2"> <Speed>0</Speed> <Watts>1</Watts> <Slope>-1.49</Slope> </TPX> </Extensions> </Trackpoint> . . . . I …

Software Development xml
Member Avatar for james_93
0
486
Member Avatar for Cristi_1

So i made this bank account, i would like to display the total intrest and total balance i have been struggaling with it as i am a beginner to c++ If somebody could be able to help me simplify the code and add the totals would be great this is …

Software Development c c# c++
Member Avatar for rproffitt
0
2K
Member Avatar for Aakanksha_1

public class Graph { boolean[][] adjMat; // In the adjacency matrix representation of a Graph, // if adjMat[i][j] == true, then you can move from // node i to node j. // i.e. j is a neighbour of i. // The constructor builds the adjacency matrix, // with initially all …

Software Development java
Member Avatar for JamesCherrill
0
427
Member Avatar for neosonic

Hi, I got a project to load a pdf into a picturebox in vb6. How do I handle that? Is there anyone who sell that .ocx? is there anyway to do it? Thanks

Software Development pdf visual-basic
Member Avatar for Giuseppe_1
0
5K
Member Avatar for සශික

I use below code to backup mySQL database. I want to save sql database by save file dialog. I use this, Sub CreateBackupc() Dim mysqldumpPath As String = "C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin\mysqldump.exe" Dim host As String = "localhost" Dim user As String = "root" Dim pswd As String = …

Software Development sql vb.net
Member Avatar for Adwaith
0
2K
Member Avatar for srinivasa reddy_1

class subjectGradeBook(object): def __init__(self): self.grades={} def addStudents(self,name): self.grades[name]={} def reportGrade(self,name,subject,grade): k=self.grades[name] gradeList=k.setdefault(subject,[]) gradeList.append(grade) def averageGrade(self,name): k=self.grades[name] total,count=0,0 for grades in k.values(): total+=sum(k) count+=len(k) return total/count book = subjectGradeBook() book.addStudents('AlbertEinstein') book.reportGrade('AlbertEinstein', 'Math', 75) book.reportGrade('AlbertEinstein', 'Math', 65) book.reportGrade('AlbertEinstein', 'Gym', 90) book.reportGrade('AlbertEinstein', 'Gym', 95) book.averageGrade('AlbertEinstein')

Software Development python
Member Avatar for woooee
0
332
Member Avatar for Munyaradzi_1
Member Avatar for dongtrien

I have the example below, I want to cancel LINQ how to write ? static void Main() { List<int> list = new List<int>(); list.Add(7); list.Add(11); list.Add(13); // See if any elements with values greater than 10 exist. bool exists = list.Exists(element => element > 10); Console.WriteLine(exists); // Check for numbers …

Software Development
Member Avatar for Martha_1
0
193
Member Avatar for Sheba_1

Dim Values As Range Dim CurrentSheet As Worksheet Set CurrentSheet = ActiveWorkbook.ActiveSheet Set Values = Rows(5) For j = 0 To 20 For i = 1 To Values.Cells.Count - 1 Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=Delimit2!$A$" & i, Formula2:="=Delimit2!$B$" & i Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority With Selection.FormatConditions(1).Font Color = -16383844 TintAndShade = 0 End …

Software Development microsoft-office visual-basic
0
333
Member Avatar for zebnoon1

Hello Friends, I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but when i click on report it dosent work and generates error :System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. …

Software Development assembly
Member Avatar for mastermyne
0
815
Member Avatar for Toddh86

I'm making a device that will display the weeks and days until a specific date (in this case my wifes maternity leave start). I am using a Raspberry Pi with a 4" screen. The plan is to use a python script to display full screen the weeks and days left …

Software Development python raspberry-pi
Member Avatar for rproffitt
0
298
Member Avatar for Maheshwaran

sqlconnection = new SqlCeConnection(ConnectionString); sqlcommand = new SqlCeCommand(); sqlconnection.Open(); sqlcommand.Connection = sqlconnection; sqlcommand.CommandText = (@"UPDATE ItemStock_Info SET Quantity =@qun WHERE [Item_Number]='"+ textBox1.Text +"'"); sqlcommand.Parameters.Add("@qun", qun);

Software Development sql vb.net
Member Avatar for Santanu.Das
0
440
Member Avatar for Gokul_4

I have a vb based software which is very old running on sql server 2000. When I tried to take a report, it says "runtime error 9 Subscript is aout of range".where to find this subscript? Please help me out.Thanks in advance

Software Development vb.net
Member Avatar for rproffitt
0
186
Member Avatar for bharathsharma

I'm developing a GUI using wxPython (Boa Constructor IDE). My GUI has the following: Rich text control Start button Stop Button My requirement is that when I press the START button, numbers (1, 2, 3, etc.) should start printing in the text control; it should stop when I press the …

Software Development gui ide python
Member Avatar for gdtraveller
0
456
Member Avatar for Stefano_2

i have a file .txt with some variables printed for a c program. Precedente lettura: 7129.00 m3 Attuale lettura: 7288.00 m3 Totale Generale: 159.00 m3 Lettura Carmen: 2597.00 m3 Consumo Carmen: 72.00 m3 Lettura Coppola: 487.00 m3 Consumo Coppola: 47.00 m3 Lettura Sarli: 1903.00 m3 Consumo Sarli: 37.00 m3 Eccedenza: …

Software Development c
Member Avatar for rproffitt
0
255
Member Avatar for nadiam

hi. i have a really basic question (really new to python). how do i read an entire binary file? from https://www.devdungeon.com/content/working-binary-data-python , `data = binary_file.read()` is to read the whole file at once. so i have a .dng file to test, which is 16.2mb, and i did: with open("portrait1.dng", "rb") …

Software Development file-system python
Member Avatar for Gribouillis
0
54K
Member Avatar for manalibhadula

Below program in completly executing but no data was inserted through sqlloader. Inline Code Example Here public class CSVDataLoad { public void runSqlldr () throws InterruptedException { String[] stringCommand = { "bash", "-c", "/usr/bin/sqlldr username/password@sid control=/path/to/sample.ctl"}; System.out.println("SQLLDR Started"); Runtime rt = Runtime.getRuntime(); Process proc = null; try { proc = …

Software Development java
Member Avatar for Didier_2
0
5K

The End.