Hey,
When I try to show a grayscale image using :
Img = imread('tr2.png');
subplot(111);
imshow(Img);
it does not appear as the original image. Where is the problem ?
Hey guys,
I have an Iqueryable that is populated from the database and then converted to an Array.
That works fine.
The issue is when I only have 1 element in the Array. I try to use the 0th element and it says "ArrayOutOfBoundsException". When I have 2+ elements in the array and pull elements 0 and 1 it works fine.
What gives?
Hey, I was wondering whether there is a way to use FlexScroll (JavaScript custom image based scrollbars) with IFRAMES instead of the DIVS.
Yes, I know scrollable DIVS are better than IFRAMES. This is my clients requirement though.
Cheers.
Hey guys,
I am writing some unit tests and I'm getting an exception thrown from my real code when trying to do the following:
string IPaddress = HttpContext.Current.Request.UserHostName.ToString();
Is there a way to mock up an IP address without rewriting my code to accept IP address as a parameter?
Thanks!
Hey,
I need to dynamically set the sproc name of a Linq to SQL query and can't figure out how. I see in the dbml designer that the sproc name is an attribute but it must be a constant, so I can't set it to a dynamic value. Please help.
Thanks,
Justin
Hey all, what would be best practice for clipping the bottom borders of a Bitmap? Just manipulate the Bitmap itself or overlay an alpha mask drawable or ...?
The whole story:
I've a Listview which looks like the iPhone's grouped UITableView style. I would like to display a Bitmap in the last row, but for now the Bitmap overlaps my custom background drawable of the Listview cell.
Thx in advance!
hey guys i have a question regarding amzi prolog with eclipse,
Im running a .pro file which executes a breadth first search and if queue gets too long,
the following error message appears:
system_error 1021 Control stack full.
Compile code or increase .cfg
parameter 'control'
If so, how may i run the compiled code under eclipse? I've tried running the project but the listener just ends without accepting any queries....?
hey, I downloaded the simple table storage sample on Cloudy in Seattle blog
It works perfect when aimed at local storage but when I change to point to azure storage i get the following error
Screenshot (on skydrive)
http://cid-00341536d0f91b53.skydrive.live.com/self.aspx/.Public/error.png
anyone see this before?
thanks guys
Hey guys;
I have a url which leads to in image. How do i grab this image from this url into my servlet? NOTE: the web-app is deployed on google app engine.
java.net.URL myURL = "http://a3.twimg.com/profile_images/150131301/slogo4_normal.jpg";
//code to grab the image
Thank you
If I have 'export BLA="hey there"' in .profile in my home directory, how can I change this later in other directories just by cd into the other directory?
Also, is there a way to just set a new environment variable when I cd into a directory.
My first attempt was to just make another .bashrc file in the directory where I want the change but apparently that proved less than effective.
I'm on OS X btw.
Hey Guys
In an effort to 'clean up' my code - I was wondering if this could be made simpler.
I have 32 images and I was adding them like this
[theCarPics addObject:[UIImage imageNamed:@"1.jpg"]];
[theCarPics addObject:[UIImage imageNamed:@"2.jpg"]];
//...
[theCarPics addObject:[UIImage imageNamed:@"32.jpg"]];
is there a simpler way? loop perhaps?
Any ideas would be appreciated guys
Thanks
Sam
Hey.
I'm trying to format a date from a string into another format.
For example: 2012-05-29 23:55:52 into 29/05 *newline* 2010.
I just don't get the logics behind NSDate and NSDateFormatter, I think..
Any help will be appreciated. Thanks :)
Hey,
I'm using prawn for pdf generation and everything works quite well, but now I'm having a bit of a problem.
When I put multiple tables on one page, they just get put over each other and not under each other.
Is this normal behaviour and what can I do about it?
I add the tables on the most normal behaviour btw :)
Thanks!
hey guys
i need to create a download section on my website , but as i concern , i want my users can only download files with indirect links , to prevent them from sharing my files on my server
such as :
http://mysite.com/download/12.zip
to
http://mysite.com/download/12
is there a way in php to do so ?
Hi,
I'm trying to extract data from one of my websites using Greasemonkey. Problem is, the script runs 6 times because apparently the page loads content from 6 different servers.
So if I put in an alert ("Hey"); the code runs 6 times and I get 6 alerts.
How can I wait for the entire page to load and then start playing with the DOM. Also, I'm using jQuery.
Thanks
Hey guys,
I'm having some trouble storing the results of an RSS feed in my Flex 4 app. Here is the variables view, showing the result of the HTTPService which gets the feed:
And here is the code I use to store the result:
public var rssXML:XML;
rssXML = event.result as XML;
But after this code is run, rssXML is still null. What am I doing wrong? Thanks for reading.
Hey, it's me again,
I've got another question regarding to basic Android programming:
How can I access the GPS for getting the current Position of the mobile phone the app is running on? How long can this take to retrieve the information?
In this case the GPS might be disabled, how can I enable/disable it again.
Which permissions must be granted in the andorid manifest?
Greetings and thanks for ur answers,
poeschlorn
- (IBAction)restoreUserDefaults {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if([defaults objectForKey:@"Exam Name"] == nil) {
examName = [[NSString alloc] initWithString:@"Name"];
} else {
examName = [[NSString alloc] initWithString:[defaults objectForKey:@"Exam Name"]];
}
[examNameLabel setText:[NSString stringWithFormat:@"%@",examName]];
}
Hey all,
Basically above is the method that is being called when one ViewController is being close and another is being opened the problem is, is that the UILabel in the new ViewController isn't changing to the value i need it to? Any ideas?
Regards
Lyon J Till
Hey guys.
I've just installed Ubuntu 10.04, trying out linux for the first time. I'm wondering if it's possible to link my documents folder in Ubuntu to my documents folder in Windows, so that when I open the folder in Ubuntu, I am linked to the folder in Windows.
Any ideas?
So first of all I have such image (and ofcourse I have all points coordinates in 2d so I can regenerate lines and check where they cross each other)
But hey, I have another Image of same lines (I know thay are same) and new coords of my points like on this image
So... now Having points (coords) on first image, How can I determin plane rotation and Z depth on second image (asuming first one's center was in point (0,0,0) with no rotation)?
Hey, I'm trying to take a simple image, something like a black background with colored blocks representing walls. I'm trying to figure out how to go about starting on something like this. Do I need to parse the image and look at each pixel or is there an easier way to do it?
I'm using Java3D but it doesn't seem to have any sort of built in support for that...
Hey,
I have a string of 10-15 characters and I want to encrypt that string.
The problem is - I want to get a shortest encrypted string as possible.
I will also want to decrypt that string back to its original string.
Which encryption algorithm fits best to this situation ?
Thanks
Hey Everyone,
I was wondering if any one had compiled a list of the most commonly used Android devices so I can get an idea of what I should test for. Even better would be suggested configurations for emulating each device.
Thanks,
Rob
Hey everyone,
I'm working on porting part of an existing Spring MVC application over to Wicket.
I used the wicket-spring library to get the initial integration working, but now I'm stuck with the best way to integrate my Spring Security implementation.
I was wondering if anyone could give me some advice on the best way to handle this.
Thanks in advance for the help.
Hey,
I would like to write a code involving automatic selection of a best composite model using ETS as well as autoregressive models. What is the criteria I should base my selection on?
Also if I'm using the auto.arima function for deducing number of AR terms and corresponding coefficients from the forecast package in R, does my input series necessarily have to be stationary? or the value for d would be automatically selected thus returning a non-stationary model?
Thanks,
Phani