instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have this code:
- (IBAction)next {
// <-- here
index++;
// Set imageCount to as many images as are available
int imageCount=3;
if (index<=imageCount) {
NSString* imageName=[NSString stringWithFormat:@"img%i.jpg", index];
[picture setImage: [UIImage ima... | stackexchange/codereview |
As you know in C# classes we can define an indexr with more than one argument.
But in C++ operator [ ] can accept one argument. Is there a way to wrtie an indexer in C++ with more than one argument?
indexer in C# :
public AnyType this[arg1 , arg2 , .....]
{
get { ... };
set { ... };
}
[ ] operator in C++ :
Any... | stackexchange/codereview |
Fromg Google's Python Class:
E. Given two lists sorted in increasing order, create and return a merged
list of all the elements in sorted order. You may modify the passed in lists.
Ideally, the solution should work in "linear" time, making a single
pass of both lists.
Here's my solution:
def linear_merge(list1, list2)... | stackexchange/codereview |
Hi I have HTML like this
<div class="header_countrys_middle">
<a href="http://www.test.com" title="United States"><img src="/images/flags/us.gif" alt="us" title="United States" /></a>
</div>
I set the language like this:
setcookie("lang", "en_US");
But how do I set the language based on users click?
| stackexchange/codereview |
I'm very very new to programming. I'm having the hardest time with a seemingly simple insert statement that I'm using a query to run. The following is exactly what I am putting in:
INSERT INTO [EMPLOYEE TABLE]
(list of column names surrounded by '' and separated by ,.)
VALUES
(list of data that I want in each col... | stackexchange/codereview |
I need some sort of way to store key/value pairs where the value can be of different types.
So I like to do:
int i = 12;
string s = "test";
double x = 24.1;
Storage.Add("age", i);
Storage.Add("name", s);
Storage.Add("bmi", x);
And later retrieve the values with:
int a = Storage.Get("age");
string b = Storage.... | stackexchange/codereview |
I only have the basic Oracle tools available, i.e. SQL Plus, and I need to find out if a table was created with the ROWDEPENDENCIES option. It's a 10g database.
And, if it isn't set, can I use ALTER TABLE to set it, or do I have to drop and re-create the table?
| stackexchange/codereview |
I've only been working on Magento for a few days but already it is so confusing. I'm starting to get my head around it but one problem is doing my head in at the moment.
My client wants a shopping basket sort of function NEXT to the top links rather than a "My Cart" in the top links. Simply, all I want to do is move "M... | stackexchange/codereview |
I am facing a problem about encoding.
For example, I have a message in XML, whose format encoding is "UTF-8".
<message>
<product_name>apple</product_name>
<price>1.3</price>
<product_name>orange</product_name>
<price>1.2</price>
.......
</message>
Now, this message is su... | stackexchange/codereview |
How to limit bandwith use when using HttpWebRequest?
| stackexchange/codereview |
I am new to programming in general and i am having trouble getting the data into my web app when i make a call to the moviedb.org api. I am using jquery and i have read all the docs, even the cookbook and i am still struggling to make this work, i also checked my google dev tools console and it shows that the call was ... | stackexchange/codereview |
Can someone please explain the following code?
Source: Arrays.class,
public static <T> void sort(T[] a, Comparator<? super T> c) {
T[] aux = (T[])a.clone();
if (c==null)
mergeSort(aux, a, 0, a.length, 0);
else
mergeSort(aux, a, 0, a.length, 0, c);
}
Why create aux?
How is the sort ever work... | stackexchange/codereview |
I'm trying to bring a CVS and Git repo back into line (so I can get about merging the improvements from Git, mostly).
Is there a way to ask Git,
"Find me the closest (or identical) commit to match the files in this CVS checkout?"
I don't mind if I have to do this separately for each file.
(The two repos appear to have... | stackexchange/codereview |
I have some questions about jQuery and the load() function.
I have a form which sends 3 params that are needed for a query. I wanted to load the data to a specified div without reloading a page so I tried with load function in jQuery. It seems ok but there are some questions that I need to ask.
I made a div with id "re... | stackexchange/codereview |
It seems Radix sort has a very good average case performance, i.e. O(kN): http://en.wikipedia.org/wiki/Radix_sort
Yet it seems like most people are still using Quick Sort - why is this?
| stackexchange/codereview |
Greetings,
I've been studying javascript, nodejs. And I don't understand how the concurrency issues are avoided in javascript.
Lets say I'm working on a object
var bigObject = new BigObject();
and I have a setTimer(function(){ workOnBigOjbect...} ) that will also do work on bigOjbect.
If I have disk IO being written... | stackexchange/codereview |
It would seem that the DataGridView control can only bind to data sources that are flat (all the Properties are primative types). My data is hierarchal. For example:
interface INestedObj
{
string Prop3 { get; }
}
interface IParentObj
{
public string Prop1 { get; }
public string Prop2 { get; }
publ... | stackexchange/codereview |
If I have a TableLayout structure (below) which defines 2 ImageViews. One which also specifies pixel values for width/height. This works as I would expect - Pic one is resized to 50px and pic2 is kept at its original size:
<TableLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<Table... | stackexchange/codereview |
How do I add a Zend_Form to my layout? The layout has no "controller" in which to initiate the form. How do I do this?
| stackexchange/codereview |
I have a Silverlight app. that has a basic animation where a rectangle is animated to a new position. The animation consists of two DoubleAnimation() - one transforms the X, the other transforms the Y. It works OK.
I basically want to block any other calls to this animate method until the first two animations have com... | stackexchange/codereview |
Found this script:
function stopRKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}
document.onkeypress = stopRKey;
Only issue, it also stops enter ... | stackexchange/codereview |
I've seen this in a few tutorials now... but how in the world can Android source code not have a main method and still run.
For example (from http://developer.android.com/guide/tutorials/hello-world.html):
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
... | stackexchange/codereview |
I use the following code to display a product. 3 products per row(each li is floated left)
The products are filtered with javascript also...
The problem is with div with class features... It is fixed height of some em.But i would like it not to be fixed height...If it is variable height then products at next rows wont... | stackexchange/codereview |
I cannot seem to find an answer for this anywhere. Superuser root has a crontab with a couple of jobs that send the resultant output to root's mailbox addressed from my non-superuser account foo.
It is my understanding that the owner of the cron job is supposed to be the sender of the resultant cron job output. Account... | stackexchange/codereview |
I have developed a WinCE application which uses sqlce3.0. Recently I have gotten very strange error with a simple query like this;
select * from customers where name like 'h%';
I connected from SQL Query Analyzer tool and run the command it says:
"data area pass to a system call is too small"
but when i run as foll... | stackexchange/codereview |
I have a index controller name Index.php under directory /system/application/controller/
and i have set the rules of .htacesss
RewriteEngine on
RewriteCond $1 !^(include||index.php|images|robots.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
and i turn $route['default_controller'] = "index";
and i config $config['index_page... | stackexchange/codereview |
I have a page (page_one) that when loads does a Server.Transfer to a different URL (page_two). When page_two loads it adds a bread crumb to the top of the page with an HTML anchor with it's href pointing to page_one, thinking page_two will load by clicking this link. Navigating away from this page then clicking on the ... | stackexchange/codereview |
I have the following dom structure:
<div class="ui-tabs">
<ul>
<li class="ui-state-default ui-tabs-selected ui-state-active">
<a href="#">Text</a>
</li>
</ul>
And the following CSS markup:
.ui-tabs .ui-state-active {
background: #084;
color: #E6EFEA !important;
}
a:link {
color: #00C;
}
I cannot get... | stackexchange/codereview |
Hi i would like to make my map zoom into my current location.
This current location is defined currently by sending lat and long to the emulator.
How would i go about doing this?
My current mapactivity.java
public class MapsActivity extends MapActivity {
private MapView mapView;
private MyLocationOverlay myLoc... | stackexchange/codereview |
Customer:
<p></p>
<p></p>
<div> <% foreach (var item in Model)
{ %>
You are viewing Users of Customer: <%:item.Customer %>
<%break; %>
<%} %></div>
<p></p>
<% Html.RenderPartial("EditUsers", Model); %>
<p>
<%: Html.ActionLink("Create... | stackexchange/codereview |
I want to implement both active search, where keyword queries matches text content, and passive search, where new content matches stored queries, on my google app engine application.
I have never implemented indexing and searching algorithms, could you throw me some starting points?
| stackexchange/codereview |
I am trying to match 9-digit numbers that start with a 1
"/^1[0-9]{9}$/"
| stackexchange/codereview |
I'm having some trouble with Numpy's nan_to_num function: I've got an array where the last column contains fewer elements than the other columns, and when I import it into Python, it places 'nan's to fill out the array. That's just fine until I need to do some other things that get tripped-up by the 'nan's.
I'm trying ... | stackexchange/codereview |
I am newbie in django and working on a pootle project.
I would like to add bio (in textarea), interests (textarea), and profile pics (image upload). this page is looking like this: http://pootle.locamotion.org/accounts/personal/edit/ (you might need to login to see this page)
I have edited local_apps/pootle_profile/vi... | stackexchange/codereview |
How to calculate the cost of calculations in CPU vs. cost of sending the data to GPU+performing calculations+getting data back?
| stackexchange/codereview |
I've got four similar class structures that are generated from XSDs, each one is a different version of an API.
The thing is, I have classes that operate on all these different class structures, but a good deal of the code is the same throughout all structures. I can't have interfaces for each class since all classes a... | stackexchange/codereview |
For the sake of this question, let's assume I have tables 'A' and 'B' and there is a 1:1 relationship between them. In a Linq query, I can do the following:
from row in A
where row.B.Description = someValue
select A
Where row.B is the reference to table 'B'.
However, let's now assume there is a 1:M relationship betwee... | stackexchange/codereview |
I'm asking a slight different question than this one. Suppose I have a code snippet:
def foo(i : Int) : List[String] = {
val s = i.toString + "!" //using val
s :: Nil
}
This is functionally equivalent to the following:
def foo(i : Int) : List[String] = {
def s = i.toString + "!" //using def
s :: Nil
}
Why wou... | stackexchange/codereview |
I'm really curious to know which off-the-shelf WPF library this program is using for its web interface.
I'd like to use a few of the components in a small, in-house .NET program I'm writing.
Here is a couple of images showing the program in question (and if you don't know what WPF library this one is based on, please f... | stackexchange/codereview |
I'm building a Java web app that needs access to a user's Google Calendar data - therefore I thought the OAuth/OpenID hybrid is the best way to go.
What's the best library to handle the job - and reduce the amount of code on my end?
I tried openid4java & Spring Security OpenID (both don't support hybrid) as well as dyu... | stackexchange/codereview |
I am having quite bad performance problems on Windows-7 (and probably Vista), with calls to CreateWindowEx().
Some of the windows I am creating are taking much longer in Windows-7 than XP. Times can be as high as 15-25 ms which is a lot when you need to create many. (Times on XP are consistently 0-2 ms.) Why is this? ... | stackexchange/codereview |
Can I set a code that doesn't change the orientation of the screen of my app if I turn the phone sideways? I tried making a new main.xml file in the layout-land folder, and it just looks weird.
So, the screen doesn't turn when the oreintation is changed?
Thanks!
| stackexchange/codereview |
I'm trying to write a C++ MFC application that uses the serial port (e.g. COM8). Every time I try to set the DCB it fails. If someone can point out what I'm doing wrong, I'd really appreciate it.
DCB dcb = {0};
dcb.DCBlength = sizeof(DCB);
port.Insert( 0, L"\\\\.\\" );
m_hComm = CreateFile(
port, ... | stackexchange/codereview |
I need to execute a method before certains actions in a rails app and apparently the right way to go is using a before_filter.
The before_filter works fine when a put the filter method in the controller, but I need to use this filter in all the controllers, and I don't think would be right repeat the filter code en eac... | stackexchange/codereview |
How can I change the current time (i.e. the output of time()) in PHP for unit-testing date-manipulation-class?
| stackexchange/codereview |
Possible Duplicate:
How can a static class derive from an object?
I have a static class and I want to inherit from another static class, but the compiler forbid to do so. "Static classes must derive from object"
I want to know why and is there any workaround?
| stackexchange/codereview |
I've slider that its value is bind to some property, and the property updates it all the time.
While dragging the [thumb on] slider I want to stop this update value of slider from binding,
until user finish it's dragging.
Is there any property on Slider to do that, or I need to write code for that?
Thanks in advance!
| stackexchange/codereview |
I am constructing a simple modified Subtraction-only calculator where z = x - y.
I have created 3 textfields: x, y, and z. The user will input the value using the keypad (buttons) I have designed for the x and y.
Just by looking at the code below, there are couple of issues right away.
1) The x textfield only accept... | stackexchange/codereview |
UPDATE: This question and its answers should no longer be recommended to anyone reading this. Android no-longer recommends HttpClient (read: deprecated), and instead recommends HttpUrlConnection. A good example of libraries to use now, are Retrofit and OkHttp. In the context of this question, cookies can be saved, stor... | stackexchange/codereview |
I'm compositing two (static) images, several times a second. This code runs pretty snappily on the 3Gs, and really slowly on the iPhone4. TimeProfiler reveals that the call to UIImage drawAtPoint: ends up calling something very expensive called "argb_sample_RGBA21". This routine is never called on the 3Gs. Is t... | stackexchange/codereview |
I'm testing an import script on a shared web host I just got, but I found that transactions are blocked after running it for 20 minutes or so. I assume this is to avoid overloading the database, but even when I import one item every 1 second, I still run into the problem. To be specific, when I try to save an object I ... | stackexchange/codereview |
output in Chrome:
<div id="content" contenteditable="true" style="border:1px solid #000;width:500px;height:40px;">
hey
<div>what's up?</div>
<div>
<button id="insert_caret"></button>
I believe in FF it would look something like this:
hey
<br />
what's up?
and in IE:
hey
<p>what's up?</p>
unfortunately, there... | stackexchange/codereview |
I have the following code in a class
struct ConstrType{};
struct ConstrType3{};
struct ConstrType2{};
struct ConstrType1{};
template<typename InType, typename OutType, typename ConstrType>
class getInterestRateIndex_impl{
public:
getInterestRateIndex_impl(){
std::cout << "Generic getInterestedR... | stackexchange/codereview |
I am trying to setup a mqueue in win32 env, but need pthread win32 lib, http://sourceware.org/pthreads-win32/. Any one knows how to link it to my VS project?
Thanks
| stackexchange/codereview |
How the less than or equal to condition checking performed on a Double variable.
I have two variable first, second.
Double first = 20.0;
Double second = 20.0;
if(first <= second){
//This is not going inside the if part
}
| stackexchange/codereview |
I need the label to stay on the same line as the input field they are labeling. I want these elements to flow like they normally would when the window resizes, i just want the label to stick to the left of the input they are labeling. How would I do that? Any ideas?
<label for="id1">label1:</label>
<input type="text" i... | stackexchange/codereview |
I am graduating in next month. I am applying for entry level php developer jobs. Many companies are asking to send sample code.
I am sending sample controller, view and model files and some screenshots of the outputs, but I am not getting through.
Please help me. Where Am I doing wrong? What am I supposed to send them... | stackexchange/codereview |
I have a 2 tables in a MS SQL 2008 Database, Listings and ListingType, I want to create a select statement that will give me all rows from Listing that do not have their ListingID in the ListingType table.
I'm very confused about how to even start this statement.
Example SQL Statement - Does a lot more than what I expl... | stackexchange/codereview |
I have a tool that reflects a dll and executes methods dynamically. However, I don't have any of the classes that can get invoked documented so the user can invoke the right method.
Is there a way I can generate an xml file based on the .CS file, something similar to the way the .NET Framework does it with their intel... | stackexchange/codereview |
I'm trying to code a multiple panel preference window with an NSToolbar as seen in a lot of Mac applications. There are a few tutorials that do this by programmatically populating the toolbar but that seems to require a lot of "mechanical" code that I thought to save by setting up the whole toolbar in IB. Each NSTool... | stackexchange/codereview |
Guys, could you please describe TortoiseHg extensions which comes with the installation package? What do these do and which you use on the daily basis? What are more useful?
This is the list from TortoiseHg v1.1.5 for Windows.
[extensions]
; extensions shipped with Mercurial by default
;
;acl =
;bookmarks =
;bugzilla =... | stackexchange/codereview |
I want to use IIS impersonation to connecto to a SQL server database as the user who is currently accessing a website. This is for auditing and security reasons.
I've done some reading and discovered that because the SQL Server is on a sepearate physical server I need to enable Protocol Transitioning and Constrained de... | stackexchange/codereview |
I've got
public MvcHtmlString(this UrlHelper url)
{
string controller = //???
string action = //????
}
anybody knows the solution ?
| stackexchange/codereview |
I would like to capture a signature from (file, pad) in a WPF application. How can I implement this? Is there any API available?
| stackexchange/codereview |
I guess it's a bit rude to ask this question, as I should make an effort (more than googling) to figure it out myself, but maybe some one knows the answer off the top of his head.
How many stored procedure calls are made per transaction (MS SQL 2005/2008)? Say, I created a stored procedure which triggers on inserts and... | stackexchange/codereview |
In the interest of eliminating as many nested queries as possible, I'm trying to optimize the following query:
SELECT fp.id,
fp.user_id,
COUNT(c.id) AS num_replies,
c2.created AS latest_activity_time, c2.user_id AS latest_activity_user_id
FROM forum_posts fp
LEFT JOIN comments c... | stackexchange/codereview |
I've stuck at this problem. Our old-old programmers have encoded their CFM file based on CF8 and I cannot find the original file in our server. Recently, I've deployed these encoded CF8 files into CF9. Unfortunately, these encoded CF8 files don't work in CF9 server?
Please let me know how to solve this problem?
| stackexchange/codereview |
I have a website. I'd like to do the following:
Have an input box that the user can type a java program. Then, they can press "Run" and it spits out standard output. How can I achieve this?
I tried thinking about using exec("javac $filename") in php and just compile and run the java program, but that doesn't seem to be... | stackexchange/codereview |
I am trying to send text packets over the network using winsock. However the text is stored as wchar_t and I need to be able to convert the text into byte (char) format for sending over the network, which will then be converted back to wchar_t.
I've experimented with using ostringstream and have converted the wchar_t s... | stackexchange/codereview |
I am trying to select all the rows from a table where a date field has values within the current week. I want the rows from the current week's Monday until the current day.
Example:
ID adate
---------------
1 11-11-2010
2 12-11-2010
3 13-11-2010
4 14-11-2010
5 15-11-2010
The rows I want in this case... | stackexchange/codereview |
I currently trying to convert a ASP.NET MVC2 application to ASP.NET MVC3 razor. I have a lot custom Html helper methods, which render html output, like the one below, which renders a button with some markup :
StringBuilder sb = new StringBuilder("<input type='submit' id='")
.Append(buttonId)
.Ap... | stackexchange/codereview |
In some projects I see that a dummy record is needed to create in Db in order to keep the business logic go on without breaking the Db constraints.
So far I have seen its usage in 2 ways:
By adding a field like IsDummy
By adding a field something called ObjectType which points a type: Dummy
Ok, it helps on what need... | stackexchange/codereview |
I've got a 90MB .csv extract I need to push into an Access 2007 DB.
AS A TEST - If I do a straight import of the file with default settings into a new table I end up with a DB of 134MB.
WHAT I NEED TO DO - The .csv extract contains a couple of columns I need to process before pushing them to into the Access DB. To acco... | stackexchange/codereview |
I'm using a 3rd party lib to do some work. I'm passing an object to the lib and it performing some actions on each property of the object. It enumerates properties using reflection. This is how it implemented and I can't change it.
I don't know which and how many properties should be processed by the lib at compile-tim... | stackexchange/codereview |
I need to return some json data from controller. Anyone know how to do it?
| stackexchange/codereview |
In my android project, I have a simple Java file which gets webpage content, does something with the text and returns text as a String. This text I display in a ScrollView in another activity on Android.
It works fine, but the problem comes when I try manipulating the text in this Java file. I tried with arrays, it did... | stackexchange/codereview |
This validates ok http://chart.apis.google.com/chart?cht=bvg&chs=600x500&chxt=x,x,y&chds=0,8&chxr=2,0,8|0,0,3&chxl=0:|0|1|2|1:|Hover%20cursor%20over%20day%20number%20for%20calendar%20date&chxp=0,0.5,1.5,2.5&chtt=Here+is+your+chart,+as+requested&chdl=values&chdlp=t&chd=t:4|6|8&chof=validate
if we remove the trailing 8&c... | stackexchange/codereview |
i found a couple HTML5 audio examples:
jQuery plugin:
http://www.happyworm.com/jquery/jplayer/latest/demo-01.htm
This site uses the above jQuery plugin for a stream:
http://wfmu.org/html5/player.php
This one uses streams from scratch:
http://www.trygve-lie.com/blog/entry/html_5_audio_element_and
Another tutorial:
http:... | stackexchange/codereview |
We are receiving timeout errors in an application with a high volume of transactions to a SQL server database and have noticed that the timeouts mostly occur within the LINQ stuff where trying to call IsServer2KOrEarlier, IsSqlCe or IsServer2005. I wonder if I could tell LINQ providers about the exact type of the datab... | stackexchange/codereview |
I have a combobox in a Windows Forms project with an event attached to the selectedindex changed event. The event is getting triggered when the selectedindex is changed both from code and from user input. How do you detect if the selectedindex is getting changed due to user input?
| stackexchange/codereview |
I'm trying to find a control, or the means to write one that works some what similar to how an Accordion control works. This is how it should work in detail.
If I have a window showing a view, and I'd want to change to the alternate view, there would be an bar that runs along the right side of the window. This bar woul... | stackexchange/codereview |
I have a requirement from my client to store the email as seprate file in one of the blog site I have created. when I see the Posts(default from blog site) incoming email settings, i do not see the option save as .eml file. Please help me if there is any workaround for this.
| stackexchange/codereview |
In the book "IronPython in Action," the author states that IronPython, unlike CPython, benefits from certain optimizations, both in the JIT and in the framework itself, that CPython cannot take advantage of. Consequently, IronPython is potentially faster than CPython is, especially for multithreading scenarios.
Does... | stackexchange/codereview |
This one has me stumped.
I have an MVC 2.0 environment in a S#arp layout, everything works great, and I have Intellisense working in my aspx file (for things like HTML helpers and Model properties)
As soon as I add the line:
<identity impersonate="true" userName="xyz" password="abc" />
To my web.config, I lose Intelli... | stackexchange/codereview |
Hey guys, i'm trying this example from Dave Ward blog
about jQuery Templates and something i'm doing wrong.
Any help will be appreciated.
Here's his code:
Data:
var invoice = {
invoiceItems: [
{ type: 'item',
part: '99Designs', description: '99 Designs Logo',
price: 450.00, qty: 1 },
{ type: '... | stackexchange/codereview |
Having a problem with jquery table sorter and pager plugin.
All works fine, but if i have say a 'description' column, and it's larger than the the other cells (expands dynamically) how can i get the pager plugin to stick to the bottom of the new table?
My code is at home right now, but here is a sample of the 2 togethe... | stackexchange/codereview |
I've found the need to extract the set style of an element in a browser (done by the user). I have to be able to work with the retrieved styles on my server (server sided javascript and jQuery). Now, the problem is that many browsers appear to use their own naming conventions or like to separate shorthands to individua... | stackexchange/codereview |
As a bit of a novelty, I'm trying to see how different the IL from light weight code generated at runtime looks vs code generated by the VS compiler, as I noticed that VS code tends to run with a different performance profile for things like casts.
So I wrote the following code::
Func<object,string> vs = x=>(string)x;
... | stackexchange/codereview |
I have a QListWidget full of rectangular icons of different color, which serves as a color selection dialog for our app. I do not like the highlight on them, since it is not aligned properly, as evident from the picture attached.
How do I fix this? Any ideas in general for better highlights would also be great!
Thank... | stackexchange/codereview |
I am trying to use the Socket.bind() function this way:
Bind(new IPEndPoint(myInternalAddress, myPort));
The error I am getting is "The requested address is not valid in its context.", but this only happens on Windows 7 (I am using 64 bit).
Befor my upgrade a few days ago this was working fine, and I checked the IPs t... | stackexchange/codereview |
My DataGridView is not sorting my date column correclty and it doesn't seem to be sorting it by String either. The column is bound to a date property, all is done using the designer.
The set which I'm viewing it on is 424 entries long, there should be two entries for each date and they should be next to each other (reg... | stackexchange/codereview |
I'm trying to add tags to some given query strings, and the tags should wrap around all the matching strings.
For example, I want to wrap tags around all the words that match the query iphone games mac in the sentence I love downloading iPhone games from my mac. It should be I love downloading <em>iPhone games</em> f... | stackexchange/codereview |
Here's the code:
response.Close()
ftpWebRequest = WebRequest.Create(ftp_location & dr("FILE_LOCATION").ToString.Replace("~", ""))
ftpWebRequest.Credentials = New NetworkCredential(ftp_user, ftp_pw)
ftpWebRequest.Method = WebRequestMethods.Ftp.UploadFile
ftpWebRequest.UseBinary = True
ftpSo... | stackexchange/codereview |
ca you help me? I am looking for example how to insert and get data from BLOB in MS SQL Server 2008.
I am using OLE DB and Visual C++.
Thanks
| stackexchange/codereview |
In a pretty basic studying exercise I was using LinkedList and when needed to return the last element I mistakingly used the method Last() instead of the property Last and then I started to wonder.
This method is an extension method of IEnumerable, so if it's not overloaded (Visual Studio + Resharper are displaying me ... | stackexchange/codereview |
We launched a Large 64-bit instance and the performance was severely lacking. Commands like ls, less, and cat would take an absurd amount of time, like 10 seconds. A top revealed that the load was over 2 when in fact nothing was running on our shell, at least nothing that we had run.
When we launched a second instanc... | stackexchange/codereview |
I'm having a persistent though intermittent issue using the Facebook Connect SDK with the iPhone. The login works fine, but when I'm on an FBDialog to make a post the keyboard input will fail to go to the Textfield on the Dialog. You have to dismiss the keyboard and tap the field (sometimes 3 or 4 times) before the inp... | stackexchange/codereview |
Im trying to grab value from label checkbox:checked.
I have created this function
var levels = $('input[name=form[radio1]]:checked + label').map(function() {
return $(this).text();
}).get();
$('input#radio1_val').val(levels);
and simple html
<input type="radio" id="radio14" value="150" name="form[radio1]">
<label... | stackexchange/codereview |
Can some help me in the following
Write a c++ program that takes an infix expression from user through command line and convert it into a postfix expression. Stack data structure should use for the implementation of this task.
Regards,
Abdul Nasir
| stackexchange/codereview |
I have a app which uses two UINavigationControllers - one for the menu system and one for the actual game. A common UINavigationController is declared in my appDelegate. When the app loads, it either loads the Menu or the Game's UINavigationController. And of course the player can then navigate between the two.
When go... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.