instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
When a user searches on my site, I grab the get request and do a mysql query against it. My original code looked something like this: $q = $_GET['q'];. Right now urldecode is adding slashes for me, but I decided to aslo try filter_var with the santize string filter. Here is my sql when I use $q = urldecode($_GET['q...
stackexchange/codereview
Hi I'm using a user script in xcode to do some work for me. The first part of the script needs to take the piped content of the selected file and store it in a temp file. Doing some reading on redirects I found this: #!/bin/bash /Users/derek/projects/Crema/Classes/CoffeeFormController.m.uncrustify<&0 My understanding ...
stackexchange/codereview
I have a dictionary, for example Dictionary<int, string>. What would be the best way to get the string value if I know the key?
stackexchange/codereview
I'm developing an Android application for Android 2.2. When I run a program that uses OpenGL ES 2.0 on emulator I get the following error: called unimplemented OpenGL ES API But if I run the same program on a physical device with Android 2.2 it works perfectly. What's happening? Thanks.
stackexchange/codereview
We use wix to create our setups. For upgrading, we use major upgrades as demonstrated in this answer by Rob Mensching. (In newer wix versions you can use the MajorUpgrade element.) This normally works well. The old product is removed, then the new product is installed. However, apparently the above is not completely eq...
stackexchange/codereview
in first loop i was take NSManaged object for (NSManagedObject *carrier in carriers) { // find one necessary carrier } I need a transfer finded carrier object to second loop to using it for build inverse relationship. I tryed to declare NSManagedObject *currentCarrier; and make currentCarrier = c...
stackexchange/codereview
I've been working with DDD for a few months now and I've come across a few things I'm unsure of. Take the simplistic example of adding a Product to an Order object. From our Controller, we'd have an int passed via the UI which represents a Product in the database. Which of the following two examples is correct (let me...
stackexchange/codereview
I have a strange problem that came out of no where... When I attempt to update a list box selected index in code it will only update if I do the following lstbox.selectedindex = 4 or any other number in the range. If I do lstbox.selectedindex++ or lstbox.selectedindex += 1 or lstbox.selectedindex = var; It will not up...
stackexchange/codereview
Every time I build my web application, my session variables are lost from before the build. Is there anyway to preserve session variables during the build?
stackexchange/codereview
Ok, the title may not be the most descriptive. It's easier to explain with an example. I have a data.frame like this: A B 1 2 L M 3 0 P Q 5 6 I want to output an array of the cell in column 1 if col3 > col4, or the cell in col2 if col3 <= col4. The output vector from this data.frame would be B, L, Q. I'm aware that I ...
stackexchange/codereview
I have a problem, I would like to store files outside the public folder using paperclip (to make them private), it would be very simple, just configure the :path option, but to retrieve those files (many of them images) I would need a controller method (ie. get_file), making very slow when you display a list of files w...
stackexchange/codereview
I create a new application for iPad starting from an UISplitView application that works correctly, in the new application I get this error: "_OBJC_CLASS_$_ConcertListController", referenced from: objc-class-ref-to-ConcertListController in RootViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status ...
stackexchange/codereview
I'm new to django, are there many choices for user authentication (in terms of plugins) or is there just one way to do it?
stackexchange/codereview
I am programming in C# and working with an XDocument. Want to add an element into the tree if and only if there are no other elements that have the a matching attribute value. For example, is there a LINQ expression that I can use to look at the element below and see if there already exists a foo element with the same...
stackexchange/codereview
in my page i want to get the value of a div or textbox. in two different different condition he can be div and textbox it is sure how i can get the value of div or textbox when i am sure that it was only div or textbox but not sure that it was div or textbox. any method can help me to get the value even he was div or t...
stackexchange/codereview
Note: we are using lib_neon on client side and Tomcat and servlet api on server side. The problem is following: when client wants to put some content, it performs a PUT request with an "Expect: 100-continue" header, Tomcat handles it by simply returning status 100 Continue and after that client starts to send the remai...
stackexchange/codereview
When I copy or cut collapsed code and paste it somewhere else, the code gets expanded. Is there any way to make Visual Studio to retain the collapse/expand state when copy/cut/pasted? I'm hoping that I can rearrange methods order quickly by cutting and pasting while all the implementaion details are nicely collapsed...
stackexchange/codereview
I am experimenting with WatiN for our UI testing, I can get tests to work, but I can't get IE to close afterwards. I'm trying to close IE in my class clean up code, using WatiN's example IEStaticInstanceHelper technique. The problem seems to be attaching to the IE thread, which times out: _instance = IE.AttachTo<IE>(F...
stackexchange/codereview
When one marquee leaves the screen then after a short time gap it enters from another side. Is there any way to reduce this time?
stackexchange/codereview
For example: I have a User which has 10 Widgets. Along with that I have a Manager that manages 5 of those widgets. I want to retrieve the User's Widgets managed by a specified Manager. So I created a function in my WidgetMapper called fetchUsersManagedWidgets($userId, $managerId) which queries the db for those 5 widget...
stackexchange/codereview
HI all, i want to ask can i save an array in shared prefrence(Default Shared Prefrence)... if yes then pls help me to save the array in shared prefrence.. Any code would b great if available. thanks in advance.
stackexchange/codereview
The DataNucleus docs talk a lot about detached objects and what it means to be detached, but, for new users, they kind of skip over the simplistic: What does it mean to be attached? http://www.datanucleus.org/products/accessplatform_1_1/jdo/attach_detach.html If I perform: MyPersistableObj p = pm.makePersistent(myNewPe...
stackexchange/codereview
webapps | |----helloworld | |----WEB-INF | |-----classes-HelloWorldServlet.class |-----lib----servlet-api.jar |-----web.xml The above is my directory structure. Now in web.xml i don't know what to give in url-pattern for servlet mapping. What should i give there? Which...
stackexchange/codereview
I want to know the FM Radio signal strength in Android. For this I have to interact with hardware or not? Or is there any API which can directly give me the value of signal strength?
stackexchange/codereview
Are there too many asserts in this one unit test? [Fact] public void Send_sends_an_email_message() { using (var server = new MockSmtpServer()) { server.Start(); using (var client = new EmailClient("localhost")) { string from = "john.doe@example.com"; IEnumerable<string> to = ...
stackexchange/codereview
I can call my script like this: python D:\myscript.py 60 And in the script I can do: arg = sys.argv[1] foo(arg) But how could I test if the argument has been entered in the command line call? I need to do something like this: if isset(sys.argv[1]): foo(sys.argv[1]) else: print "You must set argument!!!"
stackexchange/codereview
I am following the general best practice principles of restoring my persistent and none persistent state and objects when a tombstoned app is re-activated. Which can be found in this very good Microsoft article here The samples only show a simple re-activation of the main page of an app. However as my application has ...
stackexchange/codereview
Hashtable<String, Hashtable<String, HashSet<String>>> test = new Hashtable<String, Hashtable<String, HashSet<String>>>(); test.put("1", new Hashtable<String, HashSet<String>>()); Hashtable<String, HashSet<String>> actual = test.get("1"); actual.put("3", new HashSet<String>()); //test.put("1", actual); HashSet<...
stackexchange/codereview
My (MVC2) application displays several addresses in a View. Each address contains just a subset of information, like first- and lastname. The request is that the complete address information should be displayed when the mouse is over a result. An html template should be used therefor. This template defines how(!) the c...
stackexchange/codereview
What is the best way to get dev and test browsers to resolve our production domain name to dev and test environments? Say our production domain is widgets.com. In the past, we've used internal DNS for devwidgets.com, testwidgets.com, demowidgets.com, etc. But this is proving to be big pain. Seems better to have a h...
stackexchange/codereview
this code is correct in C# int x = int.Parse(Console.ReadLine()); int[] t = new int[x]; but in c/c++ in wrong int n; scanf("%d",&n); int a[n]; how in c# static array allocate in runtime (or in c# array is dynamic?)
stackexchange/codereview
How do you implement a preloader for a processingjs canvas element? Two cases - assets have loaded, but js still calculating/rendering the view; assets have not loaded P.S. Someone create the processingjs tag! Users with rep lt 1500 can't do that yet :(
stackexchange/codereview
what is the difference between the below two statements? which one is more efficient? Database db = EnterpriseLibraryContainer.Current.GetInstance("QuickStarts Instance"); Database db = DatabaseFactory.CreateDatabase();
stackexchange/codereview
I've created a web site for student management (martial arts schools). Which includes invoicing students. Currently the only way my users can do this is by printing the invoices and handing them to the students. I'd like to create a way for the students to go to their invoice online. I've been considering using GUID...
stackexchange/codereview
I have loaded an AS2 swf inside another AS2 swf using MovieClipLoader. I have no control(cannot edit) over the child swf. Is there a way I can communicate with the child swf from the parent swf. The child swf is not accepting any LocalConnection Objects. Can I call a method in the child swf some other way? Thanks, Sri
stackexchange/codereview
I need for a php file to process when the user click a link/go back/exits a page. Its part of a saving user info process. if i do a jquery unload how would I fire the php file to load and process. jQuery(window).bind("unload", function() { // what should i add? });
stackexchange/codereview
I have an input box that I don't want postback to occur on someone striking the enter key I want the javascript event to take place instead. <input type="text" id="addressInput" onkeydown="inputenter()" autopostback="false"/> function inputenter() { if (event.keyCode == 13) { seachLocations...
stackexchange/codereview
I'd like to be able to perform a search within TextMate, but copy the resulting matches into a separate file. I'm using the following expression: (?<=\()(.*?)(?=\)) to match an email address embedded within brackets of a line of text, so something like: A N Other (another@example.com) The file I'm working from has a fe...
stackexchange/codereview
I am trying to use the autocomplete script on http://www.devbridge.com/projects/autocomplete/jquery/. Now, the downloaded code did not have the callback script. I made my own PHP script - that did not work. I am trying to use devbridge's serviceUrl (absolute), but that too does not work. The local version (months) on...
stackexchange/codereview
We are building an system which is B/S structure.And the customer want to print the reports of their sells data.But they want to use an free report to do this! I wander what's the better free report system to use? Ps:We use asp.net! Thanks
stackexchange/codereview
how can i install and configure mysql db with .net installer? is there is any better db available with Zero installation and zero configuration that i can use it with .net installer ? Abdul khaliq
stackexchange/codereview
I have a table view in iphone.when i tap a cell a new view to insert in that particular cell after that when i tap some where a view gets hide and cell content to get displayed.
stackexchange/codereview
Is it possible to determine the area on which a user clicked on a tile? Just like an image map in HTML. I would like to specify two buttons at an image tile and carry out different actions for each of them.
stackexchange/codereview
Is there a way to get code behind access to databound data each time it updates? I have seen the static ValidateValueCallback delegate that can be hooked into a DependencyProperty, but that's static and really, it's purpose is just for validation. I have a number of situations where I need to update other objects as a ...
stackexchange/codereview
I am currently solving a system of differential equation under python using odeint to simulate charged particles in a field (the source comes from this package): time = np.linspace(0, 5, 1000) def sm(x, t): return np.array([x[1], eta*Ez0(x[0])]) traj = odeint(sm,[0,1.], time) It works fine but I would like to s...
stackexchange/codereview
I migrated a MVC 2.0 site to MVC 3.0, using that : Migrating MVC 2.0 -> 3.0 Using ASPX as View Engine works great now... But I tried to create a Razor view and got that error: The view 'TestView' or its master was not found. The following locations were searched: ~/TestView.aspx ~/TestView.ascx ~/Views/Col...
stackexchange/codereview
HI, can you tell me if this is possible. public class Person { public string Name { get; set; } public int ID { get; set; } } Populate a class call say person which is in an assembly called Entities like this with the population of the code being done in a different assembly called DataAccessLayer (so person a...
stackexchange/codereview
I use In App Purchase in my application, but I have problem when I'm testing that. I have four consumable products. Information about that products I show in tableview. Sometimes when I click a button to buy some product I get a transaction state SKPaymentTransactionStateFailed in updatedTransaction function but transa...
stackexchange/codereview
How can I tell SQL Server 2008 Management Studio to turn off printing of header dashes when displaying text results in a query window? Examples of header dashes being produced are: selectId, count(*) ContentCount from Table group by Id order by count(*) desc produces: Id ContentCount -----------------...
stackexchange/codereview
I am trying to build a Hash that has an array as one value; this array will then contain hashes. Unfortunately, I have coded it wrong and it is being interpreted as a psuedo-hash. Please help! my $xcHash = {}; my $xcLine; #populate hash header $xcHash->{XC_HASH_LINES} = (); #for each line of data $xcLine ...
stackexchange/codereview
I need to be able to dynamically change the width of a column in my grid according to the length of the data which is loaded for that column. For example, I have a column for "Name", and the names might get really long but I want to be able to show the entire name.
stackexchange/codereview
Using cms:out escapeXml="false" in a Magnolia jsp, outputs a <br> anywhere, where a line break is in the input string. In the jsp, the code is: <cms:out nodeDataName="plainHtml" escapeXml="false" /> plainHtml is set with a controlType: edit, type: String. Is it possible to prevent the output of <br> anywhere, where...
stackexchange/codereview
I have a activity on my app, that shows a lot of options that can be configurated (textviews and textedits on a linearlayout) But I have a problem, there are more items that my windows can show, and I can't go down doing down movement with my finger on the screen. i am trying to do it with scrollview, but i can't my sc...
stackexchange/codereview
I'm trying to initialize a global array of function pointers at compile-time, in either C or C++. Something like this: module.h typedef int16_t (*myfunc_t)(void); extern myfunc_array[]; module.cpp #include "module.h" int16_t myfunc_1(); int16_t myfunc_2(); ... int16_t myfunc_N(); // the ordering of functions is not ...
stackexchange/codereview
I think I am stupid. I don't understand how Git works with the command lines so I am using Git Gui. I got it install and the Gui can be launched successfully, but when I come to clone the file from the files which is shared by another programmer with me, I keep getting this error message, Location C:/.... already exist...
stackexchange/codereview
I am aware that the title is not self-explanatory but this is the simplest one that I came up with. Basically, I am have a .NET DLL and a .NET forms application. In this form, I load this DLL and create a class let's say: MyClass a = new MyClass(); I have: public string DataBridge { get { return String.Empty; } set ...
stackexchange/codereview
I have a webpage which has a form that is submitted via POST. This POST-route processes some data and redirects the User to a GET route. The problem: The GET route is called multiple times, usually 3 times. So three GET's are fired and the user see's the first GET request. The other two GET requests I can just see on m...
stackexchange/codereview
Why do Java Server Pages (jsp) have implicit objects but java servlets do not?
stackexchange/codereview
I am developing an app which uses the phone's default camera application to capture an image and then allow the user to perform some basic editing. I use the following snippet... Intentintent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT,*<file>*); startActivityForRe...
stackexchange/codereview
I have the following entities and I am trying to map them with help of FluentNHibernate. Some notes about the entities: The attributes CreatedBy and AssignedTo on the Task entity are of type Person and, on the database side, are int columns called respectively CreatorID and AssigneeID The attribute WrittenBy on the e...
stackexchange/codereview
I have 2 level categories like this: paintings - car - cat - dog other - other1 - other2 ... Now I've many posts in each sub-category. My goal is get the next post and previous post from the current post in current main category. For example : I've a post name : "a good car" in car category. Then...
stackexchange/codereview
I have the following .htaccess at present. <IfModule mod_suphp.c> suPHP_ConfigPath /home/abc/php.ini </IfModule> RewriteEngine on RewriteCond $1 !^(index\.php|media|css|js|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] AuthType Basic AuthName "Está dominado!!" AuthUserFile "/home/abc/.htpasswds/public_html...
stackexchange/codereview
In my current site I have a link in the header section for skype, Gtalk, MSN chat, by clicking on the link the chat application get launched. The problem is that, the link uses a href tag. and by doing this the SEO process is facing problem as there is some duplicate url have been created. In SEO process if different U...
stackexchange/codereview
I wonder if 301 redirect is possible in an exclusively html static nginx server? I know that normally it is not possible to make redirect work in html only. In apache server, it is possible to make redirect by using .htaccess. I wonder if there is a similar way of doing this in nginx too?
stackexchange/codereview
I am starter to rails. I want to do a task on rails that... " A student having his personal information like firstname, lastname, fathername, age, sex,address" in one table and, also having "individual marks of subject, toatl marks, grade" in another table. My intention is that..I need to get all information about a st...
stackexchange/codereview
I have a table which i specify is a certain height. I am expecting overflow and on Firefox a scroll is added and everything is fine. I have a label below my table which displayed below. On IE7 the rows which go beyond the height of the table are still visible. So you can imagine that the table just keeps on going beyo...
stackexchange/codereview
I heard that we can specify VIM indent for a file by embedding the indentation commands into the file to be edited. Can somebody let me know how to do this?
stackexchange/codereview
How can I setup a pre-commit hook , that will search for a string in the committed files and If found stop the commit ?
stackexchange/codereview
I have a Swing app (residing in an executable, signed jar) that is a client. The app also connects to a server. When certain conditions are met, I perform a refresh of the GUI (more specifically, delete all nodes of a JTree and then repopulate it). When I run this client as-is (i.e., without a security manager and with...
stackexchange/codereview
I have a question about the WordNet data file-format. The wndb(5) manual page says in part: The source/target field distinguishes lexical and semantic pointers. It is a four byte field, containing two two-digit hexadecimal integers. The first two digits indicates the word number in the current (source) synset, the ...
stackexchange/codereview
double [] numbers = new numbers[200]; numbers[0] = 123; numbers[1] = 456; // // and so on. // var n0 = numbers; var n1 = numbers.Skip(1); var n2 = numbers.Skip(2); var n3 = numbers.Skip(3); var x = from a in n0 from b in n1 from c in n2 from d in n3 where...
stackexchange/codereview
I'm building a CodeIgniter application and using Smarty as my templating system. Instead of trying to assign Smarty variables from various controllers, would it be better to define all the Smarty variables in one place (e.g. a controller super-class) so that everything is in one place? My concern with this approach is ...
stackexchange/codereview
Is it possible to get the width of a linear/relative layout, if the layout_width is set to fill_parent in the layout xml? For example, I have the following layout xml. Is it possible to find the width of the cameraSourceScreen? Thanks in advance :) <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/andro...
stackexchange/codereview
I'm looking for a way to allow users to define a teaser for their articles. We currently are using a separate field limited to 255 characters which has been working, but users would like to not have the redundant work. My first thought is to use a specific string like <more> have an if statement to see if that string i...
stackexchange/codereview
As far as I understand, in JavaScript (Gecko variant) this: var a = new A(); is a syntactic sugar for something like this: var a = {}; a.__proto__ = A.prototype; A.call(a); Because of that, A() (which is equivalent to A.call()?) and new A() should produce two different results, like these: >>> new Date() Fri Nov 19 2...
stackexchange/codereview
I want to reuse the same UIView object as a table header in different UIViewControllers. I have an ArticleViewController class; @interface ArticleViewController : UIViewController { UIView *headerView; } - (UIView *)headerView; @end I then implement the headerView get accessor to lazy load the object; #import "A...
stackexchange/codereview
I would like to establish a good naming scheme for physical/mathematical quantities used in my simulation code. Consider the following example: from math import * class GaussianBeamIntensity(object): """ Optical intensity profile of a Gaussian laser beam. """ def __init__(self, intensity_at_waist_cent...
stackexchange/codereview
I'm trying to enumerate all the pc's in my workgroup lan (not a domain) using WMI. I can't figure out which class to use or if there is any class that offers this functionality? I've tried several classes but the one that seems that should do the work (Win32_NetworkClient) does not show what i expected to... Is this po...
stackexchange/codereview
I use Spring Security 3.0.3.RELEASE. I would like to create a custom authentication processing filter. I have created a filter like this: // imports ommited public class myFilter extends AbstractAuthenticationProcessingFilter { @Override public Authentication attemptAuthentication(HttpServletRequest request, Ht...
stackexchange/codereview
Pawnshop business model: CLIENTES (customer table), LOTES (lot table), ARTICULOS (item table) and TRANSACCIONES (transaction table). The reason I defined a lot table is because when customers pawn or sell items, the pawnshop groups all these items into one lot, calculates the total loan or purchase amount, stores thes...
stackexchange/codereview
I have this Arabic text: الخط الكوفي. When I try to save it in a MySQL database it doesn't save. Is there any way to save it as the original text?
stackexchange/codereview
Is it possible to insert more than one row in a table with one insert statement? I know this will happen if I do: insert into table ( fields ) select values from another_table But what if I want to insert: row 1 - ( a1, b1, c1 ) row 2 - ( a2, b2, c2 ) ... row n - ( an, bn, cn ) with just one insert command?
stackexchange/codereview
I have a problem that while writing a C# code the output sometimes is words arabic language,and it appears as a strange symbols,how to make C# read and show arabic??
stackexchange/codereview
i am bit new to java and swing so... can someone please tell me how to utilize swing textfield component for number processing (money, decimal...) ? or can someone tell me where to find swing component witch is designed for this ? I am building a small ERP app, and standard Swing or SwingX simple do not have a goo...
stackexchange/codereview
I am not clear with use of __attribute__ keyword in C.I had read the relevant docs of gcc but still I am not able to understand this.Can some one help to understand.
stackexchange/codereview
I have a class MinMax which among other things contains this: public class MinMax { private float m_min = 0; private float m_max = 1; public override string ToString() { return m_min + " " + m_max; } } I also have another class SomeClass with a property of this type: public MinMax Something...
stackexchange/codereview
I'm trying to use Drools as the rule engine for a grammar relations to semantics mapping framework. The rule base is in excess of 5000 rules even now and will get extended. In using Drools currently the reading of the drl file containing the rules and creating the knowledge base takes a lot of time each time the progra...
stackexchange/codereview
I've been using the HTML email templates that I obtained from http://www.campaignmonitor.com/templates/ And on every example I have gone through, when I send an email using the HTML template, all the links are given the horrible default blue underline. The emails are being sent using Outlook 2007 and when they are view...
stackexchange/codereview
I have a collection with 9 million records. I am currently using the following script to update the entire collection: simple_update.js db.mydata.find().forEach(function(data) { db.mydata.update({_id:data._id},{$set:{pid:(2571 - data.Y + (data.X * 2572))}}); }); This is run from the command line as follows: mongo m...
stackexchange/codereview
intentTest.java: package intentTest.xyz.com; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class intentTest extends Activity { Button b; /** Called when the activity is fir...
stackexchange/codereview
I have to click in the radio button All to see all revisions. Why some are hidden by default? How to show all by default? I have TortoiseHg 1.1.5 with Mercurial-1.7, Python-2.6.4, PyGTK-2.16.0, GTK-2.16.6 on Windows 7.
stackexchange/codereview
I am try to set up a mysql partition like so: PARTITION BY LINEAR KEY(id) PARTITIONS 100 MAX_ROWS=1000000 But I get the following error: The server has returned this error message:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX...
stackexchange/codereview
I am developing a bignum library: http://pastebin.com/nFgF3zjW I implemented the Miller-Rabin algorithm (isprime()), but it is extremely slow, compared to for example OpenSSL's BN_is_prime_fasttest. I tried profiling and the functions that are executed the most are bn_shr_atomic and bn_cmp. Any idea how I can make this...
stackexchange/codereview
I would like to create two plugins for my wordpress blog and I need different admin settings for both.I am trying to adding plugin administration; but which selecting both settings together when select single.What's wrong with me.Here I am attaching what I done add_action('admin_menu', 'sb_load_featured_slider'); func...
stackexchange/codereview
This is similar to What does zero-sized array allocation do/mean? I have following code int *p = new int[0]; delete []p; p gets an address and gets deleted properly. My question is: Why allocation of zero bytes is allowed by c++ Standard in the first place? Why doesn't it throw bad_alloc or some special exception ? I...
stackexchange/codereview
I require an animation for an image in my application. The image should start coming from the top left corner till the middle of screen. The image size will be smaller at the initial stage. While coming to the middle of the screen, its size should increase(i.e. scaling should take place). Image should not go back to it...
stackexchange/codereview
I am facing some error when calling a method for retrieving the data form sqlite. error: stray '\302' in program at this line printf("%d", sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL));  please tell me where I am wrong..
stackexchange/codereview
I am busy learning fitnesse at the moment and have not been able to figure out how to work out how to get an absolute path from a relative url. I want to be able to upload test files to the files directory on a fitnesse server and then read those files in my test fixture. e.g. public void ReadTextFileContent(string fil...
stackexchange/codereview
I am a newbie in C#.I am reading about Sealed keyword.I have got about sealed class.I have read a line about Sealed method where we can make Sealed method also.The line was (By declaring method as sealed, we can avoid further overriding of this method.) I have created a demo but didn't understand that the meaning of a...
stackexchange/codereview
Suppose I have something like: QGridLayout layout; layout.addWidget(new QWidget()); layout.addWidget(new QWidget()); What is the method that I can use to get the list of the added QWidgets ? Something like the imaginary getAddedWidgets() below: QList<QWidget*> addedWidgets = layout.getAddedWidgets(); Q_ASSERT( addedW...
stackexchange/codereview