instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a problem accessing JNDI resources from within an OSGI bundle, hosted in
WebSphere Application Server (WAS) using a servlet bridge.
It is failing on creating the JNDI initial context. My code is:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialCont... | stackexchange/codereview |
I have configured ClearCase plugin in Hudson .
I created a project , by giving new hudson_view_name as view name for the Hudson project and provided config spec.
I identified in my view storage directory it is creating multiple folders related to the view. like ,
hudson_view_name.vws
hudson_view_name.1.vws
hudson_vie... | stackexchange/codereview |
I am reading a C# 4.0 book which gives the following default values for the maximum thread limit for the threadpool.
1023 in Framework 4.0 in a 32-bit environment
32768 in Framework 4.0 in a 64-bit environment
250 per core in Framework 3.5
25 per core in Framework 2.0
Can anyone tell me what might might have prompted... | stackexchange/codereview |
I need to set up a content system in Drupal where accidentally deleted nodes can be retrieved. Is it possible to do it with any existing module?
If not, is there a module that let's me hide nodes instead of deleting them?
Thanks!
| stackexchange/codereview |
The C++ STL does not seem to use purely abstract base classes (aka interfaces) very often. I know that most things can be achieved with the STL algorithms or clever template metaprogramming.
But still, for some use cases (for example, in an API, if I do not want to be specific about the type of container I get, just a... | stackexchange/codereview |
I'm using a UITableView to present options to the user. The user can select one option by clicking on one of the cells. The concept is similar to the Radio input in html forms.
I'm looking for some ideas on how to combine two functions into a UITableViewCell.
I've taken care of the selection function. I would like to a... | stackexchange/codereview |
So I've got ZSH doing all this cool stuff now, but what would be REALLY awesome is if I could get it to run 'ls -a' implicitly after every time I call 'cd'. I figure this must go in the .zlogin file or the .aliases file, I'm just not sure what the best solution is. Thoughts? Reference material?
| stackexchange/codereview |
When using a javascript framework such as jquery, is there a realy chance of overusing the library for things that can be done simple using plain old javascript.
If so, then does this type of thing:
A: Slow code down
B: Make code less portable
C: Make the programmer less knwoledgeable about what is actually going on un... | stackexchange/codereview |
I need to pass some values to a URL by Post Method in my apllication. Please Help
| stackexchange/codereview |
i have only one element in drop downlist so selection index change is not working...
the datasource is given to run time...
if it was on designing time i can give the select one list item...
but at run time what should i do????????
| stackexchange/codereview |
If the syntax for JavaScript object literals is
{ label: value, label: value, ... }
then why is it that I've seen some people use this in their code?
{window}
What is its purpose? I've tried that and it evaluates to window as it would without the braces. It doesn't even fit in with the object literal notation. Is it ... | stackexchange/codereview |
I have a webview. I want to keep the webview in a scroll view such that it looks like entire view is scrolling. Any suggestions will be greatly welcomed...
| stackexchange/codereview |
I want to add a footer view to my gouped table view
for now i have this:
NSLog(@"width:%f",self.view.frame.size.width);
UILabel *lblInfo = [[UILabel alloc] initWithFrame:CGRectMake(50, 30,self.view.frame.size.width - 100, 70)];
lblInfo.text = @"Hellow";
[footerView addSubview:lblInfo];
[... | stackexchange/codereview |
I have implemented part of activity monitor using NSTAsk and NSPipe.
This is very slow. Is there any other method to implement it ?
And also tell me how to get samples of prcesses.
| stackexchange/codereview |
i hav displayed the text in a textview.........i want to do animations like rotate etc.......how to do it? which classes are used for it?i want a example program for it?
| stackexchange/codereview |
Is is possible to make compilation-time Type -> Enum Series mapping?
Illustrating with an example:
Let's say, I have some Type and a enumerated value:
typedef int Type;
enum Enumerated { Enum1, Enum2, Enum3, Enum4 };
and now I somehow state the following: "let's associate Enum1 and Enum4
with type Type (don't know ho... | stackexchange/codereview |
I have the following variable which contains the following string. I would like to remove both the <nobr> and the </nobr> and just leave what is inside.
alert(product_code);
produces
<nobr>209/00254/01</nobr>
How would I make a new variable that removes the <nobr> tags?
var product_code = $(this).html();
alert(... | stackexchange/codereview |
I'm running a query in MYSQL using LEFT JOIN to get users and their user groups. Both tables have columns named id. My result is being returned in an array (PHP) so that I have one array with all field data, but also only one array["id"].
Here's my query so far:
SELECT usr.id, usg.id FROM users usr
LEFT JOIN (user... | stackexchange/codereview |
I am running into trouble with a multidimensional array.
This works well with up to about 2000 "sets"
var datasets:Array = new Array(
// one "set"
new Array(
new Array( time:int, x:int, y:int, type:int ), // one "point"
/* ... */
/* ~70 more points */
),
/* ... */
... | stackexchange/codereview |
I have the following:
My webserver running on twisted
My comet server, aka orbited
Note that 1 and 2 are different processes.
Basically, I want 1 and 2 to share the same port. Request that are http://mysite.com/a/b/c should go to the webserver and anything starting with http://mysite.com/orbited/ should go to the orb... | stackexchange/codereview |
I have a table house with fields price and area, now I want to add one more column named 'average_price'.
How could I set the average_price according to the price and area in MYSQL?
| stackexchange/codereview |
I have a UIToolbar with an edit bar button on it. This is defined as
self.toolbarItems = [NSArray arrayWithObjects:self.editButtonItem,nil];
The edit bar item shows up, and but when i tap it, nothing happens, it does not change to Done and none of the editing controls show up.
I have implemented the following methods... | stackexchange/codereview |
Basically I want to write a linq query to order the number of days they were present. But I have got these six time filters- Today,Yesterday,current month,previous month,current year,previous year.So now I have this queries which I have simplified but before these queries below, I actually order these employees on diff... | stackexchange/codereview |
I was just wondering if there is a simple way of doing this. i.e. Replacing the occurrence of consecutive characters with the same character.
For eg: - if my string is "something likeeeee tttthhiiissss" then my final output should be "something like this".
The string can contain special characters too including space.
... | stackexchange/codereview |
I have an entity framework project setup. It it I have four tables and three entities ("A", "B", & "C"). There is a 1:n relationship between A and B, and between A and C, and a n:n relationship between B and C.
I use the following code to try to add a new "B" entity:
A t = null;
if (this.MyA == null)
{
t = new... | stackexchange/codereview |
Is there a Notepad++ plugin out there that automatically combines all currently opened files into a single file?
Update: Yes, I am very aware of copy and paste :) I'm working with lots of files, and I want a solution that makes this step in the process a little bit faster than several dozen copy and pastes.
I'm aware o... | stackexchange/codereview |
I’m creating a small application (a phonebook), actually
I already created it using ms access as a database, but now, I’m learning XML and planning to use it as a database for this app (just for fun and educational purposes).
Here’s the diagram in my access database.
And I created two XML files with the same structu... | stackexchange/codereview |
How can I make a hyperlink in a JFace Dialog that when clicked opens the link in the default web browser. A full example would be useful. I know there is a org.eclipse.jface.text.hyperlink package but I can't find a suitable example.
| stackexchange/codereview |
I'm trying to pass an additional conditional compilation symbol via devenv (vs2010) on the command line to the C# compiler.
I know it can be done for the C++ compiler through the CL environment variables.
Is there something similar possible for C#?
Since this build pass needs to run Code Analysis, I'm stuck with us... | stackexchange/codereview |
I remember IE will have some problems in layout when a comment is placed immediate after closing DIVs
E.g.
<div id='header'>
</div><!--/header-->
I forgot which version of IE will be affected, anyone can point me to the right direction for this bug?
Thanks.
| stackexchange/codereview |
I know it is very easy to implement when you are using it as an ADT in OOP languages.
But what should be done in case of structured language like C?
Should I use a global variable?
Should I keep an extra variable in every node?
Or what?
I have implemented my Dynamic Stack like this.
As you can see there are no capacit... | stackexchange/codereview |
I'd like to select posts that have one or more comments using Rails 3 and a single query.
I'm trying something like this:
Post.includes(:comments).where('count(comments.id)>0')
However I get this error:
ActiveRecord::StatementInvalid: PGError: ERROR: aggregates not allowed in WHERE clause
I've googled this and simil... | stackexchange/codereview |
My view model MyViewModel has a property MyProperty that i need to read/save from/to the application's settings. My project has Settings.settings file and the Settings type has MyProperty property. i need to bind MyViewModel.MyProperty to Settings.MyProperty so that any changes to MyViewModel.MyProperty are reflected i... | stackexchange/codereview |
I've searched high and low for some resolution to this problem. Hopefully someone here can explain!!
I create a usercontrol that uses .NET web controls, but I want to create a smoother user experience by avoiding full postbacks, so I write some JQUERY to capture click events on the client and in this way do the process... | stackexchange/codereview |
I have a storyboard here in XAML using Microsoft expression Blend and I am wanting to call this storyboard in C# and I have researched for a day or so and I cannot seem to find the answer. I am at this point
XAML:
<UserControl.Resources>
<Storyboard x:Key="LoginClose">
<DoubleAnimationUsingKeyFrames Storyb... | stackexchange/codereview |
My code has some divs that appear on the screen based on different actions. The divs have handles that make them draggable via the jquery ui.draggable code. I have the draggable ui stack option set, so that when you drag an item, it automatically moves to the front of all other draggable items.
The problem I am having ... | stackexchange/codereview |
Assume iOS 3.2 or later. What is the proper sequence of command to play a move with the controls initially hidden. When the movie is playing, the user has the option to tag on screen and show controls.
Thanks!
My (control not hidden) code:
- (void)playMovie
{
NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundl... | stackexchange/codereview |
So I'm trying to figure out how to send an email to an address for example, something@whatever.com and instead of the e-mail going to there it would be instead sent or forwarded to a script that I create to read the contents of the email and store the contents into a database. Any suggestions on how to do it in PHP?
T... | stackexchange/codereview |
Requirements:
Raw XML is from external website I have little control via URL (eg. http://example.com/raw.xml)
I need to transform it via XSL into another XML file (I already have this XSL file written and it works)
I need to write an asp.net or asp file that takes the url, applies the xsl transform, and outputs the re... | stackexchange/codereview |
I'm running a dating site and generate thumbnails for uploaded profile images, i have a pretty basic algo that generates square thumbs and in about 95% of the cases the thumbs are pretty good and don't crop out the person's face. I was wondering if anybody knew of either :
a good (free and open source) php based packa... | stackexchange/codereview |
Do we need to seed a CSPRNG with a truly random number? Examples and documentation use truly random numbers, but no justification is given (that I can find).
If we were to seed one with a pseudorandom number, I don't see what the difference would be compared to with a truly random seed. If someone finds either of the... | stackexchange/codereview |
How do I add and remove views such as TextViews from Android app like on the original stock Android contacts screen where you press a small icon on the right side of a field and it adds or deletes a field which consists of a TextView and an editTextView (from what I can see).
Any examples on how to achieve this?
| stackexchange/codereview |
I am trying to implement the OpenID + OAuth hybrid protocol in my application for Google.
I am getting the request token. So the next step as document in the Federated Login is exchange request token for an access token.
I tried it using OAuth java library but i am not getting the access token. I am trying both the 3-... | stackexchange/codereview |
Friend's
I implemented map with search option in my application,when i run the application in HTC,SonyEricson it's working well,but when i make the search in Motorola Droid 2.2,i'm getting numberformat exception,
here my code for search option
findViewById(R.id.map_search).setOnClickListener(
new OnClickListe... | stackexchange/codereview |
Hei,
I've a simple CTE that result with hierarchical list of items (Parent/Child relation). How can I convert it to XML with the "FOR XML" sql syntax while preserving the hierarchical structure?
Thanks,
Espen
| stackexchange/codereview |
I'm using django and have a page of search results that I want to be able to filter by category with ajax (jquery) requests. There's a filter bar on the side of the page and when someone selects certain categories and clicks submit, those corresponding results should show up on the page. My code looks something like ... | stackexchange/codereview |
We have a large MVC .NET website for a hospital; it has a Doctor Portal, and a Patient Portal. In essence it is two sites, with very little feature overlap. We outsourced the Doctor part to a Vendor and now we are creating the Patient part. I am recommending that we create two separate MVC projects since we are creat... | stackexchange/codereview |
I want to use the for loop for my problem, not while. Is it possible to do the following?:
for(double i = 0; i < 10.0; i+0.25)
I want to add double values.
| stackexchange/codereview |
i was following the guide http://appfuse.org/display/APF/Using+Struts+2 to make a simple appfuse site, but i got an error while compiling with Maven, which is reporting org.appfuse.webapp.action.BaseAction does not exist.
I searched a lot from the google with no luck, can anyone give me a hints, appreciate for any he... | stackexchange/codereview |
I'm new to Lucene, i started learning the version 3 branch and there's one thing i don't understand (obviously because i'm not experienced in the subject).
In Lucene 2.9, if i wanted a list of tokens i would create an ArrayList of Token class, ArrayList for example. That's pretty intuitive for me and the concept of to... | stackexchange/codereview |
HI All,
I m calling one webservice(SOAP) on Click of button. Web service is taking around 20 secs to get response. in the mean time i want to show progress bar.
So how can i do that?
where should i code for progress bar? on button click? any source code, example would be very helpfull.
Thanks in advance.
| stackexchange/codereview |
I am developing an iPhone application in which I need to show an image at a specific Latitude & Longitude on a Map. The requirement is - Even if the user zooms in or out on this map screen, the map control should automatically center itself after the zoom, to the same Lat & Long. I am using MKMapView.
I have tried to g... | stackexchange/codereview |
why is the language of finite prefixes of the number pi decidable by a TM whereas it is false to say there is a TM for any real number that which decides the finite prefixes of that given number?
| stackexchange/codereview |
I have a little table that works pretty well. But I was told to remove my subviews at some stage incase the call to drawn the table happens again for whatever reason. I was told it can be handled using removeFromSuperview.
Where and how should i handle this? I need to use tags to identify the cells or views?
Here is my... | stackexchange/codereview |
For objects or primitive data with a size equal to or less than size of a pointer the most efficient passing method to a function would definitely be by value but the thing is I want to know would be there any tool capable of determining best method of passing objects of classes or primitive data with a sizes bigger th... | stackexchange/codereview |
#include <stdio.h>
int main(){
int i;
char name[10],surname[10],id[12],dpart[20];
printf("******** ID Documentation ***********\n\n\n");
printf("1) What is your Name? \n");
scanf("%s",&name);
printf("2) What is your Surname? \n");
scanf("%s",&surname);
printf("3) What is your ID ... | stackexchange/codereview |
When attempting to register a startable component that depends on a service whose implementation "decorates" the same service interface, Castle fails to resolve the startable component, claiming that the dependency cannot be resolved. Curiously enough, explicitly resolving the startable component works as expected. I... | stackexchange/codereview |
I have a simple class that handles the connection being made between a client and server.
To let more than one user communicate with the server at one time each new Client connection is made on a separate thread.
In this class I create two streams that act as the inbound and outbound streams for the client. I create th... | stackexchange/codereview |
I'm creating a C program to play Gomoku. It uses Minimax search to decide on the best move. However, it can only search for the best move for 10 seconds. How to I determine when my search function has spent 10 seconds searching. If you could provide me with either an example or a link to the documentation that would be... | stackexchange/codereview |
First, I'm not talking about icon libraries or mockup tools/libraries.
I'm familiar with various icon libraries that people have created, but other than the stuff from the example code like UICatalog, I'm wondering if anyone knows of anyone who has created free libraries of custom button bitmaps (stretchable button ima... | stackexchange/codereview |
I have qTip being called on items within a table..
$('#orders_table a[rel]').each(function (){
$(this).click(function(){
return false;
});
$(this).qtip({
content: {
// Set the text to an image HTML string with the correct src URL t... | stackexchange/codereview |
Is there a way I can serialize a FloatField model instance in django? I have the following in a management command:
def chart_data(request):
i = 1
chart = open_flash_chart()
chart.title = t
for manager in FusionManagers.objects.all():
net_data = manager.netio_set.values_list('Net', flat=True)
... | stackexchange/codereview |
How can I deduce the information if the keyboard is visible while device orientation is changed? Does this information is sent inside - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)iFromInterfaceOrientation method?
| stackexchange/codereview |
I wanted a formatted text to be converted into unformatted text in the UI . for that I did the following
String strInput;
String strOutput;
strInput = txtEditorAnswer.Text;
strOutput = Regex.Replace(strInput, "<[^>]*>", String.Empty).Trim();
txtEditorAnswer.Text = strOutput;
... | stackexchange/codereview |
In an MS-Access form, I have the following code attached to an event:
Dim frm As Form, rs As Recordset
Set rs = Me.RecordsetClone
'do some stuff with rs
'
rs.Close
Set rs = Nothing
Set frm = Nothing
My question is: is the rs.Close required ? Is it even good (undesired side effects ?)
| stackexchange/codereview |
We display SVG images in MediaWiki using a template with this code:
{{#tag:svgfile||src={{{1}}}|height={{{height|300px}}}|width={{{width|600px}}}}}
where {{{1}}} is the uploaded file.
Now we want to be able to rescale the image, just like we do with JPGs, etc, using:
[[Image:<file name>.JPG|200px]]
Does anyone know h... | stackexchange/codereview |
When I modify my resource file (.resx) add text or modify, the constructor of my resource always go to internal and after that, when I run my silverlight I have an error in my binding XAML.
Is there a way to avoid this scenario? I need to go in the designer of my resource and put the constructor to public to solve the ... | stackexchange/codereview |
Using .NET 3.5, I'm finding that a CollectionView with a filter doesn't update when the underlying ObservableCollection(T) has items moved using ObservableCollection(T).Move. As a sanity check, I started with a simple project, one of Bea Stollnitz' from this page: http://bea.stollnitz.com/blog/?p=31. The actual proj... | stackexchange/codereview |
With PHP you have the phpinfo() which lists installed modules and then from there look up what they do.
Is there a way to see what packages/modules are installed to import?
| stackexchange/codereview |
Any cryptography text mentions that in brute force attack on Symmetric Algorithm there is 50 percent chance of finding the key after half of the attempt.
e.g. DES with 56 bit key would have 50% chance of finding the key after the first 255 attempts.
Why in a brute force attack against any symmetric encryption algorith... | stackexchange/codereview |
I am working on a custom tableviewcell and trying to increase its height. I dont want to do it from my viewcontroller. Can someone please help me?
Thanks
| stackexchange/codereview |
I am calling an function from a DLL which is loaded run-time (Using LoadLibrary()).
This DLL is written in C++ and my code is in C#.
API requires Structure Pointer. I am passing "ref" instead of Pointer.
While doing this, I getting "AccessViolationException". After 3 days of Googling, I think the problem could be solve... | stackexchange/codereview |
i have a dynamic ip that changes every 30 days or so and i would like to make a server so that when i access a static address ( lets say : www.staticaddress.com ) it will direct me to my server even when my ip has changed. Note: my internet connection first enters a router that supplies 3-4 computers with internet conn... | stackexchange/codereview |
I have a project in Mercurial with a group of committers. Unfortunately, some of the committers has changed names several times, e.g. first it was "nickname", and then it became "Name Surname ", and then something else.
Most of the repository analysis tools expect committer to have same name over the course of the proj... | stackexchange/codereview |
I'm designing an application that will use Oracle, and we have this department hierarchy that we need to map in our database. Some thing that looks like this (I'm pretty sure you all know what I'm talking about but I'll include a piece of the ERD just in case):
So it will have data stored that looks like this:
[1 | 0... | stackexchange/codereview |
So I'm trying to use a .Net Assembly in my web services project. This assembly requires lots of settings in App.config. But my web service doesn't have an App.config, it has a web.config. It seems that it uses sections that an app.config would have that don't even exist for web projects. Is there any way I can make... | stackexchange/codereview |
I am building a game with 20 levels and have around 15 music files. Currently I am preloading all the 15 sounds using cocos denshion at the start of the game. However the game crashes after a few levels. I get a 'Program received signal: “0”. Data Formatters temporarily unavailable' error. I assume this is because of l... | stackexchange/codereview |
I'm confused how the the android scripting enviornment is supposed to work. Is there a relatively easy way to include python scripts that I run from my java code without making the users download any new applications or anything? Or am I completely misunderstanding how ASE works?
| stackexchange/codereview |
We have a VS2005 solution including two websites.
We converted the solution to VS2010 and changed all settings in IIS and in the config file to use .NET framework 4.0.
We removed the old assembly references in web.config file and added references to the new versions of the assemblies and here the problem comes: when we... | stackexchange/codereview |
There are a lot of questions already made here about what to do when session expires when doing an Ajax request. One of the workarounds is place a header in the response that makes a redirection to the login page.
My site only does the first page postback, then it's all Ajax requests, that makes that the session expire... | stackexchange/codereview |
My dashboard widget has automatic update system, but after every update user should press ⌘R for changes to take a place. I want to do it automaticaly, without any user actions.
Is there any widget method to reload it?
Common methods doesn't works: I've tried to call window.location.reload(), history.go(0) & window.loc... | stackexchange/codereview |
I have a class that contains a QMap object:
QMap<QString, Connection*> users;
Now, in the following function Foo(), the if clause always returns false but when I iterate through the map, the compared QString, i.e., str1 is present in the keys.
void Foo(QString& str1, QString& str2)
{
if(users.contains(str1))
... | stackexchange/codereview |
Let's say I have an inheritance hierarchy as follows:
Device <- EthernetDevice <- WirelessDevice
So a Wireless device is a subclass of EthernetDevice, which is a subclass of Device.
Ok, so if a user creates a Device object and the user later decides that it's actually a Wireless device, how do I change the object's typ... | stackexchange/codereview |
I have a working Rails 3 app service plain old HTML CRUD and I want to build a sproutcore client for the same. I (think) I understand Rails and Sproutcore, but I have an embarrassingly silly newbie question:
Where do I put the sproutcore app within the rails project structure?
Specifically, given that I have:
myapp/
... | stackexchange/codereview |
I have developed a web application where students across the country come and register for some academic purpose. The users are expected to be around 100k within next year.
I need to send all of these people periodic mails. The web app is developed using codeigniter. The php script can run for 3000 seconds. But still ... | stackexchange/codereview |
I am looking for the ggplot way to plot a probability density function (or any function). I used to use the old plot() function in R to do this. For example, to plot a beta distribution with alpha=1 and beta=1 (uniform):
x <- seq(0,1,length=100)
db <- dbeta(x, 1, 1)
plot(x, db, type='l')
How can I do it in ggplot?
| stackexchange/codereview |
So I've been trying to find the proper way to get what should be pretty straightforward inheritance to function (the way I want ;)) and I'm failing miserably. Consider this:
class Parent
{
public String name = "Parent";
public Parent() {};
public void doStuff()
{
System.out.println(name);
}
}
class Ch... | stackexchange/codereview |
I'm struggling with this code right now. I want to determine whether an integer is divsible by 11. From what I have read, an integer is divisible to 11 when the sum (one time +, one time -) of its digits is divisible by 11.
For example: 56518 is divisible by 11, because 8-1+5-6+5 = 11, and 11 is divisible by 11.
How ... | stackexchange/codereview |
I'm having some trouble making a site, identical to viewing it in the browser, for print. It looks good, the only thing that got me stuck is that it refuses to display backgrounds. The images are fine though, it's just backgrounds. I haven't tried setting an image as a background, but that shouldn't be necessary anyway... | stackexchange/codereview |
Reading C# Step by Step, the author mentiones the class is just blueprint for objects and itself is useless. Well, how then comes static classes can work alone?
I do understand the concept that static classes cannot be instantiated and exist as one unique instance with its static members. But that ruins, a bit, the m... | stackexchange/codereview |
How do I add a jar file to my local repository without appending the version number to the jar file?
Lets say I have a jar file named abc.jar and run the following command, it will create abc-1.0.jar and if I bundle this artifact in a war file, the resulting file name will be abc-1.0.jar. If I remove the -Dversion, the... | stackexchange/codereview |
In my manifest file, I have given the application name as MyApp and the name of the starting activity as Main Menu.
<application android:theme="@style/theme" android:icon="@drawable/myicon" android:label="@string/app_name">
<activity android:name=".MainMenu"
android:label="@string/mainmenu_name">
... | stackexchange/codereview |
I've a .Net 3.5 windows application.One of the modules uses a Oracle stored proc which returns a recordset to the C# client.
I just want to know which one is a better approach among the following two[wrt. code-readability and performance.]:
1.If I write a multiple CASE statement in the stored proc(SP) itself, then the ... | stackexchange/codereview |
I'm running through Michael Hartl's Rails Tutorial.
I'm trying to verify the title of my page. The test looks like this:
it "should have the right title" do
get 'home'
response.should have_selector("title", :content => "Ruby on Rails Tutorial Sample App | Home")
end
The HTML head section looks like th... | stackexchange/codereview |
keepProgramRunning = True
while keepProgramRunning:
print "Welcome to the Calculator!"
print "Please choose what you'd like to do:"
print "0: Addition"
print "1: Subtraction"
print "2: Multiplication"
print "3: Division"
#Capture the menu choice.
choice = raw_input()
#Captur... | stackexchange/codereview |
in my ui.xml, i have style like below
<ui:style src="../teststyle.css" />
if i want to programmatically use the style inside java file rather than ui.xml, in my widget how to call .setStyleName(..) as the css is obfuscated
| stackexchange/codereview |
ok heres what i have... it works fine but it looks for a word rather than content. i just want it to show when there is any content..
$(document).ready(function(){
if ($("#box3:contains('Product')").length) {
$('#third').show();
}
});
i dont think... | stackexchange/codereview |
I've just started digging into XProc (using Calabash). I have a series of XSLT transformations I want to apply to a single input document to produce a single output document. I was previously using a simple Python script to drive the transformations, but it seemed like XProc might be a good fit.
The pipeline below se... | stackexchange/codereview |
I'm working on a joomla project and for debugging/type hinting/auto-complete have my whole joomla install as a project. Is there a way I can hide the folders I don't need in file or project view?
Ideally I would have a project that scans all of the folders but simply displays this:
administrator
components
com_mypro... | stackexchange/codereview |
HI -
I have a site (built years ago) which uses .htm extension on most pages.
I'd like to switch to a Wordpress CMS and use the "html on pages" plugin to re-create the whole site, but then, of course, I would end up with html extensions on all my pages and lose all my search engine placement for the original .htm pages... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.