values

Numpy csv script gives 'ValueError: setting an array element with a sequence'

I have a python script that successfully loads a csv file into a 2d numpy array and which then successfully extracts the value of a desired cell based on its column and row header values. For diagnostic purposes, I have the script print the contents of the data matrix before it is put into a numpy array. The script works when the data ...

Writing specific values to a database X times?

To begin with, i should clarify the title, so you really understand what I'm trying to do. I'm working on a shopping-cart-ish script, but it's a little different because all products (almost always) will be purchased each time. Therefore i believe it's best to list all of the items up with a table, and then let the customer choose the a...

Modify controls out of MainThread (Need some theory confirmation from pros)

Hello all! I have a winform with a form called MainForm. I have a static class called ObjMgr. In ObjMg, I have several other static classes, values, but Its not important now. In the ObjMgr class, I also have a static void Pulse() method, that I populate my other static classes in the ObjMgr. This pulse method have to run very often, l...

How does one write HTML attributes over more than one line?

For those attributes that can stretch into infinity and beyond off-screen and do not tolerate white space like urls. Thanks. ...

mysql left join but return blank row

Hi, i have a small problem where i have this setup... Table: trade names { trade_id : 1 trade_name : olivers guest house} Table Customer { name: me, trade_id: 1 : blah: blah} i do a left join to get the trade name into customers as if you are a guest house you will have a trade name but as a landlord you will not have a tr...

Default cURL option values

I was refactoring my cURL class today and thought about looking at default values of cURL FLAGS. Could anyone tell me where I might find or how could I output them? PS: If it's possible at all. ...

jquery opener window adding form values from child window

Hello: I have a "main" window with a table containing a series of form text fields with ids that increment (e.g., field_1, field_2 ... field_n). I need to populate the value of these fields from selections a user makes from a child window that has a list of about 1400 choices. This is done via an "Add" button with an onclick that passe...

What should I use to pass value in asp.net mvc posting form?

I am passing the edited value and retrieving it back but I dont get back the id value.. how do I get back the value for Id...The id value will actually remain the same..all I need to do is pass it back again... public ActionResult EditValue(int id) { ViewData["id"]=id; ViewData["Value"]=GetOriginalValue(); return...

Adding Values to dropdown Menu box from MySql_Fetch_Array

Am attemtping to populate a dropdown menu with the results of my SQL query. The script functions, however I just am unsure of the syntax to add the results into the html dropdown menu. Currently it populates a table with the results. Here is my code: <?php require_once('Connections/database.php'); ?> <?php $q=$_GET["q"]; mysql_select_d...

How would a write a LINQ query to compare with a list of values ?

I have basically to select all employee from companies which are being passed so a variable - CompanyListIds - Contains list of all company ids.. var result=DataContext.Employee(e=>e.CompanyId==companyId).ToList(); The above is a query I have for selecting from one company, now how would I modify it to compare with all the companyi...

How do I access data from a docked form?

I'm using http://sourceforge.net/projects/dockpanelsuite/ as a docking control in my application and I have added a form as a docking container, and from it I need to access a string from the main form. I was just messing around to see if I could load it using (Owner as MainWindow), but it did not work. for (int i = 0; i < (Owne...

Javascript Regex: Get everything from inside / tags

What I want From the above subject I want to get search=adam and page=content and message=2. Subject: /search=adam/page=content/message=2 What I have tried so far (\/)+search+\=+(.*)\/ But this is not good because sometimes the subject ends with nothing and in my case there must be a / (\/)+search+\=+(.*?)+(\/*?) But th...

Save Inno Setup Custom Form field values to an INI file

Hi, How do I read and store the values of two form field values to an INI file? I created two key pairs at the INI section using ISTool. Now how do I link this up? I am assuming I should write some Pascal script in here, but don't know exactly what, yet { AuthForm_NextkButtonClick } function AuthForm_NextButtonClick(Page: TWizardPa...