instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am receiving the following error when trying to price a 20x10 swap from a bootstrapped curve. The error get thrown on the last line of the ImpliedRate function SwapRatesServiceTests.ImpliedRate_ForTwenty_x_TenYearSwap_ReturnsRate: System.ApplicationException : 2nd leg: empty Handle cannot be dereferenced I don't...
stackexchange/codereview
I'm creating a script that will take users location from their ip. I saw this api.But know idea how i can get them in array and print them. Here is a sample link: http://ipinfodb.com/ip_query.php?ip=74.125.45.100&timezone=true This a sample respones <Response> <Ip>74.125.45.100</Ip> <Status>OK</Status> <CountryCode>US<...
stackexchange/codereview
is this possible to get all the variables and methods of a class at runtime? if yes then how? I did this in C# using Reflection. but now i am working in C++.
stackexchange/codereview
I'm facing an issue wherein my server expects datetime objects in GMT format and my UI application always creates and manipulates all datetime objects according to local culture.I cannot change the culture as there are other functionalities which need the datetime objects to be according to the local format. I have wri...
stackexchange/codereview
I have a list of tuples pairing two pieces of data... I'd like to bind the list to a data grid. For display, it works fine... but if I try and modify an entry, it says "A TwoWay or OneWayToSource binding cannot work on the read-only property 'Item1'"... presumably Tuples are immutable in .NET 4.0. Is there an easy wa...
stackexchange/codereview
In a grails project I have added a custom ivy resolver per the reference docs, http://www.grails.org/doc/latest/guide/single.html#12.2%20Plugin%20Repositories . However, this resolver requires jsch and and some other jars. How can I put them on the project's build classpath so that ivy will use them? This is my BuildC...
stackexchange/codereview
The below is my code for trying to clone the MovieClip and it doesn't work. We should see two cirles if the codes is working correctly. /*The original MovieClip*/ var circle:MovieClip = new MovieClip(); circle.graphics.beginFill(0xAA0022); circle.graphics.drawCircle(40, 40, 40); circle.x=10 addChild(circle); /*CLONE t...
stackexchange/codereview
while(GetExitCodeProcess(processInfo.hProcess, &exitCode) && exitCode == STILL_ACTIVE) { ReadFile(defaultSTDIN, chBuf, 1, &dwRead, 0); WriteFile(writingEnd, chBuf, 1, &dwWritten, 0); } The problem with the code above is that even when the child process referenced through processInfo.hProcess has exited...
stackexchange/codereview
I write a script for automated tests. I want that the IE runs without add-ons. It would be OK if set this after the start of it, but it is important that I can work with the IE. (I must can to grab it for my testing). I want start IE with following powershell-script: $ie = new-object -comobject InternetExplorer.Applica...
stackexchange/codereview
I've been tasked with writing a SP (Service Provider) for SAML v2.0 in ASP.NET, and I wonder the following; If a user logs in on the main SP for a service (where my SP becomes accessible for a user as an anchor/link, unless previously bookmarked), and then requests access to my SP, how should I handle their login? The...
stackexchange/codereview
I have a (testing) Drupal 6 site on a free web hosting platform, which unfortunately removed SMTP support for free hostings. Does any one know whether there's a way to give Drupal the ability to send emails on a site without SMTP server, e.g. via the public Gmail's SMTP server? can "sendmail" help in this case?
stackexchange/codereview
I've been going through the source to find out the critiera for jQuery.ajax()'s success/failure methods being called. It is not based solely on the status code, it seems to also involve the data type. I always resort to writing custom error handlers using the 'complete'-callback. Exactly which are the critera for the s...
stackexchange/codereview
How do I obtain the X & Y resolution of a Bitmap in DPI on the android platform? I'm expecting some api like 'GetXResInDPI()' like below : double getXResolution(Bitmap bmp) { double lXRes = Bmp.GetXResInDPI(); return lXRes; } I'm unable to obtain any such method for the android platform in spite of scourging th...
stackexchange/codereview
In selective repeat protocol, the window size must be less than or equal to half the size of the sequence number space for the SR protocol. Why is this so, and how?
stackexchange/codereview
My question is a little bit strange but I "need" to internal purpose update the $.ajax function. In the original jQuery code, there is: ajax: function( origSettings ) { // Some code function success() { // If a local callback was specified, fire it and pass it the data if ( s.success ) { ...
stackexchange/codereview
I'm trying to migrate an ASP.NET 2.0 app (WebForms) to ASP.NET 3.5. I've finally fixed a 500.19 IIS 7.5 error I was having. Now it will run, so long as I don't attempt to debug it. If I do attempt to debug it I get an error message. I've searched for help on this error and there's precious little out there. Here's...
stackexchange/codereview
has anyone been successful in running tests using FirefoxDriver on a linux distro ? If so, which distro are you using ? Are you using xvfb ? right now, I am thinking of simply using windows 2003 server, but it's a bit more expensive and I am more familiar with linux environment.
stackexchange/codereview
What exactly are the weak references that KiokuDB tutorial mentions? How do they differ from 'normal' references?
stackexchange/codereview
I'm using the bystat function from the Hmisc package in R. How can I extract attribute values and place them into variables. For example, I want to calculate mean and SD for variable aaf and put them in a dataframe or matrix. t <- with(d.aaf,bystats(y=aaf,plot_bid,fun=function(x) { c(Mean = round(mean(x),digits...
stackexchange/codereview
I'm trying to get my datepicker (jQuery UI Datepicker), which has one field for "check-in" and another for "check-out" to update the check-out date based on the minimum period (in seconds) pulled in via ajax when the user chooses a check-in date, but to also allow choices to be changed. For example I want to check-in o...
stackexchange/codereview
So i have a combobox as the CellEditingTemplate of a datagrid and selected item is bound to the datacontext of that row as expected, but i need the combobox to be populated from a ObservableCollection outside of the context of the datagrid from the ViewModel. How could i acheive this? Thanks
stackexchange/codereview
Possible Duplicate: SSRS multi-value parameter using a stored procedure How do you pass multi-valued parameters into a stored procedure in SSRS? Please provide an example query or steps.
stackexchange/codereview
I have the following code: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } ...
stackexchange/codereview
I got the following simple C++ code: #include <stdio.h> int main(void) { ::printf("\nHello,debugger!\n"); } And from WinDbg, I got the following disassembly code: SimpleDemo!main: 01111380 55 push ebp 01111381 8bec mov ebp,esp 01111383 81ecc0000000 sub esp,0C0h 01111389 53 ...
stackexchange/codereview
I am getting the following exception when deploying my application to Jboss 5.0.1 : org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "vfsfile:/opt/jboss-eap-5.0.1/server/xxxx/deploy/jbossweb.sar/jstl.jar": java.io.IOException: Permission denied I found the following ticket: https:/...
stackexchange/codereview
I have been trying to figure out regex myself and to no avail can I get the last bracket to disappear from a string. For example: [The Day the Earth Stood Still] I can only get: Day the Earth Stood Still] with the following RegEx code: /(\[|\](^The ))\2/ I'm aiming for just: Day the Earth Stood Still Any help would be...
stackexchange/codereview
I have a variable IEnumerable<IEnumerable<int>>. I'm trying to somehow aggregate it into an IEnumerable<int> which enumerates over all the integers in order. (All the integers from the first set, then all the integers from the second, etc.) I looked into LINQ's aggregate method, but the only examples I found was string...
stackexchange/codereview
Is there a way within asp.net MVC 2 whereby I can route a request and have a portion of the URL ignored and passed to the controller as a variable? My needs state that I must store pages dynamically in a database, and they should be accessible by looking at the URL and reading the URL segments to find the relevant page...
stackexchange/codereview
I'm trying to make buildout config that installs psycopg2 egg and postgres from source if needed: parts = ... postgre psycopg2 ... [postgre] recipe = hexagonit.recipe.cmmi url = ftp://ftp3.ua.postgresql.org/pub/mirrors/postgresql/source/v9.0.0/postgresql-9.0.0.tar.gz configure-options = --without-r...
stackexchange/codereview
I'm not highly familiar with javascript but I think this is the best way to accomplish my purpose. If not, please correct me. I have a licence text 2 buttons at the end. All of this is written in HTML in a WebView because there are some links in the licence. Now, I want that when the user clicks the "ok" button in th...
stackexchange/codereview
This may be a tough one for you all, if it is even possible in mysql. I have a table that stores id, catid, product_name What i would like to do is select 3 records for each catid then display the result with each 3 sets of records first. So if i have a catid of 4, 7 then I would like to display 3 results for (4) then ...
stackexchange/codereview
I've created a simple application and put it onto my device. I use a file browser to locate the APK, it installs successful and I can run it OK (when clicking "run" after install completes) However, if I then exit the application, I'm unable to see a launcher for it on my apps menu (where I would expect it, like other ...
stackexchange/codereview
I have a map of constants, like this: private static Map<String, Character> _typesMap = new HashMap<String, Character>() { { put ("string", 'S'); put ("normalizedString", 'N'); put ("token", 'T'); // (...) } Do I really need to use Collections.unm...
stackexchange/codereview
Under DDMS, there is a HEAP tab, and then I click my android application under 'Devices'. But it said: Heap updates are NOT ENABLED for this client How can I enable Heap update for my android application?
stackexchange/codereview
Hey php gurus. I'm running into some bizarre class scope problems that clearly have to do with some quirk in php. Can anyone tell me what out-of-the-ordinary situations might give the following error... Fatal error: Cannot access self:: when no class scope is active in MyClass.php on line 5 Now, obviously if I were t...
stackexchange/codereview
I am looking for a fiscal calendar class rather than having to roll my own. So far I haven’t had much luck in finding something that suits me. I am relatively new to the idea of a fiscal calendar and to programming for that matter. The dates that my company uses for its fiscal reporting are strange to me, I can’t seem ...
stackexchange/codereview
I have this HTML code: <html> <head> <script type="text/javascript"> function GetDoc(x) { return x.document || x.contentDocument || x.contentWindow.document; } function DoStuff() { var fr = document.all["myframe"]; while(fr.ariaBusy) { } ...
stackexchange/codereview
I am trying to create a generic class that handles ints, doubles, and strings. However, when trying to instantiate the template class with I get the following error message: error: 'double' is not a valid type for a template constant parameter The instantiation works completely fine with int types, as does the inter...
stackexchange/codereview
I have created a report using FastReport Designer and calling it using Delphi 6. But DataSet for the MasterData and the fields is not assinged at design time. I want to set these properties at runtime based on the selected DataSet. How can I do that? How can I access the DataSet of the MasterData in Delphi before calli...
stackexchange/codereview
I am trying to work out the best database(s) considering the following requirements: The bulk of the data is "document" style, with specific common fields that will be indexed. There needs to be joining across these indexed fields. However, the data in the indexes is heavily hierarchical, i.e., graph. A specific exampl...
stackexchange/codereview
following code is given: if (c2-c1==0) if ( c1 != c3 ) {...} How do I interpret this code? The first if-statement comes without {}. Is the code above equal to the following code?: if (c2-c1==0){ if ( c1 != c3 ) {...} }
stackexchange/codereview
I am trying to send json data from an HTML form back to php server via a POST method. Here is my code. It goes to fail block in callback function. Firebug console(ctrl+shift+J) displays no error. <script> function ADDLISITEM(form) { var options = form.txtInput.value; options = JSON.stringify(options); var url = "co...
stackexchange/codereview
Does anyone have any knowledge (preferably with links to make it official) about how/if Flash/Flex culls objects not in view, to stop them getting drawn when not needed? A specific cases: I have an 800x600 panel (a Canvas or Sprite, or other container) containing loads of Sprites representing individual game objects li...
stackexchange/codereview
This leads to a StaleStateException exception: var entity = Session.Load(id); Session.Evict(entity); entity.SomePropert = "Something"; entity.Version = Version--; Session.SaveOrUpdate(entity); // Throws Exception This however does not throw an exception. Also no row is updated. var entity = Session.Load(id); entity.So...
stackexchange/codereview
I understand that they are not supposed to be changed, this is somewhat of a schema migration and only a one-time thing. I would like to change the key names of entities in my Google App Engine application, effectively deleting and re-crating an entity and updating all references to it. What is the best way to do this?...
stackexchange/codereview
is there a quick way to tell the number of methods in an interface/class in VS2008? using Resharper? Using NDepend?
stackexchange/codereview
Is there any way to get all registered service type and implementation type in windsor container
stackexchange/codereview
The following RewriteRule redirects every request to bootstrap.php except the filextenstions between the parentheses RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css|pdf|doc|txt|htm|html|xml|ttf|flv|swf|xml|ics|htc)$ bootstrap.php Is it possible to exclude ALL files witouth declaring them like above? So all...
stackexchange/codereview
I'm using libjpeg (C/C++ programming on Windows Mobile 6.5), in order to decode images from an IP camera (sent in a MJPEG stream), before pushing them into a DirectShow graph. Until now, I've been using a single function for : receiving the stream, parsing it manually (in order to find JPEG data starting- and end-point...
stackexchange/codereview
I am implementing an in app purchase subscription model. Let's say I have an iPhone 3 user which starts the whole purchase process from my application and then exits the application only to continue and fill his app store credentials outside of my app until he is done with the purchase. How can my app know that the tra...
stackexchange/codereview
I have a form that uses a jQTools overlay and jQuery .ajax submission routine. I would like the overlay to close once the success/error message has been displayed. How would I incorporate a setTimeout into this (only after success/error msg has been displayed) the ID of the overlay is "#overlayForm" $.ajax({ ...
stackexchange/codereview
What is Container.DataItem exactly?
stackexchange/codereview
I have the following Delphi code: var Stream: TMemoryStream; StreamI: TStreamAdapter; OleStream: IStream; begin Stream:= TMemoryStream.Create; Stream.LoadFromFile(filename); StreamI:= TStreamAdapter.Create(Stream, soOwned); VSPDFViewer1.LoadStream(StreamI as IStream, ''); end; Which actually passes an IStream ...
stackexchange/codereview
I'm trying to generate a list of available reports from an SSRS 2008 installation, using code as below: ReportingService2005 rs = new ReportingService2005(); rs.UseDefaultCredentials = true; CatalogItem[] items = rs.ListChildren("/", true); foreach(CatalogItem ci in items) { if (ddlReport.Type == ItemTypeEnum.Repo...
stackexchange/codereview
I need help to add childs to canvas. I want to add childs to canvas in top-down direction and left-right direction? I'm using the addChild function but I don't want to calculate the X and the Y for each Item. is there a way to do that?
stackexchange/codereview
Before I rewrite an app I figured it's best to ask this question first. With sqlite, is it possible to do a between statement like this? select * from database where date between '2010-10-01' and '2010-10-31' As a side question, how do I get the last date of a month in javascript using the above format?
stackexchange/codereview
I was interested in comparing ruby speed vs python so I took the simplest recursive calculation, namely print the fibonacci sequance. This is the python code #!/usr/bin/python2.7 def fib(n): if n == 0: return 0 elif n == 1: return 1 else: return fib(n-1)+fib(...
stackexchange/codereview
I'm just trying to get the link to point to "user/1/post/1". I've tried using the link_to with and without the :method key and got the same results. ActionController::RoutingError in Posts#index Showing /home/test/rails_apps/test_app/app/views/posts/index.html.erb where line #22 raised: No route matches {:action=>"d...
stackexchange/codereview
In which kind of application is Tkinter usually used? I'm doing a project in Python in which I'm using it for the first time to build a simple user interface. I was wondering if this is widely used for specific applications, or mobile applications.. etc
stackexchange/codereview
While attempting to send a message for a queue through the BeginSend call seem te behave as a blocking call. Specificly I have: public void Send(MyMessage message) { lock(SEND_LOCK){ var state = ... try { log.Info("Begin Sending..."); socket.BeginSend(message.AsBytes(),0, message.ByteLength, Socke...
stackexchange/codereview
I am calling a function which takes the same form as string.format where the first parameter is a string and the remainder are the replacement values. I have the string in a variable and the replacement values in an array, how can I call this function given any number of objects in the array? Simply passing in the ar...
stackexchange/codereview
I have a stanalone application with a main class which used to run a windows BAT file ,the BAT file which invoke another java class(B),the class B refer so many JARs and configuration files which i configured through "build Path" Now I want to refer the JARs and configuration files in BAT file.How I write the BAT file....
stackexchange/codereview
As Here on the link is a nice docking application but I need something like Mac OSX dock, It Docks at a side without taking the screen, and when we need it it's there. Please tell me docking solution that does not take up the screen space.
stackexchange/codereview
Possible Duplicate: C++ concatenate string and int Hi, In C# I can write like this: int i = 0; string text = "out.jpg"; while(true) { i++; Object.write(i+text, stream); } But this is not true for C++. the problem is at: i + default. How could I fix this in C++? Thanks in advance. Your help is much appreci...
stackexchange/codereview
I have some xml in which a specific element, let's call it dave might either be: <dave>A Normal Value</dave> or <dave><![CDATA[A CData Value!]]></dave> When I'm parsing it I would like to be able to test whether the retrieved value is CDATA or not. How would I do this?
stackexchange/codereview
i have an accordion with accordion content height 280px. Inside i have a sortable list connecting with another that sits outside the accordion (right). When the contents of the accordion is more than 280px displays the scroll down. So far so good. The problem is when scroll is displayed when i start drag an element fro...
stackexchange/codereview
Apparently this is almost a duplicate of "Bad pipe filedescriptor when reading from stdin in python - Stack Overflow"; however, I believe this case is slightly more complicated (and it is not Windows specific, as the conclusion of that thread was). I'm currently trying to experiment with a simple script in Python: I'd...
stackexchange/codereview
I'm struggling with the following problem: What's the correct HTML (and/or Rails) code for a button that resides within a form, and that should lead to a new page, but should not submit anything (from the form)? Basically, the button should work exactly like a hyperlink. Thanks for your help! Tom
stackexchange/codereview
I have added zip file to resources. How can I get that path?
stackexchange/codereview
Certain event needs to happen before the end of the year when it's 10 years since the previous event. I'm issuing a query like this to calculate the deadline: SELECT :previous_date AS previous_date, ADD_MONTHS( TO_DATE( EXTRACT( YEAR FROM TO_DATE(:previous_date, 'YYYY-MM-DD H...
stackexchange/codereview
I am facing a problem. I maintain a session after login like session["UserID"] and every page is locked with this session like if(session["UserID"] == "") { Response.redirect("./loginpage.aspx"); } else { // page working code } Problem is that i am saving the data then redirect the page after saving session was auto...
stackexchange/codereview
Table structure: +-------------+----------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+----------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | total | int(11) | YES | ...
stackexchange/codereview
i have 2 classes(a form class and a user-control class) and in the form one i have a list. I would like to access that list from the user control class. How can i do it ? i could pass a reference from the form class to the user control class , but i am curious if there is another way ? Regards, Alexandru Badescu
stackexchange/codereview
I'm wondering if I can use outlook express to create .MSG files using Visual Studio Express
stackexchange/codereview
My webservers use the usual Java I/O with thread per connection mechanism. Nowadays, they are getting on their knees with increased user (long polling connection). However, the connections are mostly idle. While this can be solved by adding more webservers, I have been trying to do some research on the NIO implementati...
stackexchange/codereview
I'm trying to get a Trac install working on a Centos box. I have installed Trac (v 0.12.1) and tracmercurial plugin (http://trac.edgewall.org/wiki/TracMercurial) rev #@9946. So far everything seems to be working fine EXCEPT when i go to the login page. I constantly get the error "Authentication information not availab...
stackexchange/codereview
I am trying to figure out a way to count a words in a particular string that contains html. Example String: <p>Hello World</p> Is there a way in Ruby to count the words in between the p tags? Or any tag for that matter? Examples: <p>Hello World</p> <h2>Hello World</h2> <li>Hello World</li> Thanks in advance! Edit (he...
stackexchange/codereview
What is the best way to convert a row with columns to a list with rows? In the list, I need one column with the old column name and one column with the old column value. For Example: Current: PersonId | PersonFirstName | PersonLastName | Need: ColumnName | ColumnValue Hope this makes sense. Thanks for any help.
stackexchange/codereview
I have several copies of same ".so" file under different system directory. Can I set link path in my php scripts so that i can link to a certain ".so'?
stackexchange/codereview
I have the following graph my %connections=(36=>[31,22],31=>[30],30=>[20],22=>[20,8],20=>[1],8=>[5],5=>[2],2=>[1,20]); Is there any existing algorithm that let us find node with only outgoing edges and only incoming edges. Hence given the above graph, it would yield: $node_only_incoming_edge = [36]; $node_only_outgoin...
stackexchange/codereview
I'm developing an application in Flex 3.5 for video tutorials, which uses a lot of Captivate 4 (AS3) videos (>200). In the front end, the user can navigate thorough the videos in a menu structure. In the administration part, the admins can upload more videos and organize them into the menu structure. Since we have more...
stackexchange/codereview
Where does Chrome save the Home or Start page URL? I want to access it programmatically using C#.
stackexchange/codereview
I need to sort associative array by JS for one of my projects. I found this function, that works great in firefox, but unfortunately it doesnt work in IE8, OPERA, CHROME... Cant find the way to make it work in other browsers, or find another function that would fit the purpose. I really appreciate any help. function so...
stackexchange/codereview
I would like to join more than three tables in Rails 3. My code is class offer < ActiveRecord::Base belongs_to :user has_many :usercomments, :dependent => :destroy has_many :comments, :through => :usercomments, :dependent => :destroy end class User < ActiveRecord::Base has_many :usercomments, :dependent =>...
stackexchange/codereview
I'm trying to do some simple JSON manipulation on the Windows Phone 7. JSON.NET looks great, but VS2010 complains when I try to add a reference to it. It let me add the Silverlight dll, but warned me that it could result in weird app behavior, so I'm skeptical that it would actually work. This looks like a fine way to ...
stackexchange/codereview
Given GMan's deliciously evil auto_cast utility function concocted here, I've been trying to figure out why it doesn't compile for me when I'm trying to auto_cast from an rvalue (on MSVC 10.0). Here's the code that I'm using: template <typename T> class auto_cast_wrapper : boost::noncopyable { public: template <t...
stackexchange/codereview
I have a hosting account which provides me a folder to publish my files for my domain (say www.example.com). I have set up Drupal for www.example.com with .htaccess at the top folder to enable clean-urls for the Drupal installation. Now I want to have a Wordpress installation under www.example.com/blog/ and have clean ...
stackexchange/codereview
I have an asp.net site. Its a mixture of web forms and MVC2. I have this on 2 different servers which I get to via different urls. On one server authentication works fine via all browsers (IE 8, FF 3.6, Chrome) On the other IE 8 fails, it doesn't send back the cookie on the request to the page after authenticating. U...
stackexchange/codereview
I'm using some code related to RTSP, RTP to listen to various RTSP Streams Using FFMPEG, it works! BUT The noise is being decoded in such a way that every 10 seconds a glitch in the ASF decoding of the stream occurs, where the Volume Peaks and makes a loud Popping sound. Generally the sound you hear when a packet is co...
stackexchange/codereview
I have a button in my html form and need to change it's background image when it is clicked using css. it works perfect in FF but it seems that IE doesnt support :active state. Here is my code: HTML: <button class='button'>Click Me</button> CSS: .button { width: 118px; height: 33px; background: url(/im...
stackexchange/codereview
I have troubles with mysql gem installation. I performed this in my terminal: (I am using Mac OS X Snow Leopard) sudo env ARCHFLAGS="-arch i386" gem install mysql -- \ --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \ --with-mysql-include=/usr/local/mysql/include Password: Building native e...
stackexchange/codereview
I'm trying to create ANTLR parser for Lua. So i took grammar produced by Nicolai Mainero(available at ANTLR's site, Lua 5.1 grammar) and begin to work. Grammar is good. One thing not working: LONG STRINGS. Lua specification rule: Literal strings can also be defined using a long format enclosed by long brackets. W...
stackexchange/codereview
I have a JavaScript singleton object created with closure method: /** * This is the singleton. * * @namespace window.Something.Singleton */ window.Something.Singleton = (function() { /** * Foo method. * * @return {String} this method always returns with <code>bar</code> */ function _foo() { return "...
stackexchange/codereview
this is continued from another question i asked: Listing out JSON data? my search only returns 1 item, im pretty sure the problem lies somewhere in my php, im not too sure if im adding to the array properly, or it could be the javascript wich you can see on the above link, but i doubt it. my php code: function mytheme...
stackexchange/codereview
I am trying to run a code but I get $.uniform is undefined [Break on this error] $.uniform.restore("#f_variedbyoperator"); How can I use jQuery, to detect if .uniform has been defined? And to signup the code to run after that.
stackexchange/codereview
I have come across some methods of centering a div within a div, but those usually requires the element to be centered to have a fixed width and height. Is there a way to do it if the inner div to be centered will be of variable width and height (example: centering an image inside a frame of a fixed size, and the image...
stackexchange/codereview
I have some javascript that looks like this: $('.resultitem').click(function(event){ alert('check this gets called'); location.href='viewinfo/'+$(this).attr('rel'); }); this code works fine on my local machine but after uploading to the server it doesn't seem to get called at all. Can a...
stackexchange/codereview
I am trying to use a partial view editor template in my application using the Html.EditorFor method in my view. If the editor template is directly in the Views/Shared/EditorTemplates directory of my application, it works great. If the editor template in the Views/Shared/EditorTemplates directory of the portable area ...
stackexchange/codereview
Here is the C# code I'm using to launch a subprocess and monitor its output: using (process = new Process()) { process.StartInfo.FileName = executable; process.StartInfo.Arguments = args; process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.Re...
stackexchange/codereview
So, I was thinking about making a simple random world generator. This generator would create a starting "cell" that would have between one and four random exits (in the cardinal directions, something like a maze). After deciding those exits, I would generate a new random "cell" at each of those exits, and repeat whenev...
stackexchange/codereview