instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to set the "name" attribute for HiddenField control of ASP.NET from code behind, but I cannot find the "Attributes" property. Is it not there for a purpose? How do I add the attribute?
thanks
| stackexchange/codereview |
Is there a way to tell NHibernate to use square brackets for all table and column names (like [MyColumn]) when generating the SQL schema export for MS SQL Server? I have a legacy database that uses reserved names for certain columns and running the SQL script generated using NH throws an error because of it.
I want to ... | stackexchange/codereview |
I'm creating a prototype for a piece of functionality that I will be implementing in an application, specifically I am displaying data from a collection to the console window but unfortunately some of the lines span wider than the default width of the console window.
I've done a bit of digging and found that the only ... | stackexchange/codereview |
Instructions like {% block %} and {% load %} leave empty newline after themselves. How can one turn off this feature ?
| stackexchange/codereview |
I have this big database on mysql (104 tables), where almost every single table has a FK pointing to a single table, like the master table.
There a huge web of relationships, and when I need to delete a record from the 'master' table, obviosly, there a lot of errors because of the relationships. All of them are set to ... | stackexchange/codereview |
I have a UIImage that I use throughout my app as a background image for grouped UITableViews.
I thought that for efficiency I would alloc and init the UIView with my UIImage in my appDelegate and then access throughout my app. That way I would only allocate that imageView once and if I was drilling into a nav stack wit... | stackexchange/codereview |
I have a ASP.Net web form that contains both text box fields and hidden fields. The hidden field values are modified dynamically using client side JavaScript. Posting the form, inspecting the values and redirecting to another page is all working as expected.
However, when I use the browser back button to display the pr... | stackexchange/codereview |
For those of you who use wurfl, I just wanted to check if my logic was correct. I have a page that has both a mobile and desktop version.
If I want phones like iPhones, etc to be redirected to the smaller mobile version while iPads, PlayBooks and desktops get the full size version, is this the correct logic on the full... | stackexchange/codereview |
i have following in my url
http://www.foo.com/?token=foo&tokenid=fooid
now i want to get those token and tokenid value and create sessions from both values...
i have following in my php code
$em = $_GET['token'];
$emid = $_GET['tokenid'];
$_SESSION['foo'] = $em;
$_SESSION['fooid'] = $emid;
but it is not creating sessi... | stackexchange/codereview |
What is the technology behind Dailymile.com? Does it use PHP or Ruby?
Thanks!
| stackexchange/codereview |
I'm trying to create a One-to-many relationship in Django. In my example, I have a news post, which may have several images associated with it. However, different news posts will never share images.
As far as I can see, there are two ways to do this: Through a ManyToManyField, which creates a multi-select tool in the ... | stackexchange/codereview |
I wanted to download solr 3.1 but the links from solr's official site are not working:
http://wiki.apache.org/solr/FrontPage#solr_development
any ideas ?
cheers,
/Marcin
| stackexchange/codereview |
I have a problem. I have a UIImageView and 144 fullscreen images (960x640). And I have a Timer that loads 15 images per second into the UIImageView. In the end the images are played like a movie. Everything works fine, but I get on an iphone4 memory warnings. I just have an Array which holds the filepaths to the images... | stackexchange/codereview |
What is a regex that can match a generally understandable number? (the simpler the better)
for example, it should match:
10
10.0
10.00
3.3333
123456
100,000
1,234,567
33,456.22
-2.2
.2
-.2
+.2
0.2
.20
should not match:
33,33.1
1.2.3
100,000,000000
| stackexchange/codereview |
I am new to Joomla. I want to remove only the "< prev" navigation link from one of my articles and keep the "next >" from one of my pages.
Can someone help me how to do that ?
Thanks in advance
| stackexchange/codereview |
I have a XXXCustomControl.cs class and inside the c# class I want to access via
groupStyle.ContainerStyle = this.FindResource("GroupHeaderStyle") as Style;
the GroupHeaderStyle, but this style is defined somewhere else (wherever that is...)
Now my question: What is the best place to put my GroupHeaderStyle and how to ... | stackexchange/codereview |
I have an HTTP POST request with the following variables: "UnicodeMultiDict: ... (u'ids[]', u'568236498'), (u'ids[]', u'528900768')". It seems like it is a list, so how can I retireve these variables? When I use self.request.POST.get('ids[]') it only returns the first element.
I am using the webapp framework.
Thanks,
J... | stackexchange/codereview |
A = {0^a 1^b 2^c | a < b < c}
I need to show that A is not context-free. I'm guessing I have to use the Pumping Lemma for this, but how?
| stackexchange/codereview |
How Can I execute a function when Windows shutdown. Here is my scenario, I am mounting a drive using WNetAddConnection2 function in my application. Now I want user to set the option if the drive will be mounted on next system startup or not.
If he selects , not to mount on next startup , then I need to remove the dr... | stackexchange/codereview |
How can I easily count the number of Forms in a large solution?
I have Visual Studio solution containing 20+ winforms projects.
I have to do a task where I have to inspect every form, and I have to give an effort estimate to my project lead. This estimate is best given in terms of the number of forms. It's useful to re... | stackexchange/codereview |
Well I am new to Qt and found its easier to work with python , I dont know how far its true .
but some of the code snippets have
import qt
and some have
import PyQt4
I don't know what the difference is, when I tried to interchange them I did get some errors , like some function was not recognizable and so on, ... | stackexchange/codereview |
I am experiencing issues with a WCF REST service. The wire object that I try to return has certain properties not set, resulting in DateTime.MinValue for properties of type DateTime. The service returns an empty document (with HTTP status 200 ???). When I try to call JSON serialization myself, the exception that is thr... | stackexchange/codereview |
UTF-8 single byte characters map perfectly to Latin-1 (ISO 8859-1) characters (those below the character code of 128); basicly the default ASCII characters.
If I have a UTF-8 encoded string and pass it to a function, that expects a Latin-1 string is there any possibility that the Latin-1 function misinterprets parts of... | stackexchange/codereview |
I've managed to write program to record sound from Input Devices, but I'm more interested in recording from one window that plays some sounds. Is it possible to catch those sounds and not all possible sounds played currently?
Sorry for my english.
| stackexchange/codereview |
I need to select some nodes from an XML file (AppNamespace.xaml from a Silverlight XAP file, not that it matters), but the file has namespace stuff so XPath doesn't work. I could waste most of a day trial-and-erroring the bondage-and-discipline nightmare of XmlNamespaceManager and end up with hopelessly fragile code th... | stackexchange/codereview |
Good day!
What difference between these libraries?
I read MPI's docs and have small experience with asio. For me it's different
implementations of network communication and no more.
But each of them introduces different abstractions ( I'm not sure about same level
of these abstractions ) which leads to different appl... | stackexchange/codereview |
The form fields have width applied to them through CSS but when I hover over the textarea it resizes it width-wise to a completely different size.
| stackexchange/codereview |
I am using the library Proj4js to transform coordinates. I'm transforming coordinates from EPSG: 23029 to EPSG: 4326. The problem is that by transforming the coordinates there is some deviation from the precision used in the processing load. I noticed this by transforming a coordinate system from origin to destination ... | stackexchange/codereview |
Here is my html
<select class="selecturl">
<optgroup label="Fruit">
<option value="/something/167/remote">Apple</option>
<option selected="" value="/something/168/remote">Oranges</option>
<option value="/something/169/remote">Bananas</option>
<option value="/something/170/remote">Carots</option>
</optgr... | stackexchange/codereview |
My app stores images as NSData objects. However, when these are loaded on an iPhone 4, they are displayed at double the size because the default scale factor is 1. I have 2 questions I would appreciate help with please:
Is there any way to set the scale of the UIImage without using initWithCGImage:scale:orientation:
I... | stackexchange/codereview |
When installing EclipseXul plugin on EclipsePHP, it says:
Cannot complete the install because
one or more required items could not
be found. Software currently
installed: Shared profile
1.0.0.1288098146566 (SharedProfile_epp.package.php
1.0.0.1288098146566) Missing requirement: Shared profile
1.0.0.128... | stackexchange/codereview |
Is using C in C++ bad?
Many people have told me that using C in C++ is bad because it's not as safe, and it requires more memory management. I keep telling them that as long as you know what you're doing, and you delete your "new"s and free your "malloc"s then C isn't a problem.
I'm currently on a forum where an argume... | stackexchange/codereview |
Linq allows to express inner joins by using the join keyword or by using
SelectMany() (i.e. a couple of from keywords) with a where keyword:
var personsToState = from person in persons
join state in statesOfUS
on person.State equals state.USPS
select new { ... | stackexchange/codereview |
I want to test clicknbuy payment gateway like paypal sandbox? Is that possible ? If yes, how ?
| stackexchange/codereview |
Given a ViewModel that looks like this:
public class Login {
[Required]
public string Username { get; set; }
[Required, CustomValidator]
public string Password { get; set; }
}
And a View like this (Razor syntax here):
@Html.TextBoxFor(f => f.Password)
I am getting the following markup:
<input type="t... | stackexchange/codereview |
This question has answer in other languages/platforms but I couldn't find a robust solution in C#. Here I'm looking for the part of URL which we use in WHOIS so I'm not interested in sub-domains, port, schema, etc.
Example 1: http://s1.website.co.uk/folder/querystring?key=value => website.co.uk
Example 2: ftp://usernam... | stackexchange/codereview |
How can I get the current playing time from an embedded video on a webpage? Is there simply an attribute that can be obtained using JavaScript from one of the common embedded video players? Or do I need to do a work-around like make my own pause and play buttons and keep track of time manually while feeding the play/... | stackexchange/codereview |
When I add some new directories, jars etc to the WebLogic classpath under Server Start, it somehow does not append these values to the existing classpath. It just replaces the existing classpath with what I have provided in ClassPath under Server Start.
To get around this problem, I need to put the existing classpath u... | stackexchange/codereview |
I'm confused with primitive types in Java and the methods of converting one type to another.
If, say, I have an integer and I want to convert it to a string, I need to use a static method of Integer or String, e.g.
String.valueOf(some_integer);
But if I want to convert a stirng to a char array I can use something like... | stackexchange/codereview |
This is a question about Thematic framework. If this isn't the right place, just ignore this.
I'd like to ask how do I go about it? I copied the page template from the parent theme and renamed it to home.php and then I set it as the template for the home page. Then I added a hook to thematic_above_indexloop() in functi... | stackexchange/codereview |
I am attempting to use Knockout.js with ASP.NET MVC 3.0 (Title gave it away, didn't it?!)
http://knockout.js.com
I am running into some problems (more related to the new jQuery Tmpl Engine than ASP.NET MVC 3.0).
I am using Steve Sanderson's Example Program in my test, and have mostly replicated his results with the new... | stackexchange/codereview |
I have a question about righteous way of programming in Python... Maybe there can be several different opinions, but here it goes:
Let's say I have a class with a couple of private attributes and that I have implemented two getters/setters (not overloading __getattr__ and __setattr__, but in a more “Java-tistic” style)... | stackexchange/codereview |
I was looking for a particular Unicode character when I came across U+215F: fraction numerator one (⅟)
What on Earth is it for? Is this useful for something in particular (other than just for the sake of having a 1 floating over empty space)? Can it be combined, somehow, with other glyphs to create other fractions? Is ... | stackexchange/codereview |
I have a $.POST call that return the name of a function that need to be ran but it wont execute the function and I don't know why.
Here is an example:
JS file:
$(function(){
$.post('test.php',{event: 'add'},
function(data){
data.func(data.msg);
},'json');
function test(msg)... | stackexchange/codereview |
I am looking for a regex that can identify in a sentence that consecutive words in a sentence start with capital letters.
If we take the text below as an example:
The A-Z Group is a long-established
market leader in the provision of
information for the global air cargo
community, and also for the defence
and security ... | stackexchange/codereview |
I have InvalidCastException when I try to cast 0.0 to double, why is that so? It's fine when I do (float)value instead.
| stackexchange/codereview |
How can I verify that if I have established a successful connection with apple push notification service with my apns provider. I am sending device token to server and I am not able to send it to my device.
| stackexchange/codereview |
EDIT Thanks to Matt's post I now understand that I should not be trying to access 'started' as an array. However, if that is the case, I would like to know why this code appears to be working in other places. It still seems to me that this should be "one-or-the-other." It should work or it shouldn't.
ORIGINAL
I'm us... | stackexchange/codereview |
I have a combobox in my application , and I want to bind my combobox itemsource to a column in a table in my defined database
suppose the follwoing :
my database is called (Clincs) and the table is (Doctors) and the column is (Names)
and I want my combobox to retreive its items from this table and to get modified every... | stackexchange/codereview |
I have a list "Numbers". Items in this list are from 1 to 10(a column other than ID will display this number).
item[1st item]["order"]=1;item[2nd item]["order"]=2;......item[10th item]["order"]=10;
If any item got deleted, lets say item[6th item]["order"]=6; got deleted, then the items in that list should be 1 to 9 i... | stackexchange/codereview |
HI
I am getting follwing message when i try to uninstall Biztalk server 2006 R2 from Win 7 laptop.
Internal Error 2738.
The uninstaller is logging following message.
MSI (s) (60:C8) [14:15:05:338]: Product: Microsoft BizTalk Server 2006 -- Removal failed.
MSI (s) (60:C8) [14:15:05:338]: Windows Installer removed the ... | stackexchange/codereview |
I'm a PHP developer with little knowledge of bash commands and general use of Terminal in OSX. I'm also new to the Zend Framework and I'm trying to set up my environment and I just can't get started.
The information i've found on the net after a few weeks of research is either incomplete or assumes expert knowledge of... | stackexchange/codereview |
Hello I am currently working on a c++ Program and was wondering how i check to see if the person running the program is using a 32bit machine or a 64bit machine. I am also open to using boost to figuer this out but i have looked through the library and it does not look like they have anything that does that.
Thanks
| stackexchange/codereview |
I created a django project and as it was recommended in django tutorial I placed static files like .js in separate folder as well as template directory.
The result structure is like:
MyProject >
scripts # place for .py files
static # .js, .jpg etc
templates
Now when I open MyProject directory in PyCharm, it wan... | stackexchange/codereview |
I am creating a Business Data Connectivity Model in Visual Studio 2010 which will be the source of data for an external list.
I want to include a hyperlink field in this external list, so my model has a SPFieldUrlValue of type Microsoft.SharePoint.SPFieldUrlValue.
However, when I test this model and use it to create an... | stackexchange/codereview |
I have some rows that looks like this:
name value
------------
Name 1
Name 2.8
Name 8
I want my return to be one row:
name value
------------
Name 11.8
How do I force this to be the case? 11.8 Being the sum of the values there.
| stackexchange/codereview |
Each time I filter/exclude against a decimal field I get a Database Error saying:
"cant' adapt"
This doesn't happen in my local enviroment.
I am using Postgresql 8.3.11 in production and 8.4.5 in local enviroment.
I have just recently migrated from MYSQL. (I migrated each database locally and then load a pg_dump in t... | stackexchange/codereview |
I have been looking for an equivalent to kbhit() and I have read several forums on this subject, and the majority seem to suggest using ncurses.
How should I go about checking if a key is pressed in C++ using ncurses?
The function getch() provided by ncurses reads a character from the window.
I would like to write a fu... | stackexchange/codereview |
I'd like to create a game that has levels such as this: http://img169.imageshack.us/img169/7294/picdq.png
The Player moves "flies" through the level and mustn't collide with the walls. How can I create such levels?
I found that piece of software: http://www.sapusmedia.com/levelsvg/
It's not that cheap, so I wonder whe... | stackexchange/codereview |
I want to check if the two arrays are identical
(not content wise, but in exact order).
For example:
array1 = [1,2,3,4,5]
array2 = [1,2,3,4,5]
array3 = [3,5,1,2,4]
Array 1 and 2 are identical but 3 is not.
Is there a good way to do this in JavaScript?
| stackexchange/codereview |
I'm a newbie to C# and multithreading so I apologise if this is a duplicate question but being a novice it appears my question is slightly different to others I have read.
My GUI runs in one (main) thread. It calls a background task (in a dll -- that I am writing too) that runs in a separate thread. The dll has NO know... | stackexchange/codereview |
I'm trying to use the .net API library to get a single image by ID from Picasa.
So far, I've tried to find the correct call by doing:
new Photo(); but there are no constructor params to tell it which photo to get
new Entry(); same as above
PicasaQuery.CreatePicasaUri; but I have to specify the albumId as well then, w... | stackexchange/codereview |
Hey all, I didn't see much in the way of syntax for __constant variable allocation in OpenCL in the guides from Nvidia.
When I call clCreateBuffer, do I have to give it the flag CL_MEM_READ_ONLY. It doesn't seem to mind that I set it to CL_MEM_READ_WRITE for now, though I bet trying to write to constant cache in the ke... | stackexchange/codereview |
I want to create a table in a SQLite database only if doesn't exist already. Is there any way to do this? I don't want to drop the table if it exists, only create it if it doesn't.
| stackexchange/codereview |
I was basically wondering if there was a work around to this? I was redesigning my old mans plumbing website, and took a few of the ideas from this website http://visitmix.com/ where they used the body css tag as the header background with a few overlapping designs into the main website body - and the html css tag for ... | stackexchange/codereview |
I had configure smpt mail for my site and it's work when I tried to send one single email but I have following error when I want to send it to more people, In addition I use SendAsyn method.
When I Send all Emails using LOOP
Syntax error, command unrecognized. The server response was:
at System.Net.Mail.SmtpConnection... | stackexchange/codereview |
I have a web service link to fetch some data from a site.the return data is in XML format.
have can i use this URL with PHP ? should i use cURL ?
| stackexchange/codereview |
Just out of curiosity, I am trying to see if it is possible to use jQuery to read a HTML file so that I can use it to output some values of some html elements? I am looking for some functionality like what Firebug provides i.e. Firebug lets me use the $() on any webpage so what I am trying to achieve is:
I have a bunc... | stackexchange/codereview |
An Example of the problem
Randomly i have a character on screen. He starts offscreen and smoothly moves onto the screen. However i have the problem with it moving offscreen. Right now i put him in the body using jquery. When it gets to the right side i plan to remove him by checking the width and waiting until he is co... | stackexchange/codereview |
I have an array as follows. How would I retrieve the value of a specific key and put that value in a variable?
var obj = {"one":"1","two":"3","three":"5","four":"1","five":"6"};
So for instance if I want to get the value of "three" how would I do it in javascript or jQuery?
| stackexchange/codereview |
I have a data set of annotations that can update very quickly. At the moment I remove all annotations before replotting them back onto the map.
NSArray *existingpoints = [mapView.annotations filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"!(self isKindOfClass: %@)", [MKUserLocation class]]];
[mapView re... | stackexchange/codereview |
Hi, I need to style images of a JPG format only. (jQuery)
I need class to be applied to jpeg's when it's placed in specific container (not all jpg's on the page).
For example:
<img src="non-jpeg.jpg"> <!--no changes made-->
<img src="jpeg-image.jpg"> <!--no changes made-->
<div class="spec-container"><img src="jpeg-i... | stackexchange/codereview |
A bit of background from the PIL setup.py build:
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.... | stackexchange/codereview |
On the system I am working with, we have a Password class that validates by throwing exceptions under the following conditions:
public Password(string password)
: base(password)
{
// Must contain digit, special character, or uppercase character
var charArray = password.ToCharArray();
var hasDigit = ch... | stackexchange/codereview |
I think I have the logic of this down I just don't exactly know the proper selectors to accomplish this.
I'm editing a page through the DOM that has already been "created" with a third party .asp script. Forewarning, I have no access to this .asp script so anything associated with this I can't provide.
I am essentiall... | stackexchange/codereview |
Hey there, I was wondering if it is possible to use the Android SoftKeyboard within an OpenGL rendered Application (Game)?
I ask this, because I want to have an ingame gui with self rendered text input fields and ofc with support of the soft keyboard. Is this possible or do I have to render the keyboard all by myself ?... | stackexchange/codereview |
Hej, I'm trying to create an app that runs on a main thread, but also has a background loop running (to check for a connection).
I just want to call a certain function onCreate, and that function should run in the background...I've tried with the code below, but doesn't seem to work...any suggestions?
void doStuffB... | stackexchange/codereview |
Scheme macros, at least the syntax-case variety, are said to allow arbitrary computation on the code to be transformed. However (both in the general case and in the specific case I'm currently looking at) this requires the computation to be specified in terms of recursive functions. When I try various variants of this,... | stackexchange/codereview |
I am writing soap server and soap client in php. For Authentication of soap services , i want to use "usernametoken" for security. Can anyone send me the example applied in server and client using nusoap.
I am using nusoap to write the soap services.
Thanks & Regards,
neetha
| stackexchange/codereview |
I'm using the jQuery UI (1.8) slider widget to enable the user to slide/scroll a series of icons horizontally. Sometimes I want to move the slider programatically and the correct way to do that is by altering the option "value", like this:
$("#content-slider").slider("option", "value", 37);
The motion of the slider ha... | stackexchange/codereview |
There is a section of code in a library I use that looks like this:
...
if ( ptype == typeid( Vector< T, 4 > ) )
{
This->SetNumberOfComponents(4);
}
else if ( ptype == typeid( Vector< T, 5 > ) )
{
This->SetNumberOfComponents(5);
}
...
If there any way to make this mo... | stackexchange/codereview |
I am using Seam 2.2.1.CR1 on Weblogic 10.3.2 and JSF 1.2.
I have an ear application with 2 war files. The first war is a JSF / Seam application, the second one does have JSF / Seam, but also has some Servlets pages as well.
When I set things in the Session context in the first web application:
Contexts.getSessionContex... | stackexchange/codereview |
I have ipad application which has 3 tableviews with holds data like label,image,property lists etc, as while performing orientation it has some overlapping,slow response compared to native apps,
I have tried some methods like willRotateToInterfaceOrientation etc,
is that any thing that make sense to make orientation fa... | stackexchange/codereview |
I've been learning more about Python recently, and as I was going through the excellent Dive into Python the author noted here that the __init__ method is not technically a constructor, even though it generally functions like one.
I have two questions:
What are the differences between how
C++ constructs an object and... | stackexchange/codereview |
Has anyone tried to create a log file of interprocess communications? Could someone give me a little advice on the best way to achieve this?
| stackexchange/codereview |
I just deleted the wrong branch with some experimental changes I need with git branch -D branchName.
How do I recover the branch?
| stackexchange/codereview |
It is not clear (at least from the docs I read) how to compile ruby 1.9.2 with Tk support.
Could you explain how to compile (on linux, fedora) ?
| stackexchange/codereview |
i'm trying to come up with appropriate constant names for two right-angled triangles that can be rotated.
the image above shows the two different versions of a right-angled triangle. the right angle of the orange triangle is in the bottom-right while the right angle of the blue triangle is in the bottom-left.
from th... | stackexchange/codereview |
I have a Maven-3 multi-module project:
/root
pom.xml
/bar
pom.xml
/foo
pom.xml
Module foo depends on module bar, and they both have the same parent: root. Everything works fine, until I decided to clean my local repository and run mvn site:site. Build fails with a message:
Failed to resolve artifact.
Mis... | stackexchange/codereview |
I am wanting to show a half opaque arrow at the top and bottom of my ScrollViewer if it can scroll up or down respectively. I'm thinking the best option is a DataTrigger, but I'm not sure what I can tie it too. I'm trying to avoid subclassing ScrollViewer, but if I absolutely have to, I will. Any ideas?
I'm using th... | stackexchange/codereview |
If I set a radio button to be selected on the first time, it works fine. But if I unselect it by calling
((RadioButton) findViewById(R.id.ID)).setChecked(false);
then, later even if I try to make it selected by calling setChecked(true) will not work unless the user select it from the screen.
Have any one come acr... | stackexchange/codereview |
I'm working on a game, and I've come up with a rather interesting problem: clever ways to draw starfields.
It's a 2D game, so the action can scroll in the X and Y directions. In addition, we can adjust the scale to show more or less of the play area. I'd also like the starfield to have fake parallax to give an impressi... | stackexchange/codereview |
I was going over my django site looking for xss problems. I figured I had it covered since django does auto escaping. So I put the usual alert('foo'); in sample data and I found a huge hole where I'm using ajax to pull data down as json and using jquery.append to add it, none of that is escaped for html, oops.
So my ... | stackexchange/codereview |
I'm writing a database project on the iPhone and I'd like to store some big SQL queries in a separate, project-included file.
Then, I'd like to read this query into an NSString * (or, well, const char * is also ok) reference, and then perform it with an sqlite3.
I'm a newbie to iPhone developing, and I have never worke... | stackexchange/codereview |
I have ASP.NET MVC application, where I keep all of drop down values in a table. So on average every page accesses this table 2-3 times. I want to cache (load into memory) this table on application startup.
Is there a way to do so? I have googled, but helpful topics found.
Thanks in advance.
| stackexchange/codereview |
I have populated an array with databack from a webservice and need to populate the UI based on the last 6 years, even if they do not exist in the data. The Data coming back can be in terms of the UI incomplete, so what I need to do is insert values into the array for the "missing pieces".
Example
Data returns {2010, 2... | stackexchange/codereview |
What's the best way to check whether there is video data (or not) in a live RTMP stream? For example, if a broadcast terminates, can I auto-detect that condition, to perform some sort of "thank you for watching" behavior?
Also, how can I know if a visitor somehow gets disconnected from the Internet during the broadcast... | stackexchange/codereview |
When running under the in-built development server, all runs fine.
However, when running under mod_wsgi in Apache, the following code (a replacement method for django.shortcuts.render_to_response) causes an internal server error:
# Tidy and render
def render_tidy_response(*args, **kwargs):
httpresponse_kwargs ... | stackexchange/codereview |
I want a safe C++ pointer container similar to boost's scoped_ptr, but with value-like copy semantics. I intend to use this for a very-rarely used element of very-heavily used class in the innermost loop of an application to gain better memory locality. In other words, I don't care about performance of this class so ... | stackexchange/codereview |
I know how can I skip steps programmatically but I need "Skip" button too.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.