Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
sequence |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3,595,021 | 1 | 3,595,349 | null | 1 | 1,381 | I'm trying to delete the corners of an img element:
```
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg">
<body>
<style type="text/css">
#div { background: #ffffff; width: 500px; height: 300px; padding: 10px; }
#div img { background: #000000; }
</style>
<div id="div"><img src="http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=14&size=500x300&sensor=false" alt="" class="t" /></div>
<style>.t { clip-path: url(#c1); }</style>
<svg:svg height="0">
<svg:clipPath id="c1" clipPathUnits="objectBoundingBox">
<svg:polyline x="0" y="0" width="0.5" height="0.5" points="0,60 20,20 40, 100, 60,40, 80,100, 100,40 120,100" fill="red" stroke="black" />
</svg:clipPath>
</svg:svg>
</body>
</html>
```
But the image disapears?!
I wanted that the red marked areas will be "removed"/disapear and I don't get it work:

| Firefox SVG: Clip | CC BY-SA 2.5 | null | 2010-08-29T13:58:10.567 | 2010-08-29T15:33:56.633 | null | null | 242,751 | [
"firefox",
"svg"
] |
3,595,089 | 1 | 3,596,768 | null | 7 | 3,229 | If I'm developing a hiberante application, am I also developing a DD model?
My application does have a service layer ( which is in lines with the Observer pattern). Will there also be a Domain Layer wherein all the hibernate entities exist?
I'm looking my application somehting like this:

Do I need to know Domain Driven Design to write Hibernate Entities?
Can the application be hybrid - OOD in the service layer and DDD in the persistence layer?
I'm confused. Please clarify.
| are hibernate applications domain driven? | CC BY-SA 2.5 | 0 | 2010-08-29T14:18:12.477 | 2010-08-30T08:05:22.887 | 2010-08-30T08:05:22.887 | 70,604 | 157,705 | [
"java",
"hibernate",
"orm",
"domain-driven-design"
] |
3,595,230 | 1 | 3,595,237 | null | 3 | 1,617 | the title may be a little unclear, so here's a screenshot of what I mean:

[HTML & CSS Sourcecode](http://pastebin.com/5xPKxicM)
All elements use the same CSS class, so shouldn't they all have the same width?
The bigger the border gets, the bigger the difference becomes. How do I make sure the div and the other elements have the same width?
Thanks in advance!
| CSS border on a <div> acts differently? | CC BY-SA 2.5 | 0 | 2010-08-29T15:01:26.890 | 2010-08-29T16:18:46.370 | 2010-08-29T15:05:04.943 | 313,758 | 408,089 | [
"html",
"css"
] |
3,595,217 | 1 | 3,595,275 | null | 0 | 5,125 | I'm trying to make a program that check the ISBN number and sees if it has the correct check digit, if it doesn't have the check digit it will add one. I have an Idea of how it will work I just cant figure out how to code for it as in the classes inheriting from each other.
This is an in class example that is not going to be graded it is just to familiarize us with getting our designs to a working program. here's what I have so far mind you this is a simple console program.

```
public class isbn
{ //attributes
private string isbnNum;
//method
public string GetIsbn()
{
return this.isbnNum;
}
//constructor
public isbn()
{
Console.Write("Enter Your ISBN Number: ");
this.isbnNum = Console.ReadLine();
}//end default constructor
//method
public string displayISBN()
{
return this.GetIsbn();
}
public static void Main(string[] args)
{
//create a new instance of the ISBN/book class
isbn myFavoriteBook = new isbn();
//contains the method for checking validity
bool isValid = CheckDigit.CheckIsbn(myFavoriteBook.GetIsbn());
//print out the results of the validity.
Console.WriteLine(string.Format("Your book {0} a valid ISBN",
isValid ? "has" : "doesn't have"));
Console.ReadLine();
}//end main
```
This is the check digit code the professor provided in class we just have to mesh it up to get it to work. I know this goes in the check digit class what I don't know is how to incorporate it into code.
```
public static class CheckDigit
{ // attributes
public static string NormalizeIsbn(string isbn)
{
return isbn.Replace("-", "").Replace(" ", "");
}
public static bool CheckIsbn(string isbn) // formula to check ISBN's validity
{
if (isbn == null)
return false;
isbn = NormalizeIsbn (isbn);
if (isbn.Length != 10)
return false;
int result;
for (int i = 0; i < 9; i++)
if (!int.TryParse(isbn[i].ToString(), out result))
return false;
int sum = 0;
for (int i = 0; i < 9; i++)
sum += (i + 1) * int.Parse(isbn[i].ToString());
int remainder = sum % 11;
if (remainder == 10)
return isbn[9] == 'X';
else
return isbn[9] == (char)('0' + remainder);
}
```
| Validate a 10 digit ISBN Number ERD Included | CC BY-SA 2.5 | null | 2010-08-29T14:58:19.407 | 2020-09-17T10:39:34.343 | 2010-08-31T13:20:39.090 | 327,073 | 327,073 | [
"c#",
"c#-3.0",
"c#-4.0"
] |
3,595,438 | 1 | 3,595,516 | null | 5 | 1,214 | How could I send an e-mail from my Python script that is being run on ["Google App Engines"](http://code.google.com/intl/en/appengine/) to one of my mail boxes?
I am just a beginner and I have never tried sending a message from a Python script. I have found this script [(IN THIS TUTORIAL)](http://www.yak.net/fqa/84.html):
Here is the same script as a quote:
---
```
import sys, smtplib
fromaddr = raw_input("From: ")
toaddr = string.splitfields(raw_input("To: "), ',')
print "Enter message, end with ^D:"
msg = ''
while 1:
line = sys.stdin.readline()
if not line:
break
msg = msg + line
# The actual mail send
server = smtplib.SMTP('localhost')
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
```
---
but I hardly understand how I could have this script run from "Google App Engine":
Firstly, I don't quite understand what e-mail address I need to place right after in this line:
---
```
fromaddr = raw_input("From: ")
```
---
Can I just place here any e-mail address of any e-mail boxes that I have?
Secondly, let's say I want to send a message to this e-mail address of mine . Then the next line, I guess, must look this way:
---
```
toaddr = string.splitfields(raw_input("To: [email protected]"), ',')
```
---
Is this right?
Thirdly, let's say, the message that I want to send will be this sentence: Then, I guess, the line that starts with must look this way:
---
```
msg = 'Cats cannot fly!'
```
---
Is this correct?
If I upload this script as an application to "GAE", how often will it be sending this message to my mail box? Will it send this message to me only once or it will be sending it to me every second all the time until I delete the application? (This is why I haven't tried uploading this script so far)
Thank You all in advance for Your time and patience.
| How to send an e-mail from a Python script that is being run on "Google App Engine"? | CC BY-SA 2.5 | 0 | 2010-08-29T15:54:53.807 | 2011-03-27T09:04:49.737 | 2011-03-27T09:04:49.737 | 206,857 | 206,857 | [
"python",
"google-app-engine",
"email"
] |
3,595,467 | 1 | 3,595,931 | null | 0 | 1,362 | Is there a quick/easy way to have tabular data and have a button that turns them to thumbnails (kind of a 2-view system, table/thumb)--I'm not looking for image thumbnails...
Any ideas are appreciated! :)
Examples:


| HTML/CSS/jQuery: Tabular data & thumbnails | CC BY-SA 2.5 | null | 2010-08-29T16:01:57.320 | 2010-08-29T18:04:25.290 | 2010-08-29T16:09:51.973 | 103,753 | 103,753 | [
"jquery",
"html",
"css"
] |
3,595,556 | 1 | 3,595,947 | null | 2 | 860 | I am wanting to make a reusable 'landing page' activity similar to like the activity when you first launch the official twitter app, facebook, or google io app, etc. Reusable is really the key here I would like for the activity to dynamically populate its gridview with the other activities in the application.
Is it possible to parse through the android manifest file to find my other activities? If so is it also possible to add my own xml attributes to the manifest file to distinguish which activities should show up in the gridview?
Or, is there some other way to find all existing activity classes in the package? Is there a way in java to look for any Class in a package that implements a particular interface?
edit: here is a screen shot as per request 
| Creating a landing page similar to twitter app and others | CC BY-SA 2.5 | null | 2010-08-29T16:27:43.497 | 2015-05-21T10:04:00.580 | 2010-08-29T16:58:56.963 | 384,306 | 384,306 | [
"java",
"android",
"android-manifest"
] |
3,596,162 | 1 | null | null | 1 | 174 | I've been looking at the Facebook Connect for iOS, but I could not find the solution which could fulfill my requirement. I was able to create a simple log in window, user can put his/ger credentials, but when I run my iPhone app again the user has to login again.
So far I've been able to get this:

I would like to be able to get a dialog similar to this one:

Any idea how to achieve this?
| Connection between Facebook aplication and iPhone app | CC BY-SA 2.5 | null | 2010-08-29T19:07:56.747 | 2011-03-23T07:39:43.980 | null | null | 256,205 | [
"iphone",
"facebook"
] |
3,596,163 | 1 | 3,596,189 | null | 0 | 61 | I've been wondering this for a while already. The title stands for my question. What do you prefer?
I made a pic to make my question clearer.

Why am I even thinking of this? Isn't one table the most obvious option? Well, kind of. It's the simpliest way, but let's think more practical. When there is a ton of data in one table and user wants to only see statistics about browsers the visitors use, this may not be as successful. Taking browser-data out of one table is naturally better.
Multiple tables has disadvantages too. Writing data takes more time and resources. With one table there's only one mysql-query needed.
Anyway, I figured out a solution, which I think makes sense. Data is written to some kind of temporary table. All of those lines will be exported to multiple tables later (scheduled script). This way the system doesn't take loading-time from the users page, but the data remains fast to browse.
Let's bring some discussion here. I'm hoping to raise some opinions.
Which one is better? Let's find out!
| On a stats-system, should I save little bits of information about single visit on many tables or just one table? | CC BY-SA 3.0 | null | 2010-08-29T19:08:21.257 | 2017-06-10T12:17:42.163 | 2017-06-10T12:17:42.163 | 4,370,109 | 239,527 | [
"mysql",
"performance",
"database-design"
] |
3,596,312 | 1 | 3,596,737 | null | 6 | 1,421 | How do I parse this structure? I need to turn this into single variables. E.g. from the attributes struct:
```
name
type
value
```
I'm not familiar with structures, and I need to enter this type of data into a database.
I've played around with `cfloop`, but nothing.

| Parsing CFDUMP struct and store values | CC BY-SA 2.5 | null | 2010-08-29T19:50:10.660 | 2010-09-07T19:07:01.207 | 2010-08-29T20:06:04.720 | 339,850 | 270,737 | [
"parsing",
"data-structures",
"coldfusion",
"cfdump"
] |
3,596,602 | 1 | 3,596,624 | null | 0 | 53 | I currently have two navigational links (arrows), but they tend to push other elements on the same height (a textarea in this case) away. The picture below illustrates the problem:

How do I make it so that the arrows won't interfere with, but exist on the same height as the textarea?
I'm left clueless, help is much appreciated :-).
| Having a page element in-background / below other elements? | CC BY-SA 2.5 | null | 2010-08-29T21:09:23.537 | 2015-02-01T16:29:00.670 | 2015-02-01T16:29:00.670 | 3,204,551 | 408,089 | [
"html",
"css",
"background"
] |
3,596,798 | 1 | 3,597,230 | null | 4 | 724 | 
example if i have
```
follow table
company one ( cid = 1 ) following two ( cid = 2 )
company one ( cid = 1 ) following three( cid = 3 )
feeds table
company one ( cid = 1 ) type 'product' description 'hello ive updated a product';
company two ( cid = 2 ) type 'product' description 'hello ive updated a product im from company 2';
company three ( cid = 3 ) type 'shoutout' description 'hello ive i got a shoutout im company 3';
company one ( cid = 1 ) type 'product' description 'hello ive updated my second product';
```
question
heres my simple pdo sql to get just mine.
```
$data['feeds']['cid'] = 1;
return $this->db->fetchAll("SELECT feeds.type, feeds.$type, feeds.cid, feeds.time, companies.name FROM feeds, companies WHERE
feeds.cid = :cid AND companies.cid = :cid ORDER BY feeds.fid DESC LIMIT 0, 5", $data['feeds']);
this will display
hello ive updated a product
hello ive updated my second product
```
maybe something like this ? ( fail )
```
$data['feeds']['cid'] = 1,2,3;
return $this->db->fetchAll("SELECT feeds.type, feeds.$type, feeds.cid, feeds.time, companies.name FROM feeds, companies WHERE
feeds.cid = :cid AND companies.cid = :cid ORDER BY feeds.fid DESC LIMIT 0, 5", $data['feeds']);
this should be displaying like
hello ive updated a product
hello ive updated a product im from company 2
hello ive i got a shoutout im company 3
hello ive updated my second product
```
or simpler get feeds.description from each follow.following ( cid = 1,2,3,etc ) from me. ( cid = 1)
or if twitter get all my friends status ( friends that i follow )
edit*
some good guys at irc mysql said to use joins. but i just dont get it.
what i get is this
```
fetch all the follow.following from cid = me ( example cid = 1 )
```
then
```
SELECT * FROM feeds WHERE feeds.cid = IN (2,3,cid that im following ( see follow.following ))
```
anyone can give me an example for joins in this problem ?
| sql help getting data from all the followers ? ( like twitter if we follow ) | CC BY-SA 2.5 | 0 | 2010-08-29T22:04:15.160 | 2010-08-30T02:00:52.627 | 2010-08-30T00:15:12.320 | 320,486 | 320,486 | [
"php",
"sql",
"mysql",
"pdo",
"php-5.3"
] |
3,596,878 | 1 | 3,596,980 | null | 4 | 285 |
At the moment, I have a JTextArea that has been created like so:
```
JTextArea descArea = new JTextArea();
descArea.setFont(style.getFont());
descArea.setLineWrap(true);
descArea.setName("descArea");
descArea.setToolTipText(resourceMap.getString("descArea.toolTipText"));
descArea.setText(model.getName());
JScrollPane descPane = new JScrollPane(descArea,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
```
When a user types something into the field, it does indeed wrap (as per `descArea.setLineWrap(true)`), but does it a little clumsily by breaking words like the following example:

The users of our software are expecting the wrapping to be a little more clever and automatically generate something more like:

With the general idea being that when they type the last 'th' it all moves down to the second line along with the insertion point as they type (in a way similar to just about every other text editor).
---
My initial thought had been to implement this sort of wrapping manually using a Key Listener, but I was wondering if there is a better approach/different component that could achieve this functionality more easily?
| enabling smarter text wrapping in a JTextArea | CC BY-SA 2.5 | null | 2010-08-29T22:28:16.240 | 2010-08-29T23:12:51.640 | 2010-08-29T22:42:37.313 | 216,287 | 216,287 | [
"java",
"swing",
"user-interface"
] |
3,597,000 | 1 | null | null | 0 | 2,516 | I'm using postgresql 9.0 beta 4.
After inserting a lot of data into a partitioned table, i found a weird thing. When I query the table, i can see an empty row with null-like values in 'not-null' fields.
That weird query result is like below.

689th row is empty. The first 3 fields, (stid, d, ticker), are composing primary key. So they should not be null. The query i used is this.
```
select * from st_daily2 where stid=267408 order by d
```
I can even do the group by on this data.
```
select stid, date_trunc('month', d) ym, count(*) from st_daily2
where stid=267408 group by stid, date_trunc('month', d)
```
The 'group by' results still has the empty row.

The 1st row is empty.
But if i query where 'stid' or 'd' is null, then it returns nothing.
Is this a bug of postgresql 9b4? Or some data corruption?
1. I added my table definition. CREATE TABLE st_daily
(
stid integer NOT NULL,
d date NOT NULL,
ticker character varying(15) NOT NULL,
mp integer NOT NULL,
settlep double precision NOT NULL,
prft integer NOT NULL,
atr20 double precision NOT NULL,
upd timestamp with time zone,
ntrds double precision
)
WITH (
OIDS=FALSE
);
CREATE TABLE st_daily2
(
CONSTRAINT st_daily2_pk PRIMARY KEY (stid, d, ticker),
CONSTRAINT st_daily2_strgs_fk FOREIGN KEY (stid)
REFERENCES strgs (stid) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT st_daily2_ck CHECK (stid >= 200000 AND stid < 300000)
)
INHERITS (st_daily)
WITH (
OIDS=FALSE
);
2. The data in this table is simulation results. Multithreaded multiple simulation engines written in c# insert data into the database using Npgsql.
3. psql also shows the empty row.

| an empty row with null-like values in not-null field | CC BY-SA 2.5 | null | 2010-08-29T23:20:45.413 | 2016-03-04T01:41:03.647 | 2010-08-30T13:49:10.867 | 266,819 | 266,819 | [
"postgresql"
] |
3,597,031 | 1 | 3,597,107 | null | 2 | 392 | How do I fix the following?
```
<<<<<<< HEAD
<<<<<<< HEAD
-(int)existsMedia:(NSNumber*)mediaId {
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSPredicate *predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"mediaId == %@", mediaId]];
=======
-(int)existsMedia:(NSNumber*)mediaMessageId {
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSPredicate *predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"messageId == %@", mediaMessageId]];
>>>>>>> dc244e93b3e351ab6dce5785e1f2b686305a0051
=======
-(int)existsMedia:(NSNumber*)mediaMessageId {
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSPredicate *predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"messageId == %@", mediaMessageId]];
>>>>>>> parent of 4a5c497... Bug Hunting for Media Support
NSEntityDescription *entity = [NSEntityDescription entityForName:@"ELMMedia" inManagedObjectContext:managedObjectContext];
[request setEntity:entity];
[request setPredicate:predicate];
NSError *error;
NSUInteger count = [managedObjectContext countForFetchRequest:request error:&error];
[request release];
```
Actually, yes, there was a merge. But I don't know why. Is it possible to get my correct commit on 00:25?

| What did Git do to my source code? | CC BY-SA 2.5 | null | 2010-08-29T23:31:18.993 | 2010-08-30T00:10:52.420 | 2010-08-29T23:44:32.703 | null | 107,004 | [
"git"
] |
3,597,034 | 1 | 3,597,182 | null | 1 | 922 | I have 6 images I want to display as 2 rows with 3 images in each. I'm using nested LinearLayouts to achieve this, and it works well except for one thing:
The height of the largest image dictates the size of the linear layout, meaning there is empty space a lot of the time. In other words, my problem is as follows:

I keep getting the layout shown on the left, and I want the layout shown on the right.
I am aware that you can just use GridView, but that will still prevent the exact layout shown on the right, so I'm at a loss really. Many thanks.
| Relative stacking with Linear Layout in Android? | CC BY-SA 2.5 | null | 2010-08-29T23:33:43.413 | 2010-08-30T01:08:49.307 | 2010-08-29T23:59:29.110 | 250,286 | 250,286 | [
"android",
"android-linearlayout"
] |
3,597,292 | 1 | 3,658,726 | null | 4 | 181 | This is basically for a library I'm building. In this module I'll attempt to build a debug helper library to help me during debugging.
My problems here are that when `FDL.D.ListEvents()` is called a couple of awkward things happen:
> 1) If I include enough `_logEvent()` calls, the last few stop closing their groups at the console, which makes it completely unreadable.2) It "decides" that it listed less events than it actually did.
When I use `_logEvent()` on, for instance, just the mouseevents, it lists them kind of "correctly", or at least in the way I'd expect the function to work, revealing and counting around 20 events on the DOM (though the timespan is determined to be zero, which is kind of weird).
> Apparently I'm too dangerous to post
images :(
Output image:

When I call the function with the full listing of events,
I get this weird output format instead:

The following would be the standalone part of the lib (you can run it) that is supposed to do the magic
```
var FDL = FDL || {};
// FIREBUG DEBUG LIBRARY
FDL.D = (function()
{
function _logEvents(eventName)
{
var _arr = $(":visible");
var _count = 0;
console.groupCollapsed(eventName);
_arr.each(function(idx)
{
var _el = this;
var _id = _el.id;
if(!_id){
_id = _el.tagName;
}
var _ev = eval("_el." + eventName);
if(_ev){
console.log("%o\n" + _ev + "\n\n",$(this));
_count++;
}
});
console.log(_count + " " + eventName + " events");
console.groupEnd();
return _count;
}
return {
ListEvents : function ()
{
var _start = new Date().getTime();
var _count = 0;
console.group("Events");
_count += _logEvents("onblur");
_count += _logEvents("onchange");
_count += _logEvents("onclick");
_count += _logEvents("ondblclick");
_count += _logEvents("onerror");
_count += _logEvents("onfocus");
_count += _logEvents("onkeydown");
_count += _logEvents("onkeypress");
_count += _logEvents("onkeyup");
_count += _logEvents("onmousedown");
_count += _logEvents("onmousemove");
_count += _logEvents("onmouseout");
_count += _logEvents("onmouseover");
_count += _logEvents("onmouseup");
_count += _logEvents("onresize");
_count += _logEvents("onselect");
_count += _logEvents("onunload");
var _diff = new Date(new Date().getTime() - _start).getSeconds();
console.groupCollapsed("details");
console.log(_count + " events bound");
console.log(_diff + "s runtime");
console.groupEnd();
console.groupEnd();
}
};
})();
```
I tried a few ideas but I couldn't come up with the right solution to make these `_logEvent()` calls chain in the expected order. The problem basically being that `.each()` is called async and I suppose this is what breaks my code's execution order.
---
Thanks for your input! <3 stackoverflow
I changed the groupCollapsed() calls with group() calls and it has worked indeed. Now I face a different problem, how should I make it so it only displays once for each event name the bindings as long as the bound function is the same?
For instance if somewhere we had `$(":input").click(function(){alert("Clicked!");});`
I'd like `_logEvents("onclick")` to display the function and selector just once, but display how many times it was bound. For instance if we had 4 inputs, the output would be:
> jQuery(:input) Len:1 function () {alert("Clicked!");}
| how to correctly use .each here? | CC BY-SA 2.5 | null | 2010-08-30T01:16:52.823 | 2010-09-07T13:25:21.910 | 2010-09-07T13:25:21.910 | 389,745 | 389,745 | [
"javascript",
"jquery",
"firebug"
] |
3,597,417 | 1 | 3,597,447 | null | 16 | 15,542 | I can convert values to with the following code...
```
$r = $r/255;
$g = $g/255;
$b = $b/255;
$h = 0;
$s = 0;
$v = 0;
$min = min(min($r, $g),$b);
$max = max(max($r, $g),$b);
$r = $max-$min;
$v = $max;
if($r == 0){
$h = 0;
$s = 0;
}
else {
$s = $r / $max;
$hr = ((($max - $r) / 6) + ($r / 2)) / $r;
$hg = ((($max - $g) / 6) + ($r / 2)) / $r;
$hb = ((($max - $b) / 6) + ($r / 2)) / $r;
if ($r == $max) $h = $hb - $hg;
else if($g == $max) $h = (1/3) + $hr - $hb;
else if ($b == $max) $h = (2/3) + $hg - $hr;
if ($h < 0)$h += 1;
if ($h > 1)$h -= 1;
}
```
But how do you convert in ???
The following is on wikipedia but I don't understand it,
I'm guessing it's pretty obvious

| PHP HSV to RGB formula comprehension | CC BY-SA 2.5 | 0 | 2010-08-30T02:06:09.670 | 2020-05-19T08:55:06.770 | 2010-08-30T02:12:29.623 | 1,246,275 | 1,246,275 | [
"php",
"colors",
"rgb",
"hsv"
] |
3,597,455 | 1 | 3,597,925 | null | 7 | 2,383 | I am trying to parse some XML in AS3 that I recieve thru a WebService call to C#. C# is serializing using a DataContract so the namespace is non standard.
```
<User xmlns="http://schemas.datacontract.org/2004/07/UserDatabaseManipulation.POCO" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Email>
<EmailString>
[email protected]
</EmailString>
</Email>
<Password>
<PasswordPlainText>
password
</PasswordPlainText>
</Password>
<ReferralDetails>
<ReferralEmail/>
<ServiceCreatedAt>
google
</ServiceCreatedAt>
</ReferralDetails>
<UserDetails>
<Address>
Penn Ave
</Address>
<City>
Washington DC
</City>
<Country>
USA
</Country>
<FirstName>
Bill
</FirstName>
<LastName>
Clinton
</LastName>
<State>
AK
</State>
<Zip>
11111
</Zip>
</UserDetails>
</User>
```
So as you can see from that I have a User which consists of Email, Password, Referral Details, and UserDetails.
```
private function onResult(event:ResultEvent):void
{
var n:Namespace = new Namespace("http://schemas.datacontract.org/2004/07/UserDatabaseManipulation.POCO");
use namespace n;
//This WORKS! ResultXml is loaded with the correct looking XML.
var resultXml:XML = new XML(event.result);
//This doesnt work! I just end up with an empty XMLList.
var email:Object = resultXml.Email;
...
```
Here's a screen shot in debug view (copy link and re-view to see it bigger):

```
var resultXml:XML = new XML(event.result); // the whole block of XML
var email:XML = resultXml.children()[0]; // the email object XML
var emailText:XML = email.children()[0]; // the email text
var emailActualXml:XML = emailText.children()[0]; // the email string in xml
var emailString:String = emailActualXml.toString();
```
Screenshot:

```
var xmlNamespace:Namespace = new Namespace( // namespace in here );
var resultXml:XML = new XML(event.result);
var email:XMLList = resultXml.xmlNamespace::Email;
var emailString:Object = email.xmlNamespace::EmailString.text().toString();
```
| Reading Non Standard Namespace XML using E4X in AS3? | CC BY-SA 2.5 | 0 | 2010-08-30T02:19:29.043 | 2014-05-23T13:47:10.730 | 2010-08-30T05:23:43.640 | 423,079 | 423,079 | [
"xml",
"flash",
"actionscript-3",
"e4x"
] |
3,597,610 | 1 | 3,597,712 | null | 0 | 3,669 | For [this project](http://code.google.com/p/django-colors/) I use Python's colorsys to convert RGB to HSV vice versa to be able to manipulate saturation and lightness, but I noticed that some colors yields bogus results.
For example, if I take any primary colors there's no problem:

However if I chose a random RGB color and convert it to HSV, I sometime gets bogus results.
Sometimes these bogus results occurs when I increase or decrease the lightness or the saturation of a color.
In this example lightness 10%, 20% and saturation 100% are bogus:

I'm not quite sure why it happens nor how I should fix this ..
| hex <-> RGB <-> HSV Color space conversion with Python | CC BY-SA 2.5 | null | 2010-08-30T03:04:29.383 | 2010-08-30T03:40:03.677 | null | null | 105,905 | [
"python",
"colors",
"color-space"
] |
3,598,051 | 1 | null | null | 1 | 3,481 | I am tryimng to make a UI. But in qt, the window size is too short, I want to work in a separate windows like photoshop. Here I am posting the picture. I want to see the middle window(i rounded it by rose color) in full screen size. Can anybody help me?

If I want to create a full screen application, How can I position the widgets in it. It's possible dragging a widget inside a scroll bared window,but is not user friendly. I want it to work like photoshop, like separate windows.
| qt - creator - how to maximize the widget screen | CC BY-SA 2.5 | 0 | 2010-08-30T05:22:15.417 | 2015-11-22T19:31:09.117 | 2010-08-31T09:41:43.027 | 344,822 | 344,822 | [
"user-interface",
"qt",
"qt-creator"
] |
3,598,085 | 1 | 3,599,944 | null | 109 | 189,430 | This symbol for the rupee, the currency of India, was approved by the Union Cabinet on 15 July 2010. How can I display it on a website?

| Displaying the Indian currency symbol on a website | CC BY-SA 4.0 | 0 | 2010-08-30T05:32:27.220 | 2021-11-02T01:12:10.577 | 2020-11-18T15:23:54.570 | 6,904,888 | 256,621 | [
"html",
"currency",
"symbols"
] |
3,598,581 | 1 | 3,598,623 | null | 1 | 992 | I am trying to do the login form I have created two uitextfields for username ,password and one uibutton for login. when I enter password in password textfield I want to display all the text as '*' or any special characters like in the following images


Is there any default ways in sdk to do this or we have to do it logically if any give me some sample codes? Thanks in advance
| login form in iphone native application | CC BY-SA 3.0 | 0 | 2010-08-30T07:23:55.740 | 2012-02-08T13:36:33.530 | 2012-02-08T13:36:33.530 | 171,950 | 470,993 | [
"iphone",
"authentication",
"interface-builder",
"passwords",
"uitextfield"
] |
3,599,154 | 1 | 6,326,406 | null | 3 | 758 | I need to create a dialog that allows user to choose between several rather complex actions. I really like the usability of the windows 7 file replace dialog and I think it would suit my needs very well. Here's a screenshot for reference:

Is it possible to use the controls that were used for windows dialog? If not, how would you recommend creating UI similar to this dialog?
| How to create UI similar to file replace dialog in window 7 using C# Windows Forms? | CC BY-SA 2.5 | null | 2010-08-30T09:13:26.123 | 2013-02-06T10:43:34.257 | null | null | 64,605 | [
"c#",
"user-interface"
] |
3,599,403 | 1 | null | null | 1 | 3,301 | I have a rotate rectangle and I know the size of the diagonal. I also know the angle used to rotate the rectangle.
How can I calculate the width and height of the rectangle?
For a sketch of the problem, see:

| Calculate rectangle width and height from diagonal and rotation | CC BY-SA 2.5 | 0 | 2010-08-30T10:04:48.253 | 2010-08-30T13:00:30.427 | 2010-08-30T10:15:34.323 | 50,476 | 434,829 | [
"geometry",
"height",
"rotation",
"width"
] |
3,599,475 | 1 | 3,599,499 | null | 0 | 3,076 | Hi Im trying to create the following structure in div's, but I just need some help getting startet with the css.

The width needs to be 100%
| div column layout | CC BY-SA 2.5 | null | 2010-08-30T10:16:17.073 | 2011-01-08T04:02:09.457 | 2011-01-08T04:02:09.457 | 11,995 | 363,274 | [
"css",
"html"
] |
3,599,623 | 1 | 3,599,923 | null | 0 | 901 | Here's an odd rendering difference between IE and other browsers.



See the difference? That vertical line suddenly stops in IE8. That's because IE8 refuses to display a certain background image. Here's a relevant snippet of CSS code:
```
td#leftbar {
background: url(img/leftbar.gif) repeat-y right top;
width: 100px;
}
```
You can get additional information by viewing the website on your own computer here: [http://labs.pieterdedecker.be/vspwpg/](http://labs.pieterdedecker.be/vspwpg/)
| Why doesn't IE display this requested background image? | CC BY-SA 2.5 | 0 | 2010-08-30T10:41:45.497 | 2010-08-30T12:41:58.213 | null | null | 217,649 | [
"html",
"css",
"internet-explorer"
] |
3,599,664 | 1 | 4,076,311 | null | 2 | 367 | I want to creat an UITableView which each cell (UITableCell) in this table can be moved left or moved right (System will be notified when user touchs down the cell and moves finger to left or right). Anybody can tell me how can i do it :) Thanks :)
I want to build a Table which each TableCell in it become a menu likes image bellow when user touch up TableCell and move finger to left or right!

| Handling UITableCell move left (or move right) event? | CC BY-SA 2.5 | 0 | 2010-08-30T10:49:12.890 | 2010-11-02T09:22:20.323 | 2010-08-31T02:20:01.833 | 106,224 | 122,456 | [
"iphone",
"objective-c",
"uitableview"
] |
3,600,968 | 1 | 3,601,225 | null | 0 | 206 | I wish to make something looking like this:
```
http://img291.imageshack.us/img291/5571/bartablestyling.png
```

(Right now i only have that bar at the top)
When i try to write text, it gets under the profilepicture.
I dont want to use float:left for it.
How can i make a table that makes the text like that, and the red arrow i drawed, i want to know how to adjust that width between there?
Here's my code for now:
```
<div style="background-image: url(images/notificationShelfBg4.png);
background-repeat: repeat-x;
background-position: bottom; width: auto;">
<img src="<?php if(!empty($vP["photo_thumb"])) { echo "images/profileimages/".$vP["photo_thumb_small"]; }else{ echo "images/profileimages/noPhoto_thumb.jpg"; } ?>" style=" border: 2px solid #CCC; margin-right: 5px; margin-left: 15px; margin-bottom: 2px;">
</span>
</span>
</a>
</div>
```
| CSS/HTML: text on bar/table? | CC BY-SA 2.5 | null | 2010-08-30T13:53:49.050 | 2010-08-30T14:54:04.203 | null | null | 267,304 | [
"html",
"css"
] |
3,601,228 | 1 | 5,178,982 | null | 2 | 717 | I added the following lines to Application_Start method in global.asax:
```
var provider = new TestVirtualPathProvider();
HostingEnvironment.RegisterVirtualPathProvider(provider);
```
Yet the 'TestVirtualPathProvider' is never used when deploying this application in IIS6 (it does in the ASP.NET Development Server).
Edit: the default path provider has always done its job correctly and served (non-embedded) views correctly. The problem is simply that I want to use my own path provider to provide embedded views. So, initially, I already had the following wildcard mapping configured:

Any possible reasons why this does not work in IIS6?
Are there any other factors (handlers for example) wich might influence the used VirtualPathProvider?
| Custom VirtualPathProvider not being used in IIS6 | CC BY-SA 2.5 | null | 2010-08-30T14:23:48.927 | 2011-03-03T09:44:04.467 | 2010-09-03T06:47:27.740 | 65,087 | 65,087 | [
"asp.net",
"iis-6",
"virtualpathprovider"
] |
3,601,334 | 1 | 3,602,341 | null | 2 | 773 | I'm looking for a voting script/widget (preferably jQuery), but not a star rating one, one with +1 and -1 options like this (admire my profesionnal MSPaint skills ^^) :

Anyone know about one ?
Thanks a lot !
| Voting box (plus/minus, not star rating) | CC BY-SA 2.5 | null | 2010-08-30T14:36:17.540 | 2010-08-30T16:35:36.480 | null | null | 384,994 | [
"javascript",
"jquery"
] |
3,601,434 | 1 | 3,601,576 | null | 7 | 11,735 | I have a 3D plot like this:

On the y-axis of the plot, each group of three bars refers to the same parameters: x1, x2, x3. I would like to have a spacing on the y-axis for each group of three bars, so that it becomes more clear that those bars are referring to the same parameters. At the same time, I would like to put a label on the y-axis for each group of three bars. For example, the following label layout for the y-axis would be desired:
```
x1 x2 x3 x1 x2 x3 x1 x2 x3
grid1 grid2 grid3
```
Any suggestions are more than welcome! The code that I used to plot the bars is given below:
```
Z = rand(9,5);
h = bar3(Z);
[r c] = size(Z);
zdata = [];
for i = 1:c
zdata = [];
for j = 1:r
zdata = [zdata; ones(6,4)*Z(j,i)];
end
set(h(i),'Cdata',zdata)
end
colormap
colorbar
set(gca,'YTickLabel',['x1';'x2';'x3';'x1';'x2';'x3';'x1';'x2';'x3']);
view([-64 44]);
```
| How can I adjust 3-D bar grouping and y-axis labeling in MATLAB? | CC BY-SA 2.5 | null | 2010-08-30T14:47:30.923 | 2017-07-09T05:14:09.247 | 2015-02-27T11:38:08.193 | 3,687,447 | 324,081 | [
"matlab",
"plot",
"label",
"bar-chart"
] |
3,601,760 | 1 | 3,602,289 | null | 54 | 138,254 | i have a website in which i have to put some lines in Arabic.... how to do it...
where to get the Arabic text characters... how to make the page support Arabic...
i have to put a line per page and there is a lotta lotta pages so can't go around making images and putting them...

| HTML - Arabic Support | CC BY-SA 2.5 | 0 | 2010-08-30T15:21:02.470 | 2020-11-11T03:41:05.853 | 2010-08-30T17:33:10.513 | 158,455 | 158,455 | [
"html",
"arabic",
"multilingual"
] |
3,601,867 | 1 | 3,602,906 | null | 2 | 2,480 | Been stuck on this for days, things just aren't working with how I'm setting this up. I have a large grid of ImageViews which are all the same size. It's made up of a Horizontal LinearLayout and within that, 5 Vertical LinearLayouts (first picture).
What I want (and I don't care how, be it using RelativeLayout, Linear or Tables) is if I were to set say Image #2 to a larger image (specifically 3x3 of the smaller ones) I want it to effectively 'overwrite' those images (as shown in picture 2).
I've tried doing this by setting the 'overwritten' images (3,4,7,8,9,12,13,14) to setVisibility(GONE) which works fine but then the second vertical LinearLayout has expanded to fit the size of the new image which I don't want. If I try setting it to fill_parent though it squashes the size of the image. As a result, what I get is the third picture.
All associated XML code (id codes match those on the image):
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView android:id="@+id/gs01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs06"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView android:id="@+id/gs02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs07"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs17"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView android:id="@+id/gs03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs08"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs13"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs18"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView android:id="@+id/gs04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs09"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs19"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView android:id="@+id/gs05"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs15"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
<ImageView android:id="@+id/gs20"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
/>
</LinearLayout>
</LinearLayout>
```
If I were to do this using RelativeLayouts, I run into problems when I setVisibility(GONE) since the position may very well be referenced using a missing View. Setting it to INVISIBLE just leaves a blank space, when what I really want is effectively it to be of 0px by 0px in size.
Any help at all would be appreciated; it seems no matter what I try something always goes slightly wrong with it, and it's driving me insane.

| Android Linear/RelativeLayout sizing with ImageViews | CC BY-SA 2.5 | 0 | 2010-08-30T15:33:46.837 | 2010-08-30T17:52:53.893 | null | null | 250,286 | [
"android",
"imageview",
"android-linearlayout"
] |
3,602,262 | 1 | 3,778,037 | null | 0 | 10,967 | I am trying to add a hi-res icon to my iPhone app. Is Is CFBundleIconFiles the same as Icon File in the screenshot below?

| Is CFBundleIconFiles the same as Icon File? | CC BY-SA 2.5 | null | 2010-08-30T16:27:45.260 | 2011-08-23T09:20:10.753 | null | null | 19,875 | [
"iphone",
"xcode",
"plist",
"retina-display"
] |
3,602,571 | 1 | 3,602,614 | null | 14 | 36,749 | I've got a GUI in MATLAB with a set of axes pre-placed. I'm using the location property of the legend to place it to the right hand side of the axes. However, by doing this the axes get re-scaled so that the axes+legend take up the original width of the axes. Is there any way to circumvent the re-size?
Example:
```
x=0:.1:10;
y=sin(x);
figure
pos=get(gca,'position');
pos(3)=.5; %#re-size axes to leave room for legend
set(gca,'position',pos)
plot(x,y)
```
So far I get:

Place legend:
```
legend('sin(x)','location','eastoutside')
```
...aaaaand...

MATLAB squishes it all into the original axes space. Any way around this?
| Add legend outside of axes without rescaling in MATLAB | CC BY-SA 2.5 | 0 | 2010-08-30T17:06:15.900 | 2010-08-30T17:36:05.233 | 2020-06-20T09:12:55.060 | -1 | 201,800 | [
"matlab",
"plot",
"legend",
"axes"
] |
3,602,996 | 1 | 3,603,140 | null | 0 | 1,114 | I have created scroll view in my view controller and set the buttons in the scroll view. I have set the scroll view between the two images. The buttons are scrolling horizontally. Now i want to enable and disable the images. For Eg: Initially left images are to be hidden, once moving the button horizontally and enable right button and hidden the left button.
How can i write the touch events for the scroll view?.
```
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
NSLog(@"ImagePressed");
}
```
If i have used this method in my application. But the methods are doesn't called. SO how can i write the touch events when i clicks the scroll view. If i get the touch events, then only i could enable and disable the images. so please help me out?
See my images, (I have set the two images(left arrow and right arrow images)).
I have set the two images in the imageview and I have set the scroll view as subview for the custom view.(Scroll view is not subview for view controller).
```
UIImageView *leftImg;
UIImageView *rightImg;
```


Thanks!
| Touch Events in UIScroll View in iPhone | CC BY-SA 2.5 | null | 2010-08-30T18:07:32.920 | 2015-10-05T04:12:04.717 | 2010-08-30T18:11:49.090 | 249,916 | 249,916 | [
"iphone",
"events",
"uiscrollview",
"touch"
] |
3,603,083 | 1 | 3,611,506 | null | 4 | 6,702 | Is there any way to convert the .nps profiler data captured by [VisualVM](http://download-llnw.oracle.com/javase/6/docs/technotes/guides/visualvm/snapshots.html) to excel.
Namely I'd like to get a table view of the HotSpot Methods.

In the end I want to know if there's a way to automate the capture of VisualVM profiler statisitcs (e.g. command line script) and export that to Excel (CSV file or whatever), so that we could automatically upload it to say Google Docs spreadsheets.
It appears that VisualVM just uses the standard [HPROF](http://java.sun.com/developer/technicalArticles/Programming/HPROF.html) cpu=samples, but it's able to do it remotely I'm only aware of enabling profiling as a JVM argument. Is there some way to trigger that from JMX?
| Export Java VisualVM .nps profiler data to excel | CC BY-SA 2.5 | null | 2010-08-30T18:21:16.470 | 2010-08-31T17:17:56.797 | 2010-08-30T22:52:58.627 | 98,050 | 98,050 | [
"java",
"profiling",
"visualvm"
] |
3,603,268 | 1 | 3,604,006 | null | 2 | 461 | I am building an app that uses a TabBarController to display several other views. In one of these views, I'm using a navigation controller to navigate some tabular data. When the user click's this tab, I load in the NavigationController which in turn loads the TableView that I'm using. The issue is that I get the following error upon load of the TableView Controller:
```
-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x6b37b10
```
I have read everywhere that this type of error usually comes from a misconnection in IB or that a class is not correct in the view controller. Here is my code and screenshots of IB as to help debug this for me.
Thanks in advance!



```
@interface FAQListViewController : UIViewController <UITableViewDataSource, UITableViewDelegate> {
// Dictionary that will hold the FAQ Key/Values
NSMutableArray *arrFAQData;
}
```
```
@implementation FAQListViewController
// Implementation for UITableView numberOfRowsInSection protocol
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [arrFAQData count];
}
// Implementation for UITableView cellForRowAtIndexPath protocol
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// See if we have any cells available for reuse
UITableViewCell *objCell = [tableView dequeueReusableCellWithIdentifier:@"FAQCell"];
if (objCell == nil) {
// No reusable cell exists, so let's create a new one
objCell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: @"FAQCell"];
}
// Give it data
NSDictionary *objRow = [arrFAQData objectAtIndex: [indexPath row]];
objCell.textLabel.text = [objRow valueForKey:@"Title"];
// Return the created cell
return objCell;
}
// Selection Event Handler
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Get the value for the selected key
NSDictionary *dictRow = [arrFAQData objectAtIndex:[indexPath row]];
NSString *strURL = [dictRow valueForKey: @"URL"];
// Alert result
UIAlertView *objAlert;
objAlert = [[UIAlertView alloc] initWithTitle:@"Alert" message: strURL delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
// Release created objects
[objAlert show];
[objAlert release];
// Deselect row
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
- (void)viewDidLoad {
// Pull in FAQ from Plist
NSString *strFAQPlist = [[NSBundle mainBundle] pathForResource:@"FAQData" ofType:@"plist"];
arrFAQData = [[NSMutableArray alloc] initWithContentsOfFile: strFAQPlist];
[super viewDidLoad];
}
- (void)dealloc {
[arrFAQData release];
[super dealloc];
}
```
| Unrecognized Selector when Using UITableView in a Subview | CC BY-SA 2.5 | null | 2010-08-30T18:47:51.867 | 2010-08-30T20:31:00.023 | null | null | 277,757 | [
"iphone",
"uitableview"
] |
3,603,386 | 1 | 3,606,269 | null | 4 | 1,288 | Very frequently I see error reporting GUIs in commercial software. This includes the whole gamut of commercial software: games, enterprise apps, office apps, etc.
For some of my company's software I would like to provide exception reporting GUIs if (and ultimately when) my application fails unexpectedly. Building the GUI is not hard. It boils down to this: Ideally I am looking for a java library and a corresponding server backend. I could roll my own solution; for example, I could send the data to a webserver via POST data.
I feel like a solution for this already exists somewhere -- I just haven't run into it. Any recommendations?
Edit:
Example frontend GUI for a user. I need a library to manage the backend of the error reporting. (I won't need user login functionality, just basic reporting.)

| Backend for Java exception reporting GUI | CC BY-SA 2.5 | null | 2010-08-30T19:05:23.290 | 2016-08-16T15:31:24.290 | 2010-08-30T21:20:57.210 | 312,480 | 312,480 | [
"java",
"reporting-services",
"exception",
"error-reporting"
] |
3,603,420 | 1 | 11,091,432 | null | 2 | 1,509 | ```
var imageData:ByteArray = new ByteArray();
var headshotStatement:SQLStatement = new SQLStatement();
headshotStatement.sqlConnection = dbConnection;
var headshotStr:String = "SELECT headshot FROM ac_images WHERE id = " + idx;
headshotStatement.text = headshotStr;
headshotStatement.execute();
```
Error references the final line in this block. I found a few references online where people are unable to select a BLOB using AS3 that has had data inserted into it from an external program, which is my exact situation.
Exact error trace is:
```
RangeError: Error #2006: The supplied index is out of bounds.
at flash.data::SQLStatement/internalExecute()
at flash.data::SQLStatement/execute()
at edu.bu::DataManager/getHeadshotImageData()[omitted/DataManager.as:396]
at edu.bu::CustomStudentProfileEditorWindow/editStudent()[omitted/CustomStudentProfileEditorWindow.mxml:194]
at edu.bu::CustomStudentProfileEditorWindow/profileEditor_completeHandler()[omitted/CustomStudentProfileEditorWindow.mxml:37]
at edu.bu::CustomStudentProfileEditorWindow/___CustomStudentProfileEditorWindow_Window1_creationComplete()[omitted/CustomStudentProfileEditorWindow.mxml:9]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
```
Any ideas what could be wrong with the data that is causing AS3 to choke?
I've tried to insert the same data into a binary type field using SQLite Manager 3.5 for OS X with the same result. I'm working with a JPG, going to try other image formats, though I can't begin to guess which supplied index is out of bounds given that trying to jump to the definition just states that it's getting it from a SWC and I can't see. Grasping at straws before I distribute the data in a zip and decompress it on the fly, which I don't want to do.
For now, I've written a quick MXML Window that prompts for the images and inserts the data into the database. Would still love to know why another application can't store BLOB data in a way that SQLStatement understands. I'm essentially setting up a few buttons that prompt for file paths to the images I want in the database, reading them in with readBytes() to a ByteArray, and storing that into the SQLite db using SQLStatement. I am then able to read the image back without difficulty.
Here is an image of the table structure. Note, this same table is being used successfully when I have Flash do the database image insert, as opposed to some other tool which properly stores the data in the BLOB field for every other application but Flash...

| When trying to select a column of type BLOB, SQLStatement throws a RangeError #2006: The supplied index is out of bounds | CC BY-SA 2.5 | null | 2010-08-30T19:09:35.527 | 2012-06-18T21:35:02.883 | 2010-08-31T14:21:41.410 | 232,319 | 232,319 | [
"actionscript-3",
"sqlite",
"air",
"blob"
] |
3,603,481 | 1 | 3,603,885 | null | 7 | 1,975 | I'm currently using FindFirstFile, FindNextFile API to recursively iterate through directories for searching files based on a given criteria. I noticed that "dir /s" command gives better performance than my program. I'm tried checking out the events in process monitor and it looks like cmd.exe/dir command is directly querying the disk device driver. Is there any way I can achieve some thing similar with DeviceIOControl() ?. I'm very new to device drivers though not new to programming. Attaching procmon output for reference:

Regards,
| Is there a way to directly query the file system device driver for listing out the files in a directory? | CC BY-SA 2.5 | 0 | 2010-08-30T19:17:28.660 | 2010-09-02T15:41:42.137 | null | null | 194,595 | [
"windows",
"winapi",
"filesystems",
"device-driver",
"drivers"
] |
3,603,854 | 1 | 3,605,436 | null | 1 | 2,167 | I'm using jQuery UI Dialog for adding some news to my site. Every time I click `add news` button, the dialog should open with the text area. Actually, I'm using [ckeditor](http://ckeditor.com/) replacing the `textarea` and it happens that I can't type inside the text editor due to `focus` issue (at least I think this is the problem).
Check it out. As just as I click `add news` button the dialog start to open with its effect. Notice the yellow bordered `textarea` meaning that it's focused (using Chrome) while it's appearing.

[Click to zoom](https://i.stack.imgur.com/EaLbA.jpg)
Notice then that when the dialog finishes appearing, it isn't focused anymore and I'm having trouble because of this

[Click to zoom](https://i.stack.imgur.com/LcK2D.jpg)
Also, check my code [http://jsfiddle.net/pzHr2/](http://jsfiddle.net/pzHr2/)
| Why does my jQuery UI Dialog lose the focus when it finishes the open effect? | CC BY-SA 2.5 | null | 2010-08-30T20:08:48.743 | 2010-08-31T01:22:58.367 | null | null | 336,945 | [
"jquery",
"jquery-ui",
"ckeditor"
] |
3,604,324 | 1 | 3,604,810 | null | 2 | 2,921 | EDIT: [Click here for the code](http://users.vialink.com.br/jcastro/GUIBlah.tgz).
So I'm experimenting with interface building with MonoDevelop (version 2.4). I'm trying to get used to the Gtk concept of "containers within containers". I created a vbox with two... er... boxes, put a menu on the top box, and a table on the bottom one. I set the table to have two column and five rows. On the top four rows, I put a label in the left and an entry in the right. On the bottom right cell I put a button. It looks like this:

Here's the things I'm struggling with:
1) How do I get the table's columns NOT to be of equal width? Amusingly, when I added just the labels, and hadn't added the entry boxes yet, the left column used up only the space needed for the labels. Now it's 50/50 and it won't budge.
2) How do I get the labels to be right-aligned, so the final ":" in their texts gets nicely aligned and close to the entry boxes? I set the "Justify" property of the labels to "Right" and was seemingly ignored.
3) The action code for the "Open" and "Close" actions under the "File" menu consist on displaying a modal message box with an OK button. But pressing the OK button doesn't dismiss the message box, only closing the message box window does. The code is:
```
(new Gtk.MessageDialog(this, DialogFlags.Modal, MessageType.Info, ButtonsType.Ok,
"Open Action")).Show();
```
| Getting nice-looking widget sizing in MonoDevelop (Gtk#) | CC BY-SA 2.5 | 0 | 2010-08-30T21:23:46.093 | 2010-08-31T17:47:33.487 | 2010-08-31T17:47:33.487 | 110,800 | 110,800 | [
"c#",
"mono",
"monodevelop",
"gtk#",
"gui-designer"
] |
3,604,454 | 1 | null | null | 4 | 3,072 | I asked a question closely related to this awhile ago:
[Alternative way to notify the user of an error](https://stackoverflow.com/questions/2878043/alternative-way-to-notify-the-user-of-an-error)
In short, i was trying to find a quick and easy way to notify the user of errors without using popups.
Now i have implemented this using tooltip baloons. The problem is that even if i give it a general location, the little pointed part of the bubble changes position depending on the size of the message (see image attached). Normally, I would use SetToolTip() and assign it a control so that it always points to that control. However the control is a label or image in a statusbar.
```
private void ShowTooltipBalloon(string title, string msg)
{
if (this.InvokeRequired)
{
this.BeginInvoke(new EventHandler(delegate { ShowTooltipBalloon(title,msg); }));
}
else
{
ToolTip tt = new ToolTip();
tt.IsBalloon = true;
tt.ToolTipIcon = ToolTipIcon.Warning;
tt.ShowAlways = true;
tt.BackColor = Color.FromArgb(0xFF, 0xFF, 0x90);
tt.ToolTipTitle = title;
int x = this.Width - lblLeftTarget.Width - lblVersion.Width - toolStripStatusLabel8.Width - 10;
int y = this.Height - lblLeftConnectImg.Height - 60;
tt.Show(msg, this, x, y, 5000);
}
}
```
This is very much out of the scope of the requirements but my boss is a stickler for details, so in addition to solving this, i have to solve it fast. I need something relatively easy to implement that wont "rock the boat" of the current software which i am close to releasing.
That being said, of course i'll listen to any advice, whether it's implementable or not. At least i might learn something. 
*EDIT : It seems my image isn't showing. I don't know if it's just my computer. Oh well...
| Tooltip baloon display position (for error notification) | CC BY-SA 2.5 | 0 | 2010-08-30T21:43:06.673 | 2014-07-12T20:20:32.097 | 2017-05-23T10:32:46.530 | -1 | 242,074 | [
"c#",
".net",
"error-handling",
"tooltip"
] |
3,605,119 | 1 | 3,605,223 | null | 0 | 2,242 | i want to make my app publish on my wall, i can post without any problems, but i dont know how to popup
here is my code
```
$attachment = array(
'message' => 'Did a Test Post :',
'name' => "This is the title of my post",
'link' => "http://www.lydiadana.com.br",
'description' => htmlentities($linha['post_content']),
'picture'=> IMG_DIR . $file,
'auto_publish' => false,
'user_prompt_message' => 'Share your thoughts about RELL',
);
$facebook->api('me/feed', 'POST', $attachment);
```
i tried auto_publish, but without sucess, any idea ? i have attachaed a image, showing what i want.

| Showing a popup before posting in facebook wall | CC BY-SA 2.5 | null | 2010-08-31T00:03:38.927 | 2010-08-31T00:30:52.870 | null | null | 109,545 | [
"php",
"api",
"facebook"
] |
3,605,358 | 1 | null | null | 4 | 176 | I'm building an API that post a given message to different platforms (Twitter, FaceBook...).
The problem is that for each platform I may change the wrapper that allow me to post the message. For example, in C# I can post a message on twitter using the yedda API or the CsharpTwitt API, for FaceBook I'll use others APIs...
Hence, I have to be able to use different wrappers to post a message for each platform.

For now, this is the design I use, but it's clear that it will be too complicated if I add more APIs with more wrappers.
I think it's a common design issue and I'm wondering
1. Am I using the best approach to have a well designed API?
2. Otherwise, what is the best design for such a situation?
3. What design pattern is applicable here?
| What's the best design to follow for this API in this case? | CC BY-SA 2.5 | 0 | 2010-08-31T01:03:51.610 | 2013-10-19T14:43:27.363 | 2010-08-31T01:10:48.567 | 105,170 | 185,854 | [
"design-patterns",
"api",
"oop"
] |
3,605,627 | 1 | 3,605,696 | null | 0 | 156 | I create new "Window-Based" project in xCode and a subclass of UIViewController name Main View, colour MainView with blue. In My App Delegate i have method:
```
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after application launch
mainViewController = [[MainView alloc] init]; // mainView is a subclass of UIViewController and be declared in AppDelegate interface.
[window addSubview:mainViewController.view];
//[window addSubview:navController.view];
[window makeKeyAndVisible];
}
```
My MainView loaded into Window but it have clearance (image bellow). Anybody can help me to fix it :(

| Bug when create a ViewController by code! | CC BY-SA 2.5 | null | 2010-08-31T02:22:07.743 | 2010-08-31T02:47:49.410 | 2010-08-31T02:47:49.410 | 122,456 | 122,456 | [
"iphone",
"objective-c"
] |
3,605,755 | 1 | null | null | 0 | 82 | I made my program, and tested it in Command Prompt(by entering in the directory). Then I made a set up file, and put the setup file and my program in the same folder.
My setup file:
```
from distutils.core import setup
import py2exe
setup(console=['C:\Python26\test\testprogram.py'])
```
I went to run the setup program in command prompt(by entering in the directory and got the following error:

What am I doing wrong?
Also this program contains several pictures and modules, could this be linked to that?
| Help me with py2exe | CC BY-SA 2.5 | null | 2010-08-31T03:05:50.707 | 2010-08-31T03:25:35.770 | null | null | 433,417 | [
"python",
"exe",
"py2exe"
] |
3,606,043 | 1 | 3,606,843 | null | 2 | 2,101 | Greetings all,
I use MinGW,QT and CMake for my project.

As shown in the figure, my project has two modules.
1. libRinzoCore.DLL - a shared library which define some abstract classes and interfaces and some core functionality of the application.This module is used to implement dynamic Plugins (which are also shared libraries which automatically loaded by the application) .
2. Rinzo.exe - the main application.This uses "libRinzoCore" classes.
"libRinzoCore" mainly developed using QT objects and link against the QT library.
"Rinzo.exe" also uses QT library objects,some are not being used in "libRinzoCore".So I have to link QT Library and "libRinzoCore" with this executable.
I can compile "libRinzoCore" without problems and it generated two files "libRinzoCore.DLL" and "libRinzoCore.DLL.a"
But during compiling "Rinzo.exe" it gives the following output :
```
Linking CXX executable Rinzo.exe
Info: resolving IRzPlugin::staticMetaObject by linking to __imp___ZN9IRzPlugin16staticMetaObjectE (auto-import)
Info: resolving IRzViewerPlugin::staticMetaObject by linking to __imp___ZN15IRzViewerPlugin16staticMetaObjectE (auto-import)
Info: resolving IRzLayeringPlugin::staticMetaObject by linking to __imp___ZN17IRzLayeringPlugin16staticMetaObjectE (auto-import)
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols
from auto-imported DLLs.
[100%] Built target Rinzo
```
And when executing "Rinzo.exe" it crashes with the message (this is a translation from Japanese error message)
> " Application cannot performe
correctly (0xc0000005). Click [OK] to
cancel "
Here are my CMake files for
libRinzoCore :
[http://www.keepandshare.com/doc/2199086/rinzocore-txt-august-31-2010-12-10-pm-2k?da=y](http://www.keepandshare.com/doc/2199086/rinzocore-txt-august-31-2010-12-10-pm-2k?da=y)
Rinzo.exe :
[http://www.keepandshare.com/doc/2199085/rinzo-txt-august-31-2010-12-10-pm-5k?da=y](http://www.keepandshare.com/doc/2199085/rinzo-txt-august-31-2010-12-10-pm-5k?da=y)
It works fine,If I compile "libRinzoCore" as a static-library.
And works fine on Linux.
Any tips?
| C++ MinGW shared libraries problem (Windows only,works on Linux)? | CC BY-SA 2.5 | 0 | 2010-08-31T04:32:51.153 | 2010-08-31T07:19:55.743 | 2010-08-31T05:30:20.483 | 180,904 | 180,904 | [
"c++",
"qt",
"shared-libraries",
"mingw",
"cmake"
] |
3,606,061 | 1 | 3,609,201 | null | 2 | 145 | I have one simple login page, where I am applying some of the css code as follows :
```
div.loginheader {
width: 100%;
height: 25%;
position: relative;
text-align: center;
margin: 0 auto;
top: 6%;
left: 6%;
}
img.center {
display: block;
padding: 0px;
}
td.caption
{
margin-left: auto;
margin-right: auto;
text-align: center;
font-family: Arial,Georgia,Serif;
color: #ffffff;
font-size:24px;
}
```
With the following HTML Code :
```
<div class="loginheader">
<table width="90%">
<tr>
<td width="20%" class="caption">
<img class="center" src="abc.png">
</td>
<td width="80%" class="caption">
Test Text
</td>
</tr>
</table>
</div>
```
But using above code, it's working perfectly in all the brwoser except IE. In IE the the positions and margins are destroying. My Web page looks as this

in IE 7.
Any Help would be highly appreciated..
| CSS working in all browser but not in IE | CC BY-SA 2.5 | null | 2010-08-31T04:37:08.367 | 2010-08-31T12:52:34.150 | 2010-08-31T12:38:27.553 | 87,942 | 87,942 | [
"html",
"css"
] |
3,606,650 | 1 | null | null | 0 | 1,404 | How to use Kal calendar Api to draw calendar like this ?
If any one know how to do this please give a quick reply with code
or any info on this topic
source code of this API is here [http://github.com/klazuka/Kal](http://github.com/klazuka/Kal)
| How to use Kal calendar Api to draw calendar? | CC BY-SA 2.5 | null | 2010-08-31T06:55:44.087 | 2010-12-24T16:24:29.503 | null | null | 377,780 | [
"objective-c",
"xcode",
"ios4"
] |
3,606,853 | 1 | null | null | 1 | 1,716 | Please help me out here. I need to make a as shown in the sample pic for my . How to do it? Also I need to add along it as seen in the sample pic. and link it to another view to show some more details.please check links shown below.

[pic1](http://www.cellnxt.in/temp/smp.jpg)
| How to make List view for items in Android? | CC BY-SA 2.5 | null | 2010-08-31T07:21:53.027 | 2010-08-31T07:33:40.203 | 2010-08-31T07:28:52.710 | 24,054 | 436,765 | [
"android"
] |
3,606,864 | 1 | 3,607,421 | null | 6 | 6,747 | I want to be able to have a JPanel in a cell with a JButton that does some work when clicked.
I looked for howtos about Cell Editors, but all examples talk about replacing the cell with another component (e.g. replace an int with a JTextField etc.) My situation is a little different:
I have the following ADT
```
class MyClass {
public String title;
public String url;
public String path;
public int annotations;
}
```
I created a custom table cell model that has 1 column and the class for that column is MyClass. Then I created a cell renderer for that class that returns a JPanel as shown here:

As you can see, the JPanel contains a button. I want this button to launch a JFrame whenever clicked. Any ideas?
If you will suggest Cell Editor, please be a little more specific about how to do so. If possible, provide some pseudo-code.
Thank you.
P.S. I'm pretty sure the title of this question needs some work. ;)
| JTable: Buttons in Custom Panel in Cell | CC BY-SA 2.5 | 0 | 2010-08-31T07:23:08.310 | 2010-12-27T00:30:11.467 | null | null | 2,644 | [
"java",
"jtable",
"jpanel",
"jbutton"
] |
3,606,879 | 1 | 3,614,065 | null | 7 | 2,012 | I have generated the following plot using the R code that follows it:

```
ggplot(lengths, aes(length, fill = library)) + geom_density(alpha = 0.2) + coord_cartesian(xlim = c(0, 60000))
```
Now I would like to make the plot a bit prettier:
1. Make the x-axis show length every 5000 units (instead of every 20000)
2. Add x-values on top of the three peaks (approx 3000,5000 and 35000).
How can I do that?
in response to James:

| How to make ggplot2 plots prettier? | CC BY-SA 2.5 | 0 | 2010-08-31T07:26:25.900 | 2015-02-27T08:39:14.670 | 2015-02-27T08:39:14.670 | 3,687,447 | 377,031 | [
"r",
"plot",
"ggplot2"
] |
3,607,322 | 1 | null | null | 1 | 1,274 | In my android application,i want to apply OnPause,OnPlay,Next and previous,volume increase and decrease events on mediaplayer.

In the above image i just want to know how can i perform next,previous,play,pause events.
Could anyone please let me know where i can find these?
Please send me your valuable suggestions.
Thanks in advance:)
| Access next,previous,play and pause of mediaplayer in android | CC BY-SA 2.5 | null | 2010-08-31T08:31:36.220 | 2010-12-13T15:18:52.193 | 2010-09-01T05:31:58.787 | 420,261 | 420,261 | [
"android"
] |
3,607,612 | 1 | null | null | 2 | 960 | By default, a Google Map infowindow has really nasty style, such that the inner content overlaps the close button when a scrollbar is present:

Google, by their infinite wisdom, don't do anything as nice as using classes on their elements, so that makes styling the info window very difficult. Does anyone know how I can fix this overlap problem?
| How can I fix style problems with a google map's info window? | CC BY-SA 2.5 | null | 2010-08-31T09:15:18.223 | 2012-09-11T18:44:19.610 | null | null | 5,058 | [
"css",
"google-maps"
] |
3,607,705 | 1 | 3,607,726 | null | 2 | 4,435 | I am trying to create buttons at runtime. My Question is that How should I add an Event to each of the buttons at runtime mode also?
For example:
```
Button btn;
int i =0;
int j =0;
List<Button> listBTN = new List<Button>();
private void button1_Click(object sender, EventArgs e)
{
btn = new Button();
btn.Location = new Point(60 + i, 90);
btn.Size = new Size(50, 50);
btn.Name = "BTN";
listBTN.Add(btn);
i = i + 50;
foreach(Button b in listBTN){
this.Controls.AddRange(new Button[] {b});
}
}
```

| How to Add an event to a list of button at runtime | CC BY-SA 2.5 | null | 2010-08-31T09:25:47.703 | 2010-08-31T09:39:11.083 | null | null | 416,801 | [
"c#",
"events",
"button"
] |
3,607,718 | 1 | 3,607,843 | null | 9 | 4,361 | In VIM I've got 4 windows opened and a NERD tree like this:

So, whenever I try to open the file from NERD, it's opened in first buffer (topleft pos). Sometimes in other buffers.
Is there a way to open a file in bottom right position ? Mb there are workarounds ?
Maybe I can force NERDtree to open file in last active window ? At the moment, it doesn't work this way :(
UPD: It looks like the problem is in hidden buffers.
When the buffer was opened in one window, and then replaced by another - if you try to open the very first in another window, you'll get it opened in the window it was opened in the very first time.
| Open file from NERDtree in specific window (or last active) | CC BY-SA 2.5 | 0 | 2010-08-31T09:27:23.390 | 2010-08-31T10:10:19.067 | 2010-08-31T10:10:19.067 | 86,698 | 86,698 | [
"vim",
"nerdtree"
] |
3,607,784 | 1 | 3,609,105 | null | 1 | 297 | I am storing transactions in a table. These transactions have an ID which relates to their parent node in a hierarchy tree. An example of my tree is shown in the image below. I need to allow an end user to retrieve the transaction and group them however they want as they are then written to a file based on the grouping. In the image below the devices (IM001-1 etc) create the transactions. In the live version the tree will be a lot larger and could have further levels for town and smaller regions etc. Now to the problem. Let’s say that a user wants all the transactions from the “UK” devices and they want them grouped by the country node (so “UK_North” and “UK_South”). The result should be a grouped list which in this example would contain two items. The first item would contain all the transactions from devices “IM001-1” and “IM001-2” and the second item would have the transactions for devices “IM002-1” and “IM002-2”. What I have done so far is to get a list of device for each parent node. So I have a grouped list where each item contains Ids of all its child devices. What I’d like to do is use Linq to look at all my transactions with their ID’s and create a grouped list where the grouping checks to see which parent owns it. This all sounds rather complex so if it’s not clear I can provide additional details if required. Am I approaching this problem the right way ? As there could be a lot of transactions I didn’t want to have to do a lot of tree navigation for every transaction because of the performance hit.

The transactions are held in a list of transaction:
```
List<Transaction> transactions
```
There is a property on each transaction that exposes its “DeviceId”
I then have a grouped list which is defined as the following when I hover the mouse over the “var”:
```
IEnumerable<IGrouping<String,Device>>
```
This list is called “groupedDevices”. Each item in the list represents a parent node (for example UK_North) which contains a list of all the available devices under that node. Each device has a “DeviceId” property.
What the Linq statement needs to do is look at the transactions list and see which parent it belongs to by using the “groupedDevices” list and then grouping by that.
| Linq grouping based on other groups | CC BY-SA 2.5 | null | 2010-08-31T09:37:32.787 | 2010-08-31T17:48:51.060 | 2010-08-31T14:27:48.217 | 192,963 | 192,963 | [
"c#",
"linq",
"group-by"
] |
3,608,202 | 1 | 3,608,281 | null | 1 | 12,612 | i want to write a page that will traverse a specified directory.... and get all the files in that directory...
in my case the directory will only contain images and display the images with their links...
something like this

p.s. the directory will not be user input.. it will be same directory always...
| PHP - Code to traverse a directory and get all the files(images) | CC BY-SA 2.5 | 0 | 2010-08-31T10:40:10.860 | 2014-03-17T20:50:28.837 | null | null | 158,455 | [
"php",
"directory",
"traversal",
"getfiles"
] |
3,608,302 | 1 | null | null | 4 | 154 | I of course came across [this](http://help.lighthouseapp.com/discussions/tips-tricks/25-integrating-eclipse-mylyn-with-lighthouse) but without any success, I used the pattern from the screenshot (and comments) but I'm still getting empty task list (see attachment). I examined the pattern and compared it to Lighthouse tickets.xml, and it all seems correct.

| How can I connect Lighthouse tickets to Eclipse Mylyn? | CC BY-SA 2.5 | null | 2010-08-31T10:56:54.467 | 2013-01-25T03:32:04.503 | null | null | 104,337 | [
"eclipse",
"mylyn",
"lighthouse"
] |
3,608,357 | 1 | 3,608,376 | null | 7 | 2,003 | How to optimize this code?
ParentDoglist, ChildDoglistis - Ilist. dogListBox - List Box
```
foreach (Dog ParentDog in ParentDoglist)
{
foreach (Dog ChildDog in ChildDoglist)
{
if(ParentDog.StatusID==ChildDog.StatusID)
dogListBox.Items.Add(new ListItem(ParentDog.Name, ParentDog.Key));
}
}
```
ParentDogTypeList, DogTypeList were renamed as ParentDoglist,ChildDoglist, where both are not related with each other
```
if(ParentDog.Key==ChildDog.Key)
```
was changed to
```
if(ParentDog.StatusID==ChildDog.StatusID)
```
I need to populate a drop down which would reciprocate a Parent Child relationship. There are certain dogs which may not have any child and that would be called as leafdog. And I also need to show the number of dogs in that particular category
DD would look like
```
Parent1
Child11 (10)
Child12 (12)
Parent2
Child21 (23)
Child22 (20)
Leaf1 (20)
Leaf2 (34)
```
So, the ParentDoglist would bring all the Child and leaf elements along with the count and ChildDogList would have the Parent and leaf ID's hence I would be able to populate the respective Child to their Parent and bind the leaf directly.
The Parent, Child and Leaf Dog would be maintain in one table and differentiated by statusid and count would be in another table.
No parent would have any count, only child and leaf would have count

| Remove foreach - c# code-optimization | CC BY-SA 2.5 | 0 | 2010-08-31T11:04:50.410 | 2013-05-18T06:12:43.933 | 2010-08-31T12:12:45.443 | 2,922,388 | 2,922,388 | [
"c#",
"foreach",
"ilist",
"optimization"
] |
3,608,702 | 1 | null | null | 1 | 1,595 | In my application I have taken a table view and displaying some NSString objects within it. User can also edit any row within it.
When I do not change color of NSTextFieldCell in NSTableColumn in IB, it shows default display property of table view ie. when a row is selected, text of selected row starts appearing white, but when I change it to some other color, say blue, then it starts appearing like this:

To resolve this problem I tried to set text color of cell in selected row as white in table delegate method: tableView:willDisplayCell:forTableColumn:row:, but it caused another problem- text remained white when edited, thus it became difficult for user to identify text entered:

Can anyone suggest me some suitable solution to resolve it?
Thanks,
Miraaj
| Showing text in selected row in NSTableView as white | CC BY-SA 2.5 | null | 2010-08-31T11:53:32.503 | 2010-08-31T13:08:23.503 | null | null | 217,586 | [
"cocoa",
"nstableview"
] |
3,608,735 | 1 | 3,868,566 | null | 4 | 14,336 | I need to know how to change textarea input, for example I want to add my own arrows and bars.
I know we can change colors in CSS but I want to add my own pictures just like in this picture

I want it in textarea input where user can type. Can we do that??
jScrollPane is not working with textarea input, check this image

| How to change scrollbar in textarea input? | CC BY-SA 2.5 | 0 | 2010-08-31T11:57:30.980 | 2017-09-04T19:57:06.427 | 2010-08-31T12:45:26.910 | 308,745 | 308,745 | [
"html",
"css"
] |
3,608,977 | 1 | 3,609,205 | null | 4 | 3,103 | I have an equation for a parabolic curve intersecting a specified point, in my case where the user clicked on a graph.
```
// this would typically be mouse coords on the graph
var _target:Point = new Point(100, 50);
public static function plot(x:Number, target:Point):Number{
return (x * x) / target.x * (target.y / target.x);
}
```
This gives a graph such as this:

I also have a series of line segments defined by start and end coordinates:
```
startX:Number, startY:Number, endX:Number, endY:Number
```
I need to find if and where this curve intersects these segments (A):

If it's any help, `startX` is always `< endX`
I get the feeling there's a fairly straight forward way to do this, but I don't really know what to search for, nor am I very well versed in "proper" math, so actual code examples would be very much appreciated.
UPDATE:
I've got the intersection working, but my solution gives me the coordinate for the wrong side of the y-axis.
Replacing my target coords with A and B respectively, gives this equation for the plot:
```
(x * x) / A * (B/A)
// this simplifies down to:
(B * x * x) / (A * A)
// which i am the equating to the line's equation
(B * x * x) / (A * A) = m * x + b
// i run this through wolfram alpha (because i have no idea what i'm doing) and get:
(A * A * m - A * Math.sqrt(A * A * m * m + 4 * b * B)) / (2 * B)
```
This a correct answer, but I want the second possible variation.
I've managed to correct this by multiplying m with -1 before the calculation and doing the same with the x value the last calculation returns, but that feels like a hack.
SOLUTION:
```
public static function intersectsSegment(targetX:Number, targetY:Number, startX:Number, startY:Number, endX:Number, endY:Number):Point {
// slope of the line
var m:Number = (endY - startY) / (endX - startX);
// where the line intersects the y-axis
var b:Number = startY - startX * m;
// solve the two variatons of the equation, we may need both
var ix1:Number = solve(targetX, targetY, m, b);
var ix2:Number = solveInverse(targetX, targetY, m, b);
var intersection1:Point;
var intersection2:Point;
// if the intersection is outside the line segment startX/endX it's discarded
if (ix1 > startX && ix1 < endX) intersection1 = new Point(ix1, plot(ix1, targetX, targetY));
if (ix2 > startX && ix2 < endX) intersection2 = new Point(ix2, plot(ix2, targetX, targetY));
// somewhat fiddly code to return the smallest set intersection
if (intersection1 && intersection2) {
// return the intersection with the smaller x value
return intersection1.x < intersection2.x ? intersection1 : intersection2;
} else if (intersection1) {
return intersection1;
}
// this effectively means that we return intersection2 or if that's unset, null
return intersection2;
}
private static function solve(A:Number, B:Number, m:Number, b:Number):Number {
return (m + Math.sqrt(4 * (B / (A * A)) * b + m * m)) / (2 * (B / (A * A)));
}
private static function solveInverse(A:Number, B:Number, m:Number, b:Number):Number {
return (m - Math.sqrt(4 * (B / (A * A)) * b + m * m)) / (2 * (B / (A * A)));
}
public static function plot(x:Number, targetX:Number, targetY:Number):Number{
return (targetY * x * x) / (targetX * targetX);
}
```
| Intersection of parabolic curve and line segment | CC BY-SA 2.5 | null | 2010-08-31T12:25:42.633 | 2010-08-31T20:16:13.283 | 2010-08-31T20:16:13.283 | 914 | 914 | [
"actionscript-3",
"language-agnostic",
"math",
"geometry",
"curves"
] |
3,609,049 | 1 | 3,611,838 | null | 5 | 4,229 | for a geo-based online game I'm looking for an algorithm which finds the shortest distance between a specified point and a known path connected by x/y-coordinates, so that I can kill all redundant points/nodes. A link or keyword for this algorithm would help me a lot! thanks for reading
For better understanding:

| Shortest distance between point and path | CC BY-SA 2.5 | 0 | 2010-08-31T12:33:19.323 | 2016-02-23T17:42:10.173 | 2010-08-31T12:57:59.700 | null | null | [
"path",
"system",
"distance",
"point",
"coordinate"
] |
3,609,623 | 1 | 3,609,756 | null | 0 | 426 | I have a page that displays details of a program, I want to set an advanced segment in google analytics to only return pages that contain
```
/program/view/path_to_program
```
so only program detail pages display, the third segment pages are the only pages I want to display in the google analytics results.
I know this will take some sort of regular expression and I am not very familiar with it.

| google analytics regular expression advanced segment | CC BY-SA 2.5 | null | 2010-08-31T13:49:16.503 | 2010-08-31T16:19:20.210 | 2010-08-31T13:54:25.530 | 396,458 | 26,130 | [
"regex",
"google-analytics"
] |
3,609,846 | 1 | 3,609,979 | null | 2 | 905 | A picture does more justice so I'll start with that.

So in my Relation_Type table I have several different Types (Owner, Reviewer, Approver, etc).
In my Relation_Status table I have different status' for some of the types:
> Reviwer: (Pending Feedback, Feedback Received)
Approver: (Pending Decision, Approved, Denied)
My problem is that I don't know how to enforce the relationship that says .
Right now the way this is modeled a relation type of Feedback can have any status which is a logical inconsistency. Also, not all Types have a Status.
So any tips on how to model this so it enforces the dependency ?
Thanks, Raul
| Database Model Dependent Relationship | CC BY-SA 2.5 | null | 2010-08-31T14:12:48.340 | 2010-08-31T23:14:24.960 | null | null | 182,703 | [
"sql-server",
"database",
"database-design"
] |
3,610,043 | 1 | 3,610,994 | null | 0 | 242 | I have created scroll view and set the buttons in the scroll view. The buttons are scrolling horizontally. I created table view as subview for view controller. On clicking the buttons, the datas are displaying in the table view from RSS feeds using XML Parsing. SO changing the datas in the table view which depends the button clicking. When i changed to select the next button, the parsing will be started and displayed the datas. so it takes some times. In the mean time i want to display some view or disable the view(that means,on that parsing time the view is disable or user cant do anything like freeze with activity indicator). On changing the each buttons, the action will be happened. I referred some tutorials, but i cant get any idea? Some people told me to use synchronous method to solved the problem. But i don't have any idea about it. Please guide me and help me out.Give me some sample apps and Links.
see my below image,

Thanks in Advance!
Regards,
Pugal
| On clicking the button to changed the view / Is need to use synchronous method in iPhone? | CC BY-SA 2.5 | 0 | 2010-08-31T14:35:48.237 | 2010-08-31T16:14:50.763 | 2010-08-31T14:41:40.517 | 249,916 | 249,916 | [
"iphone",
"uibutton",
"synchronous"
] |
3,610,236 | 1 | null | null | 2 | 490 | I'd like to show some client that Silverlight can be used as a technology for BL apps. They were shocked that some firm waste the money for so crappy looking technology (it's about MS)...
I just presented a screen with a few TextBoxes and some other controls...
Any size of the font in pixels or pts I use (or TextHintingMode), with embedding the font as a resource (or not) - the result is all the time very poor.
Is it possible that after four versions of Silverlight Microsoft doesn't know how to render some text looking readable?
Or maybe I just don't know how to prepare TextBox with sharp and clear Tahoma font.
Any ideas?
Magnified sample from client's TextBox is below:

| How to avoid Silverlight ugly fonts? | CC BY-SA 2.5 | null | 2010-08-31T14:56:58.057 | 2010-08-31T15:17:40.293 | null | null | 103,514 | [
"silverlight"
] |
3,610,658 | 1 | 3,610,740 | null | 0 | 3,231 | Hey guys, I was wondering if you would be able to help me use libcurl within Visual Studio to resolve the errors in the image below:


| How do I use libcurl in Visual C++ 2010? | CC BY-SA 2.5 | null | 2010-08-31T15:37:40.810 | 2012-06-15T16:45:50.853 | 2011-12-21T20:13:02.950 | 3,043 | 216,314 | [
"visual-studio-2010",
"visual-c++",
"libcurl"
] |
3,611,210 | 1 | 3,611,691 | null | 0 | 1,857 | I am trying to post a request to the google authSub for youtube. I use jQuery for AJAX posts etc. When I make the POST I get a 405 error: "405 Method Not Allowed".
Here is my js:
```
$.ajax({
type: 'POST',
url: "https://www.google.com/accounts/AuthSubRequest",
beforeSend: function(xhr){
xhr.setRequestHeader('X-GData-Key', 'key="' + ytKey + '"');
},
success: function(oData){
//alert(oData);
},
scope: 'http://gdata.youtube.com',
alt: 'json',
next: 'http://' + globalBrand + '/sitecreator/view.do',
session: 1
});
```
The page I am using in the API for this is [here](http://code.google.com/apis/youtube/2.0/developers_guide_protocol_authsub.html).
Here is what the error looks like:

| Posting to YouTube API with jQuery | CC BY-SA 2.5 | null | 2010-08-31T16:44:20.243 | 2010-12-09T17:33:18.563 | 2010-08-31T17:01:22.643 | 358,834 | 358,834 | [
"javascript",
"ajax",
"jquery",
"youtube-api"
] |
3,611,379 | 1 | 3,612,154 | null | 9 | 52,586 | how to disable the scroll bars of the page.
and disable this button.

| How can I disable the scroll bars of a page? | CC BY-SA 2.5 | 0 | 2010-08-31T17:02:28.720 | 2022-05-05T11:44:03.670 | 2013-01-30T08:44:23.553 | 1,032,370 | 423,903 | [
"javascript",
"jquery",
"css",
"dom",
"scroll"
] |
3,611,984 | 1 | 3,612,055 | null | 0 | 1,059 | I am wanting to set the alpha of the titleView in my UINavigationController. Here is the code for this class:
```
#import "FAQNavigationController.h"
@implementation FAQNavigationController
/*
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
}
return self;
}
*/
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
self.navigationItem.titleView.alpha = 0.5;
[super viewDidLoad];
}
/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[super dealloc];
}
@end
```
Also, here is a screenshot of that result: As you can see the alpha hasn't changed.

Any ideas? Am I placing this in the wrong place?
| setAlpha in UINavigationController | CC BY-SA 2.5 | 0 | 2010-08-31T18:21:40.933 | 2010-08-31T18:31:09.157 | 2010-08-31T18:27:22.480 | 277,757 | 277,757 | [
"objective-c",
"uinavigationcontroller",
"alpha"
] |
3,612,047 | 1 | null | null | 0 | 880 | I'm currently trying to write an application with a progress indicator in C# using WPF:
```
<Path Canvas.Left="15" Canvas.Top="50" Stroke="Red" StrokeThickness="6" Data=" M 700,100 L 620,100 C 620,100 600,100 600,80 L 600,50 C 600,50 600,30 580,30 L 50,30 L 50,340 L 580,340 C 580,340 600,340 600,320 L 600,290 C 600,290 600,270 620,270 L 700,270" Name="Progress" StrokeDashCap="Flat" StrokeEndLineCap="Round" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeMiterLimit="30">
```

[http://img839.imageshack.us/my.php?image=20100831180406.png](http://img839.imageshack.us/my.php?image=20100831180406.png)
So far the indicator is finished. However I don't have any possibility to lower the length of the indicator yet. I could redraw the indicator using other coordinates but that would be kind of complicated (think about the rounded parts). Also I can't overlay it with white color as it must be transparent due to a background image.
Does anyone have an idea on how to achieve what I want? Or point me to another possible solution?
Best greetings,
Jonas
| WPF: Creating dynamic progress indicator | CC BY-SA 3.0 | null | 2010-08-31T18:29:51.873 | 2011-11-29T05:00:40.223 | 2011-11-29T05:00:40.223 | 234,976 | 436,257 | [
"c#",
"wpf",
"dynamic",
"progress",
"indicator"
] |
3,612,375 | 1 | null | null | 0 | 483 | I'm wondering if it is possible to start my app with all my tabs in the "up" state and show a "landing" view to the user. Kind of like a welcome/quick start. When they select one of the tabs, it switches views as normal.
Will you point me in the right direction?
Kind of like this:

| UITabBarController Initial View? | CC BY-SA 2.5 | null | 2010-08-31T19:15:34.050 | 2010-09-01T00:28:59.463 | 2010-08-31T19:26:23.990 | 277,757 | 277,757 | [
"iphone",
"objective-c",
"uinavigationcontroller",
"uitabbar"
] |
3,612,977 | 1 | 3,613,057 | null | 1 | 175 | I have a setup like so on a webpage:

Clicking on `Add Filter` adds a new entry and `Remove` will remove the line next to it.
The code for a single line is as follows:
```
<tr>
<td><select id="Column1">
<option value="0"></option>
<option value="1">Value a</option>
<option value="2">Value b</option>
</select></td>
<td><select id="Condition1">
<option value="0"></option>
<option value="1">IS EQUAL TO</option>
<option value="2">IS NOT EQUAL TO</option>
<option value="3">IS LIKE</option>
<option value="4">IS NOT LIKE</option>
<option value="5">IS LESS THAN</option>
<option value="6">IS LESS THAN OR EQUAL TO</option>
<option value="7">IS GREATER THAN</option>
<option value="8">IS GREATER THAN OR EQUAL TO</option>
</select></td>
<td><input type="text" id="Values1" /></td>
<td><input type="radio" name="AndOr1" id="And1" value="1">AND</input>
<input type="radio" name="AndOr1" id="Or1" value="2">OR</input>
<span class="RemoveFilter">Remove</span></td>
</tr>
```
When the line is duplicated the numbers in the IDs increment by one. The whole table has an ID of `Filters` so what I would like to know is how do I loop through the `tr` lines so that I can grab the values/parameters and send them back to the server? There could potentially be an infinite number of filters selected by the user. (Although this is not needed in this context)
| How do I interact with elements that are created dynamically? | CC BY-SA 2.5 | null | 2010-08-31T20:31:45.250 | 2010-08-31T21:08:31.780 | null | null | 97,390 | [
"jquery"
] |
3,613,017 | 1 | 3,613,192 | null | 0 | 2,850 | I have dropdown menu item ("pin this site") that i need to hide it or hide menu item
itself ("My Network").

When I saw viewsource on page, I got below code.
```
<a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3
ms-topnavselected zz1_TopNavigationMenu_9" href="http://mynetworkqa.spe.org"
style="border-style:none;font-size:1em;">My Network</a>
<a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6"
href="javascript:__doPostBack(,
'ctl00$PlaceHolderTopNavBar$PlaceHolderHorizontalNav$topSiteMap''Pin')"
style="border-style:none;font-size:1em;">Pin this site</a>
```
How can I hide menu item?
| Hide menu item or dropdown menu item? | CC BY-SA 2.5 | null | 2010-08-31T20:36:49.793 | 2010-08-31T20:59:43.903 | null | null | 158,008 | [
"javascript",
"asp.net",
"jquery"
] |
3,613,472 | 1 | 3,613,710 | null | 3 | 2,680 | To make my explanation shorter, I've made this "mockup" of what I'm trying to achieve.
I'd like to create a reusable header, footer and a generic viewgroup that I can fill with whatever content is required. A ListActivity, GridView... etc.

I've tried a few different approaches thus far with out any luck whatsoever. My first attempt was to write three basic views. A RelativeLayout that would act as a container. I used to add the header (worked), wrote the GridView (worked) and when trying to attach the footer with include it would never anchor at the bottom of the screen no matter which gravity I was using.
I'm currently attempting to go quite simple to learn android's view system. So, my first baby step. Get a GridView working with images pulled from an Adapter. (Essentially the 'Hello GridViews' demo from the android site - done, works)

Next baby step. Try and add a static header above the GridView... catastrophe. I feel like I'm missing an important stepping stone to get this working, any hints in the right direction would be appreciated. I don't quite understand why the LinearLayout containing the Button is pushing the GridView off the screen (it's in the HiearchyViewer) when the height is only "wrap_content" which should be "44dip".

```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<Button
android:layout_width="fill_parent"
android:layout_height="44dip"
android:text="test"
/>
</LinearLayout>
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnWidth="112dip"
android:numColumns="auto_fit"
android:verticalSpacing="0dp"
android:horizontalSpacing="0dp"
android:stretchMode="columnWidth"
android:gravity="center"
/>
</LinearLayout>
```
// edit, fixed xml.
: Here's the solution I'm using now. Each activity gets its own view which the activity inflates. The "reusable" views are included with
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<include layout="@layout/titlebar" />
<ListView
android:id="@+id/standingsListView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:background="#FFF"
/>
<include layout="@layout/ad" />
</LinearLayout>
```
| Nested Android Views, static header view | CC BY-SA 2.5 | 0 | 2010-08-31T21:46:33.880 | 2011-09-30T06:54:04.983 | 2010-10-25T20:15:29.507 | 338,382 | 338,382 | [
"android"
] |
3,613,646 | 1 | 3,613,756 | null | 2 | 295 | I'm trying to make something that looks like this, but I don't know how to approach it.

I have a thread that updates an object close to real time telling me three things: numberPockets (5), drawerPosition (light yellow), drawerTarget (dark yellow). The height and width of all the trays is fixed, so if more pockets were introduced the pocket size would need to shrink.
I also need to know which pocket is clicked so I know to go to that position and to also update the colors. I was thinking about using some sort of modified progress bar but I don't know the click location of it or how to overlay some sort of grid to display the different pockets. I also considered using a listbox, but fell flat trying to think of an implementation. Some direction would be appreciated.
| Create clickable custom graphic in WPF | CC BY-SA 2.5 | 0 | 2010-08-31T22:18:34.200 | 2010-08-31T22:45:14.233 | 2010-08-31T22:20:19.320 | 33,225 | 314,087 | [
"c#",
"wpf"
] |
3,614,257 | 1 | 3,614,311 | null | 0 | 380 | As you can see, the `schema.Elements` returns three elements one of whom is an EntityContainer element.
But when I try to search thru the Elements overload specifying the "EntityContainer" (`schema.<EntityContainer>`) it doesn't retrieve anything.

| XElement.Elements(XName name) doesn't return a name that exists in XElement.Elements() | CC BY-SA 2.5 | null | 2010-09-01T00:37:41.210 | 2011-10-07T22:44:11.470 | 2011-10-07T22:44:11.470 | 390,278 | 75,500 | [
"linq-to-xml",
"xelement"
] |
3,614,690 | 1 | 5,208,282 | null | 15 | 23,884 | I am working with a database hosted at GoDaddy using Microsoft SQL Server Management Studio (version 10, for SQL Server 2008).
I am getting this message:
See Object Explorer Details for objects in this folder

probably because they have more than 2500 databases there.
I can still access everything from the Object Explorer Details, but it's a pain when you have to do it everyday.
Does anyone know any way to get the database I am working on to appear in the Object Explorer on the left?
| SQL Server Management Studio: See Object Explorer Details for objects in this folder | CC BY-SA 2.5 | 0 | 2010-09-01T02:40:44.253 | 2016-08-11T17:28:38.567 | 2016-08-11T17:28:38.567 | 113,632 | 36,036 | [
"ssms"
] |
3,615,034 | 1 | null | null | 0 | 171 | I'm trying to set the background color on a cell. It works fine in iOS 4 on a 3GS and in the sim, but when I test in 3.2 I get a background on the text label that I can't get rid of.

I've tried to set the opacity and background of the label, detail label, content view, and accessory views manually and had no success. I even resorted to the following to make sure I "got everything" (though I don't know what else there would be...).
```
void setBackgroundColor (UIView *view, UIColor *color) {
view.opaque = NO;
view.backgroundColor = color;
for (UIView *subview in [view subviews]) {
setBackgroundColor(subview, color);
}
}
...
setBackgroundColor(cell, [UIColor blueColor]);
```
So, what could cause this on the iPad but not on the iPhone?
| Why is there a background on a table cell's text, but only on the iPad? | CC BY-SA 2.5 | null | 2010-09-01T04:23:24.133 | 2010-09-01T14:16:03.993 | 2010-09-01T13:37:56.410 | 108,928 | 108,928 | [
"ipad",
"uitableview",
"ios"
] |
3,615,140 | 1 | null | null | 5 | 7,699 | As you in following android album widget images placement is from middle of the gallery i want to start image placement from beginning of the album.

| android gallery image position problem | CC BY-SA 2.5 | 0 | 2010-09-01T04:59:58.510 | 2012-03-13T14:15:55.663 | null | null | 216,431 | [
"android",
"position",
"gallery"
] |
3,615,581 | 1 | 3,615,618 | null | 0 | 243 | In my android app when the no of items in the list is small the footer sticks to end of the list like the one shown below.

but not to the end of screen.
Is there any way that i can stick it to the bottom of the screen.
I am using a seperate footer.xml and am calling it using Inflator service.
Please share your valuable suggestions.
Thanks in advance:)
| footer View issue in android | CC BY-SA 2.5 | null | 2010-09-01T06:41:00.810 | 2010-09-01T06:48:59.540 | null | null | 420,261 | [
"android"
] |
3,615,754 | 1 | 3,956,578 | null | 0 | 1,165 | I've created a simple asp.net application to open a site and display the title of the corresponding web. But i'm getting FileNotFoundException while trying to open the site. The same code works perfectly when i run it in a console app.
My spec
Windows Server 2008 R2 x64,
SharePoint 2007 x64,
Visual Studio 2005
My target for the asp.net app is set to 'Any CPU'.
As far as permissions is considered i've checked that the current identity using under which VS2005 hosts the asp.net app is having full rights. In fact i've used the same identity for app pools in IIS.


Any ideas?
```
using (SPSite site = new SPSite("http://dev01/"))
{
using (SPWeb web = site.OpenWeb())
{
Response.Write(web.Title);
}
}
```
| Filenotfound exception while opening an SPSite object - x64 | CC BY-SA 2.5 | null | 2010-09-01T07:11:54.017 | 2010-10-18T04:15:37.947 | 2010-09-01T11:19:29.753 | 250,524 | 250,524 | [
"sharepoint",
"sharepoint-2007",
"64-bit",
"wss"
] |
3,615,934 | 1 | null | null | 3 | 2,429 | I use Java Web Start. The file is on http server, that needs name and password (it's windows server). What the Java Web start does is this (with user and IP redacted):

The same on MS Windows client. There is this "Save this password in your password list" option, that does nothing at all (on both Mac OS and Windows), when running this java web start app again, it wants the password again.
Is it a bug in JWS? Or what is going on exactly?
| How to persuade Java Web Start to actually remember password? | CC BY-SA 2.5 | 0 | 2010-09-01T07:39:03.907 | 2013-10-11T04:03:08.840 | null | null | 101,152 | [
"java-web-start"
] |
3,616,108 | 1 | 15,051,834 | null | 0 | 502 |
I'm having a few issues with the [jQuery UI Resize](http://jqueryui.com/demos/resizable/) loosing the border on the textarea I'm resizing (see images). Can you help?


[http://i.stack.imgur.com/TyR43.png](https://i.stack.imgur.com/TyR43.png)

| jQuery resize losing border | CC BY-SA 2.5 | null | 2010-09-01T08:09:17.743 | 2013-02-24T12:43:42.777 | 2010-09-01T08:40:06.447 | 219,999 | 219,999 | [
"jquery",
"css",
"resize",
"border"
] |
3,616,472 | 1 | 3,616,564 | null | 0 | 76 | On this page it generates a Excel sheet and allows user to download that.
But as shown below it does not work properly on IE (both 7 & 8)
this works fine with Firefox, chrome and safari.
Is there any settings we can do on both client side or Server side.

[image location](http://lh4.ggpht.com/_MAQugvYJZu4/TH4YhbxA8bI/AAAAAAAAAXA/NZBKN5uYjNg/s640/IE%20issue.jpg)
Thank you.
| Error message comes ON IE when try to download file | CC BY-SA 3.0 | null | 2010-09-01T09:04:47.803 | 2011-10-18T02:21:16.227 | 2011-10-18T02:21:16.227 | 709,619 | 436,775 | [
".net",
"internet-explorer",
"excel",
"model-view-controller"
] |
3,616,548 | 1 | null | null | 1 | 2,165 | Hello all this is the page that i currently building:

When click Submit, I get the text value in the current row and submitted via jquery ajax. There is no problem for me, but when is I test in another pc in the network there are error message appear (via json). Something like the annual leave and sick leave is undefined.
Example of error in other pc that i tested:

This is the code that i use:
```
function popUpReasonApplyLeave(){
$('a.submit').bind('click', function(e) {
e.preventDefault();
//get the tr row id you have clicked
var trid = $(this).closest('tr').attr('id');
$('#pop_up_apply_leaveReason').show();
submitReason(trid);
//when submit call the ajax function here
});
}
```
The data in the ajax function
```
data : {
idstaff : trid,
annualleave : $('#'+trid+' input#annualleave').val(),
sickleave : $('#'+trid+' input#sickleave').val(),
reason : $('#reason').val(),
}
```
The html table code
```
<?php foreach($list as $value) {?>
<tr id='staffID_<?php echo $value['IDSTAFFTABLE']; ?>'>
<td><?php echo $value['FIRSTNAME']; ?> <?php echo $value['LASTNAME']; ?></td>
<td><?php echo $value['POSITIONNAME']; ?><input type="hidden" id="idstaff" name="idstaff" value="<?php echo $value['IDSTAFFTABLE']; ?>" /></td>
<td><input type="text" name="annualleave" class="annualleave" value="<?php echo $value['ANNUALLEAVEBALANCE']; ?>" id="annualleave"/></td>
<td><input type="text" name="sickleave" class="sickleave" value="<?php echo $value['SICKLEAVEBALANCE']; ?>" id="sickleave"/></td>
<td><a href="#"class="submit">Submit</a></td>
</tr>
<?php } ?>
```
The ajax code
```
$.ajax({
beforeSend : function(){
$("#submitreason").unbind('click');
},
type: "POST",
async : false,
url: "http://192.168.1.5:83/staging/eleave/application/controller/controller.php?action=doupdateleavecontroller",
dataType: 'json',
data : {
idstaff : trid,
annualleave : $('#'+trid+' input#annualleave').val(),
sickleave : $('#'+trid+' input#sickleave').val(),
reason : $('#reason').val(),
},
success : function(data) {
var encoded = $.toJSON(data);
var result = $.evalJSON(encoded).msg;
$('#pop_up_apply_leaveReason').hide();
alert(result);
location.reload();
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest + " : " + textStatus + " : " + errorThrown);
}
});
```
| How to get input text value from specific row using Jquery | CC BY-SA 2.5 | null | 2010-09-01T09:16:53.900 | 2010-09-02T13:56:06.033 | 2010-09-02T01:26:19.623 | 417,899 | 417,899 | [
"php",
"jquery"
] |
3,616,650 | 1 | 3,616,682 | null | 1 | 1,566 | How to open web link in new tab. If i specify Google
means on clicking the link, it opens in new new window and not in new tab. How to make the web link open in new tab?

I am using IE8 browser, i have set settings to open links from other programs in new tab but still it opens up in new window!!!
| Open website in new tab | CC BY-SA 2.5 | null | 2010-09-01T09:32:32.253 | 2010-09-04T04:04:15.160 | 2010-09-01T09:55:16.427 | 461,582 | 461,582 | [
"asp.net"
] |
3,616,646 | 1 | 3,625,430 | null | 3 | 5,676 | For a simple project of mine, a release build in Visual Studio produces an assembly of size 18,944 bytes. But if I build the same solution from the command line with MSBuild, I get an assembly of size 28,672 bytes. That's a difference of 9,728 bytes.
I am invoking MSBuild with:
```
msbuild /p:Configuration=Release /t:Rebuild MySolution.sln
```
In ILDasm, I saw only minor differences in metadata. Dumping and comparing the tree view shows no differences. Dumping and comparing headers yielded a clue:
```
Visual Studio Output MSBuild Output
// Size of init.data: 0x00000800 // Size of init.data: 0x00002000
// Size of headers: 0x00000200 // Size of headers: 0x00001000
// File alignment: 0x00000200 // File alignment: 0x00001000
```
The difference in init data size is 0x1800, or 6,144 bytes. The difference in header size is 0xE00, or 3,584 bytes. The sum of these two differences is 9,728 bytes, which accounts for the discrepancy. The difference in file alignment is 3,584 bytes.
Further down I see:
```
Visual Studio Output MSBuild Output
// File size : 18944 // File size : 28672
// PE header size : 512 (496 used) ( 2.70%) // PE header size : 4096 (496 used) (14.29%)
// Data : 2048 (10.81%) // Data : 8192 (28.57%)
```
So obviously this all comes down to file alignments. But why do file alignments differ when building from the command line? In the advanced settings inside Visual Studio, I see that the file alignment is indeed set to 512:

This property is manifested in the project file in a `PropertyGroup`:
```
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
...
<FileAlignment>512</FileAlignment>
</PropertyGroup>
```
But notice the combination of `$Configuration` and `$Platform`? On a hunch, I tried this from the command line:
```
msbuild /p:Configuration=Release /p:Platform="Any CPU" /t:Rebuild MySolution.sln
```
And then the output matched (in size) perfectly!
This is the only property group for a release configuration, so it is obviously being used by MSBuild regardless of whether the platform is specified. To prove this, I changed the `OutputPath` in this property group and then built with MSBuild at the command line. Sure enough, it picked up the new output directory.
I tried changing the alignment of 512 to 1024 and then built at the command line. It used it!
| Why does MSBuild require explicitly setting the target platform? | CC BY-SA 2.5 | null | 2010-09-01T09:31:15.640 | 2010-09-02T08:39:21.500 | null | null | 5,380 | [
".net",
"visual-studio",
"msbuild"
] |
3,616,684 | 1 | null | null | 0 | 189 | I am having confusion in designing the database.
Its a Subscription based application :
One Subscription can have multiple display devices.
While Subscribing, the user will be asked to select one of the displayed devices.
Keeping this in mind, I've come up like this:

Is the above approach correct?
Should the USER_SUBNS.DISP_DEV_CD(foreign key) refer to DISPLAY_DEVICES.DISP_DEV_CD or SUBNS_DEVICES.DEV_CD?
| Database design - doubt in mapping the relationships | CC BY-SA 2.5 | null | 2010-09-01T09:36:49.143 | 2010-09-04T17:53:44.720 | 2010-09-02T04:28:08.120 | 157,705 | 157,705 | [
"database-design",
"database-relations"
] |
3,616,714 | 1 | 3,616,765 | null | 2 | 793 | I have a little web admin tool I'm working on that allows a user to view & edit the properties on a DB Object. Most of the settings are "yes/no/don't know" type properties.
There's quite a lot of settings to display so managing screen real-estate &
usability is important.

When I first scaffolded the UI, I was using Test 1 in the above image.
Suffice to say it looked cluttered and with dozens of these in multiple columns/category groups in the UI. Test 2 was slightly better but not by much.
So I was thinking of doing something like Test 3. Depending on which radiobutton is selected in the html, a difference image appears. And clicking on the image cycles through the 3 options repeatedly.
(If you've ever used the GMail Labs feature that allows you to have lots of different kinds of "Star" flags for your email, that's the idea)
So my questions to the UI/CSS Gurus.
1. Is "Test 3" an acceptable/usable solution ?
2. IF so, is it possible to change a radiobutton (or select/option) input into that using just CSS & JS? (or if you can point me towards a tutorial/resource, I'd appreciate it)
Thanks,
Eoin C
| Custom Radiobutton using CSS/JS/JQuery | CC BY-SA 2.5 | null | 2010-09-01T09:40:45.630 | 2010-09-01T10:15:50.357 | null | null | 30,155 | [
"javascript",
"jquery",
"html",
"css",
"radio-button"
] |
3,616,902 | 1 | 3,618,346 | null | 0 | 2,053 | I'm searching for a way to build a photoshop like drawing tool in ActionScript 3. Especially I want to build something like the brushes in photoshop. So that you can use different PNG's as a brush.
I tried it with saving a brush in photoshop as a transparent png, import it into my AS3 project and with a mouse move event, draw the png everytime you move the mouse into a bitmapdata object.
But that doesn't look like photoshop. Here's a example, first the photoshop drawing, then the as3 drawing:


In photoshop it looks very smooth, but in as3 you have that ugly corners and color shifts.
Does anyone know a solution?
thx, tux
| AS3 photoshop brushes | CC BY-SA 2.5 | null | 2010-09-01T10:04:35.580 | 2013-03-03T14:15:07.237 | null | null | 228,370 | [
"actionscript-3",
"drawing",
"photoshop",
"brush"
] |
3,616,950 | 1 | 3,642,918 | null | 10 | 3,000 | Im writing a compiler for university project, and I would like to transform my Abstract Syntax Tree into a Control Flow Graph(CFG).
Im thinking that the nodes(`V`) in the CFG should be nodes from the AST. I know algorithmically how to construct the edge set (`G=(V,E)`) but Im having a hard time writing the process a bit more formally
I've created this scala style pattern matching (Pseudo):
```
def edges(n:Node)(nestedin_next: Node) : List[(Node,Node)] =
n match {
case (c_1 :: c_2::tl) => (c1,c2) :: edges(c2::tl)(nestedin_next)++
edges(c_1)(c_2)//recurse
case c_1 :: Nil => (c_1,nestedin_next)::Nil
case i@ IF(_,c1,c2) => (i,c1)::(i,c2)::edges(c1)(nestedin_next)++
edges(c2)(nestedin_next)
case _ => Nil
}
```
Which should match an AST structure like:
```
( IF(1,
ASSIGN(x,1), // ia1
ASSIGN(x,2) // ia2
) :: // i1
ASSIGN(y,2) :: // a1
ASSIGN(z,ADD(x,y)) :: //a2
IF(z,
RET(z), //i2r1
assign(z,0):: // i2a1
ret(z) // i2r2
) :://i2
Nil
)
```
and provide an edgeset like:
```
{ i1 -> ia1,
i1 -> ia2,
ia1 -> a1,
ia2 -> a1,
a1 -> a2,
a2 -> i2,
i2 -> i2r1
i2-> i2a1
i2a1 -> i2r2
i2r2 -> _|_
i2r1 -> _|_
}
```

[DotSrc](http://s3.blog.vrist.dk.s3.amazonaws.com/cfgsv1.dot)
Anyone got any hints on how to do this a bit more formally than scala "pseudocode"?
Im thinking something inductive like:
```
e[[ IF(_,b1,b2) ]] = (if -> b1) + (if -> b2) \cup e[[ b1 ]] \cup e[[ b2 ]]
e[[ b1, b2 ]] = e[[b1]] \cup e[[b2]]
```
(the above would only give a tree and not a graph though. No edge from edge of then-branch to next statement for example)
EDIT:
I've been reading up on [kiama and dataflows](http://code.google.com/p/kiama/wiki/Dataflow) for scala, and I like the "succ" and "following" approach they use. Nevertheless, I'm having a hard time boiling that down into a more formal description, mostly because of the nifty `childAttr`, `s.next` which hides some of the details that turns ugly when I try to specify it formally.
EDIT2:
I've been through the Dragon Book and "Modern Compiler Implementation in ML" as well as some of the other material from [Learning to write a compiler](https://stackoverflow.com/questions/1669/learning-to-write-a-compiler) and some/most mentions data flow and control flow, but never touches much upon HOW to create the CFG in any formal way.
EDIT3:
Via [Kiama](http://code.google.com/p/kiama/) author, [Associate Professor Dr. Tony Sloane](http://plrg.science.mq.edu.au/wiki/plrg/TonySloane) I recieved some [additional book references to look up](http://groups.google.com/group/kiama/msg/5750da532f440ed5).
As far as I can see the "way to do it" as per those books is based on a "per statement" of the program more than over the AST and is based on Basic Blocks. Great input nevertheless!
| Formally constructing Control Flow Graph | CC BY-SA 2.5 | 0 | 2010-09-01T10:11:06.840 | 2019-09-13T09:40:39.217 | 2017-05-23T12:16:55.223 | -1 | 86 | [
"language-agnostic",
"compiler-construction",
"scala",
"compiler-theory"
] |
3,617,199 | 1 | 3,617,702 | null | 0 | 15,338 | Hai,
Am using DevExpress LookupEdit in C#.NET application.I want to clear all items in the LookupEdit.Please help
code:
```
lkpLabItem.Properties.DataSource = null;
lkpLabItem .Properties.DataSource = _lab.selectChemicals ();
lkpLabItem.Properties.DisplayMember = "labitem_Name";
lkpLabItem.Properties.ValueMember = "labItem_ID";
lkpLabItem.Properties.BestFitMode = BestFitMode.BestFit;
lkpLabItem.Properties.SearchMode = SearchMode.AutoComplete;
lkpLabItem.Properties.Columns.Add(new LookUpColumnInfo("labitem_Name", 100, "Lab Items"));
lkpLabItem.Properties.AutoSearchColumnIndex = 1;
```
Thank you.
| How to clear items in DevExpress LookupEdit | CC BY-SA 2.5 | null | 2010-09-01T10:46:53.223 | 2010-09-01T11:55:34.913 | 2010-09-01T11:05:55.670 | 434,910 | 434,910 | [
"c#",
"winforms",
"devexpress",
"repositorylookupedit"
] |
3,617,539 | 1 | 3,617,617 | null | 83 | 26,387 | I'm looking at tidying up my project layout in Visual Studio and I'm wondering if there is any hack, plugin or trick to associate an .xml file with a .cs file so they appear grouped in my solution navigator/explorer.
Similar to the way the code-behind file is associated with its aspx.

Any suggestions welcome. Thanks
| Group files in Visual Studio | CC BY-SA 3.0 | 0 | 2010-09-01T11:32:34.947 | 2022-08-20T03:58:43.943 | 2013-10-10T06:09:21.423 | 254,882 | 192,313 | [
"visual-studio"
] |
3,617,773 | 1 | 3,617,861 | null | 0 | 1,049 | Im using gluUnProject() to get the screen 2d coordinate in 3d world coordinate. I take 4 positions from each corner of the screen to get the area of visible objects.
How to check which points are inside that "rectangle" ?, i have no idea about the terms or anything. The image below shows what that "rectangle" looks like:

| OpenGL: Selecting all dots from the current view area | CC BY-SA 2.5 | 0 | 2010-09-01T12:04:26.613 | 2010-09-01T13:08:05.107 | null | null | 259,361 | [
"c++",
"opengl"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.