instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm quite new to python, and happen to have used C# for some time now. I saw that there was a filter method to use with the collections, which seems to be the equivalent of the LINQ's where clause.
I wondered, is there also an equivalent for the LINQ's select statement in python?
Example: my_collection.select(my_obje... | stackexchange/codereview |
I have added a custom backend to allow a user to log in with a username or email in addition to password. It works fine except when the email is longer than 30 characters. The form error I get is:
"Ensure this value has at most 30 characters (it has 35)."
In one my my apps' urls.py file I've overridden the max_length... | stackexchange/codereview |
I have several projects in a solution in visual studio 2010. This is the structure:
In the WebSite project called TerapiaFisica i'm using localResources for multilanguage support, and that's ok.
My problem is in the ModelosEF folder where i have several entityFramework projects.
Here's exactly my problem:
public v... | stackexchange/codereview |
JSF view code:
<f:view>
<h:form>
<h:panelGrid>
<h:inputText id="key" value="#{myManagedBean.key}"/>
<h:selectBooleanCheckbox id="rerun" value="#{myManagedBean.rerun}" rendered="#{myManagedBean.displayRerun}"/>
<h:commandButton id="check" action="#{myManagedBean.check}"/>
... | stackexchange/codereview |
Can I define #@TODO or something like that as a keyword to be highlighted in Python?
Is this specific to the text editor or to the language/platform?
| stackexchange/codereview |
if (ContentPlaceHolders.Contains(Telerik.RadEditor))
{
label1.Text = ("lkjjljlj!");
}
the above apparently didnt work
[edit] tried the following..
if(ContentPlaceHolder1.Controls.Equals(Telerik.Web.UI.RadEditor))
{
label1.Text = ("lkjjljlj!");
}
its giving the error "'Te... | stackexchange/codereview |
I have an xml document which i want to pass as a parameter to a stored procedure
the xml looks like this
<root>
<EMPLOYEE ID= 100>
<PERIOD>AUG-2010</PERIOD>
<earnings>
<title>BASIC</title>
<amount>2000</amount>
<title>HRA</title>
<amount>1000</amount>
<... | stackexchange/codereview |
I know that Google has the CSS files for jQuery UI at the following location:
//ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/pepper-grinder/jquery-ui.css
But I'm wondering if they serve the minified or compressed versions?
I tried a number of combinations similar to the way naming of the js files, but they all ... | stackexchange/codereview |
I have an HTML5 offline app (i.e. there's no server-side component/code).
It basically has two windows (parent and child). However, in some instances I need to programmatically refresh the parent window. When this happens, it loses its reference to the child, and the child's reference to window.opener is no longer va... | stackexchange/codereview |
I have a list of email addresses in a table, which is populated via an SQL query. Next to each email address, I've placed a submit button which I want to use to delete the email address that appears in that particular table row.
I thought of appending the email address to the name of each delete button, with the hope ... | stackexchange/codereview |
We need to make client - web server application with minimum code rewriting on server side:
Clients
Web browsers;
Desktop application (win, mac);
Iphone (web and native);
Android (web and native);
(maybe some other mobile platform);
Web server
.Net with IIS 7.x
Application has to run on different devices, and communic... | stackexchange/codereview |
I added a SurfaceView into the Cube demo from the ApiDeoms.
And tried to use a MediaPlayer to play with it.
But it failed with low-level player error which is different on different devices.
Is it possible to play videos on a GLSurfaceView or it's all about hardware support?
| stackexchange/codereview |
C++03 $13.6/1- "[...]If there is a
user-written candidate with the same
name and parameter types as a built-in
candidate operator function, the
built-in operator function is hidden
and is not included in the set of
candidate functions."
I am not sure about the intent of this quote from the Standard. Is it... | stackexchange/codereview |
I have a main Form (WinForm) which should render its content without ClearType. More precisely, a RichTextBox within that form should render its text without ClearType. When ClearType is turned on at the end-user system, how can I prevent it from affecting my application?
I havn't found how to achieve this with System.... | stackexchange/codereview |
I wanted to convert a string (which obviously is an xml) to an XmlNode in C#.While searching the net I got this code.I would like to know whether this is a good way to convert a string to XmlNode? I have to preform this conversion within a loop, so does it cause any performace issues?
XmlTextReader ... | stackexchange/codereview |
working both with Java and Visual Basic, I see that I can completely manage databases with ResultSet (Java) or RecordSet (V.B.).
I mean, if I read a table from a db with a SELECT query, I can update it without make a new UPDATE or INSERT INTO query.
Is it possible to do it with PHP?
Thank you in advance.
| stackexchange/codereview |
I try to parse simple JSON using Json.net
string inputJson = @"
{
""modificationTime"" : ""\/Date(1224043200000)\/""
}";
And property is defined
[JsonProperty("modificationTime")]
[JsonConverter(typeof(JavaScriptDateTimeConverter))]
public DateTime ModificationTime {... | stackexchange/codereview |
I'm trying to use boost::bind with the std::sort function. I want to bind sort into a function taking no parameters and specify an int array to sort.
I'm running into issues with what to specify as the template parameter when binding sort, if I was using a standard container I would just use std::container<int>::iterat... | stackexchange/codereview |
Is possible to add a non-aggregated measure to an OLAP cube? for example I have a 'Datetime' field in my relational DB, and I would like to not use any kind of aggregation function when querying this measure of the cube. is there any scenario where this could be possible?
| stackexchange/codereview |
I have user control which looks like
<div>
<asp:LinkButton ID="btnShow" runat="server" Text="Select" CausesValidation="false" />
</div>
<ajaxToolkit:ModalPopupExtender ID="mpe1" runat="server"
BehaviorID="popup1" TargetControlID="btnShow"
PopupControlID="pnlPopup1" BackgroundCssClass="modalBackgrou... | stackexchange/codereview |
Hey guys, how do I refresh a PHP page without the header refresh?
| stackexchange/codereview |
Below is the data template I'm using for a listbox's ItemTemplate. It shows some simple data, and a button, which ideally should animate a Popup, also contained within the DataTemplate. Unfortunately the whole thing blow up at runtime. The error says line 52 is wrong, which is:
<EventTrigger RoutedEvent="Button.Clic... | stackexchange/codereview |
An interesting variation of the subset sum problem was presented to me by a friend from work:
Given a set S of positive integers, of size n, and integers a and K, is there a subset R (of the set S) that contains exactly a elements, whose sum is equal to K?
He claims that this can be done with time complexity O(nka), I ... | stackexchange/codereview |
How to choose all the elements of INPUT with style="color: #F20808"?
<form>
<input type="text" value="1">
<input type="text" value="2" style="color: #F20808">
<input type="text" value="3" style="color: #F20808">
<input type="submit" value="submit">
</form>
$('form').submit(function(){
if($(this).find('input').css(... | stackexchange/codereview |
I install my maven project:
mvn clean install
Everything works fine, JAR file is created in /target directory. Now I run it again:
mvn install
Maven executes unit tests and static code analysis again. I didn't make any changes to the .java files and JAR is there, so why running tests again? Am I doing something wrong... | stackexchange/codereview |
I have a JTable that does lovely alternations in coloration thanks to this code:
table.setDefaultRenderer(Object.class, new BorderRenderer(new ColorRenderer(table
.getDefaultRenderer(Object.class), colorProvider)));
(Here the "colorProvider" contains code that turns every other row light grey.) I have ... | stackexchange/codereview |
SELECT
EMPLOYEE.EMPLOYEE_FNAME + EMPLOYEE.EMPLOYEE_LNAME +
EMPLOYEE.EMPLOYEE_PRIMARY_NUMBER + EMPLOYEE.EMPLOYEE_EMAIL AS EMPLOYEE,
ADDRESS.ADDRESS_LINE_1 + ADDRESS.ADDRESS_LINE_2 + ADDRESS.CITY_PROVINCE +
ADDRESS.STATE_ABBREVIATION + ADDRESS.POSTAL_CODE AS ADDRESS
FROM
EMP... | stackexchange/codereview |
What are the differences between these 2 things WDM Capture Device and Legacy VFW Capture Device?
And one thing I want to know what is a "Legacy VCM/ACM codecs"?
| stackexchange/codereview |
I am doing Rails development and find that I need to spawn a shell, rename the buffer (e.g. webrick), then kick off the command (rails s) and then do the whole thing over again if I want a rails console or rails dbconsole, rspec, spork, etc. every time I start up emacs.
I am hoping for something like this:
(defun spawn... | stackexchange/codereview |
Suppose there are two tables. First table, 'user_actions', has two fields: 'user_id' and 'action'. Second table, 'users', also has two fields: 'id' and 'name'. I want to sort the first table so that actions commited by users Aaron or Bruce go first and actions commited by Yuriy and Zorro go last. How would I do that?
I... | stackexchange/codereview |
I'm sure there must be a simple way to do this, but I've been tearing my hair out for hours now and I'm getting nowhere. Here is a working query from a customer listing utility:
SELECT c.customer_ID, title, surname, forenames, COUNT(booking_ID) AS bookings
FROM customer c
LEFT JOIN booking b
ON c.customer_ID = b.cust... | stackexchange/codereview |
In a given DIV I wish to apply a SPAN to all numbers and only them. Is there a way to select numbers with jQuery ?
| stackexchange/codereview |
I have a view controller whose view consists of a paged scroll view controlled by 2 buttons (previous and next). In this scroll view are several custom views, each the size of one page.
When I load the main view, the scroll view is set up to contain all of these subviews. The performance of my app is currently unaccep... | stackexchange/codereview |
Greetings,
I am using Visual Studio 2010 and ASP.NET 4.0 to build a WebForms project that uses the new routing features in System.Web.Routing. When I build my solution and run it from within VS.NET's debugging environment only routes with RouteUrl's that include a ".aspx" extension are being properly routed to the Phy... | stackexchange/codereview |
I have got 2 laptops with the same win7 configs. The Apache/PHP/MySQL are the copy/paste from one to the other. But the PHP works only if <?php ?> is added on one, and works fine with <? ?> on the other laptop.
I do not want to change the all PHP tags from <? ?> to <?php ?>. How do I make the PHP work with <? ?>.
| stackexchange/codereview |
I read it in this question:
StaticResource Vs DynamicResource
A good example would be a forward reference to a resource defined later on in the XAML. So why would one define the resource later on at the first step and use DynamicResource, why not just define it before its use.
Do anybody have any example of a need to d... | stackexchange/codereview |
I have written a webservice from which i got some clob data as response and i need to convert into xml and then store the data into a table....
Can you help me how to do this
| stackexchange/codereview |
what types of the changes i have to do if i m going to make app for android tablets from existing app of android mob??
| stackexchange/codereview |
I am getting this error in my C# application. I am using log4net as a logging tool.
Here is my app.config file:
<configuration>
<configSections>
<section name="log4net" type ="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<log4net>
<root>
<level value="ALL" />
... | stackexchange/codereview |
I would like to use a CCK field as a class name for a td in the Calendar module:
e.g. from calendar-month.tpl.php:
<td id="
<?php print $cell['id']; ?>"
class="<?php print $cell['class']; ?>
<?php print $fields['field_eventtype_value']->content ?>
">
How do I get field_eventtype_value out of Views so I can use it? T... | stackexchange/codereview |
Can we extract vtable's starting base address of a type if it implements vtable functions from DIA SDK?
Regards,
Usman
| stackexchange/codereview |
Is there a way to programmatically deselect/wipe whatever the user has selected with the trackball/trackpad?
When I hit the back button on an Activity, the Activity it falls back to has a button that is selected as if the user had used the trackball/pad. I'm not sure what is selected on the previous Activity, but obvi... | stackexchange/codereview |
While I'm just starting with ASP.NET MVC and jQuery, I cannot even solve a quite simple task...
I am using a strongly-typed view to display a list of products, where every li-element gets a unique id:
<ul id="product-list">
<% foreach (var item in Model.Products)
{ %>
<li <%= "id=\"product_" + ite... | stackexchange/codereview |
Is there a way to customise the devise controllers , as we can modify the devise views using the "rails g devise:views" generator command. ??
Ok purpose here is to create a statistics table's row for the current user as soon as a user is registered.
I have a user statistics maintained for every user.I just want to trig... | stackexchange/codereview |
I want to load resource that is located in android.R.attr class.
Next code failed to load resource with Resources$NotFoundException exception:
getResources().getString(android.R.attr.action); //action is a string resource
Also tried to load resource using:
getResources().obtainAttributes(android.R.attr.action)
No e... | stackexchange/codereview |
How do you launch an instance of IE from an app? Is it better practice to page to a window with and browser window?
| stackexchange/codereview |
I am converting a VB6 app to C#. I am starting on the top of the VB6 app and going from there. What is all the RS. stuff? I don't understand?
Sub Main()
Dim RS As ADODB.Recordset
Dim FileName As String, FilePath As String
Dim Test As Boolean
Dim ResultCode As xcdError
Dim oAccess As Access.Applicat... | stackexchange/codereview |
I recently installed jgem and jruby on Mac OS X 10.6.4 with macports. Now both of them generate the notorious 'Trace/BPT trap' error when I try to run them.
For example, from the command line:
$ jgem --version
Trace/BPT trap
$ jruby --version
jruby 1.5.2 (ruby 1.8.7 patchlevel 249) (2010-11-03 6586) (Java HotSpot(TM) ... | stackexchange/codereview |
My iPhone app features custom UITableViewCells that each feature an icon. In the normal cell state, these icons are black with a transparent background. Instead of bundling a second set of inverted icons with the app for a highlighted state (white on a transparent background) I'd like to invert these icons on-the-fly u... | stackexchange/codereview |
I'm trying to do this with changing files
GameConfig.h:
#define GAME_AUTOROTATION kGameAutorotationNone
And App delegate:
//#if GAME_AUTOROTATION == kGameAutorotationUIViewController
[director setDeviceOrientation:kCCDeviceOrientationPortrait];
//#else
//[director setDeviceOrientation:kCCDeviceOrientationLandsca... | stackexchange/codereview |
My current implementation of some ASP.NET web application registers all repository classes and some helper service classes in my wrapper around unity container:
public class MyUnityContainer : UnityContainer
{
public MyUnityContainer ()
{
string strConnectionString = ConfigurationManager.ConnectionStrin... | stackexchange/codereview |
Is there a way I can build terrain data in a simple way from sources like Google Maps. I am not interested in heights but a simple 2D representation will be good enough.
For instance, I am trying to represent a terrain using the roads and buildings inside a map to model a traffic simulation. Representing objects like ... | stackexchange/codereview |
I am getting this error:
/sw/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py:235:
UserWarning: Python is not installed as a framework. The MacOSX
backend may not work correctly if Python is not installed as a
framework. Please see the Python documentation for more information on
installing Py... | stackexchange/codereview |
I zipped up my project folder in xcode and moved it to a new computer. When I open up the project it has missing files (file appears red).
How can I add all these files back or re-link them. It is like 20+ files?
Why didnt xcode store the relative path?
| stackexchange/codereview |
I am using the utl_mail procedure in oracle 10.x and have noticed that if I try to pass a value with a length of more than 4000 characters into the varchar2 input for Message, I get an error: 4000 works, 4001 fails. Is this a hard-coded limit, or is there a setting somewhere that I can change to increase this? I woul... | stackexchange/codereview |
I have been trying to access a queue that is on the cloud while running the role in dev fabric. To do that I followed the steps:
Project->Proprieties->Windows Azure->Data Storage and I selected the approrpiate fields and entered my credentials.
Then I do the following:
require_once 'Microsoft/WindowsAzure/Storage/Queue... | stackexchange/codereview |
I have a .NET 2.0 application that uses WSE 3.0 to make web service calls over SSL. The application works perfectly on Windows XP after I apply a registry fix which is explained here.
The fix says to use the UseScsvForTls entry DWORD value together with a nonzero value in the following registry path to send SCSV for ... | stackexchange/codereview |
I am trying to load the content of google.com in a div. I am using
$('#loadGoogleBtn').click(
function(){ alert ( 'loading' );
$('.container').load('http://google.com');
alert ( 'done' );
});
http://jsbin.com/uwopu4
But it is not working, instead it is giving me 301 HTTP status. [ Thanks to fire... | stackexchange/codereview |
I have installed VS 2010 Professional on a machine that already had 2008 Professional. Now I cannot open any 2008 project in VS 2008, even if I explicitly start 2008 and use the Open menu command. However I load the solution or project - Windows Explorer double-click, Send To, or explicit Open - the VS 2010 conversion ... | stackexchange/codereview |
Using MS-DOS 8.0, what is the best way to determine the length of a string?
I looked through Computer Hope (http://www.computerhope.com/msdos.htm), but no commands jumped out at me...
Is there a built in command or must a function be built to address this?
Thanks a ton.
| stackexchange/codereview |
I have a question on the xmlhttprequest object.
Let's say I create a xmlhttprequest object X to handle a user's request(asynchronously) to the server. For some reason, the server take 15 seconds to response. During those 15 seconds, if the user click on another button, how am I going about to determine the existence of... | stackexchange/codereview |
I have 3 drop downs total. 1 in the Footer for new records. One in the Empty Template, also for new records. Both get popualted in the RowDataBound method of the gridview.
Protected Sub gvCaseInfo_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvICaseInfo.RowDat... | stackexchange/codereview |
It looks like every branch reintegration to trunk has caused an extra entry to be added in the trunk's svn:mergeinfo property. Is this SVN behavior or TortoiseSVN - and is there anything bad about it? I didn't think SVN used properties as a core part of functionality, only for additional things, so I was a bit surprise... | stackexchange/codereview |
I want to create a URL Rewriter with my own create module with use of
web.config
global.asax
and other files.
I don't want to rewrite URLs for only a few pages, I would like some general code for all pages.
| stackexchange/codereview |
I'm almost done with this online library: http://gramma.ro
I have grade C in YSlow but I'm still dissatisfied with the average time consumed for this
website to be loaded (~7 seconds on my internet connection).
Maybe some of you will say that it works well but please compare with the speed of this one: http://www.libri... | stackexchange/codereview |
I have a javascript web app that I am trying to make so you can use the back button on the browser with. How do you do this? I have seen it done but can't figure out how to do it.
| stackexchange/codereview |
Does Ruby have a some_string.starts_with("abc") method that's built in?
| stackexchange/codereview |
i have this code for fast search. it work excellent in sqlCE
SqlCeCommand Cmd;
Cmd.CommandType = CommandType.TableDirect;
Cmd.CommandText = "MEN";
Cmd.IndexName = "A";
Cmd.SetRange(DbRangeOptions.Match, new object[] { R[15].ToString().Trim(), MyDate }, null);
SqlCeDataReader read = Cmd.ExecuteReader();
while (read.Read... | stackexchange/codereview |
We need to export a QuickReport so that it can be opened with the latest Excel 2010 in xlsx format. This link provides a solution. But it did not work for us.
Anyone have ideas?
UPDATE
The version we are using is QuickReports 5 - We just got it.
Clarification of "does not work". The filter allows the report to b... | stackexchange/codereview |
I have a WPF app that draws text on an Aero glass background. The problem is that based on what is displayed behind my application, the text drawn on the glass background can become hard-to-read to downright-impossible-to-read.
As you can see in the following screenshot, the Save, Undo and Redo text blocks become hard ... | stackexchange/codereview |
I have a custom validation attribute which checks to see if two properties have the same values or not (like password and retype password):
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public class EqualToPropertyAttribute : ValidationAttribute
{
public str... | stackexchange/codereview |
I'm facing weird situation with DateTimePicker control. I've a DateTimePicker control with short date format.
I'm setting the value of this control in the textbox in the following way:
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
textBox1.Text = dateTimePicker1.Value.ToShortDateStri... | stackexchange/codereview |
i have a question about the Win32_WindowsProductActivation WMI class and the SetProductKey method.
when i run this code (vbscript) generated with the WMi Code creator, the execution fails with the error Invalid parameter
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
' O... | stackexchange/codereview |
I want to add multiple classes to the widget below for styling purposes:
var filteringSelect = new dijit.form.FilteringSelect({
id: "test",
},
"test");
How would I accomplish this?
Here is the actual html:
<div tabindex="-1" wairole="combobox" dojoattachpoint="comboNode" dojoattachevent="onmouseenter:_onMouse... | stackexchange/codereview |
I want to know general logic to find a screen object under a point.
Let there be various shapes on screen and I want to find a shape(or shapes) on some point, probably the mouse cursor point. If all those shapes are rectangles, it'll be a trivial question. But what about triangles and ovals and...
In other words, what ... | stackexchange/codereview |
I can use pragma pack on various compilers to force structs to have fields which are not on their natural alignments.
Is this recursive - so suppose struct typedef A contains a field of typedef struct B. If use a pragma to pack A will this force struct B to be packed?
| stackexchange/codereview |
I have a simple homework... to make a C program that takes 3 values 3 times
id of a food (char)
cal value of food (float)
amount of food (float)
Here is the code and the output the program gives me:
#include <stdio.h>
#define NUM_OF_FOOD 3
int main()
{
float food_cal[NUM_OF_FOOD];
float food_amount[NUM_OF_FO... | stackexchange/codereview |
Alright so I have a page that the user types in a date hits a button and a querystring is placed in my other page. I want this date that they typed to be placed into my sql statement. I am reading the querystring useing javascript at this point, but i cannot get it into my sql statement.
<!--
function querySt(ji) {
hu ... | stackexchange/codereview |
I need for my web page to have video player that supports .asf format. My .asf files have 2 video streams.
Windows media player works fine for this. Here is my example: http://weblectures.yolasite.com/
and scenarios of opening link above:
Chrome, in Ubuntu, it won't work or just one video stream will start
IE, in Win... | stackexchange/codereview |
I have a working WCF service and worker role that I have been debugging locally on the Azure Development Fabric. All is well, but now that I'm trying to deploy it to the cloud in a staging environment, I'm seeing some weird issues.
My worker role, which is infinitely more complex than the service, works fine. It goes ... | stackexchange/codereview |
I'm struggling with a URL Rewriting rule for SiteFinity. I am trying to make sure that you can only access the homepage via / and not /default.aspx.
I tried the following rule:
<rule mode="PermanentRedirect">
<url>/default.aspx</url>
<rewrite>/</rewrite>
</rule>
Which actually works perfectly on the homepage -... | stackexchange/codereview |
I've got a (prototype) class owned by the Spring.NET context, created with an AutoProxy with runtime constructor arguments. It get's instantiated like this.
var context = ContextRegistry.GetContext();
var myClass = context.GetObject("myclass", new object[]{ myRuntimeConstructorArgument }) as MyClass;
This class has so... | stackexchange/codereview |
I'm using the hash to load content dynamically. To make the back button work I am capturing hash changes. However sometimes I need to change the hash without triggering the hash changed function (eg, when the page was redirected server side and I need to update the hash once the content has returned.)
The best solution... | stackexchange/codereview |
I am using heroku, and in doing so, am experiencing my first foray into postgresql. Maybe I just never came across it in development, but I am unable to save entries into my database that are longer than 255 characters. Is there a way around this? Currently the I am just using strings to store message data.
Secondly, i... | stackexchange/codereview |
I'm working on a simple plugin here, and this far it is working.
Except my helper.
Its a very simple helper, it just needs to echo a <span></span> for later javascript parsing.
The problem is, its not rendering the html correcty, its replacing special chars by the html equivalent code.
My plugin initializer:
ActionVi... | stackexchange/codereview |
I would like to define an ImageView in Xml, and then listen to gestures which occur only on that ImageView. But, it appears that the constructor for GestureDector requires an Activity as a parameter, and then responds to gesture events on all components in that Activity. Is there any way to limit this such that event... | stackexchange/codereview |
In some video i see this screen shot.
What is name of this object?
http://www.valar.ru/gallery/1110/screen_shot_20101109_at_102020_pm.png
| stackexchange/codereview |
I am using WPF, and attempting to follow the MVVM pattern. Our team has decided to use the Xceed DataGrid control, and I am having some difficulties getting it to fit into the MVVM pattern.
One requirement that I have to meet is that I need to know when a user changes a column filter on the grid. I am aware that the la... | stackexchange/codereview |
I am attempting to create a php fantasy football application that uses an existing rss feed to update the database for a university project. My problem is that the only free rss feed I can find is not in a format that would allow me to simply use xslt to remove the information and display it correctly.
Here is a short ... | stackexchange/codereview |
Is there an equivalent to mod_pagespeed Apache module but for IIS?
| stackexchange/codereview |
I converted the pseudo-code here into C#, and have it recursively repeat 10,000 times. But I get a C# runtime error, StackOverflow Exception after 9217 times. How can I prevent this?
EDIT If it helps anybody, here's the code:
private double CalculatePi(int maxRecursion)
{
return 2 * CalculatePi(maxRecur... | stackexchange/codereview |
I need to do a mass update to a column value. If there are issues I'll need to be able to revert the column back to it's previous value. So I'm backup the values to a temporary table.
BTW, I'm using Oracle.
CREATE TABLE tmp_trial_date_backup AS SELECT cust_id, trial_days FROM customer
WHERE (trial_days = 0 or trial_da... | stackexchange/codereview |
I was wondering whether there is away to compare two .aspx pages. I have a website on my local machine and the same website on a production server. What i will like to do is compare .aspx page from my local and production server to see what the differences are.
Is this possible?
| stackexchange/codereview |
I'm a total newbie at PHP, but this seems so simple, there doesn't seem like any way for me to be screwing this up, unless I'm COMPLETELY misunderstanding the way all of this works.
Objective-C:
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://myurl.com"]];
[request setPost... | stackexchange/codereview |
How do I check if the string reader has passed a certain line number, or has passed a line number which contains some text? I put this in the line processing code of a string reader:
if (currentline.Contains("123"))
currentbank = "123";
else if (currentline.Contains("456"))
currentbank = "456"; ... | stackexchange/codereview |
I had understood that once you release an object, you shouldn't use it as it will cause an error since it is not in memory anymore.
But reading thru this Apple guide, I found this code, and have also seen it before, but I would just move the [object release] to the end of my code, so as to avoid getting an error. But ... | stackexchange/codereview |
I implement a file's struct in my program but for some arrays in the struct I don't know the size. The size of the array is stored in another variable but it's unknown before the struct is filled in.
struct Vertex {
float x;
float y;
float z;
};
struct myFile {
ulong nVertices;
Vertex vertices[nVert... | stackexchange/codereview |
I need to embed my graphic assets into a swc.
I created a diretrory structure reflecting my packages
com
example
Foo.png
I need to create a swc containing a com.example.Foo class (subclass of DisplayObject)
Any suggestions?
| stackexchange/codereview |
!Disclaimer!: Please note that I am talking about untagged declarations. I know it's a possibly informal term and what I mean by it is that the declaration is not a typedef and it does not declare an object of the anonymous type. In these cases everything is clear.
Question 1:
which of the following is a well-formed C+... | stackexchange/codereview |
We have a cloud setup like this:
User Request -> Perlbal (SSL unwrapping) -> Squid (Caching) -> Apache -> HTTP Response
We support SSL on some pages, and not on others. Everything beyond the perlbal layer only process requests over unencrypted HTTP since perlbal unwraps the SSL, but it does add an X-Forwarded-Proto h... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.