Software Development
Web Development
Mobile Development
Game Development
Databases
Computer Science

Featured Editorial

If Me.cbobraketype.SelectedItem = ("Rim Brakes") Then
        braketype = ("Rim Brakes")
        price = "£120"
        braketype = ("Rim Brakes")


    ElseIf Me.cbobraketype.SelectedItem = ("Disk Brakes") Then
        braketype = ("Disk Brakes")
        price = "£150"
        braketype = ("Disk Brakes")



    End If

    'choose type of frame
    If Me.cboframetype.SelectedItem = ("Aluminium") Then
        frametype = ("Aluminium")

    End If …
Continue Reading

For example. I have a select statement that is "select ID from students where student name ='name';"

Now I don't wanna echo the student ID but I wanna store it in various where I can reuse it. How do I do it.

Continue Reading

Recommended Topics

Member Avatar

Truthfully it isn't really that special, but it is a bit cancerous as I only have `atan()` and not `atan2()`... What's special about it is every other function I see seems to be intrinsic with 1 axis needing a `sqrt()` to manage singularities, where what I'm looking to achieve is an extrinsic function that shouldn't have to care about singularities. If it helps with anything, converting to mtx33 before euler might help in singularity management, as mtx33 is extrinsic by default. (I've just recently learned a mtx33 was just an [over-glorified semi-scalar NBT vector](https://kodkodgames.gitlab.io/rotation_matrices/)) I'm not a mathematician though, so …

Member Avatar
0
216
Member Avatar

Hi, I'm curious on how and which tools are used to develop an 8 ball pool game. The one I'm referring to is that you play online with strangers, and friends for coins and tournaments. Can anyone point me to the right direction. This will be my first attempt in game development, but I'm a full stack developer and a software developer with Java, VB.NET, C++ ( very new)

Member Avatar
0
154
Member Avatar

Hello guys, It my frist topic in this forum so i hopeI hope you like it🙂🙂 In this topic we w'll learn how to check internet connection using a simple code. frist make a new project And add a label and timer . second Double click on timer to type code . bool con = Networkinterface.GetIsNetworkAvailable(); if (con == true( { lable1.text="your are connect"; } else { label1.text="you are not connected"; } You can watch the explanation from here[Click Here](https://youtu.be/hL5vrTB1uTQ)

Member Avatar
1
97
Member Avatar

I just had to look up the WM_ representation for the mouse scroll, so that I can activate my game camera zoom, more freely, rather than using the arrow keys (which was fun at first) So, I tried implementing the WM_MOUSEWHEEL into the message loop and created a switch statement for it, and then created an additional switch statement for GET_WHEEL_DELTA_WPARAM(wParam) and then it hit me: what does this function return, and how can I put it in a switch structure. Now the MSDN documentation is fabulous, just great, except it lacks examples. All it mentioned was that if the …

Member Avatar
0
1,001
Member Avatar

## Introduction I have a pile of home movie videos created over more than seventy years. As with my many photos (all in digital form) they require some effort to find particular ones of interest. Typically, I name my videos (and photos) with tags. A file might look like 2013-10-29 11-59 Tucker & Cooper playing in backyard.mp4 What I wanted was an integrated interface that would easily allow me to search and play videos. I had been using [Everything](https://www.voidtools.com) for the searching, and VLC Media Player for the playback. I found this to be functional but clumsy so I decided …

Member Avatar
3
253
Member Avatar

###Subclassing python objects Sometimes you want to add just a little more functionality to an existing python object. You can do that by subclassing it and adding on the missing parts. This example is based on a really mindless game of solitaire I used to play as a kid. In this game you start with a shuffled deck. You deal the cards face up one by one. Play doesn't actually start until you have four cards laid out (place them face up, left to right, or fan them out in your hand). Every time you add a card you examine …

2
43
Member Avatar

Sometimes you want to ensure that only one copy of a script can be run at time. Windows provides a facility called a mutex and you can use it to prevent multiple instances. To create the mutex, all I have to do is varname = GetMutex() If the mutex already exists then `IsRunning()` will return True so the line if (myapp := GetMutex()).IsRunning(): both creates the mutex (maybe) and tests if the app is already running. Note this this uses the walrus (:=) works only in Python 3.8.2 or newer.

1
116
Member Avatar

I'm looking to build a command-line tool that will enable me to read an arbitrary XML file combined with a mapping to fill an existing (arbitrary) SQLite database with data. What I'm looking for are conceptual ideas on how to solve this. I've got a possible theoretical solution in mind, but am looking for other ideas to get this done. Hopefully someone will confirm my idea will work, or show me I'm thinking about it in the wrong way. I won't share what I think at this time, to prevent pushing my thought process onto yours.

Member Avatar
0
82
Member Avatar

Hello everyone, Could someone please help me with an Html and CSS issue. I am using asp.net c#. I am stuck in how to create an array of buttons in HTML. I do know how to create 1 button but I need to create about 10-12 buttons. Would like to know how to declare an array. Thank you

Member Avatar
0
82
Member Avatar

I have the following query which has died after running over an hour on my local mysql 8 server: UPDATE download LEFT JOIN lookup ON download.ip_address between lookup.start_ip AND lookup.end_ip SET ref = ( SELECT lookup.id FROM lookup WHERE download.ip_address between lookup.start_ip AND lookup.end_ip); All ip fields are IPV4 and stored as unsigned integers and are indexed. The lookup table is approx. 3M rows, relating ip ranges to country, area, and city. The download table is approx. 2K rows. What I'm trying to do is get the id from the lookup table row that has the ip range that the …

Member Avatar
0
150
Member Avatar

i want to call the load event of the form inside the click event of the commant button depending upon certain condition how can i do this?

Member Avatar
0
1,365
Member Avatar

##This project implements a multiple timer application. It was written in 1. Python 3.8.2 2. wxPython 4.1.0 Feel free to experiment. Here are some possible enhancements: 1. Add the ability to run a program when the timer expires. With a little scripting you could, for example, schedule the sending of an email. 2. Add the option to auto-restart a timer after it has alarmed. 3. Autosave timers on close and reload them on restart. 4. Add a taskbar icon with pop-up summary of timers on mouse over. ###The Files: ####Timer.pyw This file contains the mainline GUI code. It displays a …

2
346
Member Avatar

OK, not completely, I admit. I used some different colors(colours) here and there. But this code will put you on the way. This is a little modification of code I use to show a matrix in a form. Just start a new Forms app and fill in the code. Enjoy!

Member Avatar
2
2,885
Member Avatar

Hi, how can I use regex or string replace to add missing "p" tags to sentences without tags. I tried matching* and splitting first the whole string matching "h" and "pre" tags but dont know how to merge it. `*let regexRule = /<pre>(.|\n|\r\n)[\s\S]*?<\/pre>/g;` Example - input let someVariable = "Basket <h1>Fruits</h1> <pre>Apple Juice</pre> <pre>Kiwi</pre> PVC thing Trash <h1>...</h1>"; How can I add "p" tag to Basket, PVC thing and Trash so output would be: someVariable = "<p>Basket</p> <h1>Fruits</h1> <pre>Apple Juice</pre> <pre>Kiwi</pre> <p>PVC thing</p> <p>Trash</p> <h1>...</h1>"; Thank you

Member Avatar
1
313
Member Avatar

Python-wxPython Tutorial This tutorial will take you through the basics of wxPython. ##Introduction: Let's face it. I am a dinosaur. I got my computer science degree in the mid 70s. And it won't be long before **I** am in **my** mid 70s. So why am I trying to learn Python? Mostly because learning new things keeps my brain active. And besides, nobody on Daniweb seems to be asking questions about vb.Net anymore. So I thought I'd give it a try. After a few weeks of puttering I managed to learn enough Python to rewrite all of my vbscripts (stop laughing, …

Member Avatar
9
8,889
Member Avatar

Are you a student studying programming from home? Are you an employee who is working from home for the time being? Or are you a self-employed freelancer? Has your work shifted during this time?

Member Avatar
1
1,023
Member Avatar

Is there a way to search a drive's files only for a specific file format, then display them to the user (and stored somewhere to be used later)? Maybe with the Shell, but I don't know how to use it very well. At the moment, I have a dropdown to select a drive, a text entry field for the user to enter the extension, a "Search" button to actually search for the files, and a file list box to show the files using the extention (hopefully). Is there a way to do this in VB6?

Member Avatar
3
173
Member Avatar

I need some quick regex help with matching the same word twice in a pattern. For example, I'm trying to match on the PHP code: `if (isset($foo) AND $foo)` or `if (isset($bar) AND $bar)` where `$foo` and `$bar` are any valid variable name. However, I don't want to match on `if (isset($foo) AND $bar)`. Can anyone help me with this? Thanks!!

Member Avatar
0
157
Member Avatar

Hi all, I have been confusing myself for days over this so bear with me if it gets a bit confusing. I have a table called tags with columns id, name which list all unique tags (linux, php, mysql, etc.). And I have an array that includes some tags that have been entered: $tags = array('linux,php,mysql'); Now when the array has just one tag I can search the tags table and return whether the tag already exists in the table or not. But I am unsure how I can go about checking for each array item. My thinking on how …

Member Avatar
0
73
Member Avatar

$stmt = $dbconn->prepare("SELECT * FROM `members` WHERE username=? AND password=?"); $stmt->bind_param("ss", $username, $password); Is what I have. Database is connected etc. How can I set variable called `$dbresult` with array of SQL result? I don't want to set individual variables. I really need an entire array as answer. There's couple answers but some of them are outdated ("such function doesn't exist in this namespace") and others involve 10+ lines of code-functions that should actually be shorter. What is a clean and finite way to extract entire array out of prepared statement?

Member Avatar
0
1,776
Member Avatar

ERROR 1054 (42S22): Unknown column 'Firstname' in 'field list' I'M gettin the above error when I enter: mysql> insert into people (fname, lname) -> VALUES (Firstname, Lastname); Here's the table: mysql> desc people; +-------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+-----+---------+-------+ | fname | varchar(20) | YES | | NULL | | | lname | varchar(20) | YES | | NULL | | | phonenumber | varchar(10) | YES | | NULL | | | city | varchar(20) | YES | | NULL | | | state | varchar(20) | YES | | …

Member Avatar
0
7,724
Member Avatar

This question specifically relates to PHP's Memcached library when specifying a server key and adding multiple keys at once. **Question one**: Is it true that PHP's setMultiByKey() doesn't take advantage of the memcached server's native support for setting multiple keys at once, but that the logic is on PHP's side as a simple for loop, setting keys individually? **Question two**: Strictly from a performance perspective, in a case when one could expect the keys to already exist on the server more than 90% of the time, which of the following is more efficient? // Option 1: Setting everything and letting …

0
172
Member Avatar

Hi this is my question , and I have some error in my code ,and I cant correct them ,and I am asking if you could help me ? this is the question : Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members: 1. IdNumber, // long int 2. name, //Name of donor 3. bloodGroup//String 4. home_Phone//String 5. mobile_Phone//String 6. address // struct Address that holds int house number, int road number, int block number, string city, and string country It will also have the following member functions: 1. …

Member Avatar
0
1,037
Member Avatar

Write a program to sort an array of integers in ascending order by using pointers Write a program to sort an array of integers in descending order by using pointers

Member Avatar
0
72
Member Avatar

Hi there, Not sure if I am in the right place, but I wanted to ask where I can access a csv file for all the streets in Belgium?

Member Avatar
0
290
Member Avatar

My experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to help me out I would greatly appreciate it! class ByteReader(object): """ Reads bytes from a file. """ def __init__(self, filename): self._buffer = list(bytearray(open(filename, 'rb').read())) self.pos = 0 self._eof = EOFError('unexpected end of file') def read_byte(self): """Read one byte.""" try: byte = self._buffer[self.pos] self.pos += 1 return byte except IndexError: raise self._eof def peek_byte(self): """Return the next byte in the file. This can be used …

Member Avatar
0
19,592
Member Avatar

please if anyone could tell me, how it would be possible, i want to save the content of a uploaded word document in database field with php, no problem with encrypted file like ( ´V z2Ö<Ö<ôÿÿÿÿÿÿ·üü?????ÿÿÿÿSSS8‹DÏLS¥9à1) as it shows if you open a word document in a browser. just want to save content of whole document in field. thanks for help in advance. i read it somewhere open file with fopen save it in variable n then save it in database, is it possible in that way ?

Member Avatar
0
2,521
Member Avatar

So im actually creating a fastfood menu in which save how many times a button been clicked as a variable. So I can multiply it to its value. For example if i click btnChicken a variable will count how many btnChicken been clicked then it will multplied on the amount i set for the value of each chicken.

Member Avatar
3
373
Member Avatar

Hi there, I've come across an issue while trying to get all the records from a SQL database in java. A bit of necessary introduction here. I'm not using any framework just JDBC and the getAllBooks method is part of a REST call. The failing method is essentially doing this: -getting the number of all records in the db; -getting all the ids and use them to get the records, store them in an array and return that array; Unfortunately the call generates the following error in the while loop: SEVERE: Servlet.service() for servlet [Jersey Web Application] in context with …

Member Avatar
1
379
Member Avatar

public bool Kayit_Ekle() { sorgu = string.Format("Insert Into [{0}] ([SERVİS FORM NO],[ÇAĞRI NO]) Values ({1},{2})", sheet, formno,cagrino); cmd = new OleDbCommand(sorgu, Baglan()); cmd.Parameters.AddWithValue("@{2}",cagrino); int etkilenen = cmd.ExecuteNonQuery(); if (etkilenen == 0) { return false; } else { return true; } } Hello there, I am writing recording program with c #. but I'm saving to excel. My question would be: I note excel data but does not start from the first row for example, it starts to record the thousandth continue to lower the bottom line . my goal is to go down to the bottom line at a time …

Member Avatar
1
259

The End.