instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Just a few questions about reverse proxies and performance.
Will there be an effect on performance if i have too many rules in my reverse proxy?
For example, If I have 200 rules which are similiar to the following:
ProxyPass /website/test/ http://www.example:8080/web/test
ProxyPassReverse /website/tes... | stackexchange/codereview |
Specifically, does "result" change in the following code when the DPI is increased via the windows control panel display settings?
UINT result = 0;
if(SystemParametersInfo(SPI_GETFOCUSBORDERHEIGHT, 0, &result, 0) != FALSE)
{
result = ?;
}
The reason I can't check this myself is that I can't change the DPI setting ... | stackexchange/codereview |
I'm having an issue with Lucene's Term [Boosting][1] query syntax, specifically in Ruby on Rails via the sunspot_rails gem. This is whereby you can specify the weight of a specific term during a query, and is not related to the weighting of a particular field.
The HTML query generated by sunspot uses the qf parameter t... | stackexchange/codereview |
how to increment value of a variable in a template..??
{% for s in list%}
{% for subject in s%}
{% for sub in subject %}
<div id="{{ sub| getid:i }}"></div>
# here i want to increment the value of i
{% endfor %}
{% endfor %}
{% endfor %}
| stackexchange/codereview |
How can I find all elements that have a title attribute using jQuery? It's for enabling tooltips using the tipsy jQuery plugin.
| stackexchange/codereview |
I'm trying to compare two lists by length and set the output to true or false.
min(List1, List2, output) :-
length(List1, N),
length(List2, M),
output is N<M.
But I keep getting errors, what's the syntax for the lists?
| stackexchange/codereview |
I want to make an iphone app that uses some preexisting data. For example I want to have 20 questions with their relative answer stored somewhere, so that I can use them in the app.
I thought about adding an existing sqlite3 database, but I was wondering how could I then map it with core data? Can I just import the db ... | stackexchange/codereview |
I have used string.replaceAll() in Java before with no trouble, but I am stumped on this one. I thought it would simply just work since there are no "/" or "$" characters. Here is what I am trying to do:
String testString = "__constant float* windowArray";
String result = testString.replaceAll("__constant float* window... | stackexchange/codereview |
I am upgrading a struts2 app from struts version 2.1.6 to 2.1.8. I have the following submit tag with method attribute, which has stopped working since the upgrade.
<s:form action="xyzDetail_save" theme="simple">
<s:submit method="addxyz" value="%{getText('button.add1')}" />
There are other struts libraries used li... | stackexchange/codereview |
My website is using charset iso 8859 1
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
when user post chinese character, it will be saved into the database as & # 2 0 3 2 0 ; & # 2 2 9 0 9 ; which will output as the chinese character when retrieved.
I need to set my website to UTF-8
when use... | stackexchange/codereview |
I followed Hello Views, Google Map View and now I want to add a TextView under below the MapView. I have only changed the layout file main.xml and placed the MapView and the TextView in a vertical LinearLayout. My Eclipse is set to build this automatically, but when I run the application in the emulator, I can only see... | stackexchange/codereview |
How can I search for the first 500 character, not including html tag?
Below is I came up with so far, which is searching for a keyword that occurs in a text,
SELECT *
FROM root_pages
WHERE root_pages.pg_cat_id = '2'
AND root_pages.parent_id != root_pages.pg_id
AND root_pages.pg_hide != '1'
AND... | stackexchange/codereview |
Anyone can point out the pros and cons of the out parameter. When it is preferred to use out parameter rather than just to return a value.
| stackexchange/codereview |
I can find the UIKit header files but i'd like to see how some of the UIKit classes are being implemented because i'm trying to create some custom controls.
So basically i'm trying to find the UIKit .m files, where would they be located on my mac?
| stackexchange/codereview |
I'm aware of the existence of libobjc2, and I gather that I'll need to use clang rather than GCC, but I can't find any basic instructions of what's different about the compilation process.
Can anyone give explicit, step-by-step instructions on acquiring, configuring, compiling, and using GNUstep with Objective-C 2.0 in... | stackexchange/codereview |
I'm not sure how to do this, i thought i was doing it right, but apparently not. In the 2nd code block you'll see a console.log() call and the way i thought you would loop through all the items but that isn't working. How would I do this? Also, this is a work in progress hence all the commented code, but this is the ma... | stackexchange/codereview |
I have a mainViewController. I call [self pushModalViewController:someViewController] which makes someViewController the active view.
Now I want to call a function in mainViewController as someViewController disappears with [self dismissModalViewController].
viewDidAppear does not get called probably because the vie... | stackexchange/codereview |
It seems like most (if not all) QR readers on my iPhone handle URLs without the http:// just fine but I was wondering if that is universal? Android? BlackBerry? Is there an RFC somewhere that I should be reading
I'm building a QR management/url shortener system and was wondering if it was absolutely necessary. If no... | stackexchange/codereview |
This is probably something fundamental and stupid that I've missed, but the various workarounds are causing me such huge headaches that really, I need to understand the basic problem here in order to find the best solution.
I have a usercontrol which contains a drop-down list.
<asp:DropDownList ID="ddlOrderStatus" Auto... | stackexchange/codereview |
I am using a custom layout on an AlertDialog. The custom layout has an EditText filed which I am using to get a phone. When I display the AlertDialog, in order to get the keyboard to type in the phone number you have to click on the EditText filed. Is there a way to get the keyboard to automatically pop up when I br... | stackexchange/codereview |
I'm subclassing NSScroller to try to make it look similar to how "scrollbars" look on iOS. I want it to just be an overlay representing the current position that is drawn OVER what is under it. For whatever reason if I override drawRect for the scroller, I get the bounds filled with white. Is there any way to preven... | stackexchange/codereview |
I have an UIImageView i want to float off into the background. It should be shirking as it moves along the z-axis and converge towards the center as you'd image something moving away from you does.
I tried this piece of code
theImageView.layer.transform = CATransform3DTranslate(theImageView.layer.transform,1,1,
-100)... | stackexchange/codereview |
I am using Eclipse 3.5 with GAE SDK 1.3.7 and GWT SDK 2.1.0 and Restlet 2.0.3. When I run my app, the console log shows:
Loading modules
com.androidstartup.serialization.KPadProject
[ERROR] Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml' on your classpath; could be a typo, or maybe you fo... | stackexchange/codereview |
Assuming I have a bunch of timestamps like "11/05/2010 16:27:26.003", how do parse them with millisecond in Perl.
Essentially, I would like to compare the timestamp to see if they are before or after a specific time.
I tried using Time::Local, but it seems that Time::Local is only capable to parse up second. And Time::... | stackexchange/codereview |
how to calculate count based on rows?
SOURCE TABLE
each employee can take 2 days off
Employee-----First_Day_Off-----Second_Day_Off
1------------10/21/2009--------12/6/2009
2------------09/3/2009--------12/6/2009
3------------09/3/2009--------NULL
4
5
.
.
.
Now i need a table that shows the dates and number of people t... | stackexchange/codereview |
I'm using this Java code to download a file from the Internet:
String address = "http://melody.syr.edu/pzhang/publications/AMCIS99_vonDran_Zhang.pdf";
URL url = new URL(address);
System.out.println("Opening connection to " + address + "...");
URLConnection urlC = url.openConnection();
urlC.setRequestProperty("User-Agen... | stackexchange/codereview |
When you click on a custom activity in a rehosted WF4 designer application, its arguments will appear on the property sheet under the category "Misc". Is it possible to manipulate this category, for example we specify some arguments to appear under the category "InArguments" and some others on "OutArguments"? How can w... | stackexchange/codereview |
I'm building this program using the reni2D library found on involuntaryexercise.com
I've created a grid consisting of a 2D array of rows and colums in which each square is clicked to be on and off.
Now, I'm trying to make some working algorithms that adhere to the rules, but when running the program they all disappear... | stackexchange/codereview |
When your int primary key runs out can you change its data type to bigint? (its not going to be a problem?)
| stackexchange/codereview |
Once I've done the node conversion in the foreach, how do I get a copy of $myContent, complete with all replaced nodes?
echo $xPath does not work
$myContent ="<h1>This word should not be replaced: test</h1>.
But this one should be replaced: Test";
@$dom = new DOMDocument;
@$dom->loadHTML($myContent);
$xPath = new D... | stackexchange/codereview |
Let's say I'm using the LINQ array .Distinct() method.
The result is unordered.
Well, everything is "ordered" if you know the logic used to produce the result.
My question is about the result set. Will the resulting array be in the "first distinct" order or perhaps the "last distinct" order?
Can I never count on any o... | stackexchange/codereview |
I've got a question concerning code duplication and refactoring, hope it's not too general. Say you've got a rather small piece of code (~5 lines) which is a sequence of function invocations that is - not a very low level. This code is repeated in several places, so it would probably be a good idea to extract a method ... | stackexchange/codereview |
I want to determine the revision (how to call properly it in Git?) from which current Mono runtime was built and installed.
$ dmcs --version
Mono C# compiler version 2.9.0.0
but it's definitely insufficient.
XSP/ASP.NET error page gives more information:
Version information: Mono Runtime Version: 2.8.1 (master/cdf124... | stackexchange/codereview |
I'm currently working with BWT for fun. :-)
I've learn the BWT and I think BWT isn't complicated theoretically. But, until now I don't know how actually to sort the rotated strings in real implementation.
Should I hold all rotated strings first in to an array so that I can sort them using naive sorting algorithm like B... | stackexchange/codereview |
I have an androidapp with a background but I want to stay it in portrait always. So the activity can rotate, just the wallpaper can't. Is this possible?
| stackexchange/codereview |
I have a persisted computed column in a large table in in SQL Server 2005.
I want to convert it to a regular column, keeping current values.
Do I have to recreate the column and update the entire table in transaction,
or is it possible to just alter a computed column specification, and how to do it?
| stackexchange/codereview |
A Blackberry game runs at 30 fps. I want to be able to poll the keyboard for input at 30 fps, not merely "wait" for input events through overriding
public boolean keyChar( char key, int status, int time )
This is insanely slow and will never work. how can I poll the blackberry for fast input?
| stackexchange/codereview |
I want to understand how programs like vim or man work in a shell. How do they let the user scroll, refresh the display and such?
They seem to interact with some console library and hence manipulate what we see. What's really happening?
| stackexchange/codereview |
Possible Duplicate:
if i type in textbox 1,3 then checkbox1 and checkbox3 will be disabled not checked !!
i want to disable checkboxes according to textbox text
For example --- if i enter 1,4 in textbox then checkbox1 and checkbox4 will be disabled and even after that when i type 2,3 in textbox then checkbox2 and ch... | stackexchange/codereview |
For statuses/mentions, I need to authenticate as a user. I want to see the user's mentions without asking him/her to authenticate. If the tweets are public, what are the mentions not public ?
I'm writing to do this
| stackexchange/codereview |
I have a concurrent linked list. I need to prioritize finds on this list, so if a thread begins iterating over the list and subsequent insert/delete requests show up I'd want to queue those but if there are find requests from other threads I'd let those happen. What's the best way to implement this situation?
EDIT: I ... | stackexchange/codereview |
@{int i=0;}
@foreach (var e in Model.BlockList)
{
@foreach (var e2 in e.RadioButtons)
{
<label>@Html.RadioButton("r"+i, e2.Id, false) @e2.ViewText</label><br />
}
i++;
}
Question: how in the controller through all the answers?
At this moment my Controller class look like this:
[HttpPost]
public ActionResu... | stackexchange/codereview |
I want my application to look for a file in drive C's specific folder (say C:\myFolder\abc.mdb), if found just give a message if not, make the folder in drive C:\ and then copy the file.
How to do this?
Thanks
Furqan
| stackexchange/codereview |
inspite of using gcc compiler i doubleclicked the binary executable file but nothing seems to happen .
can anybody tell me is it possible and how can i run my program just by doubleclicking the binary executable file.
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/ty... | stackexchange/codereview |
I'm running the Windows Phone 7 dev tools on an older MacBook Pro, with an NVIDIA GeForce 9400M graphics card with 256MB of memory (not sure if it is shared or not) and I get lots of stuttering in the animations on the emulator, even simple ones, so I assume that it's not using my graphics hardware. The framerate count... | stackexchange/codereview |
I have a model:
ChatStatus with the following fields (ID, user_id, status, thread_id)
What I want to do is update the user's status from 'unread' to 'read'
What I have to do is:
@chat = current_user.chats.where(:thread_id => 23)
23 came from an AJAX post. I then have to do:
@chat.status = 'read'
@chat.save
That hits ... | stackexchange/codereview |
Problem context:
I have a C++ program and a web presence. Currently the way things are working I have made a control panel with javascript and html. And it send commands via an unimportant communication medium to control things or get information from the C++ program.
Now, when the C++ program launches, I'm making it ... | stackexchange/codereview |
So let's say you have a variable n.
You want to check if its an integer, or even better yet check what type it is.
I know there is a function in haskell, isDigit that checks if it is a char.
However is there a function that checks if n is in integer, or even better, gives the type of n?
| stackexchange/codereview |
I searched for this and only found "unused imports" "increase of performance" "cloud computing" etc. questions...
So my question is:
How do I make a thread in java only use cpu power that's not needed for another program?
I can set the thread to lowest priority, but I still measure relatively high performance drops f... | stackexchange/codereview |
hi i want to make a program in java where days,weekNo is parameter ..Like First Friday of the month or second Monday of the month ..and it returns the date
| stackexchange/codereview |
I have 2 identical AutoCompleteExtender's - one is in the Insert mode of my DetailsView, which is the default mode, and one is in the Edit mode. There is also another DetailsView, which only shows when a Checkbox is ticked (and the page posts back), which also hides the previous one.
When the mode is Insert, there are ... | stackexchange/codereview |
I am trying to set up facebook sharer.php
Can someone give me some direction on this. How do I get an image and text to appear?
I am trying to achieve a similar effect to the share link on espn.com.
Many Thanks
| stackexchange/codereview |
I'm trying to allow jQuery 1.4.2 work on a responseXML variable, but it doesn't... I can only let it work with the live page displayed.
Here's my code:
var url = myext.baseuri + "/Common/page.asp";
var httpRequest = myext.createHttpRequest();
httpRequest.open('GET', url, false);
httpRequest.send();
if (htt... | stackexchange/codereview |
I there are similar questions out there, but none of that did really help me with my problem.
I get a string with unknown number of floating point numbers and I have to cut them seperatly to an array.
What I've got is:
h=0;
while(fstring[h]!='\n'){ //So first I count how many spaces there are in the string
... | stackexchange/codereview |
I am using the facebook graph api to integrate some facebook functionality for users into a project i am working on. Its very early stages and I am just getting to grips with the Facebook API but it appears that every time a user logs on to my site they will also have to log into Facebook. On the first time they also ... | stackexchange/codereview |
I did see on internet some pattern for implementing singleton class as following:
class singleton {
public:
int a;
void print()
{
std::cout << a << std::endl;
}
} singleton;
int main()
{
// singleton b; COMPILATION ERROR
singleton.a = 3;
singleton.print();
return 0;
}
It does ... | stackexchange/codereview |
In C++, putting a function or a variable in an unnamed namespace makes its linkage internal, i. e. the same as declaring it static on a file-level, but idiomatic C++.
What about an unnamed namespace within a normal namespace? Does it still guarantee internal linkage?
// foo.cpp
void func1() {
// external linkage
}... | stackexchange/codereview |
Was trying to do this using nhibernate:
IQuery query = Session.GetNamedQuery("Package1.GetUserInfo");
query.SetParameter("sessionID", sessionId);
It returned: Named query not known....
Was searching forums but it seems nhiberate only handle SP on its own, not inside a package.
Can anyone help?
| stackexchange/codereview |
We're thinking of making use of the Facebook Live Stream social plugin for our site (example here), but I wanted to know if it was possible to access this data via the Graph API?
| stackexchange/codereview |
Whats is the point of going thru the trouble of programatically create a form with Zend_Form when I can just type in the markup.
| stackexchange/codereview |
I have an animation that "lifts" up a button and drops a shadow. Here's how I do it, for example.
button1shadow.alpha = 0;
button1shadow.hidden = NO;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.5];
CGRect frame11 =searchByName.frame;
frame11.origin.y -=20;
frame11.origin.x +=20;
searchB... | stackexchange/codereview |
Has anyone gotten the "Open Source QR Code Library" to work with ColdFusion? I need to generate QR Codes in ColdFusion.
I also found this tutorial on how to generate it using Zxing.
But the tutorial is not clear on how to configure the files, e.g. what needs to be in which dir...
Any help and alternatives are welcomed,... | stackexchange/codereview |
Can you distribute an iPhone app for testing in the iPhone simulator on computers that do not have the XCode development tools installed? Can you just install the simulator on a computer for testing?
I have a group of testers that are not developers and do not need to have the dev tools other than the ability to run th... | stackexchange/codereview |
I am under the impression that DLLs are mapped into the address space of the calling process. If that is the case, how DLLs can be shared among other processes?
Regards,
Arun
| stackexchange/codereview |
I'm using Devise for user management. I need to run some custom code defining where the user is redirected to after they sign in. I've found the after_sign_in_path_for method, which I think is what I need to use. But I'm not sure how to use it. Where do I put my custom after_sign_in_path_for method to override the defa... | stackexchange/codereview |
I have a data that looks like this
#Status value
TP 5.000
TP 3.000
TP 3.000
TN 10.000
TP 2.000
TP 9.000
TN 1.000
TP 9.000
TN 1.000
What we want to do is to cluster the Status based on the given interval in value.
Let that interval be 1-3, 4-6, 7-9, 10-12, etc .. (i... | stackexchange/codereview |
I'm working on a basic Twisted application to help me learn how reactors work with multiple services. The basic outline of what I'd like my script to do is as follows:
My script will be both a Web Server and an IRC Client. Every time a request is made to the web server, the script should say a message on IRC.
I've ... | stackexchange/codereview |
So I am interested in a way (ideally cross platform) to have a zip file which is uploaded over annoyingly slow uplink connections (think ADSL) - where only the delta is uploaded (assuming a recent version is on the server and minimal changes to be uploaded).
Now rsync can work - with gzip rsync-aware support (ie you c... | stackexchange/codereview |
I know an ASP.NET app can have as many aspx pages as you want but after hitting a certain number of them (over 100) should I consider a different design? Or, as the months/years go by do I just keep adding more and more pages to my app?
| stackexchange/codereview |
I have a project I need to release the source for. The problem I have is that I need to create a source release for all code that we have developed. The code is across multiple projects, but I want to leverage maven so that only the source for the jars we are actually using is released.
For example:
core code project ... | stackexchange/codereview |
We have a finance department who are addicted to TM1, but are otherwise moving from Cognos to SSAS. Does anyone know if we can use TM1 as a data source? Is it difficult?
| stackexchange/codereview |
certain key colour in my application are loaded as dynamic resources. This works fine is most controls except ColorAnimation. For this, it throws an exception:
Cannot convert the value in attribute 'To' to object of type 'System.Nullable`1[[System.Windows.Media.Color, PresentationCore, Version=3.0.0.0, Culture=neutral... | stackexchange/codereview |
I'm making an application that is similar to stackoverflow in that it has ratings for questions and answers and I also have tabs that show comments by oldest, newest and votes. I'm having trouble sorting by votes.
Here is my function:
/**
*
* @param int $threadid
* @param string $tab
* @param objec... | stackexchange/codereview |
The command sc.exe config <servicename> obj= LocalSystem results in the following error:
The account name is invalid or does not exist,
or the password is invalid for the account name specified.
I want to create batch file to change a particular service to LocalSystem but the above command does not work. I can set L... | stackexchange/codereview |
I am getting the below error when making an AJAX call in my struts2 application:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:243)
or... | stackexchange/codereview |
I want to call a web service "gatewaedi" from java code.
I am not getting how to call it, could someone please provide an example?
| stackexchange/codereview |
Is PHP echo $str1, $str2, $str3 faster than echo $str1 . $str2 . $str3?
| stackexchange/codereview |
I am working towards comparing multiple images. I have these image data as column vectors of a matrix called "images." I want to assess the similarity of images by first computing their Eucledian distance. I then want to create a matrix over which I can execute multiple random walks. Right now, my code is as follows:
%... | stackexchange/codereview |
I've got an issue installing gems on my mac (os 10.6).
I used to be able to run
gem install <gem-name-here>
but after updating something, it could be the version of gem I'm using, but it's unlikely, I now get the error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into ... | stackexchange/codereview |
My problem is that I have written code in Visual C# for a background for a game that is part of my grade in a class. The background has multiple layers moving at different speeds is how I modified some code... I did this in 2008 version with XNA 3.1 and it worked fine and the background ran like intended. But when I we... | stackexchange/codereview |
I am developing a Gtk application using gtkmm on Windows Vista with Visual Studio 2005. The application works fine on the development machine but I have received crash reports after it has been run on Windows XP machines (both Service Pack 2 and 3). I distribute the app with the directory structure described in http://... | stackexchange/codereview |
i am working in a desktop application for windows version using java. In my application there is a requirement to search all .doc and .docx files from the MyDocuments/Documents (as per O.S.) from local system and display there name and file size.
I am not getting the way that will help me to list out all the *.doc, *... | stackexchange/codereview |
I need to update some cells in google doc spreadsheet on iPhone app.
I've downloaded GData source and example projects (not iphone specific) but I can't seem to get it to work. Does anybody know of any good (or any at all ;)) tutorials out there?
Best regards.
| stackexchange/codereview |
how can i get to know about my web site maximum capacity for the visitors at the same time?
-kind of stress test for unexpected situations-
| stackexchange/codereview |
I am not a designer by profession and don't really want to become one [not my cup of tea, I guess]. I want to gain some knowledge on graphics designing [mostly with XAML] so that I can at least work with Expression Design and Blend. Any book or video that can teach me some effects would be good.
What are you favorite r... | stackexchange/codereview |
i have a simple question. Its possible to add dependency injection via @Ressource or @Autowired to the Hibernate Eventlistener?
I will show you my entitymanagerfactory configuration:
<bean id="entityManagerFactory" class="org.hibernate.ejb.EntityManagerFactoryImpl">
<qualifier value="entityManagerFactory" />
<... | stackexchange/codereview |
I'm using the jQuery scrollTo plugin along with keydown events to scroll the window horizontally with the J and K keys. This works quite well, however, I have form inputs on the page, so I'd like to disable the scrolling behavior when the inputs are focused. My code is below:
// scroll left/right
$(document).keydown(f... | stackexchange/codereview |
I have a List and I want to pass it to the subsequent request as GET query string parameter:
<a href="servlet?list=<%=request.getAttribute("list")%>">link</a>
Inside the servlet I am trying to retrieve it as follows:
String[] list = req.getParameterValues("list");
It does not work. How can I get it to work?
| stackexchange/codereview |
I am using the MS Enterprise Library 5.0 (data access blocks) for the main data layer of my application.
Although I understand the basics of OO (yes, I need to keep learning - contantly!), I am trying to work through understanding where/why/how to make use of good design, i.e. not repeating code un-necessarily etc, and... | stackexchange/codereview |
i was wondering how i can get users to sign up and assign them a subdomain i.e. http://username.tumblr.com like tumblr and blogger, and why do they use subdomains, and not blogger.com/username, easy urls, thanks
| stackexchange/codereview |
Need to write a quick method static boolean varTest(String id) that tests of the input is indeed a variable based on the following rules:
variable ::= a dollar sign ($) followed by an integer, or
any identifier starting with a letter followed by a mix of letters or digits.
Where for example both x$ or $x c... | stackexchange/codereview |
I am writing integration tests to test existing Routes. The recommended way of getting the response looks something like this (via Camel In Action section 6.4.1):
public class TestGetClaim extends CamelTestSupport {
@Produce(uri = "seda:getClaimListStart")
protected ProducerTemplate producer;
@Test
pu... | stackexchange/codereview |
I have a function that will graph a 3D sphere with matplotlib in tkinter. However, every successive time I call the function the performance when orbiting the sphere drops. Also the graph only updates after I try to orbit the sphere.
self.A is a variable that adjusts the size of the sphere.
My function:
def draw_fig(... | stackexchange/codereview |
I have the following Ruby code:
require 'net/http'
require 'uri'
include Net
$DEBUG = 1
print "Enter a GitHub username: "
username = gets
puts "Username = #{username}" if $DEBUG == 1
source = HTTP.get(URI.parse("http://github.com/api/v2/xml/user/show/#{username}"))
puts source if $DEBUG == 1
Whenever I run it, I... | stackexchange/codereview |
Having some issues in solving this issue but. someone might knows this.
I would like to a user login into a regular joomla page but after they login with their account i would like them to be redirected to another page that is not inside joomla like articles etc. just a portal PHP page that i made using joomla function... | stackexchange/codereview |
I have implemented a custom IParameterInspector and I want to have it execute for every single operation on my service.
My understanding is that IParameterInspector implementations can only be used with IOperationBehavior implementations, and that intern IOperationBehavior implementation can only be used to decorate in... | stackexchange/codereview |
This is a noob question. If I have a ViewController and inside that class I have an object called UserInfo and other ViewController, lets just call it X,Y,Z, etc..etc.
What do I need to do so that those X,Y,Z can use the information of UserInfo?
Well I can have another info called UserInfo inside X,Y,Z and pass UserInf... | stackexchange/codereview |
Seems elementary but I am not sure how to get each bit from a byte. Thanks for the help
| stackexchange/codereview |
I have a C++ Builder XE project with several 3rd party controls. Some of the 3rd party controls did not have a specific XE package so I wound up taking 2010 and compiling, etc...
After many gyrations, I can get my project to compile but not link.
I get the error:
[ILINK32 Error] Fatal: Unable to open file 'THEMESRV.OB... | stackexchange/codereview |
What is the regular expression to split on comma (,) except if surrounded by double quotes? For example:
max,emily,john = ["max", "emily", "john"]
BUT
max,"emily,kate",john = ["max", "emily,kate", "john"]
Looking to use in C#: Regex.Split(string, "PATTERN-HERE");
Thanks.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.