132,726 Archived Topics
Remove Filter ![]() | |
Hi, I am writing a library that does some heavy computation, and so I have been trying to speed things up with some low level parallelism. My machine runs Ubuntu 16.04, and is an old i7, but has four virtual cores. I tried to use openMP, and while it runs … | |
I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.) Made this in cpp.sh Why would I need the x=y+1-1;? x=y; just doesnt seem to work Why is this? And I know my coding … Software Development c++ | |
there are five tables (personTb, addressTb,churchTb) each holds data pertinent to an individual; (personAddress,personChurch) each hold the primary key for the person table and corresponding table IE personAddress holds primary key for addressTb. both snippets work, my question is;** Is my join correctly formatted? ** select concat(personTb.p_fName,' ',personTb.p_mName,'. ',personTb.p_lName) … | |
Good Day Lets say i have a array of integers.... -always differs in length I need to know all the possibilities the numbers in the string have to add up to a certain number. let say 5; and my array contains 1,3,4,3,5,8,2,1; than the possibilites would be.... (3,2)(4,1)(3,1,1) But i … Software Development java | |
Dear all, I have a small script wich is supposed to process two images passed as arguments in commandline, but I don't know how to handle these arguments when they are with non latin characters. Here is an example of command python.exe myscrit.py --first=xvalue "image1.png" "οισξφσιο.png" If I isolate the … Software Development python | |
A program that uses hooks to detect keypresses and write them to a file. Software Development c++ | |
Good morning, I've been around a number different sites trying proposed solutions both in C and VB but have not been successful. Most solutions give only those devices connected to my computer. Am I missing something, my router can do (but it's a pain to extract all the MACs and … Software Development vb.net visual-studio | |
#include <iostream> using namespace std; void enterData(double firstMatrix[][10], double secondMatrix[][10], int rowSecondFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void multiplyMatrices(double firstMatrix[][10], double secondMatrix[][10], double result[][10], int rowCountFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void display(double mult[][10], double rowFirst, double columnSecond); int i, j, k; int main() { double firstMatrix[10][10], secondMatrix[10][10], … Software Development c++ matrix-multiplication | |
Hi, I want to get into python programming opportunities. i'm gone through few python tutorial. have knowledge of python basic. I can rate my self in python as begineer. Please help me or guide me how can i implement my python skills to any project so that i can get … Software Development python | |
Hi all. I'm reading about SOLID way of coding and am only looking at single Responsibility of objects (S). I will be creating a string helper class and I'm wondering if I have two methods or more in the class, if I am still adhereing to SR if the methods … Software Development | |
So... I've slept since college - meaning I've forgotten a few things. I need to do an inner-join on two large-ish sorted vectors. Thought about converting them to unsorted sets and walking through "find-ing", but I'm pretty sure this is the fastest way to do it - and still accurately. … | |
Hey, Just a simple question really, i was looking through the documentation for python and i couldn't find anything that did basic cd drive things, like ejecting it and stuff. The one module i did find 'cd' was only compatible on IRIX systems. After failing miserably on google i was … | |
Friend Module Program Public Declare Function SetConsoleTitle Lib "kernel32" Alias "SetConsoleTitleA" (ByVal lpConsoleTitle As String) As Long Declare Function ShellExecuteA Lib "shell32.dll" ( _ ByVal hWnd As IntPtr, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal … | |
I have made two windows startscreen=tk() and FirstScreen=tk() I want to make a button on **startscreen** that opens up the window **FirstScreen* This is the code for the startscreen startscreen=Tk() ##Photo Car## PhotoCarRed = PhotoImage(file="D:\Python Projects\Parking Management System\Photos\Best-High-Resolution-Photos-For-Cars.png") PlacementPhotoCarRed = Label(startscreen, image = PhotoCarRed) PlacementPhotoCarRed.pack(side="top", fill=X ) ###ToolBar on the … | |
Hi All, I have to implement string class and write a program to perform string manipulation in Mystring class. input: "he is going to school" output Case 1: (n=1) He school to going is Case 2: (n=2) He is school to going Case 3:(n=5) No changes Case 4 n<=0 school … Software Development c++ | |
Have you ever wanted to develop a math parser and evaluator? Are you in such a quandary or just have curiosity or interest in the matter? If so, you may download the complete source version 8.3.48 or later, but be warned there is almost no comment; or instead, follow versions … Software Development mathematics vb.net visual-studio | |
Hey guys! Working on a project that I am stuck on at the moment! Any help would be really appreciated! I need to get my JLabel to display a count of the three differnet shapes my RandomShapesGenerator program. I know I need to use a String.format but just dont know … Software Development java | |
public static void sentencesChecker(String essay) { int count = 0; int countcap = 0; int i , j; for ( i = 0; i < essay.length(); i++) { if (essay.charAt(i) == '.') { count++; } for ( char e= 'A'; e<='Z';e++) { if (essay.charAt(i)==e){ countcap++; } } } System.out.print("\n\t\t" + … Software Development java | |
Trying to get just the search results (inside and outside the search box). Everything else on the page, which is NOT involved with the search box and its results, should not print. Tried many types of @media and css but can't seem to find the answer. I may be doing … Software Development html-css java javascript-jquery | |
![]() | I'm just trying to insert some more informations to mysql table. I used recently methods. But it won't help me. so if you can help me ? my code is below : Try Dim mstream1 As New System.IO.MemoryStream() Add_House.pic1.Image.Save(mstream1, System.Drawing.Imaging.ImageFormat.Jpeg) Dim arrImage1() As Byte = mstream1.GetBuffer() mstream1.Close() Dim mstream2 As … Software Development vb.net |
From below html code I need to get text between tr,th,td tags and display it in datagridview using vb.net <div id="flArrTime"><table class="table table-striped arr_dep_table_parent"><thead class="arr_dep_table_head_landing font_panton_bold"><tr><th>FLIGHT NO</th><th>ORIGIN</th><th>VIA</th> <th>STA</th><th>TERMINAL</th><th>ETA</th><th>STATUS</th></tr></thead><tbody class="arr_dep_table_body"><tr><td>AI 216 D</td><td>Kathmandu</td><td></td><td>16:50<br>02/01/17</td><td>T3 </td><td> 16:10<br>03/01/17</td><td>Delayed</td></tr><tr><td>9W 567 </td><td>Dammam</td><td></td><td>05:40<br>03/01/17</td><td>T3 </td><td> 19:25<br>03/01/17</td><td>Delayed</td></tr><tr><td>ET 686 </td><td>Addis Ababa</td><td></td><td>08:05<br>03/01/17</td><td>T3 </td><td> 11:29<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 156 </td><td>Moscow</td><td></td><td>08:55<br>03/01/17</td><td>T3 </td><td> 11:18<br>03/01/17</td><td>Arrived</td></tr><tr><td>WY 241 </td><td>Muscat</td><td></td><td>09:25<br>03/01/17</td><td>T3 </td><td> 12:03<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 120 D</td><td>Frankfurt</td><td>Jaipur</td><td>09:35<br>03/01/17</td><td>T3 </td><td> 12:19<br>03/01/17</td><td>Arrived</td></tr><tr><td>RA 205 </td><td>Kathmandu</td><td></td><td>09:40<br>03/01/17</td><td>T3 </td><td> 14:10<br>03/01/17</td><td>Delayed</td></tr><tr><td>ZM 1025 </td><td>Bishkek</td><td></td><td>09:50<br>03/01/17</td><td>T3 </td><td> 15:25<br>03/01/17</td><td>Delayed</td></tr><tr><td>AI 142 </td><td>Paris</td><td></td><td>10:00<br>03/01/17</td><td>T3 </td><td> 11:32<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 348 </td><td>Mumbai</td><td></td><td>10:30<br>03/01/17</td><td>T3 </td><td> 11:58<br>03/01/17</td><td>Arrived</td></tr><tr><td>9W … | |
I was doing my login access with ms access database (accdb), supposed can work but after i upgrade to java 8, it no longer able to support odbc and i was struggled to solve this problem, and it gave me the ClassNotFoundException list of library i have in my netbean … Software Development java microsoft-access | |
My compiler says the Declaration syntax error is at (88,2) which is one of the brackets? I don't really know what could be wrong. Help please. I'm really new at this. [CODE] #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #define STD_HOURS 40.0 #define OT_RATE 1.5 int clock[5] = {98401, … Software Development c | |
Hello, I have this error "Arithmetic operation resulted in an overflow." I have no mathematical operations in my code. Why would that error come up? This is code: Public Sub Check_Record() Try SQLCon.ConnectionString = "Data Source=10.138.26.38; Initial Catalog = Safety_Database; User ID=sa; Password=spd" SQLCon.Open() 'change the data fields names and … Software Development open-source vb.net | |
So I just started coding and this is probably a stupid mistake but i wrote this code: print("would you like to roll the dice?") input('enter answer') yes="yes" no="no" if "yes": from random import randint print(randint(0,6)) elif "no": print("error") so my problem is that when i type no i want the … Software Development python | |
Hi All, We are using zetta cube with asp.net and vb.net (coding) in 3.5 framework / VS 2008 from 2010. Its working fine. Just 3 months back we are upgraded to IE11 (Edge mode) at the time of upgrading we faced some of UI issues and resolved the same. The … Software Development asp.net javascript vb.net | |
Hi I am unable to call a function in one class from another class:In this line of the code it is showing error std::nth_element(edge_points.begin(), edge_points.end() - edge_points.size() * c.edge_points_percent, edge_points.end(),Camera::compare_edge_points); Camera:: compare_edge_points - showing error. Can anyone help me here please? Header file: #ifndef main_h #define main_h #include <iostream> #include … | |
Hallo to all, can anyone help me how to display data from the database based on the date from the [COLOR="red"]dtpicker[/COLOR]? In my database I have a column [COLOR="Green"]date [/COLOR]and a column [COLOR="Green"]event[/COLOR], if I click a particular date in the [COLOR="Red"]dtpicker[/COLOR] it should display in the MSFlexGrid the [COLOR="Green"]date … Software Development visual-basic | |
I need to convert image to binary and get result in text box . Image found in path D:/person.jpg i using the following function : public bool[] imageToBinaryArray(System.Drawing.Image imageIn) { MemoryStream ms = new MemoryStream(); bool[] arr = new bool[50000000]; int i =0; imageIn.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); BitArray bitarray = new BitArray(ms.ToArray()); … Software Development image | |
I export datagrid to excel file using this below code. But it doesn't export datagrid header. I'm just change values at for loop. But it doesn't help me. Please help me. Dim xlApp As Excel.Application Dim xlWorkBook As Excel.Workbook Dim xlWorkSheet As Excel.Worksheet Dim misValue As Object = System.Reflection.Missing.Value Dim … Software Development file-system vb.net | |
I am writing a java program. One of the functions of my program is to count all the uppercase letters in a paragraph of text I import. I am not sure how to set this up. Is it something like, isUpperCase.(char) Any help would be great Thanks Software Development java | |
Hey guys,I have a problem solving the 7.2 exercise in the book Think Java v6.1.0. Any help please? Software Development java | |
hi everyone can anyone help me this project ? ******************************************** The existing system, normally in a company, employees enter the office at different times. To administer the timings of the employees, we write the entry time and exit time of the employees in a register, which had some problems such … Software Development java | |
Validate student id,username if already exist in database table . Using VB.Net 2012 and SQL database on windows10 system. Thanks for your help.this is my first post so thank you for your help guys. Private Sub InsertSutdent() SQL.AddParam("@stud_name", txtFirstname.Text) SQL.AddParam("@stud_lastname", txtlastname.Text) SQL.AddParam("@stud_id", txtStudentId.Text) SQL.AddParam("@stud_username", txtUsername.Text) SQL.AddParam("@stud_course", cbxCourse.Text) SQL.AddParam("@stud_password", txtpassword.Text) SQL.AddParam("@active", … Software Development vb.net | |
Hi All, i am curious to know how to set the value (value=10) through B's constructor in below programme. below is example of multiple inheritance. As construction always happens from right to left so it always call the 'C' class's constructor and set the value 20 but as per my … | |
I would like to know any advice for creating a program that will read in a *.csv file and load the data into a 24 x 24 array for further processing. I am including a total of 48 records, so that you can see how the data looks and what … Software Development java | |
Hello :) This is my first post. I haven't done a Java type program in a while (2-3 years). I am trying to write a simple program which displays a window with 5 buttons. When you click either the first or second button it should open another window within which … Software Development java java-swing | |
hello guys, i'm facing a difficulty in creating a matrix in pascal, the compiler keeps posting the messeges illegal qualifier at the line 28,7 where i wrote read(M[i,j]), and telling types mismatch coz i declared M is from type Matrice that i defined and then in the procedure Lect2d i … Software Development pascal | |
How to encoded personal image and generate qr code for personal image ? I work in visual studio 2015 using c# windows form application . I need to encode personal image to qr code . Meaning when i select personal image then click to generate it will generate qr code … Software Development c# image microsoft visual-studio | |
Okay, so after the whole incident two years ago with a really terrible computer science GTA teaching C++ in the summer I have decided to give programming another chance. But this time I am teaching myself Python at my own pace and I am currently using an intro book. And … Software Development python | |
Hello there ! I wrote a dll( using MINGW and Codeblocks ) that should do the "background work" of my app. I have an interface build in Microsoft Visual C++ 2015. Is posible to control some TextBoxes, or Buttons( enable/disable ) or ProgressBars, or opening a new Form from the … Software Development c++ | |
Hello, I am trying to add a feature to a lab I am working on where I have to have a way to show images of the 20 pen widths the Easy Paint Lab can do. I am trying to use a ComboBox from Qt in order to do that. … | |
Hi all, I am developing a Qt Gui application. Here I have a Qtreeewidget that has a list of Qtreeewidgetitems. I also have a qtablewidget beside it which displays some information when any item present in the list is clicked/selected.When the content of any of the cell in the tablewidget … | |
hello guys, super noob here! id want to build a function which is adding number in array, and if number is out of expect, its return to main, else, it go to info_add function. its work fine if i type less than 3. ...but seems like adding number isnt work … Software Development c | |
Does anyone have any idea what language is this launcher application made in ? I have to decompile it to launch a game in english (since the launcher is broken and can not be launched on Windows 7) and I don´t know what language is this made in. Originaly I … Software Development | |
I'm attempting to print a variable print(<variableName>) but I get an error it's not a; function ? I searched online and all I could find is that; it's not a function so how can I fix this; I don't know another command. Software Development javascript | |
I'm trying to develop an app that realises the communication between a gameserver and an applcation. My code so far is: #include <cstdlib> #include <iostream> #include <boost/bind.hpp> #include <boost/asio.hpp> #include <boost/asio/ssl.hpp> using namespace std; enum { max_length = 1024 }; class client { public: boost::asio::streambuf receive_buffer; client(boost::asio::io_service& io_service, boost::asio::ssl::context& context, … Software Development cybersecurity ios | |
Hi i am new in VB6 trying to built a simple application : 1 userform with 15 combobox, 46 Textbox and 3 command button. (ComboBox1~15)Each combobox is populated with items, TextBox1~15 are user input, Textbox17~46 are automatically filled by excel application to be executed by command button, then if my … Software Development visual-basic | |
https://gist.github.com/anonymous/b789bf44fcd30c1bc721756346ce52a1 Sending text is perfectly, but when I tried to send an image, it would send all the data except for the last 1 kilobyte of my image. How do I send the image pergectly? I have tired every other forum but I can't find anything. All the close things … | |
The End.