instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
-(void)ViewDidLoad{
UITextField *txt = [[UITextField alloc]initWithFrame:CGRectMake(140, 120, 160, 40)];
txt.returnKeyType = UIReturnKeyDone;
txt.placeholder = @"enter name";
[txt setBorderStyle:UITextBorderStyleRoundedRect];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[butt... | stackexchange/codereview |
The other person on my dev team has been deploying our Django app to the server via Fabric. Since I need to be able to deploy as well I setup Fabric on my system, but when I try to deploy I get a Global Name error:
File ".../fabfile.py", line 4, in staging
config.settings = 'staging'
NameError: global name 'config' ... | stackexchange/codereview |
I have this problem where I am passing NVARCHAR parameter to a stored procedure, and the field type in the table for that parameter is INT.
I am doing that because I am using IN function, and for example if I want to send multiple parameters, that is the only possible way to do through .NET. Or not?
The SP doesn't ge... | stackexchange/codereview |
would someone kindly provide me with the simplest forms of encrypting a file with PHP using mcrypt "say .swf" and then decrypting it in my flex application?
thank you in advance.
ps: the file will be served to the Flex application through read_file($file); function.
Rami
| stackexchange/codereview |
Please have a look at the two simplified examples of designing a class aggregation below.
Solution 1
Header
// need include, forward declaration is not enough
#include "door.h"
class CGarage
{
public:
CGarage(const std::string &val);
private:
CDoor m_door;
};
Source
#include "garage.h"
CGarage::CGarage(cons... | stackexchange/codereview |
In my code base is the (very simplified) following:
public static void main (String[] args) {
System.out.println("Starting application");
try {
System.out.println("About to validate");
validate(args);
catch (Exception e) {
e.printStackTrace();
}
}
public static void validate(String[] args... | stackexchange/codereview |
I need to build this c++ project.
its failing on the line
#include <wkhtmltox/image.h>
#include <wkhtmltox/pdf.h>
fatal error C1083: Cannot open include file: 'wkhtmltox/image.h': No such file or directory
fatal error C1083: Cannot open include file: 'wkhtmltox/pdf.h': No such file or directory
clearly its not findi... | stackexchange/codereview |
How can I send data from one activity (intent) to another?
I use this code to send data:
Intent i=new Intent(context,SendMessage.class);
i.putExtra("id", user.getUserAccountId()+"");
i.putExtra("name", user.getUserFullName());
context.startActivity(i);
| stackexchange/codereview |
I'm trying to set up a JPanel using a BorderLayout in such a way to create a chart. For this, I have an axis component in the west & south regions and the chart itself in the center region. The problem is.. when I add my 'graph' component (basic class extending Component) and draw things onto it, this overlaps with the... | stackexchange/codereview |
How do I define fields that I know I will be querying on to be indexed using Neodatis Object Database under DataNucleus?
The @Index annotation appears to only apply to ORM for relational databases by my understanding.
| stackexchange/codereview |
I'm a beginner in 3D Programming. I wanna build a web that provide users can create their own avatar (3D model).
For example, I have sample models of face, body, clothes, etc. and users can choose this sample model to create 3D avatar.
What platform or tools which I need to build this function?
| stackexchange/codereview |
Is there a way to use Google Image Search API from Android application?
Official page (http://code.google.com/apis/imagesearch/) talks about using the API from a website. I'd like to use it from android application. I'd like to get URL of a first image for the specified keyword which will user enter in my applicaton. T... | stackexchange/codereview |
I have been trying to get IIS Logs from Azure, and I was able to get to get it going once - now, no matter what I try, I can't get it to transfer logs to my Storage account.
I was trying to do this without re-deploying my code, which after reading around seemed possible. And, as I mentioned, I was successful. But this ... | stackexchange/codereview |
My query in Stored procedure looks like this.
insert into a(name) select name from b.
I want to get all the new identity value from a.
How can i do this?
Thanks in advance.
| stackexchange/codereview |
Where can I find a guide to different postal address formats that are used in the major countries in the world?
For example, in the U.S. one format is:
street_number street_name street_type
city, state zipcode
But in Germany it might be:
street_name street_number
postcode city
| stackexchange/codereview |
What I'm trying to do:
I want the user to be able to custom gestures and name them "up","down"..etc. Then when the user runs my application, it loads up a WebView with a particular url like http://google.com. Then the user can draw the gesture he created earlier. So if he draws the "up" gesture, then another webview op... | stackexchange/codereview |
If I wanted to do something like this:
<?php
$numbers = array(
"a_pos" => 0,
"b_pos" => 2,
"c_pos" => 3
);
if ($numbers["a_pos"] == 0)
$a_pos_txt = TRUE;
if ($numbers["b_pos"] == 0)
$b_pos_txt = TRUE;
if ($numbers["c_pos"] == 0)
$c_pos_txt = TRUE;
?>
(Just assign TRUE to $a_pos_txt ... | stackexchange/codereview |
Can anyone please help me understand why the "Generate Local Resource" option is disabled in my Visual Studio 2010 (premium version)? I have a simple Website and first of all I couldn't find the option in the menu, then I figured how to show it in the menu but is's always disabled... I'm going crazy with this.
| stackexchange/codereview |
I am looking for the feasibility of implementing an ad-hoc type messaging service on Android. Basically I want a several Android users to be able to communicate (text is enough at this point) without having a cellular connection. But there can be a centralized access point. For example a low-power computer with a wirel... | stackexchange/codereview |
I'm having a lot of trouble dealing with Lucene's similarity factor. I want it to apply a similarity factor different than its default (which is 0.5 according to documentation), but it doesn't seem to be working.
When I type a query that explicitly sets the required similarity factor, like [tinberland~0.5] (notice tha... | stackexchange/codereview |
I have a piece of code like this.
<form method="get" action="{$self}" name="addcommentform">
<textarea title="{$enterComment}" name="comment" class="commentarea" </textarea>
<input class="Button" type="submit" value="{$postComment}" />
</form>
How do I keep track of when what is the text entered in the form's textarea... | stackexchange/codereview |
I have n open geometric lines in 3D. which need to be joined into a single line based upon the criteria that minimum length of additional lines between the end points of the lines. Please suggest algorithm which have minimum complexity.
| stackexchange/codereview |
This must be a noob question, but I can't find the proper wait to achieve the following:
In android, I made a subclass MyView extending a View class. In B, I've defined a method mMethod not present in the View class.
Now, I want to set an OnClickListener interface on MyView. Doing this, I must override a onClick method... | stackexchange/codereview |
I have three form fields: name, first name, and lastname. The name field is hidden and I'm trying to set the value to the firstname + lastname on keypress. I'm also trying to format it so that the characters are all lowercase and spaces are transformed into dashes.
So:
<input type="text" name="firstname" value="John... | stackexchange/codereview |
HI,
How can i add, 4-radiobuttons and 2-checkBoxes in the same ListPreference in Android PreferenceScreen in android ? Need Help.
Thanks in adv.
rgds,
Praween
| stackexchange/codereview |
How can an admin resend a user's activation email or allow them to resend it to themselves.
| stackexchange/codereview |
I have got an tableView, so when the cell is tapped it diverts to a DetailViewController. But it doesn´t have any data in it, such as images or text. How do I pass this data to my DetailView?
Code for controllers:
.h file
@interface Sushi : NSObject {
IBOutlet UILabel *sushiDescription;
IBOutlet UIImageView *s... | stackexchange/codereview |
Suppose I have the following set up:
Public Interface IA
Property Name()
Property Id()
...
End Interface
//Custom File
Partial Public Class A
... Mostly Blank - used for extending the generated file
End Class
//Generated via a tool
Partial Public Class A
... contains properties, methods, etc
Property Name... | stackexchange/codereview |
I have written quite a few AREL statements, but I'm tying myself in knots over this one. Here is my situation:
class Product < AR::Base
has_many :parents, :class_name => "ProductLink", :foreign_key => :to_product_id
has_many :children, :class_name => "ProductLink", :foreign_key => :from_product_id
# has an attri... | stackexchange/codereview |
I've been searching all evening but can't find the information I'm looking for, or even if it's possible, which is quite distressing ;)
I'm using Java3D and can't figure out how to rotate the camera in world space.
My left/right, and up/down rotation both happen on local space.
Meaning that if I move left and right, ev... | stackexchange/codereview |
I got a pretty common scenario, namely a self implemented ILogger interface. It contains several methods like _logger.Debug("Some stuff") and so on. The implementation is provided by a LoggingService, and used in classes the normal way.
Now I have a question regarding performance, I am writing for Windows Phone 7, and ... | stackexchange/codereview |
To define a templated class, I consider three different files. The declaration is in a .h file, the methods implentations are in a .cpp file, and explicit instantiations are included in a .inc file (by adding a line at the end of the .cpp, e.g: #include "bar-impl.inc").
Now, here's my problem. I've two template classes... | stackexchange/codereview |
I'm having a little trouble converting some LINQ to VB. I've taken a pass at figuring it out but I've been unsuccessful this moring thus far.
var feeds =
from feed in feedXML.Descendants("item")
select new
{
Date = DateTime.Parse(feed.Element("pubDate").Value)
.ToShortDateString(),
Ti... | stackexchange/codereview |
I have two hostnames, a domain and subdomain (example.com and service.example.com) both pointing to a single (Windows 2008) server. The server is running IIS 7 (hosting an ASP.NET web site) and a self-hosted WCF service. I want IIS to handle requests to http://example.com and the WCF service to handle requests to http:... | stackexchange/codereview |
I am trying to figure out how to register decorators for generic types with 2 generic parameters. The first test case below is just a sanity check for a 1-generic parameter case which I added when the 2-parameter case did not work as expected.
The third (failing) case with a 1-generic-parameter (contravariant this tim... | stackexchange/codereview |
i recently wrote a java program that takes an infix expression and converts it into a postfix expression. It works for the most part but i am getting wrong outputs for some expressions. For example the expression a+b+c+d+e will output abcde+++++ when it should output
a b + c + d + e +.
import java.util.Stack;
public cl... | stackexchange/codereview |
Through a lot of sticking my head in the sand, reinventing the wheel and general stubbornness, I've managed to go all this time (years) avoiding learning the built-in ASP.Net support for web application authentication, users and roles. Part of the reason is that rolling my own originally seemed like less work than gett... | stackexchange/codereview |
I am writing a method which calculates the average time interval between a series of events (specifically, button tapping in iPhone). Since the number of time intervals I want to average might change during the program's life-cycle, I am storing the time readings in an object named tapTimes of type NSMutableArray so I ... | stackexchange/codereview |
I am trying to implement an adWhirl view in the same view as one that has an MKMapView object. If I follow the standard steps that work fine with my tableViews, that is
awView = [AdWhirlView requestAdWhirlViewWithDelegate:self];
[self.view addSubview:awView];
then the funny behavior starts. In the simulator it recei... | stackexchange/codereview |
While Grails has several tags to generate either resource links or anchor tags, what about a plain href? Say I'm coding some AJAX functions on my own and I want to say something like
$.post("<g:href controller='mycontroller' action='update' />');
| stackexchange/codereview |
I have a div which position is fixed, within that i have a div with position absolute....
There is absolute positioned div is working..... But position:fixed is not working in ie........
Hope you understand...
HTML
<div class="container">
<div class="cont_left">
<div style="position:relative">
<div id="nav">... | stackexchange/codereview |
I have installed cudatoolkit_3.2.16_win_64 and gpucomputingsdk_3.2.16_win_64. When I choose a example of the SDK, I get this error:
The imported project "C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\NvCudaRuntimeApi.targets"
was not found. Confirm that the path
in the declaration is
c... | stackexchange/codereview |
I recently came across Heroku, which looks extremely cool. You just upload your app and you're done; it scales without further intervention. Unfortunately, Heroku is for Ruby and our app is in Java.
It's a webapp, implemented as a .war file. We want it to scale automatically across clusters of servers maintained entire... | stackexchange/codereview |
I have a code that at the click on a single element (#add_text) adds content (#text_frame) inside another element (#template) and this element (#text_frame) can be dragged.
$('#add_text').mousedown
(
function()
{
$('#add_text').css('background-color', 'blue'),
$('#template... | stackexchange/codereview |
hey i have a checkbox list , which inside it there are checkbox items ofc.
i am trying without succuess to understand how to open up an event which is being occured whenever a checkbox list is being checked
thanks in advance for your help
| stackexchange/codereview |
public class Sendfile extends Activity
{
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String url = "http://http://192.168.0.158:4299";
File file = new File(Environment.getExternalStorageDirec... | stackexchange/codereview |
am using struts2, i need to do multi language option, language option i have put in header of the all pages.May i know, to pass action name at dynamically it is possible in struts.xml file.action name is dynamic or static? can anybody help me please, advance in thanks.
for example:In the struts.xml file
$(curAc... | stackexchange/codereview |
I'm using Flex 3 and I want to access a webservice on another server. I've imported the webservice (Data->Import) succesfully into my application, but when I'm accessing the functions in the code itself I get the following error:
Warning: Domain ... does not specify a meta-policy. Applying default meta-policy "all".
Th... | stackexchange/codereview |
In browsers such as Firefox or Safari, with a website open, I can right click the page, and select something like: "View Page Source" or "View Source." This shows the HTML source for the page.
In Ruby, is there a function (maybe a library) that allows me to store this HTML source as a variable? Something like this:
so... | stackexchange/codereview |
I'm solving the following problem: I have an object and I know its position now and its position 300ms ago. I assume the object is moving. I have a point to which I want the object to get.
What I need is to get the angle from my current object to the destination point in such a format that I know whether to turn left o... | stackexchange/codereview |
I have a global shared variable and that is being updated 5 times by each of the 5 threads spawned. As per my understanding the increment operation is consisting of 3 instructions
load reg, M
inc reg
store reg, M
So I want to ask that in this scenario what would be the maximum and minimum value given arbitrary inter... | stackexchange/codereview |
i'm currently setting the alarm via the following..
//set the alarm
alarm.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pendingintent);
i don't seem to see an AlarmManager method that allows me to get the time of that set alarm... Is there a way to do it from somewhere else in my app?
| stackexchange/codereview |
I have an application where I would like to override the behavior of destroy for many of my models. The use case is that users may have a legitimate need to delete a particular record, but actually deleting the row from the database would destroy referential integrity that affects other related models. For example, a u... | stackexchange/codereview |
I'm doing some webpage parsing in VBA within Excel; I'm MSHTML to download and parse the webpage. However, on certain sites, a dialog box pops up. It works fine; however, I would like to know if there is a way to disable this or possibly get around it. Thank-you for your time. My code snippet for the document creation ... | stackexchange/codereview |
I created an UserControl to use as a Data Navigator. I've defined two DependencyProperties in this control as follows (DependencyProperty implied):
public ICollection DataCollection
{
get { return GetValue(DataCollectionProperty) as ICollection; }
set { SetValue(DataCollectionProperty, value); }
}
public IColl... | stackexchange/codereview |
I want to save trace information into .svclog files but only for failed requests. Is this possible? If so, how precisely?
I have a WCF service that's called hundreds of times per minute. On rare occasions clients will get an error 500 that occurs outside of the boundaries of my code running inside WCF (usually sec... | stackexchange/codereview |
I have a class that extends a JPanel called Row. I have a bunch of Row added to a JLabel, the code is the following:
JFrame f=new JFrame();
JPanel rowPanel = new JPanel();
//southReviewPanel.setPreferredSize(new Dimension(400,130));
rowPanel.setLayout(new BoxLayout(rowPanel, BoxLayout.Y_AXIS));
rowPanel.add(test1);
ro... | stackexchange/codereview |
I used file HTML input instead of FileUpload Web Control. Don't ask why but I just have to!
HTML:
<input type="file" id="image1" class="listUploadAdd" name="ImageAdd1" />
Code behind:
Dim ImageAdd1 As String = Request.Form("ImageAdd1").ToString()
I browsed from "C:/Orange.jpg" to upload and the result in Code Behind ... | stackexchange/codereview |
I have an xml schema with an element defined of type xs:boolean like this:
<xs:element name="useful"
minOccurs="1" maxOccurs="1"
type="xs:boolean"/>
I'm trying to use a choose/when/otherwise block in XSL to output something specific based on the value of that, like this:
<xsl:choose>
<xs... | stackexchange/codereview |
While i am trying to convert a value to Int32, I get an error format exception, meaning the value is not in the proper format. I think I am converting a value in right format though.
| stackexchange/codereview |
I am writing some SWIG/Python bindings for some C++ code. This is for what is called the Kinect Accidental API, I have the motor and led functions working. The callbacks to the Listener class which parse and populate the RGB and Depth buffers do not seem to get called from SWIG. The data capture threads evidently start... | stackexchange/codereview |
From the /posts/edit-view I'm submitting a form to the action addCategory in my Post controller.
The action does all the work it has to do, and subsequently calls $this->redirect($this->referer());.
At first sight my app works fine, but I encountered some hickups when moving to a production server. Monitoring the calls... | stackexchange/codereview |
I've got the following Button declared in my main.xml
<Button android:name="@+id/clickedStartService"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:onClick="clickedStartService"
android:text="Start"
/>
<Button android:name="@+id/clickedStopServi... | stackexchange/codereview |
On my top level categories, I'd like to use both static blocks and products along with layered navigation. The way I want to use it is that when none of the layered navigation options have been selected, a static block only displays (toys.phtml), whereas if any of the options are selected, the static block is hidden an... | stackexchange/codereview |
I use symfony's ProjectConfiguration.class.php for configuring doctrine's connection:
public function configureDoctrineConnectionCertby(Doctrine_Connection $conn)
{
$conn->setListener(new MyListner());
}
Where should I define MyListner class within a symfony project?
| stackexchange/codereview |
I'm creating a rather large application. I've used LINQ to SQL the past year or two, but since it is being deprecated, I'd like to move on to something else, my options being Entity Framework or NHibernate.
I'd prefer Entity Framework because of it's similarities to LINQ to SQL, but I'm a little hesitant to commit to a... | stackexchange/codereview |
Why should Graphics needs to be disposed?
also the Pen and SolidBrush?
| stackexchange/codereview |
I recently started using TexnicCenter after using winshell for several years. The spell check in Texniccenter has to be invoked manually which is tedious. Is there a way to enable inline or automatic spell check in Texnicceneter?
| stackexchange/codereview |
I have this working code here:
function portfolio() {
$('#main-projects').children().toggle(function () {
$(this).css('cursor', 'pointer');
var projectname = $(this).attr('id');
//alert(projectname);
projectname = projectname.replace("li-", "main-");
$('.main-details').hide()... | stackexchange/codereview |
Maybe I've misunderstood something fundamentally about how memory mapped files work but, how do I append to the end of a file when I'm using MemoryMappedFile? the CreateViewAccessor only allows me to create a view of the file current's capacity
I could write to the end using the underlying FileStream instead but doesn... | stackexchange/codereview |
What's the best way to see if a string contains all capital letters? I still want the function to return true if the string also contains symbols or numbers.
| stackexchange/codereview |
I use SQL like this to flatten hierarchical data. I just create a view and toss it on the EF diagram. However this doesn't fit the "Replace SQL Management Studio with LinqPad" mentality. How would I code these in Linq (and C#)? (Linq to Entities / Entity Framework 4)
Table A holds products and table B holds many ki... | stackexchange/codereview |
I'm trying to switch Jinja2 template in the django app without restarting the application.
Has anyone done this? Basically I need to force jinja2 to reload the templates once the skin selection change is applied.
I've tried to re-create cache object on the template environment object with no effect.
myskin_utils.py:
f... | stackexchange/codereview |
I use MicrosoftMVCValidation.js to validate a form (client side / no ajax).
When the submit button is clicked, the form is submitted. If there is some invalid form field then an error message is shown instead of sending the data to the server.
I want know how to add custom function only when the form is really submitte... | stackexchange/codereview |
i have a win32 api application residing on a usb virtual cd. Is it possible to determine whether it was run by windows executing autorun.inf or by user double-clicking the cd icon in explorer?
Thanks...
| stackexchange/codereview |
I'm working on two apps that connect to eachother using TCP. At one point, one of them is trying to connect using a TcpClient, but the other app is not guaranteed to have started listening yet (using TcpListener).
My first attempt was this:
TcpClient c = null;
while (true)
{
try
{
c = new TcpClient();
... | stackexchange/codereview |
Hi
I'm using jquery ui dialog and trying to submit form using ajax and display its response. Till form dialog and ajax request its working fine but don't know how to display its response in same dialog. Any suggestion going to help me.
| stackexchange/codereview |
can somebody list the uses of JMX in web application other than logging. I am new to JMX and logging seems to be the only good use of JMX.
Thanks in advance
| stackexchange/codereview |
Firstly let me mention that I'm new to web-frameworks.
I have to write my first web-app for a Uni project. I spent two weeks learning Grails and Django. Started working with Rails yesterday and loved it. So I've decided to go with it and discard my work in the other frameworks.
About the app
It's supposed to be a Tw... | stackexchange/codereview |
I am trying to delete an asp.net user from all tables.
When I call:
bool isDeleted = Membership.DeleteUser(username, true);
isDeleted is being set to false;
Is there a way to tell why it is not deleting the user?
| stackexchange/codereview |
I'm using an event-scope component as a view controller. I need to have an "init" method on that controller, where I can do authorization checks, load some entities from JPA, etc.
Problem is, if I choose to do that in a @Create method, parameters defined in page.xml are not yet set (via GET). @RequestParameter fields g... | stackexchange/codereview |
I have a form that I validate it using the JavaScript.
Now when I submit the form I can't use the check boxes in that form.
This is a part of my JS that counts and validates the check boxes.
<script type="text/javascript">
function validateForm()
{
//My Declarations
var cases = addClients.caseType.length;
v... | stackexchange/codereview |
The title is pretty self explanatory.
the following code...:
URL imageUrl = new URL(url);
try {
HttpURLConnection conn= (HttpURLConnection)imageUrl.openConnection();
conn.setDoInput(true);
conn.connect();
int length = conn.getContentLength();
... | stackexchange/codereview |
I'm trying to read a URL within our corporate network. Spesifically the server I'm contacting is in one office and the client PC is in another:
print(urlopen(r"http://london.mycompany/mydir/").read())
Whenever I run this function I get:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Python2... | stackexchange/codereview |
using (SqlConnection sqlConn = new SqlConnection(XYZ.Globals.ConnectionString))
{
using (SqlDataAdapter adapter = new SqlDataAdapter())
{ ... | stackexchange/codereview |
I'm using Eclipse Helios and I was wondering how can I add a library project to my folder that will be copied to the build directory where my compiled project resides.
currently I did the following:
created a lib directory in the root of my project
copied the relevant jars to that dir
My Project -> properties -> Java ... | stackexchange/codereview |
I'm in a game programming school and here we have to learn about code speed, something that seems important.
Are there any tutorial or list of things to be aware of when programming in C/C++ ?
I wonder about many things, like why the default behavior of C is by passing data rather than reference/address, or how the com... | stackexchange/codereview |
I'm using the following to download all instances of one of my kinds:
appcfg.py download_data --config_file=bulkloader.yaml --kind=ModelName --filename=ModelName.csv --url=http://appid.appspot.com/remote_api
If the kind has more instances than the batch size, then I get this warning:
No descending index on __key__, pe... | stackexchange/codereview |
My button is supposed to change colour after certain amount of mouse overs, however Multibinding doesn't work properly.
Buttons in my application has the following style:
<Style TargetType="Button">
<EventSetter Event="MouseEnter" Handler="OnMouseEnterButton"/>
<Style.Triggers>
<MultiTri... | stackexchange/codereview |
I want to make a website that displays my map, has panning, zooming and other features.
The google API seems to be the right thing for me. Just one question : Can i use the google javascript api with my own map images on my own server. I dont want to use the actual google maps, just its capability to display zoomable/... | stackexchange/codereview |
I have one physical server. On this server one VMWare running "SQL Server 2008R2", an another VMWare runnning "IIS 7" on Windows 2008R2
When I try to join the web site from the virtual machine where IIS is running or from another client on the network, I receive this error :
"401 Unauthorized : Access is denied due to ... | stackexchange/codereview |
I have two branches and want to cherry-pick a change from one and move it to the other. At a later date, when I merge the two repositories what effect will the cherry-pick have since the commit IDs will be different but the content will be the same.
| stackexchange/codereview |
I have a list of people, each person having a birthdate, which is predictably stored in a DateField. I'm trying to create a list of those people—sorted by the month and day of their birth (disregarding the year)—to have a sort of "who's birthday is coming up" display.
I can't seem to order a QuerySet by the person's da... | stackexchange/codereview |
I'd like to do some code-analysis of Javascript. I'd prefer to operate on ASTs or S-Expressions. It's certainly possible that the V8 engine builds this, though I can't seem to find any documentation on how to access this information from a Javascript context.
I'd be perfectly happy to do my analysis in Ruby, though the... | stackexchange/codereview |
I have two sentences that needed to be compared to each-other.
The final result is how much percent one sentence contains in the other, my problem is that I have 100.000 records that need to be compared with lets say another 10.
That is 1.000.000 loops, which in my algorithm is very slow.
This is the algorithm that I ... | stackexchange/codereview |
I've been reading a lot about MVVM (using Laurent Bugnion's library in specific) and I'm constantly struggling to determine how to do things in MVVM that were otherwise easy with code behind.
Here's just one example where I suspect I'm doing things the hard way. If anyone has the time to read all this, perhaps they ca... | stackexchange/codereview |
This is more focused than my previous Valgrind question; I am trying to narrow down write and read errors when parsing command-line options:
#include <stdio.h> ... | stackexchange/codereview |
I'm trying to make a open source kiosk like system. When the web browser starts all programs, it will run in the browser using PHP. I've found this link: Program execution Functions. It's using:
<?php
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("WINWORD.exe", 7, false);
?>
I was able to start Mic... | stackexchange/codereview |
can anybody give example how to implement gesture detector onfling in webview in android
Thanks
| stackexchange/codereview |
I have an object that looks like this
var obj = {
p1 : true,
p2 : true,
p3 : false
}
I am looking to try and pass this object as part of a post request.
however on the other end (in php) all I get is
[object Object]
How can I send an object via post?
basically what I am trying to do is
I have an input that is ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.