instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I got a script that I want to use to change a repeated string throughout a project folder structure. Once changed then I can check this into SVN. However when I run my script it goes into the .svn folders which I want it to ingore. How can I achieve this? Code below, thanks.
import os
import sys
replacement = "newStri... | stackexchange/codereview |
I have an excel File which has sub-script and super script in it. When I save it in HTML format, I can see that they are embedded within 'sub' and 'sup' tags respectively.
What I want to do is, read the content of excel file, so that I can show the text with super/sub scripts on my report. I can read HTML, but want to... | stackexchange/codereview |
I could not find any phing plugin for netbeans
| stackexchange/codereview |
I want to make a program in Assembly that will read a string from keyboard then convert every letter throughout another table and then store it in a table at [201]. At [200] I have a char counter of my string. Here is what I have done:
mov [0300h],88h ;thats the table that I want to convert to.(only 3 digits)
m... | stackexchange/codereview |
I was looking for a javadoc-like REST API documentation tool. I already documented my rest controllers in javadoc and I think it would be nice to just create an api documentation from it for the front-end developers.
I think there isn't a tool, yet. So does someone have ideas how to accomplish this task? I thought abou... | stackexchange/codereview |
I have use the custom splitview in the my application.
custom splitview .h file
@interface CustomUISplitViewController :UISplitViewController {
BOOL keepMasterInPortraitMode;
BOOL keepMasterInPortraitMode1;
}
and .m file is
-(void) viewWillAppear:(BOOL)animated {
keepMasterInPortraitMode1=keepMasterInPortraitM... | stackexchange/codereview |
Say I have my object layout defined as:
typedef struct {
PyObject_HEAD
// Other stuff...
} pyfoo;
...and my type definition:
static PyTypeObject pyfoo_T = {
PyObject_HEAD_INIT(NULL)
// ...
pyfoo_new,
};
How do I create a new instance of pyfoo somewhere within my C extension?
| stackexchange/codereview |
I've always wondered why any jQTouch files are served with the mime type "application/x-javascript" as opposed to "text/javascript". Is there a particular reason for this I wonder, or is it just for accuracy's sake?
| stackexchange/codereview |
I have a php wiki that a customer would like to export a php wiki for use by their customers on local environments without access to the internet. I envision a php script that will export the php to HTML, store it in some folders and then zip it up and make it available for download.
I am wondering if there is a scri... | stackexchange/codereview |
Does anyone know if there will be support for applications like that you download from the market to be written in canvas+javascript?
I know currently there is html5 and canvas support for the android browser but I am looking more for a solution for full screen games and such.
Thanks
| stackexchange/codereview |
I am trying to have the same placeholder text centered in two different sizes of the same UITextField.
The UITextField in question is 243 wide in Portrait and 360 in Landscape.
When in Portrait the placeholder centers in the middle just fine. When I rotate to Landscape and the UITextField gets redrawn bigger, it is no ... | stackexchange/codereview |
I need to get all parameters from the request including what comes after "#".
example:
request: http://myserver/m#q=abc
I need my server to get all parameters after "#" as they where after "?"
How can i do that?
10x,
Koby
| stackexchange/codereview |
I'm trying to Stop SSIS Packages during runtime with this code
RunningPackages pkgs = app.GetRunningPackages("myserver");
foreach (RunningPackage p in pkgs)
{
Console.WriteLine("PackageName: " + p.PackageName);
p.Stop();
}
No errors during runtime
However, when I debug to pause between stopping each packages ... | stackexchange/codereview |
I'm using lots of different records in a program, with some of them using the same field names, e.g.
data Customer = Customer { ..., foo :: Int, ... }
data Product = Product { ..., foo :: Int, ... }
Now as the accessor function "foo" is defined twice, I get the "Multiple declarations" error. One way to avoid this woul... | stackexchange/codereview |
I'm receiving the hours, minutes, and seconds as an integer user input.
Now, when I try and use DateTime.Parse and DateTime.TryParse AND Convert.ToDateTime, they all return the correct hours/minutes/seconds; however, it also returns the date (year, month, day and so on.)
string a = this.hours.ToString() + ":" +... | stackexchange/codereview |
I'm envisioning my (now local) program running on a server in the future with a web interface, using Tomcat and servlets. I'm just confused about how I can integrate my existing application with HTTPRequests coming to a servlet.
Should my application be running already, and the servlet can transfer control?
Or is my... | stackexchange/codereview |
In Firefox there are plugins and extensions. Could you please explain to me why these addons have different name and tabs ? Does they differ so much so they need different names? I think it's a little unnatural to differ these things, extensions have so much and more functionality, what they lack for comparing to plugi... | stackexchange/codereview |
Java for Mac OS X 10.6 Update 3 upgraded to java 1.6.0_22. However, they did not include the source code or JavaDoc. Does anyone know if Apple provides the source, and if so, where to find it?
I'd like to attach the source to Eclipse.
| stackexchange/codereview |
I want to render a video frame-by-frame using DirectX 10. The frames would be processed later by some other tool like mencoder or ffmpeg.
I had no problems doing so in DX9 using D3DXSaveSurfaceToFile.
Now, in DX10 I've found D3DX10SaveTextureToFile, but had no luck using it to save my backbuffer.
I use the following co... | stackexchange/codereview |
I am working on a MVC project, where I have got allot of direction and help getting started from tutorials and other sources. All of which reference the NHibernate.Linq library. However, it appears that it was removed from the main download source and source I read pointed to it possibly being absorbed by NHibernate ... | stackexchange/codereview |
If I'm entering code into the REPL using clisp, as in the program you get when you do sudo apt-get install clisp, is there a way to take all the code you've entered so far and save it in a file? I'm a Lisp beginner so I don't know if that's a ridiculous request or not.
| stackexchange/codereview |
I'm trying to write a simple program to alert me when ram is getting fulled, but I've some problems with sysinfo(), the sample program is in C, I've grabbed it from a site with examples the code seems to be okay, any ideas of why this can be happening ? sorry about my english it's not my native language...
code is bel... | stackexchange/codereview |
I'm using the following regular expression to pull out some html:
(?i)(?:\<tr\s*class='list'[^\>]*\>)[^$+]*\</tr\>
Problem is its not segregating the TRs correctly. I'm trying to use $+ to reference the tag selector again to ensure that the contents of the match don't have the start tag again. Here is the sample htm... | stackexchange/codereview |
I implemented a custom drop down with HTML, CSS and JavaScript. It works well now, but I am not happy with the way I am doing "blurring" right now. When you open the list, and then click somewhere else, it should collapse. What I did was that I added an event listener (mousedown) to the window after expanding the list,... | stackexchange/codereview |
I'm trying to understand why android uses two sets on numbers , platform version and API level. API Level, documentation states that "Each Android platform version supports exactly one API Level", does that mean, Google can provide a new(improved) platform, but still decides to go with earlier API level thus not making... | stackexchange/codereview |
How can I keep track of Printer's activities such as:
When did printing start?
How many pages have been printed out? etc
| stackexchange/codereview |
Does javascript work proberly? What colors should I avoid? Does flash work as it should? Do .hover .click, etc work as they should? What about TV browsers?
Are there any major gotchas that differentiate developing for the TV form factor, as opposed to a normal monitor?
| stackexchange/codereview |
I have a JSON object that can (is) storing a Date (and/or any other JS object) but I'm not sure how to get it out once it's in it. For example I have this sample code, but it's not working:
for(var key in value){
if(value.hasOwnProperty(key)){
if(typeof value[key] == 'object'){
if(value[key].Dat... | stackexchange/codereview |
I need the most simple auction script you can imagine.
I dont need categories, just a listing of items in a single page.
It needs to have a description with pictures.
I have mysql, php, cgi, perl, ruby .. and a lot of other stuff installed on my server, but I prefer PHP.
Can anyone please give me an idea of such a bas... | stackexchange/codereview |
So I am trying to invoke the JUnit Parameterized test runner on a load of individual generic typed objects. The specific classes to be used are known to descendant classes.
Originally I managed to get a method which returns a Collection<T> for JUnit to work with, but then I realised JUnit actually requires a Collection... | stackexchange/codereview |
Here is the fiddle. Some code I am working on, essentially I want the selected button to turn Orange.
Demo below
Fiddle here > http://jsfiddle.net/ozzy/veqwu/4/
Perhaps also with a notice: You Picked Button 1 in a div element. ( elsewhere on the page )
I have tried all manner of css effects, but reckon the only way is... | stackexchange/codereview |
I want to use Entity framework in silverlight , But with out RIA service .
Is there any way ?
If WCF RIA is mandatory than why so ?
| stackexchange/codereview |
I have 3 classes of task (I, D, U) which come in on a queue, tasks of the same class must be processed in order. I want tasks to run as concurrently as possible; however there are some constraints:
U and D cannot run concurrently
U and I cannot run concurrently
I(n) requires U(n) has completed
Q: What design pattern... | stackexchange/codereview |
I have installed red5 server on my localhost on which an xampp running. I can access port 80 externally so anyone knowing my id can access my web directory. However, an external computer cannot connect to my red5 I believe as I have a the videowhisper script installed and while I can connect to rtmp server locally, an ... | stackexchange/codereview |
I'm new to prism and wonder how to organize the projects/modules for a line-of-business application.
In some places I read that the interface to the (WCF) service should be put into the infrastructure project. So, since the service interfaces do need the declarations of the data objects (customers, orders, etc) this wo... | stackexchange/codereview |
I started my own android app a few days ago since I needed a mobile application to store a bunch of data I collect in the hospital.
I'm pretty new to Java and android environment, although it seems easy to understand and very similar to C++.
Anyway, my application has a bunch of "EditText" and radio buttons and my ques... | stackexchange/codereview |
Greetings,
It's a provocative question, aiming to open debate about how abstraction inversion are seen among developer community. I'm really curious to know what you think.
First, here is a quote from the abstraction inversion exemples given by Wikipedia:
http://en.wikipedia.org/wiki/Abstraction_inversion
Creating an ... | stackexchange/codereview |
I have the following table in an application I am developing using ruby on rails:
I want to create a test in cucumber where I select a user from the table and delete it or edit it.
I don't know what is the step definition for that.
I'd like to be able to do something like:
Feature: User Manegement
In order to... | stackexchange/codereview |
I am using fusion chart in my asp.net application. I want to use multiple fusion charts in a single page. But only one fusion chart is displayed.. Pls help me if any body knws about this problemm...
Iam using an ashx file(handler) for creating xml.
Advance thanks
| stackexchange/codereview |
I have a clever program which given a file containing very specific metadata of a database, an entire project is generated for me in eclipse. It uses hibernate to access the database and provides basic crud functionality as well as provides xhtml interface.
It all works great and virtually anything can be done so long... | stackexchange/codereview |
I am trying to add table rows dynamically......
Following is my java code:
TableLayout tl = (TableLayout) findViewById(R.id.tablerow);
/* Create a new row to be added. */
TableRow tr = new TableRow(this);
tr.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)... | stackexchange/codereview |
I have a function in a class that queries a database. I create the query on the fly by using where clauses based on variables.
Say I have a method like this:
function getBackups($from, $to, $clientid){
//sql here
//add where clause if $from and $to not null...
}
If I want to call this somewhere In a situati... | stackexchange/codereview |
I am new to android programming. In my application, i want to implement automatic scrolling. So, i used scroller for this purpose.It is performing scrolling but not maintaining constant speed till the end of scrolling the text. Can anyone help me out of this problem.
Here, is the code used for scrolling:
prompt_text.s... | stackexchange/codereview |
I have a VB.NET project in Visual Studio 2010 for an Excel Add-In.
I use the "My" namespace, and in general it seems that the "My Project" folder contains configuration information about the project.
My problem is that I need to change the name of this folder, because my version manager system won't accept spaces in fi... | stackexchange/codereview |
How do I handle thread affinity issues in windows phone 7 when I'm building a multi-threaded application? A simple example is the user kicks of some long running process that is handled in another thread which updates a UI element when it's done. How do I get back to the main thread from the worker thread?
| stackexchange/codereview |
Hello i'm trying to use facebook showPermissionDialog to get user datas
this is my code
function switch_menu(element, id) {
var ajax = new Ajax();
Facebook.showPermissionDialog('manage_pages,offline_access,email,publish_stream,user_photos,user_birthday')
ajax.responseType = Ajax.FBML;
ajax.ondo... | stackexchange/codereview |
This is my code:
$.ajax({
type: "POST",
url: "/myURL",
success: function(msg){
alert(msg);
// aler prints success, but msg != "success" ????
if (msg == "success") {
//my code
} else {
//other code
}
}
});
Something weired happens: the a... | stackexchange/codereview |
I have a problem with Visual Studio 2010. It happens when I scroll down/up, for example, in properties window. Its content becomes blurry for milliseconds.
It also happens in my own WPF applications when I use a “ScrollViewer”.
Does anybody know how to solve it?
| stackexchange/codereview |
As a programmer I would have expected this to throw an exception. Is there a reason why it treats null as ""?
string s = "hello";
string t = null;
Console.WriteLine(s + t);
Output:
hello
Just to emphasise my question, do you know why the decision to turn null into String.Empty was made? I was expecting some string ... | stackexchange/codereview |
In Visual Studio 2010 I have created a new project with the Silverlight Business Application template. I added an Images folder under the Assets folder. The png files in this folder have Build Action set to Resource, and Copy To Output Directory set to Always. In the header section I added an <Image Source="Assets\I... | stackexchange/codereview |
Background:
I am using SQLite3 to represent a directed graph.
Scenario 1:
I have two tables: Node and Association
The Node table holds a node ID and data relevant to the particular Node.
The Association table holds a Parent Node Field and a Child Node Field (and an primary key ID).
Scenario 2:
I have one table: Node
Th... | stackexchange/codereview |
I have a WPF datagrid. The contents of the grid are bound to the SELECT result of a dataset. The grid is loading fine. Once the grid is loaded, I would like to specify an event in the WPF binding to update the contents of the grid (as well as the DB on the backend). This is working, but the first change is not bein... | stackexchange/codereview |
I've written some custom logic to get NUnit tests into a TFS build. It's all working beautifully except when the tests don't pass the build is partially succeeded rather than failed. Anyone know how I can tell it to fail?
Here's what I'm trying:
<BuildStep Message="Integration Tests Passed"
Condition="$(TestsResult)... | stackexchange/codereview |
StringBuidler sb="ram"
StringBuffer sf = "ram"
Both throws comile time error .
Please explain Why??????
| stackexchange/codereview |
$('#foo').css({color:'black'}).append('<div>bar</div>').css({color:'red'});
Given the above, the css() method is applied to foo, but how could you get it to apply to the div that wraps "bar"?
The only way I could think of to do this in the same execution line would be to create a jQuery div object inside of the appen... | stackexchange/codereview |
I want to create Mac Dock kind of menu for one of my application.
Please let me know, if there is any open source library or code.
Thanks in advance.
| stackexchange/codereview |
Background:
I have two web applications, set up on different web servers, which are currently both IIS6. Application 1 (A1 - a1.domain.com) uses the forms auth cookie set by application 2 (A2 - a2.domain.com).
In A1 web.config I have:
<authentication mode="Forms">
<forms name=".ASPXAUTH" domain="domain.com" protection... | stackexchange/codereview |
I need to change a column's data type but I do not every location in the database that might be referencing it. Is there a script or application that can search all views, stored procedures, functions, table computed columns, etc. within a database and show what is referencing the column? I am using SQL Server 2005 S... | stackexchange/codereview |
Is there any way to prevent a number such as 10000000 being auto converted to a float?
| stackexchange/codereview |
I am trying to find the location and frequency of the following patterns
x37 x41
x42 x43
x44 x45
x46 x63
x75 x76
x81 x82
x83 x95
x96 Bottom1
Bottom2 Bottom3
Middle Middle1
Right1 Top3
in a htdocs directory.
Thanks in advance!
| stackexchange/codereview |
I'm trying to understand what cursors are and what use they are to me as a developer.
Please explain what they are and what benefit they bring over using say Entity Framework with an IQueryable<T> collection.
Also, imagine I have a table called Person. How would I apply cursors to this table?
create table Person
(
... | stackexchange/codereview |
Possible Duplicate:
How to stop C++ console application from exiting immediately?
I've just started to use Visual Studio 2010 while learning C++. When I compile and run my code, I briefly see the command prompt appear on the screen before disappearing and see the following in the debugger regardless of what I have w... | stackexchange/codereview |
I know there are questions posted elsewhere about how to implement in-app purchases on iPhone and Android, but none answer the legality of the solutions today. At the time of release, there was some dispute over whether some of these solutions violate terms of service, but it's now several months later. There are als... | stackexchange/codereview |
I have a class that loops over some data files, processes them, and then writes new data back out. The analysis of each file is completely independent of the others. The class contains information needed by the analysis in its attributes, but the analysis does not need to change any attributes of the class. Thus I c... | stackexchange/codereview |
Using the standard route pattern
{controller}/{action}/{code}
and then a standard ActionLink in my view
<%: ActionLink("Details", "Details", new { code = item.Code }) %>
When the user has entered "N/A" as their code I see the following URL
http://localhost/AbsenceCode/Details/N/A
When I expect to see this
http://loc... | stackexchange/codereview |
I have a postgresql 9 installation on windows, which doesn't have built in uuid generator. There is OSSD package, which can be bound to postgresql as uuid generator, but it's for *nix only (I think).
How can I generate uuid in windows postgresql?
| stackexchange/codereview |
I am wandering if there is a way of hooking an event defined in XAML to a F# function of member ? Of course, I could do it diagrammatically but it is kind of inconvenient.
| stackexchange/codereview |
Is it possible to pass native JavaScript objects such as arrays and hash-map-like objects to Flash Player with SWFObject?
I basically need to pass an array of objects to Flash from JavaScript in the Flash variables, so this is my code:
swfobject.embedSWF("application.swf", "divvy" "100%", "100%", null,
{ 'info': [... | stackexchange/codereview |
I have a model, which has and array of names and I want to ensure that only one document can have a given name. I'm trying to write a custom validation to handle this. My custom validation and the model look like this at the moment:
lib/unique_name_validator.rb
class UniqueNamesValidator < ActiveModel::EachValidator
... | stackexchange/codereview |
I'm working on a strongly-typed edit form for a MVC model that contains a collection of child models (Document contains many LocalizedDocuments). Each document can contain 0, 1, or many localized documents, and every localized document has an input type="file" to allow the user to upload a new version of the file.
To ... | stackexchange/codereview |
I was cleaning up some code and happened upon com.example.StringHelper that contained 6 or 7 public static methods (for example concatStrings(String...), but no member fields. There were a number of classes subclassing this class just so they could call concatStrings(str1, str2) without prefixing it with the class like... | stackexchange/codereview |
I'm building a program for the Euler projects question 3, and while that might not really matter as a result I'm current trying to make this code take a number and test if it is prime or not. Now then before I get to troubleshoot the function it gives me the error "floating point exception" right after inputting the nu... | stackexchange/codereview |
There is an AuthenticationBase class in WCF RIA Services. The class definition is as follows:
// assume using System.ServiceModel.DomainServices.Server.ApplicationServices
public abstract class AuthenticationBase<T>
: DomainService, IAuthentication<T>
where T : IUser, new()
What does new() mean in this code... | stackexchange/codereview |
I have created a simple drop down menu, with functions in it. And then I realized that after I execute functionA, I could not execute it again. I have to execute functionB(another function) before being able to execute functionA again... May I know how can I solve this problem? Below are my codes.
Thanks!
function ch... | stackexchange/codereview |
Iam trying for a dropdown list .since there is no direct tool for drop down list in iphone, i thought of keeping UITableView .When the button is pressed the tableView Should appear ,when the cursor is clicked on the free space it should be disappeared.Since iam using more than three buttons the single UITableView shoul... | stackexchange/codereview |
Wondering if someone can help me out here. New to ASP.NET.
Trying to output the PageName in a masterpage.
Masterpage has a Literal in which I am setting by accessing a property on the MasterPage "PageTitle".
<head runat="server">
<title><asp:Literal ID="litTitle" runat="server"/></title>
<asp:ContentPlaceHolde... | stackexchange/codereview |
I'm using EmailSpec to test emails with Cucumber. My tests fail and says no email is being sent, but I couldn't find anything wrong with my code, so I tried it in production and emails are sent.
Here's the failing step:
# ...
And I should see "You have requested for a condition report, and will be emailed one as soon a... | stackexchange/codereview |
I am writing something in C using Netbeans 6.9.1 (its a requirement) and I stumbled upon a peculiar bug. When I try to run this code from Netbeans:
#include <stdio.h>
#include <stdlib.h>
#include "company_description.h"
company_description read_company_description() {
char file_name[FILE_NAME_BUFFER_SIZE];
FI... | stackexchange/codereview |
I used to default export option in reporting service to export the report in CSV format.
my table result is
sno sname values method
1 aaa 123,124,145 aa
2 bbb 234,454,565 bb
3 ccc 454,511,455 cc
This table value i exported... | stackexchange/codereview |
Background:
I have an HTML file that takes multiple parameters and uses javascript to dynamically render the page. This page is pulling data from multiple static local XML files and processing.
For example, service.html?ID?123 returns a page specific to ID number 123.
That is easy and is done.
Problem:
I want to use jQ... | stackexchange/codereview |
I have following problem:
I have main (parent) procces, which creates another processes (childs) using fork function. I am catching child's status to eliminate zombies. When there is 1 child process, it is catched correctly, but when there are more processes (aprx. 30) created by parent process, there are aprx. 4 zombi... | stackexchange/codereview |
...working on a primitive RSA (public/private key) based copy protection mechanism for our software. We are not using 3rd party products, but are implementing Microsoft's LicenseProvider model.
We have ways in place to identify the specific computer, but have not figured out how to check the current date against an exp... | stackexchange/codereview |
Here I have an accordion script styled correctly. The nav item(link) that when clicked the text is grey & blue when active. Further there is a black bar and two images for active & inactive (arrow pointing left & arrow pointing down when active).
Here you see the same nav item styling but I need it to be just blue te... | stackexchange/codereview |
What do I need to use to write out my TAB character?
| stackexchange/codereview |
I need help, I'm getting error: Input string had an incorrect format.
Thanks in advance.
FORM2.CS:
public void loadClient(object source, System.Timers.ElapsedEventArgs e)
{
Form1 f1 = new Form1();
client = Client.GetClients()[0];
short port = short.Parse(f1.returnTBOX4().Text);
... | stackexchange/codereview |
In order to make my buttons big and square rahter than rectangle, so that they are easier to touch, I want to display the Image on top of the Title, and not on the left.
I can't see any option in Interface Builder 3.2.4 to do that.
Is there any trick to achieve this?
Thanks!
| stackexchange/codereview |
To put simply, I'm trying to find and replace text with the wrapped xhtml tags without touching the surrounding text. Ideally I was going to use regex in Notepad++ but have had no experience with regular expressions and only limited experience with PHP,
For example:
Year: 2007 Registration: XYZS23
Transmission: Aut... | stackexchange/codereview |
I have a question regarding data transmission from php to javascript. I gather some data from database and I format them like this:
for($i=0;$i<(sizeof($lt_periods_query['period_id']));$i++){
$period_id = $lt_periods_query['period_id'][$i];
$lt_id = $lt_periods_query['lt_id'][$i];
$period_name = $... | stackexchange/codereview |
When you normally want to add an AppWidget in Android there is a list where you need to pick one widget and it binds it to the home screen.
I'm trying to build an app which has its own appWidgetHost and specific App Widgets that I built for it.
I have two problems:
I would like to be able to automatically bind a widge... | stackexchange/codereview |
Stack-O
I have a click once application that has been deployed, and I tried installing it on a coworker's computer and got the following error:
Unable to install or run the
application. The application requires
that assembly System.Data.SqlServerCe
version 3.5.1.0 be installed in the
Global Assembly Cash (GAC... | stackexchange/codereview |
With session I mean a period from opening IE8 to closing IE8.
The secure mode of IE8, which is enabled by default, seems not to like cookie use between sessions sometimes (When using SSL I think). It leads to 'cookie not recognised' at our site. I saw at another site that they throw away (?) data after a session, i.e. ... | stackexchange/codereview |
I want to build a holding page so that during site maintenance we can display something appropriate.
Shopping list:
Ease of toggling On/Off
Don't want Google BOT to think all the pages have disappeared NOINDEX/NOFOLLOW
Don't want users seeing IIS7's "ERROR 500 go away" message - show my Custom Page instead
We use... | stackexchange/codereview |
I understand that I cannot load a 32 bit dll in a 64 bit process. I have a 32 bit dll (VB6 component), with no source code, that is loaded in an Excel automation macro. What are my options?
| stackexchange/codereview |
I'm not understanding something about variables in javascript. I am trying to change/calculate "offset" (with the variable "theOffset") either before the localScroll function occurs, or more preferably when you resize the window. None of the instances below work, accept for the "//initialize offset".
How do I get the v... | stackexchange/codereview |
How do I use CMake with Visual Studio 2010 on the command line?
With Visual C++ Express Edition (2010) I would type:
cmake .
nmake
nmake install
simple.
I noticed with Visual Studio 2010, CMake generates a solution file instead of a Makefile. So I type:
cmake .
msbuild mysolutionfile.sln
But then what? I used to be... | stackexchange/codereview |
I want to have a Storage interface(abstract class) and a set of Storage implementations (SQLite, MySQL, Memcached..) for storing objects of a known class and retrieving subsets from the Storage.
To me the clear interface would be:
class Storable{int id; blah; blah; blah; string type;};
class Storage{
virtual Sto... | stackexchange/codereview |
I have a listView WinForms-C# that I've binded to a database (MySQL) table but I can't seem to figure out how to have the listView automatically display the results when changes are made to the database table (update/insert) without the user having to fire an event i.e. button_click, timer_tick, etc...
Can someone plea... | stackexchange/codereview |
I have got a question about plotting package for c++. For last few years I was using python and matplotlib, right now I am using c++ and I would like to find something similar to matplotlib (http://matplotlib.sourceforge.net/gallery.html) like 2d, 3d plots, histograms and so on and so on. I just want to know Your recom... | stackexchange/codereview |
I want to create a table like a map displaying the location, weight, and status of paper roll on the warehouse. Location includes lane (A, B, C, D, E) and position (1, 2, 3, ..., 13). Status can be in 4 cases depends on weight of paper roll, I want to display them in different colors:
1. Weight > 700 kgs. --- Green
2. ... | stackexchange/codereview |
I am trying to load values into VF input box based on the account selected from popup.
<apex:pageBlockSectionItem id="pageblocksectionitem5">
<apex:outputLabel value="Account Name"></apex:outputLabel>
<apex:panelGroup style="border: 0px solid Blue;" >
<apex:outputPanel layout=... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.