Member Avatar

Hello. I'm new to the whole Linux thing and I have something for a topic. In Windows you can produce characters with accents via a shortcut. For example: " followed by e brings forth ë. I miss this in Linux. Somebody told me that I should ask for help writing software by myself to make this possible. That's why I opened this topic. I'm not very experienced with programming. The only thing I ever did is creating a game. It's not even finished. I have a Github account. I'm hoping to meet someone who gets me through this. Thanks, Leon

Member Avatar
0
65
Member Avatar

I'm looking for a .NET tool/component I can use in WinForms that works like [mermaid](https://mermaid-js.github.io/mermaid/#/) but does not require a browser component. Something that generates an image is preferred.

Member Avatar
0
124
Member Avatar

I'm trying to learn how to do some simple things with MFC - I'm not used to the toolkit. I want to load a png image from disk and display it at a chosen location in the program's window, but am getting a debug assertion error: atlimage.h Line: 1624 Expression: hBitmap == m_hBitmap ----- The only initialization is: CImage genericImage; genericImage.Load(fName); (it returns normally, with no errors) Inside the WM_PAINT routine, the code is a simple: genericImage.Draw( hdc, 0, 0); Any ideas? It fails to paint anything if I ignore the debug error, and I can't find any suggestions in …

Member Avatar
0
61
Member Avatar

Unable to open file with fstream. it always seems to jump to the else statement and gives me the error message "Error: can't open input file ". I have included in the header file [CODE]#include <iostream> #include <fstream> #include <sstream>[/CODE] and in the class file i have the following code and yes i do have a txt file called studentFileName.txt in the same directory. [CODE]void StudentRecord::addFile(const string& studentFileName){ ifstream infile; infile.open ("studentFileName.txt"); if (infile.is_open()){ string line, word, StudentName, ProgramCode; while(getline(cin, line)){ istringstream stream(line); while (stream >> word) { int i = 0; if (i % 2 == 0) { StudentName …

Member Avatar
0
2,987
Member Avatar

hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much appriciated

Member Avatar
0
55,019
Member Avatar

Having problem in pin code if the user will input less than 4 digit number and a character type..could some1 help me from this.. (@@, #include<stdio.h> #include<conio.h> #include<iostream.h> float choice2(); float choice3(); float ball[11]={1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000}; float mypin; float withdraw, deposit; int transaction, myaccount; char transaction1; main() { pin:{ system("cls"); printf("Enter pin code: "); scanf("%f",&mypin); } if (mypin==1234) { myaccount=0; } else if(mypin==2345) { myaccount=1; } else if(mypin==3456) { myaccount=2; } else if(mypin==4567) { myaccount=3; } else if(mypin==5678) { myaccount=4; } else if(mypin==6789) { myaccount=5; } else if(mypin==7890) { myaccount=6; } else if(mypin==8901) { myaccount=7; } else if(mypin==9012) { myaccount=8; } else …

Member Avatar
0
5,031
Member Avatar

I am very new to VB.NET. That said, I have developed a windows form that utilizes an SQL Server back end. I am developing using Visual Studio 2008 and the 3.5 Framework. The SQL server is 2005. I do not have any warnings or errors, and the project compiles without error. When I run the install package on another computer, everything appears to install correctly, and the shortcut is placed on the desktop. However, when opened, the cursor goes into wait mode for a few seconds then returns to normal and the form does not open. I am using windows …

Member Avatar
0
845
Member Avatar

Now I am going through a project with colors. And then I think that if I try to display color values with their names in a simple combobox, it could be amazing. I tried and did it and it is looking like ![Capture3.png](/attachments/small/4/4473f7608016edcb5981090cccc80593.png "align-left") And ![Capture4.png](/attachments/small/4/87a5e5686d66033648a3e0ab787d6778.png "align-left") And finally the project looks like ![Capture2.PNG](/attachments/large/4/28adcd5b3021552683dc4fd791d2f813.PNG "align-center") In that codes, firstly I tried to bind combobox with colors. Private Sub BindWebColors() 'binding combobox with color vaues 'assign combobox drawmode cmbWebColor.DrawMode = DrawMode.OwnerDrawFixed cmbWebColor.ItemHeight = 20 Dim colType As Type = GetType(System.Drawing.Color) For Each prop As PropertyInfo In colType.GetProperties() If prop.PropertyType Is GetType(System.Drawing.Color) …

Member Avatar
0
3,639
Member Avatar

If you run the following code (on Windows 7, Python 2.6.5), you should see a light border around a black square and some text below it. How do I get rid of that border? Thanks! [code=python] from Tkinter import * class App: def __init__(self, master): #background frame self.bgFrame = Frame(master, bg="black", bd=0) self.bgFrame.grid() #image area self.canvas = Canvas(self.bgFrame, width=200, height=200, bd=0, bg="black") self.canvas.grid() #some filler text self.title = Label(self.bgFrame, text="Hi there.", bg="black", fg="white") self.title.grid() root = Tk() app = App(root) root.mainloop() [/code]

Member Avatar
0
4,796
Member Avatar

What's the best cloud accounting software for small businesses that handle multiple sales tax rates? Or is there an affordable web-based small business accounting software?

Member Avatar
1
171
Member Avatar

So i have to create a programm that reads 7-49 numbers and makes all posible combinations (6 number each) from the given numbers. Do you know how can i do this? I dont ask for the code ready but i cant think of a way i can create the combinations.

Member Avatar
0
104
Member Avatar

classification of a text in a corpus with five themes and each theme contains 10 items in perl for exemple: i have: 1 theme food 10 articles about food 2 theme politic 10 articles about politic ...etc and i give him a new text and he classify this text on the appropriate theme using: - K-means or - decision tree or - segmentation or -naive bayesien Pleeeeease help me

Member Avatar
1
564
Member Avatar

Hello clever people, Completely new to VB.NET (only installed Visual Studio 2019 in the past couple of days). To start all I want to do is open Excel (office 365) from a button on a userform. The location of the file is on a network, lets say: - \\file-svr01\Rozel\Design\Parts\PNG.xlsx OR R:\Design\Parts\PNG.xlsx I don't need to read in any information from the spread sheet, just open it so thgat i can edit it. Please bear in mind I am completely new to VB.NET, so if I have to initialise anything in the code before trying to open excel, it would be …

Member Avatar
0
181
Member Avatar

Hi! I'm trying to improve a code shown below. My idea is to add multiple images to JPanel. It sounds like an easy task, but all my attempts failed so far. I tried to create [ICODE]Image image2 = getToolkit().getImage(Drag1.class.getResource("cross_cursor.gif"));[/ICODE] and then [ICODE]bi2 = new BufferedImage(image2.getWidth(this), image2.getHeight(this)...);[/ICODE]. But I can see only one image on the JPanel. Could anybody help please? Thanks a lot! [CODE] import java.awt.Color; import java.awt.Container; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.MediaTracker; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.image.BufferedImage; import javax.swing.JFrame; import javax.swing.JPanel; public class Drag1 extends JFrame { DisplayCanvas canvas; public Drag1() …

Member Avatar
0
1,345
Member Avatar

What "Hello World" is to the console, the "Bouncing Ball" is to the Graphical User Interface. Nothing fancy, the ball is created via a call to the API function ellipse() and then bounced within the confines of the windows form. For the DEV C++ crowd: Let me know if you find these snippets somewhat helpful in your learning process in the comments section at the end.

Member Avatar
2
21,788
Member Avatar

The printer seems to be a much ignored computer peripheral when it comes to programming. This little code snippet explores one way to send text to the default printer. It actually draws the text into an imaginary box on the paper. You can specify the upper left and lower right corners of this box.

Member Avatar
2
2,812
Member Avatar

Hi everybody, I'm having a little problem with finding sum of nested list in Prolog. So far what I have is [ICODE] totalSum([],0). totalSum([H|T],S):- totalSum(T,Sum), S is Sum + H. totalSum([H|T],S):- totalSum(H,Sum1), totalSum(T,Sum2), S is Sum1+Sum2. [/ICODE] With first two predicates, I have no problems getting sum of not-nested list. Anybody with a tip as to how I can modify the third predicate so that it can handle nested list? I've tried passing off [H] instead of just H and many other but it hasn't worked so far. Any comment would be deeply appreciated.

Member Avatar
0
631
Member Avatar

Hi, yesterday I threw together a little jumble solver that takes any anagram as an input and returns any real words that can be found using all of the letters of that anagram. Here is the code, it works fine when it comes to determining the answer, but I have a couple of questions. [CODE]# jumble.py import string def anagrams(s): if s == "": return [s] else: ans = [] for an in anagrams(s[1:]): for pos in range(len(an)+1): ans.append(an[:pos]+s[0]+an[pos:]) return ans def dictionary(filename): dict = {} infile = open(filename, "r") for line in infile: word = line.split("\n")[0] dict[word] = 1 …

Member Avatar
0
973
Member Avatar

So, basically what I'm trying to do is a Tic Tac Toe game for a project. I started with making 3 1-D Char Arrays to represent the game's bord. the code below compares the Arrays data to try and figure out if any of the winning possibilites were achieved by option x or y. There is a variable set to 0, this variable will change to 1 if player1 won and will change to 2 if player2 won, if it remains 0 then it's a draw. Now, there's 16 errors of Error C2446 '==': no conversion from 'const char [2]' …

Member Avatar
0
154
Member Avatar

Hi I'm trying to create a script in powershell that finds a string in a file and then modifies it but I'm having issues matching the string I want. So, I'm trying to make sure that I can find this type of string |d where d is is any digit, the string must not be in single or double quotes. SO I'd like to match |1 or |12 or |333 So far this is what I have: `\|[0-9]+` is returning strings with or without single quotes around it, so |1 and also '|5'; `'\|[0-9]'+` returns only strings with single quotes …

Member Avatar
0
203
Member Avatar

I just started using python a couple of days ago, so I am a complete beginner. Basically what I am trying to do is the following. Imagine that I have a string variable such as: food = 'bread' I want to create another variable (integer or another type) so that its name is 'bread', in other words the new variable name should be the value of the string variable "food". How can I do such an assignment? My guess is that it should not take more than two or three lines. I read up and am thinking that I need …

Member Avatar
1
89,138
Member Avatar

Hello all I have a form with two datagridviews. Grid A is polulated with orders from DB, grib B has an empty table with the same column name as grid A. Im currently draging orders from Grid A onto grid B. My isue is that since grid B has only one empty row, it only alows to drag one item. What I want to accomplish is to add an empty row in grid B In index 0 (the firsst row) In the dragdrop event I tried to add an empty row, but this code inserts an empty row before the …

Member Avatar
0
134
Member Avatar

Hi When I run main.py I got this error how can I fix it? I'm using https://github.com/PicciMario/iPhone-Backup-Analyzer-2 / Traceback (most recent call last): File "./main.py", line 44, in <module> from PySide import QtCore, QtGui ImportError: No module named PySide I appreciate your help

Member Avatar
0
13,635
Member Avatar

I have written the following Tkinter script: When I run it, the first thing that happens is the File Dialog box opens without it being called. I am expecting the file dialog box only to open when the "Open Document" button is pressed. import tkinter as tk from tkinter import * from tkinter import filedialog as fd class Application(tk.Frame): def __init__(self, master=None): super().__init__(master) self.master = master self.pack() self.do = PhotoImage(file="do.png") # Document Open self.ea = PhotoImage(file="ea.png") # Exit self.create_widgets() def create_widgets(self): self.opendoc = tk.Button(self, text="Open Document", image=self.do, command=self.openfd()).pack(side="left") self.quit = tk.Button(self, text="Quit", image=self.ea, command=self.master.destroy) self.quit.pack(side="left") def openfd(self): fd.askopenfilenames() if __name__ …

Member Avatar
0
166
Member Avatar

I 'm building an application to store and retrieve books, but I have an issue with retrieving data from the db. I'm using REST and testing with postman. Everything works OK. Currently I have a series of methods written in Java at the backend like so @Override @POST @Path("/add") //@Produces("application/json") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response addBook(Book book) { dbAccess.connectToDb(); return dbAccess.addBook(book); } @Override @DELETE @Path("/{id}/delete") @Produces("application/json") public Response deleteBook(@PathParam("id") int id) { dbAccess.connectToDb(); return dbAccess.deleteBook(id); } @Override @GET @Path("/{id}/get") @Produces("application/json") public Book getBook(@PathParam("id") int id) { dbAccess.connectToDb(); return dbAccess.getBook(id); } So in postman I have a request like http://localhost:8080/book-storage-REST/book/15/get to retrieve …

Member Avatar
0
348
Member Avatar

[ATTACH=RIGHT]20145[/ATTACH][B]Building your first DYNAMIC Database application. This is Part One of a four part tutorial on how to install and use your database, Part Two will teach you how to build successful connections and Part Three will teach you how to build database interaction and management of your databases.[/B] There are tons of questions here on VB6 on how to connect to a database, how to add, delete, edit, search data within your database tables etc. This tutorial has been created to serve as a learning curve or to add more knowledge to your current code writing skills. This tutorial …

Member Avatar
1
1,270
Member Avatar

I would like to know what is the difference betn getchar(),getch(), and getche() functions and which should be used in which conditions. Thanks, comwizz. :confused:

Member Avatar
1
4,463
Member Avatar

Hey guys, I want to make a simple program which calculates speed, distance and time. This is the code I used: [CODE] a=input("1)Find speed\n2)Find distance\n3)Find time\n4)Quit\n") while a!=4: if a==1: d=input("\nEnter distance: ") t=input("Enter time: ") print ("Speed: "+str(d/t)+"\n") elif a==2: s=input("\nEnter speed: ") t=input("Enter time: ") print ("Distance :"+str(s*t)+"\n") elif a==3: s=input("\nEnter Speed: ") d=input("Enter distance: ") print ("Time :"+str(d/s)+"\n") a=input("1)Find speed\n2)Find distance\n3)Find time\n4)Quit\n")[/CODE] But, my question is, can't it be done like this: [CODE] s=input("Speed: ") d=input("Distance: ") t=input("Time: ") #Considering 1- is the symbol for 'find' s=d/t if(s==1-): print (s) elif(d==1-): print (d) elif(t==1-): print (t)[/CODE] Won't …

Member Avatar
1
7,680
Member Avatar

I have to convert a piece of C++ code to Python. Except I can't understand what it's doing. This is the code: [CODE]#include <iostream> using namespace std; int calculate(int values[], int size) { int answer = 0; for (int 1 =0; i< size; i +=1) } answer += values[1]; } return answer; } int main() { int myArray[5] = {0, 2, 4, 8, 16}; count << "The answer is " << calculate(myArray, 5); }[/CODE] This is my attempt at converting it to Python: [CODE]def main(): myArray[5] = (0, 2, 4, 8, 16) print "The answer is ", calculate(myArray, 5) def …

Member Avatar
0
6,457
Member Avatar

I am having a problem in Delphi with the use of multiple monitors. My application consists of a main form, with several different kinds of child forms. If I started running my application (not from Delphi – the executable), and I then enable a second monitor, and then move from one type of child form to another, my application would immediately crash. The same thing happens if I have started my application with two monitors enabled, and then disable the secondary monitor. I don’t get this behavior if I enable or disable the secondary monitor before starting my application – …

Member Avatar
1
672

The End.