instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
This is my first question, so please be gentle with me :). I have tried to search for the answer, but I don't really know what the thing I'm after is called so can't formulate a decent search query. I'm after making the input forms on a database of online resources as user-friendly as possible, to encourage users to a...
stackexchange/codereview
Is there more elegant way to write the following? try { ... // Some throwing code return first } catch { case e:ExceptionType => {} // No code to execute. Ignore error. } return second
stackexchange/codereview
I am planning to move a game server of mine to Amazon EC2. Right now the actual server runs on .Net Framework 3.5 on a windows dedicated server. Since it is a personal side-project, it's quite expensive to have a fully dedicated server to that, therefore I would like to move it to the cloud (Amazon EC2 or maybe Windows...
stackexchange/codereview
I have a large poorly formed XML file where information related to a single line item is broken into multiple lines of information that I'm trying to group with the parent line item (ITEM_ID). The information is sequential so the key is the ITEM_ID node, but I can't seem to create the proper XSL needed to group the inf...
stackexchange/codereview
I'm trying to write a python script that takes in one or two xml files and outputs one or two new files based on the contents of the input files. I was trying to write this script using the minidom module. However, the input files contain a number of instances of the escape character inside node attributes. Unfortun...
stackexchange/codereview
I'm probably just being neurotic, but I regularly find myself in situations in which I have class that publishes an event, and I find it convenient to subscribe to this event from within the class itself (e.g. in the constructor), rather than only subscribing from external classes. This sounds reasonable to me, but I c...
stackexchange/codereview
I know this is not programming related question so to speak, but since we are programmers and we might use Netbeans for PHP development. I am wondering how can I get in Netbeans to update the comment block in front of a method, after I change the parameter set. I need to update it someway automatically, and to keep wha...
stackexchange/codereview
I need to have multiple databases for different customers. How can I handle multiple databases with Hibernate? Are there any good examples how to do this? I could create Configuration object and then build SessionFactory, but that would create always a new session factory which wouldn't be very wise. EDIT: Now I can ge...
stackexchange/codereview
Is there any smart way to abbreviate this obscenity? It works, but it's unreadable... int? myVal = r.IsDBNull(r.GetOrdinal("colName")) ? (int?)null : r.GetInt32(r.GetOrdinal("colName")); Thanks :)
stackexchange/codereview
Im looking for a recommendation for jQuery select box replacement. Ive previously used the one over at BrainFault ( http://www.brainfault.com/jquery-plugins/jquery-selectbox-replacement/ ). However, from using it and a little research into it, it is pretty bug ridden and would not recommended using it myself. Any advic...
stackexchange/codereview
The following problem has me stumped: I have a WinForms application which used to work just fine. On Windows7 however, my MainForm's "Load"-event handler is never invoked. I tried Googleing a bit and found suggestions for checking if the Event was correctly connected to the handler (it was), and secondly to try overrid...
stackexchange/codereview
I am actually seeking the multiMAPS benchmark source code written in C. It is a benchmark that measures memory bandwidth.. Did somebody heard about it?
stackexchange/codereview
I've been experimenting with a simple project that essentially just stores the number of visits to the sites, along with the latitude / longitude of the user (it's mainly for people visiting via the iPhones Safari browser). I've managed to store the 'clicks' to the page via PHP / MySQL, and I can display the users lat ...
stackexchange/codereview
I have a table with 3000 rows and 8 columns. I use the QTableView. To insert items I do: QStandardItem* vSItem = new QStandardItem(); vSItem->setText("Blabla"); mModel->setItem(row, column, vSItem); where mModel is QStandardItemModel. Everything is fine if I have not to many rows, but when I am trying to visualize bi...
stackexchange/codereview
I'd like to filter a Django queryset using an array as a constraint on a field. AKA, my array, for example, a set of primary keys. I want to get only the objects that would be in that array, like the query in SQL would be: SELECT * from table where id in [1,3,4,5,6....];
stackexchange/codereview
I have created dynamic controls in ASP.NET as following .. first i have created checkbox as CheckBox chkDynamic = new CheckBox(); Then TextBox txtDynamic = new TextBox(); txtDynamic.ID = "txtDynamic"; and these controls added in tablecell added in tableRow added in Table added in aspPanel(Only panel created at d...
stackexchange/codereview
I have a function that fires when the scroll bar hits the bottom. For some reason now, IE is firing the event twice. It wasn't doing it before. I don't have a duplicate function, and not have the JS declared twice. It's fine in Opera, FF, Chrome. I don't know why it's doing so in IE. Oh how I hate M$ and this troubleso...
stackexchange/codereview
I think every Python code has seen PEP 8. The part that sticks out to me is: Limit all lines to a maximum of 79 characters. I'm sitting here on a widescreen monitor and coding right across the screen. I'm not coding in a terminal and don't plan on coding in a terminal. I therefor have no problems with character-line l...
stackexchange/codereview
It's all in the title. Inspired by http://www.reddit.com/r/programming/comments/dx8au/lessons_from_evernotes_flight_from_net/ Edit: I am primarily thinking about desktop apps, not web apps.
stackexchange/codereview
i have no idea about the nokia app all i know it is used the c++ and QT SDK correct me if I am wrong. any references or book will be great. Thanks
stackexchange/codereview
I was wondering how would my PHP code look like when I do this?
stackexchange/codereview
(HTML) Let's say I have within fixed-width containers. Some of these headings will be longer than one line. I would like isolate these lines and do separate things to each line. Is there a way, with JavaScript, to calculate where the heading has broken to the next line and to for example put a span around each line?
stackexchange/codereview
To what extend do color depth and compression level of the original jpg and/or png images used as drawables have an effect on the app's UI performance, given the fact that all images are converted to bitmaps internally anyway. Especially considering i.e. images in list views for example. Same question goes for png vs....
stackexchange/codereview
I am able to build the ant file in eclipse. How to run the ant application through eclipse. Thanks.
stackexchange/codereview
if I have the following result sets: id, name 1, The Popper 2, Brittany 3, Fledgler 4, The Nightingale How do I sort them by name so that it disregards the "The" word and sorts the as follows: id, name 1, Britanny 2, Fledler 3, The Nightingale 4, The Popper Thanks in advance. I am using MySQL
stackexchange/codereview
I'm testing a function that obtains a skeleton object from one helper object, modifies it using a second helper, and passes the modified object back to the first helper. Something along the lines of: class ReadModifyUpdate(object): def __init__(self, store, modifier): self._store = store self._modif...
stackexchange/codereview
how to onnect Microsoft Access Database to visual c# for example: i make a database that have a table named "student" and fields " id , name " so i make a c# form that have 2 text boxs and a button "add" that add the contents of the two text box to the database bye
stackexchange/codereview
I have created a runnable Jar file of quite large dimension (125,000 kb). When I run it the application inside this jar file is not shown but in the Task Manager the javaw.exe (which should be linked to this jar file) process is running. Does anyone know what the problem is and how it may be overcome?
stackexchange/codereview
I have a bunch of 48x48 images that I need 16x16 versions of, and instead of storing the 16x16 versions, I want to resize them on the fly. My current code looks like this (model.icon() returns the 48x48 image): Icon icon = model.icon(); Image image = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), Buffered...
stackexchange/codereview
Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local se...
stackexchange/codereview
Could not understand methods 1 and 3 as to how it helps to achieve safe publication. Can anyone help me understand this with an example if possible. To publish an object safely, both the reference to the object and the object's state must be made visible to other threads at the same time. A properly constructe...
stackexchange/codereview
I initiate two buttons (I'm using the JQuery built in CSS themeroller): $( ".upArrow" ).button({ icons: {secondary:'ui-icon-circle-arrow-n'} }); $( ".downArrow" ).button({ icons: {secondary:'ui-icon-circle-arrow-s'} }); I want to be able to toggle between these two icons when clicking the same button, and somehow swit...
stackexchange/codereview
The code i have is: for key in keys: cursor.execute(""" ALTER TABLE segment_table ADD %s VARCHAR(40) """, key) I get a error telling me my syntax is wrong. When I replace the %s with a actual string the syntax error goes away. for key in keys: cursor.execute(""" ...
stackexchange/codereview
i know there a lot of topics discuss design patterns, and also every one would say each pattern has it pros & cons, and every one should choose the one that most suits his needs, but here i want from every expert to share his experience with design patterns, as for me i started a new application, and when starting in i...
stackexchange/codereview
I am running Ruby 1.9.2. I have rake 0.8.7 installed. However running rake inside a Rails application gives me the following: (in /usr/home/users/dimitar/Rails/spek) Could not find activesupport-3.0.1 in any of the sources Try running `bundle install`. So I go ahead and run bundle install again and everything looks go...
stackexchange/codereview
How do we dynamically set directives in php.ini from our code? We were asked this question in our exam. Is this a trick question? I thought we can't set directives directly like that and it requires restarting of Apache server. Thanks in advance:)
stackexchange/codereview
Update: I left the following javascript code in to show how the problem developed over time, but it turns out now this is NOT relevant as javascript is not the issue. Please take a look at the html/css code below. For an overview page with a large menu, I implemented the following function (most of which I stole from h...
stackexchange/codereview
Any ideas on how to Use Forms created in VB 6.0 in VB.NET ?
stackexchange/codereview
How to create different development and production configurations for devise gem in rails 3?
stackexchange/codereview
Is there an easy way to use a custom image for a checkbox? I'm looking to duplicate the "starred" behavior of gmail. So I want to have a checkbox that, when checked, is a filled in star. And when unchecked is an empty star. Do I have to use an imageview and do my own logic myself?
stackexchange/codereview
I just can not figure out the following code. int d = 5; float f = 3.8f; int ret = d*f; The ret is 18, not 19 as I expected. Why?
stackexchange/codereview
Canvas.addChild() insists any DisplayObject added implements IUIComponent. But I don't want my core graphics engine dependent on Flex. Is there an obvious/common way around this, to have simple graphical objects like Sprites & Shapes in a Flex application? The individual DisplayObject children I want to add as children...
stackexchange/codereview
ControlType = "System.Windows.Forms.WindowsFormsApplication1." + "PictureBox1"; System.Reflection.Assembly asm; asm = typeof(Form).Assembly; ControlObject = (System.Windows.Forms.Control)asm.CreateInstance(ControlType); ControlObject.Name = ControlName; The next code generated following exception for me: ControlObject...
stackexchange/codereview
Is SWT capable of showing an NSSheet like Quaqua simulates it using Swing?
stackexchange/codereview
I have a list table with 5 entries in it, the first column in the identity column (PK), within a parent table is a column that is related to this list table by ID (FK). I am using C# in a web app to run an ExecuteScalar with a stored procedure to insert the items into the parent table. This is within a SQL database LIS...
stackexchange/codereview
got a little problem here. I tried to implement some Javascript, which should add some client side functionality to an ASP Image component. Actually this image component is one of the DevExpress component, called "AspxBinaryImage". It's just a little modified ASP Image, with some more CSS and stuff, but the base is sti...
stackexchange/codereview
I'm using fancybox to display the contents of a div when clicking a link. This works using the code below: <a id="popupTrigger" href="#popup">popup trigger</a> <div style="display:none"> <div id="popup"> <asp:UpdatePanel ID="HerkomstCodeUpdatePanel" runat="server" UpdateMode="Conditional"> <Con...
stackexchange/codereview
Is there a function like join that returns List's data as a string of all the elements, joined by delimiter provided? List<String> join; .... String join = list.join('+"); // join == "Elem 1+Elem 2"; or one must use an iterator to manually glue the elements?
stackexchange/codereview
Dear, I'm facing a problem with HttpContext.Current.Session when I'm adding CustomUrlAuthorizationModule tag to web.config. Every time i'm adding the above tag to my web.config, HttpContext.Current.Session is null every time the page is rendered. PS: i'm using HttpContext.Current.Session from SQLSiteMapProvider class...
stackexchange/codereview
Some sites have tables which appends rows when you scroll the browser so that the bottom of the table is visible. Guess it's something like this: jQuery detects that the end of the table is visible in the browser $.getJSON is used to fetch the next rows from the server the rows are appended. Questions: How do I dete...
stackexchange/codereview
When working with ConcurrentLinkedQueue, how can I limit the size of the Queue. Is it possible that it will through outofmemory exception ?
stackexchange/codereview
Is there a feasible way to get my own code run whenever any class is loaded in Java, without forcing the user explicitly and manually loading all classes with a custom classloader? Without going too much into the details, whenever a class implementing a certain interface read its annotation that links it with another c...
stackexchange/codereview
Im dealing with code first .NET 4 and i'm having trouble with a 1 to 1 relation. breifing of database: -POccurrence -Id -POccurrenceRiskAssessment -OccurrenceId in my class Poccurrence I have a property named RiskAsessment, of the type POccurrenceRiskAssessment. Not all POccurrences have riskassessments, so it need...
stackexchange/codereview
I am using a custom php frame work . i use smarty template engine . i start create a form within the controller file and i introduce a form element in .tpl file using html_checkbox . But this element cannot be found when i submit the form . how do i make the .tpl content part of the form .
stackexchange/codereview
As of the documentation, there should be variables called "debug" and "sql_queries" usable in templates if all requirements are met. I have set the following (and checked their values with the debug toolbar): DEBUG = True TEMPLATE_DEBUG = True TEMPLATE_CONTEXT_PROCESSORS left at its default value (containing 'django.c...
stackexchange/codereview
I have a universal binary app for iPhone / iPad. In console I always get this log: UIStatusBarStyleBlackTranslucent is not available on this device. Ignoring UIStatusBarStyle key in Info.plist. Must I be worried about anything now? There's just one info.plist for both, right? How could I stop this log to happen? ...
stackexchange/codereview
I already know how to create shortcuts programmatically from my C# applications using IWshRuntimeLibrary and WshShellClass. Or I could use IShellLink. Now, if the user's PC is running Windows Vista or Windows 7, I would like to be able to set the "Run as administrator" property of that shortcut programmactically as we...
stackexchange/codereview
I am new to android. I am using a database to store my data. I also store date as TEXT in database. format of date is as follow... "Mon, 20 Oct 2010 12:30:00" So i stored them in TEXT datatype not in DateTime. Now i want to display them in following format "Mon, 20 Oct 2010" The main thing is that i want to ORDER the...
stackexchange/codereview
how to hide the Clock and Control Panel in Windows-CE 5.0 by C# code or any registry value ? thank's in advance
stackexchange/codereview
I'm using Sybase::CTlib to query a Sybase server. However when I execute the following: while( $dbr->ct_results($restype) == CS_SUCCEED ) { if( $restype == CS_CMD_FAIL ) { warn "Update Check Failed..."; next; } next unless $dbr->ct_fetchable($restype); $ts = $dbr->ct_fetch; } My query returns e...
stackexchange/codereview
We have a requirement, in which we need to create dynamic word document and these word documents contains Table, Chart, text and images to be replace/update dynamically. So we decided to create a template and place text holders at dynamic places. To create new document by reading and updating Template we decided to go ...
stackexchange/codereview
I have been trying to use properties instead of specific setters and getters in my app. They seem more pythonic and generally make my code more readable. More readable except for one issue: Typos. consider the following simple example (note, my properties actually do some processing even though the examples here just...
stackexchange/codereview
I have a User model which has friends (User.friends with a user_id/friend_id join table called followings). Each user has events (the events table has a user_id column). For an activity feed, I want to get an array with the last 20 events of the friends of the user. Right now I'm calling the last 20 events for each fri...
stackexchange/codereview
I want to declare a variable which holds a class which implements a specific interface. Specifically, I'm trying to store a SocketChannel and a DatagramChannel in the same property so I can use them interchangeably. Both of these classes extend SelectableChannel and also implement ByteChannel, and I wish to call meth...
stackexchange/codereview
I want to achieve maximum testability in my Google App Engine app which I'm writing in Python. Basically what I'm doing is creating an all-purpose base handler which inherits the google.appengine.ext.webapp.RequestHandler. My base handler will expose common functionality in my app such as repository functions, a sessio...
stackexchange/codereview
I'm trying to use the PopupManager class in a Flex3 AIR app to open different kinds of panels but I'm running into some problems with it. I'm using a method like the following with which all panels are opened .. private function createPopUp(clazz:Class, modal:Boolean = false):IFlexDisplayObject { var p:IFlexDisplayObj...
stackexchange/codereview
The link created by eRuby have the same? number every time I refresh. Such as <img alt="Auto" class="list-image" src="/images/auto.jpg?1287492558" /> the ?1287492558 And with it I can't load the thing with question marks and numbers. And I can load it as soon as I delete the thing. So as the style sheet that I load d...
stackexchange/codereview
I want to build application both for Widows Phone 7 and iPhone using .net stack. As being rationale I want to avoid to double code this logic. Is it possible to use resx files in both platform for this, or are there any good viable solution so I can reuse code base on both platforms? Any good advice or best practice if...
stackexchange/codereview
I have a stored procedure(SP) where one of it's param passes the operator. The operator can be: <=, >=, = How can I use this in the query? How the operators are passed is not built yet, it can be string represented <= or by using a custom code 1, 2 or 3. What do you think?
stackexchange/codereview
I want to develop the Nokia Apps. How to start? Where to start? Where will I get the details information ? What are the dev environment they supporting? Please help me.. Thanks in advance. I am a fresher to this one.
stackexchange/codereview
I have bitmap of 24*24 pixels, I want to resize the bitmap dynamically 48*48 pixels or 5*5 pixels. How to do this with out losing the information
stackexchange/codereview
I have a dataframe with millions of rows and three columns labeled Keywords, Impressions, Clicks. I'd like to add a column with values depending on the evaluation of this function: isType <- function(Impressions, Clicks) { if (Impressions >= 1 & Clicks >= 1){return("HasClicks")} else if (Impressions >=1 & Clicks == 0)...
stackexchange/codereview
I have an application that runs just fine in the debug build, but when I start it in the release build, I get a unhandled Exception at 0x0043b134 in myapp.exe: 0xC0000005: Access violation while reading at position 0x004bd96c If I click on 'break' it tells me that there are no symbols loaded and the source code can't ...
stackexchange/codereview
I want to show underline and strikethrough text(asdb etc) in a radiobutton control, there is no htmlText property to make use of. Is there any way to do so?
stackexchange/codereview
I need to calculate the width of a div within the viewport. If i use .css(width) on my div, it just calculates the complete width. My current code for trying to calculate: var $Windowwidth = $(window).width(); var $lefty = $("#gallerytop"); var $GalleryTopWidth = parseInt($lefty.css('width')); $("#footer").click(funct...
stackexchange/codereview
How can I configure COMMTIMEOUTS to wait forever for at least one byte to be read?
stackexchange/codereview
I'm trying to validate my Datamapper models and show the validation errors in my HAML template, I'm using Sinatra. I'm at loss how to save those errors into an instance variable and access them from my template. I've looked around for some documentation or tutorials explaining how to do something like this but I haven'...
stackexchange/codereview
I am writing a card game and have been using the following method to get the next Player who's turn it is There is a direction to the game which could be forwards or backwards, and it needs to respect this too private Player GetNextPlayer() { int currentPlayerIndex = Players.FindIndex(o => o.IsThisP...
stackexchange/codereview
I have searched high and low for this on this site and the web Is it possible to dynamically create previous and next buttons in a jquery dialog box? I have a list of links, and I would like to click on a link and have a dialog box open. In that dialog box would have a previous and next button that when clicked on woul...
stackexchange/codereview
I want to customized my infoWindow in google map.I am not customizing this window My live site :http://97.74.160.96/dev1/belgravecorp/home.html Reference site : http://www.bookdepository.co.uk/live I want to implement reference site functionality . Pleas help me .. Thanks Aasim Afridi
stackexchange/codereview
I'm trying to use a zoom plugin for interactive maps I put everything into the site and as far as I can tell the scripts are all working. There are no console errors so I'm guessing the problem is that the image paths are not correct because nothing except the containing div is showing up. Looking at it through firebug...
stackexchange/codereview
I defined the following layout: <Grid Name="RootGrid" Background="{StaticResource WindowBackground}" > <s:ScatterView Name="RootScatter"> <Viewbox> <s:LibraryContainer Name="RootContainer" Grid.Row="0" ViewingMode="Bar"> <s:LibraryContainer.BarView> ...
stackexchange/codereview
I have this Java code some other person wrote, specifically JSPs. I am trying to understand where everything is. In my index.jsp (the main file which is loaded) it imports a certain namespace (I suppose tomcat does all the compiling, I don't know): <%@ page import="org.sgrp.SearchResults"%> This physical location does...
stackexchange/codereview
#include<iostream> using namespace std; class A { public: int i; A() {cout<<"A()"<<endl;} ~A() {cout<<"~A()"<<endl;} }; class B:public A { public: int j; B(): j(10) { this->i=20; this->~A(); } }; int main() { B abc; ...
stackexchange/codereview
i need to accept only Y/N for is_master variable declare below. For example if i use the below statement in SQL script the user can enter any character. I want to restrict user to enter only y Y n or N Accept is_master prompt ' Is the user a Master user (Y/N) : '
stackexchange/codereview
I'm having trouble with an old legacy app that recently started crashing. I'm trying to investigate the DebugDiag analysis, but don't have much luck. Either there is a sql query that locks and somehow the calling thread doesn't die away? Then again callstack points to oledb32!CImpIErrorInfo::GetHelpFile+a1. Here's the ...
stackexchange/codereview
Is it possible to create a Zip-Archive in Java if I do not want to write the resulting archive to disk but send it somewhere else? The idea is that it might be a waste to create a file on disk when you want to send the Zip-Archive to a user via HTTP (e.g. from a Database-Blob or any other Data-Store). I would like to c...
stackexchange/codereview
I am having a re-declare issue and I just want to understand why can someone enlighten me. Here's my code. function createAdminPage($dialarg,$topsnamearg,$shortnamearg) { global $dial; $dial = $dialarg; global $topsname; $topsname = $topsnamearg; global $topname; $topname = "Top ".$dial; glo...
stackexchange/codereview
I have the following loading image: <img id="loading" src="loading.gif" /> To show/hide it during an AJAX call, I have several solutions. For example, I can hide it by adding a class which corresponds to a CSS style: $('#loading').addClass('hidden'); .hidden { display: none; } Alternatively, I can use jQuery .show()...
stackexchange/codereview
I am writing a game server that has a time limit. I will be accepting input accross a socket until the timer is done. I am using a forever loop to receive data from the client. while(true) { socket.Receive(buffer); } I need to break out of this loop when the time limit ends. Sorry I don't think I am being speci...
stackexchange/codereview
I want to integrate Python with FusionCharts and MySQL. I have python programs to create/access MySQL DB. The same data which resides in the MySQL DB has to be projected to the user in the FusionCharts using Python scripts. Please help me out on this.
stackexchange/codereview
I want to get the count of occurrence of a substring within a string. My string is "hello hello hello". I want to get the number of times "hello hello" occurs in it, which in the above case is 2. Can someone please help me find a regex for it?
stackexchange/codereview
I am newbie to WPF. I have drawn simple 3D cube and rotate it with mouse But my question is, is it possible to draw wireframe object in WPF Without using any third party library(eg.Charles Petzold's libraty etc..)?
stackexchange/codereview
I have string variable declared globally.I have to append a substring to this string dynamically based on the user input.To do this I use str=str+substring; In this case the string in str doesn't have meaningful sentence finally ie.,there is no spaces between the words.to make it sense I used the following statement in...
stackexchange/codereview
From shell script, I would like to create the empty 'Icon\r' file for a Mac OS X disk image (dmg), so as the .VolumeIcon.icns icon file is taken into account by the finder; the damn '\r' character is not accepted from the console: touch Icon\r ls Icon* > Iconr and other things happen when trying to type 'Icon\r', "Ic...
stackexchange/codereview
I'm working on a project that integrates OpenLayers and Qooxdoo...so far I'm having lots of success. But now I want to be able to place qooxdoo widgets in an OpenLayers popup (FramedCloud in this case) and something weird is happening--the button won't click! The hover events seem to be working, and I've determined tha...
stackexchange/codereview
I always thought, that there are only two defaults construcors: constructor with no arguments, and copy construtor. But today I wrote something like this: First I wanted to make sure that in C++ initialization of structures in c-style is still valid.. struct Foo{ int a; bool b; char* c; double d; }; //....
stackexchange/codereview
When I call CodeModuleManager.deleteModuleEx() to delete a Module, the return value is CodeModuleManager.CMM_OK_MODULE_MARKED_FOR_DELETION using the simulator, but the return value is CodeModuleManager.CMM_OK when I run same application on device. The device is a 9700 and the Platform is 5.1.0.121.
stackexchange/codereview
Initialization of list with lambdas causes high IL cyclomatic complexity: why, and how remove this complexity? For example following code causes the static constructor of the class (which is actually compiler generated) to be very complex: 1 + the list count. static List<Predicate<string>> list = new List<Predicate<str...
stackexchange/codereview
I have run through the google example of using Authsub to retrieve Google feed data (http://code.google.com/appengine/articles/python/retrieving_gdata_feeds.html) If I understand correctly, it is possible for a malicious hacker to call the 'next_url' (which google auth service calls with your token) and inject their ow...
stackexchange/codereview