instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have an array that reflects rebate percentages depending on the number of items ordered: $rebates = array( 1 => 0, 3 => 10, 5 => 25, 10 => 35) meaning that for one or two items, you get no rebate; for 3+ items you get 10%, for 5+ items 20%, for 10+ 35% and so on. Is there an elegant, one-line way to get t...
stackexchange/codereview
I usually used this to create tab separated files for excel: sb.AppendLine(String.Format(@"{0}\t{1}" ... Strangely it does not work anymore. Any ideas? C
stackexchange/codereview
I am working on my first large project that uses EF4 and have been pondering concurrency situations as I am implementing certain business scenarios. I understand that EF has built in support for optimistic concurrency by setting Concurrency Mode to Fixed on entity properties. This seems to be sufficient in most cases...
stackexchange/codereview
So, I'm cool with using a per-user salt to hash my users' passwords. However, there's one piece of advice in the accepted answer: Do not use a separate column for the salt. This doesn't make sense to me. If I'm just catenating the hash and salt and putting them in the same column, surely that's semantically equivale...
stackexchange/codereview
As far as I know what GET can do, the same can be achieved by POST. So why was GET required in first place while defining HTTP protocol. If GET is only for fetching the resource, people can still update resources by sending the parameters values in URL. Why this loophole? Or the guy who did the coding on server side to...
stackexchange/codereview
I'd like to highlight field names instead of showing a separate error message when there is a validation error. Is there any convenient way of doing this other than checking the ModelState Errors collection and wrapping each .LabelFor() in an if? Also, I'd like to format labels as either bold, or add an asterisk if the...
stackexchange/codereview
My users must download a program from the interwebs to a microSD card, which can be any drive letter from A-Z. Q: Is there a drop dead simple approach to downloading a file to a specified drive/directory without relying on the user to navigate for me? I can populate the directory with a seed file if necessary to let my...
stackexchange/codereview
The Zend Framework is mainly meant for MVC use. One of the very usefull components is Zend_Form. I have a bit trouble finding the place of Zend_Form. Is it part of the view, model, or controller and which responsibilities should I give it. The thing is, Zend_Form does two things: decorate and render the form and valida...
stackexchange/codereview
I am developing a CMS application. Its a very huge deep and with full of configurable features. Current, I am developing it using Asp.net C#, form authentication and by creating UserControls. There are lot of configurable items need to decide at run time as per user roles and some rules are predefined and some will be ...
stackexchange/codereview
I'm interested in learning this language, but it seems that there is very few tutorials and books on the subject. I've found only one suitable book on the subject (Developing Applications With Objective Caml) which would be absolutely perfect but the problem is that it is based on version 2.04. So my only concern is if...
stackexchange/codereview
I looked at the GetAdaptersInfo() sample in MSDN: http://msdn.microsoft.com/en-us/library/aa365917%28VS.85%29.aspx and noticed that while the sample attempts to iterate through ALL adapters, it only allocates memory for the first one. Is this a bug? If not, why not? Do all adapters have the same info size? To further c...
stackexchange/codereview
i have a datagrid (created programmatically) wich is connected to an JsonRestStore. In that Grid there are some columns rendered as checkboxes (type:dojox.grid.cells.Bool) Everything works fine, displaying Data and so on. To be able to edit inline, i connected the onApplyEdit to store.save. The Problem is, that the cha...
stackexchange/codereview
I have a checkbox list creating an array that I want to iterate over to have the value create both an image file name as well as the title and alt tag. $specs = get('speciesCommon'); $thepath = get_bloginfo('template_directory'); foreach($specs as $speci){ echo '<li><img src="'.$thepath.'/library/images/icons/species/...
stackexchange/codereview
A workaround that I found was to explicitly state in controller render :action => :some_action, :layout => false otherwise JavaScript fails to work Anyone found this problem or maybe something is wrong with my configuration...
stackexchange/codereview
hi there I'm looking for some component or something to do this. I want a simple Oscilloscope visualization like KMPlayer,FLStudio,Multimedia Builder,etc. What can i do? Thnx in advance
stackexchange/codereview
I'm trying to run uic3 -convert to convert some QT3 .ui files to QT4. When I run it, uic3 reports that it's unable to find the rules file (q3porting.xml). Where does uic3 look for the q3porting.xml file Can I pass the rules file as an argument on the command line (similarly to using qt3to4 -rulesFile)? If not, what ...
stackexchange/codereview
Does anyone know if its possible to have TFS2010 Build Server run ONLY tests rather than entire project. Here is why, I want to setup a schedule to have my server execute my tests daily, without having to make sure my entire project is fully functional, since I will be working on the code, it may not be buildable, howe...
stackexchange/codereview
My question is very simple: Is it possible to pack plugins into extensions for Safari? For instance, the exact NPAPI plugins which work on Google Chrome also work on Safari. However in Chrome I'm shipping the plugins as a part of an extension (a CRX package). This is needed because HTML and JavaScript is injected into ...
stackexchange/codereview
I need some input. Say you have an int-based Enum with values 1 through 10. If you then have a variable that is, say, value corresponding to 7, how can you easiest set it to next value in the given range without going out of bounds? If the value reaches the limit, it should reset itself to first in the range. I want a ...
stackexchange/codereview
I'm running multiple versions of Ruby (and Rails) on Windows and use Pik to switch between them. At the command line, I'm able to call > pik list 186: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] 192: ruby 1.9.2p0 (2010-08-18) [i386-mingw32] to get a list of ruby versions available, and use > pik 192 > ruby...
stackexchange/codereview
I would like to redirect example.com and example.com/ALL aswell as example.com/ALL/ALL, example.com/ALL/ALL/ALL etc. to example.com/offline.html, temporary. How can I do this through .htaccess ? ALL = whatever you type Thank you.
stackexchange/codereview
I am using an Android device running Froyo supporting OpenGL ES 1.1 and OpenGL ES 2.0 I want to render the depth buffer to a texture. Having seen a number of examples for OpenGL, OpenGL ES on other platforms (including iPhone) I have tried a number of FBO configurations. I seem to be able to get an FBO set-up with a co...
stackexchange/codereview
I have a grid of cells (empty at beginning), and a collection of blocks which are rectangles or squares whose size are a multiple of a cell (for example, a block might be 2 cells by 3 cells). I won't know all the blocks in advance, but will have to place them as they arrive. In case anyone's wondering, this has to do w...
stackexchange/codereview
Is there a way to programmatically access and modify the <head> section of the page in ASP.NET MVC? I need to update the page's <meta> tags depending on which data the user is viewing on any given page.
stackexchange/codereview
Microsoft announced that it will no longer provide a tool to create installation packages and officially recommends InstallShield. Will Microsoft continue to use WiX in-house?
stackexchange/codereview
A struct like the following works fine, I can use t after calling malloc(sizeof(mystruct)): struct mystruct { MyDef *t[5]; }; I want to be able to dynamically set the length of the array of MyDef, like the following: struct mystruct { MyDef **t; int size; }; What do I need to do additionally to malloc(sizeof(mystr...
stackexchange/codereview
I have a SqlMembershipProvider store with Roles enabled. This is configured and has the user "devtest" in the roles "xxUser" and "xxAdmin". I also have a WCF service, which I want to authenticate and authorize against. My problem is that: the authorisation is not happening, code just executes despite the policy attrib...
stackexchange/codereview
how to download videos from youtube on Java? need class(or piece of code) which describes how to do that. Thank you.
stackexchange/codereview
I want to create dynamic buttons on button click event(for example., btnCreateDynamic_Click). I tried creating dynamic buttons on page_load event and Pre_int event.They are all working but i want to create them in button click event. How can i do this in c# asp.net?
stackexchange/codereview
Documentation says if you have a context file here: $CATALINA_HOME/conf/Catalina/localhost/myapp.xml it will NOT be replaced by a context file here: mywebapp.war/META-INF/context.xml It is written here: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Only if a context file does not exist for the applicat...
stackexchange/codereview
I'm trying to disable the Backlight Timeout function on BlackBerry device - where the screen automatically dims after a period of inactivity. The only thing I can do at this moment is go to: Options -> Display -> Screen Components -> Backlight Timeout and change the time there. The default is 10 seconds and the maximu...
stackexchange/codereview
I wrote a simple custom directive, and have it pass all attributes through as regular element attributes. The syntax of the tag as follows: <@link_to controller="unobtrusive" action="do-get" data-target="result">Do Get Unfortunately, I get an exception: Caused by: freemarker.core.ParseException: Encountered "-" at...
stackexchange/codereview
How to start an Android application when the phone boots up? I have done this previously using a BroadcastReceiver with the BOOT_COMPLETED intent. Are there any alternative ways to accomplish the same?
stackexchange/codereview
My professor asked us this question: What are the differences between a C#(.Net) Compiler and Java Compiler Technologies?
stackexchange/codereview
I've got a PyQt4 project with a very weird error, under certain circumstances the main thread simply dies and I have no idea why. No exception reported or shown, I've tried wrapping a try - except around app.exec_() and nothing. sys.exit() is not called Does anybody have any tips, is there a tool to see what signals/...
stackexchange/codereview
Say I have a static library that was created with the following file structure: Folder1 File1.h Folder2 File2.h Now inside of File1.h, it refers to File2.h without a path (e.g. #import File2.h). The library builds successfully. (It doesn't require the full path (i.e. #import Folder2/File2.h) because both files ar...
stackexchange/codereview
I want to serialize an object and send it over the network. I have set it up using ISerializeable attribute on my class and BinaryFormatter to convert the object to bytes. I can send the object and deserialize it on the receiving end. However, in order to assure that I have the entire object before trying to reconstruc...
stackexchange/codereview
I made a java program with graphical user interface which simply reads txt files. I have some fetures such as show table of contents, go to a specific page of the txt file or search for a word in that txt file. Also I have bunch of buttons to perform these features. One of my buttons simply aims to go back like a "back...
stackexchange/codereview
I use python 64bit as follows. alias python64='arch -x86_64 /usr/bin/python2.6' How can I run python 64bit mode with shebang(#!)? ??? #!/usr/bin/python2.6 ???
stackexchange/codereview
So I have two possible strings here for example. /user/name and /user/name?redirect=1 I'm trying to figure out the proper regex to match either with a result of: Array ([0] => /user/name [1] => user [2] => name) I think the part I'm having an issue with is that the question mark and the GET query after it are op...
stackexchange/codereview
i am building a page with repeater style display where there are hundreds of div containers and each consists of a table in them. Something like the following, and like 150+ of them in a page. My question is how would the page perform? i am seeing a 1.5 min wait from sending the request to the page is fully loaded. the...
stackexchange/codereview
I have the following JSON data: {"data":{ "default":"some data" } } Whenever I try to access data.default, Safari generates sytax error because the keyword default. Other web browsers seem to work. What is the work around for this type of issue? note: I can't change the JSON data. It is out of m...
stackexchange/codereview
I am relying on the "Reset" behavior of a form to cancel the edits, the problem i am facing is that once post the data is updated via ajax, the reset still reverts back to the data that was loaded with the page origionally. So basically what I need to be able to do is "Reset" the "Reset" function. Make sense?
stackexchange/codereview
Yes as the title says: How can i detect an file extension? $_POST['fname']; is where i have the filename stored e.g asddsa.jpg So how can i check if .jpg then ... if .png then ... ? $src = "images/status/photo/".$_POST['fname']; $parts=pathinfo($src); if($parts['extension'] == "jpg"){ $img_r = imagecreatefr...
stackexchange/codereview
I would like to prevent the user from clicking on saturdays/sundays (week-ends) when he selects a date using the jQuery UI datepicker widget. Is there a way to accomplish this? If not, which are the alternatives ways to accomplish this?
stackexchange/codereview
I have some large JPG files that need to be downsampled in an android service. BitmapFactory (i.e. skia libray) can handle this but probably does not get any GPU support. Is there any portable way to get hardware acceleration for scaling ? Could a service create a hidden View and then use OpenGL ES to do the scaling pa...
stackexchange/codereview
I want to give my users oppertinty to choose destination. from the beginning it will already have a point on the map, and after that they can choose/change to another location if they want.. how is it possible to change the point on the map, by clicking somewhere else on the map?
stackexchange/codereview
Currently I have some code that reads if ( $(this).hasClass('.someclass') ) { } else { //Do Stuff here. } I know this isn't exactly kosher, but it works. What's the proper way to go about this? How do I check for the abscence of a class?
stackexchange/codereview
I use a Ivalueconverter to convert a string to a boolean using an xml datasource. This works fine until I manually change the xml like so: myelement.InnerXml = "true" I then receive a formatexception saying the string is not a valid boolean, I check the value that goes in to my converter and it is equal to "" Here is m...
stackexchange/codereview
I’m creating a setup project (Windows installer) in vs2010. When the user install it for the 1st time – everything is working just fine, but when the user try to upgrade the old application that’s running prevent of coping the new dlls to the installed folder. How to show a user a dialog box that force him to shut down...
stackexchange/codereview
I'm trying to create a small flash-app, which needs to run as big as possible on the browser. For example regexr and Grooveshark work this way. However, if I use the File -> Publish Settings and there set the width and height 100%, it resizes to full browser, but... When I use stageHeight and stageWidth, they don't cha...
stackexchange/codereview
I'm currently trying to read some binary data using the BinaryReader. I've created a helper class to parse this data. Currently it is a static class with this kind of methods: public static class Parser { public static ParseObject1 ReadObject1(BinaryReader reader){...} public static ParseObject2 ReadObject2(B...
stackexchange/codereview
C# .Net application which connects to five different data streams. The data streams are all in the same plaintext format, but have information from different areas. The application creates an array of custom objects, which contains sockets. Each socket connects to its IP/port (same IP, different ports) with no probl...
stackexchange/codereview
function showSchedule() { if (request.readyState == 4) { if (request.status == 200) { document.getElementById("content").innerHTML = request.responseText; /* put alert to enroll submit button */ document.getElementById("enroll").onclick = doIt; } } } functi...
stackexchange/codereview
Got an odd situation here. On my local mysql database (v5.1.41), I am required to use this escape command if I am to handle users' quotation syntaxs without any problems. However I cannot use this command on my web server's mysql database (v5.0.91-community). If this command is used on the web server (apache v2.2.13),...
stackexchange/codereview
I've written a servlet which queries a database for a list of messages, the output is directed to servlet generated html. The user has the option of selecting to view a selected message by clicking a button ResultSet rs = null; try { startPage(response); rs = statement.executeQuery(sql); while(rs.ne...
stackexchange/codereview
I'm using border-image with a PNG image that has a transparent section. The issue is that the div has background-color set the black. When I apply border-radius, the transparent section of the pattern shows the black of the div and not the background of the element containing the div. How do I get border-radius to igno...
stackexchange/codereview
I'm trying to invite guest to google calendar using GData. I found http://www.mail-archive.com/google-calendar-help-dataapi@googlegroups.com/msg01759.html But on the line: entry.ExtensionElements.Add(fragment.FirstChild); I get a compile error saying: Error 3 Argument 1: cannot convert from 'System.Xml.XmlNode' to 'Go...
stackexchange/codereview
I have typedef std::queue<MyObject*> InputQueue; std::vector<InputQueue> inp_queue; Now what I want to do is define at runtime say 5 queues and place data on those queues like inp_queue[1].push(new MyObject()); etc. I got it to compile, but it core dumps right away. I guess I need to actually add the queues to the ...
stackexchange/codereview
I have reduced the problem to the following basic function which should simply print the number of bytes in the file. When I execute it for a file of 83886080 bytes (80 MB) it prints the correct number. However for a file of 4815060992 bytes (4.48 GB) it prints 520093696 which is way to low. It seems to have something ...
stackexchange/codereview
how in jQuery work date? I want to perform mathematical operations to date. var date = '2010-11-23 21:32:31'; var date = date - 70; alert(date); how get: 2010-11-23 21:31:21 Thanks
stackexchange/codereview
I'm writing a specialized PHP proxy and got stumped by a feature of cURL. If the following values are set: curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); curl_setopt( $ch, CURLOPT_HEADER, true ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); cURL correctly handles redirects, but returns ALL page headers, not ju...
stackexchange/codereview
Has anyone ever seen a crash log like this before where the UIKit and other system libraries do not get symbolicated? One of our apps is having an issue with crashing on launch but only a small number of users (like 5) are experiencing the problem. (To my understanding the default.png is displayed and then it crashes) ...
stackexchange/codereview
I'm appending some hex bytes into a packet = [] and I want to return these hex bytes in the form of 0x__ as hex data. packet.append("2a") packet.append("19") packet.append("00") packet.append("00") packHex = [] for i in packet: packHex.append("0x"+i) #this is wrong return packHex How do I go about converting ('...
stackexchange/codereview
I generated an interface based off a WSDL definition file with wsdl.exe to use with a project. The resulting generated .cs file has the expected interface inside it, but the interface file doesn't have a namespace - the interface definition is directly below the using statements. I've never seen a source code file wit...
stackexchange/codereview
How can I redirect the user after it adds one item to the cart? lets say I want him to choose one item and go to the checkout/onepage, how can I do that?
stackexchange/codereview
use POSIX; my $test = ""; my $elements = scalar(@array); my $tablecount = ($elements / 100); my $tblnum = ceil($tablecount); my @hundred; foreach $test (@array) { until ($tblcnt == $tblnum){ @hundred(@array, 0, 99); print qq~<table id="$tblcnt"><tr><td>~; foreach $test (@hundred){ print qq~<tr><td>$...
stackexchange/codereview
I have been trying to implement some encryption between an iPhone app and a PHP web service. It's not working however. It seems like the first half of the text is NOT decrypted while the second half is decrypted just fine. What should I do? The PHP encryption method is as follows: function decrypt($str, $iv) { $iv ...
stackexchange/codereview
Hi everyone I am currently doing a chat application and I saw jixedbar which is very suitable to manage multiple chat windows. Unfortunately, when there are too many divs within the jixedbar container element, it hides the additional chat titles with overflow-x: hidden (default jixedbar). I was wondering whether there'...
stackexchange/codereview
I am porting an audio mixer from directsound on Windows to alsa on Linux. I am polling on, let's say, 16 file descriptors using the system call "poll". Now i need to be able to abort the polling somehow. On Windows i am using the WaitForMultipleObjects using events and when i need to abort the waiting i just SetEvent o...
stackexchange/codereview
I'm used to setting up a server for nginx with php and mysql. I understand that just fine. But I'm extremely confused at where to even start with django. I know nothing about python by the way. I'm running ubuntu 10.04 Python is already installed (not sure what version though. I read I need less than 3 or something) So...
stackexchange/codereview
I'll start off by saying my terminology might be off, which is why I might be having trouble finding an answer to this question, and apologising for the wall of text. I have a strongly-typed view that inherits from a custom type called Record. Record has a dictionary of named fields of varying datatypes - some strings,...
stackexchange/codereview
Using CodeIgniter, I am trying to modify the name of the uploaded file to camelCase by removing any spaces and capitalizing subsequent words. I am pretty sure that I can rename the file using the second parameter of move_uploaded_file but I don't even know where to look to figure out how to modify the name to camelCase...
stackexchange/codereview
I put my files on my server, but I'm unable to connect to the database. My project works on my local machine, but not on my production server. I'm using mysql and php. I'm getting this error: [01-Nov-2010 18:27:01] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denie...
stackexchange/codereview
i want to test if current char current is not ',', '-', '.' or ' ' Is there a shorter expression for: if((current != ' ') || (current != '.') || ...) any ideas? EDIT: I am just allowed to use the methods nextChar and getChar. I have to loop through the chars. import java.io.FileInputStream; import java.io.IOException;...
stackexchange/codereview
I would like to make a login page with 2 different user level, Admin & Staff. How can i do it using d code below. Thank u. <?php $host="localhost"; $username="root"; $password=""; $db_name="profile"; $tbl_name="company"; mysql_connect("$host", "$username", "$password")or die("c...
stackexchange/codereview
I have a custom UITableViewCell set up with a MKMapView set up within the cell. I would like the map to take up all of the cell and so I have set the Map View to have the same dimensions as the TableCell. The application is working ok, but the square corners on the Map View extend beyond the bounds of the table cell. ...
stackexchange/codereview
I'm trying to run the following statement on a SQL server database: ALTER DATABASE myDB SET READ_COMMITTED_SNAPSHOT ON Query Analyzer just keeps spinning and nothing returns. I've read about other people experiencing this problem and that it should normally return fairly quickly, and the only way they've found around i...
stackexchange/codereview
OK the question might not say much, but here's the deal: I'm learning scala and decided to make an utility class "FuncThread" with a method which receives a by-name parameter function (I guess its called that because it's a function but without a parameter list) and then starts a thread with a runable which in turn exe...
stackexchange/codereview
I have a function which uses MSXML to post an XML document which yesterday started failing despite no change being made to the code. The function is as follows: Public Function PostFile(ByVal address As String, ByVal data As Byte()) As xmldocument Dim xmlHTTP As New MSXML2.XMLHTTP Dim response As New XmlDocumen...
stackexchange/codereview
I'd love to use a nice template-engine with IronPython but havent succeded doing so. Would be best to be able to without needing to add Python standard lib's. Dont know if that's possible. I like the Ruby Erb syntax, and hoped to be able to use something similar.
stackexchange/codereview
Something alike, if I input the string "Console.WriteLine", it would return -> "System.Console.WriteLine" I assume there's some way via Reflection.
stackexchange/codereview
I'm working with video in Flex. I'd like to be able to pause the video at a certain point and copy the displayed frame as an image, and save it to a database. I'm wondering if anybody knows how I might copy a single frame from a paused video? Thanks --Matt
stackexchange/codereview
Recently my application has been getting tons of these exceptions. I run ASP.net 3.5 on a Windows XP machine. The exceptions tend to be random. The application uses the Telerik RadControls for ASP.NET AJAX Q2 2010 SP1. The exception and StackTrace are below. Exception Type: System.FormatException Message: Invalid ch...
stackexchange/codereview
In writing an application for my school's yearbook committee, I've hit a bit of a dead end with modeling a specific relation. Currently I have a photo class class Photo(models.Model): photo = models.ImageField(upload_to="user_photos/") name = models.CharField(blank=True, max_length=50) rating = models.IntegerField(...
stackexchange/codereview
Can any one give me example or reference for converting mysql database query results in to json object and send it to javascript file then parse the json and display results in javascript file using jquery? Thanks.
stackexchange/codereview
Ok, so i have run into this a few times and it's really annoying. Scenario: modify a file say a.txt (add say two lines) stash it stash apply git reset remove the two lines added to a.txt because you want to commit and push these partial changes git add a.txt git commit the above, and push the changes (push irrelevant...
stackexchange/codereview
I use ID3DXSprite interface to draw gui controls in my app. I have a 512x512 texture with all controls and use sprite->Draw() telling the exact RECT of control. Everything works fine except a strange bug on only one(!) machine. Normally, the control looks: And on that strange machine: Moreover, some controls look fin...
stackexchange/codereview
What is the suggested video/audio codec for encoding videos for android devices which works on most of the devices?I tried using H.264/AAC, but the output mp4 only works in android 2.2, devices running older os versions says "this video can not be played". I am using normal progressive playback (via http) i.e. no strea...
stackexchange/codereview
I want to rename a field of a table in MySQL ver 5.2.25, from "alter table", but I got this error: SQL Error 1025: Error on rename of '.\Packers\#sql-804_3' to '.\Packers\pattern' (errno: 150) but on other table I had not this problem, I don't know why, is it caused by foreign key?
stackexchange/codereview
How to develop an iPhone application without using Mac OS? Is it possible to develop an application on Windows XP?
stackexchange/codereview
Folks I have an image at some server (SOURCE) i.e. http://stagging-school-images.s3.amazonaws.com/2274928daf974332ed4e69fddc7a342e.jpg Now I want to upload it to somewhere else (DESTINATION) i.e. example.mysite.com/receiveImage.php First, I am copying image from source to my local server and then uploading it to destin...
stackexchange/codereview
I want to post score in wall in facebook using facebook API.
stackexchange/codereview
There seems to be some weblogic framework codes, how do I download it for use with my weblogic portal project? framework/features framework/markup framework/scripts framework/skeletons framework/skins
stackexchange/codereview
How to pass variables from a php file to another while it is not html inputs ,just i have a link refer to the other file and i want to pass variables or values to it Example: File1.php <?php $name='OdO'; echo "<a href='File2.php'>Go To File2</a>"; ?> File2.php <?php echo $name; ?>
stackexchange/codereview
I have been trying for hours but couldn't figure out why it doesn't show the filtered result. It always shows all the results. I'm not sure what I am doing wrong. - (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString { [self filterContentFo...
stackexchange/codereview
I am planning to write a utility for me which will accept a directory having html files and then based on those html files it will create a CHM [Microsoft Compiled HTML Help] file. So is there any free library to create CHM file ? If not then please mention some tutorial or links for basic understanding on how to creat...
stackexchange/codereview
Our java class calls PLSQL proc which returns date in default format which is defined by NLS_DATE_FORMAT. Our application sets its own Locale for internationalization but I want the date format to remain just 'DD-MON-RR' which is en_US Locale NLS_DATE_FORMAT. Due to the change in locale oracle's fetched Date string dif...
stackexchange/codereview
I don't know this is a right forum for my question or not? I am new in Web Services. Today i just open VS2008 and found 3 type of SERVICE project Window Service WCF Service application ASP.NET web service application Please help me to find out the difference between these three projects? When should we decide which t...
stackexchange/codereview
Does anyone know how to prescribe boundary conditions of like u[t,0,y]==u[t,1,1-y] in Mathematica using NDSolve... It always complains that the arguments of the dependent variable should literally match the independent variable. Thanks in advance.
stackexchange/codereview