instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am drag-dropping a string from two places in my app. One from a custom NSView and one from a NSTableDataSource delegate. The first one allows me to drag text into the TextEdit application, the second one does not. I can drag from both to other apps such as Terminal or TextMate. As far as I can tell, I'm using close t...
stackexchange/codereview
Trying to specify a custom soap header. Not sure how the SoapEnvelope.headerOut propery is to be populated. My code so far? String soapAction = serviceNamespace + "/SearchCustomer"; SoapObject rpc = new SoapObject(serviceNamespace, "SearchCustomers"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(S...
stackexchange/codereview
As developers know we cant return List<T> with web services, we can only return lists with converting them to .ToArray(); I've searched some, but cant get effective answer about Why we cant retun List with web services. Why we must convert them ToArray(); ?
stackexchange/codereview
I haven't been able to find a non-hack way to use Drag and Drop with the AS3 ScrollPane component. Here's what I'm doing: I create a container mc, which I then add a bunch of children to. The children are what I want to drag. However, dragging is constrained to the boundaries of the ScrollPane. This seems to me lik...
stackexchange/codereview
Group of related data like a list of parts etc., can be handled either using Arrays(Array of Parts) or using Collection. I understand that When Arrays are used, Insertion, Deletion and some other operations have performance impact when it is compared with Collections. Does this mean that Arrays are not used internally ...
stackexchange/codereview
I have a web application where I want to keep track of the number of visitors to a certain page. What I do is to increment a variable that I store in a relational database, when a request comes to that page. I noticed that sometimes the variable is incremented by 3 instead of 1, and I found the reason why: when I visit...
stackexchange/codereview
I have a CakePHP script that should hopefully be run by a cron job. It runs fine from the command line, but seemingly not from the cron. The cron line is something like: */2 * * * * cd /path/to/app;../cake/console/cake do_update The script itself - and this is the bit that I think may possibly be too wacky, to the e...
stackexchange/codereview
I'm working on a python app that's reading from a gps usb dongle. This far everything has been running in ubuntu/debian based systems where I communicated with the gps in a rather blunt way of scanning all of /dev/ttyUSB0-9 with pySerial for something speaking NMEA sentences on 38400 baud. Now I have been asked to get ...
stackexchange/codereview
Short version of my quesiton: Is it possible to test a web service via the web page provided by the Axis 2 web application? More detail: In the web page provided by Axis 2 (the one where all of your services are listed and you can view WSDLs and administer Axis 2), is there somewhere you can test operations for your ...
stackexchange/codereview
I have downloaded few bootloaders from osdev and successfully loaded a kernel. But now I want to learn theory behind bootloader. I want to know why the system boots up and everything behind the bootloader codes. Can anybody give me a link or link to a book? Thanks in advance. System is x86.
stackexchange/codereview
From the android doc alone I dont really understand the difference between ACTION_UP and ACTION_POINTER_UP. http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_DOWN Basically I want to capture the event when one finger is released from the screen (even if another one may still be touching it)
stackexchange/codereview
I'm trying to align an input button with a link (class "button"), but in Safari and Chrome there is like 1 pixel difference at the top and I can't figure out why. <input class="button" name="commit" type="submit" value="Enrol" /> <a href="#" class="button" id="cancel">Cancel</a> input.button { height: 38px; font-...
stackexchange/codereview
I'm fairly new to WCF implementations and I'm having difficulties with some databinding. Namely, I have 2 radio buttons inside my silverlight application (the properties are bound to properties inside one of my data contracts). I also have a masked text box that changes based on the radio button selected. The "Maske...
stackexchange/codereview
I am trying to read a very basic SVG file which has the following contents: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="600" height="300" version="1.1" xmlns="http://www.w3.org/2000/svg"> <g stroke="black" > <line x1="75" y1="160" x2="525" y2="160" stroke-width="10"/> </g> </svg> ...
stackexchange/codereview
I have 3 text views in a layout, where the text clips a tad on the bottom on my droid 2... How can I ensure that the whole text is viewable, and the user can scroll down (simply with their finger), to see the rest of my text? Thanks! EDIT: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://sc...
stackexchange/codereview
I just found the wonderful ElasticFox, a Firefox plugin that makes working with Amazon EC2 much more enjoyable. Is there a similar tool for Amazon RDS? Or, rather, what is the best/easiest tool to work with RDS?
stackexchange/codereview
I have one table named GUYS(ID, NAME, PHONE), and I need to add a count of how many guys have the same name, and at the same time show all of them. So I can't group them. Example: ID NAME PHONE 1 John 335 2 Harry 444 3 James 367 4 John 742 5 John 654 The desired output should be: ID NAME PHONE COUNT 1 Jo...
stackexchange/codereview
I cant see this command in file menu. File->New->Project from existing files ... there isnt it. how can i customise visual studio to see it ? thanks for help
stackexchange/codereview
Is it possible to be able to drag and drop objects other than just circles and rectangles around a page using Raphael js? I want to add in paths and images which you can then move around but its proving tricky. I would like to work this out with Raphael because of its support with touch interfaces. Here is the code <sc...
stackexchange/codereview
I am having following code : public void onClick(View v) { // TODO Auto-generated method stub if(v.getId()==R.id.btnSrch){ Intent i = new Intent(this, SearchByCode.class); View view = SearchGroup.group.getLocalActivityManager() .startActivity("SearchByCode",i.addFlags(Intent.FLAG_AC...
stackexchange/codereview
I'm fairly new to stored procedures for Oracle. I want to be able to return both the count of hotels as well as the hotel names in a single stored procedure. Problem is I don't know where to start. Any help would be appreciated. SELECT COUNT(HNAME) FROM HOTELS; //returns 'There are 30 hotels' SELECT HNAME FROM HOTELS...
stackexchange/codereview
I need to allow URL's that have some reserved keywords like CON, AUX, NUL etc in the URL Names eg: ..../CON/... Right now I get a 404 Error and the following exception when I try to go to such an URL: [HttpException] at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.HttpContext.GetFi...
stackexchange/codereview
I have an iframe and I'd like to hide a div whithin it, so bascily people can't for example sign out in the iframe. What I did was : <script type="text/javascript"> function changeCSS(){ frame = document.getElementById("myIframe"); frame.document.getElementById("guser").style.display='none'; } </script> <iframe onload...
stackexchange/codereview
I have a very simple app on my local machine that uses the ASP.NET membership provider. This works fine on my local machine. I have published the app to our web server, and I need to know the specifics of setting up the application for asp.net membership to work. I have a basic understanding that it uses an MDF file a...
stackexchange/codereview
I'm struggling with PL/SQL functions. I'm trying to write a function which would take in a table of objects, filter that table, based on some criteria (I intend to test values against other tables) and the return filtered table. My table type is defined as follows: CREATE TYPE test_obj AS OBJECT (test_id NUMBER(16,0), ...
stackexchange/codereview
Without posting 900 lines of javascript let me describe the situation. I built a webpage that works like an iphone app. You grab in the middle anywhere, swipe at least x-amount of pixels, let go, and it slides to the next page. This is triggering all sorts of events (including the ScrollTo plugin) and doing simple if-s...
stackexchange/codereview
class Node<T>{ private T myValue; private ArrayList<Object> next; public <U> void addLink(U n){ this.next.add(n); } } in main i have: Node<String> myNode1 = new Node<String>("Ciao"); Node<Integer> myNode2 = new Node<Integer>(12); myNode1.addLink(myNode2, true); I need next in class Node to ...
stackexchange/codereview
I'm trying to extend an example I found in Koenig and Moo's "Accelerated C++." I've got the following code which attempts to split a vector into two partitions. #include <algorithm> #include <vector> #include <iostream> using namespace std; struct MyClass { int* MyInt; MyClass() : MyInt(NULL) {} }; struct A...
stackexchange/codereview
I have been searching for a way to create a windows media center plugin with C++, does anyone know if this is possible (with current available tools)? I have the SDK for C#, but would really rather stick to C++ if it all possible. Thanks for your help!
stackexchange/codereview
Here is the task. I have a combobox with 2 values(DAY and NIGHT), label and a timer. Timer fires every second and takes combobox.Text value and puts it into label.Text. The problem is when I drop window with options (DAY, NIGHT) and hover a mouse over one of them it gets selected into label. This is not the desired beh...
stackexchange/codereview
I have a controller that uses the following structure: .com/Object/375 However, I can also use the following URL when I am accessing special admin rights .com/Admin/Object/375 I use the same user controls whether you're in the Admin section or not, but they both point to the same Controller Object. I need for the lin...
stackexchange/codereview
I'm trying to use the ViewSwitcher to perform switches between two views. One is an ImageView and the other is a MapView. I have a button which the user clicks to perform this switch but my codes are causing an error. Do you guys have any idea what's about? <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns...
stackexchange/codereview
I'm trying to deploy a website (website project) made in Visual Studio 2010, .NET 4. I've selected publish in VS, and left precompiled website selected. Then I copied the result on the ftp, and got this error: Description: An error occurred during the parsing of a resource required to service this request. Please revie...
stackexchange/codereview
I'm creating an app targeted at iPhone/iTouch devices. They build on that just fine. Can I install an ad hoc build onto an iPad while having the 'Targeted Device Family' set to iPhone and not iPhone/iPad? I'm expecting of course because it isn't a universal app that it will run in the small window on the iPad. I don't ...
stackexchange/codereview
I am refactoring a little bit of code and I think I have created some instance variables that are being hidden(shadowed) in older methods. I want to see a warning wherever the hiding(shadowing) happens so I can check to make sure that it's actually what I want (and it's hardly ever what I want). Is there any easy way...
stackexchange/codereview
Are there any good notes and guidelines that one should think about when developing sites that must support Internet Explorer 6? I'm not looking for explanations of the abundance of bugs that we have all learned by now. I need some general informations on, e.g., elements that one should prefer for certain tasks, things...
stackexchange/codereview
I need help with changing a function that is called once the page loads, and anytime afterwards when the user clicks on a certain div with an ID. So far I have this: window.onload=function() { //Do your stuff, JS! } Yes, I barely know any JS... EDIT: I will include my JS function (I didn't make it myself, obviously an...
stackexchange/codereview
Consider the following C++ code, template <typename Derived> struct A { bool usable_; }; template <typename Derived> struct B : A< B<Derived> > { void foo() { usable_ = false; } }; struct C : B<C> { void foo() { usable_ = true; } }; int main() { C c; } I got compilat...
stackexchange/codereview
I am trying to write something to an empty file on my apache server myClient= new DefaultHttpClient(); StringEntity myString = new StringEntity("important message"); HttpPost httpPost = new HttpPost("http://10.0.218.211/myfile"); httpPost.setEntity(myString); HttpResponse response = myClient.execute(httpPost); The r...
stackexchange/codereview
I have a Weather app with four Activities. The main/launcher activity is 'invisible' using... android:theme="@android:style/Theme.Translucent.NoTitleBar"` ...and is simply used to do a few checks (whether this is a new install, whether a network connection is available etc) before firing off one of the other Activities...
stackexchange/codereview
I have some jquery that works fine, but I'd like to highly optimize it. Basically I'm doing standard appending list items to unordered lists. Can anyone recommend the fastest way to optimise the following code e.g. createDocumentFragment ? for (key in data) { li = $('<li><span class="item">' + data[key]["Name"] + ...
stackexchange/codereview
I am having design problems with date storage/retrieval using Python and SQLite. I understand that a SQLite date column stores dates as text in ISO format (ie. '2010-05-25'). So when I display a British date (eg. on a web-page) I convert the date using datetime.datetime.strptime(mydate,'%Y-%m-%d').strftime('%d/%m/%Y')...
stackexchange/codereview
When I upload a photo using the Flickr API it returns the photo id. I can then use that to find out what server the photo is on but i also need to know what farm that server is on. Is there a way to get the farm id or some easier way to get the full path to an uploaded photo using the API, with C#. Example: http://farm...
stackexchange/codereview
I have a fairly standard Java EE6 web application using JPA 2 with dependency injection connecting to a MySQL database and everything is working fine. What I would like to do now is have this application interact with the databases of other applications we have installed at a clients site - essentially acting as a sing...
stackexchange/codereview
for ($i = 0; $i < count($keyListArray); $i++) { $newArray[$i] = $myArray[$keyListArray[$i]]; } //structure of arrays are as follows //$keyListArray = array (1,4,5); //$myArray = array(1=>array('hello', 4, 56, 7))
stackexchange/codereview
I have a form and a button. I need that when I click on a textfield, and then click this particular button, the textbox which was clicked last will change its value to say "BUTTON HAS BEEN CLICKED". Is there a way via JavaScript how I can know the last textbox which was clicked? Many thanks in advance.
stackexchange/codereview
I've had a look for the answer but with no luck so far. At the moment the scrollbar and arrows are postioned inside the same div as the scrollable content - which in most cases makes sense. I want to know if there is a way to place the scrollbar and arrows outside of this div in a different location in the html page? I...
stackexchange/codereview
$array = array( array('name' => 'civilian 1'), //Random array('name' => 'civilian 2'), //Random array('name' => 'civilian 3'), //Random array('name' => 'civilian 4'), //Random array('name' => 'civilian 5'), //Random array('name'=>'Rich', 'desc' => 'I am a Sponsor'), //Keep at the top array('...
stackexchange/codereview
Does anyone know how to show two different "first" pages on application launch based on some condition. an example of this would be show a log in page when a user has not entered their password yet, but show the main page once the user has entered their password once before. I see that you can set the default navigati...
stackexchange/codereview
I have a solr search problem, currently our schema is setup have the following <field name="trading_name" type="trading_name" indexed="true" stored="false" required="true" multiValued="false" omitNorms="true" /> <field name="trading_name_notoken" type="string" indexed="true" stored="false" required="true" multiValued="...
stackexchange/codereview
i had done localisation by changing the language of iPhone through localisableString and by different xib which works only with NSLocale method ,but the requirement of app is to localised it by changing the language in app setting view irrespective of iPhone language..
stackexchange/codereview
I'm trying to get the text at a certain cell in a QTableView. For example: QString codestring = "*" + ui->tblInventory->indexAt(QPoint(0,2)).data().toString() + "*"; This should get the text at the cell in column 0 row 2 in my QTableView. The problem is, that's not what it's doing!. Regardless of the arguments I pass ...
stackexchange/codereview
I got a VS10 project. I want to build some C++ code so I can use it in python. I followed the boost tutorial and got it working. However VS keeps to link boost-python-vc100-mt-gd-1_44.lib but it's just a wrapper which calls boost-python-vc100-mt-gd-1_44.dll. That's why I need to copy the .dll with my .dll(.pyd) file. S...
stackexchange/codereview
I've read this article about responsive web deisgn from Ethan Marcotte. It Seems to me that It doesn't handle well my iPad and iPhone rotations. In other words when I turn my iPad or iPhone in landscape mode the code of the final example appear to detect a wrong viewport width (larger). Where I'm wrong? Instead If I'm ...
stackexchange/codereview
i am finding ognl.ExpressionSyntaxException: Malformed OGNL expression: Add Customer [ognl.ParseException: Encountered " "Customer "" at line 1, column 5. Was expecting one of:<EOF> "," ... "=" ... "?" ... "||" ... "or" ... "&&" ... "and" ... "|" ... "bor" i am using the code in js...
stackexchange/codereview
I don't really care which line in a class was hit. I just want to know when the class is accessed.
stackexchange/codereview
I want to check the node name of the selection. I have tried using getStart() and getNode(), but both fail for me. I have an element say "H1", if user selects some text and apply styles, code checks if the node is "H1". If it is and the whole text has not been selected, the selection is wrapped inside a span and style...
stackexchange/codereview
In our C++ project I have a need in some combined data structure, I think it should be very similar to SQL table. I have a set of arrays (std::vectors) of a same size with different data types. e.g.: time(int), X(double), Y(double), valid(boolean), number_of_measurements(int) Let's pretend they are like a table, I nee...
stackexchange/codereview
I want to implement logic of rounding up to 3 decimal positions after rounding. If the value of decimal place 1 – 3 is equal to 000 (regardless of the whole number), and the value of the 4th thru the 10th decimal place is greater than 0, the 3rd decimal place in the display will round up. example: 1.1230000000 --> 1....
stackexchange/codereview
i am trying to add a uipagecontrol to a 2 page slider that has two pictures. I am trying to have two dots that show on which page the user is however I tred to implement this in different ways however i got no solid solution.
stackexchange/codereview
I send up a tcp network connection via NSNetService(Browser). Later i like to close the connection and inform the endpoint of the stream about. I properly close the streams, remove them from the runloop, set the delegate nil and dispose the stream objects, but the receiver wan't get any event. If i force quit/stop debu...
stackexchange/codereview
What method do I use for SlickGrid to get the cell contents? For example: ... grid = new Slick.Grid($("#myGrid"), data, columns, options); grid.onAddNewRow = function(item,colDef) { grid.removeRow(data.length); data.push(item); grid.updateRowCount(); grid.render(); } grid.onCurrentCellChanged = function(args){...
stackexchange/codereview
I have a situation when my XAP is being produced with Silverlight version installed on my dev machine, while users (enterprise company) use a different (earlier) version. Users don't have ability to upgrade their Silverlight runtime due to IT Department policy. I have no control over when or which version of Silverlig...
stackexchange/codereview
I've always programmed in Java, which is probably why I'm so confused about this: In Java I declare a pointer: int[] array and initialize it or assign it some memory: int[] array = {0,1,0} int[] array = new int[3] Now, in C, it's all so confusing. At first I thought it was as easy as declaring it: int array[] and in...
stackexchange/codereview
On one of my machines I have the error when I am working with google apps engine or django. For example: app.yaml application: demas1252c version: 1 runtime: python api_version: 1 handlers: - url: /images static_dir: images - url: /css static_dir: css - url: /js static_dir: js - url: /.* script: demas125...
stackexchange/codereview
This is similar to the question asked at StructureMap - Override constructor arguments for a named instance, but different in the respect that I don't know the type at coding time and therefore cannot use the generic form of GetInstance(). So while: ObjectFactory.With(IFoo).GetInstance<IBar>("foobar"); will work, ther...
stackexchange/codereview
I think this may be an easy solution, but I've spent an hour now investigating to no avail. I have a registration form in an element that is being used in views belonging to different controllers. Using the "url" attribute, I've told it to submit to /users/register, but for some reason, the fields aren't submitting to ...
stackexchange/codereview
Hi guys I am writing some code using the object literal pattern, I have function that returns a value: 'currentLocation': function() { var cL = 0; return cL; }, I then need to update the variable 'cL' from another function like this: teamStatus.currentLocation() = teamStatus.currentLocation() + teamStatus....
stackexchange/codereview
I know if I create favicon and set appropriate expire headers browser will cache it and stop requesting it. My question is how do I stop browser requesting favicon when there is no icon file for a limited time (i.e. 30 days)?
stackexchange/codereview
If I'm looping through a prolonged operation (say, processing files) and I want to update a progress bar, I need to use DoEvents, from what I can understand. But calling it during every loop of the function only results in the progress bar's animation being played back really fast (or slow, depending on the operation)....
stackexchange/codereview
I've got a legacy c++ win32 application, and extending it using wpf windows does work. But what I want to do is have a WPF window as main window, and not just any old window but a prism shell window. So to my legacy c++ project I want to add a Bootstrapper, shell window, MEF loader, all the bells and whistles. And in t...
stackexchange/codereview
As you know, PHP class has private, public and protected keywords. I just started to write classes and I wonder what are the advantages of class visibility in PHP5. And of course also disadvantages...
stackexchange/codereview
Can you compare the advantages and disadvantages of having all your unit tests in one project devoted to unit-tests only against having your unit-tests residing the relevant assemblies? Thanks
stackexchange/codereview
I've read through many of the questions here on SO relating to this issue, but I can't really find any good advice that fits our situation. I inherited this work flow, and I'm trying to make it better. Our setup PHP code base (Kohana in particular) code base powers ~60 sites, each with unique templates (i.e. 60 QA [Q...
stackexchange/codereview
I want to make 0 => 1 and 1 => 0, is there a simple way to do this in xslt?
stackexchange/codereview
So I've got a 2-D array, of phrases and individual words, called $frags, that `var_dump's like so: array(4) { [0]=> array(5) { [0]=> string(3) "the" [1]=> string(4) "term" [2]=> string(4) "'AI'" [3]=> string(5) "still" [4]=> string(7) "manages" } [1]=> array(2) { [0]=> string(2) "to" [1]=> string(5) "creep"...
stackexchange/codereview
I'm trying to figure out how to use the lessframework for building a 2 - 3 column grid, but how to get started? In the CSS code it says: 13-column layout 60 px columns, 24 px gutters, 72 px margins, 1212 px total (extra space for scrollbars) On http://lessframework.com/ it says 8 cols for older browsers and 13 for desk...
stackexchange/codereview
I'm using XML Simple to parse an XML file, the problematic part looks like that: <textBody> <title> <titlePart> <text>SECTION A <emdash/> HUMAN NECESSITIES</text> </titlePart> </title> </textBody> <ipcEntry kind="t" symbol="A01" ipcLevel="C" entryType=...
stackexchange/codereview
I have an Android App that uses a TabHost layout. Every tab calls the same Activity on which there is a ListView that loads data from a DB. Everything runs fine but the problem is that when the user clicks a ListView item and I call an intent to load, the new activity goes "full screen" and hides the TabHost. I call th...
stackexchange/codereview
Why C# compiler does not allow you to compile this: int a; Console.WriteLine(a); but does allow you to compile: MyStruct a; Console.WriteLine(a); where MyStruct is defined as: struct MyStruct { } Update: in the firsts case the error is: Error 1 Use of unassigned local variable 'a'
stackexchange/codereview
I think that it should be possible to get all the activities from 'third-party' application, described in the manifest file. I can't figure out how. for example: List<Activity> aList = packManager.getActivitiesForPackage("package.name"); thanks in advance!
stackexchange/codereview
The View() method can load Partial Views. Is the difference between View() and PartialView() is that View() can load views and partial views and PartialView() can only load partial views?
stackexchange/codereview
Ideally, they would have the following characteristics: They can be completed in just an evening of coding. It will not require a week or more to get interesting results. That way, I can feel like I've learned and accomplished something in just one (possibly several hour long) sitting. The problems are from the real w...
stackexchange/codereview
Let's say I have a pointer type that can hold the address of a base class method. Can I assign the address of a subclass method to it and expect it to work correctly? In my case I'm using it with a base class pointer and the dynamic type of the object is the derived class. struct B { typedef void (B::*MethodPtr)();...
stackexchange/codereview
How could I code a method that will allow a number to be added to another number before a certain month of each year? For example, I would like to be able to have a maximum deposit amount per year in a bank, and then the next year the max deposit amount starts again.
stackexchange/codereview
I have two rich text boxes, and I want to use just one scroll bar that will control them both. How can I do that? Please Help. Thanks.
stackexchange/codereview
Given a assembly how do I determine (in code) what version of Silverlight that assembly is compiled against? So I want a method that does this public static decimal GetSilverlightVersion(string assemblyPath) { Magic goes here } and it should return 2.0, 3.0 or 4.0 Note: the executing code is .net 4 not Silverlight
stackexchange/codereview
i want to write modules by myself very much. but for drupal and php, i am not good at them, only on the learning way of them.but i like them very much. so i am sincerely expect some seasoned drupalers or gurus can recommend some simple modules for me to research and learn.i know CCK and views are very popular,but they...
stackexchange/codereview
I have hosted an application in a machine running Red Hat Enterprise Linux 5. I started the jBoss AS using the command. ./run.sh -b 0.0.0.0 and ./run.sh -Djboss.bind.address=<<server_address>> and ./run.sh --host=<<ipaddress>> but using any of these commands i cannot access the application remotely. Using the the ...
stackexchange/codereview
I've been reading Effective Java and decided to try to put some of what I've learned into action. I'm trying to effectively create a Multimap<?, Condition<?> > where the wild card will be the same type for both the key and the value, but it will be different, distinct types. Here is the item from the book I'm looking...
stackexchange/codereview
In C++ the only way to pass an array to a function is by pointer, considering following functions: void someFunc(sample input[7]){ //whatever } void someFunc(sample input[]){ //whatever } void someFunc(sample (& input)[7]){ //whatever } All above function parameters are identical with following function parameter w...
stackexchange/codereview
Sample xml: <parent> <child>test1</child> <child>test2</child> </parent> If I look for parent.Value where parent is XElement, I get "test1test2". What I am expecting is "". (since there is no text/value for . What property of XElement should I be looking for?
stackexchange/codereview
is there an open source library or web service that i can feed with text and get back the overall impression ? by impression i mean the emotional state, what the person who wrote the text happy,sad..etc
stackexchange/codereview
I want to know, when my child process is exiting. But I don't want to block my application, so I use WNOHANG. #include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void handler(int nsig) { int status; waitpid(-1, &status, WNO...
stackexchange/codereview
i have GA connected site. I have banners, with outgoing tagged link - http://www.czgezinnen.nl/?utm_source=clickdistrict-cpm&utm_medium=banner&utm_campaign=CZgezinnen and i don't see campaign statistics in Traffic Sources - Campaigns. should I do smth else to swich on campaign tracking on my GA account fro current sit...
stackexchange/codereview
I was trying to copy an enumerable for the purposes of a comparison as assigning one enumerable to another just creates the reference an so the second will change as the first does. I had initally thought that using linq Select would create a second enumerable but was surprised to find that it to ends up just passing t...
stackexchange/codereview
I know how to compress an individual file using LZMA but it's not clear how to generate a valid 7-zip container for a collection of files. How do I write binary data for 7z archive format? explains how to create an empty container, but it's not clear what should get written for each file entry. Any ideas?
stackexchange/codereview
What does this [D][C][M])[-]*[a-zA-z0-9]*$ mean? What do *,^,$ [-] all mean? Please explain.
stackexchange/codereview
I can backup a database on hard disk with the following method : void BackUp(string ConnectionString, string DatabaseFullPath, string backUpPath) { progressBar1.Value = 0; using (SqlConnection con = new SqlConnection(ConnectionString)) { con.Open(); string UseMaster = "USE master"; ...
stackexchange/codereview
does anyone know if its possible to replace the updatepanel in asp.net ajax toolkit with some kind of jquery? DOes anyone have any detailed instructions? Basically we use the update panel so that when we do postbacks that the screen doesn't actually do a full refresh .. just the values .. I am using jquery for a lot of...
stackexchange/codereview