instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
We all know about log, ok, but why should we consider the «Logger» class a singleton one? What happens if we make it as a normal non-singleton class?
| stackexchange/codereview |
What is the purpose of using (connection) in the code - please explain me
static void HasRows(SqlConnection connection)
{
using (connection)/// what is this line
{
SqlCommand command = new SqlCommand(
"SELECT CategoryID, CategoryName FROM Categories;",
connection);
connectio... | stackexchange/codereview |
Dear all. I'm pretty new in coding with location, so be nice.
I have a list of location (lat & lng), that could be really anywhere (ie : all in the same city ; one in bangladesh and one in paris...).
When initializing google map, I would like to center on the barycentre on these location.
So this is my first question :... | stackexchange/codereview |
I'm doing a wpf project on a windows embedded standard sp3 operating system and I noticed that occasionally controls disappear or parts of it go missing. This can only be reproduced when using the xp embedded machine so it may have something to do with the drivers or operating system. I thought it might have been rel... | stackexchange/codereview |
I wrote a class to contain my objects in it.
The code is:
class objectPool
{
private:
struct itemType_{uint count; void* object;};
std::multimap< std::string, itemType_ > pool_;
public:
template<class T>
bool addItem(std::string key, T*& object)
{
std::multimap< std::string, itemType_ >::... | stackexchange/codereview |
what are the recommended ways to synchronize data between an external system and MSCRM 4.0? By synchronization I mean periodically importing/exporting data (contacts, activities and some other entities) to/from MSCRM. The interface to the external system is CSV or ODBC.
I read about several methods. Currently I am favo... | stackexchange/codereview |
I'm new to .Net world, my primary language was C++ where there are lot of idioms that help code better(RAII,PIMPL...). What are the common idioms available for c#.
| stackexchange/codereview |
Possible Duplicate:
How to printf “unsigned long” in C?
I have my number like so...
int unsigned long number = 600851475143;
I am trying to print it with printf(). Every time I try, I get a warning by the compiler.
I've tried %uld, %ld and Googling hasn't seemed to find me the answer.
I'm learning C, but have not ... | stackexchange/codereview |
This is a variation on another Q of mine. I have two applications, X and Y. They have to share a single COM object between them. X will be sending data to this object and Y will respond on events sent from this application. At any moment, X or Y might be terminated, yet the singleton needs to stay alive until both appl... | stackexchange/codereview |
Assume I have a class like this:
[Serializable]
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
public bool Deleted { get; set; }
}
I would like the output to be:
<Person>
<Name>Thomas</Name>
<Age>33</Age>
<Deleted />
</Person>
or
<Person>
<Name>Thomas</Name>
<Age>33</Age>
</... | stackexchange/codereview |
there is an app called FreeStyler, that you can control using midi commands. In my mac app I want to send midi signals.
Can someone show an example of this?
Elijah
| stackexchange/codereview |
iam developing an app in which, images are to be scrolled on touchesmove i.e, swipping left /right.
I also have to display previous and next images beside present image in protrait mode.
I have seen the covertFlow sample, which is very close to my app, but i want it in horizontal mode. Please suggest me how can i achei... | stackexchange/codereview |
What I'm trying to achieve is trying to match both the subdomain and the full path in order to redirect to a version without www. in front of it. To do so I use:
RewriteCond %{HTTP_HOST} ^www\.(.+).mydomain.com$ [NC]
RewriteRule ^(.*)$ %{HTTP_HOST}%{REQUEST_URI} [C]
RewriteRule ^www\.(.+)\.mydomain\.com/(.*)$ http://$... | stackexchange/codereview |
iam trying to add items to an ul element using jquery.
the items will be added when a user click on Add new item :
here is what i have :
function addFormField() {
var id = document.getElementById("id").value;
if(id<5){
$("#elem ul").append('<li id="listItem_"'+ id +'>Item Added Nr.'+... | stackexchange/codereview |
We're in the analysis/early design phase of a future Swing application where persistance is provided by a database (probably an alternative between Oracle and mySql depending on the customer's money).
Basically, the application will feature two kinds of modules :
One "admin" subsystem to feed and maintain a set of ref... | stackexchange/codereview |
Is it possibile to have templateField from detailsView visible only in inserMode?
<asp:TemplateField HeaderText="My Header" SortExpression="TypeName" Visible='<%# Eval("DetailsView1.CurrentMode == DetailsViewMode.Insert")%>'>
this doesnt work exception is:
Databinding expressions are only supported on objects that ha... | stackexchange/codereview |
What is the difference between storing data in CORE data and storing them in File system. And on what basis should one choose between them?
| stackexchange/codereview |
This is my first foray into java, and I am having trouble understanding how maps work. I have a for loop which appends maps of information into another map. However when I look at the outermost map it contains the correct number of sub-maps, however they all conatin the same information, even though I originally put di... | stackexchange/codereview |
Is there a difference between statement "Worst case running time of an Algorithm A" and "Running time of an Algorithm A is O(n)"?
What I think "there is no difference" because, worst case is the peak running time that the function can take, O(n) means that the function is "bounded by". Both give the same meaning.
Hope ... | stackexchange/codereview |
I've implemented some threading into a project I've been working on in another thread, but the comments and questions have grown way off topic of the original post, so I figured best thing to do was to make a new question. The problem is this. I want my program to stop iterating over a while loop after an amount of ite... | stackexchange/codereview |
Once again I've hit a brick wall when debugging my android application.
This problem usually manifests when you have errors in the startup code of your activity.
In this case, somewhere after the constructor of my custom SurfaceView class I get presented with this worthless text:
Thread [<3> main] (Suspended (exception... | stackexchange/codereview |
Using winAVR for the following code.
I got an 8-bit PIN here that I need to OR it with 00000010 or 0x02 to set the 7th bit.
Now what I have to do is the following :
Set Port B bit 7
Wait for 1ms
Clear port B bit 7
wait 19ms
BUT, I shouldn't change the other bits in these steps.
So I have to :
Read port B
Set bit n... | stackexchange/codereview |
In the context of a click-once application that is being debugged locally with exception breaking on "Thrown" turned on in VS2010, I am experiencing the following error:
Deployment Exception: "Store metadata "CurrentBind" is not valid."
at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppI... | stackexchange/codereview |
I am trying to create a css horizontal drop down menu that will show the children in a horizontal subnav. What I have so far is: (this is incomplete but I am stuck)
<ul class="menu">
<li class="top"><a href="/">Home</a></li>
<li class="top">
<a href="/company/">About</a>
... | stackexchange/codereview |
I would like to replicate the permissions from one database to another. Could that be done by simply copying the mysql table over?
| stackexchange/codereview |
I'd like my Windows Form ComboBox to only allow users to select from available options and not write things in.
Is there a property somewhere I'm missing? Thank you.
| stackexchange/codereview |
I'm using ROW_NUMBER() and a derived table to fetch data from the derived table result.
However, I get the error message telling me I don't have the appropriate columns in the GROUP BY clause.
Here's the error:
Column 'tblCompetition.objID' is invalid in the select list because it is not contained in either an aggrega... | stackexchange/codereview |
Is it possible to get a control at the current mouse location if its in a window not known by the application? (not in Application.OpenForms)
I implemented a low level mouse hook which can get the mouse location anywhere on the screen, but I can't seem to access controls outside of my application. What I want to be ... | stackexchange/codereview |
This code returns a variable set of fields and I want to return a strongly typed <E>:
public IList<E> Get(Expression<Func<E, object>> selectLambda == null)
{
if (selectLambda == null)
selectLambda = p => p;
var partialSet = DC.CreateQuery<E>("[" + typeof(E).Name + "]");
foreach ( var record in parti... | stackexchange/codereview |
I am trying to write a method that will take an IntTree as a parameter and return a Queue with the values of the IntTree in level order. To clarify: an IntTree is a tree with an integer value as its root, and has an IntTree as its left and right subtrees.
A note on some methods:
value(t) - returns the integer value at... | stackexchange/codereview |
bool print_date(Date *d, char **argv) {
if (isdigit(*argv+1)) {
return printf("is d");
} else {
return printf("is not d");
}
}
The above function don't work. *argv+1 is the user input, is it a string or what types when passing in? anyone can help?
int main(int... | stackexchange/codereview |
I've got a project called DotRas on CodePlex that exposes a component called RasConnectionWatcher which uses the RasConnectionNotification Win32 API to receive notifications when connections on a machine change. One of my users recently brought to my attention that if the machine comes out of sleep mode, and attempts t... | stackexchange/codereview |
I am calling a C++ function from C#. As arguments it receives a pointer to an array of structs.
struct A
{
int data;
}
int CFunction (A* pointerToFirstElementOfArray, int NumberOfArrayElements)
In C# I have created the same struct (as a class) and I marshall it correctly (the first element in the array is receiv... | stackexchange/codereview |
I am using Eclipse Helios, Glassfish 3.0.1 (Full Platform) and myfaces 2.0 .
There a two projects in the workspace: A simple Java project (=> JP) and a dynamic web project (=> WP). I added JP to the classpath of WP.
I added one class from JP as a managed bean to the faces-config.xml file of WP.
<managed-bean>
<man... | stackexchange/codereview |
Having problems with and update query i keep getting
Warning: Crud::update() [crud.update]: Property access is not allowed yet in crud.php on line 60
This is my code
$stmt = $this->mysql->prepare('UPDATE links SET title = ?, url = ?, comment = ? WHERE id = ?');
$stmt->bind_param('sssi',$title,$url,$comment,$id);
$s... | stackexchange/codereview |
Is it possible to make
propel-gen insert-sql
without losing previous data? Is there any hack for this?
I usually just add or remove some rows in a table editing schema.xml, executing:
propel-gen
propel-gen sql
propel-gen insert-sql
and this wipes out all the data, which is annoying!
| stackexchange/codereview |
I'm writing an app for a museum tour. I'd like my app to know where the user is in the building, if the user is standing in a particular room, in front of a particular work, etc.
GPS doesn't work inside. (Using WiFi positioning could work, but I know Apple doesn't use Skyhook anymore, so I don't know where I would regi... | stackexchange/codereview |
I have an ajax call that returns a HTML fragment. I am trying to select a div in that fragment before rendering.
An example of the HTML:
<div class="event-detail repBy-container">
<div class="copy">.....</div>
<div class="links">
....
</div>
<div class="contacts">
<div class="name-brand">.... | stackexchange/codereview |
I have a Matrix multiply code that does matrix multiply by the following
Where Matrix A * Matrix B = Matrix C
for(j=1;j<=n;j++) {
for(l=1;l<=k;l++) {
for(i=1;i<=m;i++) {
C[i][j] = C[i][j] + B[l][j]*A[i][l];
}
}
Now I want to turn it into multi threaded matrix multiply and my code is as follows:
I use a struct... | stackexchange/codereview |
I have my fb login button created as so
<fb:login-button perms="email" size="small" onlogin="check_login_session()">Sign Up Using Facebook</fb:login-button>
I have also defined the check_login_session function already as I'm using it on a .click link elsewhere on the page(which does work). However, my problem is when ... | stackexchange/codereview |
I'm trying to change the way the error files from system/application/errors work by logging the errors and showing a 404 page instead. However, sometimes the error occurs in the middle of a page and I need to display only the error page.
I've tried to check if the headers are sent and cleaning the output buffer but it ... | stackexchange/codereview |
I will like to validate user entry to ensure they are integers. How can I do it? I thought of using IDataErrorInfo which seems like the "correct" way to do validation in WPF. So I tried implementing it, in my ViewModel.
But the thing is my text box is bound to an integer field, and there isn't any need to validate if a... | stackexchange/codereview |
Hey there, I am trying to access raw data from iphone camera using AVCaptureSession. I follow the guide provided by Apple (link here).
The raw data from the samplebuffer is in YUV format ( Am I correct here about the raw video frame format?? ), how to directly obtain the data for Y component out of the raw data stored ... | stackexchange/codereview |
Related to this question.
What is wrong with the following code?
typedef char (*p)[20] ptr;
ptr myFunction () {
char sub_str[10][20];
return sub_str;
}
int main () {
ptr str;
str = myFunction();
}
| stackexchange/codereview |
I'm trying to code a mssql job that does something using the files in a specific directory. But I don't know the name of the file / files, they will vary in time.
I've found xp_cmdshell command, but I can not use it because of security reasons
Is there any other way to check directory if it contains txt files or not (a... | stackexchange/codereview |
during web site design stage or when web site is running on production server?
| stackexchange/codereview |
Is pagination allowed in replies page of the Discussion Board list? i.e is it possible to show only 5 replies in a page of a discussion? If possible how? If not suggest an appropiate solution.
| stackexchange/codereview |
What event of DataGridView should i use to replace integer value to appropriate value of some enum?
I'm using Linq-To-Sql and stored proc to fill grid with data.
| stackexchange/codereview |
I'm trying to swap all attribute id's at once from '$old' > '$new' then save the xml:
$reorder = array( 9=>"8", 8=>"5", 7=>"4", 6=>"3", 5=>"0", 4=>"1", 3=>"9", 2=>"7", 1=>"2", 0=>"6" );
$objDOM = new SimpleXMLElement(some.xml, null, true);
foreach ($reorder as $old => $new) {
$picture = $objDOM->xpath('... | stackexchange/codereview |
I have method to get list of bean properities like below. How to check that method return type is collection (like List, Set...). isInstance(Collection.class) doesn't work.
public static List<String> getBeanProperties(String className, boolean withLists) {
ArrayList<String> a = new ArrayList();
try {
C... | stackexchange/codereview |
For software testing purposes I would like to create a sterile clone (with all data blanked out) of the production database. This way I can run my unit tests on a known set of records every time. I am looking to try and do this programmatically within the unit tests themselves so I can ensure that the tables contain ex... | stackexchange/codereview |
Today, no matter what I did, my application just would not recognise a change I did to a file I uploaded. I even put a cfabort at the top of the page and it just ignored it.
Now, this is a production server, so there were some things I normally have to do for the fusebox framework to load the new pages. However, all t... | stackexchange/codereview |
Is it possible to scale an image by using a specified point as the anchor, i.e. the image "grows" out from this point?
| stackexchange/codereview |
I wonder how to make a domain name checker (testing for availability) for top-level domains?
Eg. to check if the domain: stackoverflow.com or stackoverflow.dk is available or not.
Do I need to be subscribed to a service to do this, or is there some simple magic behind such test?
Thanks
| stackexchange/codereview |
I'm using Google Code to host some of my hobby projects. I want to make some of my code private, and unfortunately you can't do this on the Google Code site.
I was looking at Project Kenai but I've read some rumours that Oracle are pulling the plug on that.
What free alternatives are there, which give an SVN repository... | stackexchange/codereview |
I want to reset my sql server 2008 database like when it's first created. all the identities must be reset. All the data in the database must be gone. Is there a way to do this?
| stackexchange/codereview |
I'm fresh to Rhodes and don't have any experience with RoR.
I created a new model in my application:
rhogen model CoffeeKind name,description,vendor,picture
I would like to:
add a new property ("sizes")
reference another model from within this one ("vendor" referencing CoffeeVendor)
import various coffee kinds from js... | stackexchange/codereview |
I'm trying to make some calls to a WebService
I did exactly what is described in this article
http://viralsarvaiya.wordpress.com/2010/03/23/calling-web-service-from-java-script-in-asp-net-c/
Looking at the console of firebug I could see that my function was executed and returned the expected data, but my callback funct... | stackexchange/codereview |
I have an object, that I would like to interact with dynamically. I would like to rename the game1_team1 in:
$default_value = $individual_match->field_match_game1_team1[0]['value'];
to be game1_team2, game2_team1, game2_team2, game3_team1, etc. Based on the loop they are in.
I have tried:
$dynamic = 'field_match_game'... | stackexchange/codereview |
Just looking to be pointed in the right direction:
Have standard input to a C program, I've taken each line in at a time and storing in a char[].
Now that I have the char[], how do I take the last word (just assuming separated by a space) and then convert to lowercase?
I've tried this but it just hangs the program:
whi... | stackexchange/codereview |
I've heard of Java programs with strict latency requirements where "new" instructions are never -or very rarely- used (because no new=>no objects->no GC=>improved latency)... instead all business logic is handled using primitives.
I couldnt find references to this technique online though... any link to a webpage discus... | stackexchange/codereview |
I have a very simple app for Android that displays a Google Maps view and uses the GPS to track the position (essentially like so):
public void onCreate(Bundle savedInstanceState) {
// ...
mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
// ...
}
public void onResume() {
super.... | stackexchange/codereview |
I know that MEF currently supports downloading XAP files from a URI (which is awesome!), but does anyone know if it's possible to have MEF load a XAP from a byte array?
Thanks!
| stackexchange/codereview |
Preamble
Using VTK library with C++, quite often I have to write something like this:
vtkInteractorStyleRubberBandZoom *isrbz = vtkInteractorStyleRubberBandZoom::New();
Furthermore, every time I need to use a new VTK class in my program, I have to go somewhere up the source file and add #include "vtkInteractorStyleRub... | stackexchange/codereview |
I am using VS2010 , and I am building a simple wpf application using C#
I have built a database using SQL Server 2008
in my application I created a LINQ to SQL class and created a dbml file
then I created a datacontect and did everything right
BUT
when I can't aaccess my database file everytime I try to , I mean when ... | stackexchange/codereview |
I have a view with two different actions of the same model (An item list sorted by the most recent, and the same list sorted by the most popular). One list I want to paginate with 8 items at a time and one with 12 items at a time. I'm using AJAX to page in the items. How do I go about setting up the controller to handl... | stackexchange/codereview |
I have a set of data (CSV files) in the following 3 column format:
A, B, C
3277,4733,54.1
3278,4741,51.0
3278,4750,28.4
3278,4768,36.0
3278,4776,50.1
3278,4784,51.4
3279,4792,82.6
3279,4806,78.2
3279,4814,36.4
And I need to get a three-way contingency table like: (sorry, this doesn't look completely good)
A /... | stackexchange/codereview |
There's some way to declare Strings and Variables in Obj-C for iPhone?
I mean, i want to display the data input on textfield in 01.xib on 02.xib label's.
How can i do that?
Thanks!
| stackexchange/codereview |
I've looked around a bit on stackoverflow and Google Groups and haven't really found an answer for this exact question.
I simply want to be able to know what country the user of an Android phone is currently in.
I assume the TelephonyManager doesn't work if the user is using wifi only. Is this true?
We've tried passin... | stackexchange/codereview |
How do I check generic subtypes passed as parameter?
For example:
public class A<T> { public T get();}
public class AString extends A<String> {}
public class ADate extends A<Date> {}
public void checkparam(List<? extends A<?>> params) {
///Want to check if params is of type List<AString> or List<ADate> ?
}
Is it poss... | stackexchange/codereview |
I want to count words. I use the methods hasNextChar and getChar. The sentence may contain all kind of chars. Here's my code:
boolean isWord = false;
while(hasNextChar()){
char current = getChar();
switch(current){
case ' ' : case '.' : case ',' : case '-' :
... | stackexchange/codereview |
I have a test where I am sending a message in SOAPUI, usually this will trigger an message coming back asynchronously to my Mock Service so I have a Mock Response.
Now I have a testcase where receiving any message to my mock service would be considered failure.
Other tools I have used in the past had the concept of un... | stackexchange/codereview |
“feature branches” is when each feature is developed in its own branch and only merged into the main line when it has been tested and is ready to ship. This allows the product owner to choose the features that go into a given shipment and to “park” feature that are part written if more important work comes in (e.g. a ... | stackexchange/codereview |
I am creating an iOS app which reads in a text file and displays the contents in a UIText field.
For the 1st three consecutive runs of thee app (Restarting a new session without exiting),
the data is read in fine. However on the fourth attempt, the data returned from the file is all nulls.
I've verified the file integ... | stackexchange/codereview |
Although my question looks similar to some already found on SO, those post did not help me, so here it is:
Given:
Two machines on the same segment (naturally in the same domain, actually on the same desk)
Both machines are Windows 7 workstations
Both machines have disabled firewall
Both machines see each other (ping w... | stackexchange/codereview |
I have the following problem .. I am using StackLayoutPanel and
when I try to add a child of the same instance of another stack will
not let me and I remove his head and child.
The question is how I can make my stack allows many children of the
same instance?
I tried to make a wrapper of the children by putting them in... | stackexchange/codereview |
I have just upgraded my ASP MVC 3 application from the preview to the beta version.
In preview everything worked fine, but as soon as I upgraded weird things started to happen.
I get this error message:
Compiler Error Message: CS0234: The
type or namespace name 'Helpers' does
not exist in the namespace
'System.W... | stackexchange/codereview |
why do we do this:
private string StatusText
{
set { toolStripStatusLabel1.Text = value; }
}
instead of just this?
private string StatusText
{
toolStripStatusLabel1.Text = value;
}
i do not understand the point of using set?
| stackexchange/codereview |
Suppose I have a Post entity and a Comment entity and a one to many relationship:
@Entity class Post {
...
@OneToMany
List<Comment> comments;
...
}
How can I achieve paging like this:
Post post = //Find the post.
return post.getComments().fetch(100, 10); // Find the 11th page (page size 10);
Is it pos... | stackexchange/codereview |
Consider this query in SQL Server 2000 returning XML.
select * from Mytable employee for xml auto , elements
I'm trying to create an XML file using classic ASP.
The results of the query is fetched using a recordset object. Tresult is one row and one column.
The resulting xml file has only first 2 row or 255 character... | stackexchange/codereview |
I am making a website, and am having trouble viewing things in IE. Every other browser seems to be fine. After some google searches about z-index, a lot of people have mentioned bugs with IE, mainly the fix seems to be to go up from 0 - 1000 - 2000. Afters hours of searching, i'm still confused. I am about a bit of a n... | stackexchange/codereview |
I inherited a Wordpress plugin that makes custom fields available when editing pages and/or posts. It adds slightly different content for pages than it does for posts. The plugin determines page or post with the following:
if(preg_match('|post.php|i', $_SERVER['SCRIPT_NAME']) || preg_match('|post-new.php|i', $_SERVER['... | stackexchange/codereview |
So I have a chunk:
<li> [[+img-port]]
<div class="floater">
<h2>[[+longtitle]]</h2>
<p>[[+introtext]]</p>
<p class="readmore"><a href="[[~[[+id]]]]" title="Read more</a></p>
</div>
</li>
And a TV-parameter "img-port" input: image, output: image.
I've sele... | stackexchange/codereview |
Is there any reason for not being able to have double as a parameter type with templates?
For example:
template<int N>//-< Legal
struct
{
};
template<double N>//-< Illegal
struct
{
};
Is there any update on this in C++11?
| stackexchange/codereview |
I want the error massages print in a different color to terminal, is it possible and how?
I want to print the word 'ERROR' in red and 'warning' in yellow.
Thank You.
| stackexchange/codereview |
Hi
How do i display the value of domain from this array:
{:domain=>"www.domain1.com"}, {:domain=>"domain1.com"}, {:domain=>"www.domain2.com"}
I have tried this:
<% @domains.each do |d| %>
<%= d %><br />
<% end %>
That displays this:
domainwww.shopcms.dk
domaindomain1.com
domainwww.domain2.com
I have also tried to ... | stackexchange/codereview |
im very new to c programming and have done only if/else, loops, arrays, pointers, functions and structs. I would be very glad if anyone could tell me how to create a 2d array which would contain randomized with time, but would have values that are repeated only twice...
meaning for example:
1 2 3 6
8 7 4 5
7 5 6 3
2 1 ... | stackexchange/codereview |
what my application needs are
1) Read large sized excel files with .xls or .xlsx format
2) insert every column as a row in database with previous column as a parent of next
means if i am having 5 columns and 30,000 rows then i want to insert 1 column as parent,
2nd column is child of 1st column, 3rd column is child o... | stackexchange/codereview |
I try to convert Europe OSM data to my postgis database and observe that some countries like Greece or Russia are imported incorrectly.
It seems that it takes only part of their geometries. For example, there is only two separate islands for Greece in my database after osm2pgsql import.
It's very strange. I tried to u... | stackexchange/codereview |
Having problems deserializing some xml into an object in C#.
The error that I receive is...
xmlns=''> was not expected.
The XSD that I received to generate my class is as follows...
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="xml.AAAAAAA.com/commerce/apres-vente_technique/assistance" xmlns:pgp="... | stackexchange/codereview |
I am trying to automate a test script for a website
I have the following error
import urllib , urllib2 , cookielib , random ,datetime,time,sys
cookiejar = cookielib.CookieJar()
urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
urllib2.install_opener(urlOpener)
username=username.s... | stackexchange/codereview |
I've been playing around with JSF 2.0 composite components but I'm a bit confused as to what the require attribute in the composite:attribute tag is meant to do. The documentation says that the required attribute is true if the page author must supply a value for this attribute.
I've interpreted that as meaning that a... | stackexchange/codereview |
I have an user control, which contains multiple methods and each of these methods has a try-catch block. I catch only one type of exceptions, for example ArgumentException. Update - I don't catch one exception but multiple exceptions which I defined.
Each of these methods handles the ArgumentException the same way, so ... | stackexchange/codereview |
This problem is a subproblem of a problem posed in the ACM ICPC Kanpur Regionals Elimination Round:
Given 2 line segments bounded by the 2D points (Pa, Pb) and (Pc, Pd) respectively, find p and q (in the range [0,1]) that minimizes the function
f(p, q) = D(Px, Pa) + D(Py, Pd) + k D(Px, Py) where
... | stackexchange/codereview |
I am working an existing iPhone app, while need to change the code of C.
I want to use a dictionary in standard C file, simpily, I can not use NSDictionary, compiler said it is invalid in c99(coz the headers Foundation/Foundation.h and Foundation/NSDictionary.h can not be found), but CFDictionaryRef is available (coz h... | stackexchange/codereview |
I'm configuring a consolidated server with named instances and non standard ports.
The only way to allow connectivity is to set up an alias using Sql Server configuration manager. Is there an easy way to move these aliases between machines?
mark
| stackexchange/codereview |
The way I see it, one use of a Window Procedure's WM_CREATE message is to relieve the caller of the burden of executing static code at window initialization. My window is to execute some code in the WM_CREATE message, including the ShowWindow function. I also want the ShowWindow to behave properly according to the nCmd... | stackexchange/codereview |
While working with pointers in C, I have been experiencing a very incosistent result, I am working with a token which is a byte string which i need to make a directory path.
a token consists of the date as a prefix in the format of 20101129(2010-oct-29) and then a 20byte string follows, thus a token would look like 201... | stackexchange/codereview |
I want to do a networking project using python. Can any one suggest a useful project in networking? I am aiming to complete it within next 5 months or so.
| stackexchange/codereview |
Is it possible to create a thread pool using boost's thread?
i was looking all over boost's libs and I couldn't find a thread pool manager (or something like that)...
Is there a way to do it?
tnx!
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.