Hi,
i want to change the contents in a table/display tag on change of selection in drop down using struts and ajax.Please let me know an example or a guide reference
Let's say I have a list:
a = ['apple', 'orange']
and a dictionary:
d ={'apple': [2,4], 'carrot': [44,33], 'orange': [345,667]}
How can I use the list a as a key to lookup in the dictionary d? I want the result to be written to a comma-separated textfile like this
apple, orange
2, 44
4, 33
In Haskell in 5 steps the factorial function is defined as follows:
let fac n = if n == 0 then 1 else n * fac (n-1)
But for hugs, it says that fac needs to be in fac.h. Can anyone explain why this is the case - missing the ability to define recursion seems like a massive limitation for an interpreter?
Hello, i'm developing a quite big C++ software and now (better late than neve :)) i've decided to document it in the doxy standards.
There are plenty of classes, methods, functions, macros and so on therefore i'm searching for a software that would scan my source tree and insert doxy comment blocks on top of every "documentable item" to let me edit them later and add details such as methods description and so on.
Some hint?
I guess IE9 must be taken into account to start with. However, considering IE6 is still out there like a zombie, what should we expect from the future HTML5? When it will be possible to have let's say 90% of coverage among within all browsers?
Let's assume I have a class called MyClass with an attribute called MyAttribute and a method called MyMethod(). Inside that method I'd like to have a variable called MyVariable. I'd like to set the value of MyVariable to "MyVariable" and MyAttribute to "MyAttribute" inside the call to MyMethod(). How can I do this in a Collaboration Diagram?
I can't find any info of this kind on the internet and the book I'm studying from (Applying UML and Patterns) is very vague in the details.
Thanks
I am using conditional comments to link to a css file (let's call it "IEonly.css") if the IE version is less than 8. I am trying to override some properties in the regular css file. Strangely enough, IEonly.css will set new css properties correctly, but it won't override the properties in the regular CSS file!
(I am trying to make this work for IE7).
Help!
Hi there,
I'd like to be able to select a location on a MKMapView. Ideally the user would be able to place their finger on a pin, drag it around the map, and then let go above there area they wish to place it.
I'm stumped.
Does anyone have any clever ideas how this could be achieved?
Let's say we have a memory-intensive class like an Image, with chainable methods like Resize() and ConvertTo().
If this class is immutable, won't it take a huge amount of memory when I start doing things like i.Resize(500, 800).Rotate(90).ConvertTo(Gif), compared to a mutable one which modifies itself? How to handle a situation like this in a functional language?
Hey all,
Is anyone aware of some code/rules on how to capitalize the names of people correctly?
John Smith
Johan van Rensburg
Derrick von Gogh
Ruby de La Fuente
Peter Maclaurin
Garry McDonald
(these may not be correct, just some sample names and how the capitalization could be/work)
This seems like a losing battle...
If anyone has some code or rules on when and how to capitalize names, let me know :)
Cheers,
Albert
Hi All,
Let assume that we have a half 3D mesh object and want to mirror it, in C# 2008 Express.
That is, we want to have its simetrical part according to the center line of the object.
Could you help me to do that.
Thanks in advance.
Which is the best way to manage a website with one or more mirrors so that:
Google don't consider it as "dupicated content"
The website is correctly indexed
No inconsistencies or duplicated information are present in Google Analytics
The Google webmaster guidelines in general are respected
NOTE: I'm not sure if I should ask this question here or in ServerFault. It looks a bit in the middle between programming and server administration. Let me know if you think ServerFault represent a more appropriate place for this and I'll move it.
Thanks.
I am using Box2d for a topdown game. The "ground" is a series of tiles, where each tile is a static body with a sensor shape. Can I make friction take effect for this, even though the objects aren't really "colliding" with the ground?
If Box2d won't let me do this, I considered trying to implement my own by detecting what force is currently moving the object, and applying a force opposite to it, but I'm not quite sure how to detect that force.
Hi, I am facing issues with the special characters like ° and ® which represent the degree Fahrenheit sign and the registered sign,
when i print the string the contains the special characters, it gives output like this:
Preheat oven to 350° F
Welcome to Lorem Ipsum Inc®
Is there a way I can output the exact characters and not their codes? Please let me know.
Dear all,
Most of my daily programming work in Windows is nowadays around I/O operations of all kind (pipes, consoles, files, sockets, ...). I am well aware of different methods of reading and writing from/to different kinds of handles (Synchronous, asynchronous waiting for completion on events, waiting on file HANDLEs, I/O completion ports, and alertable I/O). We use many of those.
For some of our applications it would be very useful to have only one way to treat all handles. I mean, the program may not know, what kind of handle it has received and we would like to use, let's say, I/O completion ports for all.
So first I would ask:
Let's assume I have a handle:
HANDLE h;
which has been received by my process for I/O from somewhere. Is there any easy and reliable way to find out what flags it has been created with? The main flag in question is FILE_FLAG_OVERLAPPED.
The only way known to me so far, is to try to register such handle into I/O completion port (using CreateIoCompletionPort()). If that succeeds the handle has been created with FILE_FLAG_OVERLAPPED. But then only I/O completion port must be used, as the handle can not be unregistered from it without closing the HANDLE h itself.
Providing there is an easy a way to determine presence of FILE_FLAG_OVERLAPPED, there would come my second question:
Is there any way how to add such flag to already existing handle? That would make a handle that has been originally open for synchronous operations to be open for asynchronous. Would there be a way how to create opposite (remove the FILE_FLAG_OVERLAPPED to create synchronous handle from asynchronous)?
I have not found any direct way after reading through MSDN and googling a lot. Would there be at least some trick that could do the same? Like re-creating the handle in same way using CreateFile() function or something similar? Something even partly documented or not documented at all?
The main place where I would need this, is to determine the the way (or change the way) process should read/write from handles sent to it by third party applications. We can not control how third party products create their handles.
Dear Windows gurus: help please!
With regards
Martin
Is there a simple way to convert a (large) list of p4 moves to p4 integrates? There are a lot of pending modifications to the moved files, so just reverting and instead integrating isn't an option.
Perforce won't let you just revert the deleted file (which would leave the desired integration behind).
Hello all,
I'm trying to initialize an unsigned long long int type. But the compiler is throwing an error "error: integer constant is too large for "long" type ".
The initialization is shown below :
unsigned long long temp = 1298307964911120440;
Can anybody please let me know what the problem is and suggest a solution for the same.
With Regards
Sujay
Hi,
I have multiple ListViews and would like to add those to Gallery.
I tried with addView but it is not supported since Gallery view is an AdapterView.
Can someone let me know how to go about it?
Regards
Sunil
Hi guys - concerning Gmail labels - what are they technically speaking. I mean through imap connection I can access a gmail mailbox and go through the emails however let say I wish to create a label and attach it to the emails as I loop through them using code - how can I do that in code? I'm using php - and Zend Framework.
I am not been able to update any of the attributes in one of my feature classes using the Arc FM Attribute editor, but I am able to update it thru the ESRI Attribute editor.
Please lemme know if somebody knows the reason.
I am using Arc SDE 9.3.1 with ArcFM 9.3 and ArcMap 9.3
Note:I am in selection Tab and not in Target tab.
Please let me know if sombody can figure out the reason.
Vinay
[email protected]
Hi All,
I know this is a duplicate kind of question.
I have worked with ASP.Net and ASP.Net MVC 1.0. I never really got a chance to get into ASP.Net AJAX.
My question is it really worth to invest in learning ASP.Net AJAX 3.5 or 4.0 given the fact, I have hardly used it ?
Please let me know your advise.
Hi All,
I have four images in the Gallery View. When we do swipe from left to right or right to left the Gallery View moves all the images i.e if I swipe from left to right from the first image then it will move to all the four images.
What I want is that when I swipe it should only move to the next image. Can someone let me know how is this possible?
Hope to get a reply soon.
Regards
Sunil
Suppose I have a list of numbers:
L = [1, 2, 3, 4, 5]
How do I delete an element, let's say 3, from the list while I iterate it?
I tried the following code but it didn't do it:
for el in L:
if el == 3:
del el
Any ideas?
Thanks, Boda Cydo.
Hello everyone,
Im looking for a simple bit of code that will let me add the following html into my zend form:
<div id="wmd-button-bar" class="wmd-panel"></div>
Thats it, it needs to be above my 'method' element in the form but thats it. For such a simple action I cant find any methods that don't involve me learning rocket science (i.e Zend Decorators).