instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am having a URL in below format abcd.com/xyz/pqr%2Fss/abc I want this to be send to server as it is. When I build Uri using System.Uri it converts it to abcd.com/xyz/pqr/ss/abc and it fails as I don't have a URL with the specified path. When I tried with double encoding (abcd.com/xyz/pqr%252Fss/abc) it send the Uri ...
stackexchange/codereview
I am looking out for a solution to migrate data from Progressdb to MySQL..Please let me know if there are any solutions for the same.Thank you.
stackexchange/codereview
I did see the links below but unfortunately nothing seemed applicable to my code. This function works in FF but not in IE, to simply send a name value pair (info/"") to the server. Don't need to return anything or call any other function. Any suggestions? function functionAX() { $(document).ready(function() { ...
stackexchange/codereview
Would anyone know why the following code works correctly on Windows and not on Mac?? Today (24/11/2010) should return 47 not 48 as per MacOS def fm_date = '24/11/2010' import java.text.SimpleDateFormat def lPad = {it -> st = '00' + it.toString() return st.substring(st.length()-2, st.length()) } dfm = new SimpleDateF...
stackexchange/codereview
Hi I have 2 points (X1,Y1) and (X2,Y2) how can I draw a line between them? thanks
stackexchange/codereview
Here's what I tried: UPDATE `main` SET Practice = replace(Practice,""",""); I have stray quotation marks in column Practice of table main that I am trying to do a mass execution on. But, all I get are syntax error messages. This syntax has worked for other such intentional carnage, but not for this.
stackexchange/codereview
I've created a custom list in a SharePoint site, but now I want to convert that into a list template so I can deploy it in other sites using a feature. I've tried two methods: Use SharePoint Manager 2007 to copy/paste list schema into schema.xml and roll into a feature use stsadm extensions along the same lines This ...
stackexchange/codereview
I started using Sweave some time ago. However, like most people I encountered pretty soon a major problem: Speed. Sweaving a large document takes ages to run, which makes efficient working quite challenging. Data processing can be accelerated very much with cacheSweave. However, plots - especially ggplot ;) - still tak...
stackexchange/codereview
I’m just stuck with one problem and don’t know how to figure it out. I’m working on the indexation of the objects that are in computer memory (they exist only in my java code). Don’t have any problems with indexing it, however I have no idea how to re-index it if they change during the execution of this code; one of my...
stackexchange/codereview
I am trying to implement a "reducing map" function. That is, it should return a sequence consisting of the result of applying f to the first 2 items of coll, followed by the result of applying f to that result and the third item in coll, etc. (def c [[0 0 0 0] [1 0 0 0] [0 1 0 0] [0 0 1 0] [0 0 0 1]]) (defn- sum-vecto...
stackexchange/codereview
It is a known problem that XML parsers often send out HTTP requests for fetching DTDs referenced in the documents. Specifically, Python's one does this. This causes excessive traffic for www.w3.org, which hosts a lot of these DTDs. In turn, this makes the XML parsing take a very long time and in some cases time out. Th...
stackexchange/codereview
I have somewhat of an odd situation, where I need to fix a bug in a website where, when a string is created (dynamically) it adds 5 spaces before the string and 5 spaces after the string. Obviously, the best thing to do would be to fix the back end code and get rid of those spaces... long story short, I can't and I hav...
stackexchange/codereview
all Someone created xxx.mysql (SP) in mysql. However when I try to CALL it, the error message says, that SP does not exist. Can anyone tell me where I can check if this SP really does not exist in the database? Can I use phpmyadmin to check it? Many thanks in advand
stackexchange/codereview
I want to program a Java Applet that connects to my personal MySQL database. Now my question is: Can somebody e.g. open the class-file(s) from the JAR and look for the password/string? (Of course I would exclude the source files when I generate the JAR.) So is it insecure to put the password (as a plain string) in the ...
stackexchange/codereview
How can I draw an image inside a circle? If I do: context.beginPath(); context.arc((e.pageX),(e.pageY),161,0,Math.PI*2,true); context.closePath(); How can I then use fill() to fill it with my drawn image?
stackexchange/codereview
I need to import data from text file (not separeted by commas, other way, different characters) to database (for example to mdf). Because datagridview loads data from database faster then from file. What is the best way? Thank you
stackexchange/codereview
I am trying to figure out Magento's routing because I need it for mod_rewrite. I have made several CMS pages in Magento itself; now I am wondering how to pass on $_GET variables. For example: http://www.magento.nl/catpage?catid=3 How should this URL look the Magento way? I tried: http://www.magento.nl/cms/catpage/inde...
stackexchange/codereview
I need to add cancel button in numeric keyboard. How to customize the following keyboard? When I click by cancel button, the keyboard will be hide.
stackexchange/codereview
I am trying to get a video to pop up and play. I can get it to work when I use the first URI (that is commented out in the below code), but when I try to use the second URI (from the resource), I get the following error: ERROR/AndroidRuntime(1052): android.content.ActivityNotFoundException: No Activity found to handle...
stackexchange/codereview
I have the code: std::list<Node *> lst; //.... Node * node = /* get from somewhere pointer on my node */; lst.remove(node); Does the std::list::remove method call the destructor (and free memory) of each removed element? If so, how I can avoid it?
stackexchange/codereview
does javascript has native xml api?
stackexchange/codereview
Is there any way to access the build datetime of a dll from C#? In between formal releases of a dll, I'd like to be able to somehow store the build time/date of a DLL so that I can check if the currently executing build is the one I'm expecting. I'm working on both Debug and Release versions of an Add-In and I can eas...
stackexchange/codereview
I am getting a very frequented error ( as I could find from web) but none of the solutions have helped me I am deploying ASP.NET MVC 2 Project with Target Framework as 4.0 on IIS 6 . Thanks to Phil Haack I was able to configure IIS 6 to recognize URL Routes but now I am facing another issue I have made sure of the fol...
stackexchange/codereview
I have a Spring MVC controller for my plain-old-xml web service with the following method: @RequestMapping( value = "/trade/{tradeId}", method = RequestMethod.GET) @ResponseBody public String getTrade(@PathVariable final String tradeId) { return tradeService.getTrade(tradeId).getXml(); } Which kind...
stackexchange/codereview
How to copy one NSString to another? @interface MyData : NSObject { @private //user's private info NSInteger uID; NSString *name; NSString *surname; NSString *email; NSString *telephone; //user's picture UIImage *image; } @property (nonatomic, assign) int uID; @property (nonatomi...
stackexchange/codereview
My software works on shared hosting, but problems with login on private virtual. Developer says its a PCRE issue. Host says I have to do it myself. Root makes me nervous. I think I can install yum, after which, what command do I run? ie. "yum install PKGNAME" I found this references on http://mirror.centos.org/centos/5...
stackexchange/codereview
I am trying to write a sed expression that can remove urls from a file example http://samgovephotography.blogspot.com/ updated my blog just a little bit ago. Take a chance to check out my latest work. Hope all is well:) Meet Former Child Star & Author Melissa Gilbert 6/15/09 at LA's B&N https://hollywoodmomblog.c...
stackexchange/codereview
i am using following code in order to fetch contacts from Phone i am getting names but not number , help me to find out other fields of contacts. public class DialActivity extends Activity { private ListView mContactList; public String[] fields; public Cursor cursor; public boolean mShowInvisible; public U...
stackexchange/codereview
I have a custom Firefox add-on. It worked ok, until we decided to make it self update-able. According to manuals at mozilla.org, there should be an <em:updateURL> entry in add-on's install.rdf, containing a link to some update.rdf. Seems pretty simple. But, when I add <em:updateURL>some_url</em:updateURL>, the add-on d...
stackexchange/codereview
I'm rather new to Spring and I was just wondering if someone would be able to clear something up for me. What I am wondering is what is the scope of a spring mvc web application. Do users get a new instance of the application whenever they use it or is it like a singleton where everyone gets the same instance of the ap...
stackexchange/codereview
Does Python have a function that I can use to escape special characters in a string? For example, I'm "stuck" :\ should become I\'m \"stuck\" :\\.
stackexchange/codereview
I have a setup created using Vb6. I am unable to install it under Windows 7. Windows 7 is not registering OCX controls included in the setup. Same setup works fine under Windows XP and all other previous Microsoft operating systems. Windows 7 OS is 64 bit. Also, I have tried all compatibility mode which is availabl...
stackexchange/codereview
I need to generate a random images gallery. Except that the middle one has to always be the same. Let's say I have 40 images. I need to choose 16 random images from the 40. The 9th image should always be the same. Any idea ? Precision : The "hard" part for me is to know what numbers were already used, which weren't T...
stackexchange/codereview
I'm trying to run the sources from the Android SDK but most of them contains errors and they are not working. I have tried to clean them (eclipse->project->clean) or refresh with F5 but they still contain errors. Do you have any idea what's the matter with these "ready" examples?
stackexchange/codereview
We are using nginx as a reverse proxy to control and log access to a Clojure (Java) web service application. We are able to generate an access_log and capture incoming headers using nginx just fine. Our Clojure app logs activity via log4j. Trouble is, is that we can't match an entry in the access_log to an entry genera...
stackexchange/codereview
I am a novice iPhone programmer I want to use some of the functions in the private framework https://github.com/kennytm/iphone-private-frameworks The function that I want to use is in 'SpringBoard' So I downloaded 'SpringBoard' folder in that github repo. And created a subdirectory called "Headers" in 'SpringBoard' an...
stackexchange/codereview
I have this location http://somesite.com/pot_system.shtml and i want to redirect to http://somesite.com/build_me_today I want to do this via htaccess is that possible I used Redirect /pot_system.shtml http://somesite.com/build_me_today
stackexchange/codereview
I'm currently working on an application that require me to deploy onto Google App Engine Server. My application runs perfectly fine locally on port 7777. However, when I deploy onto GAE, It starts to give me this error - java.lang.IllegalStateException: Committed and it just returns me a "null" in the GAE log. There...
stackexchange/codereview
I have an existing JComboBox object. I can modify many of its properties using the internal methods. However, I could not find similar methods to customize the popup's appearance - specifically, the popup's background color. I have an existing object, so I wish to use its existing methods/properties, not to write a ded...
stackexchange/codereview
I have a string with lots of special characters. I want to remove all those, but keep alphabetical characters. How can I do this?
stackexchange/codereview
In the following expect script, I noticed that the script will send the password even before prompted for the password. How can this be prevented? Could I use a wait statement or something? #!/usr/bin/expect -f #set timeout 25 spawn rsync root@14.12.123.82:'/usr/backups /usr/backup-scripts /root/test/' /root/ expect "r...
stackexchange/codereview
I am a java developer and I am on my way to create a professionally good looking web application, one which has jquery, and fancy menus, well organized css, html etc. I have little knowledge of CSS, html, javascript and other web designing languages. Please let me know how developers create such kind of websites that ...
stackexchange/codereview
According to the reference manual, the MySQL client has the command: ego (\G) Send command to mysql server, display result vertically. ... Each command has both a long and short form. The long form is not case sensitive; the short form is. The long form can be followed by an optional semicolon terminator, but th...
stackexchange/codereview
I'm having a bit of a problem running an AWS Console Application created in VS2010, on the cloud, on the EC2. When ran on my desktop, it poses no problems, but, when moved to the cloud, it thrown an error saying that it cannot find the AWSSDK.dll. I changed the path of the references, so that it would mimic the folder ...
stackexchange/codereview
<td class="participants"> <img alt="" src="https://s3.amazonaws.com/app-name-production/profile_pics/1/small/xxxxx.jpeg"> <img alt="xxxxxxxx" src="https://s3.amazonaws.com/app-name-production/profile_pics/5/small/xxxxx.jpg"> </td> Hello, I have the follow code block above which shows images. this div is shown v...
stackexchange/codereview
i have the following file:: FirstName, FamilyName, Address, PhoneNo the file is sorted according to the family name, how can i count the number of family names starts with a particular character ?? output should look like this :: A: 2 B: 1 ... ??
stackexchange/codereview
I have a textbox, a standard button and a toolstrip containing a couple of buttons. In the validating event of the textbox I coded to check whether it is blank. If yes then it shows a message 'Enter Value'. When the standard button is clicked while the textbox is empty, it's validating properly and showing the message ...
stackexchange/codereview
I have a .csv file that gets pivoted into 6 million rows during a SSIS package. I have a table in SQLServer 2005 of 25 million + rows. The .csv file has data that duplicates data in the table, is it possible for rows to get updated if it already exists or what would be the best method to achieve this efficiently?
stackexchange/codereview
Basically, I've got this plugin-based application I've used all the time in VS2008 flawlessly. In my current project (VS2010 by the way) I wrote a plugin for the application and whenever I try to use an instance of a particular class (in an external dll) from my plugin, I get an error. I tried watching the instance and...
stackexchange/codereview
So having buffer with RGBRGBRGB... size of w*3 how to fill OpenCV Image with such data?
stackexchange/codereview
How would I send an SMS to a user using a Kynetx App and Twilio?
stackexchange/codereview
I have a Telerik RAD Editor in a user control, so I can set defaults in one place to enable me to reuse the control where ever I need a rich text editor. When I add it to a page I want to validate the content property of the editor by using a RequiredFieldValidator control to ensure that the editor has content. When...
stackexchange/codereview
This may be a stupid question, but how does the efficiency of a while loop compare to that of a for loop? I've always been taught that if you can use a for loop, then I should. But what actually is the difference between : $i = 0; while($i < 100) { echo $i; $i++; } compare to: for($i = 0; $i < 100; $i++) ...
stackexchange/codereview
Two JSF/JSF pages and associated managed beans in two separate projects (maybe different servers) Name them PageA.jsp and PageB.jsp with BackingBeanA.java and BackingBeanB.java (again, separate projects) Desire is to redirect from PageA.jsp to PageB.jsp and pass an object (FilterData) The following was tried: BackingBe...
stackexchange/codereview
I've inherited the task of maintaining a very poorly-coded e-commerce site and I'm working on refactoring a lot of the code and trying to fix ongoing bugs. Every database insert (adding an item to cart, etc.) begins with a grab_new_id function which COUNTs the number of rows in the table, then, starting with that numbe...
stackexchange/codereview
This is merely for curiosity sake because I have not used new and delete in c++ except for the most basic uses. I know that delete releases memory. The thing I'm wondering is how does it handle more complex cases? For instance, if I have a user-defined class like this: class MyClass { public: MyClass(); ~MyClas...
stackexchange/codereview
I have collection of object that contain several properties. I need to update this object list in the data base, now, i am looking for the best way to do it. Until now i use to work with xml, i created xml structure from the object list and send it to the data base and in the data base i parsed the xml and insert/updat...
stackexchange/codereview
Is it possible to create a project template containing three projects? I've built a sample project for my client which contains the basic structure for all their new applications. It would be sweet to be able to create a project template from it to make everything a lot easier. Projects in the solution ProjectName.Abs...
stackexchange/codereview
Hey. Is it possible to send a packet from a C# application without using sockets? I'd like to use WebClient or HttpWebRequest in order to send specifically formatted packets to a server. Examples I've seen tend to use UDP client. Thanks
stackexchange/codereview
I have a WPF application that has a light and a switch. When I press the switch the switch and light should change to its "ON" image and when I press again they should change to their "OFF" images. I have a single restriction: I can only do this strictly in XAML and therfore no code-behind files. The way I do this is t...
stackexchange/codereview
Indian landline phone numbers are in one of the following format. 080 25478965 0416-2565478 08172-268032 Whats the simplest Regex to accommodate all these. The space between the city code and the phone number can be a whitespace or a "-". It would be great if the regex can accommodate the case without the separator be...
stackexchange/codereview
It it possible to do frozen header line in GridView ? I'm using VS 2010, c#. TY
stackexchange/codereview
I learnt from Google that Internationalization is the process by which I can make my web application to use all languages. I want to understand Unicode for the process of internationalization, so I learnt about Unicode from here and there. I am able to understand about Unicode that how a charset set in encoded to byte...
stackexchange/codereview
I have two circles which move around the screen. The circles are both UIViews which contain other UIViews. The area outside each circle is transparent. I have written a function to create a CGPath which connects the two circles with a quadrilateral shape. I fill this path in a transparent CALayer which spans the ent...
stackexchange/codereview
In a WSE3.0 web service, in order for me to call any methods of the web service I needed to set the client credentials to a UsernameToken object. How is this done from the client application for a WCF service?
stackexchange/codereview
I'm using WinHTTP to send data to a web server script and in some cases I need the server to kill the incoming data (as it is not required) but still return a response to the client app. I'm using stream_socket_shutdown(STREAM_SHUT_RD) from the server end to end the incoming data, then sending a response back as normal...
stackexchange/codereview
I'm adding a subview to the UiView of my mainviewcontroller, that is presented in a similar way as a UIModalViewController with the Formsheet-style. (so it doesn't fill teh whole screen) No if the device rotates the subview somehow gets resized to fill the whole mainview... Even if I manually set: subViewCtrl.view.auto...
stackexchange/codereview
I have a bounding box, and a number of points inside of it. I'd like to add another point whose location is farthest away from any previously-added points, as well as far away from the edges of the box. Is there a common solution for this sort of thing? Thanks!
stackexchange/codereview
Is it true that Flash p2p cannot be done without Cirrus/LiveCycle Collaboration Service? I've seen a similar question on SO and it is claimed there that it cannot be done. So, why not? Also, I've seen comrade back2dos had some thoughts on the problem, but he was downvoted, so I am wondering whether he's right?
stackexchange/codereview
Suppose I have a foo.txt file with the following content: [2010-11-13 12:00:02,656] [2010-11-13 12:00:02,701] [2010-11-13 12:00:02,902] When I ack for the date portion with the following, it works: ack "(?P<foo>\d{4}-\d{2}-\d{2})" foo.txt --output "\$1" 2010-11-13 2010-11-13 2010-11-13 But when I try to use --output...
stackexchange/codereview
I Have two views(scrollview and topview) on a window each of frame (0,0,320,480), [window addsubview:scrollview]; [window addsubview:topview]; In scrollview i am doing zooming,pinching operation and in topview view i have placed some buttons. My problem is i want to handle touches to both views like user can do pinch...
stackexchange/codereview
I have a SP which in current format doesn't work properly, it doesn't return all the rows and when I am including some values doesn't return any values. Here is the SP: SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[AdvancedSearch] ( @StartTime datetime = null, @EndTime datetime = null, @Custom...
stackexchange/codereview
$lastid_id = mysql_insert_id(); $folderpath = "Attachment/".$lastid_id."".$fileatt_name; if ($uploaded) { copy($uploaded,$folderpath); } else { if (move_uploaded_file($_FILES["attachcopy"]["tmp_name"],$folderpath)) { $uploaded = $folderpath; } } Above coding works well in local system but ...
stackexchange/codereview
I have a problem with showing a <rich:modalPanel> more than once. I have a form that has a <a4j:commandlink onclick="#{rich:component('mp')}.show()" (have also tried a rich:componentControl). This approach works fine once. Inside the modal panel I have a new form with some action attached to the submit button(a4j:comma...
stackexchange/codereview
I am struggling with Log4J and isDebugEnabled() method. When I execute: package org.test; import org.apache.log4j.Level; import org.apache.log4j.Logger; public class Test { public static Logger logger = Logger.getLogger(Test.class.getName()); public static void main(String[] args) { (new Test()).test(); } public vo...
stackexchange/codereview
I have created a form using HTML codes. I would like to do something like... prompting the user to type something into the form. For example, before I actually typed something in this box, the title actually prompted for:"What's your programming question? Be specific.". I would like to do something like this, how can I...
stackexchange/codereview
In Ruby 1.9.2, I found a way to make two strings that have the same bytes, same encoding, and are equal, but they have a different length and different characters returned by []. Is this a bug? If it is not a bug, then I'd like to fully understand it. What kind of information is stored inside Ruby 1.9.2 String object...
stackexchange/codereview
I would like to pass the value of an HTML tag to a jQuery alert box, but I'm not getting any luck. I basically want to pass either "1" or "2" to the alert box. I keep getting "undefined" in the alert box. <button class="up" value="1"> <button class="down" value="2"> $(document).ready(function(){ $(".up,.down").cli...
stackexchange/codereview
I have some code that looks similar to the following: #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/errno.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <stdarg.h> #include <sys/ldr.h> int main (int argc, char **argv) { int ...
stackexchange/codereview
I want to insert an alt tag in the following lines of jsp code how do I accomplish this? <li class="carousel-promo"> <div> <c:choose> <c:when test="${mediaType eq 3}"> <dsp:valueof param="media.data" valueishtml="true"/> </c:when> <c:when test="${mediaType eq 1}"> <dsp:getvalueof var="imgURL" param="media.u...
stackexchange/codereview
I have a code which looks like this:- <li><span id="readmon"></span></li> I am changing the innerHTML of the above tag somehow and when it is changed I want to call a function, so I do a dojo.connect like this:- dojo.connect(dojo.byId('readmon'),"onchange",netincome); But I find that even though the innerHTML of the ...
stackexchange/codereview
I've seen this posted alot that solves the problem if you are running ASP.Net application not a MVC 2 one in IIS 7.5. Would the same solution work using location in the web.config and 2 seperate login pages like it does for asp.net? Do you need to register a new route to do that? I know it would work with 2 seperat...
stackexchange/codereview
I'm using Core Motion and would like to count rotations, so if i place the iphone on the table and start to rotate it clockwise and do 360 degrees, i would get 1 rotation. What should i use from Core Motion, yaw, roll, pitch, gravity, rotationMatrix or ? Please help me. Cheers.
stackexchange/codereview
I want to create a number of objects of a class, but this number won't be known until runtime. Intuition tells me that I should use the following loop to create my objects: for (int count = 0; count < no_of_objects; count ++) { ClassName object_name[count] } This, however does not work as the compiler doesn't app...
stackexchange/codereview
Is there any fixed or known location for storing certificates in Linux, something like the Windows certificate store? Thanks.
stackexchange/codereview
I want to have a build number "hardwired" (compile-time constant) into a class, for example: public class Domain { public string Build { get { return "CONST-BUILD-VERSION-HERE"; } } ... } How can I accomplish this?
stackexchange/codereview
Test.xml: <?xml version="1.0" encoding="UTF-8"?> <node>line1 line2 line3</node> CF code: <cfset xmlfile = ExpandPath("test.xml")> <cffile action="read" file="#xmlfile#" variable="xmlstring"> <cffile action="write" file="test1.xml" output="#xmlstring#"> <cfset xmldoc = XmlParse(xmlstring)> <cfset xmltext = ToString(x...
stackexchange/codereview
I have a JPEG image which is JFIF formatted. I want to decode it and get the dimension. Here is my code: while (binaryReader.ReadByte() == 0xff) { byte marker = binaryReader.ReadByte(); ushort chunkLength = binaryReader.ReadLittleEndianInt16(); if (marker == 0xc0) ...
stackexchange/codereview
Using SQLServer 2008. Example multi-statement TVF : CREATE TABLE DBO.DECTEST (ID INT NOT NULL PRIMARY KEY, V1 DECIMAL(18,6) NOT NULL, V2 DECIMAL(18,6) NOT NULL) INSERT DECTEST VALUES (1, 23.1234, 25.22) GO DROP FUNCTION DBO.F_DECTEST1 GO CREATE FUNCTION DBO.F_DECTEST1 ( @ID INT ) RETURNS @RESULT TABLE ( V1 ...
stackexchange/codereview
I have setup the acts-as-taggable-on gem on Rails 3.0.3 and Ruby 1.9.2. The tagging is working as expected but the taggings table is not capturing the tagger_id. Here is what I have setup: class Course < ActiveRecord::Base # attr_accessible :title, :description, :duration, :format acts_as_taggable class User < ...
stackexchange/codereview
i wrote a java program to connect with google talk using smack api connection and sending receiving messages are working fine then how can i get the chat history using smack api there is one method AgentchatHistory in smack but how can i use it
stackexchange/codereview
I have a form and as of right now, you can type any javascript, etc. you want. Any XSS, etc. How do I go about creating a whitelist so you can only post characters. At some point I would like anything that starts with http:// to be converted to <a href="http://..."></a> Thanks Is this efficient? http://htmlpurifier.or...
stackexchange/codereview
I have index view create a view on Table1 and Table2 and ID is the clustered in Table1 create view VwTestView with schemabinding as Select t1.ID,t1.col1,t1.col2,t2.col1,t2.col2 from from Table1 t1 join Table2 t2 on (t1.ID=t2.ID) go create unique clustered index VwIX_ID on VwTestView (ID) My question is,Is the index V...
stackexchange/codereview
I've got a function that scrolls down to the next section of an article when the down arrow on the keyboard is pressed and scrolls up when the up arrow is pressed. Its working fine, however there is a slight "bounce" or "jitter" just before it scrolls. I was able to partial fix for this problem by having the function ...
stackexchange/codereview
Possible Duplicate: FAQ : Undefined Behavior and Sequence Points In C++ there are expressions which look very ugly and bizarre. I was going through an article on a local community and found this expression i = (i, ++i,i) + i; there. Is it expression fine or does it have some kind of problem? i is of a primitive type...
stackexchange/codereview
Let's say we have a parametric curve, for example a circle: x = r * cos(t) y = r * sin(t) We want to plot the curve on the screen in a way that: every pixel is painted just once (the optimal part) there is a painted pixel for each (x, y) that lies on the curve (the continuous part) If we just plot (x, y) for ea...
stackexchange/codereview
How can i add the session to a fakeContext ? This function have we build for partial request where the content must be returned as a string. Only we don't have sessions now in the partial request. And i can't add them like fakeContext.Session = HttpContext.Current.Session Someone a suggestion ? ///<summary> ///...
stackexchange/codereview
I'm developing in python, still new to the game, and I want to make sure I tackle this problem correctly. I'll gladly accept all advice. Imagine trying to use data stored across multiple flat files, in many cases with a combined size exceeding 20-35 gb. In the most general case, these files may be delimited (csv, tab...
stackexchange/codereview
I have a folder in my Google Reader account called Test, with 200 items in. I only want to collect 20 items at a time. According to the docs I can add ?n=20 or ?count=20 to the url to get the first 20 items. But when I use this link http://www.google.com/reader/atom/user/-/label/Test?count=20 or http://www.google.com/...
stackexchange/codereview
I had my Apache 2.2 installed on windows. Now I just finished installing PHP on the Apache server. As the instruction says, I need to edit the httpd.conf of my Apache and add: # LoadModule php5_module "G:\Program Files\PHP\php5apache2_2.dll" AddHandler application/x-httpd-php .php PHPIniDir "G:\Program Files\PHP" I ...
stackexchange/codereview