instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm reading this article http://www.codeguru.com/Csharp/.NET/net_security/authentication/article.php/c7415/ I still don't understand the concept of "Principal" (why this name) what's difference with just Identity in common language ? For example in the tutorial I don't understand the distinction between UserIdentity an...
stackexchange/codereview
Is it possible for MSBuild to build an EXE from purely in-memory resources. For example, let's say I built a .csproj and a couple of forms and code-behind and saved to a memory stream, could MSBuild use these streams to build out an EXE? The purpose is that nothing is written to disk except the final EXE. If so, is the...
stackexchange/codereview
I have a form showing a gridview. The data is bound dynamically, depending on several options that the user clicks on. The populating data works fine (bound from dynamically created datasets). The problem lies, when I want to switch between displaying data whereby the tables/datasets contain different layouts. The ...
stackexchange/codereview
Im trying to copy some cells from one workbook-sheet to another workbook-sheet and preserve the style and formatting using C#. I can get the attributes one by one like this: string fontName = ((Excel.Range) workSheet.Cells[3, 2]).Font.Name.ToString(); But Im looking for at way to get it all at once. Thanks
stackexchange/codereview
I am interested in the layout of an executable and dynamic memory allocation using stack and how the processor and kernel together manage the stack region, like during function calls and other scenarios of using stack based memory allocation. Also how stack overflow and other hazards associated with this model occur, a...
stackexchange/codereview
Is there any way to retrieve username from this http://username@myapplication.com type of address in ASP.NET MVC (optionally in ASP.NET) from current request?
stackexchange/codereview
Using CSS I can get the iframe popup to have rounded corners in all browsers besides IE. I have tried to use a few jQuery plugins for rounded corners, and applying them to #fancybox-outer with no success. Does anyone please have a solution for rounded corners and fancybox (iframe) using IE. A demo would even be better!...
stackexchange/codereview
I have an existing android app. I added a simple widget to it using the following: updated my manifest with a <receiver> block which provides information about my AppWidgetProvider implementation added a new xml files in res/xml with a <appwidget-provider> element that contains the height/width/updatePeriod/initialLay...
stackexchange/codereview
I recently posted (and promptly deleted, when I decided the question was irrelevant to the actual problem) a question about SqlConnection losing its Database information when the scope of "ChangeDatabase" ends. Example: //Other code... dbConn = new SqlConnection(dbConnBuilder.ConnectionString); dbConn.Open...
stackexchange/codereview
class CustomerClass < ActiveRecord class << self attr_reader :lov end attr_reader :lov1 end What is the diffrence between attr_reader lov and lov1 ?
stackexchange/codereview
I have the following table row on my .aspx page: <tr> <td valign="bottom" style="width: 157px">Initial Requirements:&nbsp;&nbsp;&nbsp;&nbsp;</td> <asp:Repeater ID="Repeater11" runat="server" DataSourceID="ObjectDataSource1"> <ItemTemplate> <td valign="bottom" id="ReqStatus" runat="ser...
stackexchange/codereview
I've googled and tried a number of ways to do this but none work for me so far. What I am looking for is quite simple: I want to be able to tell whether a dropdown has a selected value or not. The problem is that selectedIndex, :selected, val(), etc. do return results for the following case: <select> <option value="123...
stackexchange/codereview
Edit #2 I've found the solution, it was more simple than I could have hoped. Thanks for your time. =) (Answered my own question with full solution) Edit: My apologies that my post was not transparent enough.. I will try to iterate for a little more clarity. I am not simply trying to contain things and have the containe...
stackexchange/codereview
Can someone show me code that takes an image from a server and puts it into an image on the iPhone to display in a program. In particular, let's say my ftp server is at mydomain.com and my username is "name" and password is "password" What would the code look like to take an image called "hello.png" of size 25x25 sitti...
stackexchange/codereview
Using the resource routes, you can do things like url_for(@apple) to get a url to that particular resources "show" method. However, in testing, using Mocha to mock up my objects, I'm having trouble generating the appropriate path to the resource. E.g. Consider this example of how url_for routes: @apple.id # => 4 url_fo...
stackexchange/codereview
I'm writing a simple mail client in Perl, that uses SMTP to log in a Mail server, and from there sends a mail to another E-mail address (on different host). I use raw SMTP commands, because strawberry perl doesn't come with SASL.pm which is needed in order to authenticate. However, when the script tries to authenticate...
stackexchange/codereview
I have this jQuery plugin called Easy Slider which I'm implementing on this site which displays featured content in animated slide format. If you visit the site, you'll see there's a basic implementation on the home page, and a little more tweaked version on the Rods page. On the Rods page it's just that I'm using 11 i...
stackexchange/codereview
I'm writing a plugin system: every plugin is in his own assembly that must be loaded by autofac and is signed by an attribute with a parameter that set the type of plugin. I would be able to resolve in my asp.net mvc app the plugins by type, how can I do this? Every plugin inhrerit by an abstract class and override pre...
stackexchange/codereview
Given two byte arrays of data captured from a microphone, how can I determine which one has more spikes in noise? I would assume there is an algorithm I can apply to the data, but I have no idea where to start. Getting down to it, I need to be able to determine when a baby is crying vs ambient noise in the room. If it ...
stackexchange/codereview
I'm trying out a few pygtk tutorials and have run across a seemingly obvious newbie mistake, but for the life of me can't figure out what's going on here. The error: Traceback (most recent call last): File "main.py", line 8, in class Base: File "main.py", line 61, in Base cv.set_line_width(9) NameError: ...
stackexchange/codereview
As describe this article, about usage of using on IDisposable objects, it says one interesting words: ...using block, the Dispose method is automatically called sometime after the block ends. (It may not be immediate; it depends on the CLR.) Interesting here is "It may not be immediate; it depends on the CLR". Can an...
stackexchange/codereview
I use a code that works fine but here's the last scriptlets in my jsp : <% List listMillesime= MultiMillesimeFactory.getInstance().getListMillesimeActif(); pageContext.setAttribute("listMillesime",listMillesime); %> ... <c:forEach var="millesime" items="${listMillesime}"> ... </c:forEach> Here is the factory ...
stackexchange/codereview
I have a question about the errorPlacement Method in jQuery Validator Plug-in: I want to put an Error Message in a div. Before i continue... Yeah, the code is horrible, i'm working in a project that isn't mine, without documentation or anything that i help me. But i cannot write from zero all the webpage. Ok, let's con...
stackexchange/codereview
I want to be able to call a method and then, either wait for the method to finish doing it's thing and then invoke the next method call, OR call a method, wait a certain amount of time and then invoke the next method. Any thoughts on how I would do that? Example: [self method1]; //wait for method1 to finish whatever it...
stackexchange/codereview
I am in an "internal" IT shop and we currently use ClearCase for version management. Our branching strategy is common for this with the main branch being reserved for live code and branching off main for project and hotfix type activities. Each project (and they overlap often) has a branch off main, we don't have mul...
stackexchange/codereview
Consider a classic LDAP usage for authentication and consequent calls to check if the user has rights to access an object accessible to groups "foo", "bar" and "baz". I am wondering if I am allowed to persist exact role names, i.e. "foo", "bar" and "baz" and then make CurrentUser.IsInRole("Foo") || CurrentUser.IsInRo...
stackexchange/codereview
I have some block views in my sidebar that show events marked as a highlight happening in certain cities. Nodes are organized into cities using taxonomy. When I load a node directly I have an URL like www.host.com/events/new-york/name-of-my-nice-event I have some other page views that show teasers for all events in a c...
stackexchange/codereview
I compiled and ran the source code below successfully by omitting the totalFee field. How do I write totalFee into this program so that it will accurately calculate the total fee for each job (rate * time)? Below, you'll see I tried using a method; which generated the error CS0051 (Inconsistent accessibility: parameter...
stackexchange/codereview
Note: See the bottom of this post for the solution. I'm trying to use XAML's "HierarchicalDataTemplate" to display an xml document in a TreeView. My current XAML code will display the first child of the "Parent" node but not subsequent child nodes of different types. Can I use XAML to display children of different typ...
stackexchange/codereview
I am using this in - (UITableViewCell *)tableView:(UITableView *)atable cellForRowAtIndexPath:(NSIndexPath *)indexPath { UIImage *image = [[UIImage alloc] imageNamed:@"arrow.jpg"]; cell.imageView.image = image; return cell; } cell.imageView.image is throwing error..
stackexchange/codereview
what is the best way to detect the country code of a website ? 1) looking at the domain registration info 2) ip range 3) domain extension ... UPDATE : this information (country codes) will be used to built a search engine for the web of a given country.
stackexchange/codereview
NSOperation thread running in background, causes a UITableView or UIScrollView or UIWebView scrolling rough(Not smooth as it would be usually.) How can i solve this problem ?? There is no connection between UITableView datasource and delegates and thread which is running in background. Both uses independent resourc...
stackexchange/codereview
I need to find Desktop Information Soft... For example: web-store, after receiving an order => the program must alert manager... Ideal is... program need to periodically requests an php-script for new orders, and if it was => inform a manager UPD. I'm finding something like "reach inform application", with server side ...
stackexchange/codereview
I have a php variable that needs to be interpreted in javascript how do i do this var cntr = "<?php echo $j;?>"; var opt = "<?php echo $options;?>"; var opt_selected = "<?php echo get_options($val['SOMEVARIABLE'],$opt); ?>"; var reference = "<?php echo $val["RFDREFVAL"];?>"; How do i correct the above statements iam ...
stackexchange/codereview
I have a WinForm application which hosts many images. When I put the application on a Win7 machines that has a DPI of 120, it completely ruins the look of the form. Is there a way to disable the scaling for my form? I am aware that this is something that is not advised and that DPI should be seamless and handled by the...
stackexchange/codereview
Hi I'm trying to use the CakePHP comments plugin found here http://cakedc.com/downloads/view/cakephp_comments_plugin but the instructions are really hard to follow. I've managed to add comments but it's displaying the commentWidget that's not working. I'm getting confused at this part i think To work properly, the c...
stackexchange/codereview
I have the following html markup: <div class='photoset'> <a href="foo-01.html"><img src="foo-01.jpg" /></a> <a href="foo-02.html"><img src="foo-02.jpg" /></a> <a href="foo-03.html"><img src="foo-03.jpg" /></a> <a href="foo-04.html"><img src="foo-04.jpg" /></a> </div> I want to manuipulate the DOM so that the...
stackexchange/codereview
I am using the TFS PowerTools Cmdlets in PowerShell to try to get at some information about Changesets and related WorkItems from my server. I have boiled the problem down to behavior I don't understand and I am hoping it is not TFS specific (so someone out there might be able to explain the problem to me :) ) Here's t...
stackexchange/codereview
I have a char array of text, want to store the alphanumeric lowercase value in a pointer array. ie mystr should point to a char[] of "50sometexthere" char[] myline = " 50 Some Text Here "; char *mystr = (char *)malloc(128 * sizeof(char)); char *tmp = myline; while (*tmp != '\0'){ if (isalnum(*tmp)) strcat(mystr,(...
stackexchange/codereview
I've been reading some Java socket code snippet and fonund out a fact that in socket communication, to send messages in sequence, you don't have to seperate them by hand, the writer/reader stream do the things automatically for you. Here is an example: writer.java writeUTF("Hello"); writeUTF("World"); reader.java Str...
stackexchange/codereview
I am newbie in python, i have to extract values from a string: str='x:10 y:12 time : 01/01/2010 11:55:55' now i have to create a dictionary in which value is stored in such a way that: x=10 y=12 time=01/01/2010 11:55:55 Please let me know how to do this?
stackexchange/codereview
we recently had our SVN repository disappear from the server hosting it. We still haven't figured out how it happened, but we had a semi-recent backup which we were able to use to recover the repository. We didn't lose any work (everyone had back ups of their most recent changes on their hard drives) but the revision...
stackexchange/codereview
I have a form that allows the user to perform a myriad of searches. The table(s) that need to be joined differ depending on the search criteria entered. (My example below is very simplistic because both tables use the same sub-tables to join on, but the actual problem is not as simple.) I've been using a technique I ...
stackexchange/codereview
I have a readonly xml file and I have a set of xpath values. I need to create a function which would take in the xpath and return the value(s) corresponding to the xpath. I am a little confused regarding what would be the best way to proceed. The options I am thinking are using the regular XPathDocument/Navigator/Itera...
stackexchange/codereview
I want to implement some image-processing algorithms which are intended to run on a beagleboard. These algorithms use convolutions extensively. I'm trying to find a good C implementation for 2D convolution (probably using the Fast Fourier Transform). I also want the algorithm to be able to run on the beagleboard's DSP,...
stackexchange/codereview
I am using C# with Selenium 2.0 / Webdriver and I'm trying to simulate a double click on a table row that opens a new browser window. I have two problems: After locating the table row which has a unique classname (i.e. using findelement(By.classname("..."))) applying the click method (or select/submit) does not perfo...
stackexchange/codereview
I am working on building an android app but I'm nothing that my SQL operations are taking forever to complete I have profiled the app to narrow it down to the act of moving the Cursor to the first row of the result set for a simple select query (only returning 1 row where I'm testing it to eliminate the size of the res...
stackexchange/codereview
I've been working on a WPF application that uses WCF to access the server side logic & database. I started with a single WCF client proxy object that I was using repeatedly to call methods on the server. After using the proxy for a while, the server would eventually throw an exception: System.ServiceModel.EndpointNot...
stackexchange/codereview
I am using Adobe Flash CS3 with Actionscript 3.0. What are the different ways to add scripts to a project except adding the script to a new keyframe?
stackexchange/codereview
I have declared an UIImageView as an IBOutlet and I am setting the image of the imageView as follows in viewDidLoad method imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL: [NSURL URLWithString: [productProperties objectForKey:@"image"]]]]; But this image doesn't show up at all. productPrope...
stackexchange/codereview
Basically I have this scenario going on: //in interface header @property(nonatomic,retain)OtherClass *otherClass; //implementation - (id)initWithOtherClassInstance:(OtherClass*)otherClass { if (self != [super init]) return self; self.otherClass = otherClass; return self; } - (void)dealloc...
stackexchange/codereview
I need to track user current location with realtime refreshrate I have one function with two solutions for that. - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { # ifdef Variant_1 if(m_currentLocation) [m_Map rem...
stackexchange/codereview
I receive from network Broadcast SMS with 88 bytes of data, even if I has sent 10 bytes. I want to know the structure of these 88 bytes. Where in those data is the data itself and where is header? Shmuel
stackexchange/codereview
I have hash defined like this: var props = { id: null, title: null, status: null }; I'd like to define setter for status field (and only for it) doing it as following: props.__defineSetter__("status", function(val){ //Checking correctness of val... status = val; }); But it doesn't work :( So, what...
stackexchange/codereview
i am loading two divs in a page: divA and divB i have divB display style = none. I have a link that says "Show viewB". When i click this i want div B to show up where divA is and divA to hide. i then want the link to change to "Show viewA" what is the most elegant way of doing this in jquery?
stackexchange/codereview
I have created a static and dynamic library that I want to distribute. How should I make my .deb file so the headers are put in /usr/include/, the libraries in /usr/lib/, etc.
stackexchange/codereview
I would like to create 2 HTTP requests on the same connection (HTTP persistent connection). I'm using HttpWebRequest: WebRequest request = HttpWebRequest.Create("http://localhost:14890/Service1/3"); WebResponse response = request.GetResponse(); byte[] buffer = new byte[1024]; int x = re...
stackexchange/codereview
Have been trying out Web2Py for a couple of days now and I decided it to be a keeper. But there is one thing that concerns me a lot and that might be a showstopper in the end. I need a nice development environment & setup I can trust and be productive with. Coming from the MS Visual Studio world I'm looking for somethi...
stackexchange/codereview
what is the best practice to overload == operator that compares two instances of the same class when it comes to null reference comparison? MyObject o1 = null; MyObject o2 = null; if (o1 == o2) ... static bool operator == (MyClass o1, MyClass o2) { // ooops! this way leads toward recursion with stackoverflow as th...
stackexchange/codereview
Possible Duplicate: Hibernate: different object with the same identifier value was already associated with the session I tried to save two entity once: session=....getCurrentSession(); Book bo1=new Book(); bo1.setName("name1"); session.save(bo1); Book bo2=new Book(); bo2.setName("name2"); session.save(bo2); Then ...
stackexchange/codereview
I'm pondering the design of an application where the main feature revolves around the ability to find the set of all sets which are subsets of a given set. For example, given the input set A={1,2,3...50} and the set of sets B={ B1={3,5,9,12}, B2={1,6,100,123,45} ... B500={8,67,450} }, return all Bs which are a subset o...
stackexchange/codereview
I have the following models: class User < ActiveRecord::Base has_many :permissions has_many :tasks, :through => :permissions class Task < ActiveRecord::Base has_many :permissions has_many :users, :through => :permissions class Permission < ActiveRecord::Base belongs_to :task belongs_to :user I want to be...
stackexchange/codereview
I am storing a bigint value (for file sizes) in a table. I need to group on one column and for the filesizes (which are in bytes). I would like to have a column showing them by GB. This would mean Sum(FileSize/1024/1024/1024) which is not showing any decimal places. My research seems to indicate this may be due to ...
stackexchange/codereview
I know how to use the global variables when they are defined in a class, but I have a global variable in a main. If I want to use it inside a class, which would be the import to access it? My main is something like this Main.py: from EvolutionaryAlgorithm import EvolutionaryAlgorithm initialTimeMain = 0 if __name__ ==...
stackexchange/codereview
I am trying to determine the global coordinates of the visible rectangle that is currently rendered on the stage. Specifically, if a canvas has an explicit height and width and is a child of a panel that has a scrollbar, the scrollbar can "hide" a part of the canvas. ContentToGlobal(x,y) provides the global position of...
stackexchange/codereview
I have a class called "Orders" that has the property of "City" among others. I am trying to write a LINQ statement that will get all the distinct cities from a list of orders and return them as a list of strings. Here is what I have now. public List<string> GetOrderCities(List<Order> orders) { IEnumerable<string> ci...
stackexchange/codereview
I am using ajax to load pages on my website. Each time a page is loaded I change the url in the browser to http//www.example.com/old/page/#!/new/page/ by setting it through window.loaction using javascript Now what I want to do is when someone comes to my website by entering the url http//www.example.com/old/page/#!/n...
stackexchange/codereview
I have added a custom button, with url + javascript by chaning the isv xml file, as described on http://msdn.microsoft.com/en-us/library/cc150860.aspx and all works fine. However, when I try and replace the file in the /ISV/ folder, it behaves the same as the original copy, I assume this is caching related. However,...
stackexchange/codereview
Does anybody knows any details about this file? Is it for example safe to exclude this file from SVN? I would say that it should not be problem because when I delete this file, I can still load the XFL and the file is created again on the next save.
stackexchange/codereview
How can I avoid a full table scan on mysql?
stackexchange/codereview
I have a view that contains a button and a textview. When the button is clicked, the textview's hidden status will change and be shown on the view. Springs and struts have been configured so the textview expands vertically with the view. All this is done in IB I then insert text into the textview programmatically, but ...
stackexchange/codereview
I want to declare an array with element-type of a variant record. Something like this: type myStruct (theType : vehicleType) is record ... when car => numOfWheels : Positive; when others => null; end record; myArray : array (Positive range <>) of myStruct; But in this case I get error. It only allows this: myArray : ...
stackexchange/codereview
i'm wondering how can i "sync" the speed (obviously, to the less fast) of different PC ? My is a 2d racing game, written in C# + SDL.NET. How to "move" object on screen at the "same" speed on all PCs sending "state" variable only 3 times per second (for instance) ? Thanks
stackexchange/codereview
I just spent too much time of my day trying to figure out some errors when hooking up some JNDI factory bean. The problem turned out to be that instead of this... <bean id="someId" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="java:comp/env/jdbc/loc"/> </bean> I had actuall...
stackexchange/codereview
In IE, the 'title1' and 'title2' are aligned more to the left than they are in FireFox? Can anyone see from the below code, why this is? It's important I have them at exactly the same points because the next elements require for them to be align (so the user can make sense of the displayed information!) <div class='con...
stackexchange/codereview
I'm trying to integration test a class that uses the Mail Plugin. When I run my test (grails test-app -integration EmailerIntegration) I get the error: Could not locate mail body layouts/_email. Is it in a plugin? If so you must pass the plugin name in the [plugin] variable Is there some initialization code I'm missin...
stackexchange/codereview
I made some tests to compare and measure speed of both functions. is_file seems to be several times faster (I used 10000 iterations for both) than file_exists . I wonder if PHP or OS use some cache for these functions or does is always access HDD ? I think no, but I wonder... I used this code: <?php $time = microtime()...
stackexchange/codereview
i am trying to unzip a file in my iphone app, i searched it on google and found this http://github.com/tastefulworks/twziparchive but it says to add libz library into your project but i am not able to find this library. Can anybody have any idea about this or any other helpful link to perform unzipping. Thanks,
stackexchange/codereview
I need to create an excel file with simple text data. Concretely, it will allocate a list (one per cell) of email addresses. Data volume will be aprox 200000, so, I want to format it in, at least, 4 sheets (same book). This is because I need to be able to open the file in old Excel versions (max 65536 rows per sheet). ...
stackexchange/codereview
I am currently looking into ways of generating one way hashes to share sensitive information like passwords to a web application backend. Based on the documentation I cannot find any hashing algorithms that are supported by android OS that are larger than 512. Are there any 1024 bit hashing algorithms for android?
stackexchange/codereview
I have a web-based application that allows users to create their own complicated queries using a simplified scripting language and GUI. Problem is - sometimes my users are well, not so bright. Often, they'll create a query that does massive joins, or employs pointless comparisons over large datasets that quickly consum...
stackexchange/codereview
I am developing a web app that is served from domain.ext. This web app uses cookie–based sessions and provides users with the ability to host a web pages containing custom JavaScript on a subdomain, ex. sub1.domain.ext, sub2.domain.ext. The subdomains do not use cookie–backed sessions. Given this setup, is it possible ...
stackexchange/codereview
I am using Wicket and would like to create a grid of radio buttons using HTML, as shown below (outer lists will be displayed vertically, inner lists will be displayed horizontally). The number of groups is variable - could be ABC, ABCD, ABCDE etc. I would like the radio buttons grouped vertically. <ul> <li> <ul...
stackexchange/codereview
I check RSS feeds more often than I should, so I built an application that delays my RSS feeds between midnight and 5 PM, so I don't check them (see http://rssafter5.appspot.com). I take an RSS feed as input and create a custom feed on my domain that doesn't check the source feed until 5PM every day (and hence doesn't ...
stackexchange/codereview
On my controller I have the following Action: public function indexAction() { $teamDao = new TeamsDao(); return $teamDao->showName(3); } So, I'm returning this team name, and my question is, how can I display this team name on the view ? Thanks a lot, MEM
stackexchange/codereview
I have a django model like so: class Profile_Tag(models.Model): profile = models.ForeignKey(Profile) tag = models.ForeignKey(Tag) and a view like so: pts = Profile_Tag.objects.all() for pt in pts: print pt.profile.id is there any way to access the profile foreignKey without hitting the database each time?...
stackexchange/codereview
In a typical web framework func viewHomepage() response.write(template.render("a string variable", ["an", "array"])) is a fairly standard way of calling a templating engine and writing the output out. Obviously the situation is reversed in ASP.net, since the templating engine sits in front of the code. I am deali...
stackexchange/codereview
I have a matlab program where I am importing some arrays from excel. I am trying to write an if statement that looks in the first array, say: Thing-1 Thing-1 Thing-3 Thing-5 If a column is a "Thing-1", then it goes to a different array, and calculates 3 values that are to be given different variable names...an...
stackexchange/codereview
I'm trying to perform a memory optimization that should be theoretically possible but that I'm starting to doubt is within arm-elf-gcc's capability. Please show me that I'm wrong. I have an embedded system with a very small amount of main memory, and an even smaller amount of battery-backed nvram. I am storing checks...
stackexchange/codereview
Is there a way to get a list of all of the .cs files in a solution, and edit them using the vs2010 interface? im trying to develop an extension that will open up my code files, and tweak them automatically, and then resave them. Ive seen extensions do it before. If this is not possible, is it possible to get a list o...
stackexchange/codereview
My index.php contains a bunch of php and javascript code, and html formatted in CSS. I'm not very experienced with CSS, but I don't think it would affect the usability of this html form. Here is the index code: <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <ht...
stackexchange/codereview
i try to use notepad++ but it don't show syntax of function. how can i solve it or may be any else simple ide? try to use eclipse\netbeans but this is big monsters
stackexchange/codereview
I'm looking to disable the automatic session creation in Django for certain URLs. I have /api/* and each client that hits that gets a new Django session. Is there a way to ignore certain urls?
stackexchange/codereview
I am writing unit tests to test an MVC application. How can I validate my view models from a unit test?
stackexchange/codereview
i currently use the client side database on an html5 iphone webapp. In my code i need to check if a row is present in the local DB : function isStarted(oDB) { var ret = null; oDB.query(sql,params,function(transaction,result) { if(result.rows.length > 0 ) { ret = true; } else { ret = false; ...
stackexchange/codereview
My program takes two files with words sorted as parameter and performs the mixture into 1 single file called final_sorted.txt.the program runs successfully and creates the mixed file, even ignoring repeated words, but the compiler tells me some warnings that are not as removed. equipo01@equipo01-desktop:~/Escritorio/me...
stackexchange/codereview
I have an action method that takes several optional parameters. This ASP.NET MVC actionmethod looks simple enough but isn't working as I want.... [HttpPost] public ActionResult UpdateOrder(OrderItem OrderItem, Address ShippingAddress) { if (ShippingAddress != null) { // we have a shipping address } }...
stackexchange/codereview
I have a wpf datagrid with 2 columns (ProductID and Description). ProductID column is a combobox and the Description is a Textbox. On the SelectionChanged event of the ProductID, I want to assign a value to the Description column. I need to know how to assign the value to the Description textbox for the row of the c...
stackexchange/codereview
I am having a problem with rest and android, the problem is I have a transport object in example a class Human, which is extended by Male and Female, I want to use json as transport for the human object. if I use standard serialized objects, i would usually do if(human instanceof Male.class){} else if(human instance...
stackexchange/codereview
In WordPress 3 I've set up a static front page (called "Home"). I need to add a condition in my common header that will return true when viewing the main blog page. The built-in function is_page('blog') doesn't work for this, is_front_page() doesn't either and is_home() returns true on Home as expected. I could have s...
stackexchange/codereview