instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am trying to use android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS from This API
but it is giving an error.
I think its matching Activity may not exist.
How can I use it. I want to make an application which can directly give me list of available network operators.
public void onCreate(Bundle savedInsta... | stackexchange/codereview |
I am trying to get redcar to run on a windows 7 x64 box but I am getting the following error:
Redcar 0.8.1 ( java )
Error loading plugin: <Plugin swt 1.0 depends:[dep(core >0)] 0 files>
cannot link Java class org.eclipse.swt.widgets.Display, probable missing dependency: Cannot load 32-bit SWT libraries on 64-bit JVM
... | stackexchange/codereview |
How can I code a calendar? I mean how can I determine the days of the month, is the 1st a monday, tuesday or what. how many days are there in the particular month etc.
I use mainly PHP & C#. But I am mainly looking for the logic behind
| stackexchange/codereview |
I'm searching for library or just code snippet to provide function like resize, crop with frame and rotate image after user pick image from image picker. Something like on this video: http://www.youtube.com/watch?v=Gb6xncXg1PY (0:55). Maybe someone has the same issue?
| stackexchange/codereview |
Explanation:
Part of the app that I'm creating requires checking of thousands of records and acting on them in a timely manner. So for every record, I want to fork a new process. However, I need a DB connection to do some more checking of that record. As I understand it, the child inherits the DB connection. So subsequ... | stackexchange/codereview |
EXACT duplicate of Sql Server2005 query problem
i have a table which contains the following fields
•Supervisorid
•Empid
This is just like a referral program. A guy can refer 3 guys under him i.e, 3 is referring three guys namely 4 5 8 similarly 4 is referring 9 10 and 11 likewise 8 is referring 12, 13 it goes like th... | stackexchange/codereview |
I have a program which needs to be able to search through an ArrayList of 'book' objects, and decide which ones meet given criteria.
You can search by Name, ID Number, or Year published.
Or just by any assortment of the above.
Currently i use nested if statements, where a null value means that field wasn't specified a... | stackexchange/codereview |
I'm creating an iOS user interface with a lot of different UIImageViews that will trigger actions when tapped (once is enough).
I have the choice between using UIButtons with a custom view (the image) or just setting up a bunch of UIImageviews with an associated UITapGestureRecognizers.
In terms of functionality I get ... | stackexchange/codereview |
I get this error when I try to run mongo, in ubuntu.
mongo: error while loading shared libraries: libboost_thread-gcc42-mt-1_34_1.so.1.34.1: cannot open shared object file: No such file or directory
I upgraded to Karmic yesterday. I have installed mongodb-stable from the repo mentioned here. I tried to apt-get libboos... | stackexchange/codereview |
I am looking for the best way to solve the following (c++) problem. I have a function given by some framework, which returns an object. Sometimes it takes just miliseconds, but on some occasions it takes minutes. So i want to stop the execution if it takes longer than let's say 2 seconds.
I was thinking about doing it... | stackexchange/codereview |
I have some python code that's throwing a KeyError exception. So far I haven't been able to reproduce outside of the operating environment, so I can't post a reduced test case here.
The code that's raising the exception is iterating through a loop like this:
for k in d.keys():
if condition:
del d[k]
The d... | stackexchange/codereview |
code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<style>
#boxTop{
margin-bottom:20px;
border:1px solid green;
}
#box1{
float:left;
border:1px solid blue;
}
#box2{
clear:both;
border:1px solid red;
}
</style>
</HEAD>
<BODY>
<div id="bo... | stackexchange/codereview |
I am working with Social Engine which is based on Zend Framework and Smarty Templates.
I need to make custom functionality for profile page, where I need Ajax based Dynamic Country / State / City selections like
Dropdown for Country -> on selection of some country, State will display belonging to selected country and ... | stackexchange/codereview |
If a warning or error occurs, I would like to print the name of the function generating the error.
tryCatch in R allows one to handle errors in a function call, perhaps it is part of the solution? For example, this could be in a context like:
handleErr <-function(e) {
print("you had an error in function:")
pr... | stackexchange/codereview |
I want to have a absolute/complete url when i call my models get_absolute_url method in template. in my entry model i have below:
def get_absolute_url(self):
return ('blog_entry_detail', (), { 'year': self.pub_date.strftime("%Y"),
'month': self.pub_date.strftime("%b").lowe... | stackexchange/codereview |
Is it possible to make a <div> tag behave like a stock <br> tag with CSS?
Are there any other tags that cannot be mimicked by styling a <div>?
| stackexchange/codereview |
To display & load images in my ListView I've created a custom ArrayAdapter, however it is really slow. Every time I scroll through the list it loads the images again.
Is there a caching mechanism which will cache my Views so I don't need to refill them every time? I know about the ViewHolder method, however this still ... | stackexchange/codereview |
I am trying to UNION two tables with the same fields to create a single cursor (through a content provider) that I am using to create my ListView.
@Override
public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
SQLiteQueryBuilder qb = new SQLiteQueryBuil... | stackexchange/codereview |
I want to check a user when they login. I placed following code in an include in the CMS application but it doesn't work on IIS 7.5:
Function check_login(str_siteadmin,str_adminnaam)
url = "http://www.mydomain.be/test.asp?IP=" & _
Request.ServerVariables("LOCAL_ADDR") & _
"&site=" & Request... | stackexchange/codereview |
Basically, I've seen people using @ before their function calls, not for every function, but for some kind of extension functions like file_get_contents(), mysql_connect() and so on.
And yes, the question is: For what purpose are there these @s before function calls?
Or in other words, what is the difference between @f... | stackexchange/codereview |
For Example-
a a 0 12 4
b b 0 29
a c 0 3 b 87 12
z y ab 81 43
I want column number 5.
As csv file has string tokenizer seperated by ",". There may have some fields empty which not counted as tokens.So I did not get fields at same column with same token n... | stackexchange/codereview |
Setting the 32nd and 64th bits is tricky.
32-bit Solution:
I got it to work for 32-bit fields. The trick is to cast the return value of the POWER function to binary(4) before casting it to int. If you try to cast directly to int, without first casting to binary(4), you will get an arithmetic overflow exception when o... | stackexchange/codereview |
I am developing a spring webflow (2.0.7) project using SpringSource Tool Suite. I am trying to setup a basic flow.
My someflow.xml looks like this:
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www... | stackexchange/codereview |
In [2]: list=range(627)
In [3]: list[::150]
Out[3]: [0, 150, 300, 450, 600]
the above code is right,but if i use the bellow code,caution:the l means long type,
the return result is not like above,what's the hell?
In [4]: list=[1323l,123123l,4444l,12312312l]
In [5]: list=[1323l,123123l,4444l,12312312l]
In [6]: list[::2]... | stackexchange/codereview |
What are the information sent to server in a client request?How can we check those information? I mean can we view those information(Is there any way to check)?
| stackexchange/codereview |
I have one table contains field named source with varchar(max).
That field has following value
<OutPatientMedication
DateFormat="MM-dd-yyyy"
MedicationName="lisinopril 10 mg oral tablet"
Instructions="2 cap(s) orally once a day "
Status="Active"
Quantity="0"
Refills="0"
... | stackexchange/codereview |
Is there a way to access visual studio web server from another computer that share the same router? I tried connecting to the IP address but it didnt work. Is there a setting in VS? or firewall?
| stackexchange/codereview |
I am writing a C# application that needs to read about 130,000 (String, Int32) pairs at startup to a Dictionary. The pairs are stored in a .txt file, and are thus easily modifiable by anyone, which is something dangerous in the context. I would like to ask if there is a way to save this dictionary so that the informati... | stackexchange/codereview |
I was wondering which projects were build in GWT? Especially by Google itself...
| stackexchange/codereview |
I have a C++ program, that calls Delphi DLL to initialize a buffer that contains chars.
I am testing out the interface to make sure the data are passed correctly:
In C++ program:
char * pMsg = (char*)malloc(3); //allocate buffer
Init(pMsg * char); //Delphi DLL function
In Delphi DLL:
procedure Init(pMsg:PChar);
var
... | stackexchange/codereview |
I have a MDI main (parent) form and a MDI child form. I create the child at runtime like this:
VAR
FrmDereplic: TFrmDereplic;
procedure TMainFrm.Button2Click(Sender: TObject);
begin
FrmDereplic:= TFrmDereplic.Create(MainFrm);
FrmDereplic.Show;
end;
Steps to reproduce the error:
I start the app, I press the but... | stackexchange/codereview |
I have a UITextField that brings up the keyboard. I just want the user to input alphabets and not numbers or punctuation marks. How do I disable the numbers and punctuation key on the default keyboard that pops up.
Thanks.
David
| stackexchange/codereview |
I have a bunch of XML files which I use to generate HTML pages. Those pages ultimately get marked up (by hand) with some <%= %> tags and made into Ruby .erb templates.
Is there a way to generate the special tags <?php ?> or <%= %> directly during the XSL transform?
I've tried using a <![CDATA[ ... ]]> block, but then t... | stackexchange/codereview |
I want to add my buttons in a UIView, like then I can hide or not them.
My button's code:
carte1J1=[UIButton buttonWithType:UIButtonTypeCustom];
carte1J1.tag=11;
carte1J1.frame=CGRectMake(60, 240, 50, 73.0);
[carte1J1 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@",imagecarte1] ] forSta... | stackexchange/codereview |
My ruby code crashes on this code
puts "one"
con = Mysql.real_connect('localhost', 'user', 'pass', 'database')
puts "two"
It outputs one but not two??
Why isn't it executing any further
| stackexchange/codereview |
I downloaded the Air 2.5 SDK and get the following Errors:
1-Design mode could not load aircore.swc. It may be incompatible with this SDK, or invalid.
2-Design mode could not load applicationupdater_ui.swc. It may be incompatible with this SDK, or invalid.
3-Design mode could not load applicationupdater.swc. It may be ... | stackexchange/codereview |
I'm trying to add some syntax highlighting to my blog that currently uses RDiscount. I am converting the Markdown to HTML with RDiscount then parsing the HTML code blocks with CodeRay to add syntax highlighting. This is what I have so far:
class Post < ActiveRecord::Base
before_save :render_body
def render_body
... | stackexchange/codereview |
I have a form with multiple rows of text boxes. I use jquery .show() and .hide() to dynamically add or remove a textbox.
In my codebehind, I retrieve a myReport object and based on the number of entries, I want to display or hide the right number of text boxes.
I can use .visible = true / false but that removes the el... | stackexchange/codereview |
Today I'm trying to play with jquery-tmpl {{if}} & {{else}} statements.
<script id="mission-dialog" type="text/x-jquery-tmpl">
<h3>${name}</h3>
<p>${description}</p>
<ul>
{{each(i,cond) conditions.data}}
<li>
<img src="${cond.image}"/>
<h4>${cond.name}</h4>
... | stackexchange/codereview |
I wanted to test a method in my helper class but when I do something like:
require 'test_helper'
class ApplicationHelperTest < ActionView::TestCase
def test_flash_messages
flash[:notice] = "Hello World"
assert_equal "<div class=\"message-notice\">Hello World<\/div>", flash_messages
end
end
than I get "NoM... | stackexchange/codereview |
Is there anything around that can read an XSD schema and dynamically create a (Windows C#) data entry form? It would also need to read the type definitions and use them to validate the data entered. The data would then be save as an XML file.
I would prefer it was a dynamic form since the XSD could, and probably will c... | stackexchange/codereview |
I've been just wondering if there is any good system suitable for use in ajax applications on per time basis. Things like AdSense are not the best fit as you don't want to force user to reload page every minute or so. What I'm looking for is some widget that possibly rolls advertisements every x seconds/minutes and cou... | stackexchange/codereview |
Basically the data structure I want would mirror a MSMQ but would be in memory, because it is being used in the one process. By mirroring MSMQ I mean you would enqueue objects, then you could either dequeue objects or retrieve them using a key. Here is me initial attempt. My main problem with this attempt is that the G... | stackexchange/codereview |
I have a PHP page with multiple forms, some of which submit to an iframe (separate iframe for each form) to allow for ajax-like file uploads. I don't want the user to have to click a "Submit" button after selecting each file, so I am submitting the form using jQuery's .submit() function inside of a .change() event on ... | stackexchange/codereview |
I want to make a slider just like CNN's iphone application has.
http://i56.tinypic.com/15wdphg.jpg
i search all over but i didn't get any help even any clue. If some one has any idea than please share it with me, so i will make this slider.
Thanks
| stackexchange/codereview |
I have an asp.net web site, earlier version of the application need to run in classic mode, the latest version can run in integrated mode. Generally the application is configured to use Forms Authentication but it can be configured to used Windows Authentication.
There is a business requirement that even when running ... | stackexchange/codereview |
In my Main Window IB file I have a TabBarController and the first controller is a Navigation Controller. When I push my detail view (after pressing a cell in a table view) I want to push my detail view and display a tool bar instead of the tab bar. The problem is that when I try
tabBar.hidden = visible;
in my detail... | stackexchange/codereview |
I am trying to plot data that I receive over a socket. I am using "Matplotlib" as the plotting library and "cPickle" to serialize python objects.
When I run my code, plot window opens and hangs up. I have tried a couple of ways to get around it, but no help
Don't know if this might help, but...I am using "Python 2.7 -... | stackexchange/codereview |
What is the use of wrapper class? I can't understand the wrapping thing in this topic. It wraps primitive data types but for what and how it wraps? When they tell wrapping what does it really mean?
| stackexchange/codereview |
Apple changed their home page with a fade in effect that loads fast. Is this HTML 5 or jQuery?
Does anyone know how they did this?
| stackexchange/codereview |
I want to write a recursive function inside the rails xml builder. Is this possible?
Thanks, Abhi
| stackexchange/codereview |
I am using Netbeans to edit my HTML project.
I have defined the project as a PHP project (although it is just HTML).
The problem: Netbeans does not recognize this as Javascript:
<script type="application/javascript">
or
<script type="application/x-javascript">
As such it does not enable Javascript editing features. (... | stackexchange/codereview |
I just updated from jQuery 1.3.2 to 1.4.3, and I'm seeing some new behavior when making AJAX DELETE requests. For some reason, the data being passed in my data parameter is not being sent to the server. For example:
$.ajax({
url: '/example',
data: {id: 12},
type: 'DELETE'
});
Ends up sending a DELETE req... | stackexchange/codereview |
I am using MySql (and PHP).
It's best if I give an example:
I am making a query, say SELECT * FROM a_table WHERE type='visible' then returning the count. Then later I query again but WHERE type='hidden', etc. I may query again to get the full contents. All queries are unique, but are from the same table. I also query m... | stackexchange/codereview |
I'm writing a JavaScript to inject a new CSS rule into pages in Android browser in order to display some text in a custom CSS font (after some replacement).
Here is how I tried to inject the CSS rule:
var css = '@font-face {font-family:"font"; src:url(http://www.example.com/font.ttf);} si{font-family:"font"}';
if(docum... | stackexchange/codereview |
some file transfer is in progress. the connection break s and then
later after some time is restored. then on the file transfer continues
from the point where it left off, which OSI layer handles this?
presentation, application, TCP, IP, Sesssion
| stackexchange/codereview |
I am trying to have an iPhone application using Graph API where in a user can get his/her Facebook wall updates. (Something similar to functionality of Home Tab on Facebook).
I have gone through this tutorial of Graph API for iphone
http://github.com/reallylongaddress/iPhone-Facebook-Graph-API
Here the problem we are f... | stackexchange/codereview |
I want to create a project file turbo c++ and link the files in this project. Although i have tried for it but i found only one option that to open a project no option to create a new project. So How to do that.
| stackexchange/codereview |
I'm curious to know, "what if I delete information_schema database from mySQL?"
| stackexchange/codereview |
I'm trying to get ASP.Net to cache the response of a web service request by setting the CacheDuration property of the WebMethod attribute:
[WebMethod(CacheDuration = 60)]
[ScriptMethod(UseHttpGet = true)]
public static List<string> GetNames()
{
return InnerGetNames();
}
The above is a method on an ASP.Net page (I'... | stackexchange/codereview |
There is a fail() method in JUnit4 library. I like it, but experiencing a lack of pass() method which is not present in the library. Why is it so?
I've found out that I can use assertTrue(true) instead but still looks unlogical.
@Test
public void testSetterForeignWord(){
try {
card.setForeignWord("");
fail()... | stackexchange/codereview |
what do people use for scripting in .net apps. New question after MS drops IronPython
IP used to be my favorite; then Lua
What do I mean by scripting. I mean I have a large system management tool that allows users to plugin bits of smartness, this include assemblies and scripts. What language should I use for the scrip... | stackexchange/codereview |
I have a dilemma and I'm not sure about the best way to start solving it.
I'm working with an old code base at work. Some of the domain objects (and db tables behind them) don't make a lot of sense. eg, deleted is stored as a long, age is stored as a String, etc. Which I've been able to work with fine. In the view I ca... | stackexchange/codereview |
I'm dynamically pulling and displaying radio button quesitons on a form (separated into different sections by jquery tabs).
So there are lots of 2, 3, 4, 5 etc radio buttons together, which have the same 'name' but different ids.
When you hit next between the sections, I want to check that at least one radio button has... | stackexchange/codereview |
If I have a string that looks like my name is {your name here} and I am from {country}.
I am trying to use preg_replace to remove the {content} so the string ends up as my name is and I am from .
But I can not work out the regex for the pattern.
Can someone please help me out?
my name is and I am from . is simply a s... | stackexchange/codereview |
In the field of Web Dev, I've heard plenty of blogs and people say that users tend to ignore (or be irritated by) content which is flashy/unnecessarily animated, adversely affecting usability, but are there any studies to support that statement?
| stackexchange/codereview |
Using .NET / C#, how to determine if a network path (e.g. \mymachine\myfolder) is available or not (online or offline)? Is there a way to be notified by WMI of such event?
Thanks!
| stackexchange/codereview |
I need to calculate the number of business days between two dates. How can I pull that off using Ruby (or Rails...if there are Rails-specific helpers).
Likewise, I'd like to be able to add business days to a given date.
So if a date fell on a Thursday and I added 3 business days, it would return the next Tuesday.
| stackexchange/codereview |
Good afternoon,
I have some text files containing a list of (2-gram, count) pairs collected by analysing a corpus of newspaper articles which I need to load into memory when I start a given application I am developing. To store those pairs, I am using a structure like the following one:
private static Dictionary<String... | stackexchange/codereview |
Today, I posted a problem about a segmentation fault after destruction of a std::string (see this post). I've stripped the code so that I don't use the STL and still have a segmentation fault sometimes.
The following code works just fine on my PC running Linux. But using the ARM crosscompiler suppplied by the manufacto... | stackexchange/codereview |
Somewhere in the Facebook APIs, is there an ability to publish a stream of events that will only be seen by a specific user in his feed (unless he shares them?)
We want to tailor the experience of each user separately.
| stackexchange/codereview |
I've got a classical ASP website in which I store some information inside the Application object. These variables seems to disappear every now and then. I am wondering what could be wrong. Any ideas?
| stackexchange/codereview |
i'm trying to convert an md5 string (base 16) to a base 62 string in c++. every solution i've found so far for converting to base 62 only works if you can represent your number as a 64 bit integer or smaller. an md5 string is 128 bits and i'm not getting anywhere with this on my own.
should i just include a bigint li... | stackexchange/codereview |
I want to develop a program using the Java MSN Messenger library (JML). I can not solve a problem where the following exeception is thrown.
ERROR/AndroidRuntime(312): FATAL EXCEPTION: Thread-21
**ERROR/AndroidRuntime(312): java.lang.ExceptionInInitializerError
ERROR/AndroidRuntime(312): at net.sf.jml.protocol.... | stackexchange/codereview |
I'm using the jQuery UI Tabs for individual real estate listings... the listing are generated on the fly from the DB.
I'm curious if there's a better way of associating tabs and their respective DIV fragments (containers) than individual IDs per tab group:
#tabContent1_1
#tabContent2_1
#tabContent3_1
...
#tabContent1_... | stackexchange/codereview |
If I want to use LightSwitch's prebuilt silverlight forms is there a way for me to do it within VS2010 (i have ultimate)? It is slightly annoying to have to load a slimmed down VS just to have some templates in place. I'm downloading LightSwitch now to see if I can copy the prebuilt forms into a VS2010 silverlight app... | stackexchange/codereview |
I have a usercontrol in my wpf application which is causing a stackoverflowexception to be caught when it is instanced more than once. I tried to debug the cause of the exception and it is raised during InitializeComponent of my Usercontrol. When I enter InitializeComponent it jumps over to the app.xaml.cs codebehind ... | stackexchange/codereview |
Possible Duplicate:
HTML: What is the functionality of !DOCTYPE
hi
i am .asp web developer as a beginner,
i find many article for , but i not get a complete idea..
1.what the use of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ?
2.there is... | stackexchange/codereview |
I've implemented the functionality of std::rel_ops namespace as a template base class (it defines all comparison operators using only operators < and ==). For me it's a bit weird that it works (so far) properly, also I'm concerned about the 'hacks' used. Can anyone assess the following code and say if I'm just lucky it... | stackexchange/codereview |
I have video gallery written in ASP.NET. Each video has an .flv file hosted on FMS and image. I want to replace image with flash file each time use mouseover on video.
| stackexchange/codereview |
I am just trying to simplify a Select statement:
Select (a+b+c)/3 AS V, MIN((a+b+c)/3) as Min, MAX((a+b+c)/3) as Max from ....
Is there a clean way to avoid repeating that formula (a+b+c)/3 in the aggregate functions?
| stackexchange/codereview |
I'm writing a unit test for a Wicket WebPage. I want to fire up a page, type into a field, click a link, and then make some assertions.
Looking at the API of WicketTester and BaseWicketTester, I couldn't find any method that takes a path (like "form:input") to locate an input field and lets you enter text in it.
// se... | stackexchange/codereview |
Internet explorer 6 VS1 doesn't support gzip compression correctly.
It does however understand deflate.
Is it sufficient to change the scheme name in applicationhost.config from gzip to deflate to fix this issue?
Are there any downsides to using deflate instead of gzip?
<!-- c:\windows\system32\inetsrv\config\applicati... | stackexchange/codereview |
i use webflow in a my grails application, i have 2 tables with relation ManyToMany in hibernate mode. this relation as u know, creates a table with 2 primary keys of the original tables, both be the primary key of the third table.
my tables are destination and destinationGroup.
i write a select statement with dynamic f... | stackexchange/codereview |
I have two *.sql files that I use when creating a new web site database. The first file creates all the tables. The second file populates some default records. I would like to execute these files from PHP. I also use the Zend_Framework, if that will help accomplish this.
Additional Info
I don't have console access... | stackexchange/codereview |
I am using: Silverlight Version 4.0, 100% F# solution. I am having an issue when switching the Target Configuration from debug to release. Everything compiles fine in debug mode, then in release I get the following:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9):
warning MSB3245: Co... | stackexchange/codereview |
I'm writing a module to act on data being sent to a database from Python. Since boolean is not a SQL datatype, those values have to be converted to some pre-defined value. I decided while defining the tables that I would use 'T' and 'F' in a varchar(1) field as my Boolean stand in.
In attempting to make this conversi... | stackexchange/codereview |
I want to know how do I exactly call a function from ProjectA::ClassA::FuncA() that is a Win32 .lib with /clr from a ProjectB::ClassB::FuncB() that does not have clr support and is a pure Win32 project.
Both these projects are under same solution.
First, this is what I have tried:
1. Created the ProjectA with the .lib
... | stackexchange/codereview |
Can someone explain what exactly is happening at a low level / memory management perspective on the 2 C# lines in "Main" in the following?
C++ Code (unmanaged):
#define DLLEXPORT extern "C" __declspec(dllexport)
DLLEXPORT MyClass* MyClass_MyClass()
{
return new MyClass();
}
DLLEXPORT void M... | stackexchange/codereview |
I'm developing a mapping app using Eclipse 3.5.
I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.
When I actually send a new location from the DDMS emulator cont... | stackexchange/codereview |
I am using JNLP which fetches my jar files to client.
When I run the application, I am getting the error: JasperPrint(NullPointerException).
I can figure out the cause partially. It is because JasperPrint instance cannot be stored on client side due to access permission.
Is there a way to generate JasperPrint on the c... | stackexchange/codereview |
Given 100 GB integer Data on Hard Disk with RAM amounting to 2 GB, how to sort the integers with minimal disk operation. Here fetching one number from disk is considered as one disk operation( though in reality a block of data can be fetched).
We can use additional space on the disk for temporary storage and no need to... | stackexchange/codereview |
I have overloadded operator new[] like this
void * human::operator new[] (unsigned long int count){
cout << " calling new for array with size = " << count << endl ;
void * temp = malloc(count) ;
return temp ;
}
and now calling
human * h = new human[14] ;
say sizeof(human) = 16 , but count it p... | stackexchange/codereview |
I have this little problem I couldn't find in Google:
UITableView works fine until I start scrolling.
Error Message: `-[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x5f24870 `
Method:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
... | stackexchange/codereview |
I have created a calculated measure that computes a weighted ratio for the current balance of all loans that fall into various risk ratings:
WITH
MEMBER [MEASURES].[Weighted Ratio] AS
(Measures.[Current Balance] * [Risk Rating].[Loan Rating Code].CurrentMember.member_value) /
(
[Measures].[Current Balanc... | stackexchange/codereview |
I've heard that new version of Umbraco CMS will be completely rewritten and will be based on asp.net mvc?
Current version is 4.5 and as I see it is still based on ASP.NET.
| stackexchange/codereview |
I have 3 tables, where the first one's primary key, is the foreign key in the other 2.
I want to extract one field from the first table, and then a count from the other 2, all joined using the pk and fk. This is what I have so far:
SELECT MBDDX_STUDY.STUDY_NAME, COUNT(MBDDX_EXPERIMENT.STUDY_ID) AS NUMBER_OF_EXPERIMENT... | stackexchange/codereview |
I am trying to plot do a basic semilog plot using pyplot and matplotlib, with the y-axis being the logarithmic scale. I am using the following code:
pylab.figure(num=None,figsize=(8,6))
pylab.plot(x_loc,var1,x_loc,var2)
\#pylab.yscale('log')
pylab.xlabel('$y/L_{1/2}$',fontsize=18)
pylab.ylabel('$n/n_{max}$',fo... | stackexchange/codereview |
Ok, first up, this is NOT for a class, test, or other student type activity.
I'm a scripter for a game, and am trying to implement the math library for all to use, and unfortunately, all I have available to me is very basic lua. The implemented version cannot be changed, and does not include any libraries. For those w... | stackexchange/codereview |
I am trying to parse somewhat standard XML documents that use a schema called MARCXML from various sources.
Here are the first few lines of an example XML file that needs to be handled...
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<marc:collection xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsi="http... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.