instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
What does it mean to give a process CAP_SYS_RAWIO in linux? How do I do that? (Specifically to give pyUsb access to devices. This is related to this pyusb question)
| stackexchange/codereview |
I'd like to do something like this:
twistedServer.start() # This would be a nonblocking call
while True:
while twistedServer.haveMessage():
message = twistedServer.getMessage()
response = handleMessage(message)
twistedServer.sendResponse(response)
doSomeOtherLogic()
The key thing I want to do ... | stackexchange/codereview |
I inherited a Delphi application and I know nothing about object pascal.
It's a BPL that I need to compile into the new version of C++ Builder XE.
When I run a make I get the error:
E2064 left side cannot be assigned to.
I've learned enough obj pascal to know I have a constant that is trying to be assigned a value.
But... | stackexchange/codereview |
I have a very old application that now needs to be friendly to Windows Server 2008. It is a user application that works as singleton. It uses HKLM part of registry to read and write the configuration, and it creates log files.
Main question: how to make application work with UAC in regards to best current practice?
My ... | stackexchange/codereview |
What needs to be done in order to serialize enums with protobuf-net? I'm getting the below error when serializing a class having an enum property, if the DataMember attribute is removed from the property declaration it works fine.
"System.InvalidOperationException: Only data-contract classes (and lists/arrays
of such) ... | stackexchange/codereview |
here is the code I'm working with and works perfectly fine:
$curEvent_query = @mysql_query("SELECT ppl.Fname, ppl.Lname, ppl.Email, plans.ID, plans.Date FROM ppl INNER JOIN plans ON plans.ID IN ($List) AND plans.OwnerID=ppl.ID AND plans.Date >= CURDATE() ORDER BY plans.Date ASC");
But once I add the LIMIT, the code no... | stackexchange/codereview |
I've been trying to use a <limit> tag to disable PUT and DELETE calls from being executed through our Apache server and have been unsuccessful.
Apache Version: 2.2
I am currently adding something like this to the inside of my httpd.conf file:
<Directory />
Options none
AllowOverride none
Order deny,allow
... | stackexchange/codereview |
I got problems with memory in my asp.net application. The problem is that I can't see any problems when running it locally (between 100-200mb) but on the production system I get 503-errors because of the memory limit (512mb) being reached (running it on shared hosting).
How can I pin down the problem? I don't think tha... | stackexchange/codereview |
I am really stuck with these two things.
What I am trying to do:
My entity is simple. It's a "record".
It has a "name (NSString)" and "parent (relationShip)"
"parent" connect to itself, entity "record".
Ok, now I want to create "parentRecord" and "simpleRecord".
I try to do with that code:
groupRecord = (record *)[N... | stackexchange/codereview |
int *ptr = malloc(sizeof(char));
*ptr = 100000;
printf("%d\n", *ptr); // 100000
Shouldn't that only allocate enough memory for a char, i.e. 1 byte? Therefore shouldn't the largest number be 255?
How does it still print 100000?
Update
Thanks for the answers. If it overwrites the next bytes, how does C then know that ... | stackexchange/codereview |
I am trying to write a test code against some secured web service.
So, I've searched the web for some (https) web service to write the client against but didn't find.
I've looked in one or more UDDI but without any results.
| stackexchange/codereview |
My requirement is to validate an xml with two different validation strategies. In strategy 1, the xml is required to have instances of an element with certain required attributes. In strategy 2, the xml is required to have instances of the same element with different required attributes. So, the idea is that there are ... | stackexchange/codereview |
I have a scenario where my application has access to a session for limited time windows, during which it must fetch data from the database into memory, and then only use the in-memory data to serve requests.
The data model is a simple one-to-many association such as:
<class name="com.foo.Road" table="road">
<id nam... | stackexchange/codereview |
if i call uibinder through new TheWidget(); is onLoad() method is call right after TheWidget() is instantiationed ?
public class TheWidget extends Composite {
}
in my test, onLoad() is not call
| stackexchange/codereview |
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSManagedObject *selectedObject = [self.fetchedResultsController objectAtIndexPath:indexPath];
BlogRssParser *blogRss = [[BlogRssParser alloc] init];
[blogRss setSelectedObject:selectedObject];
RssFunViewController *rssF... | stackexchange/codereview |
There are some times when I'd like my site to trigger a 408-response (for when various pieces aren't responsive). (PHP 5.3.3 and Apache, both Windows and Linux machines)
I can use the following code and get the expected result in all browsers except Firefox:
<?php
// Access forbidden:
header('HTTP/1.1 408 Request Timeo... | stackexchange/codereview |
I want to create a TabActivity that works like a browser.
When the activity is created, it has two tabs: "Tab1" and "Add Tab". When the "Add Tab" is clicked, it should Add a new tab.
Tab 1 | Add Tab
==> Add Tab is clicked
Tab 1 | Tab 2 | Add Tab
==> Add Tab is clicked
Tab 1 | Tab 2 | Tab 3 | Add Tab
...
All my tabs co... | stackexchange/codereview |
Why I'm getting this error? (Adobe Air)
ReferenceError: Error #1069: Property . not found on builtin.as$0.MethodClosure and there is no default value.
var srt:String = "2010.11.12 19:15";
var _split:Array = str.split(" ");
var _date:String = _split[0];
var _time:String = _split[1];
var dateArr:Array = _date.split[... | stackexchange/codereview |
I am rather new at distributing databases and am unsure if this is possible without having to include MySQL drivers or whatever.
| stackexchange/codereview |
I want to send mail by PHP mail() function.
Does PHP mail() function return delivery status? If not then what is the way to find whether my mail is delivered or not in PHP?
| stackexchange/codereview |
I have a multi-megabyte .sql file, there are GO statements on newlines every 10k or so. I am trying to come up with a way to read the file, line-by-line, until I hit a new line that only has "go" and a Newline character, then return what was read to the caller, and then read the next bunch of text until I hit GO again.... | stackexchange/codereview |
I am working on an older Flash project created in CS3 ActionScript 2.0 How can I make the pointer cursor change to the hand when hover over a list item?
_root.slidePanel.myList
'myList' is the list. I have traced out the contents of the List MC and it has a child MC called 'content_mc'. I assumed this was the object c... | stackexchange/codereview |
hi
I am planning to run jruby (1.5.3 latest) on mongrel but how much memory will it require on x64 server for a simple web site ? and how many instances will be required ?
10000 page views per day
for the same requirement what would be the numbers for ruby.
any reference production data would be welcome.
| stackexchange/codereview |
I work with ASP.NET/C#, and when in code-view there is a members drop down list above the text editor. Any visual studio developers with even some experience with the IDE probably know what I'm talking about. Anyway, the list displays all the members of the code-file I'm currently working with in alphabetical order. Is... | stackexchange/codereview |
I have an application with embedded Jetty 6.1.26. Servlet 2.5.
Below is my server configuration.
The problem is, that when I try to have JSPs and Servlets together, it does not work. I either have one or the other working, based on whether I have server.addHandler() or server.setHandler() in the code below.
By "does no... | stackexchange/codereview |
How can I use a specific ModelForm as the form for my modelformset_factory?
I'm using django-form-utilities to have a BetterModelForm, and I would like to use that same form as the basis of my formset. I have thought that I could write my own custom factory that extends formset, but I was guessing there is an easier w... | stackexchange/codereview |
Trying to use jmockit to stub out a javax.sql.DataSource class. Any ideas?
public class MyTest
{
@MockClass(realClass = DataSource.class)
public static class MockDataSource {
}
@Before
public void setup()
{
Mockit.setUpMocks(MockDataSource.class);
}
@Test
public void t... | stackexchange/codereview |
I have a document which is stored in doc library of sharepoint..now i want to open and read data from it ...how can i do it ..filestream does not take url as input ..please help.
| stackexchange/codereview |
Are there any free implementations that will run on GAE/J?
| stackexchange/codereview |
how can i scan an image from a webpage in asp.net.
I need a free control or a code to scan an image from a scanner in
any user that requests the webpage.
Thank you.
| stackexchange/codereview |
i try to return a CGPoint but i do something wrong:
Here is my method:
- (CGPoint)calculatePointOnCircleFrom:(CGPoint)pointA PointB:(CGPoint)pointB radius:(float)rd {
float sryy = pointA.y - pointB.y;
float srxx = pointA.x - pointB.x;
float sry = pointA.y + sryy;
float srx = pointA.x + srxx;
float ... | stackexchange/codereview |
I am working on a homework assignment, beginning C#.
Have to accept input from user:
phone number with numbers or characters
then return only the numeric version of number.
My program takes input and returns value, but does not end when 10 characters have been entered.
You can enter as many characters as you want, th... | stackexchange/codereview |
In Helios, the old "EE Module Dependencies" was replaced with "Deployment Assembly" but it still does the same thing, allows for the addition of external projects, in this case, a pure Java Project.
This all works fine locally, but when I have Maven build the war for deployment, a jar is not added for the local java p... | stackexchange/codereview |
Okay, so, I wanna be able to choose different versions of Zend Framework (and other frameworks) using Zend_Loader. Well, the code isn't tricky at all, but the problem is, there are so many require_once lines in the framework itself that would practically make the autoloader useless.
The Zend directory has to be in the... | stackexchange/codereview |
as the title says, I want to use an xhtml as my homepage and I want to redirect visitors using Internet Explorer browsers to a different page (a .htm with less content that says "You're using IE, tough tittie.").
Since IE automatically downloads app/xhtml files, I can't do this using javascript and whatnot, so I think ... | stackexchange/codereview |
As a unified way for our applications to detect downtime and server maintenance we'd like to know if there is a way to set a variable that can be set per application pool (or server) and read by PHP and ASP.NET.
I know that it's possible to set FastCGI environment variables, but those aren't read by ASP.
Any ideas?
| stackexchange/codereview |
I tested this regex out in RegexBuddy
,[A-Z\s]+?,(LA|RO|MU|FE|AV|CA),(ML|FE|MN|FS|UN)?,(\d+/\d+/\d{4})?
and it seems to be able to do what I need it to do - capture a piece of data that looks like one of the following:
,POWDER,RO,ML,8/19/2002
,POWDER,RO,,,
,POWDER,RO,,8/19/2002
,POWDER,RO,ML,,
When I use it in a pyth... | stackexchange/codereview |
Well, I hosed up my Android development PC, but didn't care all that much since I really needed a newer, much faster PC for this work. And here I am now with a high-end Windows 7 64-bit box.
Eclipse and all the Android components are up and running, but the one thing I'm having trouble with is how to get my previous pr... | stackexchange/codereview |
Is there a way to have commit comments added to changed files on 'svn commit'. I have been told there is a way to do this with cvs, but we use svn. Currently, we have it add the revision number to changed files with '$Revision' keyword.
| stackexchange/codereview |
I have a report with headers in the page header section, this data is not visible in the "Export to Excel(Data only)" report.
Please let me know what I did that changed this since it used to be visible before the report layout was edited.
Thanks in advance
| stackexchange/codereview |
I have a custom control with its template defined in a generic.xaml. It is a two row grid in which the second row can be "retracted into" the first row.
However, I found that when I simply animated the height of the second row or the grid to acheive the desired results, the parent of the template (i.e the instance o... | stackexchange/codereview |
I have a UITablView with search box, when you type a text, content will show according starting character typed in serach box then when you select uitableview cell, it goes to another page, which has nearly 30 objects like, UILabel and UITextView. This is the way I constructed the page. When I select a company, I get a... | stackexchange/codereview |
I'm using embedded SQL with Java. I have a simple table where I want to return an average from the column that contains temperatures. I tried to use ResultSet but it wasn't successful, I think this may be because average returns just a single data not a set. I tried to google it and look on the sun website documentatio... | stackexchange/codereview |
I have a normal sortable list, and a "toolbox" from where I want to get elements into the list. So for example:
<ul id="list"></ul>
<ul id="toolbox">
<li>item 1</li>
<li>item 2</li>
</ul>
I want to make it so that when you drag one of the toolbox's elements, it creates a copy of itself that can attach to the list.... | stackexchange/codereview |
I have class Phenotype with the following constructor:
Phenotype(uint8 init[NUM_ITEMS]);
I can create a Phenotype like this:
uint8 data[] = {0,0,0,0,0};
Phenotype p(data);
But I get an error when I try to create one like this:
Phenotype p = {0,0,0,0,0};
Output:
$ make
g++ -Wall -g main.cpp -std=c++0x
main.cpp: In fu... | stackexchange/codereview |
I wanted to use code like this in my Zend Framework project:
public function indexAction() {
$user = new User();
$user->name = "Guest";
$user->save();
}
The main thing that is important for me is that the class is called just User and not App_Model_User but how could I manage that?
I thought I could add th... | stackexchange/codereview |
When remotely updating a Mercurial Repository, I am getting the following error from the hg update command that is being run on the remote server after the push. I looked around online for some help for this however was unsuccessful in finding anything useful. At this point, I am hoping for some ideas and / or insigh... | stackexchange/codereview |
Everytime I run rake spec with Rspec2 and Rails3 it finishes with rake aborted. Wondering if this is normal behaviour or if I have made some mistake along the way?
........
Finished in 0.01589 seconds
7 examples, 6 failures, 1 pending
rake aborted!
ruby -S bundle exec rspec "./spec/helpers/homes_helper_spec.rb" "./s... | stackexchange/codereview |
Hi i have a problem with using datanucleus for my JPA
i'm using netbeans as my IDE, i've imported the datanucleus enhancer jar, but everytime I ran the file, it says that i should enhance my class.
I've search the net and i'm still not sure on how to do it, anyone kind enough to shed some light on how to enhance my cl... | stackexchange/codereview |
I am using the javascript googlemap API.
I want the user to define a city name. Then I store the name + coordinate in a database.
It is easy to do, but the problems are :
if the user make a mistake (for example Paaris instead of Paris), google understands but I don't know the final name (the correct one), so I create ... | stackexchange/codereview |
Can I have some pointers on how can my "background app" make a call and send sms at some pre-defined number and predefined datetime.
| stackexchange/codereview |
I am new to IoC and I am playing with Unity. Let' say you have a solution with 'n' projects and you want to use Unity to register and resolve the dependencies. Lets say your composition root is in project a. Let's say you have the following projects in the solution.
a
b
c
d
Lets say a depends on something in b, b dep... | stackexchange/codereview |
There are at least two ways, directly or indirectly, of suggesting that the JVM expend effort collecting garbage:
System.gc()
taking a heap dump and requesting live objects only
In the latter, I can get hold a heap dump programmatically, for example through
hotspotMBean = ManagementFactory.newPlatformMXBeanProxy(Mana... | stackexchange/codereview |
I have a Qt project in XCode on Mac. I want to add an existing .UI file to it. When I do that by listing in the .pri file, the XCode project itself is rebuilt by qmake, and all my post-qmake settings are lost. Is there a way to insert a UI file without listing in the .pri? It's doable in a very straightforward way on V... | stackexchange/codereview |
I want to populate the data from a database using client side programming either HTML or javascript. I looked online and got lot of sites giving examples on server side i.e. JSP,ASP or PHP for creating the dropdown menu. I know the simple syntax for creating the HTML dropdown menu and in other languages. But I don't kn... | stackexchange/codereview |
I have a table full of documents with serial numbers - columns:
docid int
writing text
submissionDate datetime
...and I'd like to find out where a particular serial number lies in a query against the table.
For example, if I ordered the resultset by submissionDate asc, I might want to know where document 34 is withi... | stackexchange/codereview |
Given a date in the following string format:
2010-02-02T08:00:00Z
How to get the year with JavaScript?
| stackexchange/codereview |
In the following jsfiddle I have put some html and some css. I'm trying to not have each element wrap when the screen gets smaller. Actually I'm trying to implement the jqueryUI slider inside of my container. I've tried to implement several css fixes to get each element to line up side by side. However they initial... | stackexchange/codereview |
I am reading the documentation about the controller http://www.playframework.org/documentation/1.1/controllers and I know how to define them on the controller side.
public static void show(Long[] id) {
...
}
or:
public static void show(List<Long> id) {
...
}
or:
public static void show(Set<Long> id) {
...... | stackexchange/codereview |
What is the WPF version of Control.MouseButtons?
| stackexchange/codereview |
Are you for one or the other? Or both?
My understanding is unit tests:
validate the system from the developer's point of view
help developers practice TDD
keep code modular
assist in detecting errors at low levels of granularity
Acceptance tests:
validate the system from the business and QC / QA points of view
tend... | stackexchange/codereview |
Supposing I need to print the logged user on every page of my app.
Currently, I'm going with Model inheritance, using an ActionFilter that fills the user in my base Model, and displaying it : ( using a DisplayTemplate )
<% = Html.DisplayFor( x => x.CurrentUser ) %>
What about using a PartialView, called in the MasterP... | stackexchange/codereview |
Possible Duplicate:
Numeric comparison difficulty in R
Hello All,
According to "R Inferno" paper. I'm right now in the first circle of R hell. This is where pagans expect 0.1 == 0.3/3. Paper recommends using all.equal function for such cases, however I need to check ">=" or "<=" conditions. With current example on o... | stackexchange/codereview |
For instance I have a pivot table on every third worksheet that needs to be edited, on the worksheet is 3 pivot tables, I don't actually know the name of the table but I know it lies on $N$2, is there anyway to get the name or handle of the pivot table from the cell?
| stackexchange/codereview |
I'm new to Android development. I'm trying to use the orientation change to switch between two activities. My idea is to use three Activities one TabActivity and a normal Activity. Here is some pseudo code:
public class Main extends Activity{
// this is the entry point into my app
@Override
public void onCreate... | stackexchange/codereview |
I have a text field which is filled with a date from the jQuery UI Datepicker. Depending on the date format the user has selected in their profile on my site, datepicker will either fill in the text field with DD-MM-YYYY or MM-DD-YYYY. If the date is filled in as DD-MM-YYYY, Ruby on Rails interprets this correctly and ... | stackexchange/codereview |
I am trying to extract level data from a PCM audio file using core audio. I have gotten as far as (I believe) getting the raw data into a byte array (UInt8) but it is 16 bit PCM data and I am having trouble reading the data out. The input is from the iPhone microphone, which I have set as:
[recordSetting setValue:[NSNu... | stackexchange/codereview |
Friend's
I'm parsing an xml file from web service,it contains html tags,when i use the particular node like description ,the parser simply escapes to parse.for example below content
i use to parse it simply skipped from parsing
**<desc>
<![CDATA[<img src=http://www.browndailyherald.com/polopoly_fs/1.2403115!image/2... | stackexchange/codereview |
I have a Facebook app that displays content without requiring any authorization from the visitor.
I wish to display the visitor a welcome message ("Hello {USER_NAME}"), but without requiring authorization.
I'm using an iframe, but I can switch to fbml for this.
I'm okay with this only working for the canvas page (http:... | stackexchange/codereview |
I want to how to do following general step:
where to find slow SQL
how to debug SQL (including functions)
how to create index properly
when using "update statistics", when should I use HIGH or LOW, and why?
I am going to write a paper about this topic; any help is welcomed.
| stackexchange/codereview |
I'm using the Python bindings for OpenCV and have run into a little annoyance using CreateVideoWriter where when I call the function, it prints something similar to the below to the console and I can't seem to surpress it or ideally redirect it into a variable.
Output #0, avi, to 'temp/Temp.0433.avi':
Stream #0.0: ... | stackexchange/codereview |
I have a jqGrid event handler that receives the iCol as a parameter. I need to know how to obtain the name specified in colModel for that given iCol.
For example given the following jqGrid event handler:
onSelectCell that receives rowid, celname, value, iRow, iCol
How can I get the colModel name associated with the iCo... | stackexchange/codereview |
I just started a new job and was given a bug to track down and fix. The basic issues it that a field in a DB record is being cleared out and no one knows why. So far I have tried:
Checking the table for triggers,
there are none.
Monitoring the table using SQL
Server profiler for the last couple
of days in the hopes... | stackexchange/codereview |
Given the following, I'd like to extract VarVal1, VarVa5 and VarText where FixedVals are, well, fixed :)
<TypeA Attr1="VarVal1">
<TypeB Attr2="FixedVal2">
<TypeC Attr3="FixedVal3">
<TypeD Attr4="FixedVal4" Attr5="VarVal5">
VarText
</TypeD>
</TypeC>
... | stackexchange/codereview |
When implementing the non-throwing swap idiom, should I use throw()?
namespace A
{
struct B
{
void swap( B& other ) throw()
{ /* fancy stuff that doesn't throw */ }
};
void swap( B& lhs, B& rhs ) throw()
{ lhs.swap(rhs); }
}
namespace std
{
template<>
void swap( A::B& lhs, A::B& rhs ) t... | stackexchange/codereview |
Howdy,
I would like to implement a ListView in a Relative Layout - however, that ListView should not be scrollable. Meaning: It should show all of it's elements in the RelativeLayout/LinearLayout.
The elements should change the colors on touch and call an intent on click.
What would be the best approach to reach that g... | stackexchange/codereview |
im looking easy steps for convert any html/php template into a very simple wordpress theme for personal use. I have a site, in there i want news at the begining using the wordpress interface, i worked a lot with wordpress and i made some themes, but modifing already made ones, so i didnt care a lot about the code.
So, ... | stackexchange/codereview |
I wanted to do again to develop in haxe on my MacBook after quite a long time. So I go on haxe.org, download the mac installer and install the latest version of haxe with it.
Then I open the terminal and type haxe, just to encounter this short error message:
Bus Error
Well, did I do something wrong? I'm using OSX 10.4... | stackexchange/codereview |
I am pretty sure that a parameter will do the trick but I can't find the one I am looking for.
I am trying to display one TextView -file_type- below the file_title TextView.
What would be the parameter that I should add to the file_type TevxtView block to come under the file_title TextView block ?
There is what I am do... | stackexchange/codereview |
I've been messing around in C++ a little bit but I'm still pretty new. I searched around a little bit and even using the keywords of exactly the problem I am trying to tackle yields no results. Basically I am just trying to figure out how to tell if a variable has no data. I have a file that my program reads and it sea... | stackexchange/codereview |
I have a class...
class Document
{
public int GroupID { get; set; }
public bool Valid { get; set; }
// more
}
... and a list of instances: IEnumerable<Document> documents. In a first step which runs object by object through this list those documents have been validated, which means: the property Valid wil... | stackexchange/codereview |
I'm doing a project where i need some custom swing components. So far I have made a new button with a series of images (the Java Metal look doesn't fit with my UI at all). Ive implemented MouseListener on this new component and this is where my problem arises. My widget changes image on hover, click etc except my Mouse... | stackexchange/codereview |
How can I implement encryption between server side in (php/python) and C++ (Win32/Native Windows)?
I have to transfer data between server side (using php or python) and client side (C++ using Win32 APIs). I am not sure that what functions/APIs or Libs I can use on the both sides so that both sides should be able to com... | stackexchange/codereview |
Let's say I allocate memory to a pointer to a structure:
CatStructure * cat; // assume a CatStructure has name and weight
Let's say I initialize cat to:
cat->name = "pippy";
cat->weight = 100;
If I save a reference to cat->name and cat->weight, do I still need to save a reference to cat? In other words, is it necessa... | stackexchange/codereview |
I'm using hibernate search and I would like to do special things.
On the update of a person entity, the method that persist the entity duplicate this one + create new person entity.
Which means that I'm standing with 3 person entity after an update of this person. (Because I'm versioning all the data in the db).
Is the... | stackexchange/codereview |
Im trying to find a way to delete all duplicated entries in a table of my db. Cause I have to make some further calculations with this duplicates before I delete them, I will have to put them in a temporary table.
Retrieving of the duplicates is a rather complex sql statement, which I rather don't want do execute in ac... | stackexchange/codereview |
While trying to compile the mono 2.8 sources under VS2010
i am getting following errors:
build only mono project:
error LNK1181: cannot open input file 'libmono.lib' \msvc\LINK mono
IntelliSense: cannot open source file "glib.h" \metadata\lock-tracer.h
build complete mono solution:
\mono\profiler\mono-profiler-loggi... | stackexchange/codereview |
I have a page with an iframe and then sidebar links. The sidebar links lead to articles loaded within the iframe. Each sidebar link has a link like this "/news#1940," where the number following the # tag corresponds to the ID of the article. I then am using the following jQuery to both load the news page on our site an... | stackexchange/codereview |
how do i configure Hudson Findbugs plugin to send a notification mail if a new failure is detected?
thx
| stackexchange/codereview |
I want to create a ruby extension that uses c. But when I compile it with gcc, I am getting this error:
gcc rubyext.c -orubyext -I /usr/local/include/ruby-1.9.1/
In file included from rubyext.c:1:
/usr/local/include/ruby-1.9.1/ruby/ruby.h:25:25: error: ruby/config.h: No such file or directory
In file included from rub... | stackexchange/codereview |
I'm calling a page via WebForm_DoCallback javascript function. On server, in Page_Load I'm trying to check if this is a callback by checking Page.IsCallback flag. However, this flag is false. Why?
| stackexchange/codereview |
I want dLower and dHigher to have the lower and higher of two double values, respectively - i.e. to sort them if they are the wrong way around. The most immediate answer, it seems is:
void ascending(double& dFirst, double& dSecond)
{
if(dFirst > dSecond)
swap(dFirst,dSecond);
}
ascending(dFoo, dBar);
But ... | stackexchange/codereview |
I am doing a small project of my own - A Fractal Generator.
Would th einbuilt graphics of C# be adequate or would WPF be preferable? I've never had a look at WPF, is it complicated and is it worthwhile learning?
| stackexchange/codereview |
i has one problem in which i can enter some of a data to the database.Ho can i code this things..i used Insert and update query....the value is type double,integer...and also string.....
| stackexchange/codereview |
I have the following code for having a small class for storage.
#include <iostream>
template<typename T>
class storage
{
private:
struct destroy
{
T& m_t;
destroy(T& t) : m_t(t) { }
~destroy() { m_t.~T(); }
};
char m_c[sizeof(T)];
void* address() { return &m_c[0]; }
public:
void set(const T&... | stackexchange/codereview |
I'm working on a project where I have to make a binary search tree that stores strings and takes account of doubles. While i've already tackled the specifics, I can't for the life of me get this damn insert function to work. It seems to only store the root node, leaving it's "children" NULL even though it does actually... | stackexchange/codereview |
I have typical profile/account settings form. So as expected you would be having a "name" field and a "domain" field(which will be used as like a website url: maddy.mywebsite.com). This domain field needs to be editable only once. Once set to one thing, will not be made editable later(since this is like a site url).
A... | stackexchange/codereview |
I have a SELECTABLE telerik grid with a checkbox column. When the checkbox is selected I change the background color of the row to yellow using javascript.
I would like to restore the original css of the grid when the checkbox is deselected using javascript. I can toggle the row background color but because the grid i... | stackexchange/codereview |
I am launching detail pages from a UITableView and within that detail page there is an image. I would like it to be zoomable, so I'd like the contents of that detail page to sit inside a scrollView. So far no luck, the labels, textviews and images are fine, but I can't get the ScrollView implemented.
here is my .m: T... | stackexchange/codereview |
I wrote a Moose object class which extends another Moose object class:
package MySubClass;
use Moose;
extends MySuperClass;
I have an attribute which I'd like to automatically build upon object instantiation:
has 'id' => (
is => 'ro',
isa => 'Str',
builder => '_build_id',
init_arg => undef,... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.