instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have set up a basic openID system using cakePHP (http://code.42dh.com/openid/) on my dev website: http://dev.cyclistsroadmap.com/users/login (forgive the debug output). It works perfectly for myopenID but does not for yahoo (flickr icon) It returns with a identity url but insists "OpenID verification failed: No Ope...
stackexchange/codereview
I'm new to Maven, coming from the Ant world. Is it possible to list all of the possible goals (including, say, all the plugins) that you can run? I can see that there used to be a -g flag in Maven 1, but this isn't available in version 2.
stackexchange/codereview
I am getting following exception while I try to execute simple JPA 1.0 code. What may be the cause? 5453 DevPQRWDPBSSPersist WARN [P=351601:O=0:CT] openjpa.Enhance - This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaage...
stackexchange/codereview
Has anyone got any advice or know of any frameworks for unit-testing of multithreaded applications?
stackexchange/codereview
I'm trying to change a Form's opacity automatically before loading. I am using built in Settings function to save the value what opacity the window should have. The problem is, when I'm debugging my application, it all works well, when I compile it and try to open the executable, the window just dissapears... I don't g...
stackexchange/codereview
I need to read for example last 3 items of an array in smarty. Please advice.
stackexchange/codereview
We have php 5.3.0 and I would like to use the constructor _construct. But somehow this constructor is not called when an instance of the class is made. And old constructor ( function ClassName() ) on the other hand works. Should not the new version (_construct) work with php 5.3.0 ? Another thing I would like to build ...
stackexchange/codereview
I have to display a number pad as keyboard for a textfield (it can take only numerals) in case of ipad.setting keyboard type as UIKeyboardTypeNumberPad displays numeric keyboard but user can switch back to alphabets.Is there any keyboard for ipad that just displays numbers?
stackexchange/codereview
I'm using git with my friend. I did a few commits and my friend didn't update his local repo and pushed with -f arugment: git push -f origin master Now in the git server (github) my commits are destroyed and the latest commit is my friends. But I have a history of commits locally. Can I somehow merge them back to the ...
stackexchange/codereview
How can I change if (propType.PropertyType == typeof(string)) and if (propType.PropertyType == typeof(int)) to something more dynamic? private void button2_Click(object sender, EventArgs e) { var lista = _pessoas.AsQueryable(); if (textBox2.Text != "") { var ...
stackexchange/codereview
When the Register for COM Interop option in the build properties is checked, I get an error: Cannot register assembly -access denied When the option is unchecked, the project builds without any error. But my requirement is to register the COM objects as I need to use the same in VB. Can anyone help me out in this?
stackexchange/codereview
Use case: I'm using data templates to match a View to a ViewModel. Data templates work by inspecting the most derived type of the concrete type provided, and they don't look at what interfaces it provides, so I have to do this without interfaces. I'm simplifying the example here and leaving out NotifyPropertyChanged, ...
stackexchange/codereview
Using boost.spirit I try to parse simple command line of the form command:param1 param2... to do so I created this parser: (+(char_ - ':'))[ref(cmd) = _1] >> ':' >> (*char_)[ref(params) = _1] The attribute types of the two compounds parser is vector, so if cmd and params are of type vector this work. However if they a...
stackexchange/codereview
I've got a dirty text variable I need to set on a text change, radio button change or dropdownlist change in a form. Unfortunately the generic: $(':input').live('change',function(){... }) also detects a change in focus... thus making a false positive for dirty text.
stackexchange/codereview
I'm writing a module to force a user whose password has expired to renew its password. This app uses the acegi security plugin. After the expired credentials are detected, the user is redirected to a "insert a new password" page. However, when the form is submitted, the auth action is executed, instead of the desired o...
stackexchange/codereview
greetings all i have some rules which are very similar <rule> <from>/a/**/b/**/c/**/d</from> <to>/somePlace</to> </rule> <rule> <from>/a/**/b/**/c</from> <to>/anotherPlace1</to> </rule> <rule> <from>/a/**/b</from> <to>/anotherPlace2</to> </rule> and i want when an exact match occu...
stackexchange/codereview
I'm running into a lot of troubles trying to do a post request from my jQuery code passing a JSON object to my webservice method. I know this question might seem to be pointless, but I wanted to know how WCF recognize a JSON string and converts it into a object. What should we configuring to have the warranty that it s...
stackexchange/codereview
I've never heard anyone speak of CORBA in anything but derisive terms which is odd considering that 10+ years ago it was the bee's knees. Why did CORBA fall from grace? Was it purely that the implementations were bad or was there something more fundamental?
stackexchange/codereview
@user_post = Post.find(:all,:conditions => ["content LIKE ?", "%#{params[:query]}%"]) This particular statement returning nil even though there exists a record in the database. Where could be the problem? Please help me out.
stackexchange/codereview
I'm building a new database for a web-based application and find that I am frequently having to decide between flexibility of the model and meaningful foreign keys to enforce referential integrity. There are a couple of aspects of the design that lead me towards writing triggers to do what FKs would normally do: Parts...
stackexchange/codereview
I have recently come across a web page containing a graph object that displays the (x, y) values on the object as the mouse is rolled across it. Is there any way to automate the extraction of this data?
stackexchange/codereview
Good night, Let's suppose I have a class which implements a NFA/DFA whose transitions are stored in a .NET Dictionary structure, and which takes an input word and recognizes a set of words derivable in some way from the input. Furthermore, let's suppose that the automaton is a generic template that can be applied to di...
stackexchange/codereview
How can I change the caption of all figures in LaTeX to include a prefix? For example, make all figures appear as "Supplementary Figure 1", "Supplementary Figure 2", ... rather than "Figure 1", "Figure 2"? thanks.
stackexchange/codereview
Can some one help with with the following code please!! if (DiaryOccasions != null && DiaryOccasions.Rows.Count > 0) { DataTable dtFilteredOccasions = new DataTable(); if (ddlMonths.SelectedItem.Value != string.Empty) { string[] selMonthYear = ddlMonths.SelectedItem.Value.Split('/'); if(se...
stackexchange/codereview
I'm trying to make a login page using php, but when I use header() to redirect to another page, my user/pass check on my database somehow fails. Am I doing something wrong? Also, I know I'm missing security guards, I'm implementing in steps since I'm still rather new to PHP. But some tips and suggestions would be appre...
stackexchange/codereview
I am trying get all commments relateed to my current post, I am doing it as following: $this->Post->Comment->find('all', array('conditions' => array('post_id' => $id))); but in my opinion, it is a little uncomfortably. Why I should give post_id? Isn't it obvious that I want Comment related to current Post?
stackexchange/codereview
We're interested in incorporating a lot of the facebook info in our application. So for example we want to display your wall's content as part of our UI combined with other stuff etc. With facebook connect how much data can we pull from facebook? Is everything available programatically, including wall feeds, profiles,...
stackexchange/codereview
I saw the following code: class NullClass { public: template<class T> operator T*() const { return 0; } }; const NullClass NULL; void f(int x); void f(string *p); f(NULL); // converts NULL to string*, then calls f(string*) Q1> I have problems to understand the following statement template<class T> operator T*()...
stackexchange/codereview
Via the Facebook javascript API, you can subscribe to the 'event.create' event to listen for when users "Like" something on a page via the Like Plugin. Is it possible to respond to the same user un-liking it as well? I don't see any events documented, wondering if this is a hidden feature.
stackexchange/codereview
I'm creating a dynamic combo box and adding to a form. I'm trying to fill the combo box with a DataSource from an ArrayList and then selecting an item in the combo box based off a value from a property. Problem is, the combo box items don't get bound until after the Form_Load event has finished and the form is visible...
stackexchange/codereview
I'm trying to figure out how to set up JBoss 5.1.0 so that the classloader is parent last, which I have done before with WebSphere. Basically we have several war files that need to use Spring 3. We have put the spring jars in the JBoss lib, so that we don't have to have spring jars inside each and every war file. Howev...
stackexchange/codereview
Can anyone locate JDSL, the java graph library? It used to be here, but you can't actually download it, while http://www.jdsl.org/ (don't bother visiting) is just spam. Ok, perhaps the project is dead, but still, anywhere I can find the binaries? Searched high and low but no lack.
stackexchange/codereview
Having never used INotifyPropertyChanging i was wondering if anything other than Linq to SQL uses it? And if Linq to SQL is the only user why does INotifyPropertyChanging exist in System.ComponentModel? http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanging.aspx
stackexchange/codereview
My HTML form is clearing automatically after I click the submit button. Any idea how to stop this from happening? Here's the opening tag for the form: <form onsubmit="return math()">
stackexchange/codereview
I have an audio player toolbar activity that has a corresponding layout file. I need this player to show up at the bottom of another activity. I use a ViewStub and inflate the audio toolbar's layout file in the stub. How do I access the buttons, etc on this inflated view and how do I set their behavior? The docs on Vie...
stackexchange/codereview
I have a button btnOK on my form, with a DialogResult property of OK. The form's AcceptButton property is set to btnOK. So if I click the button, the form closes automatically. Now, inside the btnOK_Click() method, I want to ability to cancel out of the close action, e.g. if there was an error I want to show a messag...
stackexchange/codereview
I have a html page that displays some basic account information and begins a long-ish running jQuery AJAX request to retrieve more detailed data. While the Ajax request is in progress it is possible for the user to click a button that has an onclick event to navigate to a new page using location.assign. Unfortunately ...
stackexchange/codereview
does anyone know how to set the max heap size when starting equinox? I start the container from the command line as follows: java -jar org.eclipse.osgi_3.5.2.jar -console -Xmx1024M -Xms512M -XX:[MaxPermSize]=256M However, this has no effect on the max heap size and I end up with an OutOfMemoryException. I am trying...
stackexchange/codereview
I made a windows icon (*.ico) and named it favicon, it is 16 by 16 and with 16 colors... I have included it with the link tag but it does not load right how do I add a favicon to a website in xhtml I tried everything on the web but it still does not work how do I do it
stackexchange/codereview
I'm reviewing Haskell: The Craft of Functional Programming, however the type signatures on page 356 have thrown me for a loop. Here is a simple one: succeed :: b -> Parse a b succeed val inp = [( val, inp )] How can that be b -> Parse a b, if succeed Int -> Int succeed a = a and, succeed Int -> Int -> Int succeed a b...
stackexchange/codereview
I have a custom control embedded within a TabItem of the TabControl. TabControl is Content of main Usercontrol as follows: <UserControl x:Class="ControlsLibrary.wpf.Alerts.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...
stackexchange/codereview
I am wondering if it is possible to remove duplicate text using a mysql query from one field, or if a problem like this would be better solved using PHP. I have a database where users enter tags which can be searched upon. I have noticed that some tags have synonyms which I want to add to the field, but in some cases t...
stackexchange/codereview
Most demo showing keyevent in Swing, what is the equivalent in commandline?
stackexchange/codereview
I have a column of data in a table (1) which I have to check against the column of data in several hundred (or thousand) other tables. Would it be faster to do this as a mysql query intersecting both tables, or to get the data from table (1) into an array, and then set the other columns of data as arrays and intersect?...
stackexchange/codereview
I have IIS 7 installed on windows 2008 server. I want to execute commands adsutil.vbs for compression but adminscripts directory is missing under inetpub directory. How can I execute those commands ?
stackexchange/codereview
I am attempting to add google analytics tracking to an Adobe Air app created with HTML and javascript. I have tried adding the ga.js file and using it like I would in a webpage: <script type="text/javascript" src="lib/js/ga.js"></script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-********...
stackexchange/codereview
I want to know how I can change a normal default grey HTML button into an image using CSS. This is the image I want to change into: button.star { background-image: url(img/star.jpg); } This is the image I'm using. It's for favoriting an item. Thanks :) Is this the way to do it?
stackexchange/codereview
I have two lists (one of states) and one of (countries). I want to have it so when a user selects Alberta it sets the country to Canada, and so on and so forth. I have the following javascript var states = new Array(12) states[0] = "AB"; states[1] = "BC"; states[2] = "MB"; states[3] = "NB"; states[4] = "NL"; states[5]...
stackexchange/codereview
This morning we are not able to see the newly added bundle ids in the drop when we attempt to add a new app! Is there a limit on the number of bundle id's one developer account can create? Anyone else facing this situation? Thanks
stackexchange/codereview
Using BizTalk 2010 to consume a WCF webservice with BasicHttp binding. My service is rejecting the requests coming from BizTalk. I can see using tracing and soapUI that the reason is the "To" header emitted by BizTalk in the outgoing message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <...
stackexchange/codereview
I have following problem: I've got an UITableView with 7 custom cells. Each of these cells hold a label and an UITextField in it. Since the cells are somewhat big, you have to scroll down to see the last 3 cells. The problem is, as soon as I scroll down, the text in the textfields of the first 3 cells (those, that aren...
stackexchange/codereview
I'm using a method in the EnterpriseLibrary.Data.Database namespace called public virtual object ExecuteScalar(DbCommand command) I'm wanting to use this method to execute a scalar-valued function. However the I'm not sure how to even create the DbCommand. Could someone please tell me how to create it because it won't...
stackexchange/codereview
What's the way to read a column that might have a null datetime value in SQLCe? Right now i have this SqlCeDataReader reader = cmd.ExecuteReader(); DateTime? shapeFileSQLDateTime = (DateTime?)reader["ShapeFileTimestamp"];//ok b/c has data DateTime? mdbSQLDateTime = (DateTime?)reader["CreatedTimestamp"]; //throws exc...
stackexchange/codereview
8B EC 56 8B F4 68 00 70 40 00 FF 15 BC 82 40 A senquence like above can be segmented in various ways,each segment can be translated to corresponding assembly instruction, but each binary executable has its only DEFINITE assembly ,what's the mathematical principle that avoids ambiguity? UPDATE The answer with most v...
stackexchange/codereview
I have been able to pull data from my DB using jQuery/Ajax from a webservice into the jQGrid. Now I would like to send added/edited data back to the webservice. I've seen some examples by using PHP and the editurl: command. Will that work for webservices as well (like how I pulled down the data originally)? I've lo...
stackexchange/codereview
I have some trouble getting a response using ASIHTTPRequest which is quite nerve-wrecking. I am sending a SOAP Request inside the POST-Body of an ASIHTTPRequest to a server. The Request is sending fine so far but the Response String is "(null)" according to the Console and the Length of the response Data is 0. However...
stackexchange/codereview
I am looking for a way to present search results in my custom wordpress theme. I was hoping being able to present the results like this: Displaying 4 search results for "test" Pages testpage 1 testpage 2 Posts testpost 1 testpost 2 I wrote a function is_type_page that I can use inside the loop (2 loops), but this...
stackexchange/codereview
Is there a way to have a single implementation in Java that can read/parse an XML file with normal elements and another with prefixed elements? Both versions have the same structure. i.e. XML-1 <root> <element attribute="value"> </element> </root> XML-2 <pre:root xmlns:pre="someURL"> <pre:element attribute="val...
stackexchange/codereview
I have this code for that "sends by" GET true or false concerning if a checkbox is checked or not: var isChecked = document.myform.checkbox.checked ? 1 : 0; var isChecked0 = document.myform.checkbox0.checked ? 1 : 0; var isChecked1 = document.myform.checkbox1.checked ? 1 : 0; xmlhttp.open("GET","roulette2.php?boxcheck...
stackexchange/codereview
Hello Suppose I have 3 references that goes one after another i.e [1][2][3]. But I want to see [1]-[3]. What should I do. Thank you.
stackexchange/codereview
I wrote a very simple script. I am new to PSQL and I wanted to return some values based on a very simple loop. CREATE PROCEDURE DRAW_DOWN RETURNS( I_VAL INTEGER) AS DECLARE VARIABLE STARTING_BALANCE INTEGER; DECLARE VARIABLE TRADING_SERIES INTEGER; DECLARE VARIABLE I INTEGER; BEGIN SUSPEND; I_VAL = 1; WHILE (i < 5) D...
stackexchange/codereview
I wrote a simple server in C and would like to have the same functionality calling it as other C daemons (such as calling it with ./ftpd start and closing that instance with ./ftpd stop). Obviously the problem I'm having is that I do not know how to grab the current instance of the running program. I can parse the opti...
stackexchange/codereview
1.i just wanted to know that from where google and bing got the complete earth images or satellite imaginary? 2.is it possible to get data like that for a individual person? i found a question about google maps working at stackoverflow but it doesn't answer my question. -Thanks in advance.
stackexchange/codereview
I am developing a game.I have drawn images on a surface view which is residing in a relative layout.I want that my game's look and feel should be the same in all resolutions. So now i want to measure the surfaceview/canva's width and height so that I can launch the images in proper proportion rather than hard...
stackexchange/codereview
If I do this, var element = {}; alert(element); element[name] = "stephen"; alert(element.name); Why doesn't element.name work?
stackexchange/codereview
Is there a way to tell SVN when it is merging, that one or more files are special and should not be merged? I am dealing with a couple of build trees which need different unique IDs to distinguish them, and every time we re-merge files, it is a pain to maintain those IDs.
stackexchange/codereview
I created a Visual C++ test project which contains printf statements. Unfortunately, I can't find a method to view the output of this. It isn't included in the output window. Any suggestions?
stackexchange/codereview
My main rakefile has some tasks to stop and start selenuim as follows: require 'selenium/rake/tasks' Selenium::Rake::RemoteControlStartTask.new do |rc| rc.port = 4444 rc.timeout_in_seconds = 3 * 60 rc.background = false rc.wait_until_up_and_running = true rc.additional_args << "-singleWindow" end Selenium::...
stackexchange/codereview
I've noticed, that "index" action of my controller is called twice. The action has following structure: def index if params[:tags].nil? # [fork #1] just return the whole collection of model @items = Item.all else # [fork #2] filter items by tags @items = Item.select_by_tags params[:tags] end ...
stackexchange/codereview
I have been testing the Blackberry LabelField, ObjectListField and other input classes. I would like to add a number of Label fields to the bottom of a BlackBerry screen. For example, I have an application that gets GPS readings. I would like to append a Label field for each record. Furthermore I want to display items ...
stackexchange/codereview
How would I loop through all the values of a Windows Registry Key using the Python module _winreg. I have code that will do what I want, but it is for the subkeys of the specified registry key. Here Is The Code: from _winreg import * t = OpenKey(HKEY_CURRENT_USER, r"PATH TO KEY", 0, KEY_ALL_ACCESS) try: i = 0 ...
stackexchange/codereview
basically what i want to do is this: I have a flash game on a page (pacman for example) I want to be able to take a print screen of that game using javascript Is it possible? I know i can include the game swf in a nother swf and capture the screenshot using flash but i need it to be done in javascript. is this possible...
stackexchange/codereview
I am trying to pass SampleParcelable class object say sampleObj from my ClassA (current) activity to ClassB (a new one), but when i log the objects value, the object's value which i am creating in ClassA is totally different from what i get in ClassB. ClassA :- public class ClassA extends Activity { private Sample...
stackexchange/codereview
I would like to have a dictionary that returns a default value when the search key is not found. Reading from the documentation: Generics.Collections.Tdictionary […] This class provides a mapping […] and initial content. 1 - How? Is there a way to do it ala Python: {1: ‘one’; 2:’two’} ? Generics.Collections.TDictionary...
stackexchange/codereview
Adobe Dreamweaver highlights the word object in PHP sources and I'm wondering why. It's definitely not the name of the generic class, which is generic (Edit: sorry, it's actually stdClass not generic, which I always define myself in all projects). And as you might have guessed it's not easy to google for answers to thi...
stackexchange/codereview
I want to create a listener for soap messages. Can this be done using a web service in c sharp? The soap messages contain xml data inside the soap body. I want the web service listener to be able to extract this xml data from the soap message. Appreciate your help!
stackexchange/codereview
It is possible to pass uninitialized object to a parent class like in the following example class C { public: C(int i): m_i(i) {}; int m_i; } class T { public: T(C & c): m_c(c) { }; C & m_c; }; class ST : public T { public...
stackexchange/codereview
I'm trying to get EF4 working with ncommon 1.1 which provides DDD patterns such as UnitOfWork, Specification, Repository. The NCommon configuration line is throwing the following Exception: SynchronizationLockException occurred Object synchronization method was called from an unsynchronized block of code. The actual co...
stackexchange/codereview
I have a FF problem when using an "absolute" element inside a "relative" container <table> <tr> <td style="position:relative; height:40px; width:80px"> <img style="position:absolute; top:0px; left:0px" src="pic.jpg" />TITLE </td> </tr> </table> What I'm trying to achieve here is to position the image...
stackexchange/codereview
How do I dock a footer menu to the bottom of the screen on Android and iPhone in Appcelerator Titanium? I want to display 3 icons on the bottom of the screen.
stackexchange/codereview
Why are extension methods only allowed in non-nested, non-generic static class? Is it useless to consider extension methods in nested, generic static class?
stackexchange/codereview
I really want to learn how to use clean URLs but I'm unsure how it all works. I have read a couple tutorials and watched some YouTube videos but they seemed very different from each other. Is there a right/wrong way to do it? Thanks.
stackexchange/codereview
I want to get a particular table's primary key using SQL query for SQL Server database. In MySQL I am using following query to get table primary key: SHOW KEYS FROM tablename WHERE Key_name = 'PRIMARY' What is equivalent of above query for SQL Server ?. If There is a query that will work for both MySQL and SQL Server ...
stackexchange/codereview
Basically I have created a shell using standard POSIX commands, I want to be able to Implement Piping as well. Right now it handles commands correctly, and can do background processing with &. But I need to be able to pipe using | and >> as well. For example something like this: cat file1 file2 >> file3 cat file1 file2...
stackexchange/codereview
Is there a Java API to parse an XSD schema file? I found XSOM, but it doesn't seem to be maintained anymore.
stackexchange/codereview
I am working with a database schema that I cannot change - and I need to run a bulk update. I am moving data between source and target databases, with the same schema. I know this is awful, but it is what I am working with right now. The schema is as follows: Car CarType1 CarType2 CarType3 CarType4 What I am trying to...
stackexchange/codereview
I added two APN configurations and then scanned the APN database. I noticed that both APN entries are marked as "current=1". how can I identify the currently active APN configuration programmatically? thanks!
stackexchange/codereview
I want to give anyone full access to a specific folder (+sub-folders +files in it). I tried that code: f = "c:\test" #... which is the folder #vars sidWorld = win32security.CreateWellKnownSid(win32security.WinWorldSid, None) worldRights = win32file.FILE_ALL_ACCESS #get DACL fileSecDesc = win32security.GetNamedSecurit...
stackexchange/codereview
I got stuck with pointer to const QList of pointers to Foo. I pass pointer to myListOfFoo from Bar object to Qux. I use pointer to const to prevent making any changes outside Bar class. The problem is that I'm still able to modify ID_ executing setID in Qux::test(). #include <QtCore/QCoreApplication> #include <QList> #...
stackexchange/codereview
I saw this kind of code used in a project: while (1) { l_numPkts = pcap_next_ex( m_pcapHandle, &header, &pkt_data); //do something memcpy(dst,pkt_data,size); } after the pcap_next_ex return,the packet status will be set TP_STATUS_KERNEL,which means the buf was return to kernel. code: /* next packet */ swit...
stackexchange/codereview
This example is JavaScript, since that's where I'm using callbacks mostly. I want to understand how they work at a low level. In the example below, I'd expect everything to happen in order and "calling back" to occur after "step 3" and before "step 4." This makes sense to me, as everything is done in order on a singl...
stackexchange/codereview
Is it possible to create a mesh plot from X, Y, and Z when X and Y do not form a grid?
stackexchange/codereview
I have a MySQL database with many databases, each named for a specific customer. A webapp is deployed per customer. The name of the webapp determines the underlying database name. When the webapp starts up, I have a modified Spring PropertyPlaceholderConfigurer to grab the ServletContext if it can and determine the nam...
stackexchange/codereview
So currently I have an issue where I am populating a database from xml files through my client's API. Each record has an expiration date in it, with the following format: <offer_ends_at>2010-10-20T07:59:59-04:00</offer_ends_at> Now, I need to run a query where I only get records that have an expiration in the future. ...
stackexchange/codereview
I have the following in a form: <%= f.hidden_field (:project_id, :value => @project.id) %> This form partial sometimes contains a @project. Sometimes it does not. This is the nature of the app. But I want to use one partial because it's a big form. Problem here is if it does not contain @project, the page ERRORS.... H...
stackexchange/codereview
I am working with Asp.NET and I have a class named PathFinder which has methods like StyleBarPath(string BrandId,string ProductId) which returns for example a combination of path including brandId and productId and also there are such methods in the same class. What I am thinking to make them static methods to invoke t...
stackexchange/codereview
Application domains allow applications to be unloaded separately. My question is how unloading an apllication can crash another application. Any example?
stackexchange/codereview
Can I give default parameters in C#? In C: void fun(int i = 1) { printf("%d", i); } Can we give parameters a default value? Is it possible in C#? If so, can we avoid overloading functions? It's always a bad practice to add an optional parameter to an existing function. If you are working on a project which is havi...
stackexchange/codereview
This is a conceptual programming question. I'm writing a tcp server/client program in Java. The client program will be receiving multiple data types, and I'm trying to figure out how to properly determine which data type is being sent (otherwise I might try to convert a number to a custom data type or vice versa). I...
stackexchange/codereview
The exact query: SELECT coupon_coupons.code, coupon_coupons.discountType AS 'type', coupon_coupons.discountAmount AS 'amount', coupon_coupons.discountApplied AS 'applied', coupon_coupons.description, group_concat(coupon_targetsku.sku separator ';') AS 'targetsku' FROM coupon_coupons LEFT JOIN coupon_targetsku ON coup...
stackexchange/codereview