value

How to get values after dictionary sorting by values with linq

hey, I've a dictionary, which i sorted by value with linq, how can i get those sorted value from the sorted result i get that's what i did so far Dictionary<char, int> lettersAcurr = new Dictionary<char, int>();//sort by int value var sortedDict = (from entry in lettersAcurr orderby entry.Value descending select entry); during the ...

Get value of "data"

Hi, I need to figure out the value of data strings with jquery, for example like this: { label: "Beginner", data: 2}, { label: "Advanced", data: 12}, { label: "Expert", data: 22}, to add them up. Something like: var sum = data1+data2+data3; alert(sum); So the result for this example would be 36. Appreciate your help! Nic...

How to pass null as DateTime value?

In a database, there is a field that saves a closure date. This date can be NOT NULL only if the case has been closed. If the case is not closed, it has to be NULL. How can I pass null value to a DateTime object? Tried this but it doesn't work. DateTime closure= dateDatumIspisa.SelectedDate ?? null; DateTime closure= dateDatumIspisa.S...

Different tables values add up | Microsoft Access

How do I get two tables of their values to add up into one table record, e.g. Item table: ID - Autonumber OrderID - Number Price - Currency Details - Text Order table: ID - Autonumber CustomerID - Number Date - Date TotalPrice - Currency The TotalPrice should add up all the items and the total price of adding them up into the ...

How convert PHP value from windows-1257 to UTF-8

How convert PHP value from windows-1257 to UTF-8? I tried many ways, but they was not successful. I have lttu�s and I wanna convert this to littūs. utf8_encode(); iconv_set_encoding("windows-1257", "UTF-8"); mb_convert_encoding() Doesn't work. :( Can anybody help me? ...

How to find missing alpha values in sets of data within same table in SQL

I have a table of many values where one column has the WO Number, and another column has the Resource ID. I need to be able to find all the WO numbers that do not have a resource value of "RW". Here is an example of the typical information. I need to be able to know that work order 5678 does not have an "RW" Resource ID. WO Number - ...

find nearest value in numpy array

Hi, is there a numpy-thonic way, e.g. function, to find the 'nearest value' in an array? example: np.find_nearest( array, value ) thanks in advance! ...

How to get a cell value in JQGrid?

How to get a cell value in JQGrid? If I use the following syntax – var ret = jQuery("#MyGrid").jqGrid('getRowData', id); ret = ret.ProductId; it returns the following HTML. 'input class="editable" name=" ProductId " id="0_ ProductId " style="width: 98%;" type="text"' I actually need the value of the cell. Thanks. Dev ...

Iwork Numbers Spreadsheet Referencing

I am new to Mac Numbers. I would like to know if there is a way that one spreadsheet file can reference the values from a completely different spreadsheet file. ...

How to check if form input has value

Hi, I'm trying to check if a form input has any value (doesn't matter what the value is) so that I can append the value to the action URL on submit if it does exist. I need to add the name of the param before adding the value, and just leaving a blank param name like "P=" without any value messes up the page. Here's my code: function ...

Quick question about open_basedir

Hello, On my server, I have following setting: open_basedir /home/ :/usr/lib/php :/usr/local/lib/php :/tmp/ :/usr/local/ :/usr/bin Now, I am little bit confused about ending / in the / home / setting, does that mean that all subfolders inside home have same rights? or does it mean that only home files can...

Neither IE or Firefox respects the control values that are output

I'm writing a survey designer asp.net mvc. It has buttons to move questions up and down. The buttons post the whole form back and the affected questions are swapped on the server. When the form returns the only thing that is changed are the values for each survey question. Both firefox and IE seem to ignore this change. Nothing is...

default value for a static property

I like c#, but why can I do : public static bool Initialized { private set; get; } or this : public static bool Initialized = false; but not a mix of both in one line ? I just need to set access level to my variable (private set), and I need it set at false on startup. I wouldn't like to make that boring private _Initialized varia...

Can I un-assign (clear) all fields of an instance?

Is there a simple way to clear all fields of an instance from a an instance? I mean, I would like to remove all values assigned to the fields of an instance. ADDED From the main thread I start a window and another thread which controls state of the window (the last thread, for example, display certain panels for a certain period of tim...

Indicating a user default value - flex

This was just what I was thinking for this solution and I would like to know if there's a better approach I could take? I'm creating a simple desktop contacts application. Users have the ability to enter in peoples contact information. I've add a combo box containing city name. The user has the ability to add city to this list and then...

triying to do a combo select with this.val() but it doesnt show the second select

Im triying to do a combo where the when the user selects Chile out of the select box, a second select shows up showing the cities. The jQuery code Im using is this. $(document).ready(function() { var ciudad = $("#ciudad"); ciudad.css("display","none"); $("select#selectionpais").change(function() { var hearValue = $(...

JavaScript: 'textarea.value' not working in IE?

Hi! A few hours ago, I was instructed how to style a specific textarea with JS. The following piece of code (thanks again, Mario Menger) works like a charm in Firefox but unfortunately nothing happens in Internet Explorer (7 tested only so far). var foo = document.getElementById('HCB_textarea'); var defaultText = 'Your message here'; fo...

Populate hidden form element value on title from clicked anchor tag via Jquery

Hey all. I'm trying to set a value on a hidden form element based on a link that is clicked. I figure the best way to go about this is to pass along the anchor title attribute as the value for a particular hidden form element. This hidden form element value will need to be updated depending on the latest link that is clicked. I've scoure...

how to use database name as a value

I have more than 1000 access databases with the same table names.Each database has a unique name. In each database, I want to add column to one existing table and populate that new column (all rows in the table would be the same) with the database name. I found the example below - How can I alter this to give the new column the name of ...

Value cannot be null in sportstore exampe

Hi everyone, I am having this problem when I want to implement IoC for sportstore example. The code public WindsorControllerFactory(){ container = new WindsorContainer( new XmlInterpreter(new ConfigResource("castle")) ); var controllerTypes= from t in Assembly.GetExecutingAssembly().GetTypes() ...