instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am developing one web application using CakePHP , I will be providing one button to user as "Upload ". Once user clicks on this button, I wanted to display dialogue box(browse file) so that user can choose file which would be located on his/her local machine. Once successful uploading file I wanted to post file's dat...
stackexchange/codereview
How can I make grep to ignore some files (e.g. .svn directories, binary files, etc.) while grepping recursively?
stackexchange/codereview
I have a python package previously installed via apt(by default). Now I want to install new version and compile it manually from the sources with all the required modules. How can I do that? I suppose that apt-get purge python And then install from sources is not possible because python have lots of dependencies and ...
stackexchange/codereview
Following the javadocs, I have tried to scale a BufferedImage without success here is my code: BufferedImage image = MatrixToImageWriter.getBufferedImage(encoded); Graphics2D grph = image.createGraphics(); grph.scale(2.0, 2.0); grph.dispose(); I can't understand why it is not working, any help?
stackexchange/codereview
I want to have a naviagtion bar that is at least the double height. In didFinishLaunchingWithOptions in my appdelegate.m file, I've added CGRect frame = CGRectMake(0.0f, 0.0f, 320.0f, 100.f); [self.navigationController.navigationBar setFrame:frame]; But when I run the app the top part of the table view is behind th...
stackexchange/codereview
My array : $arr = array("jan","feb","mar","apr","mei","jun","jul","agu","sep","okt","nov","des"); then i do a foreach foreach($arr as $ar){ echo $ar; } that will output jan to des my question is how do i display the previous values in current key? For example, when I get to feb, I want to display jan too, when I g...
stackexchange/codereview
I need to intentionally create a non-aligned numpy array. In particular, I want PyArray_ISALIGNED(array) to return false. What causes numpy arrays not to be aligned, and how can I easily, manually trigger those conditions?
stackexchange/codereview
i declare a variable in one class and want to use that variable in the same class but i want to put data into the variable in a different class. How can i fill a variable from another class? EDIT: I have this in one class: NSManagedObject *managedObject = [self.fetchedResultsController objectAtIndexPath:indexPath]; NSS...
stackexchange/codereview
I have a third party application that loads many css and javascript files, and I now want to optimize this by concatinating all the javascripts into one file, compressed by the yuicompressor, but ... when we have a mix like: <script type="text/javascript" src="script1.js"></script> <script type="text/javascript" src="s...
stackexchange/codereview
Given the following ANSI C code, I wonder about the results: main() { int a = 19.4 / 9.7; // result = 2 float b = (int) 19.4 / (int) 9.7 // result = 2.000000, why? float c = (int) 9.7; // result = 9 } I understood that C will cut off all decimal places on the conversion to int but my ...
stackexchange/codereview
I am producing an XML file in my unit test using Public Sub rssParserTest Dim Const rssUri as String = "rssTestFile.xml" Dim xmlFile = <rss version="2.0"> ... </rss> xmlFile.save(rssUri) rssParser(rssUri) End Sub and consuming the uri with an XMLTextReader Public Sub rssParser(ByVal rss...
stackexchange/codereview
I have created a method in my java assignment to write into a file from a LinkedList (I used serialization) , then I have created another method to read the file into the inkedList. The following is my method's body: try { FileInputStream fin = new FileInputStream("c:\\Info.ser"); ObjectInputStream ois = new Ob...
stackexchange/codereview
The following code will draw an ellipse on an image and fill that ellipse with the Tomato colour string imageWithTransEllipsePathToSaveTo = "~/Images/imageTest.png"; Graphics g = Graphics.FromImage(sourceImage); g.FillEllipse(Brushes.Tomato, 50, 50, 200, 200); sourceImage.Save(Server.MapPath(imageWithTransEllipsePath...
stackexchange/codereview
I have the following database structure: Children --> Gifts <-- Possible_gifts, where the arrow denotes 1-to-many relationship, i.e. "Each child can have many gifts and each one of those gifts is one of the Possible_gifts." (forming the classical many-to-many relationship). Possible_gifts table includes (among other th...
stackexchange/codereview
I have read that it is better to select using "id" than "class" with jquery. However, say i have several divs on a page that i need to select with jquery and perform the same manipulation. I cannot select with the "id" attribute because it would nolonger be unique. eg: <div id="selectMeOnClick"> ... </div> <div id=...
stackexchange/codereview
Hallo, this scenario happens to me often: I try to check in with svn commit, but for some reason the commit fails (because of conflict, locked files or whatnot). My commit message gets stored in svn-commit.tmp. I fix the problem and try to check in again. I now have to enter the commit message from scratch. Wouldn't it...
stackexchange/codereview
What is the best way to convert a Delphi XE AnsiString containing escaped combining diacritical marks like "Fu\u0308rst" into a frienly WideString "Fürst"? I am aware of the fact that this is not always possible for all combinations, but the common Latin blocks should be supported without building silly conversion tab...
stackexchange/codereview
in my Home Screen i have set one image as background, And set Three Image Button on That Background Image at Bottom of layout. it(Three Image Button) seems perfect in 480x854 screen Device but not in 240x320 Screen size of device. My XML Layout That I use is: <?xml version="1.0" encoding="UTF-8"?> <FrameLayout xmln...
stackexchange/codereview
I am writing a program in the D that uses svn and I came across something I can not figure out how to convert into D syntax. I took a stab at it but it segfaults. Example of what I am trying to accomplish in C: svn_auth_provider_object_t provider; providers = apr_array_make(pool, 1, sizeof(svn_auth_provider_object_t*))...
stackexchange/codereview
How would I add a custom submit function to a form to prevent it's normal action but so that it only runs after being validated by the jQuery Validation plugin?
stackexchange/codereview
I'm using struts. My ActionForm has an ArrayList set up within it, how can I access the array from the JSP that the ActionForm is sent to by the controller in jQuery on a button click. This is so I can loop through the elements of that array. I guess its something like this, but that is a stab in the dark (which isn't ...
stackexchange/codereview
I'm implementing drag and drop QTreeView based on my custom model. All works fine, my tree displays data, drag and drop is enabled and now the last step lies ahead of me - to drop and trasfer dragged data. To do this I need to implement mimeTypes, mimeData and dropMimeData methods in my model. And now my question: Is t...
stackexchange/codereview
Im trying to render PDF pages to images on a background thread, is there a thread safe way of generating an image from a pdfContext/context that doesn't not use: UIGraphicsGetImageFromCurrentImageContext
stackexchange/codereview
How can I use the NativeProcess API in Adobe AIR 2.0 to do CLI in Windows like passing the following commands to cmd.exe cd C:\FestivalTTS echo "Hello world" | festival --tts The problem is unlike grep or any unlike similar command, Festival opens its own shell and blocks cmd.exe prompt
stackexchange/codereview
I'm getting seeming random crashes (though they always happen at the same time) on the Android 1.5 Emulator (running under OS X). Code is built against 1.5 APIs and runs fine on other versions. App doing the same on an HTC Hero so it appears to be an Android issue rather than just an emulator issue. By random I mean a ...
stackexchange/codereview
I am using a stored procedure wich contains 6 select queries and I am executing this stored procedure from C#. I am getting the tables in dataset of only first 3 queries. i.e. the data is retrieved from first 3 queries I used. The dataset contains only 3 tables. I am unable to understand what's wrong or whether executi...
stackexchange/codereview
I am trying to create a Managed DirectX 9 Device in a DLL and then use that DLL to render scenes to an offscreen surface. I know how to do the offscreen rendering, but my question is: Is it possible to create a directx device inside a DLL? Feeble attempt #1 (InvalidCallException): Device device = new Device(0, Device...
stackexchange/codereview
So, here's the situation: a rails app with two idioms, one where users use the format 5,000.40 for writing numbers (standard english), and the other 5.000,40. Now the question is, how do I deal with this? I'm using the i18n helpers for dealing with output, but I don't know how to process these numbers in my rails contr...
stackexchange/codereview
I am using jQuery plugin autocomplete in web application and i pass simple json data to the autocomplete. When i pass data this way, by the variable words. Autocomlete works fine. var words = ["benzina","best","benátská noc","bez realitky","beroun","bershka","bernard","beskydy","belgie","berlin"]; $(document).ready(fu...
stackexchange/codereview
I have made a particle generator with Jquery it works fine but it is kinda a CPU hog. Any suggestions are appreciated. function particles() { $.each($('.particles'), function () { if ($(this).css("opacity") == 0) { $(this).remove(); } }); var particleSize = Math.floor(Math.random() * 4 + 1); var spee...
stackexchange/codereview
The application is compiled with -O0 -g -pg and gprof is run with its default settings.
stackexchange/codereview
In my database I have a "willingness" field with a value like: sports,pub,drink,drive,smile etc. When do this in my template: <? echo '<p>'.$willingness.'</p>'; ?> I get a string: sports,pub,drink,drive,smile How can I break this into words like: sports, pub, drink, drive, smile? Thank you!
stackexchange/codereview
I have the following: $(document).ready(function() { $("#select-all-teammembers").click(function() { $("input[name=recipients\\[\\]]").attr('checked', true); }); }); I'd like the id="select-all-teammembers" when clicked to toggle between checked and unchecked. Ideas? that aren't dozens...
stackexchange/codereview
#include<iostream> class Hanoi { public: Hanoi(); void solve(int, char, char, char); }; Hanoi :: Hanoi() { } void Hanoi :: solve(int n, char from, char use, char to) { if (n > 0) { solve(n-1, from, use, to); cout << "Move disk " << n << " from " << from << " to " << to << endl; solve(n-1, use, to, ...
stackexchange/codereview
Sometimes I feel I can't write a simple line of code without using an IDE (VS, NetBeans, etc.), even when I write something in Notepad or MS Word I always forget and press Ctrl+Space to use AutoComplete. I can't remember a lot of libraries names and functions and Exceptions in the languages I am using due to the IDE's ...
stackexchange/codereview
I am trying to find all <h2> tags the split them and join them with <a href=''></a> around them. I am so close but stuck. <script type="application/javascript"> $(document).ready(function() { // finds all h2's within wrapper div grabs the text splits at ? and applies a links around each one var al = $('#wrapper').fin...
stackexchange/codereview
the lists are for "Categories" and "Sub-Categories" i want if the user select the first category then the second list will display all the sub-categories that related to the selected category, am using PHP and MySQL, this is my fisrt list code: <?php require("connect.php"); $extract = mysql_query("SELECT * FROM ca...
stackexchange/codereview
I have a C# Winforms program that opens an excel document with the code below. It works great but what I can not figure out how to do, is to turn off ALL menu's and toolbars. The excel version I am using right now is 2003... But I will be upgrading to 2010 in the near future. Any ideas? //top of source... using Excel =...
stackexchange/codereview
I want to build a plugin for an application(TeamSpeak), however I have no lua knowledge. Is it possible to somehow wrap or bridge my Obj-C knowledge to lua? If needed I could learn the basic syntax of lua to get my plugin started, but ultimately I want the meat of the program in Obj-C. Any advice appreciated!
stackexchange/codereview
How to use a layout as empty view for a listview when the adapter has zero elements? setEmptyView is not working with this code : public class ZeroItemListActivity extends Activity { private ArrayList<String> listItems=new ArrayList<String>(); private ListView mMyListView; /** Called when the activity is f...
stackexchange/codereview
i am trying to use the old facebook connect authentication to authenticate my android client to get the necessary session id's and other credentials thats needed to start using the web service of facebook. the issue i am having is that when my android application launces and tries to load the login page for facebook, t...
stackexchange/codereview
Odd one this. I've got a servlet application running under Tomcat with Axis2. The application also exposes a web service (via Axis2). Now then, Tomcat handles session management no problem, as per usual, however, when the web service is invoked, randomly, all sessions appear to be invalidated. Plus, afaik, this only...
stackexchange/codereview
I am trying to increment a form field ID so they are all different when i click on the plus to create a new row of input fields. Here is my code so far //Order Form $("#add").click(function() { $('#ordertable tbody>tr:last').clone(true).insertAfter('#ordertable tbody>tr:last'); $('#ordertable tbody>...
stackexchange/codereview
Is it possible to RUN 2 different C programs(ie 2 main()), stored in Flash(micro controller), one at a time? I have a bootloader code which is a separate program and resides in separate protected section of ROM. Then I have my application program which resides in separate ROM section. Although, residing in memory is no...
stackexchange/codereview
I just tried out the latest LLVM and Clang trunk versions. They compiled without a single warning out of the box, but I'm having trouble linking a Hello, World! example. My code is #include <stdio.h> int main(){ printf("Hello, World!\n"); } If I compile using clang test.c I get the following error /usr/bin/ld: crt...
stackexchange/codereview
hi guys I have a variable as a single. how can I found out that, what is the value of second byte of my variable. or what is the value of third byte of my variable value in memory.? in c language we use at like this *(char(&x)+1) which method do the same thing in vb.net thnx
stackexchange/codereview
In my JSF 2.0 project i have 2 classes: public class driver { private String name = "Mr Taxi"; public String getName { return name; } } ... import driver; public class CarBean { private Driver driver; private String anotherProperty; public String getAnotherPropert...
stackexchange/codereview
Has anyone tried to use jQuery templates (or any other JavaScript based templating) on the server side with something like env.js? I'm considering attempting it to see what benefits could be gained by being able to render identical templates on either the client or server side of a web application, but I was hoping som...
stackexchange/codereview
I don't know if I'm doing this right, c++ is not a native language for me. QMap < QString, QString > *mapArray; QMap < QString, QString > map[10]; mapArray = map; mapArray[0].insert("key1", "value1"); mapArray[0].insert("key1-1", "value1-1"); mapArray[1].insert("key2", "value2"); mapArray[2].insert("key3", "value3")...
stackexchange/codereview
Having this problem that needs to be adressed unfortunately.... I am adding a custom UIButton to my UITableView Cell when it is selected however as I scroll down into the TableView I find that multiple cells are getting the buttons attached: Here is my code: http://pastie.org/1309795 What am I doing wrong?!
stackexchange/codereview
I have been importing my raw IIS log files into a SQL Server table using the Log Parser tool for several months now. This is done to enable the writing of SSRS reports based on this log data. One of the reports that I am working on is supposed to determine the number of Visits from each unique IP address. A Visit is de...
stackexchange/codereview
I've had a report from the client who had issues printing (my) charts in WPF with a large number of data points. On the screen everything is visible. Here's a screenshot But when he prints it the part of the graph disappears in a pretty strange way. Here's a screenshot from printed PDF (same thing happens with actual ...
stackexchange/codereview
I made a merge sort function: void mergeSort(int emotionCount[], int low, int high){ int i=0,k=0; //I did this to see the value inside the array, and I always got a garbage value //when i=0, and the first correct value when i=1. I made a for loop here to //see the values in the array in debugging mode...
stackexchange/codereview
I am trying to document some rake tasks I've written using RDoc comments in my class and am running into trouble representing square brackets. I want to add some examples of how to run my rake tasks with parameters and so have an rdoc line like so: # eg. rake build[MyProject] The problem is that the RDoc parser conver...
stackexchange/codereview
I am looking at a menu option on the all commands tab of a TdxBarMananger. Is there a quick way to find where on the menu the current command is? At present I have to open the dfm file and search for the command name.
stackexchange/codereview
I'm using Spring Security 3.04 to authenticate the users of my system using 3 Roles, while all of them are allowed to access something like a landing page. From this landing page, there should be another system which can only be accessed by one Role and by a TAN-authenticated user. So my question is: What would be the ...
stackexchange/codereview
I have a UIScrollView. This scroll view scrolls my custom GameView. When I send setNeedsDisplay to my GameView, it redraws and everything goes fine. Except when I'm in the middle of scrolling GameView. It does not redraw until the scrolling has stopped. Is there any way to circumvent this and just force the view during...
stackexchange/codereview
Is there any way by which cons can be implemented in Common LISP using list, append, first, rest etc? In the following code (defun my_list (&rest arguments) `(,@arguments) ; Line 1 ) What does complete line 1 mean ?
stackexchange/codereview
Can we get the table description through java code that we get by typing desc in Toad?
stackexchange/codereview
I am New to android my intention is to play video using Http. But i am getting "Http Request Failed 404" Exception when iam trying to run my application in emulator. can any one know this error? plz help me Thanks in advance.
stackexchange/codereview
I looking into become a sound programmer. As I could find some sound analyzer would display a nice spectrum of color on bitmap. Which API do I draw a dot shape? Is it circle or line? Is it possible to resize the bitmap width and height after adding all the dots?
stackexchange/codereview
I have the following code; _fileHandler = new FileHandler(_logFileNameAndpath, true); _logger = Logger.getLogger("MyLogger"); _logger.addHandler(_fileHandler); SimpleFormatter formatter = new SimpleFormatter(); _fileHandler.setFormatter(formatter); _logger.log(Level.INFO, message); However, the logging, to me at least...
stackexchange/codereview
My situation: I want to create a universal application of i386 and x86_64 in Xcode 3.2.2 This application has a dependent third-party framework. This framework only has separated versions for i386 and x86_64, no universal version. I added both of the i386 and x86_64 versions into the Link Binary With Libraries section...
stackexchange/codereview
Why does git log --decorate not display more than one tag per commit? EDIT: Charles Bailey has come up with the answer (at least in my case) Essentially, I had one tag that pointed to another tag that pointed to the commit. Because of this extra layer of indirection, the tag wasn't showing up in the log. I'll have to...
stackexchange/codereview
I'm trying create a list of all files (and their sizes) in a directory including everything within the sub-directories. The files are on a remote server. So my script connects through FTP, then runs a recursive function using ftp_chdir to go through each directory. If there's another way to do this, I'm open to suggest...
stackexchange/codereview
hello there i have a situation the entities are customerManager warehouse customer and suppliers my goals are : the warehouse is singletone and open db in runtime. the customerManager manage customers as threads who query the warehouse and update it (after buying staff). when one of the items in the warehouse is run...
stackexchange/codereview
hey i am trying to use the strtok function in C with " " as a delimiter and for some reason it does not work. can some one please tell me how to parse using strtok with a space as a delimiter thanks in advance
stackexchange/codereview
Can a radio button list be rendered as follows 0 1 2 3 4 5 r r r r r r where r represents a radiobutton in the radiobuttonlist and the text above it is the part of the radiobutton text.
stackexchange/codereview
I wrote the program that would need to authenticate users using their Linux usernames and passwords. I think it should do with PAM. I have tried searching from google PAM module for python3, but I did not find any. Is there a ready to use the PAM libraries, or try to make my own library? Is PAM usage some special secur...
stackexchange/codereview
I'm reading this article that compares XML to JSON, and in the comments section, a user mentions the need to use a "local proxy" to access XML. Can someone explain what a local proxy means in this context? I'm assuming he means Javascript, but I'm open to understanding what parsers are available in other languages (C#...
stackexchange/codereview
I have a WebSphere MQ Queue Manager with transmission queue defined and I'm using API to get some information about the queue. When trying to inquire the queue (using .NET interface, but I believe this is not important here), I always receive an exception with reason 2042: MQRC_OBJECT_IN_USE - according to the document...
stackexchange/codereview
in html code how to make tag to open a link in another page ??
stackexchange/codereview
Is there a way to remove the metadata information of MS Word files or Image files programmatically using C# or a Windows batch command? The manual way to remove those information is to right click a file in the windows explorer and selecting 'Properties'>'Details'>'Remove Properties and Personal Information'.
stackexchange/codereview
I am experimenting with waf for my d project. One of the nice features of D is the "import" of entire files into the code at compile time. To do this you have to specify the folders that will be looked in for the files to import. In the case of the dmd compiler you have to use the -Jpath command-line option. I am build...
stackexchange/codereview
i have a element, that i want to be disabled in a situation. ok. i do it with this: Weekend.setEnabled(false); ok, but it still remains focusable, i mean that when user press down/up keys or moves the scroll, the element still can get the focus (orange colour). i tryed with this: Weekend.setEnabled(false); Weekend.setF...
stackexchange/codereview
I am just making the switch from WebForms to MVC and would like to ask what are the best ways of hiding particular fields in the view. Assuming we have a model named WishList that has a list of gifts kids want for Christmas and the child's name. We want the elves to view the list of gifts, but only Santa Claus can vi...
stackexchange/codereview
I need to move my StructureMap configuration from a configuration class to my application's app.config. Anyone know if the following code has an XML configuration equivalent? For(typeof(ILogger<>)).Use(typeof(Log4NetLogger<>));
stackexchange/codereview
On Coffeescript.org: bawbag = (x, y) -> z = (x * y) bawbag(5, 10) would compile to: var bawbag; bawbag = function(x, y) { var z; return (z = (x * y)); }; bawbag(5, 10); compiling via coffee-script under node.js wraps that so: (function() { var bawbag; bawbag = function(x, y) { var z; return (z =...
stackexchange/codereview
We have a j2ee web environment. The server is configured to share session and possibly classloaders across multiple webapps. Basically, one classloader could server multiple web apps. This seems to cause issues with log4j. Different webapps could have different log4j configurations but the logging may stop in one file....
stackexchange/codereview
I'm currently evaluating GeneXus X, and I'd like to know where I could get tutorials (either in English, Spanish, Portuguese, it doesn't matter) on the following subjects: Report Creation Database Reverse Engineering Tool Advanced transaction creation (relations, menu, rules, events) Deploying Interoperation with exte...
stackexchange/codereview
On my localhost i have IIS 7.5 running on windows 7. On my production environment i have iis 7 running on Server Ent. 2008. When i publish my code to production and run my jQuery ajax call i get an XML response, and i expect a JSON response. I used fiddler to compare both request headers and they are identical. EDIT: ...
stackexchange/codereview
Is there a way to grab the most recent time of day. If your data in the database is formatted like this 07:00AM and 08:00pm and 12:00pm. Sorta like max(). But for the time. In a Mysql query. Thanks Eric
stackexchange/codereview
I'm opening a file, and getting lines from it. The first line should say how many variables there are, and what their names are. The second line should be a logic equation using these variables. The assignment is to have it print out a truth table for the variables and equation. The first line the program is taking in ...
stackexchange/codereview
It's been a while since I've had to adjust project build settings. After upgrading to a recent SDK I'm having trouble building my ad hoc distribution configuration. Build generates this warning and error: warning: iPhone apps should include an armv6 architecture (current ARCHS = "armv7") iPhone/iPod Touch: applicati...
stackexchange/codereview
if i use clustering on my google maps api, how can i get info about which markers are grouped in cluster? is it possible to get? it's with google map api v3. thank you very much in advance!
stackexchange/codereview
I have a legacy schema that contains tables with primary keys of type binary(16) -- its a MD5 hash of the other columns. NHibernate does not work with byte[] as a key since it does not implement Equals so I wrapped this in a custom type and provided NHibernate with an implementation of IUserType. Notice that MD5Hash is...
stackexchange/codereview
i'm looking for the TracQuery for the trac report to get all tickets without assigned milestone listed. have you already composed this query, if yes, would you share it? thx in advance.
stackexchange/codereview
I defined the following extension of the Date? data type 'Nullable Date Extensions <System.Runtime.CompilerServices.Extension()> _ Public Function ToObject(ByVal thisInstance As Date?) As Object Return If(thisInstance.HasValue, CType(thisInstance, Object), DBNull.Value) End Function Which gave me the terse capabil...
stackexchange/codereview
I'm seeing that a parsed JSON object from a source XML that gets converted back into XML doesn't return the equivalent XML when I print it out to file. Is anyone else seeing this same isue? I have a XML document that I'm able to easily parse into a json object using org.json.XML.java. Just for testing purposes I took...
stackexchange/codereview
I've been coding something in XNA 4.0 and running things through an emulator. I tried deploying to an actual Windows Phone 7 device but the compiler said there were deployment errors. It says htis exactly: 'There were deployment errors. Continue?' and if I hit 'yes' I get another messagebox which says 'unable to start ...
stackexchange/codereview
If I wanted to create a site that allowed users to have 0 or more "friends", how would I model such a relationship in a database? Would something this simple work: Table Friends - Id (PK) - UserId (FK) - FriendId (FK) ??? Would this allow me to later on do things like Facebook does (e.g. "3 of your friends knows this ...
stackexchange/codereview
I'm working on a (very) simple engine for XNA, I need to load up some very basic assetts including a short sound blip, blank texture and font. My problem is doing this engine side, I would much prefer to keep it separate to the game side code. Would this be possible or am I going to have to 'cheat' and explicitly add t...
stackexchange/codereview
Usually when you subscribe to the changes of a value you are also interested in knowing the initial value. I want my IObservable to cache the latest (or initial) value and push that value on subscription. When using plain events I often end up with code that looks like x.SomeEvent += SomeEventHandler; SomeEventHandler(...
stackexchange/codereview
I am trying to invoke a webservice developed in Siebel from a Java application. Using the WSDL i was provided, i generated the stubs/skeleton using Apache Axis. Strangely in Seibel, there are objects under package names having spaces. This is represented as %20 in the WSDL. http://www.siebel.com/xml/Test%20RR%20Spec%2...
stackexchange/codereview
I have a view that loads a partial view from a controller action using jQuery. The controller action is decorated with the Authorize attribute and if the user has timed out when that action is called intead of being redirected to the proper LogOn page, the LogOn page gets inserted in the view where the partial view wou...
stackexchange/codereview
I am writing a data-intensive application. I have the following tests. They work, but they're pretty redundant. [Test] public void DoSanityCheck_WithCountEqualsZeroAndHouseGrossIsGreater_InMerchantAggregateTotals_SetsWarning() { report.Merchants[5461324658456716].AggregateTotals.ItemCount = 0; report.Merchants[...
stackexchange/codereview
I'm currently using django haystack with xapian. I couldn't find any documentation on how to perform geospatial queries on xapian. But there seems to be some momentum on Solr. So i'm currently experimenting with that. I couldn't get spatialSolr to work properly on local, but for now working with spatial-solr-light, whi...
stackexchange/codereview
I'm not quite sure where to turn for this one. I have been in touch with the developers who have no clue why this is happening. Basically, I'm a consumer with an HTC Wildfire running Android 2.1. I connect via Orange in the UK. The app I'm after is Gizmo or Gizmote from a company called JRiver. Its an extension to thei...
stackexchange/codereview
I decided to upgrade to 1.9.2 ruby yesterday and also installed rvm to do it. I ran a few recent files I had working previously on 1.8.7 but anything requiring nokogiri fails with the following errors. /Users/myusername/.rvm/gems/ruby-1.9.2-p0/gems/nokogiri-1.4.3.1/lib/nokogiri/nokogiri.bundle: [BUG] Segmentation fault...
stackexchange/codereview
I'm new to C++ and I've to do an assignment for school. I need to copy a binary* file without using api calls or system integrated commands. At school we use a windows machine. I've searched around a bit, and I found out that the best way to copy data without using any api's is to use iostream (ifstream/fstream) Here'...
stackexchange/codereview