instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Grammar by definition contains productions, example of very simple grammar: E -> E + E E -> n I want to implement Grammar class in c#, but I'm not sure how to store productions, for example how to make difference between terminal and non-terminal symbol. i was thinking about: struct Production { String Left; ...
stackexchange/codereview
Can I know how to deallocate COM server object forcefully from C# .NET if particular condion fails or the object is partially constructed? The problem is I am using that COM server using DCOM mechanism; in the worst case, when the object is not created fully and I am coming out of application since failure, the COM ob...
stackexchange/codereview
I'm working with Spring MVC. I have a controller which returns a new ModelAndView(new RedirectView(getSuccessView())). SuccessView is set as home.htm which is a virtual page that maps to WEB-INF/jsp/home.jsp. However I'm getting this error: No mapping found for HTTP request with URI [/Bikes_Spring/WEB-INF/jsp/home.h...
stackexchange/codereview
I'm trying to find the maximum value in the order property in this coredata object: #import <Foundation/Foundation.h> #import "Story.h" @class Story; @interface Sentence : NSManagedObject { } @property (nonatomic, retain) NSString *text; @property (nonatomic, retain) NSString *image; @property (non...
stackexchange/codereview
Does anyone have any idea how I can intercept the HTML of a page and stop it getting rendered back to the client? I've tried the following, in a controller method: var writer = new StringWriter(); var response = new HttpResponse(writer); var context = new HttpContext(existingContext.Request, response) { User = existing...
stackexchange/codereview
I have a rails application that uses the FreeagentCentral API to create new projects in FreeagentCentral when a new case is created in my application. Once the case has been created, I link to the created project in FreeagentCentral using the following link code: <%= link_to "#{image_tag('/images/icons/freeagent.png')}...
stackexchange/codereview
Here is how i am creating the zend db connection $DB = new Zend_Db_Adapter_Pdo_Mysql(array("host" => "localhost","username" => "root", "password" => "admin123", "dbname" => "user_management")); The problem i have is that in my model files mysql_query have been used to run queries. I want to pass the DB connection fr...
stackexchange/codereview
Working on some linux (Ubuntu) systems, running some in-house C and C++ apps (gcc). There is a long list of signals which are handled, such as SIGSEGV and SIGINT. On signal, the callstack is obtained using backtrace(3) and backgrace_symbols(3). For C++ the function names are even demangled with abi::__cxa_demangle()....
stackexchange/codereview
I'm doing iPhone programming and I need to learn about Core Graphics. It looks Apple doesn't provide a programming guide for Core Graphics and I'm having hard times following the code that uses Core Graphics. Do you suggest any reference or book for learning Core Graphics?
stackexchange/codereview
In my application am getting an xml file from server and in that i have some attributes for the element.i donno how to read the attributes can anyone help me please..
stackexchange/codereview
I have a search box that exists on all pages. The user can enter text, and click search and they end up on the Search page with the results displayed for them. When search is clicked, the form containing the textbox is sent off to the following route: http://localhost:2010/search/my%20search%20term this works. But if ...
stackexchange/codereview
I have an inline popup that shows a list of checkboxes and associated labels each in separate span element. I want to add a text box where user can type to filter the values (user names) in the popup. I have following code: $("#toEmpFilter").live("change", function () { var FilterVal = $(this).val(); ...
stackexchange/codereview
Is there a way to write a program to output ON/OFF/ON/OFF sequence to one of USB, RS-232, or Parallel port? The On probably will be 5V or is "close circuit", and Off will be 0V or is "open circuit". Can the frequency be very high? This can be achieve long time ago by using TTL chips and a "clock", and programming in ...
stackexchange/codereview
What does this error mean in VB6? Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic. I keep getting it when i call a particular method of a dll that comes with windows xp and beyond (in system32 called upnp.dll)
stackexchange/codereview
I've got this query so far: if(!empty($_SESSION['s_property_region'])) { $sqlWHERE .= " AND $wpdb->postmeta.meta_key = 'property_region' AND $wpdb->postmeta.meta_value = '".$_SESSION['s_property_region']."'"; } if(!empty($_SESSION['s_property_bedrooms'])) { $sqlWHERE .= " AND $wpdb->postmeta.meta_key = 'proper...
stackexchange/codereview
I have LinkedList Queue, and I'm trying to read a file with numbers of people in queue waiting to be helped and the number of agents available to help at the time. I do not know to check if they are busy or how to add the people waiting in the queue in the first place. Can anyone help me? This is the code I have so fa...
stackexchange/codereview
I have a readonly .NET property exposed from a managed wrapper which gets the name of the database, let's say the property name is DBName. The DBName may vary depending upon the database connected to the WPF application. This property getter and setter also resides inside the managed .NET wrapper. I am using this(DBN...
stackexchange/codereview
i have the following schema loaded into an xmlSchema : ... <xs:import schemaLocation="\_1.xsd" namespace="http://tempuri.org/" /> ... i want to retrive the string "_1.xsd" how do i reach the schemaLocation value from XmlSchema API ? will schemaSet work better ? Thanks
stackexchange/codereview
I have this error when building and running my project in xCode: RootViewController may not respond to -parseXMLFileAtURL: I'm attempting to develop the basic Apple RSS Reader from the tutorial at: http://gigaom.com/apple/tutorial-build-a-simple-rss-reader-for-iphone/ my section of code that this error is occurring in...
stackexchange/codereview
I am running a simple mysql full-text query that searches for users on my site based off of their "display name". The query example is below - in this example we are searching 'lancaster toy store': SELECT MATCH(`display_name`) AGAINST ('lancaster toy store') as `rel` WHERE MATCH(`display_name`) AGAINST ('lancaster toy...
stackexchange/codereview
I have two overlapping shapes in my C# app, defined by Point arrays. I need to find the points that define the shape where these two overlap. In this image, I know the red and green points, but I need the yellow points. Here is some dummy code that might help: Point[] GetIntersection(Point[] red, Point[] green) { ...
stackexchange/codereview
I noticed that messages sent to the pid of a gen_fsm process are matched in the state callbacks as events. Is this just accidental or can I rely on this feature? Normally I would expect general messages sent to a gen_fsm to show up in the handle_info/3 callback and thought I would have to re-send it using gen_fsm:send...
stackexchange/codereview
My Map activity crashes on launch. I have included all the permission and also tested on a new standalone map project where it worked perfectly well with the underlying code. Rather when I incorporate the same code in my application, it crashes as soon as this activity is invoked. I have a project submission tomorrow m...
stackexchange/codereview
I want to be able to take a LINQ statement like this. var User = from u in Users where u.UserID == 7 select u.UserName; And have it generate SQL like this. SELECT UserName FROM Users WHERE Users.UserID = 7 I know LINQ TO SQL does this but I don't want all that added xml mapping and generated code...
stackexchange/codereview
I tried to install it as below but it throws error :- "sudo gem install sqlite3-ruby" Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't ...
stackexchange/codereview
I've got a page that has a button control and several links to download files. The links for the file downloads point to a generic handler, since these files are secured and they will only be returned if the user is logged in. If I load the page and click the button without doing anything else it works fine, and the ev...
stackexchange/codereview
I am writing a C++-CLI library in VS 2008, it highlights only the keywords. I would like to have highlighting for CLR types and the types that I define as well. Tried Tools->Options->Environment->Fonts and Colors doesnt seem to work. Can someone let me know how to do it in VS without using any plugin (happy to use if t...
stackexchange/codereview
This is a non technical question. I am a Delphi developer so I have met many developers from the community , but only a few have said they know a programming IDE called Delphi and only a very very few know Delphi. I am very comfortable with Delphi and I always prefer Delphi for windows development(but I know many devel...
stackexchange/codereview
how to add a text box inside the silverlight data grid column header? so that i can use the text boxes for the filteration purpose?
stackexchange/codereview
The stored procedure mapped to a report query builder returns values dynamically mean to say once 8 columns and sometimes 6 columns. My question is how to name the header for the extra added columns?
stackexchange/codereview
Hey guys, I've been working on a Wordpress theme for a while now and all works fine when it's on my server, but when I load it up on my machine locally I am unable to utilise certain functionality, namely the ability to post from outside the admin panel. To do this I use XMLRPC and the following code - $params = array(...
stackexchange/codereview
Some lines's copy....: eclipse.buildId= java.version=1.6.0_18 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=tr_TR Framework arguments: -product org.eclipse.epp.package.pulsar.product Command-line arguments: -os win32 -ws win32 ...
stackexchange/codereview
I'm looking for a good Silverlight control collection to use them in my application. Can you recomend a good one? Not problem if it's not free. Thanks. l.
stackexchange/codereview
I am debugging a C program (GCC and GDB in Linux and Visual Studio in Windows) that gives different results on two different architectures. I'd like to compare execution on each architecture by tracing the changes to the values stored in variables in order to locate differences. file main.c, line 234. Variable A chang...
stackexchange/codereview
I would like to zoom in/out an image exactly where mouse click occurs. Whole image should be zoomed but current view should show the part where mouse click happened and scrollbar should be available for seeing other parts as well. I tried using scrollviewer and placed my image control inside it. On mouse click am using...
stackexchange/codereview
The numerical operations we do in our programs are limited by the number of bytes that a language specifies for a given datatype (or maybe hardware supports). Say I can use integer to do calculations on my paycheck (even "short" is more than enough for a year's earning!!! ;) ) but can't do the same with Bill Gates weal...
stackexchange/codereview
I'm using IceBreak to make HTML frontend for RPG programs. There is a function called 'SetMarker' which takes the name of the marker and the value: SetMarker('Demo':'Example'); This makes the value available for the HTML code: <!--#tag="MyTag"--> <p>This is a/an <%$ Demo %></p> When called by RPG: ResponseWriteTag('I...
stackexchange/codereview
I have used a rich textbox control,ckeditor in my case,When any formatting is done to the text the formatted text is populated in the datagrid.But I want to extract only the plain text in the grid and trim the length of data to 80 characters while populating. The query for updating the answer is as follows protect...
stackexchange/codereview
Is threre a possibility to get the clicked link ( -tag) below the mouseclick via qooxdoo or plain JS? Here you can see the problem: within a html-rendered table the link does not work. http://tinyurl.com/374gzwl
stackexchange/codereview
I have been reading up on the threaded model of programming versus the asynchronous model from this really good article. http://krondo.com/blog/?p=1209 However, the article mentions the following points. An async program will simply outperform a sync program by switching between tasks whenever there is a I/O. Threads ...
stackexchange/codereview
I have a C++ project builds with Scons. At first I have only the optimized version to compile, it works fine. Then I also need a debug version, then I add another environment for it. Here is the Scons code: env = Environment() opt = env.Clone(CCFLAGS=['-pthread', '-O3', '-Wall']) opt_objs = opt.Glob('src/*.cpp') pro...
stackexchange/codereview
I have a stateless EJB SessionBean with bith @local and @remote annotations. The code is working fine in weblogic server. However on deploying it to Websphere it gives following exception. bm.ejs.container.EJBConfigurationException: BUSINESS_INTERFACE_DESIGNATED_AS_BOTH_REMOTE_AND_LOCAL: 'oracle.odc.session.ODCSession'...
stackexchange/codereview
We are integrating documentation authored according to DITA. The DITA Open Toolkit processes all files using java whereas we are looking for a solution that allows us to work with the DITA content on the fly from a C#-based application. Does anyone know of any .NET projects that are written to work with DITA maps and c...
stackexchange/codereview
So I hadn't done any regexps for a while, so I thought I'd brush up on my memory. I'm trying to convert a string like a*b*c into a<b>b</b>c. I've already gotten that working, but now I want to keep a string like a\*b\*c from turning into a\<b>b\</b>c, but rather, into a*b*c. Here's the code I'm using now: $string ...
stackexchange/codereview
I'm relatively new to XSLT. I've come across an issue that I don't know how to get around. I have an pretty large XML document that I am trying to transform to into another smaller, refined XML document. The large XML document has this style: <Property> <name>Document name</name> <value>SomeValue</value> </P...
stackexchange/codereview
Having source like this: void foo() { func1(); if(qqq) { func2(); }; func3(); func4(); for(...) { func5(); } } I want to obtain info like this: void foo() { 5 ms; 2 times; func1(); 0 ms; 2 times; if(qqq) { 0 ms; 0 times; func2(); 0 ms; 2 times...
stackexchange/codereview
A simple question: Is this possible? Is it worth the time looking into it?
stackexchange/codereview
What is mean term "Read-only thread safety" Can anyone post some code example?
stackexchange/codereview
I'm running Windows 7 32 bit. I just installed Ruby 1.9.2 and Rails 3.0.1. I set up my rails sample application and everything seems to be working fine. I tried installing the restful_authentication plugin from github and it's been a nightmare. I'm executing the following command: rails plugin install -force git://gith...
stackexchange/codereview
I have the following init method in a gen_fsm callback module (my_fsm): init(Args) when length(Args) =:= 2 -> % do work with Args here {ok, my_state, InitialState}. There is no other init-method in the callback module. I want to write a unit test using eunit where I assert that calling gen_fsm with an argument-l...
stackexchange/codereview
I'm new in ASP.NET MVC so the question could appear 'stupid', sorry. I have a Partial View inside my Home view. The Partial View submit a form calling an Action Method inside the HomeController. It works fine with server validation, the problem is that after the post only the Partial View is rendered. How can I render ...
stackexchange/codereview
I'm looking for a solution to create an interface in runtime. I don't really know if this is possible in anyway. Problem: I've got a OSGi service which publishes a Map<String,String> where the key defines an action for this service. I want to publish this service directly as Hessianservice with spring but for this, I n...
stackexchange/codereview
I'm trying to validate an OpenSocial 0.7 signed request, using the sample Java code on that page. I think it should work this way, but I still get a signature_invalid error. Main validation code: // NOTE: req = HttpServletRequest // check for hyves if (!"hyves.nl".equals(req.getParameter("oauth_consumer_key"))) { ...
stackexchange/codereview
I have a bunch of service (ejb 3) classes that i want to unit test. In order to do so, i have added to their implementing classes an overloaded constructor which takes an EntityManager as an argument. The idea is that during my units tests i will create a both an EntityManager instance from a persistence unit specific ...
stackexchange/codereview
I am having troubles creating an installer package for a VB6 project. When I try to install the package created by the Package and Deployment Wizard there are errors when trying to copy and register some of the files (some files are in use, some say there is an error when trying to register). I would like to do awa...
stackexchange/codereview
I have this problem: I need too let user logged on my site to publish content(link, image, post, notes) on page of Facebook where they are admin. I've read some docs on Facebook developer section but I'm a little confused. I need to register an app with which I can give the opportunity to connect and publish. To let th...
stackexchange/codereview
This is a little wierd, but I want to check if connection to my database is already open or not? How do I check that? and if open I want to be able to work with it straightaway without going through all the statements: sqlconnection conn = new sqlconnection("string ..."); Can this be done? I know the connection string...
stackexchange/codereview
I am wanting to send data over the usb on the iphone and have it captured by my application. This application will be private and not sold. I would also like to just use the standard usb cable that is standard. Is this possible?
stackexchange/codereview
I have some problems with creating static libraries. Let say I have the static library A which I created and I included that to static library B with the relevant header files. I need to create a static library C which will be my final library and it it should include static library B which implicitly include the stat...
stackexchange/codereview
I have the following piece of code on C#, on an ASHX or Generic Handler file: public override void ProcessRequest(HttpContext contexto) { string destino = contexto.Request["destino"]; string variables = "?"; string valor = ""; foreach (string nombre in contexto.Request.QueryString) { if (...
stackexchange/codereview
I have a form with a couple of combo boxes. The first combobox adds items based on each row in an excel sheet. Public Sub FetchExcelValues(ByVal ControlType As String, ByVal control As Object, ByVal xlApp As Object, ByVal xlWorkBook As Object, ByVal xlWorkSheet As Object, ByVal column As String, ByVal row As Integer) ...
stackexchange/codereview
I need some code sample which shows how i can validate a xml file against a schema... Below is say my XML document.. "a.xml" January 21 1983 Say the schema against which i want to validate the above xml is as below named "XMLValidationSchema.xsd" Now can some one help me write the java code that w...
stackexchange/codereview
I'm working on a news slider based on the well-known jQuery Tool Scrollable. On the header of my site, I would like to create a new Query (only sticky posts with a maximum of 12 posts), display like this : <!-- 1-4 --> <div> <div>POST 1</div> <div>POST 2</div> <div>POST 3</div> <div>POST 4</div> </div> <!--...
stackexchange/codereview
Is it possible to use HTML5's video tag and connect it to an RMTP stream? Thanks.
stackexchange/codereview
I am reading a wav file saved as a byte stream from a web service and want to play it back when my record is displayed. Phone 7 app. My approach has been to save the byte stream to a wav file in isolated storage upon navigating to the record and subsequently set the source of my media player (MediaElement1) to that so...
stackexchange/codereview
I have a code which throws a specific type of exception like this: throw new BadDataException("error message"); these kind of exceptions are thrown inside a method whose response type is json. I have a configuration for this exception type like this: <global-exception-mappings> <exception-mapping result="badData...
stackexchange/codereview
For creating delegates on the fly, techniques vary from Delegate.CreateDelegate, to Expresion Lambda, DynamicMethod, etc. etc. All of these techniques require that you know the type of the delegate. I'm trying to convert closed delegates to open delegates generically, and to do to achieve this it seems I need to dynam...
stackexchange/codereview
I'm developing an Android application. Is there any way to show a message on a ListView only with it's empty? I'm using a custom ArrayAdapter, so I have to create a specific object with the text I want to show. I'm wondering if there is a specific field on ListView to setup a message when it's empty. Any advice? Thanks...
stackexchange/codereview
Is there any hack to provide two level sub directory controllers support ?
stackexchange/codereview
Greetings, Being new to jQuery's syntax, I find myself being a bit thrown off when writing up some code. So while I realize my issue is very likely a logic issue, I'm still have issues finding it because of the syntax that I'm not used to. I have a series of <li> tags that have an <input type="checkbox"> within each o...
stackexchange/codereview
How can I allow my servlet to accept 4 parameters via HTTP POST through a URL? Example of URL: http:///servlet The information returned will be in text format using the JSON format. JSONObject myStr = new JSONObject(); Am using Model-View-Controller access model. JSP are my view pages, Servlets are my controllers and ...
stackexchange/codereview
I have got as far as using ClientLogin to log in to the Google Account, I can retrieve a list of the calendar names for this user (using the example code on the Dev Guide). This is great. However, when I demand a list of events (again using Google's example code) only the events for the primary calendar are returned. I...
stackexchange/codereview
Hi I want to change the UIButton background color which user Tap on the button. I am showing background color using gradient, when user tap I need to change the gradient color. [btn setTitle: @"Next" forState:UIControlStateNormal]; CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = btn.b...
stackexchange/codereview
Possible Duplicate: mod_rewrite: what does this RewriteRule do? Hi, Sorry to bother you. What's the meaning of this rule ? RewriteRule ^.*$ - [NC,L] Thanks in advance. Bye
stackexchange/codereview
In my windows based applicaton, after login screen and registration page I added navigation controller for next two views. After pressing button present on second navigation window,again i want normal view controller and not navigation. But Its giving me navigation window with back button which takes me to second navi...
stackexchange/codereview
I am skinning a site with an ad, and I want to make the entire ad clickable. The ad takes up the entire background (body) as shown below body { background-attachment:scroll; background-color:#000000; background-image:url("http://gunshyassassin.com/wp-content/uploads/2010/10/gunshy_takeover2OUTNOW4.jpg"); background-pos...
stackexchange/codereview
first thing I want to know in between two algorithms which one is better select table1.* from tabel1 inner join table2 on table1.id = table2.table1_id; and then to extract or select * from table2; and then using foreach loop select * from table1 where table1.id = table2.table1_id *Please tell me a plausible reason also...
stackexchange/codereview
package A depends on package B-kmod and B-kmod has several variants. like B-kmod--{generic,pae-generic} etc. and in turn B-kmod depends on linux-image of the same flavor. i'd like A to have depends on B-kmod-$(uname -r). how to express this in control file?
stackexchange/codereview
Can anyone help... how to convert Image to Vectors (SVG) through Javascript.......! Any help will be awesome....!
stackexchange/codereview
I am having a nightmare trying to get this working (and have looked at other posts but am still having an issue). Basically I have a link like this: /test.php#bob on test.php I have this: <div class="accordion"> <h2>Customer care</h2> <div> <p>xxxxxxxxxxxxx</p> </div> <h2 id="bob">Strong leadership from start to...
stackexchange/codereview
How can I pass the parameters in web service using this request: POST /webservice/User.asmx HTTP/1.1 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://sample.com/UpdateUserBatch" <UpdateUserBatch xmlns="http://sample.com/"> <auth> <Username>string</Username> <Password>string</...
stackexchange/codereview
I've got this line: <%= button_to 'Post', newpost_path(:type => 'short_note') %> which outputs this: <form method="post" action="/posts/newpost?type=short_note" class="button-to"><div><input type="submit" value="Add" /></div></form>; But I need the output to have single quotes, not double. How can I do this? <form me...
stackexchange/codereview
I am using Nokogiri which works for small documents well. But for a 180KB HTML file I have to increase the process stack size, via ulimit -s, and the parsing and XPath queries take a long time. Are there faster methods available using a stock Ruby distribution? I am getting used to XPath, but the solution does not nece...
stackexchange/codereview
I want to print all prime numbers that are 2-digits long. Here is my code: for(int input = 11; input <= 99; input += 2){ for(int x = 2; x < (int)Math.sqrt(input) + 1; x++){ if(input%x != 0){ System.out.println(input); break; }else{ brea...
stackexchange/codereview
Disclaimer: I know the question of locking orientation has been asked, and solved. But that's only half my question. I'm building an iphone website for a small indie game developer. They want to be able to show off screenshots from some of their iphone games. This is somewhat of a problem though. All the screenshots ar...
stackexchange/codereview
In my MVC2 site if a user enters lt/gt signs in a password box an exception is thrown because of "potentially dangerous..". ValidateInput(false) on my controller solves it but for something so simple (not html passing) yet needs to be protected what is a better alternative? I've briefly looked at http://wpl.codeplex.co...
stackexchange/codereview
I am writing an application(for iPhone) that uses the UINavigationController to show different view via pushViewController. I am trying to push multiple UIViewController immediately upon application startup without user interaction. When an user open up the application, they will be looking on a screen with a navigatio...
stackexchange/codereview
Is it possible to set up a localhost server on Android so that a browser window can access the device's GPS coordinates? I'd like to be able to access the GPS coordinates in Javascript inside a browser window. Now I could simply send the GPS coords to the server and read from within the browser window by reading off th...
stackexchange/codereview
my code is like this ContentValues values = new ContentValues(); values.put(MediaStore.Audio.Media._ID, _ID); values.put(MediaStore.Audio.Media.DATA, DATA); values.put(MediaStore.Audio.Media.DISPLAY_NAME, DISPLAY_NAME); values.put(MediaStore.Audio.Media.SIZE, SIZE); values.put(MediaS...
stackexchange/codereview
I have Simple application. <Window x:Class="WpfControlReview.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.o...
stackexchange/codereview
I am writing a programming language text parser, out of curiosity. Say i want to define an immutable (at runtime) graph of tokens as vertices/nodes. These are naturally of different type - some tokens are keywords, some are identifiers, etc. However they all share the common trait where each token in the graph points t...
stackexchange/codereview
we are doing project currently on php and we want to use cassandra no sql database and is there is any API available like MYSQL,LAMP?
stackexchange/codereview
We have a large POSTGRESQL transactional database (around 70 million rows in all), and have previously created a data warehouse from this (updated daily) to run reports off of. To make this more flexible (as lots of different users require different reports and aren't very good at specifying what they want) we would li...
stackexchange/codereview
I have followed this tutorial which uses jQuery UI to generate Facebook tokens like: http://net.tutsplus.com/tutorials/javascript-ajax/how-to-use-the-jquery-ui-autocomplete-widget/ My problem is I need to pass two values thru JSON: the ID and the NAME. the server side script looks like this: header('Content-Type: text/...
stackexchange/codereview
Does anyone have any experience with this? For instance, consider Subversion, Git, or Mercurial, and a typical Windows Forms form. Whenever someone edits the form, for instance repositions a panel to have a different parent, sometimes the form designer code generator rearranges more code than just that panel. Does anyo...
stackexchange/codereview
I am trying to import this package (javax.servelet.*;) but netbeans is saying that the package does not exist. Does anyone know what might be the problem? Thx.
stackexchange/codereview
I am not deep in working with MongoDB. But i want to use it with C# driver. I guess that not all features can be available in this driver (Am i right?). Or for example, it easy to find some code written on javascript and, so, it seems easy to use it without mapping/finding appropriate methods in C# driver. I know that ...
stackexchange/codereview
My encoding is set to ISO-8859-1. I'm making an AJAX call using jQuery.ajax to a servlet. The URL (after it has been serialized by jQuery) ends up looking like this: https://myurl.com/countryAndProvinceCodeServlet?action=getProvinces&label=%C3%85land+Islands The actual label value is Åland Islands. When this comes to t...
stackexchange/codereview
I have included meta tags for Cache-control - no cache and Pragma no cache and Expires in my html page. But still i find the html pages in Temporary Internet Files folder on my system with expires timestamp. If i make another request to server after the timestamp expiration value, the page my browser is going to show i...
stackexchange/codereview
I looked through PredicateBuilder sources and its' implementation makes me curious. Let's look at Or method implementation: public static Expression<Func<T, bool>> Or<T> (this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2) { var invokedExpr ...
stackexchange/codereview