instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I read that discussion about the content of "~/.gitconfig" on Linux: https://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain
I know some Mac specific optimizations, such as using "mate" as default editor:
[core]
editor = mate -w
or using opendiff as diff editor:
[diff]
external = opendiff
... | stackexchange/codereview |
I'm building a Java Applet in NetBeans that has a TabbedPane on the bottom of the applet and a regular Panel on the top. I would like the top Panel to switch depending on which tab is selected on the bottom. (I would attach a screenshot to clarify, but being new here it isn't allowed.)
A Button has ActionPerformed, but... | stackexchange/codereview |
I am developing a new module for a large Application in Delphi 2010.
I have organized my sources in a project group of two projects, one to build the full application and one two launch my test suite (which shares some sourcecode with the main application).
During the initalization of a unit, i need to act differently ... | stackexchange/codereview |
I got the following snippet
Class Artist < ActiveRecord
attr_accessible :solo #boolean
def change_solo!
if self.solo == false
self.solo = true
else
self.solo = false
end
self.save
end
end
Is there a better way to write that? Thanks in advance
cheers tabaluga
| stackexchange/codereview |
The question is to set up a recurrence relation to find the value given by the algorithm. The answer should be in teta() terms.
foo = 0;
for int i=1 to n do
for j=ceiling(sqrt(i)) to n do
for k=1 to ceiling(log(i+j)) do
foo++
| stackexchange/codereview |
I have a communication library built on top of Qt and Google Protocol Buffers. It's currently being built with MinGW/GCC on Windows. My goal is to use the same library in C# on .NET, with the help of a thin wrapper on top using C++/CLI (bridging the unmanaged code with managed code).
I tried using the MinGW produced D... | stackexchange/codereview |
I have an xml file like below which I will use to set background for Textview:
row.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:endColor="#CCCCCC" android:startColor="#CCCCCC"
and... | stackexchange/codereview |
i have one website which is working on templates.
in the template there is one main image & i want to replace that main image on some pages only not on full website. what i am looking for is to change the main image to new image on page where i need with ajax.
when i see the css of that template i found following code ... | stackexchange/codereview |
I've got the following scenario:
WPF Treeview displaying custom objects, each of them containing a list of children.
So the problem is:
Each of the custom objects is controlled by a combobox that can change the current object from Class A to Class B/C/D and vice versa. Classes A-D are all subclasses of a superclass.
So... | stackexchange/codereview |
I want to change progress bar default(yellow) color to green color.Please help me
| stackexchange/codereview |
After upgrade my complete code i had here the most currents tips to upgrade your code.
Add other if you like.
Use : new google.maps. in place of G...
GLatLngBounds() --> google.maps.LatLngBounds()
GlatLng --> google.maps.LatLng
GPoint --> google.maps.Point
Event.addListener --> google.maps.event.addListener
map.get... | stackexchange/codereview |
I am developing a small appplication which is single windowed...
I have formated everything with care .. The window contains a grid which has 2 columns.. The second is auto and the first is of type *.(takes the remaining space)
Is there a way to change the content of the first column ?(to display a chart for example)
... | stackexchange/codereview |
I'm trying to make an option, to remove all unchecked items in a checked listbox. Everything is going fine, but when I get 2 or more items with the same name, it goes wrong.
For example: I got 3 items in the listbox with the same name, with the first one checked.
Now I run the event, but now the last 2 are removed, and... | stackexchange/codereview |
Consider a class A having a member x and a std::vector< A >. Now its a common task to search for the maximal x among all elements inside the vector. Clearly I can only use std::max_element if there is an iterator on the x's. But I must write one by my own, or I just make a simple for loop.
maxSoFar = -std::numeric_limi... | stackexchange/codereview |
I have Product table and Officer table as follow:
Product
ProductID | ProductName | Officer1ID | Officer2ID | Officer3ID
--------- | ----------- | ---------- | ---------- | ----------
12 | Mouse | 123 | 124 | 125
13 | Keyboard | 234 | 235 | 0
Officer
OfficerID | Offic... | stackexchange/codereview |
is it possible to prevent certain fields to be edited after they've been saved?
They should be editable when the user creates a new item of a certain model but then when they try to open them to edit certain fields are 'blocked'.
thanks
| stackexchange/codereview |
I want to upgrade an old ASP.NET application to ASP.NET 4.0. It uses several Crystal reports, all which rely on Crystal Reports XI Release 2. Will they work together?
| stackexchange/codereview |
I am just looking for some ideas, we have a client that wants pricing by case which gets special pricing then if you are buying individually. so lets say the case quantity is 12 and you buy 3 cases, we could easily setup a tiered pricing scenario, if quantity > 12 price is x, if quantity is > 24 price is x, if quantit... | stackexchange/codereview |
I want to create a program that will allow someone to add a user to a group. I don't want to give the user the ability to do this on the domain through their account. I want to use a separate username and password stored in the program that will be used. What documentation should I be reviewing?
| stackexchange/codereview |
I was trying to crop the animated gif and in the output i'm getting the same sized image, but cropped.
A lot of empty space is filled with canvas.
For example i had animated gif 600x100, but have requested 100x100 crop, on the output i'm getting 600x100 image with cropped image and empty space.
Someone knows the soluti... | stackexchange/codereview |
I’m trying to generate a PDF using a JSP page and my coding outline as follows,
Document document = new Document(PageSize.A4,70/*Left*/,70/*Right*/,140/*Top*/,30/*Bottom*/);
response.setContentType("application/pdf" );
response.setHeader("Content-Disposition","inline; filename=vishwa-mandate.pdf");
PdfWrite... | stackexchange/codereview |
This is the error:
Error uploading file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Cultural=netural,
PublickeyToken=b77a5c561934e089' filed
Where i'm going wrong?
thanks saj
| stackexchange/codereview |
I want to start my WAS server(on windows) in debug mode.But my application is huge and server time outs while starting in debugging mode.I have increased the timeout value to 1000 .What should i do?
| stackexchange/codereview |
I found a method to shuffle an array on the internet.
Random rand = new Random();
shuffledArray = myArray.OrderBy(x => rand.Next()).ToArray();
However, I am a little concerned about the correctness of this method. If OrderBy executes x => rand.Next() many times for the same item, the results may conflict and result in... | stackexchange/codereview |
I'm working on a news centric website thats been around for years and is steadily accruing more and more page redirects. Currently we have around 375 redirects and are adding about 5-10 a month.
I know that NGinx is very, very fast at handling redirects, but presumably there must be some number of redirects that wil... | stackexchange/codereview |
Having a little trouble and wondered if anyone could help :-)
I am trying to pass the value that a user enters into a html.Textboxfor to an html.Action link.
As shown below :
<%=Html.TextBoxFor(m => m.OrderQty)%>
<p class="button" >
<%: Html.ActionLink("Add to cart",
"AddToCart"... | stackexchange/codereview |
I have a grails project with a class that I can delete no problem when doing it "manually" from the controller. I use the following code.
def delete = {
def projectInstance = Project.get( params.id )
def employee = projectInstance.employee
def projectarray = new ArrayList<Project>();
projectarray += emp... | stackexchange/codereview |
Currently I'm developing a DLL which is intended to be linked to 3rd party applications in order to test whether this application is eligible to run at a given time.
First I thought about to create a DLL and handle the needed check in TInt E32Dll() function. But I was very surprised when I've read that this function is... | stackexchange/codereview |
I have the following db for a fitness club calendar and booking system. I get omc_courses details which joined to omc_date,omc_week etc.
Now I also want to display total booked numbers for each course.
I thought two ways to do it and I'd like to know your opinions which way is better or if there are any better ways to... | stackexchange/codereview |
I'd like to know if it is possible to achieve this scenario for my web design.
I've got company ITIL diagram that I'd like to make it show the hyperlink to a file download for each respective box (mouse hover / over effect)
should I create a HTML table for this or create image mappings from the VISIO diagram .vsd file ... | stackexchange/codereview |
I'm converting some RDO code to ODBC Provider code in .NET.
The problem is parameter names were not specified in the orignal code, but param values were retrieved by parameter name after the command was executed.
Is there anyway to have parameter names populated by the provider once the command is executed so calling c... | stackexchange/codereview |
This is a really stupid question I imagine, but is there a way to search for hidden errors. I'm working on a project in MotoDev's Eclipse environment, and it won't let me run suddenly stating that I need to fix errors first, but it won't show any errors in the log at all.
| stackexchange/codereview |
I wrote the following program using VS2008:
#include <fstream>
int main()
{
std::wofstream fout("myfile");
fout << L"Հայաստան Россия Österreich Ελλάδα भारत" << std::endl;
}
When I tried to compile it the IDE asked me whether I wanted to save my source file in unicode, I said "yes, please".
Then I run the progr... | stackexchange/codereview |
I am currently having some doubt in verifying the data in grib control. Given a table with ColumnA and ColumnB, lets assume there are 2 rows of records are generated after some search query is applied.
My objective is to ensure the data in ColumnB showing my expectation output, lets assume 'data1' should be shown under... | stackexchange/codereview |
I have just started using TFS and have some questions about hotkeys. It is really uncomfortable to select projects, solutions and files in Solution Explorer.
I want to assign hotkeys to just 2 operations:
Solution-wide checkin
Solution-wide get latest version
But I cant find these in the list of available operation... | stackexchange/codereview |
When opening a text based file in Visual Studio 2010 it will then write my edits with CRLF instead of the line ending format of the original file. How can I stop VS from doing this? Any half decent editor should have this capability.
What's worse is that since VS wrote the file with portions in CRLF, it then (when open... | stackexchange/codereview |
I am currently implementing the navigation of the website (multilevel menu, having current page highlighted).
As navigation part will be included for virtually all modules, I first made it a global partial.
But logic for selection of "current page" is quite complicated in some situations, I am thinking of using a compo... | stackexchange/codereview |
How to get UID of mail in All Maill folder if I have UID of this mail in inbox using imaplib?
As you know the google store mails in the two instances in All Mail and in inbox I whant to move this to mail in trash folder using imaplib
| stackexchange/codereview |
I have embed tag and its configured as:
<embed flashparam="config={"playitem":[{"url":"http://localhost/test.flv","autoPlay":false}]}"
Now i want change the "URL" dynmically. How can i change it using jquery?
THX
| stackexchange/codereview |
I'm using jquery-tmpl. My object model is simple -- SalesProspect, which contains a collection of SalesProspectAction objects. Both of those objects have a field named Status. How do I get the child's Status in the each loop? It always pulls the parent's.
<script id="tmplActions" type="text/x-jquery-tmpl">
<p>$... | stackexchange/codereview |
how can i add tasks to windows 7 jumplist of pinned websites like there are tasks added to facebook and twitter
| stackexchange/codereview |
Is there a way to declare a tuple in xaml so I can use it as a converterparameter?
| stackexchange/codereview |
There is only one public library for binding Lua to Ada I have found (http://coreland.ath.cx/code/lua-ada), but how can it be used on a Windows platform? What do I need to use in my ada-project to get lua.ads.adb libraries defined in project-files working properly?
I tried to put lua sources in my ada-project directory... | stackexchange/codereview |
So I tested two ways of declaring a json string:
1:
json = "{'name': 'ajsie'}";
obj = JSON.parse(json); // SyntaxError: Unexpected token ILLEGAL
2:
json = '{"name": "ajsie"}';
obj = JSON.parse(json); // Worked!
What is the problem with the first one?
| stackexchange/codereview |
I Have a few lines of code
public void CreateMethod<TContract>(Expression<Action<TContract>> method)
{
var innerMethod = Builder.DefineMethod("SomeName",MethodAttributes.Private);
method.CompileToMethod(innerMethod);
//more code
}
However the second line fails. I've tried with different versions of DefineMeth... | stackexchange/codereview |
I need parse a select value in html file. I have this html file:
<html>
<head></head>
<body>
<select id="region" name="region">
<option value="0" selected>Všetky regiony</option>
<optgroup>Banskobystrický kraj</optgroup>
<option value="k_1">Banskobystrický kraj</option>
<option val... | stackexchange/codereview |
I recently came back to using Eclipse after 2 years of IntelliJ. Things have changed.
Now when I try to run Tomcat, it tries to publish my project to it. What the hell is publish?
What ever happened to pushing a war into the webapps directory and letting Tomcat deploy it?
Right now my deployment is broken because of c... | stackexchange/codereview |
I am writing a linq query to select a blogpost,
from data in dataContext.Blog_BlogPosts
join tagsData in dataContext.Blog_TagToPostConnections on data.BlogPostID equals tagsData.BlogPostID
where data.Slug == "asp-programmering"
select new BlogPost
{
Title = data.Title,
... | stackexchange/codereview |
I'm new to Lua.
Say i have a string "1234567890".
I want to iterate over all possible 3 digit numbers. (ie 123,234,345,456....)
for m in string.gmatch("1234567890","%d%d%d") do
print (m)
end
But this gives me the output 123,456,789.
What kind of Pattern should i be using?
And secondly, a related question, how ... | stackexchange/codereview |
I am a beginner in network programming..
i follow stevens and implementing UDP server with reliability.
i have a question.
when a child is forked what happens to parent socket fd in child ...? i read that they get inherited that means we have two copies of socket fd in parent and child ?? do we need to close the inheri... | stackexchange/codereview |
As long as I've been a programmer I still have a very elementary level education in algorithms (because I'm self-taught). Perhaps there is a good beginner book on them that you could suggest in your answer.
| stackexchange/codereview |
I am looking for a non-technical explanation of the difference between DFA vs NFA engines, based on their capabilities and limitations.
| stackexchange/codereview |
I'm using mxml to create a spark video player with controls. When I click on the "fullscreen" button in Chrome, it goes full screen on the browser but I am unable to go back to normal size. In Internet Explorer, the whole screen is filled up but the zoom on the video is too big and thus my controls are no longer visibl... | stackexchange/codereview |
Hi we are trying to upgrade our project to work in the latest version of VS 2010 and i have encountered a problem with the old Data Annotations Modelbinder.
Dim modelBinder = New DataAnnotationsModelBinder()
modelBinder.InvalidValueFormatter = _
Function(propDescriptor As PropertyDescriptor, value As String, displayN... | stackexchange/codereview |
We have a client that wants a store locator on their website. I've been asked to find a webservice that will allow us to send a zipcode as a request and have it return locations within x radius. We found this, but it's maintained by a single person, and doesn't look like it gets updated or supported very well. We're lo... | stackexchange/codereview |
What's the difference between this two:
_btnAddNew.Click += OnAddNewClick;
_btnAddNew.Click += new RoutedEventHandler(OnAddNewClick);
Thank you!!
| stackexchange/codereview |
Possible Duplicate:
How to remove duplicate values from an array in PHP
How can I remove all multiple values for example 55,55 will only be 55 using PHP
Example 1
Array
(
[0] => 9
[1] => 2
[2] => 55
[3] => 55
[4] => 9
)
Example 1 should look like example 2 below.
Array
(
[0] => 9
[1] => ... | stackexchange/codereview |
I'm trying to work on a project about page ranking.
I want to make an index (dictionary) which looks like this:
file1.html -> [[cat, ate, food, drank, milk], [file2.html, file3.html]]
file2.html -> [[dog, barked, ran, away], [file1.html, file4.html]]
Fetching links is easy - look for anchor tags.
My question is - how... | stackexchange/codereview |
Can you add a button as a subview to a uitableview cell and have that clickable, but not the cell itself. ie: I don't want the selected view to come up. Obvs I can just not have the cell disclose anywhere, but I don't want it to look "selected" when someone taps it.
Setting user interaction enabled to NO makes the whol... | stackexchange/codereview |
I have been using Frontier::RPC2 for my XML-RPC server, with Frontier::Client on the client side... but have noticed these modules have not been maintained recently.
Discussion at the bottom of this page mentions some fresher alternatives on CPAN. What would the pros and cons of these be? I honesty don't have an imme... | stackexchange/codereview |
i would like to get everything inbetween &v= and "> using a regex expression,
NSString *YouTubeRegex = @"/amp;v=([^(\">)]+)/";
But that regex is not returning any matches ? i know the coding is correct just not the regex expression any help ?
Thanks
| stackexchange/codereview |
Can Perl's HTML::Selector::XPath be used for the general purpose of finding XPaths?
use HTML::Selector::XPath;
my $selector = HTML::Selector::XPath->new("li#main");
$selector->to_xpath; # //li[@id='main']
# functional interface
use HTML::Selector::XPath 'selector_to_xpath';
my $xpath = selector_to_xpath('... | stackexchange/codereview |
I developing window application in C#. I created one installer with this windows application. It is running fine on nearly all computers. The window application takes the ID of processor & then based on that ID generates one unique key. On one computer it is giving the error "Windows installer failed to generate the ke... | stackexchange/codereview |
When we create a object of a classtype the new operator allocates the memory at the run time.
Say
myclass obj1 = new myclass();
here the myclass() defines a constructur of myclass
but
int arr1[4] = new int[];
new allocates the memory but, what the int[] does here?
| stackexchange/codereview |
Is there is any way to autoresize gridview columns according to their data?
| stackexchange/codereview |
I am a newbie to android development. I am trying to create a List which has a spinner, a edit text and a check box. The data for spinner and check box come from data base. I have the following files.
NewTransac class which extends ListActivity {
private PayDbAdapter mDbHelper;
private Spinner paySpinner;
private Che... | stackexchange/codereview |
I have a panel being used like a subform. What I would like is to restrict the panel to some maximum size. When the form is maximized or resized, the subform is resized only to some maximum height and width. Couldn't find a property to limit the size of the panel so I did it manually by handling its resize event. That'... | stackexchange/codereview |
I want to make a shortcut program that waits for a specified keyboard key or combination while I'm busy in another program. When I type the phrase or keyboard combination my program should respond with a sentence typed out like I typed it all out myself.
So for example if I type 'xso' it will type out 'Stack Overflow' ... | stackexchange/codereview |
After creating SQLite database connection, while running when I view DDMS, file explorer shows the size of database as 3072.
I think that why I am unable to open the database and retrive the values. Can help me out to sort out this error?
| stackexchange/codereview |
Hai Friends,
I have developed an application which en-composes list views and posted that .apk file in my htc device, the design and alignment everything works fine,but the problem When i am testing in various devices such as Morotolo Droid,Nexus Devices the alignment of Listviews goes wrong, so i planned... | stackexchange/codereview |
SO I am using GROUPON API to grab their deals, I am also using jquery's get to get a json response. This is my jquery
$.get('http://api.groupon.com/v2/deals.json',
{
division_id:'boston',
client_id:'mykey',
},
... | stackexchange/codereview |
My application stores a lot of XML files. A background job periodically sends some of those XML files to a specific mailbox. The mailer code is dead-simple:
class MailSender < ActionMailer::Base
default :from => AppConfig.mail_from
smtp_settings :address => AppConfig.smtp_host,
:username => A... | stackexchange/codereview |
What could be causing this error when I try to insert a foreign character into the database?
>>UnicodeEncodeError: 'latin-1' codec can't encode character u'\u201c' in position 0: ordinal not in range(256)
And how do I resolve it?
Thanks!
| stackexchange/codereview |
I've got a problem: i need to add a powerup to a racegame, using collision detection.
so i drawed the powerup, but the problem is: It has to be drawn after every 5 rounds and it needs to be placed ramdomly on the track.
Someone with any good advice?
Thanks.
| stackexchange/codereview |
Greatings!
I'm working on a reporting script which runs a number of reports (pdf) on button click. The reports are created on the web server then I'd like the user to be given the option to download the files. I have worked out the script for downloading one file from the server. But I'm not sure how to download multi... | stackexchange/codereview |
i want to convert all my .pdf files from a specific directory to .txt format using the command pdftotext... but i wanna do this using a python script...
my script contains:
import glob
import os
fullPath = os.path.abspath("/home/eth1/Downloads")
for fileName in glob.glob(os.path.join(fullPath,'*.pdf')):
fullFileN... | stackexchange/codereview |
I want to change my web page CSS for web browsers running on cell phones, like the iPhone and Android. I've tried something like this in the CSS file:
@media handheld {
body {
color: red;
}
}
But it doesn't seem to have any effect, at least on the iPhone. How can I write my CSS to work differently on the i... | stackexchange/codereview |
I have a small compojure site, with the routes defined as such:
(defroutes example
(GET "/" [] {:status 200
:headers {"Content-Type" "text/html"}
:body (home)})
(GET "/*" (or (serve-file (params :*)) :next))
(GET "/execute/" [] {:status 200
:headers {"Content-Ty... | stackexchange/codereview |
I'm trying to display data which comes from a join on two tables (or more) in a gridview
I want to be able to filter the result set via user given input (text boxes on page)
I have tried the standard tutorials but cannot find something which goes beyond displaying one table result sets in the gridview. If I go throu... | stackexchange/codereview |
My application traverses a directory tree and in each directory it tries to open a file with a particular name (using File.OpenRead()). If this call throws FileNotFoundException then it knows that the file does not exist. Would I rather have a File.Exists() call before that to check if file exists? Would this be more e... | stackexchange/codereview |
I have a form that submits the following data:
question[priority] = "3"
question[effort] = "5"
question[question] = "A question"
That data is submitted to the URL /questions/1/save where 1 is the question.id. What I'd love to do is get question #1 and update it based on the POST data. I've got some of it working, but ... | stackexchange/codereview |
I am passing 3 HashMaps that contain data pertaining to 13 different time periods, to a jsp page.
The data from these maps is used to populate and alter a summary data div (that consists of the summed total of the different datasets, for the selected ranges, so it could 1 of 13, 2 of 13, all 13 and so on. However the... | stackexchange/codereview |
Is it possible to see the last log of Heroku server. I have used heroku logs to see the last process but it shows limited log. But i want to see more process done at heroku. So what command or what process should I follow to see the logs at Heroku.
Thanks in advance.
| stackexchange/codereview |
Which C function is suitable for reading operation? Actually my .txt or .csv file has a fixed pattern shown below:
Temperature = 35
Pressure Segment 1
Slope = 5.5
Offset = 10
Temperature = 100
Pressure Segment 1
Slope = 53
Offset = 12
Temperature = 150
Pressure Segment 1
Slope = 1
Offset = 12
Further which file .txt... | stackexchange/codereview |
in asp.net mvc 2 or beta , model not accepting the date 13 ( more than 12'th of date) . Model showing error ads
" The value '20/10/2010' is not valid for MyDateFieldName "
what have to do? Model showing false status as ModelState=False. why?
| stackexchange/codereview |
I have created a simple program in python.
Now I want trasform this script in an executable program ( with hidden source code if possible ) and when I click 2 times on it, the program install itself on the ubuntu ( in the /usr/lib or /usr/bin I think ) and it will create a new launcher in the Application -> Game menu.
... | stackexchange/codereview |
let say i pass url, example.php?mode=select&ID=1#age
is it possible to add jquery fadeIn based on url?
this url will be on another page, when user click it, a page will load and hence the age filed should be fade in.
if this not possible, is there any other way?
| stackexchange/codereview |
How do I use current date & time as the value for the findValue attribute in the ServiceCertificate config when using "FindByTimeValid" for the x509FindType? Using DateTime.Now as below obiously doesn't work but neither does "2010-10-20 14:35:28Z". I have two certificates on the server with the same details as one of t... | stackexchange/codereview |
I have a separate servers running with postgres and Nagios. I want to use "psql_replication_check.pl" with nagios to monitor the postgres replication status. This check script requires DBD::Pg module to connect to database. Installation of DBD::Pg asking for the path of pg_config file.
#perl Makefile.PL
Configuring DB... | stackexchange/codereview |
I hate to have to write down a lot of CSS rules and then enter my styles in it, so I'd like to develop a tiny php script that would parse the HTML I'd pass to it and then return empty CSS rules.
I decided to use PHP's DomDocument.
The question is: How could I loop through the whole structure? (I saw that for example Do... | stackexchange/codereview |
I'm working on a project that parse a lot of RSS feeds, and I just discover Superfeedr it has a poor documentation in how to use their PubSubHubbub API with PHP.
Please can anyone give me a good tutorial or an example how to use it to subscribe to any feed?
Thank you,
| stackexchange/codereview |
I came across this in embedded hardware using C.
#define EnterPWDN(clkcon) ( (void (*)(int))0xc0080e0 ) (clkcon)
I have no idea how is this function macro working. I understand clkcon is the function parameter to EnterPWDN, but what is happening after that?
| stackexchange/codereview |
I am creating annotation bubble buttons with the following code:
-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>) annotation
{
if ([annotation isKindOfClass:[MKUserLocation class]])
return nil;
MKPinAnnotationView *view = [mapView dequeueReusableAnnotationViewW... | stackexchange/codereview |
I assume that it is possible to invoke skype or another VOIP solution by starting the appropriate activity. My question is; are there any VOIP solutions that can be used as services in some way, making it possible to write a separate app with its own user interface that just uses the VOIP functionality of the original ... | stackexchange/codereview |
I have the following JSON coming back:
{"gameId":137.0,"memberId":3,"id":97.0,"reviewBody":"Great game! Awesome.","createdAt":"October, 13 2010 18:55:34"}
I'm trying to append it to a layer using the following JavaScript, but nothing is showing:
$(function(){
$(".review-form").submit(function(){
dataString... | stackexchange/codereview |
I want to make an extension method to check if an enumeration has a flag.
DaysOfWeek workDays = DaysOfWeek.Monday | DaysOfWeek.Tuesday | DaysOfWeek.Wednesday;
// instead of this:
if ((workDays & DaysOfWeek.Monday) == DaysOfWeek.Monday)
...
// I want this:
if (workDays.ContainsFlag(DaysOfWeek.Monday))
...
How ca... | stackexchange/codereview |
I am having an issue with the layout of UIPopoverViewController. Currently I am showing an PopOver of Size (350, 820). I have a button clicking on UIAlertView will be shown with a text field within it.At the same time keyboard is also shown. Now the problem is that whenever the keyboard is my PopOver becomes distorted... | stackexchange/codereview |
We allow users to add domains to an active record model such as User.domain and find the users by domain using User.find_by_domain.
In the future we want to allow users to enter *.example.com as their domain and allow User.find_by_subdomain('sub1.example.com') and User.find_by_subdomain('sub2.example.com') to work. How... | stackexchange/codereview |
I'm writing some modelling routines in NumPy that need to select cells randomly from a NumPy array and do some processing on them. All cells must be selected without replacement (as in, once a cell has been selected it can't be selected again, but all cells must be selected by the end).
I'm transitioning from IDL where... | stackexchange/codereview |
How to achieve a good versioning system, I do use SVN for updating a code and making them to sit on trunk.
My boss always ask a new feature and before one feature is completes he ask for another feature in same module. How Do I manage Branching in this situation ?
Note :
I had posted this Question on programmers.stacke... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.