instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a Combo Box that is databound. In this list, I need a separator. Since this is databound, I do something very similar to this post. My database returns the list, includes a '-' to mark where the separator needs to go, and the datatrigger makes this a separator. <ComboBox Name="cbAction" Grid.Column="1" Grid.Row...
stackexchange/codereview
Strange question, but I won't waste time explaining why I need to do this, just that I need to do it. I have the following: <input type="radio" name="eq_9" id="eq_9_2" onclick="nextStepID_load(this);" value="Installer." title="912" /><label for="eq_9_2">Installer</label> <br /> I need to turn that into: <button type=...
stackexchange/codereview
I am using PdfPageEventHelper to add header to my pdf. I would like to add a multi-line header. I know that I can use ColumnText.showTextAligned to add a single line, and theoretically speaking I can take a string, wrap it using the width of the header and then add lines individually. This approach does not move the co...
stackexchange/codereview
I'm trying to use Capistrano 2.5.19 to deploy my Sinatra application. So far, I managed to successfully run deploy:setup, but when I try to perform the actual deployment or the check (deploy:check), Capistrano tells me that I don't have permission. I'm using sudo since I log in with my own user and the user used for de...
stackexchange/codereview
Is there a more efficient way than: select * from transactions partition( partition1 ) union all select * from transactions partition( partition2 ) union all select * from transactions partition( partition3 );
stackexchange/codereview
Here is the SQL: SELECT alloc.oa_id FROM qdod.qtran_owner_allocation alloc INNER JOIN (SELECT h.oa_id, h.div_ord_no, h.process_queue_id, h.from_ba_no, h.from_ba_suf, h.from_interest_type_cd, h.from_interest_type_cd, h.from_div_ord_grp, h.transfer_percent, h2...
stackexchange/codereview
The following WithDefaultCredentials() works but WithCredentialsMe() fails with a http 401 returned ? The difference is that ICredentials credentials = System.Net.CredentialCache.DefaultCredentials; works OK against the report server 2008 url , but ICredentials credentials = new NetworkCredential("myUsername", "my...
stackexchange/codereview
I want to consume an XML-RPC service built in PHP for my WP7 app but I cannot find any examples without using xml-rpc.net's library. I cannot create a reference to that library because it wasn't built using the Windows Phone runtime (as VS so politely informed me). A poster on a similar question on stackoverflow (sadly...
stackexchange/codereview
I have all MySQL dbs, tables and cols set to utf8_general_ci. If i use phpMyAdmin to put a £ symbol into a row, when i display it on a utf-8 charset page i get the good old question-mark-diamond. However on the same page, if i put <?php echo 'pound symbol test: £' ?>, the symbol displays correctly, so the problem must ...
stackexchange/codereview
I'm probably going to implement partitioning on a huge table (billions of rows). Each table row has some kind of status about a particular device, which is inserted from minute to minute. Therefore, there will be 1440 (24 x 60) rows per day per device. Each device has a unique ID (DeviceID). I thought about partitioni...
stackexchange/codereview
I'm trying to grasp my head around the best way to carry out something. I'm creating a very simple forum, using ASP.NET MVC and LINQ to SQL. Very simple means it has no categories, and each message consists of a subject, a composer and the message contents. Comments can be threaded, but only go one level deep (if you c...
stackexchange/codereview
I'm working on a complex Java applet which runs well in Safari and in various browsers on Windows and Linux but has problems on Macintosh in Chrome and Firefox. For debugging, it would be really helpful if Java code could detect and report the browser, the browser version, the OS, and the OS version when there are erro...
stackexchange/codereview
I'm trying to play a mp4 video in an app I'm developing however whenever I run the app in the emulator and on certain devices I get this error: ERROR/MemoryHeapBase(34): error opening /dev/pmem_adsp: No such file or directory I have no idea what this means and when I googled it all these responses came up that had to d...
stackexchange/codereview
Likely a remedial question, but in all my days as a PHP user I have yet to encounter an answer. Basically, is there any way to grab a single field of a "mysql_query" as an array? For instance say I have the following: $query = "Select id,first_name,last_name FROM people"; $result = mysql_query($query); Is there any ...
stackexchange/codereview
We are in the middle of a large Java EE project/programme. Up to this point, we've been using Eclipse and Maven for our development. The appserver we are targeting is WebLogic (Oracle, these days). It has been decided we are going to start using Oracle Business Rules (Part of Oracle SOA Suite 11g). Development for Soa ...
stackexchange/codereview
I'd like to highlight the text in an EditText when a keyboard opens for user input (this could be a hardware keyboard or the virtual keyboard). Highlighting isn't my problem, my problem is a trigger to highlight. Is there a handler that gets executed when the keyboard appears on a specific View (in this case, my EditT...
stackexchange/codereview
How to set action to the backButtonItem on the navigation bar? I have a navigation bar, when I'm pressing the back button, I need to alert some message to the user, and only after user's reaction - return to the previous view. How can I do it? Thanx! - (void)viewDidLoad { [super viewDidLoad]; //no one field d...
stackexchange/codereview
I can't seem to find an explanation anywhere for this... Suppose I have a vector y initialized to all zeroes: from numpy import * y = zeros(5) It could also be a plain python array, I don't think it really matters. I noticed that the behavior of the for x in y: statement is that it makes a copy of each element in y, t...
stackexchange/codereview
This was previous another question, but we won't talk about that. I am isolating a number of sections in a third party HTML document. When matching some, I need to remove certain tags from the result. The code I found for this on SO was: $name = $xpath->query("//div[@class='leftColBig']//h3")->item(0); // remove <span>...
stackexchange/codereview
Guys, what do you think, is it more perspective to learn Servlets and JSP or Android? I heard that servlets and JSP are losing its popularity and people more using .NET for websites and developing for Android is more in demand these days.
stackexchange/codereview
I wrote a program to generate large .SQL files for quickly populating very large databases. I scripted it in PHP. When I started coding I was using fopen() and fwrite(). When files got too large the program would return control to the shell and the file would be incomplete. Unfortunately I'm not sure exactly how l...
stackexchange/codereview
Lets say I have a large amount of (random) text. Within this text there is a phone number, consisting of three digits, a dash, another three digits, a dash, and four digits. For example, XXX-XXX-XXXX. What would be the regex for retrieving this number from the text. I tried using: Matcher matcher = pattern.matcher(prev...
stackexchange/codereview
This is not a common scenario. I am trying to invoke an exception through reflection. I have something like: testMethod is of type MethodBuilder testMethod.GetILGenerator().ThrowException(typeof(CustomException)); My CustomException does not have a default constructor, so the above statement errors out giving an Argum...
stackexchange/codereview
I have installed svn plugin in my eclipse recently and i want to know the way to resolve tree conflicts of my project through it. Waiting for your valuable reply.
stackexchange/codereview
I am nesting tables within tables and want to toggle the them when you click on a <th class="folder"> $('table').each(function(){ $('th.folder', this).bind('click', function(){ $(this).closest('table').children('tbody').toggle(); }); }); Here is some typical HTML: <table> <thead> ...
stackexchange/codereview
I currently have a controller that will handle a call to export a table into a CSV file using the FasterCSV gem. The problem is the information stored in the database isn't clear sometimes and so I want to change the output for a particular column. My project.status column for instance has numbers instead of statuses ...
stackexchange/codereview
I know this is a bit of a silly question, but I can't work out how to make a transparent PNG work in IE6. I've tried several things, but they haven't worked. I was wondering if anyone could let me know of a suitable hack? Thanks in advance, AD72
stackexchange/codereview
How will it or how will it not? Appreciate it.
stackexchange/codereview
I have two tables called 'events' and 'topics' each table can have many comments. What I need to do is list all the events and topics with the amount of comments for each row. I've managed to return all the topics, which works great but I don't know how I can add the events table to the MySql. The comments and events t...
stackexchange/codereview
What are the points we should to consider when, looking for suitable directory service. If you have idea about differences among these directory service (Apache Directory , Microsoft Active Directory , IBM Tivoli Directory , Oracle Internet Directory), please explain. Best regards
stackexchange/codereview
I'm converting my labVIEW project into C#. In my labview project i've used NI's VI . For example niModInstGet Installed Device Attribute(String).vi. For this in C# i'm using Measurement Studio and i imported the driver from IVI Foundation - > IVI - > Driver - > niModInst - > niModInst.fp. So in C# i can access this VI ...
stackexchange/codereview
I am spending some time optimizing our current database. I am looking at indexes specifically. There are a few questions: Is there such a thing as too many indexes? What will indexes speed up? What will indexes slow down? When is it a good idea to add an index? When is it a bad idea to add an index? Pro's and Con's of...
stackexchange/codereview
I'm doing some experimenting with MySQL and PHP, and I'm curious about creating a nice "date picker", e.g. picking the date 2010-11-11 (today's date). I want to store valid DATETIME values in my MySQL database, and I want a PHP page to provide rolling lists for year, month and day (e.g. 2010-11-11) so as to avoid forci...
stackexchange/codereview
HTTP basic authentication credentials are stored until the browser is closed, but is there a way to remove the credentials before the browser is closed? I read about a trick with HTTP 401 status code, but it seems to work not properly (see comment to answer). Maybe the mechanism trac uses is the solution. Can the crede...
stackexchange/codereview
I´m going to set-up an adapted social network for my company and I need to be logged through moodle so I´m looking for the best option... any suggestion? i´m gattering information about elgg, mahara, socialengine, Buddypress ... the most important is that we need users to be logged only one time thanks in advance
stackexchange/codereview
I use a code where I cast an enum* to int*. Something like this: enum foo { ... } ... foo foobar; int *pi = reinterpret_cast<int*>(&foobar); When compiling the code (g++ 4.1.2), I get the following warning message: dereferencing type-punned pointer will break strict-aliasing rules I googled this message, and found th...
stackexchange/codereview
Is there any good book for functional programming in Python or C++ ? I need to master functional programming in those languages.
stackexchange/codereview
I have an html file which contains a table, the table uses colours to indicate different types of data. I need to be able to import this into excel with the right color palette. I am importing the html file using: //using Microsoft.Office.Interop.Excel; var excel = new Application(excel); excel.Workbooks.OpenXML(fileN...
stackexchange/codereview
This should be pretty a pretty common scenario, but I have not found a solution yet. I would like to highlight some text within the body of an e-mail and then click on something (context menu, toolbar button, etc) to perform a URL navigation using the selected text. For example, highlight the Fex Ex tracking number an...
stackexchange/codereview
How would I pass multiple values in the header for a curl request?
stackexchange/codereview
I found a solution to validate Long value using extra lib file 'vjslib' as below. I must add another reference DLL file named vjslib.dll. I know there is some method like Int32.TryParse() something for Int type validate. But I can't find Long.TryPase() directly. Can anybody help me to find another easy way to validate...
stackexchange/codereview
I have a simple ASP.NET application which has one master page called MasterPage.master. In MasterPage.master I have a Label called lblStatus. I want to update the text of this label when certain events happen in the website and always display the latest status no matter which web page I am on in the site. This is what ...
stackexchange/codereview
Are there any utilities which can convert my Windows Mobile 6 application to work with BlackBerry devices? I have developed an SMS system for a shopping mall and I need to run that application on BlackBerry devices. It is very hard to re-develop from scratch.
stackexchange/codereview
I can't find a tutorial online that gives me the step by step process on how to generate a suitable key using the keytool in the JDK. This: http://developer.android.com/guide/publishing/app-signing.html talks about it and gives commands, but it doesn't actually say where and in what folder to key in the commands. I ...
stackexchange/codereview
I have string customer_id; In a for loop I assign a value coming from a database request customer = (Customer)records[i]; I want to assign customer_id to customer.entityId only if entityId (a string) starts with six integers. So: string internal_id = ""; string customer_id = ""; Customer customer; for (int i = 0, j =...
stackexchange/codereview
I am downloading a number of images from the internet, from several different locations, all with unknown and differing dimensions. I have successfully got them all lazy loading nicely and appearing when downloaded in the custom UITableViewCell I created, which has a UIImageView (cellImageView width 320, height 100) in...
stackexchange/codereview
I want to call Reset Action of form in my Reset Image. Can anybody give me solution how to call it?
stackexchange/codereview
I am want to develop a quiz site using MVC 2. A single page will display only one question. The examinee will select or type the answer and press Next button to proceed. My business logic on the server side will record the time elapsed between two consecutive page requests. These time stamps must not be tampered with b...
stackexchange/codereview
Is it OK to add "ID" field as primary key to all my database tables also to use it to make relations ships between tables? Is this design would consider as 3NF (third normal form) design? If yes, is this thing recommended theoretically or not?
stackexchange/codereview
I've been going through the sqlobject and sqlbuilder documentation and forums and I cannot seem to grasp the information there. I have a specific SQL query that I need: select distinct author from blogtable where keyword = "dust"; Multiple authors can post about multiple subjects. The query works on the MySQL databas...
stackexchange/codereview
I have this function in my database class. It accepts 3 parameters: The query the server to execute it on which is identified by name that is stored in a config an array of arguments that is quoted into the sql query example call: $toplist = MyDbClass->q('SELECT * FROM movies WHERE score > ?','slaveserver1',array(100...
stackexchange/codereview
Hey all - In Android, I wrote a number of strings in my string.xml I would like to display on a TextView based on a random number...Here is what I have: int randCropPercentage = (int) Math.ceil(Math.random() * 100); Random randPhrase50 = new Random(); int[] array50 = new int[] { R.string.ss2, R.string.ss4...
stackexchange/codereview
I am trying setup TeamCity webserver on a server run Apache Proxy. I added Add this to my Apache conf file ProxyPass /TeamCity http://localhost/TeamCity ProxyPassReverse /TeamCity http://localhost/TeamCity And added the Context to my TeamCity conf server.xml file in the Host section unpackWARs="true" autoDep...
stackexchange/codereview
This is not a programming question but i wanted to know How to install flex plugin for eclipse on ubuntu.Point me to any links for this.Eclipse is already installed.Thanks...
stackexchange/codereview
I'd like to use Apache Pig to build a large key -> value mapping, look things up in the map, and iterate over the keys. However, there does not even seem to be syntax for doing these things; I've checked the manual, wiki, sample code, Elephant book, Google, and even tried parsing the parser source. Every single examp...
stackexchange/codereview
i am working on a custom Google Analytics implementation making use of direct utm.gif requests. The problem: Google Analytics doesnt track any data. Maybe because sth. is wrong with the parameters? Thank's for helping Sample: trackPage parameters array(16) { [0]=> string(53) "http://www.google-analytics.com/__utm....
stackexchange/codereview
i have 5 mp3 files stored on the assets folder. The files are all 25 KB. I load the files using: manager = context.getAssets(); this.inputStream = manager.openFd(fileName).createInputStream(); Whenever i try to play the files, the sounds are all messed up like they were mixed or something. I've zipaligned the app alr...
stackexchange/codereview
Possible Duplicate: UIimageView rotate around a point How to rotate UIImageView around a point? I have already use those code but it seems useless Compass2.layer.anchorPoint=CGPointMake(0, 0.5);/*I using this,but it can't rotate by :point even i change the coordinate in CGPointMake */ [Compass2 setTransform:CGAffine...
stackexchange/codereview
I have 2 shops with same settings imo. My question is how do I get my prices including tax in my second shop? Both have settings like this My first shop includes tax (see picture) My second shop does not show this Any idea how i can get this done? The problem is that all my prices are being taxed on the homepage now...
stackexchange/codereview
I am customizing quick search to display data from my app. Its working fine. Now the issue is, When I click on search button, I am not able to see the search history. What should I do get the search history (previously searched keywords)?
stackexchange/codereview
I have a tmpfs file system mounted on a particular directory. I want to write a shell script to check whether the tmpfs filesystem is already mounted on the directory.
stackexchange/codereview
i am using cassandra in my rails project, I am new to this cassandra and i am trying to use Bigrecord api to connect with cassandra and i reffered below link http://openplaces.github.com/bigrecord/file.getting_started.html while migrating the bigrecord i am using this command rake bigrecord:migrate but it is showing s...
stackexchange/codereview
I installed wsgi (mod_wsgi), and could run the simple application by calling http://localhost/myapp. WSGIScriptAlias /myapp /Library/WebServer/Documents/wsgi/scripts/myapp.wsgi def application(environ, start_response): status = '200 OK' output = 'Hello World! WSGI working perfectly!' response_headers = ...
stackexchange/codereview
`I have an excel file created by a data file where a memo field is breaking into other rows. I need to take the proceeding rows columns and concatenate them to the first row's column memo field. I need a macro that will go through the file concatenate these proceeding row columns to the first row column and delete th...
stackexchange/codereview
I want to create a private store (disable frontend user registration and guest checkout, only enable the option for the admin to add new users). I want to give the registered user the possibility to purchase items without paying at the checkout. I don't want to add products with the price set to 0.00, because at the en...
stackexchange/codereview
This is a weird issue, it works in IE but it doesn't in Firefox. I have a SELECT control that when get focus, retrieve the HTML with the OPTIONs in an AJAX call. The onfocus event handler contains this code: var selectedValue = $(":input[name='" + fieldName + "']").val(); var dataRetrieved = function(data) { $(":...
stackexchange/codereview
We have produced a web service in VB.NET against a WSDL file provided to us by our client. In testing, our client has raised an issue complaining that the XML produced by our web service uses 'true' and 'false' for boolean values, not '1' and '0'. Furthermore, they are suggesting that our implementation is 'broken' be...
stackexchange/codereview
I've a list of checkboxes that get rendered out using javascript. <input type="checkbox" name="sportType" id="sportType11" value="11" />Golf <input type="checkbox" name="sportType" id="sportType12" value="12" />Tennis <input type="checkbox" name="sportType" id="sportType13" value="13" />Football <input type="checkbo...
stackexchange/codereview
So I have been trying to create a new RESTfull web application project in eclipse that will use the Jersey Jax-rs framework and work on a tomcat server. So far i have been able to create the project in eclipse and add the jersey dependencies , but I am missing files like web.xml so I am unsure weather I am doing this p...
stackexchange/codereview
I have a website that relies heavily on JavaScript. While most of the stuff downgrades nicely, the functionally is really second-grade. So, I wish to alert the users that they should turn JS on if they have disabled it. To do this, I use NOSCRIPT to show a div with alert a top of the page, similar to how Stack Overflow...
stackexchange/codereview
Their public interfaces appear similar. The documentation states that the SemaphoreSlim is a lightweight alternative and doesn't use Windows Kernel semaphores. This resource states that the SemaphoreSlim is much faster. In what situations does the SemaphoreSlim make more sense over the Semaphore and vice versa?
stackexchange/codereview
I'm looking for a solution of dynamic web service client such as DII from JAX-RPC. I need to generate a client from a WSDL. But the WSDL is only known at runtime (so I don't have any available interface). I had a look on JbossESB, JbossWS, JaxWS,JaxRPC, but I could'nt find anything that fits this requirements. Thanks f...
stackexchange/codereview
Hello I am develop video player with android gallery. I receive URI from gallry. and I need to display video title, when play video. so if content has not title meta data. I need to disaplay video file name. How to get video content file name? thank you
stackexchange/codereview
I tried an example from this website: http://www.cs.cf.ac.uk/Dave/C/node24.html Sometimes, the output does not show up message from child processes. I'm trying to understand why? Can anybody help? #include <stdio.h> #include <signal.h> void sighup(); /* routines child will call upon sigtrap */ void sigint(); void sig...
stackexchange/codereview
the below shows the css i am using, yes it not profesional i am a beginner regarding css. i want to write some property in the css such that, the div's only take up the width needed and not more. that is the width property set as width: 60%; etc takes 20% even if the control within it, or text within it is not that lon...
stackexchange/codereview
Update: There is no problem here. Turns out I was re-adding the animation every time I moved the point. Was else where in the code and I just totally glossed over it. Please ignore this question. end update I have a UIView which is just acting as a container for a UIImageView and a CAShaperLayer. The shape layer is dr...
stackexchange/codereview
Does anyone know if it is possible to display a group of inline images horizontally in a row (or any element at that), allowing the group to extend beyond the right edge of the screen, without triggering the horizontal scrollbar? A quick example: <div class="page_container" style="width:900px; position:relative"> <di...
stackexchange/codereview
I'm currently trying to learn Struts2. I've created a form, an action to process it, an XML to validate it, and actions in the struts.xml. Every time the form displays, even the first time, Struts2 tries to validate, so errors are displayed before the user had a chance to complete it. Here is the relevant code: <!-- /W...
stackexchange/codereview
I can't seem to get ANY result when trying to start an activity from an activitygroup. I've put an onactivityresult in the activity and activitygroup? Specifically I'm trying to let the user choose a photo/video from the Intent.ACTION_GET_CONTENT, but I never get anything back? What am I doing wrong? Here is how I c...
stackexchange/codereview
I'm writing my first Java EE 6 web app as a learning exercise. I'm not using a framework, just JPA 2.0, EJB 3.1 and JSF 2.0. I have a Custom Converter to convert a JPA Entity stored in a SelectOne component back to an Entity. I'm using an InitialContext.lookup to obtain a reference to a Session Bean to find the relev...
stackexchange/codereview
I started working on "Django 1.0 Web Site Development" and have gotten my server to work, but when I'm editing my views.py file, I have a difficulty editing the python code in emacs. The problem seems to be a line that contains the triple quotes ('''): def main_page(request): output = u''' <html> [more lines ...
stackexchange/codereview
I'd like my app to run on both Android versions 2.1 and 2.2. In one area of my app, there is a portrait-style camera - the process for producing a portrait camera preview is different (as far as I know) on the two OS versions. Here is how: 2.1: Camera.Parameters parameters = camera.getParameters(); parameters.set("or...
stackexchange/codereview
After reading this question and the suggested link explaining when is more appropriate to use SQLite vs another DB it's still unclear to me one simple thing, and I hope someone could clarify it. They say: Situations Where SQLite Works Well Websites SQLite usually will work great as the database engine for low to m...
stackexchange/codereview
Hi We're a small web development company with 3 Lunarpages dedicated Plesk/Apache/MySQL/CentOS servers hosting around 70 websites each. We connect via ftp and each server houses our sites in folders i.e. /var/www/vhosts/[domain]/httpdocs One of our programmers has moved overseas, and for now our "version control" is to...
stackexchange/codereview
I have a model class called Dashboard and it has an attribute 'team_members.' Like so: class Dashboard(models.Model): ... team_members = models.ManyToManyField(User) I am wondering is this the proper design? I am trying to say: A dashbooard has many team_members (user) and a user can be a team member of many d...
stackexchange/codereview
I'm trying to create a MSChart StackedBar Chart with totals label at the end of the columns as in the image below (in red). A) First, is this possible? B) Second, is it possible to reposition the series labels? Thanks in advance, -Aaron
stackexchange/codereview
I've been tinkering around trying to make an AI player for the popular card game, Dominion (http://www.boardgamegeek.com/boardgame/36218/dominion). If you are not familiar with the game, it is basically a very streamlined cousin of Magic: The Gathering, where there is a large-ish library of cards with different rules o...
stackexchange/codereview
In the following lines: $ git tag -n1 v1.8 Tagged the day before yesterday v1.9 Tagged yesterday v2.0 Tagged today $ git describe v1.9-500-ga6a8c67 $ Can anyone explain why the v2.0 tag is not used by "git describe", and how to fix this? The v2.0 tag is already pushed, so I am guessing that I can...
stackexchange/codereview
I'm trying to build Boost 1.44 into a certain directory instead of the default. I do the same thing on my linux machine by doing the following steps from the boost root directory: ./bootstrap.sh bjam --prefix=../../DIR which builds the libs into ../../DIR/lib and the headers into ../../DIR/include. I'm trying to do the...
stackexchange/codereview
Am just started reading view tutorial i used this link view tutorial in this tutorial they said Subquery cannot be included in the SELECT statement. but they gave one example that is , CREATE VIEW vwProducts AS SELECT productCode, productName, buyPrice FROM products WHERE buyPrice > ( SEL...
stackexchange/codereview
Is there any way of getting the date...preferably in YYYYMMDD format...in the Australia/Sydney timezone (not just GMT+11).....through C++ on Linux? Thanks, Roger
stackexchange/codereview
I'm running ffmpeg on android. What I want to do is take a video recorded on an android phone, overdub it with a wav pcm file and save it in a format suitable for youtube upload. the 3gp is: Metadata: major_brand : 3gp4 minor_version : 768 compatible_brands: 3gp4mp413gp6 copyright : copyright-eng : Duration: 00:00:12.1...
stackexchange/codereview
I am looking for a method to find if two strings are anagrams of one another. Ex: string1 - abcde string2 - abced Ans = true Ex: string1 - abcde string2 - abcfed Ans = false the solution i came up with so for is to sort both the strings and compare each character from both strings till the end of either strings.It wou...
stackexchange/codereview
I'm curious as to see how most developers go about designing the contracts to their web services. I am quite new to service architecture and especially new to WCF. In short, I'd like to find out what type of objects you are returning in your operations, and does each operation in your service return the same object? F...
stackexchange/codereview
I'm curious as to why the std::exception::what member function is const? class exception { public: exception() throw() { } virtual ~exception() throw(); /** Returns a C-style character string describing the general cause * of the current error. */ virtual const char* what() const throw(); };
stackexchange/codereview
How is it that if I have thousands of contacts (let's suppose) all around the world and one of them changes their status to away or becomes idol that it will change immediately in my browser?
stackexchange/codereview
First off let me show you my code: Thread: http://pastebin.com/ie4WD5W8 Then to call the thread i used the following... randomKeyGen key1 = new randomKeyGen(ranLKey); key1.start(); ranLKey is my label and I can't figure out why it won't work. As long as I do not try to put a label in the thread it works, but t...
stackexchange/codereview
How much faster can an algorithm on CUDA or OpenCL code run compared to a general single processor core? (considering the algorithm is written and optimized for both the CPU and GPU target). I know it depends on both the graphics card and the CPU, but say, one of the fastest GPUs of NVIDIA and a (single core of a) Inte...
stackexchange/codereview
Binding ObjectiveC Class to C# problem The monotouch project describes how to bind Objective-C Types for use with MonoTouch. We failed to do this for the AdMob library (see also the monotouch-binding-for-admob blog at sabonrai dot wordpress dot com. So we decided to create the smallest possible test project. We wrote ...
stackexchange/codereview
I've been given an assignment to create a visual component for a software competition. The only solid requirements I have are that 1. It needs to visualize data given through ActiveMQ 2. The information needs to be organized and visually appealing (information is presented as charts and graphs, and some nice UI element...
stackexchange/codereview