instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I can't find my test.db in the file manager in DDMS. Does someone know when we create a database, where it's installed ?
| stackexchange/codereview |
I can do this in the controller to get the model class:
self.class.name.gsub("Controller", "").singularize.constantize
But is there a built in method for this in the controller?
Something like self.model_class?
Thanks!
| stackexchange/codereview |
I would like to pull data from my server and add to a table object. Loop thru the data afterwhich I would like to display the results on the aspx page.
DataTable dTable = new DataTable();
dTable.Columns.Add("idNum", typeof(Int64));
dTable.Columns.Add("Name", typeof(String));
dTable.Columns.Add("Age", typeof(Int64));
... | stackexchange/codereview |
I am very new to MVC and LINQ.And have some questions.
I have a table named users where I am storing "M" or "F" for male and female.There is another table called Genders Which is linked to the Users table.I have Users Model in ASP.NET MVC application.My question is when I show data where should I create a property to c... | stackexchange/codereview |
I have multiple apps running which access a sql server database. I had initially a table set aside for each app but now I was told to put everything into one table and have all apps access the database. I just want to make sure that just changing my connection string for all apps will suffice and that I do not have to ... | stackexchange/codereview |
Users selects two or more elements in a HTML page. What i want to accomplish is to find those elements' common ancestors (so body node would be the common ancestor if none found before) ?
P.S: It can be achieved with XPath but it is not a preferable option for me. Also it may be found with css selector parsing but i th... | stackexchange/codereview |
I've written methods that help me get the size of files/folders and translate the result in a human readable string. Problem is, when this size exceeds about 2.1GB, the number returned changes to a random negative number, like "-4324234423 bytes", which is useless.
Things I've found out about & done about this issue:
... | stackexchange/codereview |
I am having trouble implementing a trackball rotation on OpenGL. When I rotate my cube using the trackball rotation 90 degrees to the right along the X axis (dragging mouse left to right on screen) and then try rotating it dragging my mouse from the top to the bottom of the screen, I expect the cube to rotate along my ... | stackexchange/codereview |
For my project I need to show a horizontal scroll bar in the Pocket Internet Explorer (PIE). The best discussion I could find on the web is at http://www.pocketpcjunkies.com/Uwe/Forum.aspx/pocket-pc/31244/Horizontal-scroll-only-PIE which does not have a clear solution. Can you please give me some directions on how to d... | stackexchange/codereview |
On the following code
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP);
s.Bind(new System.Net.IPEndPoint(IPAddress.Parse("127.0.0.1"),0));
s.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.HeaderIncluded, true);
byte[] bin = new byte[4]{1, 0, 0, 0... | stackexchange/codereview |
Does anyone know a good way to cache a collection of objects returned by a selector.
var $platforms = $(".platforms");
var i = 0, l = $platforms.length, current;
for(;i<l;i++) {
current = $($platforms[i]); //calling jQuery() in a loop. Should be cached
}
The above code creates a jQuery instance of each elemen... | stackexchange/codereview |
Python: How to get the sum of timedelta?
Eg. I just got a lot of timedelta object, and now I want the sum. That's it!
| stackexchange/codereview |
I did a program in C++ but it does not allow to save on c:\SomeDirectory\afile.txt
I'm using this:
FILE* m_hFile = fopen("c:\\SomeDirectory\\afile.txt", "a+t");
fprintf((FILE *)m_hFile, "testing");
fclose(m_hFile);
Why that? Is there a defined folder I can save in?
| stackexchange/codereview |
I have about 10 standard blocks of dynamically generated HTML that get included on a large percentage of pages on my site (informational sidebars).
I can use #include statements or define them as a macros, both would work.
What's better? I'm new to Velocity and migrating a site from JSP.
Why use one vs the other? Why ... | stackexchange/codereview |
I have a situation where I have to dynamically build a linq query based on user selections.
If I had to dynamically generate sql I could do it this way:
var sb = new StringBuilder();
sb.AppendLine("SELECT * FROM products p");
sb.AppendLine("WHERE p.CategoryId > 5");
// these variables a... | stackexchange/codereview |
I'm trying to get my web app to recognize my working directory.
When running as a windows service, I can set
--StartPath=C:\Path\To\Directory\
and using that I can access files starting from that directory.
ie - Folder\Folder2\file.txt can be opened and recognized as being
C:\Path\To\Directory\Folder\Folder2\file.t... | stackexchange/codereview |
A html/CSS problem, if someone would be kind enough to help...
I have the following CSS and code for my new menu, but IE8 renders triple the amount of space between lines of text in the menu (span big and small).
When I use text-indent on the sub menu items instead of margin, that's when it plays up. IE7 is fine, as is... | stackexchange/codereview |
I just started using subclipse for my class projects after a re-writing half of a project due to going off on the wrong logical branch. Since I'm using it on my home systems, I have a couple questions whose answers I haven't found in searching.
Say I have local separate repositories on my computers. First, can I use... | stackexchange/codereview |
I want a parent div to stretch when the child table width goes beyond page width.
what would be the best css solution for this?
| stackexchange/codereview |
The following code works as intended:
template <typename T>
inline char* Utils::PushData(char* destination, T data)
{
memcpy(destination, &data, sizeof(data));
destination += sizeof(T);
return destination;
}
However, when I use this:
template <typename T>
inline char* Utils::PushData(char* destination, T d... | stackexchange/codereview |
i have written following vbScript file to make several programs autostart with delay:
'Delay time 50 seconds
WScript.sleep 50000
Set WshShell = WScript.CreateObject("WScript.Shell")
'Google Trans
WshShell.Run "E:\prg\gDesktopTranslator_v1.0\gDesktopTranslator.exe"
WScript.Sleep 2000
'Skype
cmd_1 = chr(34) & "C:\P... | stackexchange/codereview |
When my app loads the following error comes up on some devices. It refers to none of my source files at all! How do I go about fixing this one?
java.lang.NullPointerException
at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42)
at com.google.android.maps.MapView.onDraw(MapView.java:494)
at android.vie... | stackexchange/codereview |
i want to disable pdf options from pdf file while opening pdf file from sharepoint library in sharepoint 2007.
| stackexchange/codereview |
Can anyone take a look a this ? : http://www.woowoomac.com/storage/awesome-note-iphone-note-todo-app-menus.jpg?__SQUARESPACE_CACHEVERSION=1268581762429
As we know iphone 4.0 does not support UIPopovers - any idea how did they manage to create a pop over like that ?
| stackexchange/codereview |
I've got a method that creates some Foo and adds it to a vector of Foos. Foos are in charge of deleting their Bars during destruction. The Foo constructor takes a pointer of Bars and a size of them. When the function returns, the local Foo gets deleted and destroys its Bars, however I get a valid Foo object back.
How s... | stackexchange/codereview |
I am building a timer for a website that will count down between two php date()s.
The whole site uses php and there are a lot of time/date functions which rely on date_default_timezone_set() etc.
So, back tot he timmer...
I can get it working, well if I refresh my screen every second, the problem I currently have is th... | stackexchange/codereview |
Is there a Linux command-line app which will compare two binary files and exit on the first mis-match?
cmp doesn't seem to have the quit opition.
| stackexchange/codereview |
I'm extending an open source project with additional functionality. So I'll be basing my code on the released version of the source code. The open source project uses SVN and I uses Git.
How would I rebase only to the released version (SVN tags) instead of to the HEAD of trunk when a new version is released?
Thanks.
| stackexchange/codereview |
I have some filters on the left. Each filter has an id. The id of that filter is used to filter some results that have the id of the filter in their classes.
Filters refer to characteristics of products.. example
<a id="filter_colorRED">RED</a>
...
<li id="item4" class="filter_colorBLUE">Blah Blah</li>
<li id="item5"... | stackexchange/codereview |
Where can I find information (books, papers, tutorials) on how concurrency primitives are usually implemented? I'm mostly interested in the implementation of inter-process communication, or message-passing (both synchronous and asynchronous): send, receive, select etc.
| stackexchange/codereview |
Is there some function which will tell me how many bytes does a string occupy in memory?
I need to set a size of a socket buffer in order to transfer the whole string at once.
| stackexchange/codereview |
I display a winform as a dialog (with ShowDialog over a main window).
So, I set the FormBorderStyle to None because I wanted neither the control boxes nor the title bar.
Though, I would like a border drawn (for example a blue border like normal windows) and keep the ability to move the form.
I don't need the ability to... | stackexchange/codereview |
How to? The spinner not showing, but the imageview yes. When i click on the image, then the Spinner showing up.
| stackexchange/codereview |
I get a collection of business entities (table data) equal to around 49000 . I am trying to copy certain values from this collection to anothr collection using Add method and manually adding values to its properties
For example
//Returns arounf 49000 VendorProduct collection this refers to the data in the table Vendo... | stackexchange/codereview |
I'm trying to get an image of an offscreen window to use in a CALayer-based animation, but no matter which method I try I cannot get an image out the other side. Here is the code I've been using on a custom NSWindow subclass in my project:
CGImageRef windowImage = CGWindowListCreateImage(CGRectNull,
... | stackexchange/codereview |
on my website it is a div based layout when the window is reszied everything is pushed together. Such as images overlap or are moved below each other and divs also overlap each other.
How can I get it to scroll when the content of the div is greater than the window size, similar to facebook if you resize the window it ... | stackexchange/codereview |
I wish to have a non-template class with a template constructor with no arguments.
As far as I understand, it's impossible to have it (because it would conflict with the default constructor - am I right?), and the workaround is the following:
class A{
template <typename U> A(U* dummy) {
// Do something
}
}... | stackexchange/codereview |
I have a bunch of tabs that activate different pages of content and I'd like them to loop automatically until the user clicks on one of them.
$("#projects_list ul li a").each(function() {
activatetab($(this));
});
So I want activatetab($(this)) to be executed every say 5000ms and once the final tab is activated it sh... | stackexchange/codereview |
I'm looking to create a listview screen similar to the Sound Setting screen (in the built in Settings app, see image below), i.e I want some rows to have text + checkboxes, other rows to have text + "pop up" buttons, some rows should have text only etc.
What is the best way to accomplish this?
| stackexchange/codereview |
void main()
{
float f = 0.98;
if(f <= 0.98)
printf("hi");
else
printf("hello");
getch();
}
I am getting this problem here.On using different floating point values of f i am getting different results.
Why this is happening?
| stackexchange/codereview |
I am trying to use synchronous send/reply from the handler function of the generic host windows service as below. But I think NServiceBus will send the message only after completing the handle function(during the current transaction complete). So below code will hang in ‘synchronousHandle.AsyncWaitHandle.WaitOne()’.
Wh... | stackexchange/codereview |
In absence of any index the table rows are accessed through IAM ((Index Allocation Map).
Can I directly access a row programmatically using IAM?
Does absence of index mean that the only way to read specific row is full table scan reading all table?
Why IAM cannot be engaged for more specific direct access?
"If the... | stackexchange/codereview |
Is there a more compact way to do this sort of initialization?
for (var i = 0; i < arraySize; i++) array[i] = value;
| stackexchange/codereview |
I'm making a PDF reader and it works pretty good with most PDFs. While testing with a bunch of different documents (on an iPad), I've found one that crashes the app - it makes heavy use of vector graphics and images so I'm not surprised. I also bought a bunch of PDF readers (most notably Good Reader and ReaddleDocs) to... | stackexchange/codereview |
first some background. Here is the SQLite script I created:
create table Person(
ID integer not null primary key autoincrement,
Name text not null
);
create table Department(
ID integer not null primary key autoincrement,
Name text not null,
Leader integer not null references Person(ID)
);
It generates the following ... | stackexchange/codereview |
My cucumber scenario tests if my news can be create without a title. This must show "You must specify a title.".
In my news model, I have:
validates_presence_of :title, :message => I18n.t(:specify, :what => 'a title')
and in my en.yml have got :
specify: "You must specify %{what}."
but when I run my test, the resul... | stackexchange/codereview |
hi is it possible to set the page count for the silverlight datapager control with no itemsource for the datpager.
if not possible is there any other equivalent controls to use as datapager in silverlight
| stackexchange/codereview |
this is my sample code. I have a total of 3 ListGrids, each which resides in a Canvas, inside 3 tabs, which is inside one TabSet. If I remove the uncommented lines, I cant select any values, because on every click, the ListGrid is populated.
tab.addClickHandler(new ClickHandler() {
@Override
public voi... | stackexchange/codereview |
<?php
$file = file_get_contents('http://domain.com/background.gif');
echo $file;
?>
it echo a very long string(GIF89aÅÕ2cŒ®³¾J}BvUyš±µÁJr•O€d,,,,), not a image, how to fix it?
| stackexchange/codereview |
I have an NSArray stored as a property of my class with a retain attribute. I use a NSURLConnection to return me data as JSON. I use TouchJSON to convert it into a NSDictionary object which I store into the array. I'm using this array as the datasource for a UITableView, but after scrolling through the table a few t... | stackexchange/codereview |
They appear to assume that "web designers assume a fixed 72DPI" (or something specific anyway). But desktop DPI usually depends on screen physical size.
When I visited this site, I noticed its fonts look tiny compared to other browsers.
After some quick research, I stumbled into Development advisories from Google Chro... | stackexchange/codereview |
Why I get this error?
use strict;
use warnings;
my $str = <<str;
88087 23/11/2010
35192 25/07/2010
B3J 5X9 17/08/2011
C8U 5L6 16/08/2011
F4Q 3B4 17/10/2010
D3X 9P4 11/05/2010
O7L 6Z8 28/02/2010
W8L 9P2 05/09/2010
str
print $str;
my @arr = split/\n/,$str;
foreach (@arr) {
my @tmp = split/\t/;
... | stackexchange/codereview |
Apparently, realpath is very buggy. In PHP 5.3.1, it causes random crashes.
In 5.3.0 and less, realpath randomly fails and returns false (for the same string of course), plus it always fails on realpath-ing the same string twice/more (and of course, it works the first time).
Also, it is so buggy in earlier PHP versions... | stackexchange/codereview |
In the method "OnCreate" of my actvity, I'm displaying a little progress dialog while loading data. It's done every time the "OnCreate" method is called so even when the screen orientation change.$
In the nominal case, there is no problem even if the user change the screen orientation.
But, if the user opens another di... | stackexchange/codereview |
Hey there. Today I wrote a small benchmark script to compare performance of copying variables vs. creating references to them. I was expecting, that creating references to large arrays for example would be significantly slower than copying the whole array. Here is my benchmark code:
<?php
$array = array();
for... | stackexchange/codereview |
currently I'm an internee and about to join in a project in which I have to take responsible for implementing the server side part.
The scenario:
_There are many kiosks, each runs a winform application, this application read barcode from customer's card and then send the info to server.
_The server has several web serv... | stackexchange/codereview |
I'm new to Java WEB Development please help with this !!
my link in the action-servlet is
http://myproject.co.in:9090/a/userSignUp.action
i got a new user registration page and i have given an action for the log in button..
but if i click the button its redirecting to this page ..
please help and thank you for your ... | stackexchange/codereview |
there are many windows PE resource viewers programs. But how do they work? Do they decode function calls to winapi, or does PE have some section for GUI information? Like Android has XML GUI definitons? Thanks.
| stackexchange/codereview |
I've been searching for hours trying to find a way to animate/rotate a UIView 90 degrees from the upper right corner.
The effect should almost work like a swinging door from the top of the screen.
Hope someone can help!
| stackexchange/codereview |
Usually when you call root.find('.test'), it'll return all elements with test class inside root. Is there any way to consider root as possible candidate too?
In other words, with html
<div id="x" class="test"></div>
, $('#x').find('.test') would return 1 element instead of zero.
If we generalize it, in expression roo... | stackexchange/codereview |
I'm thinking about creating a virtual world using the open source socket server 'Red5'.
I know that i'd have to develop a custom adapter/addin to make it suitable for a virtual world. but am unsure where to start. I have a good knowledge of java.
| stackexchange/codereview |
My Application is created in Vc++ and from the exe I try to load a Excel plugin which is created in C# . I communicate with Excel Plugin by using CreateInstance . But after doing 2 or 3 communications . Create Instance crashes on checking the Event Viewer I am getting these entries
1) .NET Runtime version 2.0.50727.4... | stackexchange/codereview |
I've got some problems with XSL : is it possible to use a template from another one, when it uses an apply-templates to print childs ? I don't want to use current node, but really create a new element matching the template.
Example of what I'm searching :
XML file :
<root>
<toto name="foo">
<b>hello</b>
</toto>... | stackexchange/codereview |
Is there any way to indent the default back button on a UINavigationBar? Basically I just want to move it about 10pts right.
Thanks
| stackexchange/codereview |
How can I specify which fields to return in a group() query? find() has fields parameter; group() doesn't.
| stackexchange/codereview |
I'd like to implement a class type for my own little language but what I thought at first wouldn't be too hard has got me stumped. I have the parser in place and it's the code generation side of things I'm having problems with. Can anyone shed any light on the best/correct way to go about this? Specifically I'd like to... | stackexchange/codereview |
actually this code is working well in firefox mozilla but it's not working in IE8
<asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btnPrimary" OnClientClick="return doSubmit('this');"
OnClick="btnSubmit_Click" />
<script type="text/javascript">
function doSubmit()
... | stackexchange/codereview |
Is order of execution in constructor initialization list determinable? I know that members order in a class is the order in which those members will be initialized but if I have scenario like this:
class X()
{
X_Implementation* impl_;
};
and then providing that allocator is available:
X::X():impl_(Allocate(sizeof(X... | stackexchange/codereview |
I've seen a lot of advice about Git workflow, but it wasn't extremely usable for us. I'd like to get a piece of advice with respect to our situation.
We are a very small web-development company from Russia. A lot of our orders are small web-sites for firms or events. It adds some specifics to our workflow.
A "release"... | stackexchange/codereview |
I want to provide some dynamic content like an rss feed, so when they go to mydomain.com/fishcake.rss it runs some code on the server to generate it and returns it back.
I am guessing maybe an ashx file and something in the webconfig to associate it with the path I want, but I'm not totally sure. Can you help?
| stackexchange/codereview |
I am trying to construct this query with Zend DB:
SELECT
`s` . * ,
`a` . *
FROM
`shr_statement` AS `s`
LEFT JOIN
`shr_answer` AS a`
ON
a.statement_id = s.statement_id
AND
a.user_id =1
WHERE
(s.language = 'en_US') AND (s.is_active =1 )
ORDER BY
`order` ASC
I read about a poss... | stackexchange/codereview |
I have to do read an Large InputStream comming from a URL.
I loaded the InputStream to the BufferedInputStream and read it to a byte[ ] and I append that byte [] to a StringBuilder converting it to a string. After all data has been appended to the StringBuilder, the resulting String contains some missing and unexpect... | stackexchange/codereview |
I'm trying to learn git by applying it (retroactively) to a project where I have been tracking a remote codebase for a while.
When I put everything into git, I simply made a remote branch for all the external versions and put my versions on master, so currently my repository looks like this:
master: A0---A1.0--A1.1--... | stackexchange/codereview |
Here is my scenario: we are planning to automate the deltabuild process, meaning I need to create a tool to facilitate this deltabuild process.
What I need to do is to compile only those files that have changes in it. How can I programmatically add an assembly reference to reference other dll's so I don't need to com... | stackexchange/codereview |
I need to add items to explorer context menu. When files/folder are selected different menu items should be visible in context menu.
Sub-menus
Menu icons
Support to interact with different file types
Support multi selected files and folders
I have read about IContext.
There is no native support in .NET framework, but... | stackexchange/codereview |
(I am a VIM-n00b)
According to the VCSCommand docs, the commands will operate on a directory if you are currently in a "directory buffer". I can't seem to find any other references to opening a "directory buffer" though.
What am I (probably very stupidly) missing?
| stackexchange/codereview |
I have a game with infinity procedually generated terrain. I'm using 1/f noise for the height (I think this is perlin noise?). Anyway it looks nice, but its not very playable since it doesn't really have flat areas. Just decreasing the amplitude won't work since I still want a large variation in height. Does anyone kno... | stackexchange/codereview |
I am having some trouble getting my code do what I want it to do, and I would appreciate your help.
What I would like to do is:
From a textbox, I add a name for a product and create a object with that name.
The product object is then added to a Dictionary.
Then, I want to bind this Dictionary to a dropdown list.
If I... | stackexchange/codereview |
I'm coding a team collaboration web app in PHP, and I have a few events that users get notified about through email and/or SMS. The current way I'm doing it is as follows:
Every user has his notification settings in the database as boolean variables.
Say users would be notified when someone comments on the team's page... | stackexchange/codereview |
I'm using the following code fragment to stop a service. However, both the Console.Writeline statements indicate the service is running. Why won't the service stop?
class Program
{
static void Main(string[] args)
{
string serviceName = "DummyService";
string username = ".\\Service_Test2";
... | stackexchange/codereview |
I wrote code:
str = "INSERT INTO prod_LJ_Completion VALUES (" _
& 0 & ", " & PartID & ", " & cmbLJ_TypeID.value & ", " & isChk(chkLJ_Transformator.value) & ", " _
& isChk(chkLJ_LAD.value) & ", " & txtLJ_KevlarCable.value & ", " & txtLJ_GrayCable.value & ", " _
& txtLJ_WhiteCable.value & ", " & cmbLJ_Cylinde... | stackexchange/codereview |
What does --pre do in gem install rails --pre ?
| stackexchange/codereview |
I have two tables: Job, and JobKeyword. JobKeyword contains three fields: Id, JobId and Keyword, so every Job has its JobKeyword-s. How can I use SQL Server Full Text Search so it will query the Job table, with keywords from the JobKeyword table?
This is my current SQL:
WITH JobRN AS
(
SELECT TOP (@End) searchTabl... | stackexchange/codereview |
I need to find the closest date to a given date using a rails named scope.
With MySql I could use DATEDIFF but I want to keep database agnosticism, following doesn't work with Sqlite:
named_scope :closest_to, lambda { |*args|
date = args.first
count = args[1] || 1
{:limit => count, :order => "ABS(DATEDIFF(hour, ... | stackexchange/codereview |
i'm working in Visual Studio 2008 and in the project settings I see the option for "activate Extended Instruction set" which I can set to None, SSE or SSE2
So the compiler will try to batch instructions together in order to make use of SIMD instructions?
Are there any rules one can follow in how to optimize code such t... | stackexchange/codereview |
I'm having a bit of difficulty adding some CSS to a link. I'm using a CMS that automatically generates menus in an unordered list. However, where you're on a given page, it applies class="active" the the li and not to the link itself. This works fine for adding a background to the link, but I'm trying to change the lin... | stackexchange/codereview |
I'm trying to setup debugging of stored procedures in VS 2008 Pro, when I right-click on the connection in the Server Explorer I don't see the Allow SQL CLR Debugging option at all. The SQL Server is remote and running the 2005 express edition, so I'm not sure if I have to enable something on the remote server itself.... | stackexchange/codereview |
In PHP, I use CURL to send a .PEM formatted certificate to a remote host. For example:
curl_setopt($curl, CURLOPT_SSLCERT, '/path/to/file.pem');
How can I do this in Java?
| stackexchange/codereview |
I wrote a simple AJAX callback function in Drupal that performs a query to the DB and returns a JSON formatted string. Nothing fancy, the standard AJAX declaration in the module with a modest amount of information (less than 4KB). The query to the database takes 52ms. Drupal adds around 320ms of overhead for a total of... | stackexchange/codereview |
Possible Duplicate:
What is the difference between a tag and a branch in git?
What I'd like to do is create checkpoints for different versions of my code. So once I make a bunch of commits, I want to say, "Okay, at this point in the code, this is version 0.1 completed". And then I can make a bunch more commits and do... | stackexchange/codereview |
I have form tag in an ASPX page,
<form id="payForm" method="post" action="<%Response.Write(URL);%>" runat="server">
</form>
On the pageload event,
Literal mylit = new Literal();
mylit.Text = string.Format("<input type=\"hidden\" name=\"{0}\" value=\"{1}\" /> \n", name, value);
payForm.Controls.Add(mylit);
How do I m... | stackexchange/codereview |
I have this banner rotator function:
var banners = ['../Graphics/adv/1.gif','../Graphics/adv/2.jpg']; //here put location of the files to display
var loadedImgSrc = null;
function loadBanner() {
var liczba = Math.floor(Math.random()*banners.length);
loadedImgSrc = banners[liczba];
var objImage = new Image();
o... | stackexchange/codereview |
I have a program that converts files. It takes an input file name and an output file name, reads from one and writes to the other, with some modifications. I have the source, but it is huge and I don't have the clear picture of its operation. I can tell that files are opened using _wsopen_s in read-write mode (_O_RDWR)... | stackexchange/codereview |
I have a problem regarding the use of interfaces vs concrete classes.
I have a base class that implements some common properties/methods. Now i have two possible extensions. Either this base class can have some property called Parameters, Or it can have another property called Children, or it can have both.
The way i s... | stackexchange/codereview |
Has anyone developed an abstraction layer above Amazon Web Services and the Google App Engine? It would be nice to be able to develop a system that could be migrated between either of those two platforms. I am interested in Python.
| stackexchange/codereview |
so let me preface this with the fact that I am a beginner at ruby and FXruby. I would like to know how I can fetch images by using a URL. This is the code I used when getting them off my desktop:
require 'rubygems'
require 'fox16'
include Fox
class Image_Viewer <FXMainWindow
def initialize(app)
super(app, "Im... | stackexchange/codereview |
I'd like to define a class which is derived from System.Data.DataTable.
This class has a PopulateColumns method which as you can guess populate the DataTable.
I want this method to be able to dynamically populate the datatable columns with any number custom data types. (See my code below for clarification)
I tried usin... | stackexchange/codereview |
I'm pushing to a few viewcontrollers with my UINavigationController and when I'm on my 3rd UISubViewController I coded to 'popToRootViewController' and it pop's back, but the navigationbar-items push to the 2nd view controller not to the 1st..
I tried it with and without animating, but nothing is gonna change.
I tried... | stackexchange/codereview |
My goal is to have a program that sleeps in the background but can be activated by the user via some "hotkey". From digging around the Xlib manual and the Xlib O'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the process is incorrect as a simple proof of concept do... | stackexchange/codereview |
I'm using jquery.load() to dynamically load sections of a page. But I'd like the included sections to both include HTML and be able to execute script. But a simple
<script>
alert("hello");
</script>
doesn't run when I AJAX it in. Is there another way to dynamically load content such that the scripts will run, ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.