I have a set of data (in ArrayCollection) and I need to fit a power function { f(x)= B + x^alpha } to it, before display in LineChart.
As result I need the alpha and B paremeter.
How to do this with Flex?
I'm uploading some audio to soundcloud, but would like to add the audio to a specific playlist i have also created, without making an extra request (see "Adding Sounds to a Set" http://developers.soundcloud.com/docs/api/guide#uploading). Is it possible to upload directly to a playlist?
Alternatively, I could send an extra request to add the track to the playlist but how would you do this in AS3. I see examples for JavaScript but am unsure how this would work in Flash.
How can i change drupal default language programmatically somewhere in code (like template.php)?
(i need to overwrite default language set by admin in some cases.)
i'm using drupal 6.
PS: please read my own answer for more detail. and if you may help solve that
PS: later i saw a module that was what i wanted. make sure take a look at it:
Administration Language Drupal Module
Hi can any one tell .. how to set position inside a table.. I have table inside which I have span and certain links .. I made as cetre alignment and span text s starting from centre but when i do the same for all links everthing displayed in centre if it own.. but i need to start all text at the same position/.. how to do this???
Hi,
I have an ExpenseType object that I have created with the following migration:
class CreateExpenseTypes < ActiveRecord::Migration
def self.up
create_table :expense_types do |t|
t.column :name, :string, :null => false
t.timestamps
end
end
I can see the table name is the pluralised expense_types. My question is, how do I reference this type in a belongs_to relationship?
Is it:
belongs_to :expensetype
or is it
belongs_to :expense_type
I do not seem able to set it up correctly.
Cheers
Is it possible to set priority to a thread that currently run some specific contract operation? Say I have WCF service with Func1, Func2 and Func3. I want that Func1 will have more priority over Func2 and Func3.
navigator.onLine is still returning true when I turn off Wi-Fi (Airport on my notebook in OS X). This is counterintuitive behavior. But when I set "work offline" in a browser like Firefox, it correctly returns false. Is this expected?
alert(navigator.onLine ? "online" : "offline");
I have a UITableView which I would like to be displayed 100px down. For some reason this only works when animated is set to YES. Why is this?
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
/*[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0]
atScrollPosition:UITableViewScrollPositionNone
animated:NO];*/
/*[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathWithIndex:1]
atScrollPosition:UITableViewScrollPositionNone
animated:NO];*/
[self.tableView setContentOffset:CGPointMake(0,100) animated:YES];
}
Hi All,
In my web page there is a textbox with width and height equal to 0. This textbox is used to get the scanned bar code value which should not be visible to the user.
Needs:
I want to set focus to the textbox, when i click anywhere in the form.
I want to make the cursor invisible.
Geetha.
I am using the SplitViewController template. How do I set the title on the topbar in the detailview? Been trying to work this out for hours. Tried simple:
detailViewController.title = @"String";
but no luck.
Any help appreciated.
Thanks.
Provided with a set of URLs, I need to generate a pattern,
For example:
http://www.buy.com/prod/disney-s-star-struck/q/loc/109/213724402.html
http://www.buy.com/prod/samsung-f2380-23-widescreen-1080p-lcd-monitor-150-000-1-dc-8ms-1920-x/q/loc/101/211249863.html
http://www.buy.com/prod/panasonic-nnh765wf-microwave-oven-countertop-1-6-ft-1250w-panasonic/q/loc/66357/202045865.html
http://www.buy.com/prod/escape-by-calvin-klein-for-women-3-4-oz-edp-spray/q/loc/66740/211210860.html
http://www.buy.com/prod/v-touch-8gb-mp3-mp4-2-8-touch-screen-2mp-camera-expandable-minisd-w/q/loc/111/211402014.html
Pattern is
http://www.buy.com/prod/[^~]/q/loc/[^~].html
I'm looking for a way to set a selection in a textarea in Internet Explorer. In other browsers, this works just fine:
textarea.selectionStart = start;
textarea.selectionEnd = end;
In IE, I assume I have to use createRange and adjust the selection somehow, but I cannot figure out how.
Extra bonus points for a link to a proper documentation about createRange and associated methods, MSDN isn't helping out much.
I'm new to PHP so maybe I am overlooking something here but the following:
class someClass {
var $id = $_GET['id'];
function sayHello() {
echo "Hello";
}
}
gives the following error:
Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\files\classes.php on line 13
If instead of $_GET['id'] I set the variable $id to a string, everything is fine though.
I'm sure this has been asked before, but I can't seem to find it (or know the proper wording to search for)
Basically I want a regex that matches all non-alphanumeric except hyphens. So basically match \W+ except exclude '-' I'm not sure how to exclude specific ones from a premade set.
I'm trying to save text fields in MySql using NHibernate in Asp.Net frame work. But while executing this I got the error"Object reference not set to an instance of an object". If anyone knew help me...
Hi there. I'm using Qt 4.6.2 and i have problem with QCSS. I have own Q_PROPERTY(QFont myFont READ myFont SET setMyFont). I want to change it with QCSS but it doesn't work. I've tried using normal font syntax but it doesn't work. I've also tried few other combinations like:
qproperty-myFont:
font(serif 20 1 0)
font(serif 20 bold)
QFont(serif 20 1 0)
QFont(serif 20 bold)
QFont(bold 20px serif)
etc.
I was trying to use the sentence
Environment.SetEnvironmentVariable("CLIENTIP", <value>)
but it didn't work. I used both an string variable and a constant to set the value.
So, how can I do this to work?
Given an arbitrary set of letters
String range = "0123456789abcdefghijklmnopABCD#";
I am looking for 2 methods to encode/decode from long <- String
String s = encode( range, l );
and
long l = decode( range, s );
So decode(range, encode(range, 123456789L)) == 123456789L
And if range is "0123456789" thats the usual way of encoding.
Hi,
I am trying to improve the layout for my game. The problem is that while I can create a
good layout for one android phone, it doesn't work for another, ie the trackball for MyTouch
is on the right side (landscape mode), but for the MyCliq, the DPad is on the left side. Is
there a way to programmatically set the layout based on which phone it is? Thanks.
How do I set the "inner border" - the border between different cells.
By setting style attributes I manage to control the outer border, but the inner border just stays the same gray color and the same width. What attributes should I tweak to control the inner border?