instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I was told to use a Repeater control in what I am doing which is a "Data Entry" screen with ASP.NET controls -a standard "address" like form. In cases, the fields on the form will repeated twice, once for the original values, one for the changed values. I have not used this control before but it seems like I have to b... | stackexchange/codereview |
I am a junior developer, and trying to write an application to consume SOAP web service.
Using web reference, I can easily call web method of Soap web server, but the problem is that
the server return an object (UBL XML object I think). And I can access its individual elements/nodes as a XML object. But if I want outpu... | stackexchange/codereview |
My question is what does a constructor return? This question is not quite different from "What is the return type of a constructor?"
I have read somewhere that a constructor returns a complete object implicitly (i.e implicit return type is the name of the class) but it shall not be specified explicitly.
struct empty{};... | stackexchange/codereview |
Any help you can offer would be appreciated.
I have a app that has a tableView, detailView, flipView, and moreDetail View. It is fine moving through the transitions until the 26th element. The app crashes when I hit buttons that navigate to the flip and moreDetailView.
I am given the error Msg: [NSIndexPath row] mess... | stackexchange/codereview |
I realize this question has been asked several times in several different forms, but I cannot get it to work properly for the life of me.
I have two DIVs on my page used for modals, ids signup-popup and login-popup. They each have their own close buttons with class simplemodal-close and showing/closing each one on its ... | stackexchange/codereview |
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
List<Person> lista = new List<Person>();
lista.Add(new Person(1, "Joao", 50.0f));
lista.Add(new Person(2, "Maria", 150.0f));
dataGrid1.ItemsSource = lista;
}
public class Person
{
public int id;
... | stackexchange/codereview |
Is there anyway I can determin which Master page is currently set as default on a Sharepoint 2010 installation?
| stackexchange/codereview |
I am building a very lightweight framework and would like a custom template parser. I of course know about other solutions such as Smarty, however that is much overkill for what I need.
I've built simple template parsers before but never figured out how to use loops. I am thinking something on the idea of Smarty's fore... | stackexchange/codereview |
Possible Duplicate:
perl + one line smart perl command, in place grep to match unusual characters + full match
Ai all
I need to match exactly the PARAMETER string with the following perl line:
cat file | perl -nle 'print if /\Q$ENV{PARAMETER}/'
As the following examples, showing down
I try to match: node_name
... | stackexchange/codereview |
I've one windows application which uses sqlite DB. I've created a setup for this application using setup and deployment project. I may have to make builds every other month with changes in the application and user has to update it.
My application creates sqlite DB file when it runs for the first time. If DB file is the... | stackexchange/codereview |
Possible Duplicate:
Kruskal vs Prim
krukshal's algorithm or Prims Algorithm which one is better in finding minimum spanning tree?
| stackexchange/codereview |
I've searched and searched and can't find anyone with a similar problem.
I have a do ... while loop with code to push values from each record into four different arrays. All seems fine except that the arrays are empty (giving me the Warning: division by zero).
I am able to echo the four values for each record as well a... | stackexchange/codereview |
I've slowly been working on a PHP client for WebDAV. I want to add a feature to change the password. I'm not even sure this is possible, but I thought someone else might know. So, is it possible, and if so, how can I go about doing it? I don't really need the exact code, mostly just what headers/content I need to send.... | stackexchange/codereview |
Is there any way to get list of all streets in selected town ( I have DropDownList on my page with cities in my country, when user select some town to fill another DropDownList with streets in that town ) ? Also, can I get name of that part of town for selected street ?
| stackexchange/codereview |
I am using WVGA800 skin in Android emulator, so the density (hw.lcd.density) is 240. I have to put 4 image buttons (72 pixels per inch) at the bottom of activities view. As the resolution is 480X800, I asummed that the width of image must be 120 pixels. The problem is when application is launched, the 3 buttons take a... | stackexchange/codereview |
I have an app that crops faces - something the app can do in a nanosecond, but I want the user to think it takes a bit longer. So in a case on a button click, Here is what I have:
final ProgressDialog dialog = ProgressDialog.show(Main.this, "",
"Cropping faces...", true);
dialog... | stackexchange/codereview |
I have the following code:
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int main(int argc, char** argv)
{
IrrlichtDevice *device =
createDevice(EDT_SOFTWARE, dimension2d<unsigned int>(640, 480), 16,... | stackexchange/codereview |
I am trying to generate a report for the usage statistics.Below is the sample data that i have in in an array and this is fetched from Mysql table.How to implement a logic saying that if the user is idle for more than 30 minutes he has not used the system else calculate the time mean time of the usage.
timestamp=[]
for... | stackexchange/codereview |
i'm using wordpress, i have a page that i can access like this
http://mywebsite/category/page title/ i used Wordpress Permalinks to accomplish that, but i have a plugin inside my page so the page will be something like this http://mywebsite/category/page title/?var1=x&var2=y
i want to create a .htaccess file that will ... | stackexchange/codereview |
Basically i am trying to apply impulse to a round body in a specific angle.
But the body moves in a erratic direction.
Can anyone please help me.
b2Vec2 v1 = bombbody->GetPosition();
b2Vec2 v2 = arrowPoint;//Value got from touch
b2Vec2 final = v2-v1;
float angle1 = CC_RADIANS_TO_DEGREES(atan2(final.y,final.x));
float f... | stackexchange/codereview |
In my Android application, I need to open a link in Browser. This page can receive some data just via POST. Could I add these parameters (data) to the intent which start the browser?
Do you know if this is possible? If it is, could you give my a hint?
| stackexchange/codereview |
UCS2 easier to use in Visual C++, than UTF encoding. What languages I can not support in UCS2 encoding?
| stackexchange/codereview |
I have:
$(document).ready(function () {
$(".div1, .div2, .div3, .div4, .div5").draggable();
$("#menu").click(function () {
$("<div class='div1'></div>").appendTo("#layout");
});
});
But the draggable function works just to the divs that already exist when the page is loaded. When I a... | stackexchange/codereview |
I have list of strings
var data = new List<string> {"Name1", "Surname1", "Name2", "Surname2" };
and class that describes Person
class Person
{
public string Name { get; set; }
public string Surname { get; set; }
}
What is the shortest way to create List<Person> populated from data list
The result should be equ... | stackexchange/codereview |
I've got a autocomplete textbox requesting an IHttphandler via IIS7 written in C#.
But the requests that get to the webserver seems to arrive unorder.
Here is an example of the log I get from the IHttpHandler after typing 'guidolin'
406302 2010-11-24 12:33:58,448 [8256] DEBUG Services.jQueryHandler - VALID jQueryHandl... | stackexchange/codereview |
I'm fairly new to C++ and an trying to figure out to use the TagLib library for a project I am working on. I'm working with unmanaged C++ in Visual Studio 2010 on Windows 7 64bit. I've never used an external library before so I'm very confused on how to go about this.
From this blog entry I got the libtaglib.a and tagl... | stackexchange/codereview |
Just for End-Of-Day data there will be billions of rows. What is the best way to store all that data. Is SQL Server 2008 good enough for that or should I look towards NoSQL solution, like MongoDB. Any suggestions?
That would be cool to have one master db with read/write permissions and one ore more replications of it f... | stackexchange/codereview |
A friend asked me to check out Wefeelfine and I was just flabbergasted on seeing the concept and the execution. I looked further and browsed through umpteen examples of data visualization and each one of them is cool to say the least.
I'm at home and currently nothing interesting do. Can anyone give me some pointers ... | stackexchange/codereview |
I often see the following code:
(function () {
// init part
})();
but I never could get my head around how it works. I find the last brackets especially confusing.
Could someone explain how it works in terms of Execution Contexts (EC) and Variable Objects (VO)?
| stackexchange/codereview |
find age in year from date of birth from current date using sql query?
| stackexchange/codereview |
I know it must be a very simple thing to do but I've never had to treat strings before (in Objective-C) and apparently there's not RegEx on Cocoa-Touch.
Well, the situation is:
I have a text field to get a value (money, such as 32.10 for instance).
The problem:
If the user types in a symbol such as @, /, # etc. my a... | stackexchange/codereview |
I am developing a Journey Planner website. There are few things that are simple in this case currently i.e. Right now the website will only be able to plan bus routes, the timings of buses are not currently available. So this means we only have bus routes stored in the db and since bus timings are not available so wait... | stackexchange/codereview |
I often have a problem with const correctness when wrapping algorithms in classes in c++. I feel that I want a mutable function, although this is not allowed. Can anyone advise me how to implement classes such as the one that follows?
The following is the code that I want to write.
The function run() should not be... | stackexchange/codereview |
How do you print a POST request for debugging in Android?
I'm using either HttpPost or HttpURLConection.
The intent is to give the POST request to another member of the team so they can reproduce it in another platform.
| stackexchange/codereview |
I am trying to make use of a mix of custom cursors and preset cursors for my QGraphicsView.
In my implementation we have created a notion of "modes" for the view. Meaning that depending on what "mode" the user is in, different things will happen on the left-click, or left-click drag. Anyway, none of that is the problem... | stackexchange/codereview |
How does a Windows-based executable file works?
How is the starting address found in the executable file?
For any file execution where are the addresses stored and how can we read those addresses?
How the call and ret for any dll or exe file works?
Give me tips to use ida pro disassembler.
| stackexchange/codereview |
I'm working under visual studio 2005 with assembly (I'm a newbie) and I want to create a program that calculate arithmetic progression with that rule: An = 2*An-1 + An-2
but. I really don't know how to work with registers and I need just one example from you to continue with my exercises.
This is my code:
.386
.MODEL f... | stackexchange/codereview |
I need to get the animation of a note being stuck on a board for an iPad app that I am doing!
I am using a UITableView for this.
It should have a tilt so that it looks like it has been stuck up on the board.
I liked the Evernote app's notebooks tab design and I am trying something similar.
Can you help?
| stackexchange/codereview |
I have couple of ThreadLocals populated in my web app. And, while remote debugging the webapp, I want to see the value of these ThreadLocal variables in Eclipse (just like the way Eclipse shows other variables in the variables tab in Debug perspective).
Any idea how can I view the value of ThreadLocal variables during ... | stackexchange/codereview |
I have a site which runs in ASP.NET 3.5, NHibernate 2.2 and Sprint .NET for Dependency Injection. On our test server a rather strange error occurrs, and also almost everytime there are multiple users online. After the problem has occurred, this error is displayed for every user and every request they make - until you d... | stackexchange/codereview |
i have the following code
people = positions.ConvertAll(r=> r.Person).ToList();
but in some cases "Person" is going to be null, in these cases i simply don't want to add them into the converted collection (i dont want null items)
what is the best way of achieving this. Can you have a conditional convertall ... | stackexchange/codereview |
What's in MS Visual C++ runtime library? I mean, I googled it, and I always found things like help, app xxxx gives me MS Visual C++ runtime library error, with no explanation.
I thought that Windows C runtime libraries come with Windows? Not with VC++? Thanks.
EDIT:
First, thanks for answers. I thing now I have bad ide... | stackexchange/codereview |
I'm trying to make an Ajax search form - This form will simply search the database for names.
The table design is as follows:
id name age
1 some name 10
2 some name2 11
3 some name3 12
Each name is associated with a unique ID.
I want to create a drop down menu of top hits when the user ente... | stackexchange/codereview |
The bottom line is that I cannot connect my EF model to the database, but I'll give some background information:
The solution is laid out as so (working from the silverlight business application template):
solution
solution (silverlight ui)
solution.domain (contains model.edmx and repository shown below)
solution.Web... | stackexchange/codereview |
My project references Library1.dll and Library2.dll. Library2.dll has a dependency on Library1.dll, but it was compiled to reference it by a different name, Library1.Net40.dll.
Is there an nice way tell my application to redirect all references for Library1.Net40.dll to resolve to Library1.dll? Maybe something simila... | stackexchange/codereview |
I am here to get the opinion on Reporting Services vs any other technology suitable for Reports.
Current Environment - BIDS 2005, SQL Server 2005, C# 3.5, VS2008.
requirement -
My Client needs to integrate the huge reports into current existing Web Application.
1) The Technology should be able to handle large number ... | stackexchange/codereview |
I want to disable the default action when user taps the tabbar item.
For example, i have a tabbar with Tab1, Tab2 and Tab3. In Tab1, user can navigate from View1 to View3 (View1 > View2 > View3). If user is at View3, and he taps the Tab1, the application takes the user to View1 (the root view controller). I want to di... | stackexchange/codereview |
When i run the below code
NSLog([NSString stringWithFormat:@"Response count is %d",response.products.count]);
i get a warning message like below
warning: format not a string literal and no format arguments
what is the problem in my syntax..
| stackexchange/codereview |
Is it possible to enable intellisense in the rehosted workflow designer (as like in Visual studio)? if yes, how?
edit: the answer might be here, but I am afraid the posts' language are too technical and I don't truly understand what's being said
| stackexchange/codereview |
Greetings to all,
I am trying to implement in app purchases and still finding difficulty to get it working..since i get invalid product identifiers as response.
In this case, i am having a doubt,
in the iTunes to get it working on in app purchases, i have created a paid app contract but i have not provided any bank in... | stackexchange/codereview |
Windows 7 32-bit
Dreamweaver 8
I am new to HTML & Dreamweaver.
I am using Dreamweaver to edit a website originally put together by someone else.
On each website page is some footer code. I need to edit this code and indeed can do it on every page except one - which is greyed out and i can't edit it?
Is there some way ... | stackexchange/codereview |
Let's say you have NPR radio running in the background on iOS... can I create another app that would run simultaneously that'd let me record that stream for playback?
| stackexchange/codereview |
I am using Update Panel in my asp page and I am doing JQuery Validation on Asynchronous Postback...
I just want to validate my form on only button clicks or submits...
My problem is..all my buttons are in different formviews and won't load at a time...that's why I am unable to take the button id's and use the click eve... | stackexchange/codereview |
I totally see the benefits of JSON, pull over a lightweight array of data to stuff into my Google Maps (and template through to show a list of the points as well). I've heard a lot of talk about KML.
Which is the preferable way to pull points into Google Maps, JSON || KML? My primary concern is performance, but also br... | stackexchange/codereview |
in the following function, what is making try: exit early? If I put the same code outside a def block it works fine.
tiles = ['095D', '094M']
in_file = 'in_file'
out_file = 'out_file'
expression = ''' "FIELDNAME" LIKE 'STUFF' '''
def foobar(in_file, out_file, expression):
print in_file, out_file, expression
tr... | stackexchange/codereview |
All right this is kind of embarrassing, but I am not sure what is the intended use of XML. That's right what is XML meant for, and NOT what is XML. I have used XML now and then over the years mostly for config files but this seems like a trivial use. I have also used it as inter-op format for data files but it doesn't ... | stackexchange/codereview |
I have a std::string A I need to find in it string B with content like bla-bla-bla and replace it with other string C like abcdefg and if B was not found just put C at the beginning of A.
How to do such thing?
| stackexchange/codereview |
All,
I have a class file that is used to store all the constants that would be used throughout my application. The class file contains only constants and methods JUnit test case for such a class? If yes, how should I test such a class file?
| stackexchange/codereview |
I've a simple html form with text field with id="zip" what I want to do is monitor that field and whenever the value changes enable/disable an array of checkboxes based on the input. Currently the change event only fires once I tab or the zip input field. I tried experimenting with keypress but it would always give the... | stackexchange/codereview |
I am printing the CHART control on button click:
chart1.SaveImage(ms, ChartImageFormat.Bmp);
Bitmap bm = new Bitmap(ms);
PrintDocument doc = new PrintDocument();
doc.PrintPage += (s, ev) =>
{
ev.Graphics.DrawImage(bm, Point.Empty); // adjust this to put the image elsewhere
ev.HasMorePages = false;
};
doc.Defau... | stackexchange/codereview |
how do I get out the time my VBA script takes to execute?
I know from PHP that there is something like microtime() which is called once before the script and once after in order to be able to calculate the difference from this values...
Is there an VBA equivalent?
| stackexchange/codereview |
This is my first time deploying an MVC2 app (.NET4) on IIS7.5. I'm using StructureMap and Fluent NHibernate, and everything runs fine locally using integrated security. The application does render the first page (controllername/pagename), but throws an error on the next one which is (controllername/pagename/id).
I hav... | stackexchange/codereview |
I have a 800 kb xml file on a server. I download it, and parse with a SAXParser.
And then i add all item elements to my SQLLite db on the phone.
All item has 50-60 element.
One insert query take about:
11-18 21:15:54.079: ERROR/448 delay_(9169): 41207
11-18 21:15:54.099: ERROR/448 delay__(9169): __ 41223
about 20-9... | stackexchange/codereview |
I'm trying to parse some html using jsoup (1.3.3) in my android activity. When I call this code
Jsoup.connect("http://www.google.com").get();
It works fine in android 2.1 and 2.2 but in 1.6 I get a "java.io.IOException: 403 Error loading URL".
I'm using the emulator to test this and I've noticed that admob ads are als... | stackexchange/codereview |
Hey all, i am trying to split a users name but i am having problems with doing so. Below is my version if the user name has a "go by" name in brackets ():
theName = "Gates, Bill W. (Bill)"
hasBracket = False
If InStr(theName, "(") <> 0 Then
hasBracket = True
End If
If hasBracket = True Then
bracketPos = InStr... | stackexchange/codereview |
I'm currently developing an application in Django and trying to implement Facebook authentication and requests to the Graph API. I've seen a few different libraries out there, but what is the best way to do the following:
Have a user login via Facebook.
Django creates a new user for them and adds their uid and oauth ... | stackexchange/codereview |
I saw a cute demonstration of tweeting from R in a presentation some months ago. The scratch code used by the presenter is here:
http://www.r-bloggers.com/twitter-from-r%E2%80%A6-sure-why-not/
the code is short and sweet:
library("RCurl")
opts <- curlOptions(header = FALSE,
userpwd = "username:password"... | stackexchange/codereview |
I have built an emulated Analog VU Meter for a recording app and have everything hooked up properly and working the way I expect except for one aspect. If you watch this 13-second video of the VU meter in action, you will see that the needle bounces all over the place and is not really what would happen in a real VU me... | stackexchange/codereview |
I have a bash script I've written to automate something tedious, so I got the command looking right in echo, but when I run it, it doesn't work. This is what I'm doing:
CMD='custom_script update --flag=value --comment="testing"'
echo -e "Running $CMD"
$CMD
The echo shows:
custom_script update --flag=value --comment="t... | stackexchange/codereview |
Im trying to remove a class once the user hovers over a link.
Here is the HTML:
<a href="#" id="menu_fonctionalites">Fonctionalites</a>
<div id="commercial_dd_total_FONCTIONALITES" class="menu_hidden">
<a class="commercial_dd_bg">Item One</a>
</div>
JS:
<script type="javascript">
$(document).ready(function(){
$(... | stackexchange/codereview |
is it possible to load freemarker templates from zip file?
i want to zip all templates in a single file and put it in my application.
is it possible?
| stackexchange/codereview |
when i press the only character button a to z to perform some action in android what is key ascii code for a to z can anybody tell how to do in android?
| stackexchange/codereview |
i'm trying to convert the following code from Java to C#.
// Replace 0 0 0 0; with 0.
css = css.replaceAll(":0 0 0 0(;|})", ":0$1");
which I convert as ...
var foo = new Regex(":0 0 0 0(;|})", RegexOptions.IgnoreCase).Replace(foo, "XXXXXXXX");
This compiles but does not work when i run this against the following code... | stackexchange/codereview |
I am right now making one application where in one page i am having navigation bar with back button and a uiwebview. on clicking a button,this page should be loaded. My problem is that when this page is loaded, it covers the whole page with the url passed and is not limited to that particular uiwebview. and as a result... | stackexchange/codereview |
I have a question regarding CSS in Firefox.
If i set a width of a floated div - lets say 200px - setting a padding-left to 10px will in Firefox add those extra 10px to the width. In IE that is not the case.
What can you do to prevent Firefox from adding the extra width to the div?
| stackexchange/codereview |
I can't figure it out how I can send commands via JSch shell channel.
I do this, but it doesn't work:
JSch shell = new JSch();
String command = "cd home/s/src";
Session session = shell.getSession(username, host, port);
MyUserInfo ui = new MyUserInfo();
ui.setPassword(password);
session.setUserInfo(ui);
sessio... | stackexchange/codereview |
I want to post some value through a href. However, I do not like to use a link like index.php?id=value. Is there any other method?
I want to post test1 and test2.
<div id="div1">
<li><a href="index.php">test1</a></li>
<li><a href="index.php">test2</a></li>
</div>
<div id="div2">this is a <? $_POST["name"]; ?>, jus... | stackexchange/codereview |
I am looking for an option to move a <div> on the page when the page is loaded.
The <div> contains a chat window.
The box must fall down slowly to the bottom of the page and land on the footer.
How can this be achieved?
| stackexchange/codereview |
I have upgraded my iPad to iOS4.2 (gold master 8C134) but I didn't upgrade to the second gold master 8C134b.
Now that iOS4.2 has been made available on iTune, the gold master image has been removed off the developer account, but I am stuck in the 8C134 build of iOS4.2
iTune check for update doesn't recognize that I don... | stackexchange/codereview |
I was computer science student in college,one of the courses was c++.
I enjoyed learning the native c++. i studied to pointers and classes and inheritance .
After that i took data structures, it was a nightmare(code implementation).
reasons are :
1-I'm not ready (i was careless back in school before college, my math sk... | stackexchange/codereview |
My program terminates for some reason. Its a rock-paper-scisors simulation.
The termination takes place when I enter something in the first nextLine.
If anybody could please help.
import java.util.*;
import java.math.*;
public class RockPapperScissors {
/**
* @param args
*/
public static void main(String[] a... | stackexchange/codereview |
Is there any way to show more than one field name in optionValue?
<g:select name="id" from="${Books.list()}" optionKey="id"
value="" optionValue="name"
noSelection="${['null':'Select Publisher...']}"/>
Expe:
<g:select name="id" from="${Books.list()}" optionKey="id"
value="" optionValue="n... | stackexchange/codereview |
Nearly synchronous works, too; basically, I want to delegate the data access and processing behind a web app to a task queue for most jobs. What's the fastest latency that I can consider reasonable for celery tasks?
Update (for clarification)
I guess for clarity I should explain that throughput -- while nice -- is not ... | stackexchange/codereview |
I've tried on two separate development machines, but I can't get the doctrine:generate-migrations-diff to work.
I keep getting the same error:
PHP Fatal error: Class 'ToPrfxPage' not found in /private/var/folders/a1/a1HQHKvmG-4VtnVS-e4i1E+++TI/-Tmp-/toprfx_doctrine_tmp_dirs/ToPrfxLibraryPage.php on line 32
It looks l... | stackexchange/codereview |
i am making a website. it basically calculates shortest paths on a graph with dynamically changing weights.
I am planning to use jsp for development
The original weights are stored in the database. Once my website is up and running, people may log in and perform tasks that may cause the edge weights to change. They ma... | stackexchange/codereview |
I'm attempting to write a program which requires the use of a for-loop, among other things.
I am having a terrible time trying to find examples of basic code such as this on other websites.
If someone could please provide me with a simple for loop, or even the instructions I should be looking at I would be greatful. A... | stackexchange/codereview |
I'm building a Silverlight 4 app. I'm trying to use XElement to read XML. The following code doesn't work for me:
string data = @"<?xml version='1.0'>
<Data>
<TopicGroups>
<TopicGroup>
<Name>Documents</Na... | stackexchange/codereview |
What is the strategy in smarty for using different variables each time a template is included in another template?
Here is what I mean.
I have a smarty template that creates a simple navigation list.
<ul class='linkList'>
<li>
<h3>{$title}</h3>
<ul>
{foreach $links as $d}
<li><a title='{... | stackexchange/codereview |
BufferedImage bufferedImage = ImageIO.read(new File("/...icon.jpg"));
// this writes the bufferedImage into a byte array called resultingBytes
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
ImageIO.write(bufferedImage, "jpg", byteArrayOut);
byte[] resultingBytes = byteArrayOut.toByteArray();
I us... | stackexchange/codereview |
Upon pre-submission review, I realize this question might be incredibly silly.
if (this.gameOver(gpos) > 0) {
//do stuff
return this.gameOver(gpos);
}
Compare
if (this.gameOver()) {
//do stuff
return this.gameOver(gpos);
}
I was in doubt as to whether or not the first example would call this.gameOver(... | stackexchange/codereview |
How to programmatically add an option to a dijit.form.Select . I've looked all over the place and I'm not able to find it.
| stackexchange/codereview |
I faced to a situation that puzzles me but I guess the answer is very simple, it is just I can't see it... Hopefully someone can help me
I have a git repo. git-status says that I have 4 commits queued:
]$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 4 commits.
#
nothing to commit (working... | stackexchange/codereview |
I have the below html that is supposed to create a fly out Menu. In Chrome and FF it works as expected. Unfortunately in IE8 all I get is a tiny white box & in IE9 it does nothing at all. I used the Developer Tools(F12) and monitored the Network which showed the following successful GET --> /icenter/config/wwcMenuCo... | stackexchange/codereview |
I'm creating a site using .Net 4.0 and C# with the MVC2 Framework.
I have 5 different projects under the solution - AdminPresentation, FrontEndPresentation, DataAccessLayer, Business, Tests.
I'm looking to implement a logger that can be used throughout all the layers and was advised that it might be best to include the... | stackexchange/codereview |
Last Friday, I've built an RPM spec for my Django project. The RPM creates a virtualenv, downloads dependencies via pip and puts everything into the packages. Today, I've found out that BeautifulSoup 3.2 has been released. Luckily, I've had my BeautifulSoup version pinned in the requirements.txt, so I found out because... | stackexchange/codereview |
i have two different tables
table1 - property
=================
id,name, address, city state, zip
table2 - floorvalue
===================
id, rentmin, rentmax, bedrooms, bathrooms
i need a query to fetch min rent values from the two tables, the current below query getting for eg two records with all the values lik... | stackexchange/codereview |
I was going through my Win32 class today to work on some long-needed improvements. I am stuck on my disk geometry code. On the
var ob =
(DiskGeometry)Marshal.PtrToStructure(geomp,
typeof (DiskGeometry));
line, it keeps throwing an exception..
Attempted to read or write protected memory. This is often an indicat... | stackexchange/codereview |
I'm trying to do some currying in ruby:
def add(a,b)
return a+b
end
plus = lambda {add}
curry_plus = plus.curry
plus_two = curry_plus[2] #Line 24
puts plus_two[3]
I get the error
func_test.rb:24:in `[]': wrong number of arguments (1 for 0) (ArgumentError)
from func_test.rb:24:in `'
But if I do
plus = lambda {|a,b|... | stackexchange/codereview |
Alright, what I'm trying to do is print out a few lines of text onto a page from a database, and the problem I'm running into is when it sees something like a ' in the text, it puts out a ?. So what I'm wondering is there a way around this? I know with HTML you can use special characters, but I'm working with dynamic d... | stackexchange/codereview |
What is the best way to display the same web page differently between Mobile Safari and a WebView inside an iPhone app? (It seems both would have the same user agent so how else can I detect the difference?)
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.