instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Note: i little speak english
I have a problem with mod_rewrite.
I want to replace my site name, I want this URL
http://www.oldsite.com/index.php?v=contact
rewritten to URL
http://www.newsite.com/page/contact with 301 rewrite.
I'm doing it this way:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{QUERY_STRIN... | stackexchange/codereview |
I'm trying to match replace a multiple lines block with sed and I can't figure it out ..
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'testblah', # Or path to database file if u... | stackexchange/codereview |
I have a map that I converted from a raster graphic into an SVG file by converting the differently coloured areas into paths.
I know how to do a basic point-in-polygon check given an array of edges, but the svg:path elements represent multiple polygons as well as masks (to account for seas etc) and extracting that info... | stackexchange/codereview |
I'm experiencing an odd bit of behavior when I use the auto-generated copy() method that was added in Scala-2.8.
From what I've read, when you declare a given class as a case-class, a lot of things are auto-generated for you, one of which is the copy() method. So you can do the following...
case class Number(value: In... | stackexchange/codereview |
So I am writing a small PHP framework for fun, and I have come to a point where I need to format an arbitrary query result into this format:
Array(<br>
[tablename]<br>
[fieldname] => value<br>
[fieldname] => value<br>
[tablename]<br>
[fieldname] => value);<br>
<br>
If I was doing this in mysql, I would simply do... | stackexchange/codereview |
Im trying to make a symple login system using swingf, I am having some trouble with if statements to check the login details if you can find any falts in my code that would be great :)(the second if statement does not fire if test is entered in the text box )
public void actionPerformed(ActionEvent e)
{
if ((e.getSou... | stackexchange/codereview |
The code has a JPanel with an inner JPanel that displays awt drawing. Upon mouseclick the inner JPanel is to be replaced by one of its polymorphic siblings. This code isn't replacing the jPanel.
class ContentPanel extends JPanel {
private GraphicPanel graphicPanel;
public ContentPanel(GraphicPanel graphicPanel) {... | stackexchange/codereview |
I have the following three tables:
Clients:
id
clientname
Projects:
id
clientid (int ref to Clients.id)
projectname
projectstatus (int ref to ProjectStatuses.id)
ProjectStatuses:
id
statusname
I select a single client fine, and when needed I load the selected clients projects like this:
selectedClient.P... | stackexchange/codereview |
I have an html table which i would like to auto update via ajax (to my php script) every x seconds.
I would also like to animate the 1st cell of every row if it is different to the previous value.
How can i achieve this?
| stackexchange/codereview |
JAX-RS and JAX-WS are great for producing an API. However, they don't address the concern of backwards compatibility at all.
In order to avoid breaking old client when new capabilities are introduced to the API, you essentially have to accept and provide the exact same input and output format as you did before; many o... | stackexchange/codereview |
the form is submiting as normal request instead of Ajax.
$(document).ready(function () {
StatusComments();
});
function StatusComments() {
$('.comment').submit(function () {
$(this).ajaxSubmit(options);
return false;
});
var options = {
beforeSubmit: showRequest,
su... | stackexchange/codereview |
I am developing an application where every TimeMax_Sec seconds a complex function (optimisation) is run. The function can potentially enter in a loop or just to take too much time, and the time TimeMax_Sec is set by the user.
Therefore, I'm trying to run the function in a separate thread. To execute constantly the func... | stackexchange/codereview |
I have Operation Aborted each time I Refresh my website's page.
I read the article of MSFT about this issue, and I dont have that case.
I have a div inside the body that appends a script to the head
and the head modifies all the body elements...
What can cause this??
Thanks !
| stackexchange/codereview |
Before starting I am sorry for my awfull coding skills and I hope you can help me with advices and the such.
I have a HashSet of unique int values:
private HashSet<int> found = null;
That I use to read data from an entity, so each entry inserted on found is unique and gives me a whole new set of data.
So let's consid... | stackexchange/codereview |
I am working with "jQuery Data Link Plugin".And it is collecting information from textbox and returning object.
I am trying to convert the object to string using "JSON.stringify(obj)".
using following function:
function formatObject(obj){
return JSON.stringify(obj).replace(/,/g,'test').replace('{','{\n ').r... | stackexchange/codereview |
What assembly do I need to add to my project to use OpenGL in VS2010 in C#?
would like to type
using OpenGL;
| stackexchange/codereview |
My app downloads audio files to /sdcard/Music. When I try to play them, I am getting the following error.
V/MediaPlayer-JNI( 2789): setDataSource: path
content://media/external/audio/med ia/2 E/MediaPlayerService( 1130):
Couldn't open fd for content://media/external/audio /media/2
If I download the files to /sdca... | stackexchange/codereview |
I'm trying to reuse some script that I have working on another page, but am consistently getting an error with this one.
I have a .js file called CalendarPopup.js. It's linked to my HTML like this:
<script type="text/javascript" src="/administrator/components/com_arrcard/js/CalendarPopup.js"></script>
It's a javascri... | stackexchange/codereview |
Hi I'm working on some IE9 task bar integration but I cant seem to get msSiteModeActivate() to work.
My code:
setTimeout("tvOverlay()", 30000);
setTimeout("tvActivate()", 35000);
<script type="text/javascript">
function tvActivate() {
try {
if (window.external.ms... | stackexchange/codereview |
I'm trying to set my vertices, indices and texture points to VBO:s and the draw them with my draw method, all this in C# under TAO/OpenGL TK framwork. But my screen shows only a black screen. I've tested without VBO:s, and then it works. But with my vertices, indices and texture points I can't success.
My code:
private... | stackexchange/codereview |
Is there something like this for Windows?
exec("nohup /usr/bin/php -f sleep.php > /dev/null 2>&1 &");
| stackexchange/codereview |
I found this great library for Silverlight that basically a port of libjpeg, so I was all fired up to check it out. After downloading the library from the SVN repo (http://fjcore.googlecode.com/svn/trunk/), I was able to successfully build the library and add a reference to the .DLL to my Windows Phone 7 project. Upon ... | stackexchange/codereview |
I have a rather complex model that I am using to render a form and perform validation using the model's meta information meta information.
The View Model has a list of child objects that are included in the form. the child objects are based on this:
[Table]
public class FieldInstance
{
[Column(IsPrimaryKey = true, ... | stackexchange/codereview |
Is there a more straight-forward way to do this?
for_each(v_Numbers.begin(), v_Numbers.end(), bind1st(operator<<, cout));
Without an explicit for loop, if possible.
EDIT:
How to do this for std::cin with a std::vector if possible? (How to read n elements only)?
| stackexchange/codereview |
In my drawRect method I draw a UIImage, eg
[[UIImage imageNamed:@"shape.png"] drawInRect:CGRectMake(50,50,50,50)];
I want to be able to clip multiple shapes out of the shape so the background of the view is shown. I can't seem to get the quartz clipping methods to behave as I want.
Can anyone help push me in the rig... | stackexchange/codereview |
Why do we need Application Server in Java like JBoss or WebSphere. Is it possible that we develop large scale website only with Java (Apache Tomcat). Where thousand of user connect on site at a moment. An example is a website like b2b.
What is the cost of a Application Server? I will be thankful if you compare price am... | stackexchange/codereview |
I'd like a large list so I can reference this for ideas. Some answers already have been enlightening .
What are some concurrency models? I heard of message passing where there is no memory shared. Futures which returns an object right away (so it doesn't block) and allows you to dereference the original function return... | stackexchange/codereview |
I have two arrays of objects which are likely to have the same values, but in a different order, e.g.
{ "cat", "dog", "mouse", "pangolin" }
{ "dog", "pangolin", "cat", "mouse" }
I wish to treat these two arrays as equal. What's the fastest way to test this?
| stackexchange/codereview |
I am using SQL Server 2008 on Windows Server 2003. I want to use a linked server to open a Visual Foxpro DBF file, using driver Microsoft OLD DB Provider for Visual Foxpro from SQL Server 2008 linked server feature.
When I establish linked server connection by using Microsoft OLD DB Provider for Visual Foxpro, to open ... | stackexchange/codereview |
Data table result in grid:
SerialNumber PartNumber
000000001 QWERTY
000000002 QERTY
I need to search a particular SerialNumber in the result of my data table using a Textbox control.
Pseudocode example:
If
SearctTexbox.Text =000000001
Message: This Serial is Ok!
Else
Message: Not Ok
How to d... | stackexchange/codereview |
Possible Duplicate:
How do pointer to pointers work in C?
Hi All,
I have very basic question :
What is the use of double pointers in C or C++ ?
Can somebody explain me that with some examples, please.
Thanks,
Sen
| stackexchange/codereview |
I am new to the idea of animating things in a graphics environment so I would like to clarify what the correct approach is.
(Just to set the scene although its not particularly relevant to the question: im working with opengl es on iphone)
If I go to an artist and tell them to create me a 3d model animation of a walkin... | stackexchange/codereview |
I've a rather large domain-model that persists using fluent NHibernate to MS SQL Server 2008.
Recently we've been running into concurrency problems, so I implemented Versioning NHibernate's excellent Version with an eye to using MSSQL's timestampdatatype. All my entities subclass the cunningly named DomainEntityabstrac... | stackexchange/codereview |
Does anyone know how the source code is declared for the Func and Action pointers? I'm trying to understand the theory behind making an asynchronous call using delegates and how that is tied to threading.
For example, if I have the code below:
static void Main()
{
Func<string, int> method = Work;
IAsyncResult c... | stackexchange/codereview |
This might be impossible but you never know.
I have a bunch of squares in a table Squares consisting of PK, TopLeftLatitude, TopLeftLongitude, LowerRightLatitude, LowerRightLongitude and a bunch of countries in a table called Countries consisting of PK, CountryName. There is a m:m relationship between countries and squ... | stackexchange/codereview |
I'm trying to turn a single page app into one with tabs. I've looked at various Googled solutions, but none work, and I can't find a 'Tabs - how they work' anywhere! One problem I have when using a 'Googled' answer is a null pointer exception on the Layout of main.xml.
Can anyone help/point me to a decent page?
My code... | stackexchange/codereview |
I want to develop an auditing application for certain Windows applications. I want to grab the text from MessageBoxes, Windows, Forms, Selections etc and ideally I would like to program in C++.
I've looked into Windows UI Automation as a possible solution, but am slightly put off as it says it will need to know parts ... | stackexchange/codereview |
Possible Duplicate:
UITableViewCell with custom gradient background, with another gradient as highlight color
Hey I am trying to use gradient as background of my tableView cell and I have tried using this code:
UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 100)] autorelease];
... | stackexchange/codereview |
I am in a little bit of a predicament. I am writing a programme where a user can make a search. Then the search returns a possible list of results. If you move your mouse over the results it highlights them. When you select one of the items from the result, it replaces the list with the item you selected. The problem I... | stackexchange/codereview |
I want to use a progressbar on my screen instead of progressDialog.
I have inserted a progressBar on my XML-view file, and I want to make it show when it loads and disable it when not loading.
So I was using visible, but it takes place, so rest of the data comes down.
How should I use progressbar in a asynctask? How ca... | stackexchange/codereview |
I am downloading and saving a radar image (in .gif format) from with web using an NSURLConnection. In the connectionDidFinishLoading: method, I create an image using [UIImage imageWithData:].
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
// Problem is here. mutableData declared earlier.
... | stackexchange/codereview |
Let's say you
select "some text" an browser.
Click a bookmarklet
the selected text turns into simple link with the url of the current page.
How should I implement this ?
| stackexchange/codereview |
Right now I'm using the following to output error messages in my Rails 3 app. This is located in the layout view under the header:
<% flash.each do |key, value| %>
<div class="flash <%= key %>"><%= value %></div>
<% end %>
This works ok for most cases, but when I have a signin for, and the user enters invalid credenti... | stackexchange/codereview |
So we can easily find and replace an atom with another atom in Prolog by doing something like:
replace([],A,B,[]).
replace([H|T],A,B,[B|Result]) :-
H=A,
replace(T,A,B,Result),!.
replace([H|T],A,B,[H|Result]) :-
replace(T,A,B,Result).
I'm sure there are other ways to do this too.
However, I want to do so... | stackexchange/codereview |
I wrote some animation for some images, and it works. Its pretty much the same animation again but this time on a UILable. But nothing seems to have. The label draws but when i call the animation method the text does not change/move.
-(void) bounceText
{
NSLog(@"Bounce Text");
CABasicAnimation *grow;
grow = [CABasicAn... | stackexchange/codereview |
$pieces = explode(",", $sentto);
for($i=0;$i<count($pieces)-1;$i++)
{
$fileatt = $_FILES['attachcopy']['tmp_name'];
$fileatt_type = $_FILES['attachcopy']['type'];
$fileatt_name = $_FILES['attachcopy']['name'];
$pieces[$i]=$pieces[$i].",";
$sel="insert into newmessage set sendto='".$pieces[$i]... | stackexchange/codereview |
What are the differences ( if any ) for me as the user of the package "Test::Test" between this two package-versions:
Test::Test;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(hello);
use strict; use warnings;
our $c = 3;
sub hello {
print "$_\n" for 0 .. $c;
}
.
Test::Test;
require Exporter;
@ISA = qw(Ex... | stackexchange/codereview |
I have a function that fires when a user enters in 5 characters in an input field.
However, whenever I place additional characters after the 5 has been fulfilled it keeps on firing the event.
How do I prevent this from occurring?
$(function(){
var $zipEntry = $('#zipEntry').bind('keyup',function(event) { //bind to ... | stackexchange/codereview |
How can I restart a Java AWT application? I have a button to which I have attached an event handler. What code should I use to restart the application?
I want to do the same thing that Application.Restart() do in a C# application.
| stackexchange/codereview |
I use the Oracle wallet to store passwords for the databases I connect to. Our password policy requires us to change our passwords frequently enough that I would like to script the changes. I have a batch file that can change the database passwords themselves, but I would like to script the changes to the wallet as w... | stackexchange/codereview |
How do Services and Repositories relate to each other in DDD? I mean, I've been reading up on DDD for the past 2 days and everywhere I go, there's always a Service layer and there's always a Repository layer. How do these differentiate or compliment each other?
From what I've read, isn't the Repository the layer respon... | stackexchange/codereview |
I'm not sure if you guys test like this, but I'm a TDD guy and keep stumbling into wierd stuff. The timestamps are converted somehow by DJ, or the time zone... I don't know. Test example follows
I'm using delayed_job 2.0.3
data = {:value => 0.856, :timestamp => Time.zone.now}
job = MyMailer.send_later :send_values, da... | stackexchange/codereview |
I am new to javascript, but is this valid?
<script type="text/javascript">
if (condition()) {
location = "http://example.com/foo/bar/baz";
}
function condition()
{
if(something)
return true
else
return false
</script>
I am trying to write a javascript that goes insdie of content editer web part i... | stackexchange/codereview |
I have an Itemscontrol in my xaml inside a ScrollViewer.
<ScrollViewer Margin="0,0,0,0" BorderThickness="0">
<ItemsControl x:Name="itemsStackPanel">
<ItemsControl.ItemTemplate>
<DataTemplate>
<controls:UserItem Margin="0, 5, 0, 3"></controls:UserItem>
... | stackexchange/codereview |
One of the classes I'm taking in college is where we are doing a ton of programming in C. We are supposed to use 'C' style naming conventions in the assignments or get docked marks (eg a variable is named like int line_counter, a function clear_array() ) I find this convention really really annoying esp coming after a ... | stackexchange/codereview |
I am facing a strange problem.
if ( c2==c1){
c3 *= 2 ;
System.out.println( c3 ) ;
.....
}
I want to insert c3*2 in the println statment. But
if ( c2==c1){
System.out.println( c3*2 ) ;
gives me a different result.
Here is the whole code:
public static void main(String [] args) {
... | stackexchange/codereview |
I would like to know, is there any Windows platform disassembler (software) can generate the assembly source code which is also compilable by an assembler?
Since disassembler can generate the assembly code based on an EXE file, is it possible the assembly code be used directly as a source code, then the source code be ... | stackexchange/codereview |
some pieces of HTML structure are stored on server. Before saving, they will be preprocessed.
Preprocessing inserts HTML 5 video tags to certain places.
I trying to do it, but, everytime i deal with video tags, i get following:
Tag video invalid
I think, they this is because of the HTML 4.0 DOCTYPE, that i saw in deb... | stackexchange/codereview |
Just started using Apache Commons StringEscapeUtils.
According to http://www.w3schools.com/tags/ref_entities.asp, Ö should correspond to Ö. However,
System.out.println(StringEscapeUtils.unescapeHtml4("Ö"));
prints
×
Is this a bug? Or what am I missing?
| stackexchange/codereview |
In this thread someone pointed me to use sqlalchemy-migrate to help with a fast-changing web application using sqlalchemy.
However a Do It Yourself method was also recommended consisting in manually writing CSV columns for the new database schema, and finally import them.
The problem is that I can't find real-world e... | stackexchange/codereview |
friends,
i am using following code to display single full screen image in activity using thread problem scenario is from custom image gallery on each thumbnail clicking displays large image on this screen.
Now the problem is the user clicks on image and thread loads image and presses back button to go to previous page ... | stackexchange/codereview |
Iam using this Form plugin to perfom inline ajax validation and form validation
http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
I have a textfield say student number for that text field which will inline validate whether stuno exists or not
we have
in the jqueryval... | stackexchange/codereview |
If you try to login at https://orbit.theplanet.com/Login.aspx?url=/Default.aspx (use any username/password combination), you can see that the login credentials are sent as a non-traditional set of POST data: just a lonesome JSON string and no normal key=value pair.
Specifically, instead of:
username=foo&password=bar
o... | stackexchange/codereview |
where is the best place for hold custom settings on GWT MVP project (eg: loged user, max amounts, min price or similars), y doubt if put them in gwt.xml config file, but I not understand how acces these XML defined tags (it's posible?), perhaps in appController class or others, which is the best place?, other options?,... | stackexchange/codereview |
Suppose I have a class:
class Boy
{
int age = 25;
}
I have a JTextField, age, that updates the 'age' instance field of Boy. Alternatively, if the age of the boy is changed another way (perhaps, setAge() ), I need to be able to reflect this change in the JTextField.
Using the observer pattern is one way. In thi... | stackexchange/codereview |
When running Valgrind's memcheck tool, I often get many hundreds of thousands (or more, since Valgrind cuts off at 100K) of small invalid read statements, e.g.:
==32027== Invalid read of size 1
==32027== at 0x3AB426E26A: _IO_default_xsputn (in /lib64/libc-2.5.so)
==32027== by 0x3AB426CF70: _IO_file_xsputn@@GLIBC_... | stackexchange/codereview |
How do I get an integer type from the Tkinter Entry widget?
If I try to get the value using variable_name.get(), it says it is a str. If I try to change the type using int(variable_name.get()), it says int can only accept a string or number.
Any help would be welcome!
| stackexchange/codereview |
I programmed a web user control that basically lets the user choose whether she is a registered member or unregistered member, and to fill fields accordingly, i.e., if the user is member she is asked to provide her username and password and the sign up field are being disabled. if the user is not registred then she is ... | stackexchange/codereview |
Is it possible to produce compilers that heuristically check for malware behaviour? If it is possible why has not it been implemented? Wouldn't that strongly help preventing the production of such viruses, I mean why wait to stop them once they are out there?
Even if these people use a compiler that does not use the "p... | stackexchange/codereview |
I would like to get better experienced with the new release of the MVC framework. I want to start building my own project on my free time. I would like to get a business (or close to real business) idea or purpose to start building around. What I mean is that I need a challenge, not just throwing a couple of pages to... | stackexchange/codereview |
If I have a variable/function name called SqlDatabaseConnection, and I put my cursor on the first "S", is there a way to delete the "words" as defined by the uppercase letters ("Sql" and "Database")?
| stackexchange/codereview |
I'm building a web-based productivity application that has to deal with modest user concurrency, and I've been exploring various options to keep the data in sync between the server and client. The application data is bootstrapped into JavaScript on page load, and websockets are used to push data to the server.
For a bi... | stackexchange/codereview |
I've been asking questions on hex and bitwise manipulation (here and elsewhere) for the past week trying to wrap my head around their representation in Java. After much Googling and chagrin I must ask one final time how to perform logical arithmetic on bits that ought to be unsigned, but are represented as signed in Ja... | stackexchange/codereview |
I am trying to migrate a database from sqlite to postgres using dumpdata/loaddata. The problem is, if it fails, there are hardly any informations that are really usable for debugging - e.g. it just says DataError: value too long for type character varying(100), so it's rather hard to tell which the afflicted data row f... | stackexchange/codereview |
I have the following code
System.out.println("" + null);
and the output is null.
How does Java do the trick in string concatenation?
| stackexchange/codereview |
Apparently my Android app isn't working as it should on Samsung Galaxy Tab. The MapView don't display map/satellite tiles on the Tab. On other devices the MapView works as it should. I don't own a Tab myself so I have problem finding out what might be wrong and I have no clue right now what might cause it. Any point in... | stackexchange/codereview |
Is it possible to pass an anonymous function as an argument, and have it execute immediately, thus passing the function's return value?
function myFunction(Array $data){
print_r($data);
}
myFunction(function(){
$data = array(
'fruit' => 'apple',
'vegetable' => 'broccoli',
'other' ... | stackexchange/codereview |
I'm sure this is a very common operation when doing any kind of network programming (or I/O with files) but I can't find the answer.
Basically I have a datagram packet coming in down the network which has a series of single precision floating point numbers (4 bytes each).
I have written some basic networking code which... | stackexchange/codereview |
I'm working on a simple chat application in Flash / AS3. There's a Chat input box, a Send button, and a TextField where the contents of the chat input box appear after the message has been sent.
By default, when you add text to a TextField, the text appears at the top, and works it's way down to the bottom. I would l... | stackexchange/codereview |
I have a UserControl, we'll call it myUC, that is one among several UserControls in the main window (myWindow) of my WPF application. myUC contains a number of standard controls, one of them being a button, we'll call it myButton.
When I click myButton, I would like to execute myMethod(), which exists in the code-behi... | stackexchange/codereview |
I have stored the customers paypal email address in database and I want to send them money using that email address. I am using PHP.
Anyone please suggest how to do that.
| stackexchange/codereview |
I want to use qtip with jqgrid and show a different image depending on which row is selected within the jqgrid. The path of the image could be within the jqgrid as a hidden cell. I have looked around but can't find any documentation on if jqgrid has a relevant row selector that could be used. Does anyone know the selec... | stackexchange/codereview |
I have a vertically oriented LinearLayout that has a child LinearLayout that includes a TextView, an EditText, and a Button, and a child ImageView.
So something like:
<LinearLayout>
<LinearLayout>
<TextView>
<EditText>
<Button>
<ImageView>
And the problem I am experiencing is that the s... | stackexchange/codereview |
i want to populate a listbox with the table names from a database. here's the code i've written for it but it doesn't seem to work
<select id="arrays" name="arrays" style="width: 403px;" class="Fieldcell">
<?php
$dbname = 'myBase';
if (!mysql_connect('localhost', 'root', '')) {
echo 'Could not connect to mysql';
... | stackexchange/codereview |
I am working on creating an XSL document that will be used to create some HTML based upon an XML file. I am very new to the XML/XSL world and I am struggling with even asking the right questions. Following is a rough representation of the XML file:
<Item elemID="1" material="oak"></Item>
<Item elemid="2" material="ceda... | stackexchange/codereview |
I just saw a very odd thing, I have a co-worker who has their configspec setup to look at the main branch, and earlier this morning he could see files in a certain folder, he hasn't changed that view and all of a sudden they were gone.
I took a look at the folder's node, and when I compare it with the previous version,... | stackexchange/codereview |
I'm trying to implement in-place editing in a Rails 3 app that takes the edited value and revises a calculation based on that value. For example:
Before edit of the "credits to donate" field:
You have 10 credits remaining. Credits to donate: 0.
After edit of the "credits to donate" field:
You have 5 credits rema... | stackexchange/codereview |
I got a problem, I get an error with this code:
$totalpages = substr($totalpages[1],0,1);
The weird thing is, the code works?
This is the error i get:
Notice: Undefined offset: 1 /some/spath.php on line XX</code>
| stackexchange/codereview |
I have in Illustrator a layer with two object named objA, objB.
Is it possible to move objA once the file is loaded in the swf ?
Manipulate some shape from a AI file in AS3.
Thx
-Leg
| stackexchange/codereview |
Is there a way to create a System.Windows.Forms.BindingSource from an internal class? Or would I have to make the class public?
When the class is internal, it does not appear in the Add New Data Source wizard in Visual Studio.
| stackexchange/codereview |
i have used observed_field for arrays of data... but i am having trouble making a simple, one field application of it work. i must be missing a very simple detail. have searched extensively for basic syntax and cannot find anything that applies. when i change the selection, the change is not saved and there is no error... | stackexchange/codereview |
I'm using selenium-rc with php. I want to show in my test the value of CLASSNAME. How can i present the var? I tried to do $this['drivers']['CLASSNAME'] but this is not working for me.
(This is from the debug)
Thank you!
| stackexchange/codereview |
I've been preventing updates to certain models by using this in the model:
def update
self.errors.add_to_base( "Cannot update a #{ self.to_s }" )
end
I'm now writing a plugin that delivers some extra functionality to the model, and I need to update one field in the model. If I weren't using a plugin I would do this ... | stackexchange/codereview |
I am trying to implement a custom menu for Internet Explorer 7.0. For this i have to use IDocHostUIHandler::ShowContextMenu only. Till now i am able to implement a basic context menu with two options. The problem is that they are disabled by default. The sample code for the same is:
HRESULT CWebEventHandler::ShowContex... | stackexchange/codereview |
I am wondering about the right way to convert a bottom left orgin position to top left origin position (and the oposite operation) under Mac OS X taking into account:
- Multi screen configurations
- Where these screens can be arranged in all possible configurations.
Thanks in advance for your help,
Regards,
| stackexchange/codereview |
I am trying to nest a UITabBar inside another one, like so:
UITabBarController *tabController = [[UITabBarController alloc] init];
tabController.delegate = self;
UITabBarController *friendsTabController = [[UITabBarController alloc] init];
FindFriendsViewController *findFriendsController = [[FindFriendsViewController... | stackexchange/codereview |
I am having bad time debugging with this problem. I am migrating my codes from Java 1.4 to JDK 6 and Weblogic 8.1.5 to Weblogic 10.3. I have converted the deployment descriptors of EJBs using DDConverver utility of weblogic. Beans consists of stateless session and Entity beans (2.1). Application is made of JSP as front... | stackexchange/codereview |
I am trying to build a music app on a android device with GStreamer ported on it. But when I try mp3 url streaming on http, it failed to handle stream (however, it works perfectly fine on Android devices with base Media Framework, OPENCore). So I wanted to know whether GStreamer supports http url streaming, or is there... | stackexchange/codereview |
I want to know if
try/catch can catch the exceptions thrown by the children threads.
if not, what's the best practice to handling exceptions thrown in the child thread.
| stackexchange/codereview |
In winXP, reading the registry entries at location
SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix
would give me a list of all installed updates to my windows system.
I am guessing this practise has been discountinued since windows 7 (may be vista too). So how do I now generate a list of all installed updates? Have... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.