instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I noticed in the Entity Framework designer that you can map stored procedures for Insert, Update, and Delete operations. Is there any way to do this for Select operations as well, or is there a new direction for database access code where we don't really write stored procedures for our basic select operations any more?... | stackexchange/codereview |
How can I mark a test as an expected failure in JUnit 4?
In this case I want to continue to run this test until something is patched upstream. Ignoring the test goes a little too far, as then I might forget about it. I may be able to add an @expected annotation and catch the exception thrown by assertThat, but that als... | stackexchange/codereview |
I am running django on twisted. I have a special variable which is my engine being passed to each request. Take a loook at the following code:
# Django setup
sys.path.append("shoout_web")
os.environ['DJANGO_SETTINGS_MODULE'] = 'shoout_web.settings'
from django.core.handlers.wsgi import WSGIHandler
def wsgi_resource():... | stackexchange/codereview |
I'm working on a Navigation Menu.
I've created below ServerControl and it works, but I want to allow users adding some standard ASP.NET controls within my ServerControl Tags like label, image and so on.
<MdsMenu:ServerControlMenu ID="ServerControlMenu1" runat="server">
<MdsMenu:animation AnimationSpeed="Normal" Anima... | stackexchange/codereview |
I've got a hash with let's say 20 values.
It's initialized this way:
my $line = $_[0]->[0];
foreach my $value ($line) {
print $value;
}
Now when I try to get the value of each hash in $line it says:
Use of uninitialized value in print at file.pl line 89
Is there a way to iterate through each value of ... | stackexchange/codereview |
I have a scroll layout with a relative layout in each line. Now is there an image and a text, and I want to limit the height of each line to the text.
So if my image is higher than the text, that the image will be resized to the height of the text (proportional). How can I do this in XML?
At the moment the line definit... | stackexchange/codereview |
I looked at the PDFlib website and they seemed to be charging a hefty fee for use of the PDF libraries. Is there an alternative open source pdf extension to php???
| stackexchange/codereview |
It was easy in rails 2. There was the template variable available from the view. Now I cannot find the way to get it.
Rendering dashboard.html.erb with:
<%= template_name %>
Should produce:
dashboard.html.rb
| stackexchange/codereview |
I have a general question regarding how CAOpenGLLayer works in Mac OS X. Is it possible to draw to OpenGL in a place other than in the -[CAOpenGLLayer drawInCGLContext:] method of CAOpenGLLayer?
I'm using Apple's example code CALayerEssentials
and just moved the code that draws a rectangle from drawInCGLContext to red... | stackexchange/codereview |
I am trying to create an MP3 audio file on the device (iPhone).
I have found that there is no possibility to record directly in MP3 format.
Only .caf file that may contain AIFF, Linear PCM etc.
I have also found here that there is an AudioConverterFillComplexBuffer function that might, theoretically, convert CAF file t... | stackexchange/codereview |
I have a simple question to ask .. Its one of the first things you learn about shaders when using them with XNA that you can pass on variables from C# to the shader code via the Effect.Parameters function. For example:
Effect.Parameters["shaderVariable"].SetValue(someValue);
In the above line, you're sending the value ... | stackexchange/codereview |
In my app I needed to use a UIViewController to control my tableView instead of a UITableViewController (because I needed an additional view beneath my tableView). I've implemented the view controller (and delegate and datasource) succesfully but now I need to get the right behavior on my UITableViewCells when the user... | stackexchange/codereview |
I am able to get a map to show up and a pin to drop where I want in my iphone app project, but I want the title and subtitle to appear when the view loads. Here is the code I'm using. I thought putting in
[mapView selectAnnotation:annotation animated:YES];
would work, but it doesn't. Does anyone know how to do this?... | stackexchange/codereview |
Just wanted a clear answer for a direct question -- google results have been all over the place or don't address the combos you'll see below.
I'm generally a JSP newbie and have been screwing around with the following code.
<form:input id="theId" path="path.copied.directly.fromSomewhereElse"
cssClass="contentTextIn... | stackexchange/codereview |
I have some business objects and some very similar corresponding data contract objects for getting data across the wire via WCF service.
What mechanism should I use to get populated data contract objects from business objects?
In an ideal world, should the data contract layer know about the business layer?
or
Should th... | stackexchange/codereview |
I seem to be running into an odd problem. When using my GWT application in a local environment, everything works as it should. The problem comes in after I compile and deploy my application. When I go through my project workflow and click on a certain link to switch into a new panel, I get the following error (from my ... | stackexchange/codereview |
I have some code that has to compile for multiple platforms. The following will make the code compile but I want to know where the SIGUNUSED symbol is actually defined:
Working Code
#ifdef LINUX
#define SIGEMT SIGUNUSED
#endif
...
void set_sig_trap()
{
signal( SIGHUP, Signal ); /* floating point exception ... | stackexchange/codereview |
I've learned the basics of OOP and though I should attempt to make something simple, (just to learn and because I'm bored). The problem is I'm having trouble deciding what classes I'm going to need. Database abstraction and (user input) validation pretty much sort themselves out. It'll be in PHP, but I think all forums... | stackexchange/codereview |
I am creating a loop which loadsimages to newly created loaders. After each loader completes, I'd like to pass it through another function
Here's my loop of loaders where loader_names is an array of my loader names and overlay_files is an array of my file URLs
for (var j:int = 0; j < loader_names.length; j++) {
loa... | stackexchange/codereview |
i've been reading about this find method call findAllThreaded() in cakephp but i try it and it doesnt work... im working with 1.3 v of cake,,,
Do i have to download some code?
| stackexchange/codereview |
I am trying to setup eclipse and the project/workspaces to works smoothly and efficiently over 3 different computers (not in the same LAN).
Right now I have to do this in every computer:
install a plugin
customize eclipse.ini
customize prefs (I'll keep prefs.epf inside \eclipse folder and keep it synched with care)
I... | stackexchange/codereview |
I've installed Eclipse PDT Helios SR1 GTK for 64bit Linux (Ubuntu Maverick clean install).
I added the Subversive plugin for using Subversion, and installed the SVNKit 1.3.2 connector.
I'm using Sun's java and not the OpenJDK version.
When I synchronize a php project, and double click a php file for comparing the diffe... | stackexchange/codereview |
Does anyone could help me to implement autoanimate scroll on start wiht jquery scrolling carousel?
Link to Scrolling Carousel:
http://www.convergent-evolution.co.uk/resources/jquery-plugins/scrolling-carousel/
Effect that I want (its flash):
locabarra.com.br
| stackexchange/codereview |
im trying to convert a time stamp in seconds from Jan 01 1901 to the current date.
for example,
time stamp 3465468225 translate to a date in 2010. does anyone know of a way to do this in unix/linux? thanks.
| stackexchange/codereview |
What is the most efficient way to check if the current QTP test execution is interactive, i.e. not part of a QC test set execution launched from the QC test lab?
Do you guys know a cool way? WR used to have a batch run flag which reliably was cleared for all executions from within the IDE. Maybe QTP has something like ... | stackexchange/codereview |
I have 4-5 solutions of visual studio 2008. I want to build a setup.exe that can install these applications and services on clients machine. Also, I want the setup to be customizable like which applications to install, where to install, license agreement screen, progress bar, etc. Something like the installer which we ... | stackexchange/codereview |
How to select the text of the page in FireFox?
For example, there's a paragraph of text, user select the text in those paragraph in a regular way.then, I want to know in which paragraph the text selected by user (in which position-xy coordinates, range position).
| stackexchange/codereview |
I'm programming a Website and wanted to include the symbol of computer science, but i couldn't find the symbol somewhere ...
does someone know where i can find it? Do we have a symbol?
for example psychology has a symobl:
http://en.wikipedia.org/wiki/Psychology
| stackexchange/codereview |
I use boost::test to run integration tests on a class that creates directories and files. I would like
these files to be named test-case specific so if I run into trouble I can easily find which test case left its directories/files around.
So I would like to use the test case name in the constructor of the fixture that... | stackexchange/codereview |
I need to present the user with a screen with controls (i.e. a dialog). It will display some labels and different types of controls so that the user can do some configuration:
select a color (custom color picker)
select a line width (slider)
select one value from a list of values (UISegmentedControl?)
enable / disable... | stackexchange/codereview |
Is it possible, when creating a relationship in MS Access to manually set relationship type.
I'm creating a relationship between two tables, where records in table A can be related to 0 or 1 record in table B.
A:
ID PK, Counter
testID FK
Details
B:
ID PK, Counter
Details
I opened relationships tab and then dragged ... | stackexchange/codereview |
I have 2 processes which both access an sqlite3 database. While reading is not a problem in sqlite, only one process can write to the database. According to the faq:
http://www.sqlite.org/faq.html#q5 sqlite uses reader/writer locks.
How do i check if the database is locked for writing by another process, both from pyt... | stackexchange/codereview |
I use Quartz with JobJDBCStore and it works perfectly. The problem now is that I want to display Job that will fire ,their dates of execution and some info that I put in the associated JobDataMap.
Thanks you for your help
| stackexchange/codereview |
I am using delphi as my primary development tool.
and recently I found these 2 libraries in KSDEV.com
and i found they are similar to WPF . So i just downloaded them and stated to playing with them until the time to end comes ( i have not checked its license policies yet). I am not a good WPF knowledge person but i ... | stackexchange/codereview |
I know that this may sound like blasphemy to Lisp aficionados (and other lovers of dynamic languages), but how difficult would it be to enhance the Clojure compiler to support static (compile-time) type checking?
Setting aside the arguments for and against static and dynamic typing, is this possible (not "is this advis... | stackexchange/codereview |
Possible Duplicate:
What's the shebang (#!) in Facebook and new Twitter URLs for?
What does the (#!) in Twitter URLs do?
Example: http://twitter.com/#!/search/stackoverflow
| stackexchange/codereview |
I have a listview control on an .aspx page. Inside this list view i want to check "Type" property which comes from database. here is the example code :
<ItemTemplate>
<%# if(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Type")) == 0){ %>
<tr class="item">
<td>
... | stackexchange/codereview |
I already know Asp.net and C#. I want to build web site, and I need to choose between learning Silverlight or learning Ajax.
The site will be (visual) with nice tables and a little graphics, and with hard work with db.
My question is what is the recommended way for me, and the reasons.
Thank u and sorry for my English... | stackexchange/codereview |
I have a wsdl with xsd extensions. If I load the wsdl in soap UI, I am not able to view my extensions. Is it possible to load a wsdl with its xsd extensions?
Thanks,
Priya.
| stackexchange/codereview |
I'm new in hibernate. So, I don't know how to do this:
I have 3 tables:
Table Person:
@Entity
@Table(name = "ASD_PERSON")
public class AsdPerson implements Serializable {
@Id
@SequenceGenerator(name="seq_name", sequenceName="gen_id_value", allocationSize = 1)
@GeneratedValue(generator="seq_name")
@Colum... | stackexchange/codereview |
How does the final keyword not make a variable immutable? Wikipedia says it doesn't.
| stackexchange/codereview |
I would like to parse some JSON:
void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(e.Result)))
{
DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(STMsgObj));... | stackexchange/codereview |
Original code from JamieMThomas, a (really good guy who is trying to combine Microsoft JQuery Templates and Linking) :
mapping[binding.field] = {
convert: function (value, source, target) {
if (binding.converter && binding.converter.convert) {
value = binding.converter.convert(value, source, tar... | stackexchange/codereview |
This is a simple question i guess....
I have a panel that i can turn on and off. Within this panel i have a div with style attached to it.
My problem is when i turn the visible of the panel to false the style of the div is still there. What the solution to this?
Regards
<div id="ctl00_FullContentRegion_xFormRightPanel... | stackexchange/codereview |
Consider this dictionary format.
{1:{'name':'chrome', 'author':'google', 'url':'http://www.google.com/' },
2:{'name':'firefox','author':'mozilla','url':'http://www.mozilla.com/'}}
I want to remove all items which have the same name and author.
I can easily remove duplicate entries based on keys by putting all keys in... | stackexchange/codereview |
I've been missing the classic Fieldset of HTML in Silverlight and I couldn't find any solutions on the web. How do I go about building one?
| stackexchange/codereview |
We have a performance issue when using CTP 4 and code-only (no .edmx model file).
Is it possible to pre-generate "views" when using code-only and CTP 4?
| stackexchange/codereview |
Essentially I would like to add a UIImage programmatically to my interface, using:
[[self view] addSubview: myImage]
However, I would like to add the image BEHIND an existing image already present in the interface builder. Is there a method to accomplish this?
| stackexchange/codereview |
I have 2 UIImageVIew:
UIImageView *imageView1 = [[UIImageView alloc] init];
UIImageView *imageView2 = [[UIImageView alloc] init];
and one UIImage:
UIImage *image = [[UIImage alloc] imageWithNamed:@"image_name.png"];
so i set image for both of UIImageView with the same UIImage:
imageView1.image = image;
imageView2.ima... | stackexchange/codereview |
I'm developing a social networking website, and improving the front-end with some spit and polish.
One of the improvements I'm implementing is an AJAX validator for chat names. The set-up is this:
Visitor heads to registration page and the visitor types their desired chat name into a field. Whilst typing, the user is g... | stackexchange/codereview |
A question regarding iOS and in-app-purchase;
Is it possible to load a nib file that has been downloaded from a server and use it in the application? (e.g. something the user bought trough in-app-purchase?)
| stackexchange/codereview |
I'm really struggling trying to find something that actually works for getting the basics up and running. Even the tutorial apps that came with the SDK seems to have to be uploaded in order to work, so there's no easy way to debug and test it locally.
Anyone got a link to a working sample I could work off of?
Cheers!
... | stackexchange/codereview |
I am taking my first steps in XML-schema land, using XSD, and I'm trying to figure out how to add a constraint such that an attribute (defined with a fixed value) may only be present on one element in an unbounded set of elements.
Here's an example
<Object>
<Element>Value1</Element>
<Element>Value2</Element>
... | stackexchange/codereview |
Here is my problem:
My Spring MVC website is going to rely a lot on external JavaScripts/CSS/Images. This domain needs to be configurable. Also, I'd like to be able to throw pieces such as my header and footer into JSPs that can be included. When adding an image to a JSP, I need to be able to generate a link to the ... | stackexchange/codereview |
I'm trying to do a query through NHibernate where the criterion for the result depends on a referenced table's ID. How do I do this? Let's look at a simple example:
public class Foo
{
public int Id { get; set; }
public string Name { get; set; }
public Bar ReferencedBar { get; set; }
}
public class Bar... | stackexchange/codereview |
I am trying to refresh a pivot table in an Excel sheet and get the following exception:
Item method in the PivotTables class failed
Heres the code:
pivotSheet.Activate();
Microsoft.Office.Interop.Excel.PivotTables pivotTables =
(Microsoft.Office.Interop.Excel.PivotTables)pivotSheet.PivotTables(missing);
int p... | stackexchange/codereview |
Below T-SQL only creates table in the schema of current user, not the database specified. Why?
CREATE TABLE TEST ( URI VARCHAR(255) NOT NULL, PARENT_URI VARCHAR(255) ,
TITLE VARCHAR(1000) NOT NULL, MIMETYPE VARCHAR(100) , DESCRIPTION VARCHAR(1000) ,
MODIFIED_BY VARCHAR(1000)) IN DATABASE DB4TEST;
The table can be cr... | stackexchange/codereview |
how to skip specific item in row bind event C#
| stackexchange/codereview |
While I know PHP extremely well, I was wondering if there is any frameworks / GUI's out there that allow you to develop PHP in the manor that you can develop ASP.net sites? Most important features would be the separation of behind the scene's coding from the actual web view itself. This means each page has it's own cl... | stackexchange/codereview |
I use custom validation rule to validate my data. But I can't access/determine the property value.
here is my code
public class MandatoryRule: ValidationRule
{
public MandatoryRule()
{
ValidationStep = System.Windows.Controls.ValidationStep.UpdatedValue;
}
public override ValidationResult Val... | stackexchange/codereview |
i would just like to ask on how can i get the messages on my email inbox folder
and display it?
similarly, how can I access gmail's inbox or other mail client's inbox folder? is this possible on android?
| stackexchange/codereview |
The System.IO.DirectoryInfo.Exists always return false if i am giving a UNC like this \\192.168.0.33\Others (F).
and it occurs only when I run from the installed application, otherwise it will return true if the path is true.
| stackexchange/codereview |
I'm working on a new web site than can generate company/product names. Someone can come to the site and type in a bunch of words that you may want included in the meaning of the product somehow.
i.e. You go have just invented a robot that cleans an oil spill. You input a list of words: robot, oil, spill, autonomous,... | stackexchange/codereview |
Is there a way in VB.NET to replicate C# behavior on code snippets in case of capturing events?
I.E.
in C#:
Btn.Click+=
and then double-tab. Creates an handler for btn.click event.
| stackexchange/codereview |
Hi All
I am building an URL which is stored as varible to be available for a tab on clicking as below.
The parmeters of the URL are some constants and strings.
So in one param the user has entered in the Textarea coulmn as
This is
to be
removed
immediately
and so on build of URL the browser is throwing 'unterminated ... | stackexchange/codereview |
I'm trying to read the cells into an excel file without using ole db, 'cause I can't create the data into the excel (the excel file comes from my client and I can't modify...)
how can I do?
thanks
| stackexchange/codereview |
i want to filter the gridview on textchange in search textbox....
if i press some character like "S" the gridview should filled up with record starting with "S".
Public class DALDepartment
{
public Dataset DepartmentSearch(string Connectionstring, string conditon)
{
SqlConnection connection = new SqlConnection(connec... | stackexchange/codereview |
I have wsdl in which multiple port names and binding are defined, like below:
<wsdl:service name="NPCWebService">
<wsdl:port name="NPCWebServiceHttpEndpoint" binding="xsd:NPCWebServiceHttpBinding">
<http:address location="http://localhost:8080/axis2/services/NPCWebService"/>
</wsdl:port>
<wsdl:port na... | stackexchange/codereview |
I have installed VS2010 and then i installed the Silverlight 4 Toolkit, but i am unable to find the Busy Indicator control in the Toolbox.
Any solutions ??
thanks : )
| stackexchange/codereview |
This is the code for a simple test:
class ECollector:
#error msg collector
#this class should be used as 'global'
msgs = []
def addmsg(self,msg):
self.msgs.append(msg)
def clear(self):
self.msgs = []
class test(ECollector):
dcodes = []
ECollector
def new(self):
E... | stackexchange/codereview |
if you need to send crosssite request you can do it via JSONP and via new Image(), if you use JSONP you can recive answer from server, if new Image - not, why GA uses new Image?
| stackexchange/codereview |
My iPad app gets rejected with following reason-
The iPad Human Interface Guidelines state that an iPad application should be
able to run in all orientations. XXXX is only
supporting one variant of the portrait orientation. While we understand
there are certain applications that need to run in the portrait orie... | stackexchange/codereview |
I am writing a self modifying code.
movq $TARGET_CIA, 0x550(%rax)
This symbol TARGET_CIA is undefined initially and at run time I try to copy a 64 bit immediate value to this location. But at compile time this instruction takes the value of this undefined immediate value as 32 bit and when i try to copy the 64 b... | stackexchange/codereview |
I'm trying the codes from <Real World Haskell>.
On GHC version 6.10.4:
data ParseState = ParseState {
string :: String
} deriving (Show)
newtype Parse a = Parse {
runParse :: ParseState -> Either String (a, ParseState)
}
parse :: Parse a -> String -> Either String a
parse parser initState =
case runParse parser... | stackexchange/codereview |
For some reason, this variable wont display. Here is the code:
<?php
require_once("functions/redirect.php");
require_once("functions/connect.php");
require_once("queries/member-table-query.php");
$id = $_GET["id"];
// Query the db to get all of the info to put in the XML file
$result = mysql_query("SELECT members.*... | stackexchange/codereview |
I am using vim and xdebug to debug my php program, when I press F12 to get an array value,
the result is just (array). How to show the content of the array?
$loadedModels = self::$_loadedModelFiles;
When the cursor is on $loadedModels, and I press F12 ,
the result is as bellow:
/{{{1/ => property_get: loadedModels
$com... | stackexchange/codereview |
I want my web-site to be SEO-ed and for which I will be using static URLs (RESTful web services). But in some scenarios, I cant choose which of them(static url/dynamic url) is better.
For instance in search box implementation, user can type in anything, and for that i have 2 choices:
create another static url (like: /... | stackexchange/codereview |
I'm just curious if there's a way to disable things like shell_exec() using the .htaccess file or something, not globally, but only for specific subdomains or directories (possibly disable fopen() on files above the subdir). It occurred to me that on one of my shared hosts where I'm sharing subdomain space with a frien... | stackexchange/codereview |
With respect to coding standards, speed, and efficiency, which of the following is a better programming practice for this situation?
function foo() {
if(bar) { return 0; }
if(baz) { return 0; }
if(qux) { return 0; }
}
or
function foo() {
if(bar || baz || qux) { return 0; }
}
I'd lean toward the first, s... | stackexchange/codereview |
Anybody can tell me how to display the bluetooth device (MyGlucoHealth meter) data in LogCat. the following code :
InputStream is = btSocket.getInputStream();
How to read data from "is" and print it. ?
Thanaks,
Chenna
| stackexchange/codereview |
I plan to develop Android application which will encrypt/decrypt voice data such that parties can communicate using secure channel. So the question is: how to intercept voice/audio data during GSM call? Is it possible or not? Should I use Android NDK or something else?
| stackexchange/codereview |
Definition of a runaround #:
It is an integer with exactly N digits, each of which is between 1 and 9, inclusively.
The digits form a sequence with each digit telling where the next digit in the sequence occurs. This is done by giving the number of digits to the right of the digit where the next digit in the sequence ... | stackexchange/codereview |
I am using Garbage collector in my Cocoa based application on Mac OS X. It has 100s of threads running and synchronization is done using Operation Queue.
After a long run, one of the object is garbaged and application will crash.
Checking to see if the object is non nil also fails as the the object is invalid and conta... | stackexchange/codereview |
I'm trying to create a RoR web application that allows people to connect to their accounts to google calendar.
I found a gem called gcal4ruby that seemed to do the right things based on looking at sample code and its documentation.
I ran gem install and the cmd claimed the installation was ok.
However, when I added the... | stackexchange/codereview |
We were beginning to start on an enterprise application using silverlight.
However after reading this post we doubt whether it is the right choice going forward.
The post says that, according to
Microsoft's declaration in PDC 2010,
Microsoft has changed their strategy
regarding silverlight and they no
longer ... | stackexchange/codereview |
Hi All
I am implementing an application which uses TabBar and Navigation Controller. In this application I need to change the orientation of a specific view(Photo Gallery View in my app )(want to implementation orientation functionality). I have set boolean value YES in all the view controller's shouldautoroateorientat... | stackexchange/codereview |
I am using boost shared_ptr with my own memory manager like this (stripped down example, I hope there are no errors in it):
class MemoryManager
{
public:
/** Allocate some memory.*/
inline void* allocate(size_t nbytes)
{
return malloc(nbytes);
}
/** Remove memory agian.*/
inline void dea... | stackexchange/codereview |
I have the dreaded Validation of viewstate MAC failed problem from time to time. I run my application in a web farm and have set the machine key of the application to the same value on all web servers.
I have been doing some experiments and now I have two questions regarding the anti forgery token mechanism:
1. I see... | stackexchange/codereview |
noob here,
I'm trying to transfer a file using rsync from windows to linux.
I have this code, but I'm getting an error
rsync -avz -e ssh C:\users\file.txt root@123.45.67.89:/var/dir
I get this error The source and destination cannot be both remote
And if I try
rsync -avz -e ssh /c/users/file.txt root@123.45.67.89:/var... | stackexchange/codereview |
Well basically, I have this bing map control inside my Panorama view, when I pan left or right, the panorama changes columns. Is there a way to avoid this?
Video of behavior
Thanks!
| stackexchange/codereview |
We've recently released the latest version of our intranet application, which now uses windows authentication as standard, and needs to be able to connect to a configured SQL server with the end-user's domain credentials.
Lately we've found that on a couple of customer deployments, although IIS can see the user's domai... | stackexchange/codereview |
When passing an Array Argument to a Function, it's memory address is copied into an Array Parameter. Because of this:
sizeof() returns the size of the entire array for the Array Argument (inside caller)
sizeof() returns the size of a pointer for the Array Parameter (inside called Function)
My question is, what type i... | stackexchange/codereview |
I’m writing a cucumber test where I want to get the HTML in an element.
For example:
within 'table' do
# this works
find('//tr[2]//td[7]').text.should == "these are the comments"
# I want something like this (there is no "html" method)
find('//tr[2]//td[7]').html.should == "these are the <b>comments<... | stackexchange/codereview |
I have a variable that is an object :
Foo x;
And I need to call a function that requires a Foo*. How can I convert from Foo to Foo*.
I know this wont work :
Foo* y = &x;
o->setFoo(y);
Because "x" is a local variable, so it will be destroyed and the pointer I gave will point to nothing.
How can I do ?
Note : I can't m... | stackexchange/codereview |
I'm using SharePoint 2007 and I need to know when/where I should use the 'view' instead of 'read-only' for user permissions.
| stackexchange/codereview |
I want to know how does the "Did you mean : ..." of Wikipedia works and if there's a way, like with the API, to use it? Because I want to get the corresponding page from my input but this one could include errors. Example . Is there a query that returns directly the suggestion?
Thank you for your help.
| stackexchange/codereview |
I've looked through some of the other posts but couldn't find an answer, so sorry if this is a somewhat stupid question.
I have a div
which I add span elements dynamically to, like <span id="agolf-squirecreek1.jpg">golf-squirecreek1.jpg</span>. I need to remove these elements dynamically as well when clicked on. I hav... | stackexchange/codereview |
if I create a shared library without a SONAME like this
gcc -shared libfoo.o -o libfoo.so
and link against it,
how does the linker find my shared library?
Is the filename libfoo.so considered as default SONAME by the linker?
| stackexchange/codereview |
I want to remove alphabets from a string. What is the best way to do it. To be more precise, i have MAC address of a system, and I want to extract only the numbers from it. I have found this article or stackoverflow. link text
I want to know, if using the regex is the best way or there are other ways to do it (maybe us... | stackexchange/codereview |
Edited question...
Hello,
I would like to load a .xhtml file of my composite component from a backing bean, and add it to the page dynamically. The name of the .xhtml file comes form a variable.
Ex.:
public MyBean (){
String componentFile = "myCompositeComponent.xhtml"
public String addComponentToPage(){
... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.