[Solved] Creating vertical dictionary from text file

if index==3: indexes=line.split(“\t”) for index in indexes: Old_Values=Old_Values{[key]} # What here? As I understand it, what you want there is simply an empty list to put the corresponding elements from the subsequent lines in: Old_Values[index] = [] Which will give you: {‘WebAddress’: [], ‘Address’: [], ‘Surname’: [], ‘Name’: [], ‘Telephone’: []} I don’t know where … Read more

[Solved] How to change mysql column from html table with php scripting

1) You need to use ajax. 2) For every button you can use a form such as: <form method=”post” action=”approved.php” target=”_self”> <td> <input type=”submit” name=”submit” value=”Approved”> <input type=”hidden” name=”quoteID” value=”<?php echo $row[“quote_id’]?>’> </td> </form> approved.php: mysqli_connect $approvedElement = $_POST[‘quoteID’]; $query = ‘UPDATE … WHERE `Quote ID` = \”.$quoteID.’\’ ‘; mysqli_query($query); So before ajax I suggest … Read more

[Solved] Can I write an OS in machine code? [closed]

** yes you can but this is very diffecult for any one and if you do this what make programmers and all design programming lanaguages to make things easily comparing by machine code and this is project as you ask it’s an OS written in machine code it’s still under developing http://www.magicschoolbook.com/computing/os-project note : your … Read more

[Solved] Making RSA keys in Java [closed]

The problem is in the 4th from bottom line of code: System.out.println((noSuchProvdr.getMessage()); ^ Remove the extra parenthesis from there to make it System.out.println(noSuchProvdr.getMessage()); Edit: If the compiler is telling you java.security.NoSuchProviderException is never thrown in body of corresponding try statement, remove this last catch block catch (NoSuchProviderException noSuchProvdr) { System.out.println((noSuchProvdr.getMessage()); } 3 solved Making RSA … Read more

[Solved] jquery ajax have error [closed]

The error would probably be from this being a plain Object rather than the Element. Every function has its own this value, determined when it’s invoked. And, inside of the success callback, this will typically refer to the settings of the request. $.ajax({ // … success: function () { console.log(this.type, this.url); // “POST” “/funfact_ajax” } … Read more

[Solved] What is the point of the sep=”” at the end?

The default value for sep is a space. By setting it to an empty value you print without spaces between the 3 inputs. You could easily have tried this without the sep argument to see the difference: >>> print(“There are <“, 2**32, “> possibilities!”, sep=””) There are <4294967296> possibilities! >>> print(“There are <“, 2**32, “> … Read more

[Solved] How to create form slider with 5 values [closed]

You can use jquery selecttoUIslider component. This component takes the select form elements and generates a jquery UI Slider element. Here is an example from page. Markup <select name=”optiontype” id=”idselect”> <option value=”Economy”>Economy</option> <option value=”Value”>Value</option> <option value=”Average” selected=”selected”>Average</option> <option value=”Splurge a little”>Splurge a little</option> <option value=”Luxury”>Luxury</option> </select> Javascript $(‘#idselect’).selectToUISlider(); You can check the demo page here … Read more

[Solved] Python regex not printing contents in new list

You are looping over individual characters, not over lines: >>> maxline=”i have a Prof.John and As Maria a bike” >>> for line in maxline: … print line … i h a v e # …. etc. These individual characters don’t match your expressions. Change maxline to be a list; perhaps by splitting it on newlines … Read more

[Solved] compile errors when trying to use struct in c

struct player only contains name and col. It doesn’t contain a BOOLEAN member. You could add such a member to it and have that member indicate whether the player is current. However that would be a bad design (because it is tedious to code and there are better options). Instead, have another variable that indicates … Read more