instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
There is this famous quote that says
Procedural code gets information then
makes decisions. Object-oriented code
tells objects to do things. — Alec
Sharp
The subject of the post is precisely about that.
Let's assume we are developing a game in which we have a Game where there is a Board.
When facing the proble... | stackexchange/codereview |
Possible Duplicate:
is there any other way of creating an object without using “new” keyword in java
how many ways are there to create an object in java ?
| stackexchange/codereview |
I'm creating a component-based game object system. Some tips:
GameObject is simply a list of Components.
There are GameSubsystems. For example, rendering, physics etc. Each GameSubsystem contains pointers to some of Components. GameSubsystem is a very powerful and flexible abstraction: it represents any slice (or aspe... | stackexchange/codereview |
I am trying to get the latest modified "posts", from a group of "posts", that all have the same parent_id. I already learned today that grouping is not the answer, and that I should either use an inner subquery, or a "within-group aggregate", thanks to this site >> Aggregates >> Within-group aggregates. I chose to go ... | stackexchange/codereview |
I have a csv file that I want to use with php. The first thing in the csv are column names. Everything is separated by commas.
I want to be able to put the column names as the array name and all the values for that column would be under that array name. So if there were 20 rows under column1 then I could do column1[0]... | stackexchange/codereview |
is there any list which HTML5 features the UIWebView supports and which not? I am interested mainly in:
1) localStorage/sessionStorage
2) offline manifest
3) web sockets
4) web workers
In pre-iOS4 there was not an offline manifest support, which was necessary to program in objective-C, which - when done broke the local... | stackexchange/codereview |
I have a Panel with property, Visible set to False
<asp:Panel ID="pnlUpload" runat="server" Visible="False" />
and i try to make it visible using javascript as code below
document.getElementById('<%= Panel1.ClientID %>').style.visibility = 'visible';
but it's not working, any idea guys?
| stackexchange/codereview |
How can i pass the json output from controller action to its view ?
As I tried to send before, My code is :
public ActionResult Index()
{
Guid Id = new Guid("66083eec-7965-4f3b-adcf-218febbbceb3");
List<TasksToOfficer> officersTasks = tasks_to_officer_management.GetTasksToOfficers(Id);
return Json(officersT... | stackexchange/codereview |
I have this code:
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/cashItemsList"
android:cacheColorHint="#00000000"
android:divider="@drawable/list_divider"></ListView>
where @drawable/list_divider is:
<shape
xmlns:android="http://schemas.an... | stackexchange/codereview |
What are some of your favorite tricks to debug C++ programs with gdb ?
Interested in all tricks but also
how you call methods (which may be virtual) on objects from within gdb
inspecting STL objects (pretty printing them)
preventing gdb from going into STL code with continue
dealing with inlining, threads, tcmalloc (... | stackexchange/codereview |
I have configured my application to run using what is described on this thread
Is there any way to check if my application (a given ApplicationDescriptor) is currently scheduled?
Also what happens if the device is rebooted? Does the application remain scheduled or does it need to be scheduled again?
| stackexchange/codereview |
Can anyone tell me how to reduce the width and height of CheckBox in order to display very small CheckBox in Android ?
Thanks In Advance,
| stackexchange/codereview |
Our core server is calling out to a soap web service over https on a number of different servers to confirm that a transaction has completed.
The code is dotnet 3.5 (vb) and works for the various callback services we have set up until we just moved a new one into production and it is refusing to communicate, giving the... | stackexchange/codereview |
I'm making a simple high scores database for an iPhone game using Amazon's SimpleDB and am running into some strange issues where SimpleDB's response messages don't seem to line up with the requests I'm sending or even the state of the data on the server.
The expected sequence of events for submitting high scores in t... | stackexchange/codereview |
What is a good Android analog of iOS's UISegmentedControl?
| stackexchange/codereview |
Say if I have a Java Graphics object, and I want to draw a line or a rectangle on it. When I issue the command to draw, it appears on screen immediately. I just wonder how could I make this progress as a fade-in / fade-out effect, same as what you can achieve in Javascript.
Any thoughts?
Many thanks for the help and s... | stackexchange/codereview |
it happens only on the 3GS, 4 or 3G is OK.
seems like viewcontroller got called everytime camera dismissed.
any thoughts on that?
It's Iphone, the system calls viewdidunload my view of viewcontroller when I did a
[self presentModalViewController:picker1 animated:YES];
I don't want the system to dismiss my view. I di... | stackexchange/codereview |
Does the following generic function exist anywhere in the .NET 4.0 framework? I would like to reuse it if it does rather than writing it myself:
public static class Lambda
{
public static U Wrap<U>(Func<U> f)
{
return f();
}
}
It allows for the following construct (i.e., lambda expressions embedded in... | stackexchange/codereview |
I have defined the following in my gridview markup (simplified):
<asp:GridView ID="grvReport" runat="server" DataSourceID="odsReport"
AutoGenerateColumns="False" DataKeyNames="EntryDate,EmployeeNumber">
Then I define my datasource's update parameters as such:
<UpdateParameters> ... | stackexchange/codereview |
I am newbie in C#. How can I create http(s) post, get request on server with TcpClient.
I don’t use HttpWebRequest class. Any good example? Thank you
But, I will use SOCKS proxy, such as TOR. I need used this library starksoft.com/prod_proxy.html, and this library works with TcpClient.
| stackexchange/codereview |
EDIT 2:
I did solve my problem, but i don't know how:S I was moving my code snippets a bit around, a suddenly it worked. Must have done something in the wrong order, but its weird, checked it many times. Thanks for you help, and sorry I can't post an answer ;)
Hi.
I have a list view which I'm trying to refresh to updat... | stackexchange/codereview |
Is there any event in Flex 4 that I can use to detect a state change?
| stackexchange/codereview |
In C# Using Directory.GetFiles(), is there a way to start threads as files are found?
The behavior appears to be 'find all the files' then do what you need on each. Is there another class that allows one to start threads (up to a certain count) as files are found?
| stackexchange/codereview |
I'm trying to get my Heroku app to run using the bamboo-mri-1.9.2 stack. Of course it's running fine locally on Ruby 1.9.2. But when on production it crashes during the startup on executing config.ru which looks like this:
require 'sinatratestapp'
run Sinatra::Application
My .gems file:
sinatra --version '>= 1.0'
And... | stackexchange/codereview |
I am a totally unfamiliar in this C# Visual Studio programming environment but I am required to finish a task.
I am sorry if my question seems silly. But I really could not understand what other posts on this site or other site on the net explaining. I need a step by step guide to do this final step to accomplish my t... | stackexchange/codereview |
I'm trying to upgrade my app to use the latest drop of substance L&F but the problem is that I got the Following exception
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Substance delegate used when Substance is not the current LAF [component JButton in window App under Substance Business Bl... | stackexchange/codereview |
So I've recently started to include quite a few .js files in to my web application and some of them depend on each other so load order is important.
However rails caching just seems to load a all.js file with no particular order to the files.
What's a good way to solve this issue?
| stackexchange/codereview |
I want to stack two treeviews on each other and have the columns be aligned. I figured the way to do this would be to use a gtk.SizeGroup somehow. However, gtk.TreeViewColumn is not a widget... how can I do this?
| stackexchange/codereview |
I'm using ReSharper 5.1 in VS2010, and I've been annoyed by the intellisense behavior for quite a while. It seems this is different since R# 4.5/VS2008, but I don't have that combo handy to verify.
Let's say I'm typing some code:
...
public Guid teamId { get; set; }
...
And later on I decide I want to make teamId a r... | stackexchange/codereview |
In mySql Workbench there's a possibility to "sync" the model with the DB and vice versa. Is there a function like this in EF? I've added som entities and I'd like it to get reflected in the DB. Do I really have to regenerate the entire DB and loose data?
Thanks
| stackexchange/codereview |
Continuing to try to understand blocks in Objective-C. I have the following function:
typedef void(^TAnimation)(void);
TAnimation makeAnim(UIView *aView, CGFloat angle, CGFloat x, CGFloat y,
CGFloat width, CGFloat height, UIInterfaceOrientation uiio) {
return Block_copy(^{
aView.transfo... | stackexchange/codereview |
I am new in PyQt,currently working on a form where user will insert data into lineEdit and after submitting the data will be shown in the tablewidget.
I am reading data fro lineEdit and printing it but unfortunately not finding any way to add lineEdit data to the tableWidget.The data should appear in the exact cell.
I... | stackexchange/codereview |
What I want is pretty much like Buy Now button,but I want the price to be changed on the fly,not set fixed before hand.
Is there such a payment method in paypal?
| stackexchange/codereview |
Im hours and hours finding why one of my ZEND plugin sometimes running twice (depends on URL)
Note that my plugin has preDispatch and postDispatch methods and when I debugging the code it works like this:
MY_Plugin:preDispatch (echo $_SESSION['DBG'] has value)
MY_Plugin:postDispatch (unset($_SESSION['DBG']))
and then... | stackexchange/codereview |
Can I wait for a signal from an event so that, when I receive the signal then only I will proceed with next code segment?
For making it clear , I have the follwoing code:
hiddenMediaElement.Source = new Uri(strMediaFileName, UriKind.RelativeOrAbsolute);
hiddenMediaElement.MediaFailed += (obj, Sender) =>
{
bMediaE... | stackexchange/codereview |
I can't seem to get tomcat to properly set environment variables. I can run my .jar normally with my LD_LIBRARY_PATH set to the correct place, it finds my external libraries just fine. If I unset LD_LIBRARY_PATH and run the jar I get the error:
java.lang.RuntimeException: Native code library failed to load:
ensure... | stackexchange/codereview |
I'm using the .Net GZipStream class to compress and decompress files. After I do the decompression, the data seems fine, but then turns to nothing but zeros after a certain, seemingly arbitrary, point. For example, after decompressing a file, it is the proper 19KB in size, but bytes 10,588 and on are all zeros.
I'm not... | stackexchange/codereview |
I have a single column layout where the column is a centered div with a fixed width. I want to place a wider div within the column which overflows it's parents, but center it within the parent. Conceptually something like the following:
<div style="width: 100px; margin: 0 auto; overflow:visible;" id="parent">
<div ... | stackexchange/codereview |
How can I print a single dom element (such as table) or whole window dom object using java script in internet explorer, ff etc...?
| stackexchange/codereview |
I'm trying to select events for the next 2 weeks starting from today's date.
The logic used is pretty easy. I get all calendars, then pick one i need to pull events from and supply the date range. I'm pulling dates from the selected calendar however it doesn't look like the date range is applied. Now, i have 2 events ... | stackexchange/codereview |
I have encountered a problem in importing the dump file to a new database.
When importing the dump file it requires a new tablespace which does not exist in the database.
To create the tablespace I need to hijack some scripts which is readonly.For this reason it is complicated to export the table structure through imp... | stackexchange/codereview |
I see stackoverflow's login system and love the simplicity of clicking one button to log in using Google gmail account.
Is there something available for PHP? I know there's solutions out there for Django and others. But would like a PHP solution.
Thanks!
| stackexchange/codereview |
I have a model that looks something like this:
class Comment < ActiveRecord::Base
...
#allow editing comment if it is moderated and the user passed-in
#is the one that owns the comment
def can_edit?(user)
moderated? and user.Type == User and user.id == self.user_id
end
...
end
And a call in a view:
<%=... | stackexchange/codereview |
I would like to have a Bean and a SubBean like this:
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
@Component
public class SubBean implements ApplicationContextAware{
private Object parent;
public void setApplicationContext(ApplicationContext ctx){
this.parent = doSomeMagicToGetMyParent(ctx);
}
public Object getPa... | stackexchange/codereview |
I am writing an app that needs to send emails at the end of each transaction. I am doing the following:
Intent mail = new Intent(Intent.ACTION_SEND);
mail.setType("text/html");
mail.putExtra(Intent.EXTRA_EMAIL, new String[] { emailTo });
mail.putExtra(Intent.EXTRA_SUBJECT, "Send from Android");
mail.putExtra(Intent.EX... | stackexchange/codereview |
I'm creating a class which will contain a list of IP addresses, as Net::IP objects.
I've wrapped the Net::IP object as a subtype (IPAddress), and defined a coercion from a string to IPAddress. Then I've added an attribute to the class called ip_list with the type ArrayRef[IPAddress], and delegated to the push method o... | stackexchange/codereview |
I have a HTML page that contains a flash file and some a JavaScript function that returns the object of the flash file.
So far I can call the JavaScript function from C# and have it return an Object, but I want to cast it as AxShockwaveFlash and access the COM Object directly from C#.
I have seen this done with Windows... | stackexchange/codereview |
Im running eclipse on my windows 7 machine, 64bit with 6gb ram and core 2 duo.
Im currently running Eclipse 3.6 and android 2.2 SDK
Im running jdk 1.6
Im noticing that when coding and the context popups to list methods of a class, it hangs Eclipse for up to 15 seconds. This is very frustrating.
One thing to note, when ... | stackexchange/codereview |
I'm trying to pull the text between the nobr tags.
This is part of the table:
<table class="report-main-table dirLTR NormalTxt" width="100%" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td class="report-data-title-cell report-data-column-odd"><nobr><b>סה"כ עלו&... | stackexchange/codereview |
Well, I have Flash file which has one movie-clip (Box1) and it is exported for Action-Script in Linkage option but export for Frame 1 option is unchecked. Now my document Class is here
package {
import flash.display.MovieClip;
public class GetTimeLineObjects extends MovieClip {
public function GetTimeLineObjects... | stackexchange/codereview |
I get such stack trace:
android.database.sqlite.SQLiteException: no such table: someTa???: , while compiling: SELECT COUNT(*) FROM someTa??? WHERE a = ? AND b = ?
at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.jav... | stackexchange/codereview |
Possible Duplicate:
Java - when to use 'this' keyword
Is it generally good convention to references class attributes with 'this.' even if it would reference the attribute by default anyway? Or should I only use it when absolutely necessary?
It would make things clearer to the programmer, and to avoid any confusing e... | stackexchange/codereview |
When creating a task in SharePoint 2010, the "new" indicator is shown after creating a task. How long is this displayed and is the amount of time it is displayed configurable from the GUI?
| stackexchange/codereview |
The title sums it all.
I want to add a text to an existing PDF file using iTextSharp, however i can't find how to do it anywhere in the web...
PS: I cannot use PDF forms.
| stackexchange/codereview |
Oracle Streams AQ (Advanced Queuing) provides highly scalable database-backed queuing functionality. Does an equivalent feature exist in SQL Server (any version)?
Note: I do not mean simply using a table as a queue, but a specific vendor-provided enhancement to the database platform.
| stackexchange/codereview |
I have a query which is run against a mssql database and I'm not using PDO drivers. Is there something like prepared statement i can use?
Here is the query:
$tsql = "INSERT INTO cplinktable (liferayid, bmsid, autotaskid, waspdb, cpid) VALUES ($liferayid, $bmsid, $autotaskid, '$waspdb', $cpid)";
thanks,
Jonesy
| stackexchange/codereview |
I was wondering if it is possible to deploy a rail application to an host for which I only have sftp access. (No ssh access, unfortunately).
I found this page,
http://codesnippets.joyent.com/posts/show/1271
which it makes me think it could be done, although it really is not clear with me what I should do with such file... | stackexchange/codereview |
I try to follow this tutorial, but I can't get it to work:
http://weierophinney.net/matthew/archives/246-Using-Action-Helpers-To-Implement-Re-Usable-Widgets.html
I did everything as described, but I don't know how to make it available in my controllers. My filesystem looks like this:
- application
- controllers
... | stackexchange/codereview |
I'm building an Cocoa application that modifies a file on the user's operating system which requires admin permission. I have a proof of concept working which uses authopen but it doesn't deliver the UX experience I am hoping to achieve. Every time the file is modified it prompts the user to enter their password. Is th... | stackexchange/codereview |
I'm trying to understand how the Memory barrier works, why it is used and in what cases it should be used. However I'm not entirely sure in what cases it would be more efficient to arrange the order of instructions, can anyone give me an example of that?
| stackexchange/codereview |
This O'Reilly article gives an example of a PostgreSQL statement that parses an Apache log line:
INSERT INTO http_log(log_date,ip_addr,record)
SELECT CAST(substr(record,strpos(record,'[')+1,20) AS date),
CAST(substr(record,0,strpos(record,' ')) AS cidr),
record
FROM tmp_apache;
Obviously... | stackexchange/codereview |
I'm about to build a solution to where I receive a comma separated list every night. It's a list with around 14000 rows, and I need to go through the list and select some of the values in the list.
The document I receive is built up with around 50 semicolon separated values for every "case". How the document is structu... | stackexchange/codereview |
I am using the AlphaMobileControls library for the .NET Compact Framework. I am using AlphaImage.CreateFromResource(imageResourceName) to create an AlphaImage object. The problem is that this method is throwing a NullReferenceException. Looking at the code for this method, the problem is that this line of code is retur... | stackexchange/codereview |
I generated a long and ugly XML string with Python and I need to filter it through pretty printer to look nicer.
I found this post for python pretty printers, but I have to write the XML string to a file to be read back to use the tools, which I want to avoid if possible.
What python pretty tools are available that wo... | stackexchange/codereview |
I am using MATLAB and having some issues formatting the output of a matrix. Currently, the matrix looks like:
Columns 1 through 7
4 6 5 1 0 0 0
7 8 4 0 1 0 0
6 5 9 0 0 1 0
1 0 0 0 0 0 -1
0 1 ... | stackexchange/codereview |
I need my bat file to accept multiple optional named arguments.
mycmd.bat man1 man2 -username alice -otheroption
For example my command has 2 mandatory parameters, and two optional parameters (-username) that has an argument value of alice, and -otheroption:
I'd like to be able to pluck these values into variables.
Ju... | stackexchange/codereview |
When I attempt to debug a external process with Eclipse CDT, I'm able to attach to it, but I cannot get the debug configuration to find the original C source. When I launch the debugger with the process running within Eclipse, I can get the debugger to find the source code.
It is only when attaching to an external proc... | stackexchange/codereview |
I know for more than one result, you don't have much choice for using out parameters, but I'm wondering whats the difference between the following 2 cases where there's one out parameter.
Say I have two stored procedures:
CREATE PROCEDURE no_out_params(IN foo INT)
BEGIN
SELECT foo + 1 as result;
END
and
CREATE PROCD... | stackexchange/codereview |
I am trying to improve my JBoss Portal dashboard using some analytical charting tools then I found VisiFire. So I started to investigate how I could deploy a simple VisiFire page as a portlet onto JBoss Portal dashboard. Below is what I did:
- I created a dummy portlet (display "Hello World" on the index page, index.ht... | stackexchange/codereview |
I'm doing a personal project which requires me to do some signal processing and feature extraction in C#, more specifically extracting MFCCs, is there any available code for calculating MFCCs in C# ?
Also if there's anything well-written for other languages (Objective-C, C, C++, or even Java), I think I'll be able to g... | stackexchange/codereview |
How to set icon size in the notifications?
How to set how much time the notification have to be shown?
Where is a complete pynotify documentation?
Can the notification be clickable? (example: if I click on the notification, print "hello world" in the terminal).
| stackexchange/codereview |
In my iPad application I want to add signature in my pdf file.
I already do perform following steps:
Open pdf in UIView (zooming is not implemented yet).
Add one transparent subview (UIImageView) and draw signature on that.
Save all screen using UIGraphicsGetImageFromCurrentImageContext() as a image.
Convert and sav... | stackexchange/codereview |
As some of you know, Stack Overflow now has an API, which now makes these types of questions valid programming questions.
My question: I'm trying to write a small script to connect to the Stack Overflow API to get a list of all questions under a subject (such as oauth, Python, twitter-api, and so on).
Can someone adv... | stackexchange/codereview |
I have three questions/problems. (NOTE - I don't have enough reputation to post pics, so I linked them. And I needed to obfuscate them...)
1) I created a panel that holds my game graphics (the player area). The panel is supposed to be 800x800 and clip everything that lies below and to the right. But when I add the grap... | stackexchange/codereview |
It sure is a pain to prune a Facebook profile. Is there any way using the Facebook API (or some other mechanism) to authenticate as a particular user and remove friends from the user's list? I have looked through the API documentation, but I'm not familiar with the ins and outs of the platform.
| stackexchange/codereview |
I have to generate sources using wsimport and i assume that it should go to /target/generated-sources/wsimport rather than /src/main/java.
The problem is that wsimport needs target folder created before execution and it fails. Can I create that dir first using any maven plugin. I can do it using ant but i prefer to kee... | stackexchange/codereview |
I have a run of about 10 different methods, they all pass "page" and "index" between them in order to define a ScrollView with multiple pages. The majority of these methods run within a loop (for each page).
I'm working on a way to re-orient and re-position the pages depending on the device orientation. My trouble now ... | stackexchange/codereview |
I have an UIView that in front of a bigger UIView, I want to hide that current View when tap on the behind View but I can't get Touch Up Outside event work, Touch Up Inside that View work fine.
(The behind View have another controls)
Thanks
Tung Do
| stackexchange/codereview |
I am playing a setLooped enabled audio file in my app, but every time the audio file loops, there is a noticeable, though very brief, gap in the audio playback... is there any way to get around this?
| stackexchange/codereview |
I need to collect and store mailing addresses in a Rails (2.3) app. Is there a Rails way to do mailing addresses? For example, I would do f.date_select to generate a series of dropdowns to handle dates, which are then stored in the database, which I defined in schema and migrations as t.datetime "foo". I would conside... | stackexchange/codereview |
I'd like to sort the following xml document using powershell.
<car>
<germany>
<manufacturer>Opel</manufacturer>
<manufacturer>BMW</manufacturer>
<manufacturer>Benz</manufacturer>
</germany>
<japan>
<manufacturer>Nissan</manufacturer>
<manufacturer>Daihatsu</manufacturer>
</japan></car>
So the eleme... | stackexchange/codereview |
I have many security accounts on the sql database and i want to remove/add roles to them based on a simple string comparison.
Basically i want to list all
accounts
Filter out accounts that DON'T start
with "MyDomain\"
Remove role A.
Add role B.
What i found out by now is that i use sp_helprolemember to list all the a... | stackexchange/codereview |
I want to create a beep on server error in a webpage. I have searched and read the pages below on to display sound on webpage.
http://www.phon.ucl.ac.uk/home/mark/audio/play.htm
But i can't ask users to install plug ins and other stuff. I need to generate two beep on PC speaker. I have tried to use System.out.print("\... | stackexchange/codereview |
Can crystal reports get data from an object data source instead of a database? I am using the crystal reports that comes with vs2008. I am coding in c# 3.5.
I would like to use an object data source that returns a List< MyClass>.
For when we migrate to ssrs in the future, Can ssrs 2008 get data from this object data ... | stackexchange/codereview |
I'm working on a vision application and I need to have a "Live View" from the camera displayed on the screen using a QPixmap object. We will be updating the screen at 30frames/second on a continuous basis.
My problem is that this application has to run on some 3-5 year old computers that, by todays standards, are slow... | stackexchange/codereview |
So I have looked at a couple of related questions, but still can't seem to find my answer (I guess because it's specific). I'm trying to use the Scanner.useDelimiter method in Java and I can't get it to work properly... here is my dilemma...
We are supposed to write a program that takes a X, Y coordinate and calculate... | stackexchange/codereview |
I'm getting a few "Don't make functions within a loop." errors from JSLint, anyone got any tidy suggestions on how to fix this stuff up?
Perhaps my naughtiness is excusable because of my YAHOO dependencies (yd. below)? I can safely say that the only time I've done the following:
for( var i=0; i<FLN.revealers.length;i++... | stackexchange/codereview |
I have a rotating sphere that the user rotates by applying a virtual force, like a virtual accelerator. I want to be able to simulate a nice momentum effect so that when they lift off the accelerator the ball winds down in speed in a natural and realistic way, as if due to friction and/or gravity. I don't want to get... | stackexchange/codereview |
imagine I have a 3 columns matrix
x, y, z
where z is a function of x and y.
I know how to plot a "scatter plot" of these points with
plot3d(x,y,z)
But if I want a surface instead I must use other commands such as surface3d
The problem is that it doesn't accept the same inputs as plot3d
it seems to need a matrix with ... | stackexchange/codereview |
Trying to edit as 2 file and stuck on how to tell a movie clip to gotoAndPlay the main time line.
The animation contains several tweens and I need to add a temporary tween.
I created a movie clip with tween.
Once the it gets to the Movie Clip(frame 10), I inserted the stop command so the the movieclip can run its tween... | stackexchange/codereview |
When the size of a code base is reported in lines, is it more usual/standard to report raw wc count, or nonblank noncomment lines? I'm not asking which measure should be used, only, if I see a number given with no other information, which measure it is at best guess more likely to be.
| stackexchange/codereview |
I'm trying to perform a server side redirect within my facebook application but I when I do a normal redirect, facebook 404s the url (even though its valid). I'm assuming that they block traditional browser redirects (for saftey). I found fb:redirect (http://developers.facebook.com/docs/reference/fbml/page-admin-edit-h... | stackexchange/codereview |
I have a datagrid which is populated from a web service. I want to fill a form based on the selected item in the datagrid.
This is what I use to set the DataContext (Which is a grid)
private void PublisherSearchList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
this.PublisherItem.DataContext = ... | stackexchange/codereview |
First off - I'm not using MapKit. I'm using my own controls for something entirely different. But the annotation view is something I'd like to mimmic. I've seen other applications with similar views to indicate state or actions on other controls. However, scanning through the class library I can't find a view already i... | stackexchange/codereview |
Since SSL is the backbone of the secure internet, (now technically called TLS), what are some good books I should read up on to understand all aspects of it?
I suppose I'll need to learn some math, some PKI books, crypto, and Sysadmin books as well. Since that isn't a complete list I'm interested in hearing what you th... | stackexchange/codereview |
I'm new to Flex programming.. and I need to do some iteration.
How do I perform loops in Flex?
And does Flex has "switch case"?
Thanks guys
| stackexchange/codereview |
When Mathematica evaluates a cell, it gives the Input cell and Output cell the CellLabels In[$Line]:= and Out[$Line]= where $Line is a counter that gets incremented on each evaluated input.
If you input something like TraditionalForm[expr] or TeXForm[expr] (or any other *Form from $OutputForms) then the name of the for... | stackexchange/codereview |
I set a local notification with key "notify" and know that i can delete it with below code but don't know how to declare 'notification' for key "notify" to delete it
[[UIApplication sharedApplication] cancelLocalNotification:notification];
| stackexchange/codereview |
Is there a way to display an image on a Boundfield of a dynamically generated GridView where the filename of the image is the data for that column? How can it be implemented?
I have implemented it this way but surely, this isn't right.
column = new BoundField();
column.DataField = "VITALITY_COLOR";
column.HeaderText = ... | stackexchange/codereview |
i have an object named party and three other objects inherit from this object, using hibernate az orm i have a problem with casting the party to ine of these objects. although i'm using not.lazyload() feature, but i see partyProxy want to be casted to department object , not exact party object . so i see:
Unable to cas... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.