instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am writing my first ASP.Net webpage and using MVC. I have a string that I am building in a partial view with a grid control (DevExpress MVCxGridView). In my partial view I am using a HTML.Hidden helper as shown below. ' Create a hidden variable to pass back a comma-delimited string Response.Write(Html.Hidden( "e...
stackexchange/codereview
I am using System.Threading.Timer in my Windows service and locking the callback method using Monitor.TryEnter, so it's non-reentrant. Inside the callback, I am looping over some database objects (Linq to SQL entities) and performing some IO tasks. On each iteration of the loop, I am changing some properties of entity ...
stackexchange/codereview
I am getting the following info log in GAE's console: "POST /xxx HTTP/1.1" 200 133 - "Apache-HttpClient/UNAVAILABLE (java 1.4),gzip(gfe)" I can not understand if the servlet is not available, why is "200" being returned. I checked web.xml file for servlet mapping and they seem fine. What else could be causing it. Is it...
stackexchange/codereview
I have a image frame which constantly and quickly changes images when users drag over the frame. These images are Real-Time generated based on user's interaction so every image generated should be downloaded as soon as it become available. The highest speed could be 5 images per seconds. However, I have a image flicker...
stackexchange/codereview
I have a remote repo on github, and on my local machine I have a few different branches (so I can switch between the branches using "git checkout master", "git checkout branch2", etc.). When I run the "git fetch" command, I am never sure if it's fetching updates for ALL of those branches or ONLY the branch I'm currentl...
stackexchange/codereview
I'm writing a simple application in ANSI C. I am using GCC in a Unix environment. I have the following sample application: //main.c #include "foo.h" int main() { int result; result = add(1,5); return0; } Header: //foo.h #ifndef FOO_H_INCLUDED #define FF_H_INCLUDED int add(int a, int b); #e...
stackexchange/codereview
Is dbase considered obsolete? There was a time when it was more prominent that SQL, but now it seems largely dying...
stackexchange/codereview
With this function, we can create gradient image : http://planetozh.com/blog/my-projects/images-php-gd-gradient-fill/ I need to create gradient text, or put a gradient over a black image. (Must have transparent background) It's kind of easy within Photoshop, but I don't know all functions of GD library so maybe there i...
stackexchange/codereview
I am confused about how to access the attributes of an ActiveRecord instance from a method within the ActiveRecord instance. For example I have a Lead class that inherits from ActiveRecord: class Lead < ActiveRecord::Base end I have the following scaled down migration file that shows the columns of an ActiveRecord tab...
stackexchange/codereview
Right now our team's ASP.NET MVC 2.0 web project takes about 4 minutes to do build on debug. We have the following things included on our project: t4MVC templates compiling the asp.net mvc's views on all builds My work pc is a Intel core 2 duo T7250 @ 2.00 Mhz. Windows 7 32 bit ultimate 4 gb ram I am also gettin...
stackexchange/codereview
I'm trying to install some folders along with my app - folders with help files. How should I do that? Right now I've added two files to a setup projects as assemblies, though I don't know how to get to those files in the Install method of my installer class, and copy them to correct folders... I even don't know if thos...
stackexchange/codereview
I have a model called a Statement that belongs to a Member. Given an array of members, I want to create a query that will return the most recent statement for each of those members (preferably in one nice clean query). I thought I might be able to achieve this using group and order - something like: # @members is alrea...
stackexchange/codereview
I'm looking for a mapping API something which has similar functionality to Google-maps but which perhaps has something along the lines of the Apache / MIT license. I basically want to plot points on the map. Does such a thing exist? If so are there any guides to plotting points on this map API?
stackexchange/codereview
I'd like to generate definitions of variables using an algorithm. For example: i'd like to run a loop that does the following p=p1 p^2=p2 p^3=p3 so for p^i i'd like to define a variable pi (i is a number).
stackexchange/codereview
I need to be able to draw a polygon using mouse click locations. Here is my current code: //the drawshape varible is called when a button is pressed to select use of this tool if (DrawShape == 4) { Point[] pp = new Point[3]; pp[0] = new Point(e.Locat...
stackexchange/codereview
I found this amazing code to make a dropdownlist with check boxes: Click here I implemented it and it works, except for one detail I cant for the life of me get the array of selected checkboxes back. I have implemented as follows: <local:MultiSelectionDropDown maxHeight="300" x="181" y="-7" width="233" requireSelection...
stackexchange/codereview
Im having some trouble with the erlang wx module. My program runs as follows: Server = wx:new(), Frame = wxFrame:new(Server, -1, "" [{size,{700, 600}}]), %%%REFERENCE TO WINDOW Panel = wxPanel:new(Frame), %%% REF TO PANEL IN FRAME Then I pass Panel to another process and try to create a Grid XreportZ = wxGrid:new(...
stackexchange/codereview
I am thinking of sorting and then doing binary search. Is that the best way?
stackexchange/codereview
I have been tasked to do a scheduling program in my company. Basically given N employee you should schedule them shift for the month. I tried to do this via brute force and ordered priority of constraint. However, I am having problem when trying to maintain vertical and horizontal constraints. Vertical constraints, all...
stackexchange/codereview
I am trying to build a collection of Visual similarity between images, being size, angle, color, rotation invariant for Content Based Image Retrieval.Quite agnostic about the platform but .NET, Java or Python are preferred. But if others are available, pls. suggest away. I am quite familiar with OpenCV Match template a...
stackexchange/codereview
Somehow, a simple form I have to sign up for a mailing list (which adds an email to a Google Apps Group, using gdatav2rubyclientlib) seems to fail occasionally. The form is submitted via POST through jQuery, and the Sinatra app (running on nginx/Passenger) handles the POST and emails me a confirmation. Occasionally, ...
stackexchange/codereview
I want to know if this assignment is correct id var = 9; Will var be assigned the value 9 or do we have to wrap in some wrapper class like NSNumber?
stackexchange/codereview
I am running eclipse Version: 3.5.2 Build id: M20100211-1343 with the subclipse plugin 1.6.4 I have saved my password, but now I need to change the account I connect with. How do I do that? My coworker has Version: Helios Release Build id: 20100617-1415 and subclipse 1.6.14 but no Application data folder. Where might ...
stackexchange/codereview
How to set path custom path for cookies
stackexchange/codereview
I've been working on a core data program for a while now. I'm trying to combine attributes of an entity in a text view for saving to PDF and Printing. One of the attributes of the entity uses binary data. When I execute this: NSData *myData = [object valueForKey:@"cueNotes"]; ...it returns this: typedstreamè@ N...
stackexchange/codereview
I have a Message and Source model related as follows: class Message < ActiveRecord::Base has_many :sources accepts_nested_attributes_for :sources, :allow_destroy => true, :reject_if => proc{|s| s[:href].blank?} end class Source < ActiveRecord::Base belongs_to :outgoing_message validates_presence_of :href end ...
stackexchange/codereview
What I'm trying to do is set the text of the item I click on into the myEditText. Not sure how to access the specific item in ListView though... ListView myListView = (ListView)findViewById(R.id.myListView); final EditText myEditText = (EditText)findViewById(R.id.myEditText); ... myListView.setAdapter(a...
stackexchange/codereview
I am not sure if a line of PHP could be run inside of a JavaScript function. For example: <script language=javascript> var int=self.setInterval("message()",1000); function message() { <?PHP mysql_query("SELECT * FROM example"); ?> } </script> I haven't tried to run this, but I don't think you can run PHP like this...
stackexchange/codereview
Good afternoon, Can someone please tell me if I can set default parameter values when using lambda expressions in C#? For example, if I have the code public static Func<String, Int32, IEnumerable<String>> SomeFunction = (StrTmp, IntTmp) => { ... }, how can I set IntTmp's default value to, for example, two? The usual w...
stackexchange/codereview
Notes on environment: JSF 1.1 using Infragistics component library. I'm using the following Javascript to attempt to prevent an 'Enter' keypress from submitting a form. function disableEnterKey(e){ var key; if(window.event) key = window.event.keyCode; else key = e.which; ...
stackexchange/codereview
I am learning java for 3 months and sometimes i can not understand the usage purpose of something. one topic was dependency injection and spring beans i figured out the finally =) now i confused with the two annotations @Autowired and @Repository. First What does Autowiring mean? then Why should i use them and what ...
stackexchange/codereview
var tr = document.createElement('tr'); tr.setAttribute("onclick",p.onrowclick+"("+row.id+")"); Hi, the above works fine for me in Firefox. I can't find the correct syntax for a workaround in IE. I'm using IE8.
stackexchange/codereview
There's lots that can be taught about transactions in databases (and I'm really talking about relational databases here, since that's what I'm currently teaching), but I believe it's easy to teach the wrong things. Given that students are very likely going to forget most of what you say before they leave the lecture ro...
stackexchange/codereview
Here is the code: <html><head> <style> * { margin: 0px; padding: 0px; border: 0px none; } #left { float: left; height: 90%; width: 100px; margin: 0px; padding: 0px; border: solid 1px Black; } #right { height...
stackexchange/codereview
I've been using Google Chrome to debug my javascript, but then all of a sudden I can no longer place breakpoints. I click on the line number, where I previously clicked to add a breakpoint, but no breakpoint will be added. Sometimes if I click very fast, like a madman, I can see it trying to add breakpoints, but it won...
stackexchange/codereview
I'm attempting to create a unit test for my app in Symfony. My /config/app.yml looks like this: all: tmp_dir: "tmp" # usps usps_username: xxxxx usps_password: xxxxx usps_dir: usps in the unit test, when I run something like: $t->comment(sfConfig::get('app_usps_username')); It will just output and empty lin...
stackexchange/codereview
I've been trying to implement Ariel Flesler's ScrollTo plugin, but I can seem to figure out how to initiate it. This is his website: http://flesler.blogspot.com/ What I would like to do is have a static navigation, and when the user clicks a nav link, the content scrolls within a particular div. I have a pretty good un...
stackexchange/codereview
Is it possible with PHP script to have the script download a file on a remote server to my web server? I have my own webserver and domain. I want to put a php script on that domain, that will download a file from a remote server onto my server's filesystem. Is this possible? -Jim
stackexchange/codereview
I am writing the command in crontab and its output is first asking the password. Is there any way to supply the password with command like mount -a < password
stackexchange/codereview
My HTML is simple, I have a content area that wraps around everything and inside it I want three columsn. Two of them have to have fixed widths, and main content area should be flexible. I wonder what I'm doing wrong - EDIT here is the complete code sorry if it's a bit long!: <%@ Master Language="C#" Inherits="System.W...
stackexchange/codereview
Is there a way to make https calls with the Network.Browser package. I'm not seeing it in the documentation on Hackage. If there isn't a way to do it with browse is there another way to fetch https pages? My current test code is import Network.HTTP import Network.URI (parseURI) import Network.HTTP.Proxy import Data.May...
stackexchange/codereview
I've been an avid Eclipse user for my Java development for a while, but as of late I'm beginning to enjoy developing using NetBeans 6.9.1 more thanks to the faster (IMHO) code completion and the powerful templates and refactoring tools. Anyway, the one thing that I'm missing is some tool to analyse my code's Metrics. I...
stackexchange/codereview
I just tried adding some print statements to my shouldautorotate method and noticed that it checks it 4 times which does make sense but even though I am not switching mode from portrait to landscape, it returns portrait 3 times and on the fourth time, it returns landscape even though my simulator is not in landscape. i...
stackexchange/codereview
See this description? "The ZoneTag client runs as a background process, monitoring the cell tower to which the phone is currently connected (which provides a rough location) and possibly communicating via BlueTooth to a GPS device, providing much more exact location information (and also providing a mapping between cel...
stackexchange/codereview
The last time I deployed on a device was last week. Since that time, I've been tweaking on the simulator. My developer certificate expired on Oct 11th. I tried to deploy on my iPhone today and got some code sign errors. I checked it out and discovered my developer certificate expired, so I went ahead and renewed it...
stackexchange/codereview
I'm working on some SDL stuff and I've run into some trouble when trying to set the location of a loaded BMP. Here's the code. while(event.type != SDL_QUIT) //The game loop that does everything { SDL_Rect *location; location = SDL_Rect(600,400,0,0); SDL_PollEvent(&event); //This "polls" the event //Draw...
stackexchange/codereview
I am working on a Windows service which needs to schedule tasks whenever one of it's web services is called. This could happen hundreds of times per second in a worst case scenario. The task needs to wait a period of time, typically a minute or two, then call a method passing a parameter. We tried to build our own sche...
stackexchange/codereview
VS2010 w/Ria Services & SL4. I already have my SL app loaded in the browser. User clicks around to different view pages and I would like to store their current location in a list of "recently visited pages". To do that, I need to store the view page + any existing querystring key/values. Ex: here is a real page in my ...
stackexchange/codereview
I have found several extensions for MediaWiki which allow you put a Google search box for searching the web on your MediaWiki site. However, none of them seem to have an option to enable suggest, which populates a drop down menu of possible search terms based on what the user has typed in so far. How can I do this? I p...
stackexchange/codereview
I need to bring up a few different keyboards: a 'standard' keyboard with Ctrl and Alt keys; maybe a cursor pad; and so on. I have found the Keyboard class, which would let me define a keyboard in an XML resource. I have found that the KeyboardView class has a setKeyboard method ... and, so far, I have not found any oth...
stackexchange/codereview
static const int size = 5; @interface Foo { char bar[size]; } But the compiler complains that “instance variables must have constant size”. Do I really have to #define the size, or is there a way to get it work with a regular constant? (I’d like the memory to be allocated statically, no malloc.)
stackexchange/codereview
What is a good open source implementation of a thread pool for C++ to use in production code (something like boost)? Please provide either your own example code or a link to example code usage.
stackexchange/codereview
As the title suggests, I would like to know if it is possible to join the string in a select statement within a PL/SQL procedure. For example, I have something like this SELECT FCS.CATEGORY, FCS.NUMBERS, FCS.POINTS WHERE FCS.OBJECT = 'T' AND FCS.THIS_DB & strSelectedDB & So, is it possible to d...
stackexchange/codereview
I am using ASP.Net4 MVC2 for my application. The first person using the application usually experiences a long wait before the application responds. After that the application is pretty responsive. If the application is idle for 15 minutes, the same person or the next person using the application will experience lon...
stackexchange/codereview
How do I programmatically get the field type from a statement inside a method like this : Foo foo = getSomeFoo(); If it is field, I can know the type of the element.
stackexchange/codereview
I'm a beginner to Ruby/Rails, and just generated my first HTML programmatically - kind of exciting-- but when I viewed "page source" from the browser, my HTML had all these additional gaps and messed up the logical indentation: This code in a View: <% @states_array.each do |state| %> <ul><%= state %></ul> <% end %> ...
stackexchange/codereview
Well, this one seems quite simple, and it is. All you have to do to download a file to your server is: file_put_contents("Tmpfile.zip", file_get_contents("http://someurl/file.zip")); Only there is one problem. What if you have a large file, like 100mb. Then, you will run out of memory, and not be able to download the ...
stackexchange/codereview
I want to read a file byte by byte and check if the last bit of each byte is set: #!/usr/bin/python def main(): fh = open('/tmp/test.txt', 'rb') try: byte = fh.read(1) while byte != "": if (int(byte,16) & 0x01) is 0x01: print 1 else: print...
stackexchange/codereview
I have some code to initialize a struct in C#: namespace Practice { public struct Point { public int _x; public int _y; public int X { get { return _x; } set { _x = value; } } public int Y { get { return _y; } ...
stackexchange/codereview
It's a known fact that a lot of websites use javascript codes to prevent from browsing them using iframes. I would like then my iframe to behave like this: if the site doesn't have such a code and isn't trying to redirect the user, its content should be shown in the iframe. But if it's trying to redirect, it should be ...
stackexchange/codereview
There is a table in a SQL database like below : SampleTable : ----------------------- id | number | price ----------------------- 1 | 3 | 300 2 | 1 | 200 3 | 5 | 100 4 | 10 | 10 5 | 30 | 30 6 | 1 | 500 ----------------------- I wanna calculate total price like below : in each ...
stackexchange/codereview
I have a QLineEdit, and I want to set a placeholder text. When I call setPlaceholderText(string) I get an AttributeError, but: >>> from PyQt4 import QtCore >>> QtCore.PYQT_VERSION_STR '4.7.4' >>> QtCore.QT_VERSION_STR '4.7.0' and from the QAssistant: This property holds the line edit's placeholder text. ... Thi...
stackexchange/codereview
With MXML components, I've seen a pattern used where you have an AS3 class, then the MXML subclasses it, to have a separation between view/code (anonymized from real code): package com.john { public class MyComponent extends Canvas { ... } } <?xml version="1.0" encoding="utf-8"?> <logic:MyComponent xmlns:logic="...
stackexchange/codereview
I have an abstract base class that subclasses the UserControl class with no XAML. When I create a class based on the base class everything works fine (compiles and executes). But when I add code to the base class to fire an event, it compiles but when run I get a 'The invocation of the constructor on type 'ExtendedDisp...
stackexchange/codereview
another homework assignment here thats kind of unclear on the requirements. It is a forms program that assigns people to seats on an airplane. The part that is losing me is that its telling me to display the passenger manifest in a list box, but then its telling me to display it in a list box. Then it calls it a rich t...
stackexchange/codereview
I've searched so much about HTML5 video control and I'm stuck at controlling video with javascript.There is a rule in application you should know. There will not be any user interaction with browser at any time. What I'm trying to achieve is 1) Open video as fullscreen and play video 2) When video is ended,close video...
stackexchange/codereview
I have set of XML files and they have a particular stucture. I want to validate the XML so that the stucture is fine always before using it. Can anyone help with some samples like how to validate the XML files using java code. Thanks...
stackexchange/codereview
I'd like to create a View/Window that performs some inital loading in my application. I tried something like this: StartWindow *start = [[StartWindow alloc] initWithNibName:@"Start" bundle:nil]; self.startWindow = start; [start release]; [window addSubview:startWindow.view]; And in the viewDidLoad event inside Star...
stackexchange/codereview
I need a TimeSpan that takes into account working hours. Let's say that if we configure the TimeSpan with an 8 hour day, two days should return 16 total hours instead of 48. Does anybody know of such a class? Thanks. Edit I need the same functionality as timespan but with configurable day duration. Adding, subtracting,...
stackexchange/codereview
I'm writing a program that sometimes encounters an error. When it does, it pops up a Tkinter dialog asking the user whether to continue. It's a more complicated version of this: keep_going = False KeepGoingPrompt(keep_going) if not keep_going: return The prompt sets keep_going to True or leaves it False. Problem is...
stackexchange/codereview
So I've searched a ton of sites, and what I am looking for is, as the user types, the text automatically resizezs smaller (or larger, if they delete something). Thanks!
stackexchange/codereview
How can a barrier be implemented with semaphores in Java. Will the following pseudo code work? How can it be written using java Semaphore class. N is the number of threads to be waited for at the barrier. EveryoneHasReachedBarrier is a conditional variable. Aquire(mutex) m = m + 1; if(m != N) { Release(mutex); ...
stackexchange/codereview
In Unix, how would one do this? #!/bin/sh x=echo "Hello" | grep '^[A-Z]' I want x to take the value "Hello", but this script does not seem to work. What would be the proper way of spelling something like the above out?
stackexchange/codereview
I've read the definite tutorial on key bindings a few times, but my brain cache doesn't seem large enough to hold the complicated processes. I was debugging a key binding problem (turned out I was using the wrong JComponent.WHEN_* condition), and I stumbled upon a concise and hilarious javadoc for the package private j...
stackexchange/codereview
I used MicrosoftReportview in my project , The reports are avalable in project folder. When I run web site in Server (not VS development server) . It give this type of error. Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error d...
stackexchange/codereview
I've just started with unit testing, and would like to know if I'm on the right track. Can you guys please take a look at my code and tell me what you think if it? This is the (basic) method that I want to test: public void Accept(long resumeId) { // Get the resume that has to be accepted Resume originalResume = ...
stackexchange/codereview
Is it possible to obtain all references to an object in Java. What I need to check is if an object has removed all subscriptions for callbacks. Thanks
stackexchange/codereview
i've been trying to get some modeless forms in my application to appear on the taskbar - taking advantage of the new useful taskbar in Windows 7. There's are many issues with the VCL that need to be undone before a form can exist on the taskbar. But the final issue is that minimizing the form that the VCL has designate...
stackexchange/codereview
If I deliberately store trailing spaces in a VARCHAR column, how can I force SQL Server to see the data as mismatch? SELECT 'foo' WHERE 'bar' = 'bar ' I have tried: SELECT 'foo' WHERE LEN('bar') = LEN('bar ') One method I've seen floated is to append a specific character to the end of every string then strip it...
stackexchange/codereview
I have a REST web service that currently exposes this URL: http://server/data/media where users can POST the following JSON: { "Name": "Test", "Latitude": 12.59817, "Longitude": 52.12873 } in order to create a new Media metadata. Now I need the ability to upload a file at the same time as the media metadat...
stackexchange/codereview
dear all, i need to combine two different result in one script. The problem is like this: if #edit clicked -> show dialog -> click button #ok inside dialog, then do function: if($('#user').val() !== "admin" || $('#password').val() !== "qaubuntu") { alert('Invalid login'); return fals...
stackexchange/codereview
I'm using a VBScript to run an application on my Win Server 2003, and I want it to log the user off after a set amount of time. Something along the lines of: Set WshShell = WScript.CreateObject("WScript.Shell") Set OExe = WshShell.exec("somecommand.exe") WScript.Sleep 1000000 OExe.Terminate <Insert LogOff code>
stackexchange/codereview
I have a form displaying a nested relationship. The call to render the nested child objects is made like below: <% if @fpimgblocks %>   <% f.fields_for @fpimgblocks do |builder| %>     <%= render 'fpimgblock_fields', :f => builder %>   <% end %> <% end %> @fpimgblocks is the result of a find, I have verified there are...
stackexchange/codereview
I have a process that has a CtrlBreak handler by calling SetConsoleCtrlHandler. This handler listens for CTRL_BREAK_EVENT and performs some action (without quitting). This process is not attached to a console. Let's call this the target process. Next, I have written a separate program which takes a PID and I'd like to ...
stackexchange/codereview
Good day, My magento cannot generate reports from the admin panel. I get the following error: This report depends on timezone configuration. Once timezone is changed, the lifetime statistics need to be refreshed. Last updated: Oct 21, 2010 3:04:33 PM. To refresh last day's statistics, click here." I follow the instruct...
stackexchange/codereview
let's say that I have some inputs with ID like that: ctl139_ctl00_txtValue ctl140_ctl00_txtValue ctl141_ctl00_txtValue ..... xxxxxx_ctl00_txtValue how, using CSS, apply the same style for these inputs (where ID follows the pattern: xxxx_ctl00_txtValue) I tried CSS3 as Minkiele suggessted but I've done the following: [...
stackexchange/codereview
is there any way to get list of variables that were defined in function, or list of all accessible variables in a function?
stackexchange/codereview
I need to get the strucure(field names and its datatypes) of a table ,that is in databaseA of serverA
stackexchange/codereview
I created an introscreen with "Press Enter to start the game",(and exit) ofcourse exit is no problem but to let the game start its a bit harder. Any advice?
stackexchange/codereview
I am working with a relatively large Canvas where various (complex) stuff is drawn to. I then want to save the Canvas' state, so I can quickly reset it to the state it now is at a later point. I use getImageData for this and store the data in a variable. I then draw some more stuff to the canvas and will later reset th...
stackexchange/codereview
def elementPath = "elementA.elementB" xml."${elementPath}".each {} How to make this work? xml.elementA.elementB.each {} works.
stackexchange/codereview
when i compile a JAXB schema the generated classes are decorated with generic Javadoc comments. is it somehow possible to suppress generating these comments?
stackexchange/codereview
So, I have an array that contains X objects, all named by dates and containing useless data beyond their name. I want to store these dates in an array for later use and objects are, apparently, not found in an array by array[i], so how do I iterate through the array and just save the names to a string in another array?...
stackexchange/codereview
libjingle's developer guide quite vaguely mentions incompatibilities between libjingle's implementation of Jingle and XEP-0166's specification. It also mentions it is incompatible with XEP-0167, XEP-0176 and XEP-0177. It never goes into detail what these differences are; in fact, it is unclear if perhaps these differe...
stackexchange/codereview
Is there a way to specify and OR condition? For example: Message.find(1, :condition => {"profile_id = ? OR sender_id = ?", 2, 2}) Ultimately, I want to check whether a user has sent or received a message, but if I do them separate I an exception is thrown when the record is not found for one of the cases.
stackexchange/codereview
In our use of BizTalk 2009 we do a lot of EDI transmissions. We often have third party groups, VANs, that supply AS2/EDI services to our partners. Because of this I have cases where two partners use the same AS2 settings, but have different EDI settings for each partner. Currently in these cases I have three parties. O...
stackexchange/codereview
So I created a couple of functions for my search autocomplete results (custom autocomplete) and while the results were static, the hover and click events worked fine... but now that the results are dynamically being generated, my divs no longer respond to their hover and click events. Is jQuery not seeing the divs anym...
stackexchange/codereview
I am currently writing various optimizations for some code. Each of theses optimizations has a big impact on the code efficiency (hopefully) but also on the source code. However I want to keep the possibility to enable and disable any of them for benchmarking purpose. I traditionally use the #ifdef OPTIM_X_ENABLE/#els...
stackexchange/codereview
I have started using WPF a short while back, and I'm in the progress of reading the book Pro WPF in C# 2008. Here they are using P/Invoke to "DmwApi.dll" to create Aero glass effect on windows, and they use the VistaBridge created by MS to create the new Task Dialog boxes. So basically what I'm curious about is if WPF...
stackexchange/codereview
When I run following code textblock is not changing. My guess is databinding is missing either in code or XMAL. XAML <Window.Resources> <ObjectDataProvider x:Key="PersonObj" ObjectType="{x:Type local:Person}" MethodName="GetFirstName" /> </Window.Resources> <Grid> <!--<TextBlock Margin="2...
stackexchange/codereview