Today I wanted to post an example , I realized that I didn't had buttons to insert code or to define code lines. I had to read https://www.daniweb.com/welcome/syntax and then make several attempts to insert code. One thing that it would be done in few milliseconds if I had a btn to add code or to define it , it took me more than a minute , why ? Do you try to make users stop sending code examples ? Let me be clear: GRRRRRRRRRRRRRRRRRRRRRRRRRRRRR When posting code, begin a line with 4 spaces in a row (or one tab), …

Member Avatar
Member Avatar
+0 forum 6

Several keyboard keys in Daniweb are doing the wrong things. - Occasionally backspace is taking me back to previous pages instead of removing characters. - The END key takes me to the beginning of the line instead of the end of the line. - I occasionally find myself navigating where I didn't want to go, and have no idea what key did that. Editing keys should be STANDARD, always doing the same things on all web pages in the universe.. Please, no hot keys.

Member Avatar
Member Avatar
+0 forum 11

How are keys and passwords stored in a computer to make them secure? If encryption is used to secure keys and passwords - won't there need to be a key or password for it also? Will that one be encrypted as well? It seems to me that eventually there will have to be a key or password that is not secure to get the whole process going.

Member Avatar
Member Avatar
+0 forum 3

Email encryption uses digital certificates to authenticate, encrypt and decrypt the message. When a message is encrypted, the public key to decrypt it is sent along with the message to the recipient, the recipient then uses the public key to decrypt the message. If the message was intercepted couldnt the attacker just get the public key from withing the certificate?

Member Avatar
Member Avatar
+0 forum 3

1. What exactly is a surrogate primary key? 2. Is a surrogate primary key just a made up attribute inserted into a table by the database administrator? All I know is that you use a surrogate key when there is no primary key or the natural key may not be a suitable primary key.

Member Avatar
Member Avatar
+0 forum 1

Hi all. Have been racking my brains about how to go about creating a multidimensional array dynamically from an array of keys. Something like... $keys = array('key1', 'key2', 'key3'); $value = 'some value'; // $md = ...???!!!... I need the $md multidimensional array to have the keys thus... $md['key1']['key2']['key3'] = $value; Obviously that could be hardcoded quite easily, but my problem it that the $keys array is variable - it can hold different values and the number of items can vary. So how to build an md array? I'm looking for a generic routine. I've come close a few times, …

Member Avatar
Member Avatar
+0 forum 9

i am getting array output as: Array ( [0] => Array ( [0] => 000000 [1] => 000400 [2] => 000450 ) ) Array ( [0] => Array ( [0] => 000350 [1] => 000400 ) ) i want output like this: Array ( [0] => Array ( [0] => 000000 [1] => 000400 [2] => 000450 ) ) Array ( [1] => Array ( [0] => 000350 [1] => 000400 ) ) my php code is: $select = mysql_query("SELECT ac_no, cust_name, GROUP_CONCAT(install_amt SEPARATOR ',') as installamt FROM ankali_slabpay WHERE agent_id=$agent_id GROUP BY ac_no"); while($row1 = mysql_fetch_array($select)){ $a = $row1['installamt']; …

Member Avatar
Member Avatar
+0 forum 4

Hey I have dictionary like following one dicts = {'met_293': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_394': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]'],'met_309': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_387': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]']} I want to remove keys which have same value like 'met_293' and 'met_309' those two keys have same value at 12th position which is '[KG]EHY' so i want my dictionary like this {'met_293': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_394': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]']} any help!!! thanks

Member Avatar
Member Avatar
+0 forum 2

Hello, I want to create tables in database (using SQL) and add foreign keys to each table refering to the other one. For example: CREATE TABLE ONE( ID INT NOT NULL, NAME VARCHAR(20) NOT NULL, TWOID INT NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (TWOID) REFERENCES TWO (ID) ON DELETE CASCADE ON UPDATE CASCADE ); CREATE TABLE TWO( ID INT NOT NULL, NAME VARCHAR(20) NOT NULL, ONEID INT NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (ONEID) REFERENCES ONE (ID) ON DELETE CASCADE ON UPDATE CASCADE ); When I run this query, it will give me the following error "missing right …

Member Avatar
Member Avatar
+0 forum 8

i have an html form with two text boxes. one is for the product name and the other is for the price. i want the text boxes for price to allow numeric values only. is there a way of limiting user input for this text box using javascript

Member Avatar
Member Avatar
+0 forum 3

Hi. So, just switched to RAD XE3 to use Metropolis UI feature, and therefore started to completely rearrange and redesign my app to make it a little nicer, only this time I've chosen FireMonkey Metropolis App, since it has some good components, such as TSwitch (slide switch). Everything seems to work fine (with modifications and spending lot of time...), but can't find a way to call Switch procedure via VK buttons. The VK procedure is able to show toolbar, and to show message with ShowMessage('Hello'); as well, but I can't call switch procedure. The TSwitch has the OnSwitch event (It's …

Member Avatar
Member Avatar
+0 forum 1

Hi, I was creating clone of breakout and got the game working correctly. But after setting up menu my keyboard doesnt respond anymore. But if I launch game directly without Menu class keys are working perfectly. Where the problem might be? Here is the full source code. VBreakOut.java package net.viped; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JPanel; public class VBreakOut { static JFrame frame = new JFrame(); public VBreakOut() { int width = 800; int height = 640; frame.setTitle("vBreakOut 0.01"); frame.setSize(width, height); frame.setContentPane(new Menu(this)); frame.setBackground(Color.black); frame.setVisible(true); frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE); frame.setResizable(false); } public static void main(String[] args) { new VBreakOut(); } public static void …

Member Avatar
Member Avatar
+0 forum 10

Hello , I was wondering if I could move my form or any other object with my arrowkeys in vb.2010? I found out how to do this in vb6 but this function can't be used in vb.2010 and can't find the replaced function anywhere. If anyone can help me , please do it! thx

Member Avatar
Member Avatar
+0 forum 7

how do I set a shortcut key for 1 of the textboxes in vb.net. When I goto the textbox and press F3, then it should give the current date in the textfield...Can somebody help me with this?? Thanks in advance..:)

Member Avatar
Member Avatar
+0 forum 19

I am looking to create a PBBG game using HTML and CSS for the display and then PHP and MySQL to handle the game itself. It shall only be simple, click on this item and upgrade it if you have enough resources e.t.c. I am hoping to make it a bit more interactive, and I was thinking that I could use a viewport to only display a certain amount of the map and then allow them to use the arrow keys (or WASD) to scroll around the rest of the map. I am not really sure what language I would …

Member Avatar
Member Avatar
+0 forum 1

Hello. I recently finished my 1. semester in Computer Science, and got a good fundamental idea on programming in Python. Our exam assignment whas to create a game where we had to smash robots by clicking around with the mouse. The GUI was provided by our instructor. Now we newer learned about binding, but now that the class is finished, i really want to know how this is possible to do. I found this code on the internet: from tkinter import * root = Tk() listen = [] def key(event): print ("pressed", repr(event.char)) listen.append(event.char) def callback(event): frame.focus_set() print ("clicked at", …

Member Avatar
Member Avatar
+0 forum 1

Hi, I want to know if is possible to make those events/automation with a Python code( without any program like Pywinauto ), so I could compile the python code: 1. [B]sending keys to an active window;[/B] 2. [B]sending mouse clicks to specific coordinates in a window;[/B] 3. [B]set the window to be everytime active or on top;[/B] 4. [B]waiting/sleeping ( for lowering CPU consumption ) until a specific window exists;[/B] If this could be accomplished with Python ,can anymoe show me how to do this,or a tutorial, please? Thankyou !:)

Member Avatar
Member Avatar
+0 forum 3

Hi, I want to know what Windows language can make ALMOST all sorts of automations like : [I]- sending keys, to a focused window ; - sending mouse clicks to specific coordinates in a window ; - finding if a window exists, by name ; - set it to be everytime active ; - or waits until exists or until is closing ;[/I] I know AutoIt is one of the best for this, but I don't use it anymore( personal issues ). I want to do those events from the code, not with the help of a program, like Pywinauto. …

Member Avatar
Member Avatar
+0 forum 2

I am making a fake virus program as a joke and would like to know how to disable all of the keys except for the shift and enter keys.(these will exit the program) Thanks

Member Avatar
Member Avatar
+0 forum 1

I am Making A program for malking a phonebook. for that i am storing a list in dictionary. Like this: [code] phbuk={} def add(): a=raw_input('Name :') b=raw_input('Email :') c=raw_input('Mobile :') name=[a,b,c] d=len(phbuk) phbuk[d+1]=name [/code] Now if i want to delete a particular record just by giving name then how can i do it. Actually I am not able to understand how to access the values of list,which are the values of this "phbuk" dictionary so that i can perform a search and delete the required record.

Member Avatar
Member Avatar
+0 forum 7

hello! i have this problem with this code. I mean everything works just fine except i dont know how to change program to return me new value. in my program i had to make 2 functions. preberiKontakte() to get their names & id and izlusciOsebe(vrstica, kontakti) to get set of people on the picture. and then i have to write down the programm to get dictionary of people that know each other depending on the pictures they were on together. for example this is what my program does: {'Ahmed': set(['Osama', 'Fadil', 'Mustafa', 'Jibril']), 'Mustafa': set(['Osama', 'Ahmed', 'Fadil', 'Omar', 'Jibril']), 'Abdulah …

Member Avatar
Member Avatar
+0 forum 2

Hi, I am currently studying the database. I came across the concept of 'Keys'. I am very much confused in all of them. Can anyone help me by giving comparison between them along with some example?

Member Avatar
Member Avatar
+0 forum 1

I'm creating a hotkey application and this application does work when focused and also if not focused, so my problem is I cannot disable keyboard keys like ctr+alt+Del or alt+f4 while not focused. I want to disable those keys while the program is running and while unfocused. :D thnx for the answers.

Member Avatar
Member Avatar
+0 forum 3

Hi, I am trying to create a foreign key between 2 tables. I am using MySQL Workbench but every time I create the foreign key relationship, it just dissappears after clicking "apply"... Initially I thought it was Workbench so I tried the legacy Query Browser - but it does the exact same thing... It gives no errors or anything, it just simply removes the foreign key after executing the code... I am using the MySQL that comes built into wamp. Thanks, Ashton.

Member Avatar
Member Avatar
+0 forum 1

The End.