instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am having some trouble collecting information on an unhandled exception being generated (very rarely) in my code. I have set up an the handler pretty much the standard way.
In the main I have:
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExceptionProcessor);
And the handler functi... | stackexchange/codereview |
I'm trying to check if a string is a number, so the regex "\d+" seemed good. However that regex also fits "78.46.92.168:8000" for some reason, which I do not want, a little bit of code:
class Foo():
_rex = re.compile("\d+")
def bar(self, string):
m = _rex.match(string)
if m != None:
... | stackexchange/codereview |
It's my first time trying out C++ STL. I'm trying to build a multidimensional associative array using map. For example:
typedef struct DA {
string read_mode;
string data_type;
void *pValue;
void *pVarMemLoc;
}DA;
int main()
{
map<string, map<string, map<string, map<string, map<string, DA*>>... | stackexchange/codereview |
I need to get a list of all the scheduled tasks running on a certain host into a list or array in C#.
The query
schtasks /query /S CHESTNUT105B /FO List
returns a list like this:
HostName: CHESTNUT105B
TaskName: Calculator
Next Run Time: 12:00:00, 10/28/2010
Status: Running
HostName: CHESTNUT105... | stackexchange/codereview |
So if there is some global state that every view of an MVC app will need to render ... for example: IsUserLoggedOn and UserName ... whats the appropriate way of getting that information to every view?
I understand that that part of the view should be in the master page or in a partial view thats added to the other view... | stackexchange/codereview |
I am trying to write a unix shell script to download all the files in a directory posted on a website. How would I go about doing this? Thanks playas
| stackexchange/codereview |
For my new application I would like to parse another C, C++ or C# project, so that i can later display the graphical representation of all the classes in this project.
So I thought that its a good approach to use a database with the following tables to store the necessary information:
TablePackages:
id | name | parentI... | stackexchange/codereview |
I'm using a jQuery datepicker to select an applicant's date of birth, but the applicant's age must be restricted to values between 21 and 100 years.
In order to make the selection relatively easy I have turned on the month and year dropdown boxes, and being in the UK I have localised it.
<script type="text/javascript"... | stackexchange/codereview |
I hate using service references for many different reasons, instead I use interfaces and System.ServiceModel.ChannelFactory
I would like to be able to use something similar when connecting to WCF Data Services.
I mean when I'm creating the DataService Endpoint it's just DataService why can't I new up a DataServiceConte... | stackexchange/codereview |
When the user type something in textbox the auto-complete work with json, he make lots of requests to the server. How can I stop the old request when making a new request in jQuery?
| stackexchange/codereview |
This question has been asked before:
Postgresql full text search in postgresql - japanese, chinese, arabic
but there are no answers for Chinese as far as I can see. I took a look at the OpenOffice wiki, and it doesn't have a dictionary for Chinese.
Edit: As we are already successfully using PG's internal FTS engine for... | stackexchange/codereview |
I am trying to develop a Facebook application for Android. I am unable to integrate the "Add Comment" feature to photos in Facebook Albums. Using the Graph API, I can show the previously made comments on a photo. However, I just can't add new comments to a photo.
Can somebody provide me some helpful advice?
| stackexchange/codereview |
I need to hide a TextView after 10 seconds. I thought I could implement a Chronometer and when elapsed time is bigger than 10000 millis I hide the TextView. My problem is that the chronometer only ticks once and then stops. Any idea what I've missed ?
Activity ctx = this;
...
private void ShowText(String message)
... | stackexchange/codereview |
The following is the LogOn user control from a standard default ASP.NET MVC project created by Visual Studio (LogOnUserControl.ascx):
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
if (Request.IsAuthenticated) {
%>
Welcome <b><%: Page.User.Identity.Name %></b>!
[ <%: Html.ActionLink("Log Off"... | stackexchange/codereview |
I have a bunch of code in Surround SCM, which I would like to get into a workspace in Eclipse. I will need to be able to work off of two branches. One for bug fixes, and one for new features, which can then be merged into my main branch. What is the best way to do this?
| stackexchange/codereview |
I'm new to Japplets.. I'm wondering if I have the following...
classA A = new classA();
//launch Japplet here
and classA extends Japplet how would I launch the Japplet?
If it's any help I'm using a Java Bean and I've tried calling classA.init(); although this class does execute when I call this method it just do... | stackexchange/codereview |
In high-performance computing, sums, products, etc are often calculated using a "parallel reduction" that takes n elements and completes in O(log n) time (given enough parallelism). In Haskell, we usually use a fold for this kind of calculation, but evaluation time is always linear in the length of the list.
Data Paral... | stackexchange/codereview |
i have a jquery Ajax request happening on a page. On php side i am checking if the session is active and doing something. If the session is not active i want to redirect the user to another page in php(header redirect). how do i do it.
I know how to achieve it in javascript(i.e if session_fail then change window.loc... | stackexchange/codereview |
I'm developing applications in MonoDevelop for the first time today, and I just need to know how to compile my projects for mac, NOT windows.
When I click "Compile" after right clicking on my project, I always get an exe file. (Which, when tested, DOES work as programmed) That's all fine, and good, but being a mac user... | stackexchange/codereview |
I have seen a lot of similar questions in the archives, but I can't find a scenario like the problem I'm having.
Below is my code. I'm running into errors with "finalPrice" and "grandTotalPrice" may not have been initialized. The lines of code are towards the end of the program.
The variables should be assigned total... | stackexchange/codereview |
Possible Duplicate:
How can my iPhone Objective-C code get notified of Javascript errors in a UIWebView?
I'm running into a very annoying issue developing javascript for a UIWebView in an iPhone application. If there is an error in the javascript, it silently fails and halts execution of the function it was running... | stackexchange/codereview |
This is probably unbelievably basic. In the code below, I have annotated the part that needs attention. I just do not know how to structure it if, instead of res.DATA.VALUE[i], I make it dynamic and write 'res.DATA.' + textCol + '[i]' (pure pseudocode, I realise it won't work)
function loadSelect(entity,textCol,ret... | stackexchange/codereview |
alright, so my code to read bytes into a int is like so:
int offset = (byte << 16) | (byte2 << 8) | byte3;
And it's reading the bytes "00 00 be" as -66.
How do I read it as the 190 it's meant to be?
| stackexchange/codereview |
I am in the middle of writing a JavaScript library and I have hit a problem, I have a function that resizes elements, that all works good but I also have and animated version that resizes them over a specified time frame. The script seems to freeze when ever it is run and it seems to be down to my while loop, here is m... | stackexchange/codereview |
I have the following dynamically generated strings:
var stringA = ["a1", "a2", "a3" ... 'a400' ... 'a600']; // length 600
var stringB = ["b1", "b2", "b3" ... 'b400']; // length 400
How can I get an Array or string of both combined like this:
var myString = ["a1b1", "a2b2", "a3b3" ... "a400b400", "a401" ... "a600"]
| stackexchange/codereview |
Hi have a hashtable and an adodb.recordset.
The field's names of hashtable are same of fields adodb.recordset
How can i import the fields value of hashtable in fields adodb.recordset without do it manually?
ex
Dim Tot As ADODB.Recordset
Dim h As Hashtable = New Hashtable
h("a") = 1
h("b") = 2
h("d") = 4
the recordse... | stackexchange/codereview |
i am having a discussion board. and when we access that discussion board, the default view is flat view. in that view there will be "Posted By" field. On clicking the image or username on that field, sp will redirects to the corresponding user page(about details). in my current project i want to disable all this posted... | stackexchange/codereview |
I'm trying to merge a branch into a sparse checkout (all the files I touched in the branch are included in the checkout) and I'm getting the following error:
Cannot reintegrate into a working copy not entirely at infinite depth
Does this mean what I think it means? That you have to have a fully recursive checkout in ... | stackexchange/codereview |
I need to debug some C# code on a remote machine running XP Embedded. I did remote debugging on several occasions on different Windows operating systems and all worked well, but I think that the XP Embedded OS is missing something.
I'm popping my brains out in the last couple of days, reading and trying stuff, but not... | stackexchange/codereview |
I am using CXF generated code to connect to a remote web service over SSL and through a corporate proxy. The code works fine when the connection is established through the Java API and all SSL settings are set as system properties as follows.
System.setProperties("https.proxyHost", "myproxy.com");
System.setProperties... | stackexchange/codereview |
In a game that I mod for they recently made some changes which broke a specific entity. After speaking with someone who figured out a fix for it, they only information they gave me was that they "patched it" and wouldn't share anymore.
I am basically trying to remember how to dump the memory contents of a class object ... | stackexchange/codereview |
We'd been getting "A required anti-forgery token was not supplied or was invalid." errors, and on some further investigation, I've managed to recreate the problem in its simplest form - i'm either doing something completely wrong, or this is a limitation of the anti-forgery token system.
Either way, I'd appreciate some... | stackexchange/codereview |
I have downloaded the image from given url,and displayed in the imageview,which works fine in the emulator .but not works in real device... whats the problem?
Here my code
final String url = urlStr;
InputStream inputStream = null;
try {
inputStream = httpRequest.openHttpConnecti... | stackexchange/codereview |
In a IEEEtran latex template, I am trying to put a figure spanning full width of the page.
I am doing,
\begin{figure*}[h]
\centering
\setlength\fboxsep{0pt}
\setlength\fboxrule{0.25pt}
\fbox{\includegraphics[width=6.2in]{Figure7}}
\caption{Figure}
\label{f7}
\end{figure*}
This places the image on a new page at the end... | stackexchange/codereview |
Suppose I have a destination class and a source class that are mostly the same. Almost all of the properties map automatically using automapper.
Say that of the 30 properties on these classes, two don't have a direct corelation in any way that automapper can automatically figureout.
Is there a way to tell automapper t... | stackexchange/codereview |
does anyone here knows the correct way of associating a single entity(a pojo class) to multiple classes.. im currently working on a situation where mainClass has a one-to-many relationship to subClass and subClass has one-to-many relationship to unitsClass too. the relationship of these classes looks like this:
mainCl... | stackexchange/codereview |
I have developed a site, took a back up on the development site. I have created a empty site on the live environment. I have restored the blank site from the backup.
I need to change some parameters of the webpart. could anybody suggest me what those list of parameters as I have the following error.
Unable to display ... | stackexchange/codereview |
Does anyone have an information about a good query profiler?? By query i mean about 5 page search query.The profiler should be such as which gives the bottleneck in the query.
thanks
| stackexchange/codereview |
Can you use ExtractingRequestHandler and Tika with any of
the compressed file formats (zip, tar, gz, etc) to extract the content out for indexing?
I am sending solr the archived.tar file using curl. curl "
http://localhost:8983/solr/update/extract?literal.id=doc1&fmap.content=body_texts&commit=true"
-H 'Content-type:ap... | stackexchange/codereview |
I need to constantly merge (upsert/delete) data from an ODBC data source to a SQL Server 2008 database (number of rows vary from one row to 100000 of rows)
What would you recommend as the most efficient approach (using .net 3.5 ):
Use SqlBulkCopy into temp table then call stored procedure with Merge command using t... | stackexchange/codereview |
I'm trying to put together a page whereby a user can upload a file, and it goes to a database.
I'm following a tutorial, and my controller method so far looks like this:
public ActionResult Index()
{
ViewData["Message"] = "File Upload";
foreach (string upload in Request.Files)
{
if (!Request.Files[... | stackexchange/codereview |
Possible Duplicate:
Google Chrome Extension Numbers on the Icon
So I'm developing a chrome extension and I would like to put a number on the icon. I'm assuming this is done through the canvas element but I can't find any examples. Anyone have an example they want to share?
| stackexchange/codereview |
I've created a custom ListView by extending SimpleCursorAdapter. The result is IMAGE + CheckedTextView (Text + Checkbox).
After I had issues with the wrong checkboxes getting checked (see here) I had to remove lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); from onCreate.
Now I click on a ListItem line and it checks t... | stackexchange/codereview |
I have the problem that my service which has the LocationListener implemented, receives a GPSupdate every 500ms it seems. No matter what minTime i put in the requestLocationUpdates function.
Piece of my code:
public class LocationService extends Service implements LocationListener {
LocationManager locMan;
@O... | stackexchange/codereview |
I've run into some surprising behavior while using ADO with C++ and Microsoft SQL Server 2008 (express). Essentially, I had code that did this:
//pseudocode pseudocode pseudocode
adoConnection->Execute("BEGIN TRANSACTION;");
Insert( adoRecordsetPtr );
SelectAll( adoRecordsetPtr );
adoConnection->Execute("COMMIT TRA... | stackexchange/codereview |
The title may be confusing so ill try to elaborate. I have a business object that tracks time for either a manifest or an office. So in my database i have two columns, both are nullable, but only one can be not null. In my mapping i have
References(x=>x.Manifest, "ManifestId").Cascade.All();
References(x=>x.FieldOffic... | stackexchange/codereview |
I'm trying to do some image processing on iPhone.
I'm using http://developer.apple.com/library/ios/#qa/qa2010/qa1702.html to capture the camera frames.
I saw that I can set AVCaptureVideoDataOutput image format using setVideoSettings, but is it possible to get the images in lower resolution?
If not, is the an efficie... | stackexchange/codereview |
I am using the yui progress bar to display ratings for a list of items. I know the progress bar inherits the "on" method, but I'm not sure how to capture where in the progress bar the user is clicking. I'd like to get an int or double from that event. Is this possible?
| stackexchange/codereview |
I want to keep my main .hgrc in revision control, because I have a fair amount of customization it in, but I want to have different author names depending on which machine I'm using (work, home, &c.).
The way I'd do this in a bash script is to source a host-local bash script that is ignored by Mercurial, but I'm not su... | stackexchange/codereview |
How can i connect to a TcpServer(using ip & port) with J2ME ? i want to send a request to the server and get responses !
| stackexchange/codereview |
I'm trying to save myself just a few keystrokes for a command I type fairly regularly in Python.
In my python startup script, I define a function called load which is similar to import, but adds some functionality. It takes a single string:
def load(s):
# Do some stuff
return something
In order to call this funct... | stackexchange/codereview |
I am trying to model a one-to-one association with my devise model and for some reason, I cannot access the edit path for the dependent model. Here is what I mean:
I have a CRUD controller for both a User and Credential model. User is a devise model.
class Credential < ActiveRecord::Base
belongs_to :user
end
class U... | stackexchange/codereview |
Essentially what I'm looking for is a function with the following prototype: string getln(istream);
All I need it to do is work like PHP's fgets(), that is, take an input stream as a parameter and return the next line from the stream.
I feel like my current approach is somewhat bulky for creating a temporary variable e... | stackexchange/codereview |
Basically, I'm getting some data from a WebService, and in the ResponseCallback I'm trying to fill an ObservableCollection with the results I got from the response, but I get an UnauthorizedAccessException "Invalid cross-thread access" when I try to do so.
What would be the best way to fill said observable collection w... | stackexchange/codereview |
As a part of my app I'm building, I'm trying to add a radio feed, and the radio station in question only supplies an asx/asf stream and has no plans to support anything else, so I have no access to change any of the source stream.
Obviously, reading an ASF stream using the default libraries does not work, as the iPhone... | stackexchange/codereview |
Is it a must to use the struts2-jquery plugin to be able to run jQuery code in a struts2 application?
I am working on a struts2 web app
jQuery file: WebContent/js/jquery-1.4.3.js
JSP pages location: WebContent/pages/*.jsp
THDFindYourQuote.jsp is the default page of the application:
I have a simple script in THDFindYour... | stackexchange/codereview |
Let's say you have a website where the body's background color is red and a content area with a white background that is 1,000 pixels wide. Now let's say you want a drop shadow on the content area that is darkest at the juncture of the content area and the red background, and gets less opaque as it goes off the the lef... | stackexchange/codereview |
I have a very simple asp:textbox with the multiline attribute enabled. I then accept just text, with no markup, from the textbox. Is there a common method by which line breaks and returns can be converted to <p> and <br/> tags?
I'm not looking for anything earth shattering, but at the same time I don't just want to... | stackexchange/codereview |
I'm trying to instantiate a generic class in Spring, but I get following exception:
Initialization of bean failed; nested exception is
org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class football.dao.jpa.GenericJpaDAO]: Common causes of this problem include using ... | stackexchange/codereview |
i want to create a new variable with a variable name,
for example:
function preloader(imglist) {
var imgs = imglist.split("|");
for (i in imgs) {
var img_{i} = new Image; //this is the line where i sucked in!
img_{i}.src = imgs[i]; //another line where i sucked in!
}
}
preloader("asd.jpg|... | stackexchange/codereview |
I need my swf to be able to see the domain of the page that it's loaded on. Normally to to this I would just look at window.location over ExternalInterface, but in this particular case the swf is going to be embedded with allowscriptaccess="never", so that's not going to work. Is there an actual api that will give me t... | stackexchange/codereview |
could you please advice what Java I/O Streams can be used for? Every of them which is in standard Java 5 or Java 6 I/O API.
For example FileReader and FileWriter are used for reading and writing files.
StringReader and StringWriter are used for reading and writing strings in memory.
ObjectInputStream and ObjectOutputS... | stackexchange/codereview |
I have a service on Android that listens and responds to packets it receives via multicast.
This works most of the time, but unfortunately, I'm finding that every now and again it'll just stop receiving packets. The thread remains blocked on the call to MulticastSocket.receive(), but nothing comes out. I've been slowly... | stackexchange/codereview |
I have a file open on the iPhone that I am sending the data of across the network (Opened using "_open"). However I have the ability to delete files from the iphone's interface. This is done using NSFileManager's removeItemAtPath.
The odd thing is that removeItemAtPath is succeeding even though the file is currently ... | stackexchange/codereview |
I have 2 Entity Framework entity sets with many-to-many relationship (compromised of 3 DB tables). For the sake of the example let's say I have a Worker entity and a Company entity, where each worker can work at multiple companies and each company can have many workers.
I want to retrieve for each worker all the compan... | stackexchange/codereview |
I just wanted to know about, Is there any keyboard shortcut key available for the "Go Into" option into the eclipse 3.5 IDE. Any help will be really appreciate.
See below this screen shot if you can figure out the answer.
| stackexchange/codereview |
I am wondering if is possible to implement following domain model.
Let's have a domain class which contains set of intervals (joda time). I can use org.joda.time.contrib.hibernate.PersistentInterval hibernate user type for mapping of Interval to database table (by similar way as in http://www.grails.org/JodaTime+Plugin... | stackexchange/codereview |
I'm using Quartz.NET for an application I am creating, and I currently have an IJobListener listening for any errors with jobs, then sending emails off to the administrators. It'd be great if I could email the exception generated too, but how do I get the exception from the IJobListener?
| stackexchange/codereview |
Ok, this should be easy...
I'm new to groovy and I'm looking to implement the following logic:
def testFiles = findAllTestFiles();
So far, I've come up with the code below which successfully prints all files names. However, instead of printing, I just need to put them into a collection. Of course, I could do this th... | stackexchange/codereview |
This is kinda a very low-level type question, but maybe someone here has some insight...
I'm having an issue where unhandled SEH exceptions (such as Access Violations) are seemingly being caught at the Win32 message dispatch level, rather than terminating the program. I found the following reference blog, which explain... | stackexchange/codereview |
I am looking for a way to read the ID3 tags from an MP3 file on a remote server without actually downloading the file. I have seen libraries like JAudioTagger and Entagged, but both seem to require a file object and not a URL or InputStream, which I know how to get with a remote file. Is there another library that can ... | stackexchange/codereview |
I've read the following manual: http://code.google.com/googleapps/marketplace/tutorial_dotnet.html
Am I correct that nothing special is required to be done to use google API for user SSO?
But when I tried to launch "Hello World" for marketplace application it returned me an error:
Blockquote
Blockquote> No OpenID endpo... | stackexchange/codereview |
I've run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channel setup in my services-config.xml files. The messages work beautifully in Safari (Mac and PC) but no other browsers.
rel... | stackexchange/codereview |
I'm having an issue in IE7 and below where a form that I'm toggling the display of via $.slideUp() & $.slideDown(), has an disappearing textarea.
This is the form code:
<% using (Html.BeginForm("AddComment", "Comment", FormMethod.Post, new { id = "addCommentForm", @class = "comments-form" }))
{ %>
<input type="hid... | stackexchange/codereview |
In my application, I am running a shell script but till the script completes executing the screen is blank. I am not able to display anything on screen. I want to display the log file to the user so till the log file is generated, i want the user to see some text content on the screen.
I read previous questions posted ... | stackexchange/codereview |
I'm considering the option of using anonymous { } code blocks to logically distinguish "code blocks" inside the same method call, something that (theoretically) should improve readability of the code.
I'm wondering which of the following 2 code segments is better to your eyes?
Also, are the 2 code segments compile to t... | stackexchange/codereview |
I need to mark emails as read on the exchange server.
I use the following to get the emails and now i need to mark them as read
strQuery =
@"<?xml version=""1.0""?>
<g:searchrequest xmlns:g=""DAV:"">
<g:sql>
SELECT
""urn:schemas:... | stackexchange/codereview |
Is there a way to passing one to many parameters from html to jQuery?
The requirement is when a link on the page is clicked, toggle some text for this link, and hide text for other link(s), so I have the following jQuery:
$(link1).click(function(){
$(hide1).hide(300, function(){
$(hide2.hide(300, function()... | stackexchange/codereview |
I have a Table with two textboxes. Every textbox has a required validator to make the user insert data in the textbox.
I also have a Login table to confirm user privilages.
When I submit the button of login, the validators from the first table appear and prevent the user from logging in. I changed the login button pr... | stackexchange/codereview |
I have a program which when it runs it fills Temp folder with lots of .tmp files. This is causing C drive to fill up. I have been asked to investigate if it's possible to write a script in dos to delete temporary files on startup. I also wish to delay the program starting until all files are deleted. This would need to... | stackexchange/codereview |
How can I pass a multidimensional array from one activity to another?
| stackexchange/codereview |
I´ve got a special request. I use evhost with lighttpd and everything works fine except this:
$HTTP["host"] =~ "^[^.]+\.[^.]+$" {
evhost.path-pattern = vhosts_dir + "/customers/%2.%1/public/"
evhost.path-pattern = vhosts_dir + "/customershops/%2.%1/public/"
evhost.path-pattern = vhosts_dir + "/company/%2... | stackexchange/codereview |
I am struggling with a weird scrollviewer issue in tab control.
One of my xaml page having a tabcontol and again tab item will contain a xaml with another tab control. Inside the second tab control i have a scrollviewer which in turn holds a treeview.
once user searches for specific data treeview will populated with ... | stackexchange/codereview |
Can't find out if daemon application can be run on non-jailbroken iPhone. And what is Apple policy about this stuff? I don't really know if my idea is possible at all... I wonder if it's possible to create such a daemon that can intercept outcoming user call and play custom tone signal while remote user does not answer... | stackexchange/codereview |
I have a problem returning an object that was created in other thread.
The situation is this, my app need to send some request to remote server and wait an answer.
In the main thread (1) i have a method called SendAndWait. This method put a message in a message queue for be sent and wait for an answer.
Another thread (... | stackexchange/codereview |
I'm upgrading my Rails app to work with Ruby 1.9 and I keep encountering errors like this:
Anonymous modules have no name to be referenced by
/home/foo/.gem/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:585:in `to_constant_name'
/home/foo/.gem/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_supp... | stackexchange/codereview |
My application is based on the hibernate to fetched data from a mysql server. This mysql server is replicated to another mysql server instance. Today, I got a downtime as the primary database server was gone down without any notice. To avoid any future accidental problem, I am planing to add a functionality that will e... | stackexchange/codereview |
I am recently trying to connect my cocos2d game with open feint, but I can't accomplish it as there seem to be some settings missing in my build settings of any project that I create.
For example, I have to check "Call c++ Default ctors/Dtors in objective c", but there isn't such an option in my build settings. What's... | stackexchange/codereview |
I was trying to make the program write to a file that was named with a time stamp. Basically, saving a timestamp to a string value, I wanted it to create the file based on that time stamp. For example "Flight Manifest 10/14/2010 1:38:29 AM.txt"
Whats the right way to do this?
I tried something like this:
string timeSta... | stackexchange/codereview |
I'm teaching an introductory class to brand new computer engineering students. This week I'm going to teach basic Windows console (command prompt) commands and batch files (and a few weeks later unix). Last year some students were whining that "it wasn't necessary anymore". Since I insist on teaching it, I have some re... | stackexchange/codereview |
Is there a way to know whether a C# method of a object is called or not using reflection?
| stackexchange/codereview |
I'm looking into generating types dynamically, ie. TypeBuilder, Reflection.Emit..
Is it ever possible to get design-time code completion for such created types? i.e typename recognition, list of properties after typing "obj1." and such.
Full Context: Trying to generate entities and data access objects corresponding to ... | stackexchange/codereview |
I have a situation where a user fills out 1 of 2 forms on a registration page and is sent to a software download page. If they sign up as a new user, form is processed inserted into a MySQL database and they go to the page no problem.
Here is my issue. If they are a returning user and enter a license key, the processor... | stackexchange/codereview |
I have long text that identifies few things in my application
For example my code: U2Cd3c7a781856c69559539a78e9492e9772dfe1b67.2.nrg
As I am sharing this key in public, it is bit long and I would like to make short by transforming just like shorturl so that is shorter in public and internally i would like to map th... | stackexchange/codereview |
I'm new to linux and newer to rails. I installed ruby 1.8.7 which is compatible with rails 3, i did the gem update and it installed for me rails 3.0.1 and all necessary files. However when i make a new rails application using the 'rails new myapp' command i notice that the script folder only has one file 'script/rails'... | stackexchange/codereview |
I need help with a problem I cant seem to solve.
I have a viewcontroller(view1) which I show by presenting it.
This view(view1) has a button on it, which when selected, presents another viewController(view 2).
View 2 has a few buttons, when one is selected it opens a new viewController(view3).
Now the thing is, when ... | stackexchange/codereview |
I have a State class defined like this:
Public Class State
Public Property StateId As Integer
Public Property Name As Dictionary(Of Integer, String)
End Class
Name(x) contains the state name in different languages.
I get a collection of State from the method StateManager.GetAllStates()
and I want to bind this... | stackexchange/codereview |
I'm searching for help about lists in pgu gui for python. I need to know which methods and properties they have, so I can include them in my programs
| stackexchange/codereview |
I'm totally new to MFC. In fact I haven't even written anything in it yet.
I'm looking for a control similar to the one found here: http://sourceforge.net/dbimage.php?id=48455
"Toolbox", left hand side.
The CMFCOutlookBar is somewhat close but the images are quite large and the text appears beneath the icon, not besid... | stackexchange/codereview |
I have an existing XAML file with some data templates in it. One of these datatemplate can be used in different situations. Therefore, I want to bind 1 of the properties only if a certain condition is true.
What is the best way to achieve this?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.