instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to have a class that runs functions backwards like foo.method1.method2.method3 and I want the funcitons to run method3 method2 then method1. But it goes 1 2 3 now. I think this is called lazy evaluation but I'm not sure.
I know next to nothing about Ruby so please excuse this question if its simple and I should ... | stackexchange/codereview |
I have a table with a date column that I know is stored in GMT. I have a procedure that accepts a date input and an account ID. The procedure:
1) gets the account ID timezone (stored in table account)
2) determines the start and end range in GMT as follows:
v_start_time := cast( from_tz( cast( i_date as timestamp ... | stackexchange/codereview |
I am unsure on how to google this, so let me just try to explain. Train numbers are a slot in a timetable, and hence repeat everyday. For each train, there are a set of events from start to finish, and those events include a value for the current weight.
What I would like to find out is the peak per train. If I just wa... | stackexchange/codereview |
I need to know if the device is connected via WIFI or not. This should be pretty simple, but I broke my neck on the sample code apple supply HERE. I can't seem to get it to work in my own app. Is this not the only thing I need to do?
IN H:
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <SystemCon... | stackexchange/codereview |
I have a function f() and an IEnumerable<string> from which I want to create another IEnumerable<string> so that for each string s in the original enumeration the new one has s and f(s). The order of elements is important.
Example:
IEnumerable<string> given = { "A", "B", "C" };
IEnumerable<str... | stackexchange/codereview |
I'm struggling to find a complete example of how to create the the request context necessary to test outbound urls with Rhino Mocks.
I've got an example of using Moq that I have attempted to convert to Rhino Mocks but I'm not having much luck.
private static HttpContextBase MakeMockHttpContext(string url)
{
... | stackexchange/codereview |
I am trying to count the number of Tabs that are open in my google chrome browswer with javascript. Does anyone know how to do this?
I wrote some javascript that I want repeated 10 times and then stop. Upon the completion of 1 iteration, I open a new window using:
window.open("http://www.test.com");
I want to do thi... | stackexchange/codereview |
Is it because this technology is tied to Windows? Reason I ask is I read and have been told here that it's not dependent on Windows, so can be ported to other platforms.
In that case shouldn't it be in a non-Windows namespace?
My colleague told me it's because Microsoft didn't want WPF to be ported to other platforms.
| stackexchange/codereview |
Problem
We have a complex domain model. To avoid performance issues, most of the list (generated from domain objects) are cached. Everything works well until the first domain object changes. All depending list in the cache must be refreshed - the question is: how?
Example
Domain object: House
Action: Name of a house h... | stackexchange/codereview |
I'm currently learning Magento and seem to have come across a problem that is familiar with a lot of people in my position, yet none of the given solutions work for me. I am looking to populate the navigation menu with all the categories found in the root category but the piece of code I have to do this does not work. ... | stackexchange/codereview |
I want the last character from a string
I've got str.[str.Length - 1], but that's ugly. There must be a better way.
| stackexchange/codereview |
Is it possible to get the ip address from android app?
| stackexchange/codereview |
I know that you generally initialize a static member variable from within a .cpp file. But my question is: why do you have to?
Here's an example:
#include <vector>
using namespace std;
class A {
public:
static vector<int> x;
};
main() {
int sz = A::x.size();
}
This gives a compiler error: undefine... | stackexchange/codereview |
Initially asked in SuperUser: https://superuser.com/questions/206822/specifying-worksheet-name-required-when-identifying-a-cell-by-name-in-excel-2007.
I don't know if this is a change in the version, but in 2003 this used to work in Access VBA:
Dim xlSheet As Excel.Worksheet
xlSheet.Range("RangeName").Value = 100
Prev... | stackexchange/codereview |
I am implementing a project with Selenium 2, which currently doesn't support confirm dialog boxes very well.
There is a workaround to this limitation, you just overwrite the window.confirm to return the value which you need to return for the specific test case.
The following strings can be set and then executed:
publ... | stackexchange/codereview |
I'm a reasonably experience programmer (10+ years), and have only hacked JavaScript. I don't feel comfortable writing more than a few lines of it, but I'm seeing it more and more unavoidable to learn properly.
I get the same feeling writing JavaScript as I first did writing Unix shell scripts. I didn't fully understa... | stackexchange/codereview |
Is it possible to be notified in Android when the Audio system starts playing audio? it looks like i should wire up a BroadcastReceiver, but it's not clear what i would listen for. I could listen for the MediaPlayer intent, but that would only capture when that particular application was playing audio, not when a third... | stackexchange/codereview |
I am trying to install CodeRush and ReSharper together.
After installing ReSharper, my CodeRush shortcuts disappears. Does anyone know how to restore my CodeRush shorts with Resharper installed?
This is my current setup:
1. Visual Studio 2008
2. Installed CodeRush XPress 10.1
3. Installed ReSharper 5.1
I am installing... | stackexchange/codereview |
Possible Duplicate:
How can I open android browser with specified POST parameters?
I would like to do something
like this:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.somepage.com?par1=val1&par2=val2"));
But I dont want to send the parameters with get but with post.
How can I do this as descri... | stackexchange/codereview |
I want to find the time difference so i am trying to use DATEDIFF option.
But the problem is i am having the time values in hhmm format(eg: 1715). So it showing out of range error. so i want to convert it to hh:mm format. How to convert hhmm to hh:mm format?
| stackexchange/codereview |
So, I have a simple properties file with the following entries:
my.value=123
another.value=hello world
This properties file is being loaded using a PropertyPlaceHolderConfigurer, which references the properties file above.
I have the following class, for which I'm trying to load these properties in to like so:
public ... | stackexchange/codereview |
I am using pagespeed , yslow to check the no of http requests and website organization for jss,css and images.
we implemented aggregation for js and css files into one js and one css based on the above tools suggestions.
Is there any other things apart from pagespeed and yslow to look at it to take care of website perf... | stackexchange/codereview |
My Linux server need to be able to handle 30+ eclipse instances for developers. I did a quick test of running 10 eclipse instances. The Java process associated with each eclipse initially around 200MB RSS memory, increased up to around 550MB, when more projects are loaded.
But Java process doesn't seem to release memor... | stackexchange/codereview |
I have made this script to open a fancybox from code behind, but it keeps saying "u is undefined"... not sure what's wrong
StringBuilder sb = new StringBuilder();
sb.AppendLine("<script>");
sb.AppendLine("$.fancybox('../Popups/EndedProduction.aspx?Iframe', {");
sb.AppendLine("'width': 557,");
sb.AppendLine("'height': ... | stackexchange/codereview |
I'm developing an web application using asp.net MVC and jQuery. I have in my page 10 forms and I'm using jQuery (live events) to do a async submit them. Something like this:
Everything works fine, but I need to format a Div with an image and when user clicks on this div I need to submit the form, but... the form is not... | stackexchange/codereview |
I'm not a Web Developer, and I don't know a lot about the web application frameworks out there.
Recently, however, I got into Wt. It's a web framework written in C++ (that's why I got into it), but what impressed me the most is the idea it's based on.
Its API is different from any web framework I ever heard of (CppCMS,... | stackexchange/codereview |
I have YSlow and ShowSlow and pagespeed integrated into our continuous build in a way that when tests are run, yslow will pass metrics like pageload time, pageweight etc to the Showslow server which in turn displays the result graphically. I currently have this setup working but I still dont know how to configure which... | stackexchange/codereview |
msg = \
"""To: =?ISO-8859-1?Q?Caren_K=F8lter?= <ck@example.dk>, bob@example.com
Cc: "James =?ISO-8859-1?Q?K=F8lter?=" <jk@example.dk>
Subject: hello
message body blah blah blah
"""
import email.parser, email.utils
import itertools
parser = email.parser.Parser()
parsed_message = parser.parsestr(msg)
address_fields... | stackexchange/codereview |
What is the best way to pass a variable from an OnClick event. To elaborate I would like to bind some data to the button and then when that button is pressed I would like to pass that data back to the code behind and do something cool with it.
I have found several ways of doing this, passing a commandParamter, add a bu... | stackexchange/codereview |
I need to write some text at the end of txt file. But i can only rewrite all file. How can i add text to the end of file?
Thank you.
| stackexchange/codereview |
In my application i want to set image as background to navigation bar and at the same i want to show date on left corner of thenavigation bar am able to set the background image to navigation bar but iam unable to put text on left corner of navigation bar any help.. Thanks in advance
| stackexchange/codereview |
I am having a mutable array which has differnt value at differert index such as at
index value
0 Hi
1 this
2 is
3 iphone
4 testing.
So at differnt index ,array has different string value now i want this into one string which has reads as Hi this is ipho... | stackexchange/codereview |
I am using dijit.layout.TabContainer , i didnt find in the documentation an event like "onTabChange"
I want to indentify when a tab is seleted and which tab is selected.
How can i achieve this? thnak you
| stackexchange/codereview |
I'm looking for a way to get all the local drives on a Windows machine,
So far, I tried with two options
1)
# Win32Com
from win32com.client import Dispatch
import sys
fso = Dispatch('Scripting.FileSystemObject')
for drive in fso.Drives:
print drive, drive.DriveType
2)
# win32api
import win32api
import win32fi... | stackexchange/codereview |
I am using CakePHP 1.3 and writing custom shells to run mundane tasks in cronjobs. I am seeing failed Model->save() from time to time but I don't know anyway to find out what the exact problem is.
Is there a way to display the actual SQL statements executed and warning/error returned by MySQL in a CakePHP shell?
Thank... | stackexchange/codereview |
I've managed to get my allocations down to next to nothing using DDMS (great tool), this has drastically reduced my GCs to about 1 or 2 every 3 minutes. Still, I'm not happy because those usually cause a noticeable delay in the game (on some phones) when you interact with it.
Using DDMS, I know what the allocations are... | stackexchange/codereview |
I have a situtation. Im creating Listbox in Silverlight Navigation App and as datatemplate i have Grid with HyperlinkButton.
I need to select ListBox.CurrentItem AND to Navigate by HyperlinkButton the same time.
Problem is that it only navigates but not selects item.
P.S. Im using MVVM.
| stackexchange/codereview |
I need to play mp3 file. I want to use winmm.dll (Windows 7)
class Program
{
[DllImport("winmm.dll")]
private static extern long mciSendString(string Cmd, StringBuilder StrReturn, int ReturnLength, IntPtr HwndCallback);
static void Main(string[] args)
{
string FileName = @"F:\MUSIC\ROCK.mp3";
... | stackexchange/codereview |
I'm trying to see if a file exists with Wix. I have tried the following:
<Property Id="TEMPFILE" >
<DirectorySearch Path="[TempFolder]" Depth="0" Id="TempFolderDirectorySearcher">
<FileSearch Name="temp.txt"/>
</DirectorySearch>
</Property>
But it seems this property is initialized on startup then never again.... | stackexchange/codereview |
I have two animations defined in my silverlight app :
<Storyboard x:Name="ShowControls">
<DoubleAnimation Duration="0:0:0.2" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="SlideOutMenu" />
</Storyboard>
<Storyboard x:Name="Hide-Controls">
<... | stackexchange/codereview |
How to have recognized all the libraries Rpy2 R.
Rpy2 not recognizing the libraries, utils, and tools.
import rpy2.robjects as robjects
R = robjects.r
>>> R['library']("utils")
RVector - Python:0x7f65fc85cfc8 / R:0x19bb980
>>> R['library']("tools")
RVector - Python:0x7f65fc85f5a8 / R:0x2419140
(>>> from rpy2.ro... | stackexchange/codereview |
Our company has defined a number of "best practices" with regard to Maven poms. For example, specifying utf-8 for resource processing, which folders to do filtering on, handling unit tests vs integration tests, and compiler settings.
Right now, these best practices are documented on our company wiki, but when the list... | stackexchange/codereview |
Consider a Wicket WebPage that redirects to another page (based on some logic omitted from here):
public class SomePage extends WebPage {
public SomePage(PageParameters parameters) {
setResponsePage(AnotherPage.class);
setRedirect(true);
}
}
I need to pass on the PageParameters to that other pa... | stackexchange/codereview |
Where can I find the code for creating an online rebol console like the one here ?
http://tryrebol.esperconsultancy.nl/
Update: for the sandbox system on the server, can't Rebol manage it itself with some security wrapper and its security options ?
As for console itself, I don't know Ruby so I don't want to use TryRuby... | stackexchange/codereview |
I can look up records by values and/or ID
I can add records
I can delete All records
I can delete a specific record (by either value or ID)
But, the record ID only increments - it never adjusts to reflect the number of remaining records after deleting a record.
I haven't found anything on this subject (not even in th... | stackexchange/codereview |
Is there a free documentation for getting the Transport Stream from UDP packets captured from the network?
| stackexchange/codereview |
I'm using awesome_nested_set. And there are of course many JS libraries. Anything particularly good to use for trees, with Drag-and-drop and ease of use ?
| stackexchange/codereview |
I have a module that automatically outputs (in dot format) functions written in some kind of assembly language (the IR of my compiler). The nodes are the basic blocks printed using the 'record' shape. The problem is that the edges take a strange route, for example:
digraph {
node [shape = record];
n0[label="{<name> ent... | stackexchange/codereview |
How to implement DirectShow Library to build a WPF Application that can make
1. capture the video from webcam
2. screen capture to a video file
I try to find example code for the absolutely beginner
| stackexchange/codereview |
I want to load a bmp file into memory in C. I've found many different types of BmpFileHeader and BmpInfoHeader structures. The last one that I've taken it from msdn.microsoft.com but it still does not read properly from binary file. With test file lena
Image Size: -1076791624
Memory could not be allocated
What's the p... | stackexchange/codereview |
I'm developing a "real-time" web application which sends AJAX requests to the server every 10 seconds. Obviously this is very bandwidth-intensive and I would like to know if there's any solution to this.
My idea is checking if the user doesn't move his mouse for X seconds. How can I accomplish this?
| stackexchange/codereview |
I'm working on a click function which displays a sign-up form with a semi-transparent black background. Everything worked fine, except that I couldn't find a way to match the height of black background with whole height of the page.
I decided to add a CSS property "body{overflow:none;}" to the JavaScript function to s... | stackexchange/codereview |
I'm using Erlang to code a bittorrent client. I have been stuck for 4 days now on the same problem.
I'm sending the handshake to all the peers with each peer having its own ip:port.
I use gen_tcp:connect to connect.
The problem is that I can't get their reply. I have done a lot of research and used some programs to mo... | stackexchange/codereview |
Very basic question here:
Are there any disadvantages to using the ".*" qualifier when stating our imports into ActionScript files.
In other words, is this only a compile-time directive or does this actually affect the footprint and performance of our final builds?
TIA
| stackexchange/codereview |
I have the following code, and am having some problems with it. Any help would be appreciated. When I run the code, I got an error:
2010-11-11 12:28:15.352 addressBook[25563:a0f] *** __NSAutoreleaseNoPool(): Object 0x100111010 of class NSCFArray autoreleased with no pool in place - just leaking
I tried adding an au... | stackexchange/codereview |
I've almost got it, but it doesn't quite work. I'm trying to load the content via ajax, and it does load the correct content, I can see it loading in firebug however, it gives me an error: infowindow not defined. I've got something out of place with load_content
The two commented out lines before load_content work to... | stackexchange/codereview |
I have a windows service that polls an Oracle database at a given interval and, based on some criteria, updates several fields. To do this it opens a cursor and iterates through the rows to update.
protected override void OnStart(string[] args)
{
TimerCallback timerDelegate = new TimerCallback(DoStuff);
... | stackexchange/codereview |
Which would be faster in retrieving data from a mysql database? Data split across two columns, or the same size data from a single column?
Edit:
Just to give an idea, I have a table for a question and five answers it will receive. These answers are quite big about 1500 words each. When it comes to data retrieval spe... | stackexchange/codereview |
How would I change a pixel on a display, in C?
Assume NOTHING: I am using a linux machine from console to do this. I do not want to use GUI toolkits or frameworks to draw the pixel. I do not want to draw the pixel in a window. I want to draw the pixel directly to the screen.
EDIT: I have a screen. I'm on a laptop runni... | stackexchange/codereview |
I have developed an online survey that stores my data in a Microsoft SQL 2005 database. I have written a set of outlier checks on my data in R. The general workflow for these scripts is:
Read data from SQL database with sqlQuery()
Perform outlier analysis
Write offending respondents back to database in separate table ... | stackexchange/codereview |
Hey All,
Im working on an app for the iPad and Ive run across an issue that I need some guidance on. I have an app that uses the TabBarController. The TabBarController contains 4 UIViewController...one for each screen in the app. On each of these 4 screens, there are 4 tiles that need to act as buttons and play a video... | stackexchange/codereview |
What else I have to do in order to show ReadAccess enum members in this DatagridViewComboBox?
ReadDataGridViewComboBoxColumn.Items.Clear();
ReadDataGridViewComboBoxColumn.Items.AddRange(ReadAccess.None, ReadAccess.Allowed);
ReadDataGridViewComboBoxColumn.ValueType = typeof(ReadAccess);
here is designer-generated cod... | stackexchange/codereview |
I am not able to run the following test:-
@Test
public void test() {
EntityManager em = entityManagerFactory.createEntityManager();
em.getTransaction().begin();
CriteriaBuilder builder = em.getCriteriaBuilder();
CriteriaQuery<Project> query = builder.createQuery(Project.class);
Root<Project> proje... | stackexchange/codereview |
Let's say I have a user control test1.xaml and has a frame control name frame1. On my second user control, how do I reference the test1.xaml in my test2.xaml in order to manipulate the property of the control in test2.xaml.cs? Because I know that test1 test = new test1(); will not work because im not instantiating it a... | stackexchange/codereview |
I've got a web app and now I've been told to implement SSL for that. I've never done that before, but I seem to have understood from Internet docs on how to do that.
But, my app has two sides: the user interface which is fine under SSL and the second side is I have some files that need to bypass the certificate. These ... | stackexchange/codereview |
I have a C# Console application which references Sybase.Data.AseClient.
dev machine has version 1.15.325 version of dll
UAT has version 1.12.XYXZ
Prod has version 1.15.115
I get the below exception on a machine similar to prod
ERROR 2010-11-11 18:18:23,562 15546ms FxSpotRateServer Main - Err... | stackexchange/codereview |
In Cucumber, I'm trying to create a step like this:
Then I should see "Example business name" in the "Business name" input
I'd like the "Business name" input to be defined as "the input whose label has text "Business name."
Here's what I've got on the step so far:
Then /^I should see "([^"]*)" in the "([^"]*)" input$/... | stackexchange/codereview |
I already published an android app where you can see a list of specific objects and detailed informations about them. The list changes every day but some of the objects can appear again.
The application is communicating with a PHP server over HTTP and periodically pulls the list of objects.
I now plan to extend the app... | stackexchange/codereview |
Suppose we have a HashMap<String, Integer> in Java.
How do I update (increment) the integer-value of the string-key for each existence of the string I find?
One could remove and reenter the pair, but overhead would be a concern.
Another way would be to just put the new pair and the old one would be replaced.
In the lat... | stackexchange/codereview |
Knowing which row is trivial, as I get the rowIndex parameter, but how do you find which column is calling your method?
| stackexchange/codereview |
I have the following code using microsoft enterprise library 5:
Database database = DatabaseFactory.CreateDatabase("myConStr");
int rowsAffected = database.ExecuteNonQuery("[DeleteCustomer]", cboCustomers.SelectedItem.ToString());
The myConStr is correctly defined in the app.config (it works for other EL-based queries... | stackexchange/codereview |
Maybe I'm being misled by my profiler (Netbeans), but I'm seeing some odd behavior, hoping maybe someone here can help me understand it.
I am working on an application, which makes heavy use of rather large hash tables (keys are longs, values are objects). The performance with the built in java hash table (HashMap spec... | stackexchange/codereview |
Let's say i have this array:
$array = (1,2,4,5);
Now how do i add missing 3 in above array in the correct position index/key-wise?
| stackexchange/codereview |
I have a model with a custom method. Here's the example:
class MyModel(models)
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=50)
nickname = models.CharField(max_length=50)
time_created = models.DateTimeField(auto_now_add=True)
def sample_method(self)
right_now = datet... | stackexchange/codereview |
Is there a way to get a bar's index value?
So for example
bar_chart.hover(function() {
var test = this.bar.index;
});
Or something to that effect? Basically, if the bar chart consists of 10 colums and I click on the third, I would want the value 3 returned.
Thanks in advance.
David
| stackexchange/codereview |
When a user clicks on a select menu, I build the values dynamically in Javascript, and then call the jquery .html function on the select element. I can see the dynamic options in Firefox, but in Chrome and Safari, the select menu shows nothing. The options only show up if I close the menu and open it again. Anybody h... | stackexchange/codereview |
I'm trying to create a cube using one series of vertices such as attempted in this example (which I believe is wrong) and also talked about on this forum. The answer I'm looking for should look something like this:
1, 1, -1
-1, -1, -1,
1, 1, 1
... and so on. I'm hoping to get this down to a minimum of 13 vertices... | stackexchange/codereview |
Adobe Flex 3: can I get TTF/OTF system fonts and embed at runtime?
Hi,
I'm a Stack Overflow noob so please go easy on me.
I've searched all day and found dozens of tutorial/examples on how to use [Embed] metadata or
Flash SWF files but they all tell me to either use a path in the source attrib or a text string in the ... | stackexchange/codereview |
<div class="accordion">
<ul class="navigation">
<li>Lorem</li>
<li>Ipsum</li>
<li>Donor</li>
</ul>
<ul class="navigation">
<li>Test</li>
<li>Demo</li>
<li>Donor</li>
</ul>
</div>
How can we apply a class which is 'active' to first 'li' (ie;Lorem) only, not for all first 'li' under 'ul' using mo... | stackexchange/codereview |
I am trying to use SandCastle to generate some help documentation for my latest project. Everything worked fine for my utility project, but when I try to use it with my main project it barfs on Crystal Reports.
Generating reflection information...
[c:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe]
GenerateRefInfo... | stackexchange/codereview |
Here's what I am trying to do:
time sh -c "dd if=/dev/zero of=ddfile bs=512 count=125 && sync"
When run that on shell the o/p is
125+0 records in
125+0 records out
64000 bytes (62.5KB) copied, 0.028935 seconds, 2.1MB/s
real 0m 0.08s
user 0m 0.00s
sys 0m 0.01s
I want to capture the output to a variable or to a file. Ho... | stackexchange/codereview |
Hey I'm working on a view based application with many views and I would like it to remember what view it was on when the app was quitted so when you start the app again if will go right to the view you left of at.
Any help please :)
Thanks!
| stackexchange/codereview |
I'm building a small template system and i'm looking for a way to invoke multidimensional associative arrays using dots. For example:
$animals = array(
'four-legged' => array (
'cute' => 'no',
'ugly' => 'no',
'smart' => array('best... | stackexchange/codereview |
We are using Exchange Web Services from java (jaxws). Here's the issue. To get an attachment, you execute the GetAttachment soap call (logical enough :) ). Here's the problem: the entire attachment is returned (with no access to attachment size) in a base64 packet tucked deep inside a soap response along with other inf... | stackexchange/codereview |
i use
rails g scaffold_controller admin/sub/Product name:string
to generate crud page,
now i need write route.rb file to map the admin_sub_product_controller,how to write this route file on rails3?
it's hard for me to write 2 level namespace mapping route
namespace admin do
resource :products
end
this only wokrs ... | stackexchange/codereview |
In Ruby, you can do "var1".constantize to get the actual variable var1.
Ruby also has Model.Send("method name, parameters can be here, etc"), and it would be the same as actually calling that method.
What I want to do.. is... kinda tricky... I want the string "var1 == var2" to be converted to actual variables in my jav... | stackexchange/codereview |
I have two tables in an existing (MSSQL 2008 R2) database that are related by a link table.
The two tables are "Plan" and "Tips". The link table is "PlanTipLinks".
Plans can have many tips, and tips can be associated with multiple plans (i.e. it's a many-to-many relationship). In the application, I only care about the ... | stackexchange/codereview |
what does this() mean in Java?
It looks it is only valid when put
this();
in the class variable area.
Any one has idea about this?
Thanks.
| stackexchange/codereview |
Hi as an inexperieced python user I would appreciate any help with the following
programming challenge:
I have a text file with tabulated data, I want to read it and put the values
on each line into different python lists.
The file looks like this:
1 303233.479 233942.326 52.500 0.000 97 47 39.5 INFIN... | stackexchange/codereview |
I have and issue where i want to collect GPS data periodically, say every 5 minutes. I can do this no problem when the app is running. However i wanted to know if there is a standard way to do this using the iPhone 'multitasking'. I can collect the data using the background process using the constant updating model and... | stackexchange/codereview |
I need to create a listView. Every row of the list contains textView and EditText .How to make it?Thanks in advance !!
Note: I need to design this by using java only(Without using xml)
| stackexchange/codereview |
Does a library exist for AS3 that performs color conversions and transitions such as converting a hex with alpha component to a ColorTransform?
I'm basically looking for a wrapper around the Color classes of a pure AS3 project to make dealing with them more elegant.
| stackexchange/codereview |
I've had follow the documentation to setup a Publishing internet face site. After setting on the site and editing a page an error occurr:
My steps:
Setup a publishing site under a domain authoring.test.local and a public url public.test.local, I set my account as site collection administrator.
Publishing Portal was the... | stackexchange/codereview |
I've WinForms program with 2 GUI's. I work with one GUI and open another GUI using
var gui = new FormGui("SomeVar", someOthervar);
gui.ShowDialog();
I use ShowDialog() or Show() depending on what I need to get. When I'm done I would like to pass results (sometimes it's 2 strings, sometimes it's more t... | stackexchange/codereview |
i = 0
for x in range(0, 5):
for y in range(0, 5):
if 0 == outputAfterLearning[i]:
image.putpixel((x, y), (0, 0, 0))
elif 1 == outputAfterLearning[i]:
image.putpixel((x, y), (255, 255, 255))
i += 1
for x in range(0, 5):
for y in range(5, 10):
if 0 == outpu... | stackexchange/codereview |
I use gVim on a day-to-day basis for editing files. I've noticed that, reliably, I can open a file at a UNC path, and when I do, a few things will happen: None of the menus in ANY app will open reliably, and there will be other strange effects, like Office not showing its toolbars, or Visual Studio throwing, "Error cre... | stackexchange/codereview |
Given that I have a key with this translation key
t('my.key', :url => @url)
And translation in many language:
key: "Click %{url}"
I do the following change:
t('my.key', :link => @link)
key: "Click %{url}"
The keys are translated by the community, I have quite a few. We only maintain english locale.
Now ofcourse, my... | stackexchange/codereview |
I'm using Ruby on Rails 2.3.8 and Hpricot plugin for parsing HTML.
I would like to get embedded videos thumbnails, and searching on the internet I figured out that youtube and vimeo at least uses OG (open graph) protocol, which provides meta tags that contains the video info (url, thumbnail, etc).
For example, if I had... | stackexchange/codereview |
I'm just stuck in with this problem and unfortunately I couldn't find anything to it not even when googling around...
I'm running the following query on a SQL Server 2005 database:
select @TableCount = count(distinct table_name)
from information_schema.columns
And I'm getting different results for @TableCount in diff... | stackexchange/codereview |
current django project is a mini shop thing.
im trying to create the concept of having products which could have a foreign key of a Brand and a Category. however the import im using is this one http://djangosnippets.org/snippets/788/
and it fails when trying to create the object on the foreign key field. it puts the er... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.