instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have been successfully debugging several projects using Eclipse 3.4.1 with Zend Debugger and PDT. I now have a site running locally using https://. Have not been able to set a Debug Configuration in Eclipse that gets there. any ideas? Many thanks, Mary Edith
| stackexchange/codereview |
I have some questions about user-defined exceptions in Python and how they should be organized in a complete project.
I have a fairly complex python project with some sub-packages that has the following structure (__init__.py omitted):
/docs (Documentation)
/apidocs (generated API documentation)
/askindex (my applicati... | stackexchange/codereview |
I have the following modeling problem:
as an exercise, I need to model a system that allocates units (police cars/fire trucks) to a specific emergency (fire/robbery/...). Therefore an emergency needs to say how many units it needs (for instance 2 fire trucks and 3 ambulances). Of course, these units need to be assigned... | stackexchange/codereview |
How can add items from a ListView to a RichTextBox programmatically?
For example in this image shown below, I want the ListViewItem instances from specified columns to be shown in a RichTextBox and I want them to be formatted as a table. How can I do that?
In the image below, I typed the values into the RichTextBox.
| stackexchange/codereview |
I have many nodes in the treeview like nodes it children, children of children....
i wanted to copy those entire content and paste it in another node.
I dont want to use clone method since it affects object of original node from which it s copied.
| stackexchange/codereview |
I have a DataGrid with 3 DataGridColumns. All 3 of them have separate dataFields.
I need to get the datafields into an ArrayCollection and pass it to a funciton. I dont want to hard code the ArrayCollection.
Is there any way to achieve this?
| stackexchange/codereview |
hey, how can I make an image visible when a user clicks a button?
Using Html / Javascript
Also, the button is submitting a form which is going to a different url, it just takes a while to load the other page, therfore I want a loading type button.
Thanks
| stackexchange/codereview |
I exported and then imported a wordpress mysql database from one server to another.
On the new server, a lot of the apostrophes have turned to question mark symbols ?. When I look at the data in the database itself, the apostrophes are normal like this ' so what would be causing those characters to look messed up?
Tha... | stackexchange/codereview |
I have a Qt object that's used by a GUI thread and a networking thread. It looks like:
QString User::Username()
{
QMutexLocker locker(&mutex);
return username;
}
void User::SetUsername(const QString &newUsername)
{
QMutexLocker locker(&mutex);
username = newUsername;
}
QString User::Password()
{
Q... | stackexchange/codereview |
Is there any other algorithm apart from Luhn's algorithm which is used for validation of credit card number as Visa card numbers are not passing the criteria of Luhn's algorithm.
| stackexchange/codereview |
I have a project using autoconf and automake with following structure:
/
src/
class.h
class.cpp
test/
class_unittest.cpp
In class_unittest.cpp I include class.h in the source file and on compile also the class.cpp file. In automake config for test I add ../src as a new include path in AM_CPPFLAGS = -I../src/ de... | stackexchange/codereview |
I have an orchestration which exposes a web service, it examines the source of the message received executes some branching logic based on that and calls one of a set of 'service' orchestrations (which resides in a different Application). These service orchestrations perform some update on my message then send it back... | stackexchange/codereview |
So, I have a hash %HoHoA.
Each top level hash key has a second level hash key as a value.
Each second level hash has arrays-of-arrays as values.
In perl's debugger it looks something like this:
0 'Top_key_1'
1 HASH(0x...)
'Second_Key_1' => ARRAY(0x...)
0 'string 1'
1 'string 2'
'Second_Key_2' => ARRAY(0... | stackexchange/codereview |
How do you obtain the username of the logged in user with MVC2 in ASP.NET web forms I used to do it with:
User.Identity.Name
This works when I am testing on my local machine using visual studio but no longer works once the project is published to the test server.
Thanks
| stackexchange/codereview |
i know very well that android not support the mysql
but i need to connect mysql and get the information from database
i studied there are SOAP and REST services to connect mysql from android
is it possible?then give me one idea and if possible one example pls
| stackexchange/codereview |
this question has been asked before in stackoverflow:
setting order of attributes
It's really not possible?
Using insertBefore I want to order the sequence of attributes for an element. Specifically, in the example below, how do I change the order of the attributes? Would it be easier to just use setAttribute from a ... | stackexchange/codereview |
I've created a rather simple Flex application using Flex Builder 4, which connects to a webcam on the user's PC. To do so, Flash is presenting the user with the infamous privacy warning.
Now, the problem is that user can't click on the panel, as it seems unresponsive to any user interaction.
Some more details:
Firefox... | stackexchange/codereview |
Looking for troubleshooting and editing help. This is a homework assignment. My professor encourages the use of forums. I don't have experience with Perl Functions or Subs yet so please limit responses to the appropriate level so I can understand.
The purpose of the script is to read a string of DNA (or file from comma... | stackexchange/codereview |
I've imported a CSV file into mysql with dates in format dd/mm/yyyy.
I now need a query to convert it from text to date format yyy-mm-dd.
| stackexchange/codereview |
i'm trying to enable the php_soap module for mac so i follow some tutorial to answer my own question ( MAC OSX : PHP_startup unable to load dynamic library php_soap.so)
Here is the tutorial >> http://www.bdoran.co.uk/2010/08/03/installing-php-soap-on-osx-leopard-10-6-4/
1) I replaced curl -O http://de3.php.net/distrib... | stackexchange/codereview |
I'm trying to give even spacing all around images I have in a table, and it's not working too well.
Look at the page. I tried margin, padding, everything I could on lots of different types of properties, but no luck. Any help?
| stackexchange/codereview |
I cant make netbeans 6.9 work with xdebug. Strangely I tried telnet
nerkn@nerkn-laptop:~/www/nerkl$ telnet localhost 9000
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
nerkn@nerkn-laptop:~/www/nerkl$ telnet bogaz 9000
Trying 127.0.0.1...
telnet: Unable to connect to re... | stackexchange/codereview |
RE:
Jquery: change event to input file on IE
Any alternative to jQuery change() to detect when user selects new file via dialog box in IE8?
The above questions dealt with getting the 'change' event to fire consistently across browsers after a file selection has been made. This is has been resolved as evidenced by th... | stackexchange/codereview |
I have a model like the one below. When an instance is created, I want to send out an e-mail to an interested party:
class TrainStop(models.Model):
name = models.CharField(max_length=32)
notify_email = models.EmailField(null=True, blank=True)
def new_stop_created(sender, instance, created, *args, **kwargs):
... | stackexchange/codereview |
In the October 2010 edition of MSDN Magazine, Julie Lerman's Data Points column (Entity Framework Preview: Code First, ObjectSet and DbContext) refers to a method as being "just not discoverable".
What does she mean?
I presume that it means "easy to find and then to know what it does and how to use it", but not sure. ... | stackexchange/codereview |
Hi can anyone tell me how to execute my .vbs from within VBA cause the following code dose not work.
RetBat4 = Shell("c:\VTS\QUEEN ANNES REVENGE\SYSTEM\VBS\UNDO_2.vbs", 1)
VBA debug says that the sytax is wrong????
thanks
| stackexchange/codereview |
I have a two-level ul/li menu where the li can fire of different onclick-events.
It seems as the parent-event (ul li), is fired when clicking one ul li ul li-item.
Can I avoid this an easy way.
(I'm considering using timer to trap second event, but think of it as an ugly fix...)
Regards,
/T
| stackexchange/codereview |
I have an android APP. I need to connect to a remote D.B. on the internet. All i know is that i have to use a Web Service, installed on the remote DB server.
Whith my Android APP i have to connect to the web service, and the web service will do the logical operations to get the necesary data from the D.B. and will send... | stackexchange/codereview |
I do not want to use mod_rewrite on cakephp and I want to use cakePHP's pretty URLs. So I have removed all the .htaccess files
/.htaccess
/app/.htaccess
/app/webroot/.htaccess
and uncommentted this line on core.php
Configure::write('App.baseUrl', env('SCRIPT_NAME'));
Noe the problem is...if I am putting controller an... | stackexchange/codereview |
any way to see the order in which .js are loaded using the browser (chrome or firefox)?
Regards
Javi
| stackexchange/codereview |
I have a JsonResult action in my MVC project...
public JsonResult GetData(string term) {
List<String> data = repo.GetData(term).ToList();
return Json(data, JsonRequestBehavior.AllowGet);
}
This powers a jquery autocomplete lookup but as there is only 30 values in the database, I think that this is not efficent... | stackexchange/codereview |
When I create a program using C# and VS2008 , then I can create a test case just by Rightclicking on the method. But I am not sure If I can create the tests in the same way if it is a C++ project.
| stackexchange/codereview |
I would like to create Java applications, but my first “brake” is that it is impossible to run Netbeans at a decent speed under Ubuntu 9.10 with a Radeon X1300 Pro graphics card, P4 3.2GHz.
If I use other software, like Monodevelop or any other non-Java app, I don’t have this run-slow problem.
This could perhaps be m... | stackexchange/codereview |
I'm following the MVC unit test instructions from this site,
but I cannot find the jar for the @Inject annotation. Does anybody know where the jar is?
| stackexchange/codereview |
I started learning XML yesterday but I cant get around the concept of DTD.
My thinking is that, this will cause an error since my picture tag contains a whitespace character and I explicitly mention in my DTD that this should contain only EMPTY element.
As per my understanding, empty element does not contain any charac... | stackexchange/codereview |
What are the oops concepts avaliable in C#?
| stackexchange/codereview |
I am using below code to generate XML from tables of word file.
Sub exprt()
Dim nofT, cnt, tag, btxt As Integer
Dim Rcnt As Long
Dim tit, pTyp, cValu As String
Dim dum As Range
Set a = ActiveDocument.Tables
nofT = ActiveDocument.Tables.Count
Set docold = ActiveDocument
For cnt = 5 To nofT
Selection.TypeText ("")
Sel... | stackexchange/codereview |
How do you autocomplete a method signature based on a delegate? Or atleast get some help from intellisense in completing the method signature.
Some method has a delegate as one of its parameters, so I have to create the method, call me lazy but it's quite painful to copy paste the method signature from MSDN.
I recall... | stackexchange/codereview |
I have the following script to use the google maps API, I have to create a map that has more than one Marker (the balloon shaped icon pointing to something) and i need each of those markers to point on a different area of the map (i.e. different coordinates), how can i do it?
NOTE: I do not have latitude and longitude ... | stackexchange/codereview |
I'm using ajax to pull some data from my database every 10 sec.
My question will this effect my mysql database .. will it slow down my site or crypt my database
Please let me know if it is good idea to send request to my database every few sec to refresh page.
I try top pull banners and refreshing every few sec.
thank... | stackexchange/codereview |
I'm trying to make a simple color picker based on a picture like this. And so i need to get color under the cursor, how can i get it? All i have found about this was about a desktop applications in C#, but not about a silverlight way. Thank you.
| stackexchange/codereview |
This page is using jQuery to modify the links and then perform the page slide.
If you click on the 'Next' button a couple of times, then try to click the 'Prev' button, it does not do anything until you click the 'Prev' button around 3 times.
Can anyone suggest a reason why and how to make it instant?
| stackexchange/codereview |
I have a factory that creates objects of class MyClass, returning already generated ones when they exist. As I have the creation method (getOrCreateMyClass) taking multiple parameters, which is the best way to use a Map to store and retrieve the objects?
My current solution is the following, but it doesn't sound too cl... | stackexchange/codereview |
I am studying somebody else jquery script, and I noticed he is opening a tag without closing it, but it also seems that browsers does not care (Not yet tested with IE)
it is written :
$('#mydiv').append('<ul>')
But there is nowhere a
.append('</ul>')
The script does not close the list, but browsers do it automatical... | stackexchange/codereview |
Opera is displaying my new site as XML and I can't for the life of me figure out why.
Here's what firebug has to say
Server ASP.NET Development Server/10.0.0.0
Date Mon, 08 Nov 2010 22:58:32 GMT
X-AspNet-Version 4.0.30319
X-AspNetMvc-Version 2.0
Content-Encoding gzip
Cache-Control private
Content-Type ... | stackexchange/codereview |
I have few questions.
Can i have a Servlet without these two methods?
Can i call my form directly to Service method... Like
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import jav... | stackexchange/codereview |
i wrote this simple example:
//file TestController.java
public interface TestController {
public List<Test> findAll();
}
//file TestControllerImp.java
@Controller
public class TestControllerImp implements TestController{
@Autowired
private SessionFactory sessionFactory;
public void setSessionFactor... | stackexchange/codereview |
Is there Q_OBSOLETE or Q_DEPRECATED in C++ with Qt 4.7?
Or is there a similar C++ macro or keyword?
| stackexchange/codereview |
I want to call an IIS Server (MS SPeech Server).
The Speech Server is in our intranet.
I would prefere to call it from a mobilphone or something like this - but to simulate the call with a sipphone like phonerlite would be okay too. But i don't know how to connect the sipphone with the server ...
can somebody help me? ... | stackexchange/codereview |
About a month ago I built an application that used zSQL as the SQL parser to parse SQL. However, just few days ago, a heavy duty user sent in a multi row insert statement which zSQL doesn't support. This is the sample:
INSERT INTO MyTable (FirstCol, SecondCol)
SELECT 'First' ,1
UNION ALL
SELECT 'Second' ,2
UNION ALL
S... | stackexchange/codereview |
In Python, with Matplotlib, how can a scatter plot with empty circles be plotted? The goal is to draw empty circles around some of the colored disks already plotted by scatter(), so as to highlight them, ideally without having to redraw the colored circles.
I tried facecolors=None, to no avail.
| stackexchange/codereview |
I'm trying to do the following on a single line:
if [ -z "$foo" ]
then
source "$foo/subdir/yo.sh"
else
source "$bar/yo.sh"
fi
(note the subdir only present if foo is used). The simplest solution so far is:
source "${foo:-$bar}${foo:+/subdir}/yo.sh"
In other words, take either foo or bar, then append /subdir i... | stackexchange/codereview |
Consider the following code piece:
...
int N,var;
vector<int> nums;
cin >> N;
while (N--)
{
cin >> var;
nums.push_back(var);
}
...
Is it possible to do this without using an auxillary variable, in this case var?
| stackexchange/codereview |
So we have something like:
//...
for(i=0;i<out->size;i++)
{
CvPoint pt1 = { out->values[ i * out->dim + 0 ], out->values[ i * out->dim + 1]};
CvPoint pt2 = { out->values[ i * out->dim + 2 ], out->values[ i * out->dim + 3 ] };
cvLine(destination, pt1, pt2, CV_RGB(240, 255, 255), 1, CV_AA,... | stackexchange/codereview |
I really like using the sample data binding at design time for Silverlight.
It is easy to use it when you need to return string values.
In my case, I am trying to bind to my ViewModel one of whose properties returns a SolidColorBrush. How do I setup the sample data to return a SolidColorBrush value?
Here is what the s... | stackexchange/codereview |
I've created custom, two level x-axis entries that tend to work pretty well. The only problem is that when my y-axis, proportion, is close to one, these axis entries spill onto the chart area. When I use vjust to manually alter their vertical position, part of each entry is hidden by the chart boundary.
Any suggestion... | stackexchange/codereview |
How do I identify stored proc that inserts records into "TableXYZ"?
I could have hundreds of stored procs.
Please help.
| stackexchange/codereview |
I would like to know Location Area Code and Cell ID saved in sim card.
How to get Location Area Code and Cell ID in android phone.
best regards.
| stackexchange/codereview |
I have made a generator to read a file word by word and it works nicely.
def word_reader(file):
for line in open(file):
for p in line.split():
yield p
reader = word_reader('txtfile')
next(reader)
What is the easiest way of getting the n next values into a list?
| stackexchange/codereview |
How do i call/write a callback function which is in dll. This callback function is actually called from dll and not jni. How would I code this in java. I need an help on this.
| stackexchange/codereview |
I have been getting a very odd error when trying to print freeform text in a subroutine in Perl. Below is the code I am calling
print OUTFILE <<"HEADER";
The freeform text would go here
HEADER
The odd thing is that this only works in the main of my function. As soon as I place it in a function call, I get this err... | stackexchange/codereview |
Hmmm... I have enum value (for example, 'VALUE')
and some resources with txt-files.
I'm getting this files ('MyResource_test.txt') using following code:
FileStream fs = new FileStream("c:\\test.txt", FileMode.Create);
StreamWriter sw = new StreamWriter(fs);
sw.WriteLine(gui.Resources.MyResource.MyResource_test);
Now I... | stackexchange/codereview |
I'm trying to read in a text file line by line and process each character individually.
For example, one line in my text file might look like this:
ABC XXXX XXXXXXXX ABC
There will always be a different amount of spaces in the line. But the same number of characters (including spaces).
This is what I have so far...
cha... | stackexchange/codereview |
I have field with an integer value which means number of seconds. I would want to display it as MM:SS, without hours, so for example 6000 seconds should be shown as 100:00.
What's the easiest way to do this? As far as I see, to_char cannot be used for this.
| stackexchange/codereview |
I can make a query that returns a result set of nodes with their id set to a value I know. But I can't figure out how to get a result set of all nodes that have an id explicitly set.
| stackexchange/codereview |
I'm using... (although I've tried other things)
Before I I tried, it looked like this..
tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 70, 44.01)];
//tools.backgroundColor = [UIColor blackColor];
//tools.backgroundColor = [UIColor clearColor];
//tools.barStyle = UIBarStyleBlackTranslucent;
tools.barStyle = ... | stackexchange/codereview |
I have an instance variable, properties, that is being declared and instantiated like so:
$self->{properties}{$key1} = $value;
My understanding that this will declare the properties field, and also set it to a Hash primitive, containing one key value pair.
I'm trying to write a getter for the properties instance vari... | stackexchange/codereview |
I am trying to incorporate some sample code I pulled from a site into my existing project. I click a button in my project, and I want that to link to the class file that I imported into my project.
Initially, the project I imported automatically launched their own file upon startup, whereas I need my project to automa... | stackexchange/codereview |
I use Selenium On Rails to do some acceptance test, but before most of tests I need to create some binary test files associated with fixtures, and after each test - remove them.
I don't know how to do it. I was searching some kind of setup/teardown functions but I couldn't find.
| stackexchange/codereview |
My main OS is Windows XP. I install VirtualBox and now have Windows 7 under VirtualBox. I install WinPhone7 Emulator and try run it. But all that I can see is window of emulator with text "Windows Emulator is doing a complete OS boot...". I waited a very long time. I tried to reboot, reinstall the Windows7 and many mor... | stackexchange/codereview |
I've been seeing this for quite a while now, and am wondering how people achieve it: They create facebook pages, and then require users to like and share the pages in order to see links.
| stackexchange/codereview |
Is there a way for generating ads from a map view? Imagine I have a map view, and I want only ads relevant to that view to appear.
Or a least, can I filter the ads in my page using a place?
Thanks in advance
| stackexchange/codereview |
That is how devise is sending the registration confirmation: subjectConfirmation instructions is strange. Why is the subject wacky and how can I change it?
| stackexchange/codereview |
I am trying to update my sqlite database in Android.
I have this function, adjustPosition, which should adjust the position column of my rows based on the position I pass in.
For example, if position=4 and I have two rows with positions 4,5 respectively, then they should be 3,4 by the time the function returns.
publi... | stackexchange/codereview |
I wonder if there is any practice when designing a forum. I want to design a couple of forums. yes there are two different types of forum at least. one is for a selective members and another is open for any public members.
In the forum, the member can initiate a thread, then other members can respond to it.
So I have t... | stackexchange/codereview |
Hi i have a video in a facebox window that i am trying to get working. it works in firefox,chrome,safari, but guess what it does not work in IE. from my searching it seems that IE will not play flash content when in a div display:none.
Does anybody know a solution to get flash video to play within a display:none?
I can... | stackexchange/codereview |
I have the following WPF UserControl
I want that the blue border be displayed only when the object has its (dependency bool property) property IsSelected to true.
Is that possible?
<Canvas>
<Image x:Name="Dot">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
... | stackexchange/codereview |
In Ruby when trying to specify a font I get an error "FXDCWindow::setFont: illegal or NULL font specified.". I tried doing it like this:
@font = FXFont.new(app, 'times')
I need to set a font in order to use drawText in my program and I can't figure out how to. Oh and for the record I'm justt a beginner. Thanks!
| stackexchange/codereview |
Is it possible to convert an IQuery that is returned from Nhibernate to a dataset?
I have managed to get the data to an ILIST (collection of hashtables) but how do i get it converted into a dataset?
Thanks in advance
| stackexchange/codereview |
As to total MEF newbie, I'm having a problem with my first test of MEF. My problem code is below-
using System;
using GlobalInterfaces;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.ComponentModel.Composition;
using System.C... | stackexchange/codereview |
Eclipse helios, preferences -> web Servcies -> METRO Preferences -> METRO Runtime Location, which folder should this be? Or which jar(s) is it looking for?
Maybe a simple thing i missed and just couldn't figure this out.
Tried almost all possible folders under c:/glassfishv3 installation, none seemed to work.
Always g... | stackexchange/codereview |
As I sit in the C++ Standards committee meetings, they are discussing the pros and cons of dropping Inheriting Constructors since no compiler vendor has implemented it yet (the sense being users haven't been asking for it).
Let me quickly remind everyone what inheriting constructors are:
struct B
{
B(int);
};
str... | stackexchange/codereview |
The url I'm using is this:
https://chart.apis.google.com/chart?chxl=0:|2010-08-06|2010-08-02|2010-08-05|2010-08-03|2010-08-04|1:|0|2347.002|3650|2:|min|average|max&chxp=2,10,50.83,90&chxr=0,2347.002,3650&chxt=x,y,r&chs=200x120&cht=bvg&chco=EBB411&chd=t:3455.01,730,2240,1760,3550&chma=|5&chtt=Revenue
The image:
The ba... | stackexchange/codereview |
I'm displaying a standard <form> with a few <input> fields in a web view.
When editing the first input field and pressing the enter key on the soft keyboard, the form is posted insted of focusing the next input field in the form.
How can I stop the form from being posted and instead put focus on the next input field?
E... | stackexchange/codereview |
Watch the following example:
class A {
public:
A(int param1, int param2, int param3) {
// ...
}
};
class B : public A {
public:
B() : m_param1(1), m_param(2), m_param(3), A(m_param1, m_param2, m_param3) {
// ...
}
};
B b;
Obviously, when "b" will be created, A's ctor will be called be... | stackexchange/codereview |
When representing a mathematical matrix, rotations are performed as follows:
http://en.wikipedia.org/wiki/Rotation_matrix#Basic_rotations
Rx(θ) = 1 0 0
0 cos θ -sin θ
0 sin θ cos θ
Ry(θ) = cos θ 0 sin θ
0 1 0
-sin θ 0 cos θ
Rz(θ) = cos θ -sin θ 0
sin θ co... | stackexchange/codereview |
How do I parse/serialize following JSON in Silverlight?
{
"total": 1050769,
"page": 1,
"pagesize": 30,
"questions": [
{
"tags": [
"camera",
"detection",
"droid"
],
"answer_count": 0,
"favorite_count": 0,
"creation_date": 1288984683,
... | stackexchange/codereview |
I am attempting to rank by % return for each day across 700 symbols.
For Example:
date symbol pct_return
-----------------------------
1100101 IBM 1.2
1100101 AAPL 2.1
1100101 HPQ -0.5
approx 700 more entries like this for date 1100101
1100102 IBM -.02
1100102 AAPL -.6
1100102 ... | stackexchange/codereview |
I've been searching all over for tips on this and have not really had any luck so far. With the mysql2 gem, trying to execute a stored procedure that returns multiple result sets gives me an unable to return results in this context error. I found someone had suggested to use the mysql gem instead (which I can't find an... | stackexchange/codereview |
What in your opinion is a better way to test an applicant - have them write pseudo code on the whiteboard, or write specific code on the computer using Visual Studio?
In both cases questions concern manipulating some data structures. I know by myself that whiteboard can be more nerve wracking but could be good to see ... | stackexchange/codereview |
Is there a way to remove the annoying grid lines in the design view of Visual Studio 2010? Or at least style them to fade them off?
I'm not referring to the Grid component, but to the design view in WPF which draws visual lines over and around every components, making screens look like a soup in design view.
| stackexchange/codereview |
From what I have understood:
Currying - functions returning functions
string.capitalize(1)('character')('at the end')
Method chaining - methods returning objects
string.lowercase.capitalize.uppercase
Is this understanding correct?
If so, are there cases one of them is better than the other?
Cause it seems to me that ... | stackexchange/codereview |
How do mozilla addons or IE activeX plugin's handle browser page zoom ?
| stackexchange/codereview |
I'm planning to create an application that plays the ipod Music Library, then the app sets a NSTimer that will stop the ipod Music player on a certain time. My question does my timer will still run when I entered the background mode. Is it possible to stop the ipod Music player on background Mode?
Thanks
| stackexchange/codereview |
I have a legacy page which works already with ajax and I would like to load an GWT app (2.0.4) into that app without reloading the whole page. Our framework normally can insert css and js files into the page by evaluation "eval(...)" the js code or url which is sent in an html fragment. But the gwt bootstrap js code fa... | stackexchange/codereview |
I find it only available for .Net 2.0 but if the user install .Net 3 or later, how do I get InstallUtil.exe to bundle in my setup so that they can install my engine as a Windows Service?
| stackexchange/codereview |
My next project is writing a hangman game. I figured it would help me brush up on strings and file I/O.
Currently, i'm stuck on reading in a file of strings into a list. I'm trying to avoid global variables, so could someone point me in the right direction to make this (probably broken) code into a function that return... | stackexchange/codereview |
I am looking for a robust (I mean working in all multi-munitor configuration) algo to convert a cocoa point/rect to carbon equivalent and the reverse operation.
I've googled but was unable to find something which work properly.
Thanks in advance for your help.
Regards,
| stackexchange/codereview |
I am using the following xml document
<users>
<user>
<userid>sony</userid>
<password>sonypass</password>
</user>
</users>
I am trying to write a common xquery to update the user information by passing the variables - a) doc_name (name of the xml document) b)userid (userid of the user whose info is to be up... | stackexchange/codereview |
I am writing a small utility to modify invoice line items in QuickBooks using the SDK. Everything is working well until I hit a blank line in the invoice or a line that only has a description used for spacing/separating line items. It will continue to process the request, but it will not recreate the line in the invo... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.