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
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,602,515 | 1 | 5,602,531 | null | 0 | 86 |
Can anyone recommend an existing jQuery plugin that produces tooltips/boxes like these?

|
Is there a jQuery plugin which works like SO's vote message and tag tooltips?
|
CC BY-SA 3.0
| null |
2011-04-09T02:31:58.577
|
2011-07-16T04:57:20.993
|
2011-04-09T02:50:57.527
| 350,278 | 372,935 |
[
"jquery-ui",
"jquery-plugins"
] |
5,602,637 | 1 | 5,604,682 | null | 0 | 848 |
The Main Photo of the SlideShow appears differently for it's Left Margin between IE7 and IE8 and Firefox.
Within IE there are several pixels extra vertical space for the SlideShow Image that do not show-up for the Controls Div (Blue Div w/ Play Slideshow).
However, the SlideShow Div and Controls Div appear correct for the Left-Margin in Firefox.
Here is how the Image appears with my IE8 Browser:

I cant determine why there is extra vertical space.
Here is the Development Site: [http://www.davincispainting.com/InteriorGallery.aspx](http://www.davincispainting.com/InteriorGallery.aspx)
The name of the CSS is: galleriffic-2.css.
|
CSS Vertical Space Issue for JQuery Galleriffic Slideshow
|
CC BY-SA 3.0
| null |
2011-04-09T03:09:43.787
|
2011-04-09T16:24:17.837
|
2011-04-09T16:24:17.837
| 598,931 | 598,931 |
[
"jquery",
"css"
] |
5,602,644 | 1 | 5,602,658 | null | 1 | 1,751 |
I have an array of integer values
```
String[] values={3100,7500,8000,4200,88000,71000,32000};
```
that need to be scaled into a known height of my `JComponent` , the question is how to scale these values into e.g. h=600px?
Here is a pic just for more clarification of what i want to achieve:

Thanks
|
Calculating the scale factor for "bar rectangles" of Chart app
|
CC BY-SA 3.0
| 0 |
2011-04-09T03:12:06.887
|
2011-04-09T03:40:02.450
| null | null | 1,525,050 |
[
"java",
"graphics",
"java-2d"
] |
5,602,739 | 1 | null | null | 0 | 1,682 |
I have looked around, everything I find is talking about embedding it.
I do not want to embed it. I want to click a button and launch windows media player seperatly.
For example, I have a location saved in XML file. I have a right click to click Play. It pulls the location. like so.
```
int dd = dataGridView1.CurrentRow.Index;
string eLoc = dataGridView1.Rows[dd].Cells[4].Value.ToString();
if (eLoc == "")
{
MessageBox.Show("You have not saved a location for this movie","Movie Play",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
else
{
MessageBox.Show(eLoc);
ProcessStartInfo ps = new ProcessStartInfo("wmplayer.exe", eLoc.ToString());
Process.Start(ps);
}
```
As you can see, I have a pop up to view, what the string is.
It is this. I added %20 to replace spaces, thinking that was the problem but it isn't.

As you can see it pulls the full location. All I get back from windows media player is this.

Any ideas? To me it seems like this should be working..
|
c# playing movie in windows media player "Not" embedded
|
CC BY-SA 3.0
| 0 |
2011-04-09T03:48:40.857
|
2011-04-10T08:14:27.593
| null | null | 679,210 |
[
"c#",
"wmp"
] |
5,602,771 | 1 | 5,617,558 | null | 3 | 1,632 |
I am using the ListPicker from the Windows Phone Toolkit. It is setup very basically, but for some reason, the items in the popup are always obscured by anything below them, like this:

Here, the text “jburchel” was beneath the ListPicker, and _http://science.nasa.gov/me Was a ListPickerItem. You can see how the underlying text box appears normally but the ListPickerItem is below. I tried changing the order on the XAML of the ListPicker and TextBlock, but it didn't help. I have tried lots of combinations of settings, messed around with the template, but this has persisted. Does anybody know this problem?
Here is an example of ListPicker XAML I use. It is extremely basic.
```
<toolkit:ListPicker HorizontalAlignment="Left" Margin="24,41,0,0" Name="txtUrl"
VerticalAlignment="Top" Width="434" Cursor="IBeam">
<toolkit:ListPickerItem Content="http://rss.cnn.com/services/podcasting/studentnews/rss"/>
<toolkit:ListPickerItem Content="http://science.nasa.gov/media/medialibrary/2010/10/28/podcast.xml"/>
<toolkit:ListPickerItem Content="http://www.sciencemag.org/rss/podcast.xml"/>
</toolkit:ListPicker>
<TextBlock Height="30" HorizontalAlignment="Left" Margin="33,19,0,0" Name="textBlock1" Text="Podcast URL:" VerticalAlignment="Top" />
<TextBox Height="72" HorizontalAlignment="Left" Margin="15,141,0,0" Name="txtUser" Text="jburchel" VerticalAlignment="Top" Width="460" />
```
|
ListPicker text obscured by other text on Windows Phone 7
|
CC BY-SA 3.0
| 0 |
2011-04-09T03:57:47.680
|
2013-12-19T11:07:05.153
|
2011-04-09T05:07:12.697
| 686,985 | 522,588 |
[
"windows-phone-7",
"toolkit"
] |
5,602,836 | 1 | 5,693,447 | null | 1 | 2,605 |
I have seen an app called ZuluTrade, which has a charts in there tableView cells.
Basically it seems to be images in tableViewCell's imageView.
When the page loads the tableView displays the text first and then it loads the images into the tableViewCell as we scroll through the tableView.
This helps to improve the performance because the user does not have to wait till all things are loaded into the cell and also it makes tableView scrolling smooth.
How can that feature be achieved?
Here are the screenshots of the app:


Code in my tableView `cellForRowAtIndexPath:`
```
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *MyIdentifier = [NSString stringWithFormat:@"MyIdentifier %i", indexPath.row];
MyTableCell *cell = (MyTableCell *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
//if (cell == nil) {
cell = [[[MyTableCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
NSString *testVal = [[NSUserDefaults alloc] valueForKey:@"idValue"];
if (testVal == (NSString *)[NSNull null]) {
testVal = @"NULL";
}
//NSLog(@"testVal : %@",testVal);
NSLog(@"Fund Name : %@",[[array1 objectAtIndex:indexPath.row] valueForKey:@"FundName"]);
NSDate *date = [NSDate date];
NSDateFormatter *dtFormat = [[NSDateFormatter alloc] init];
[dtFormat setDateFormat:@"yyyy-MM-dd"];
NSString *dtString = [dtFormat stringFromDate:date];
NSString *fundname = [NSString stringWithFormat:@"%@",[[array1 objectAtIndex:indexPath.row] valueForKey:@"FundName"]];
NSString *imageName =[NSString stringWithFormat:@"%@_%@.png",fundname,dtString];
//NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *documentsDirectory = [self getImagePath];
NSLog(@"Image Path : %@",documentsDirectory);
NSError *error1;
NSString *filepath1;
NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:documentsDirectory error:&error1];
if (files == nil) {
NSLog(@"Error reading contents of documents directory: %@", [error1 localizedDescription]);
}
NSLog(@"FileName: %@",imageName);
BOOL success = NO;
for (NSString *file in files)
{
NSLog(@"file in Files is %@",file);
if([file isEqualToString:[NSString stringWithFormat:@"%@",imageName]])
{
filepath1 = [documentsDirectory stringByAppendingPathComponent:file];
NSLog(@"Full Path :%@",filepath1);
success = YES;
}
}
if(success == YES)
{
cell.imageView.image = [UIImage imageWithContentsOfFile:filepath1];
}
else if(success != YES)
{
cell.imageView.image = [UIImage imageNamed:@"newfund.png"];
}
UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(60.0, 0, 120.0,
tableView.rowHeight)] autorelease];
[cell addColumn:50];
label.textColor = [UIColor blackColor];
label.tag = LABEL_TAG;
label.font = [UIFont systemFontOfSize:12.0];
//NSLog(@"%@",[[array1 objectAtIndex:indexPath.row] valueForKey:@"FundName"]);
label.text = [NSString stringWithFormat:@"%@",[[array1 objectAtIndex:indexPath.row] valueForKey:@"FundName"]];
//NSLog(@"FundName: %@",label.text);
label.textAlignment = UITextAlignmentCenter;
//label.textColor = [UIColor blueColor];
label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin |
UIViewAutoresizingFlexibleHeight;
[cell.contentView addSubview:label];
return cell;
}
```
|
How to load images in tableView after a bit of delay?
|
CC BY-SA 3.0
| 0 |
2011-04-09T04:16:29.870
|
2012-07-23T17:01:15.073
|
2011-04-09T05:48:01.480
| 463,857 | 463,857 |
[
"iphone",
"objective-c",
"cocoa-touch",
"uitableview",
"ios4"
] |
5,603,155 | 1 | null | null | 0 | 70 |
I have a model by the name of Article and I also have a db table with the name "article".
The article table has a column "created_at".
See image

When I run the following command in the console...
```
>> Article.where("created_at < '08-04-2011'")
=> []
```
Does it not say output anything created on dates that are greater than 08-04-2011 (d,m,y)?
Shouldn't this command output the last entry (id #7) you see there in the image posted above?
I've even tried changing the date format around since it doesn't really reflect how it's entered in the db and still not getting the desired results.
Any help will be greatly appreciated.
Thank you
|
where Method outputs empty?
|
CC BY-SA 3.0
| null |
2011-04-09T05:43:36.153
|
2011-12-04T00:41:21.957
|
2011-12-04T00:41:21.957
| 84,042 | 700,467 |
[
"ruby-on-rails",
"ruby-on-rails-3"
] |
5,603,532 | 1 | 5,603,730 | null | 0 | 636 |
I want to start learning php, I install apache 2.2 and I want to run my first.php file, I look for www folder in the installation folder of ApacheSoftwareFoundation but I couldn't find it.
here's the files in the apache
I tried to put my php file in htdocs but it doesn't work , can some one help ?
Doesn't work means when I make http:localhost/first.php , returns
Now the apache is running, when I open htt'://localhost/
returns "it works"
but when I open any php file, it opens as-is ?!
|
No www folder is found in apache 2.2
|
CC BY-SA 3.0
| null |
2011-04-09T07:23:07.863
|
2011-04-09T08:19:28.327
|
2011-04-09T07:59:42.760
| 2,067,571 | 2,067,571 |
[
"php",
"apache2"
] |
5,603,623 | 1 | 5,645,237 | null | 29 | 82,925 |
I want to display Markers on Google map with title displayed under them as shown in picture:

Now this I read was possible in v2 using ELabel but is deprecated in v3. Is there any possible way to show some text under icons of markers in Google Maps V3?
|
How can I show label/title for marker permanently in Google Maps V3?
|
CC BY-SA 4.0
| 0 |
2011-04-09T07:44:42.483
|
2020-12-28T01:19:39.033
|
2020-12-28T01:19:39.033
| 1,783,163 | 281,332 |
[
"google-maps-api-3",
"label",
"google-maps-markers"
] |
5,603,639 | 1 | 5,603,673 | null | 2 | 472 |

I am trying to find the angle of the outer line of the object in the green region of the image as shown in the image above…
For that, I have scanned the green region and get the points (dark blue points as shown in the image)...
As you can see, the points are not making straight line so I can’t find angle easily.
So I think I have to find a middle way and
that is to find the line so that the distance between each point and line remain as minimum as possible.
So how can I find the line so that ……?
|
Line Passing Through Given Points
|
CC BY-SA 4.0
| null |
2011-04-09T07:47:59.403
|
2020-05-12T19:42:30.027
|
2020-05-12T19:42:30.027
| 15,168 | 468,968 |
[
"algorithm",
"math",
"image-processing",
"geometry",
"line"
] |
5,603,705 | 1 | 5,603,741 | null | 0 | 229 |
I have an image with id `myimage`. It has a width of `300px` and height `100px`. each 100px wide portion has a unique color, like below
```
------------------------
| red | green | blue |
------------------------
```
Is it possible to use each portion (having width & height `100px`) with different id so that the image can be used as a button with different functions to each portion??
Answer only if it is possible and comment for others.
thanks in advance...`:)`

|
each portion of image having (or with) different id - jquery
|
CC BY-SA 3.0
| null |
2011-04-09T08:00:13.017
|
2011-04-09T08:36:23.293
|
2011-04-09T08:36:23.293
| 484,082 | 484,082 |
[
"javascript",
"jquery",
"html",
"css"
] |
5,603,858 | 1 | 5,603,904 | null | 1 | 541 |
I'm making a panel with som buttons on it.

But i want the buttons to touch each other, in other words, I want the vertical gaps to dissapear. But the buttons shouldn't be resized. How can I go ahead to do this?
My code:
```
this.setLayout(new GridBagLayout());
GridBagConstraints constraints = new GridBagConstraints();
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.gridwidth = 2;
constraints.weightx = 1D;
constraints.weighty = 1D;
constraints.gridx = 0;
constraints.gridy = 0;
int row = 0;
for (MainAction actie : mainActions) {
constraints.gridy = row;
row++;
SelectedActionButton but = new SelectedActionButton(selectedActionModel, actie);
this.add(but, constraints);
}
constraints.gridwidth = 1;
constraints.weightx = 0.5D;
row *=2;
for (AbstractAction actie : objectActions) {
constraints.gridy = row/2;
constraints.gridx = row%2;
row++;
SelectedObjectButton but = new SelectedObjectButton(selectedObjectModel, actie);
but.setMargin(new Insets(0, 0, 0, 0));
this.add(but, constraints);
}
```
thanks in advance
|
gridbadlayout vertical gaps
|
CC BY-SA 3.0
| null |
2011-04-09T08:37:34.780
|
2013-04-18T19:33:18.647
|
2013-04-18T19:33:18.647
| 1,655,144 | 545,236 |
[
"java",
"user-interface",
"gridbaglayout",
"gaps-in-visuals"
] |
5,603,875 | 1 | null | null | 0 | 399 |
I know from this forum that this is a known bug that has been reported to Apple, but I am concerned that the memory leak keeps increasing everytime I call the view.

the relevant code is
```
-(IBAction)getlocationgo:(id) sender{
//NSAutoreleasePool *pool;
//pool = [[NSAutoreleasePool alloc] init];
self.locationManager=[[[CLLocationManager alloc]init]autorelease];
self.locationManager.delegate = self;
[locationManager startUpdatingLocation];
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
//mapView.showsUserLocation =YES;
//[pool release];
}
- (void)locationManager:(CLLocationManager*)aManager didFailWithError:(NSError*)anError
{
switch([anError code])
{
case kCLErrorLocationUnknown: // location is currently unknown, but CL will keep trying
break;
case kCLErrorDenied: // CL access has been denied (eg, user declined location use)
{UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Location Error"
message:@"Please enable Location Services in the Settings menu"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
[alert show];
[alert release];}
break;
case kCLErrorNetwork: // general, network-related error
{UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Location Error"
message:@"The Little Helper can't find you - please check your network connection or that you are not in airplane mode"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
[alert show];
[alert release];}
break;
}
}
-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
NSLog(@"thisruns");
MKCoordinateSpan span;
span.latitudeDelta =0.2;
span.longitudeDelta =0.2;
MKCoordinateRegion region;
region.span = span;
region.center = newLocation.coordinate;
[mapView setRegion:region animated:YES];
mapView.showsUserLocation =YES;
mapView.mapType = MKMapTypeHybrid;
latitude.text = [NSString stringWithFormat:@"%f",newLocation.coordinate.latitude];
longitude.text = [NSString stringWithFormat:@"%f",newLocation.coordinate.longitude];
NSString *newloc=longitude.text;
NSLog(@"long%f", newloc);
[locationManager stopUpdatingLocation];
}
```
the property's are with this
```
@property (nonatomic, retain) CLLocationManager *locationManager;
```
and it is dealloced
```
mapView.delegate = nil;
[mapView release];
locationManager.delegate = nil;
[locationManager release];
```
I have been going back and forward with this for a few days now, any help or tips would be great.
Thank you
Edit One
Trying to access locationManager in the app delegate, everything runs but there is no update to the location from the IBaction
This is the code in the IBaction and the result from the log is (null)
```
LLHelperAppDelegate *appDelegate = (LLHelperAppDelegate *)[[UIApplication sharedApplication] delegate];
[appDelegate.locationManager startUpdatingLocation];
appDelegate.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
NSLog(@"%@", [appDelegate locationManager]);
```
|
MKMapView leaking from autorealease in main.m
|
CC BY-SA 3.0
| null |
2011-04-09T08:40:30.283
|
2011-04-09T10:40:36.990
|
2011-04-09T10:40:36.990
| 505,986 | 505,986 |
[
"iphone",
"memory-leaks",
"mkmapview",
"instruments",
"core-location"
] |
5,604,018 | 1 | null | null | 4 | 147 |

Look at these buttons. On the left you can see a styled div, but on the right is an input button. Font-sizes are the same, but in the button the font is like it's flattened a little bit. Look at the letters "k" and "w".
What do I have to do to make this font not flatten?
|
Why is font in a button flatter than in a div?
|
CC BY-SA 3.0
| null |
2011-04-09T09:03:21.833
|
2011-04-09T10:01:29.200
|
2011-04-09T09:56:17.843
| 128,165 | 437,223 |
[
"html",
"css",
"input",
"font-size"
] |
5,604,092 | 1 | 6,402,755 | null | 0 | 394 |
How can I make such an interface with cocos2d for iphone? [Cortex interface](https://chrome.google.com/extensions/detail/decglnkhpfoocpafihfbeodhgofefaoc)

I already made a subclass of and override the
method like this:
```
-(void)draw {
ccDrawCircle(CGPointMake(480/2, 320/2), 70, 0, 50000, NO);
ccDrawCircle(CGPointMake(480/2, 320/2), 25, 0, 50000, NO);
ccDrawLine(CGPointMake(480/2, 320/2+25), CGPointMake(480/2, 320/2+70));
ccDrawLine(CGPointMake(480/2+25, 320/2), CGPointMake(480/2+70, 320/2));
ccDrawLine(CGPointMake(480/2, 320/2-25), CGPointMake(480/2, 320/2-70));
ccDrawLine(CGPointMake(480/2-25, 320/2), CGPointMake(480/2-70, 320/2));
}
```
The problem is that I don't have any control over the circle (can't set the position of it)...and i don't know how to place text/images into these "cells". Another problem is the touch detection..mayby just cgrects? but what if i have more than 4 cells and one cell is "rotated"?
Any ideas?
|
How make a interface that looks like this Cortex interface? (Circle,cocos2d,iphone)
|
CC BY-SA 3.0
| null |
2011-04-09T09:20:03.193
|
2011-06-19T13:54:10.980
| null | null | 558,801 |
[
"iphone",
"interface",
"cocos2d-iphone",
"geometry"
] |
5,604,138 | 1 | null | null | 1 | 471 |
If I have simple add method like this
```
public void AddUser(User user)
{
user.Id = Guid.NewGuid();
_userList.Add(user);
}
```
and User class like
```
[DataContract]
public class User
{
[DataMember]
public Guid Id { get; set; }
[DataMember]
public string FirstName { get; set; }
[DataMember]
public string LastName { get; set; }
[DataMember]
public DateTime DateCreated { get; set; }
}
```
Is it possible to hide user id when adding new object.
I know I can achieve this by parameterized input method (sending each object property as input parameter), but I don't think that fits with wcf model. And what if I have many properties? This is just a simple example.

|
Hide id property when creating object via wcf?
|
CC BY-SA 3.0
| null |
2011-04-09T09:30:07.910
|
2016-01-09T13:25:30.610
|
2011-04-09T09:36:05.610
| 75,825 | 75,825 |
[
".net",
"wcf"
] |
5,604,183 | 1 | 5,604,380 | null | 18 | 72,151 |
From [here](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/) I've downloaded newest release of GCC, namely 4.6.
How can I add this compiler to my code::blocks?
|
Adding compiler to code::blocks
|
CC BY-SA 3.0
| 0 |
2011-04-09T09:37:51.900
|
2018-08-02T08:46:52.260
|
2011-04-09T10:54:03.530
| 207,177 | 207,177 |
[
"gcc",
"compiler-construction"
] |
5,604,332 | 1 | 5,658,498 | null | 0 | 361 |
I'm trying to run expression "blend" on my laptop, but when i run project i get an error message with the following solution:

I don't know where I'm supposed to do this.
|
Problem with expression blend on 64bit laptop
|
CC BY-SA 3.0
| null |
2011-04-09T10:03:13.900
|
2011-04-14T04:22:07.400
|
2011-04-14T03:50:02.580
| 95,817 | 95,817 |
[
"visual-studio",
"silverlight",
"silverlight-4.0",
"expression-blend"
] |
5,604,576 | 1 | 5,604,622 | null | 0 | 885 |
I've ArrayList Collection carry the values properly , but the problem when i rendered it in tag the rows become all same value like in the picture.

```
<h:dataTable value="#{contactController.contacts }" var="contact"
rowClasses="oddRow, evenRow" styleClass="contactTable"
headerClass="headerTable" columnClasses="normal,centered"
rendered="#{not empty contactController.contacts }">
<h:column>
<f:facet name="header">
<h:column>
<h:outputText value="Name" />
</h:column>
</f:facet>
<h:outputText
value="#{contactController.contact.firstName }#{ contactController.contact.secondName }" />
</h:column>
<h:column>
<f:facet name="header">
<h:column>
<h:outputText value="Action" />
</h:column>
</f:facet>
<h:panelGrid columns="2">
<h:commandLink value="remove"
action="#{contactController.remove }">
<f:setPropertyActionListener value="#{contact }"
target="#{contactController.selectedContact }" />
</h:commandLink>
<h:commandLink value="edit" action="#{contactController.read}">
<f:setPropertyActionListener value="#{contact }"
target="#{contactController.selectedContact }" />
</h:commandLink>
</h:panelGrid>
</h:column>
</h:dataTable>
```
Any suggestion? .
|
Why <h:dataTable> make all rows as same as "selected row" value?
|
CC BY-SA 3.0
| null |
2011-04-09T10:52:09.547
|
2011-04-09T13:16:18.607
|
2011-04-09T13:16:18.607
| 157,882 | 458,930 |
[
"jsf",
"datatable"
] |
5,604,810 | 1 | 5,607,139 | null | 1 | 8,361 |
I've been working days on a program that draws a grid of dots, and I had to start all over again several times because of a bad approach / to complicated. I've come to a point now where I have to draw a line from a clicked dot (point) to a second clicked dot (point) on the form.
Seriously I've been spending hours even days of my time searching for the right approach.
As for now I only managed to get a line drawn from a point on the form to another point on the form on random clicks...
Could someone please help get the code done, its just frustrating me how I don't have any progress after all attempts of drawing a grid of dots..
So what I want to do is "draw a line from a clicked dot (point) to a second clicked dot (point) on the form".
See below of my code:
```
public partial class Form1 : Form
{
private GridDrawing drawing;
private Point point1;
private Point point2;
List<Point> p1List = new List<Point>(); //Temp
List<Point> p2List = new List<Point>(); //Temp
//True if point1 must be updated
//False if point2 must be updated
private bool firstPoint = true;
private int sizeOfDot;
private int rows;
private int columns;
public Form1()
{
InitializeComponent();
sizeOfDot = 10; //The size of the dot
rows = 6; //The amount of rows for the matrix
columns = 8; //The amount of columns for the matrix
}
private void Form_Paint(object sender, PaintEventArgs e)
{
e.Graphics.FillRectangle(Brushes.White, ClientRectangle); //Fill the form in white
drawing = new GridDrawing(this, rows, columns); //Control, Rows, Columns
foreach (var piece in drawing.Pieces) //Draws all the dots
{
e.Graphics.FillEllipse(Brushes.Black, (piece.Dot.X - sizeOfDot / 2),
(piece.Dot.Y - sizeOfDot / 2), sizeOfDot, sizeOfDot); //Draws the dot
}
using (var pen = new Pen(Color.Black, 2))
{
for (int i = 0; i < p1List.Count; i++)
{
e.Graphics.DrawLine(pen, p1List[i], p2List[i]);
}
}
}
private void startToolStripMenuItem_Click(object sender, EventArgs e)
{}
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
if (firstPoint) //Update point1 or point2
{
//Point 1
point1.X = e.X;
point1.Y = e.Y;
}
else
{
//Point 2
point2.X = e.X;
point2.Y = e.Y;
p1List.Add(point1);
p2List.Add(point2);
}
firstPoint = !firstPoint; //Change the bool value
Invalidate(); //Redraw
}
private void Form1_SizeChanged(object sender, EventArgs e)
{
Invalidate();
}
}
```
```
public class GridDrawing
{
private int columns;
private int rows;
private List<GridPiece> pieces;
private Point dot;
//private Point point1; //point1 to start drawing line from
//private Point point2; //point2 to end drawing line from
/// <summary>
/// Constructs a grid
/// </summary>
/// <param name="ctrl"></param>
/// <param name="rows"></param>
/// <param name="columns"></param>
/// <param name="sizeOfDot"></param>
public GridDrawing(Control ctrl, int rows, int columns)
{
this.rows = rows; // The amount of rows in the matrix.
this.columns = columns; // The amount of columns in the matrix.
this.pieces = new List<GridPiece>(); // Initializes the List GridPieces
int xOffset = (int)ctrl.ClientRectangle.Width / (columns + 1); // FP offset for X
int yOffset = (int)ctrl.ClientRectangle.Height / (rows + 1); // FP offset for Y
//Generate the dots
for (int i = 0; i < rows; i++) //Matrix with 6 rows
{
for (int j = 0; j < columns; j++) //Matrix with 8 columns
{
dot = new Point((j + 1) * xOffset, (i + 1) * yOffset); // Center of the dot
GridPiece p = new GridPiece(dot); // Creates a piece
pieces.Add(p); // Puts the piece that has to be drawn in the List<GridPiece>pieces
}
}
}
public List<GridPiece> Pieces //Property List<GridPiece>pieces
{
get { return this.pieces; }
}
public Point Dot //Property Point dot
{
get { return this.dot; }
}
}
```
```
public class GridPiece
{
private Point dot;
/// <summary>
/// Constructor of GriedPiece
/// </summary>
/// <param name="bmpPic"></param>
/// <param name="position"></param>
public GridPiece(Point dot)
{
this.dot = dot;
}
public Point Dot
{
get { return dot; }
}
}
```
Here's an example how I'm trying to make it look like

Could someone please help me?
|
Drawing a line from a dot to dot (Point to Point) on Form MouseDown
|
CC BY-SA 3.0
| 0 |
2011-04-09T11:43:10.763
|
2014-12-07T02:06:00.287
|
2014-12-07T02:06:00.287
| 76,337 | null |
[
"c#",
"point"
] |
5,605,087 | 1 | 5,607,215 | null | 0 | 523 |
I've installed a few instances of OrchardProject.net and all of them are reporting an error when trying to browse the module gallery.
Error loading extensions from gallery source 'Orchard Extensions Gallery'. The null value from property 'Published' cannot be assigned to a type 'System.DateTime'..
Steps to reproduce:
1. Go to admin
2. Click on gallery / module

|
Orchard module gallery reports error
|
CC BY-SA 3.0
| null |
2011-04-09T12:41:59.797
|
2011-04-10T02:34:05.093
| null | null | 273,163 |
[
"c#",
"module",
"gallery",
"orchardcms"
] |
5,605,226 | 1 | 5,605,694 | null | 1 | 2,662 |
I am trying to limit the amount of LINES a user can have in an UITextView. Let's consider I only want to allow 4 lines (i.e. in the following example, you can't go higher than a height of 84 pixels with the given font in a given UITextView with a width of 200).
I coded this to achieve the limiting and it works fine:
```
- (BOOL)textView:(UITextView *)aTextView shouldChangeTextInRange:(NSRange)aRange replacementText:(NSString *)aText {
NSString* newText = [aTextView.text stringByReplacingCharactersInRange:aRange withString:aText];
CGSize strSize = [newText sizeWithFont:textView.font constrainedToSize:CGSizeMake(200, 10000) lineBreakMode:UILineBreakModeWordWrap];
if (strSize.height > 100)
{
return NO; // can't enter more text
}
else
return YES; // let the textView know that it should handle the inserted text
}
```
So far so good. The problem starts when I try to be sneaky and enter as many 'x's as I can before each return. In that case, I can get an extra of 4 lines... which I obviously do not want to allow. I assume that this has something to do with the lineBreakMode? Is there any case to alter this? I haven't found much in the docs (but then again, I usually have a hard time understanding them).
I attached a couple of screenshots to illustrate the problem. I'd be grateful for any suggestions. Thanks a lot!
---


|
iPhone: Limiting text input in an UITextView
|
CC BY-SA 3.0
| 0 |
2011-04-09T13:14:04.910
|
2011-04-09T14:45:51.470
|
2011-04-09T13:20:44.173
| 648,371 | 648,371 |
[
"iphone",
"objective-c",
"uitextview"
] |
5,605,429 | 1 | 5,605,445 | null | 0 | 150 |
I came from Java Swing background. I am interested to have my own portfolio app which looks similar to the following.

I know that, I need `TabHost`.
I may need `ListView` as tab content, if I want the item highlighted in white rectangle click-able. When user clicks within white rectangle region, the transaction details will be shown.
- -
|
What is the widgets I should use in the following stock portfolio app
|
CC BY-SA 3.0
| null |
2011-04-09T13:50:11.490
|
2011-04-09T14:04:22.240
| null | null | 72,437 |
[
"android",
"android-layout",
"android-widget"
] |
5,605,509 | 1 | 5,605,587 | null | 0 | 825 |
I am on win 7 and trying to install a .NET windows service using the service installer. And get the error as shown in the pic. I thought Its becuase I was not admin on that machine and got that error. but then I used an admin account and got the same error. Any idea what could be the reason.

|
"Unable to open the Security Manager Database" Error while installing a windows service using service installer on Windows 7
|
CC BY-SA 3.0
| null |
2011-04-09T14:05:08.150
|
2011-04-09T14:22:46.523
| null | null | 255,562 |
[
".net",
"windows",
"windows-services"
] |
5,605,567 | 1 | 5,682,070 | null | 5 | 15,026 |
I have recently picked up Microsoft Office Visio 2010 in the interest of drawing out the execution flow of a software application I am planning. So far I have enjoyed the program, and it has helped me significantly to figure out exactly what interactions and events I will need for the program even before I begin coding it. However, there is one gripe I have with the software, as I add new elements to the diagram, Visio tends to try to combine routes as often as possible. This can make it difficult at times to see exactly where some of the routes are pointing. For example:
Example 1: Example 2:
In Example 1, You can see that there are three routes, each with a different label. Originally, these labels would overlap each other as well. I figured out this can be turned off in the "Page Layout" dialog, so it's a little better than it was, but the beginnings and ends of the route are still combined. Here it's not really an issue, but it could be as shown in Example 2.
What's pointing where in Example 2? The line coming in from the left is pointing at the diamond on the bottom, and then there are three routes coming out the top of the diamond. This is the problem I'm trying to solve. It's not shown in these examples, but putting labels on those three routes in Example 2 puts the labels all on that long stretch of vertical, which makes it impossible to tell which label corresponds to which line.
Is there a way to prevent the lines from overlapping like this? I have fully explored the "Page Setup" dialog, but none of the options available there seem to allow this behavior. The only solution I was able to find online was to draw all the routes manually, but this would mean I cannot use the "Re-Layout Page" feature, and it could be rather time-intensive if Visio decides to do it often.
While messing around with some more settings trying to find a solution to this, I came up with a great example showing just how bad this can get. Now, this is an extreme example, and if your diagrams look like this you're probably doing it wrong, but it clearly shows that it can quickly become impossible to tell what the source and destination for each line is.
|
Visio 2010: Prevent Co-Linear Connector Routes
|
CC BY-SA 3.0
| null |
2011-04-09T14:20:11.093
|
2023-01-04T20:13:55.790
|
2017-05-01T18:46:00.883
| 140,810 | 140,810 |
[
"layout",
"ms-office",
"line",
"visio",
"flowchart"
] |
5,605,613 | 1 | 5,614,378 | null | 0 | 908 |
I'm using the AsyncImageView from GreenDroid( [https://github.com/kennydude/GreenDroid](https://github.com/kennydude/GreenDroid) ) and it has made my view go all strange. It's in a TwoLineLayout (or whatever it's called), and it's showing me some unexpected padding which using the ddms it's from the actual AsyncImageView itself and I can't figure out why it's there, because the image is correctly sized as the corners go on fine.
I've tried using all the ScaleTypes and don't like how Matrix zooms everything in. Here's the XML currently: [http://pastebin.com/H1kFpiTM](http://pastebin.com/H1kFpiTM)
Also bellow is a screenshot of what I get, which you can see the strange gap.

Thanks in Advance,
Joe
|
Using an AsyncImageView in android has a strange padding I can't remove
|
CC BY-SA 3.0
| null |
2011-04-09T14:28:29.640
|
2011-09-13T21:29:15.107
| null | null | 230,419 |
[
"android",
"layout",
"android-xml"
] |
5,605,635 | 1 | 5,607,141 | null | 12 | 1,144 |
[This](https://stackoverflow.com/questions/5597566/) question started me thinking about how Mathematica detects multiple functions being plotted. I find that I really do not understand the process.
Consider:
```
Plot[{1, Sequence[2, 3], 4}, {x, 0, 1}, PlotRange -> {0, 5}]
```

I can understand that `Plot` finds three elements in the list initially, but how does it "know" to style `2` and `3` the same? It is as though there is a memory of what part of the starting list those two elements came from. How does this work?
|
Detection and styling of multiple functions in Mathematica's Plot
|
CC BY-SA 3.0
| 0 |
2011-04-09T14:31:59.307
|
2013-08-11T06:15:41.097
|
2017-05-23T12:00:16.653
| -1 | 618,728 |
[
"wolfram-mathematica",
"plot"
] |
5,605,753 | 1 | 5,729,831 | null | 3 | 1,320 |
Look at this app for example.

How does this work behind the scenes?
I know you can set the badge by using:
```
[UIApplication sharedApplication].applicationIconBadgeNumber = somenumber;
```
However, this would need to work in the background for it to be able to stay updated. However, there's a 10-minute restriction for backgrounded apps. I'm thinking it has something to do with push notifications, but I don't know how that would work exactly.
Any ideas?
---
I'm setting a bounty on this. If possible, I would like a step-by-step process of how to set up my webserver to handle these push notifications.
|
How to achieve temperature badge for weather app?
|
CC BY-SA 3.0
| 0 |
2011-04-09T14:58:52.110
|
2011-04-22T06:12:24.337
|
2011-04-20T11:59:53.870
| 631,629 | 456,851 |
[
"iphone",
"cocoa-touch",
"push-notification",
"badge"
] |
5,605,954 | 1 | 5,606,923 | null | 0 | 784 |
I'm playing around with the concurrency visualizer in VS2010. It's a great feature but I am having trouble identifying the threads where my Parallel.ForEach ran. I'm attaching a screenshot here in the hopes someone else can help. Also, does it appear that my application is running serially? Note the execution on the main thread and only one other worker thread.
Note: When I did this run I set the ParallelOptions.MaxDegreeOfParallelism = Environment.ProcessorCount (= 2).
Any help appreciated!

|
Identifying threads where Parallel.ForEach ran in Concurrency Visualizer
|
CC BY-SA 3.0
| null |
2011-04-09T15:36:55.323
|
2011-04-09T18:18:44.680
| null | null | 61,344 |
[
"visual-studio-2010",
"concurrency",
"profiler"
] |
5,606,002 | 1 | null | null | 15 | 44,778 |
I have a this code:
```
<ListView Height="238"
HorizontalAlignment="Left"
Name="listView1"
VerticalAlignment="Top"
Width="503"
ItemsSource="{Binding}"
IsSynchronizedWithCurrentItem="True">
<ListView.View>
<GridView>
<GridView.Columns>
<GridViewColumn>
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox Tag="{Binding ID}"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn DisplayMemberBinding="{Binding ID}" Header="ID" />
<GridViewColumn DisplayMemberBinding="{Binding Name}" Header="Name" />
</GridView.Columns>
</GridView>
</ListView.View>
</ListView>
```
That produce this window:

How do I know how many checkboxes are selected, and get the value `Tag` of each `CheckBox` that is selected?
|
WPF ListViewItem item CheckBox. How to get all selected items?
|
CC BY-SA 4.0
| 0 |
2011-04-09T15:46:42.923
|
2019-11-04T17:10:01.413
|
2019-11-04T17:10:01.413
| 6,113,711 | 1,633,855 |
[
"c#",
"wpf",
"binding",
"wpf-controls"
] |
5,606,027 | 1 | 5,606,546 | null | 0 | 106 |
I have this jquery code:
```
function(returnArray){
for (i=0; i<returnArray.length; i++) {
$('<li class="tagSuggestTag"/>').appendTo('#tagSuggest ul').text(returnArray[i]);
}
```
return array is an array, but for some reason when I do this it loops through every letter of the array instead of each value in the array.
The returnArray is `["hello", "helloe", "helloer"]` and that loop goes through and returns:

|
How do I make this loop through an array?
|
CC BY-SA 3.0
| null |
2011-04-09T15:51:01.627
|
2011-04-09T17:18:34.013
|
2011-04-09T15:55:27.520
| 23,199 | 407,756 |
[
"javascript",
"jquery",
"arrays"
] |
5,606,060 | 1 | 5,606,373 | null | 0 | 756 |
I've read several threads dealing with similar issues on here, but I just can't figure out what I am over-releasing. From a detail view controller for a Player object, I push a UITableViewController to select Location objects for that Player:
```
- (void)selectLocations
{
LocationSelectionController *vc = [[LocationSelectionController alloc] initWithStyle:UITableViewStyleGrouped];
vc.player = player;
[self.navigationController pushViewController:vc animated:YES];
[vc release];
}
```
Here is a look at some details of the LocationSelectionController:
```
- (void)saveContext {
NSManagedObjectContext *context = [player managedObjectContext];
if ([context hasChanges]) {
NSError *error = nil;
if (![context save:&error]) { //*** ERROR HERE ***
// show alert
}
}
}
- (void)viewDidLoad {
[super viewDidLoad];
// ....
NSError *error = nil;
if (![[self fetchedResultsController] performFetch:&error]) {
// show alert
}
}
- (NSFetchedResultsController *)fetchedResultsController {
if (_fetchedResultsController != nil) {
return _fetchedResultsController;
}
NSManagedObjectContext *context = [player managedObjectContext];
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Location" inManagedObjectContext:context];
[request setEntity:entity];
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES selector:@selector(caseInsensitiveCompare:)];
NSArray *sortDescriptors = [NSArray arrayWithObjects:sortDescriptor, nil];
[request setSortDescriptors:sortDescriptors];
NSFetchedResultsController *aFRC = [[NSFetchedResultsController alloc] initWithFetchRequest:request managedObjectContext:context sectionNameKeyPath:nil cacheName:nil];
aFRC.delegate = self;
self.fetchedResultsController = aFRC;
[request release];
[sortDescriptor release];
return _fetchedResultsController;
}
- (void)viewDidUnload {
[super viewDidUnload];
self.fetchedResultsController = nil;
}
- (void)dealloc {
self.fetchedResultsController = nil;
[_fetchedResultsController release];
[player release];
[super dealloc];
}
```
The functionality is always perfect the first time I navigate to the LocationSelectionController. I can interact with the Location objects with no problems at all. When I pop the view and return to the detail view of the Player object, again there is perfect functionality. It is only when I push the LocationSelectionController for a second time (even if it is from a different Player object) that there is a crash up attempting to save the context.
```
*** -[LocationSelectionController controllerWillChangeContent:]: message sent to deallocated instance 0x7026920
```
I've tried using instruments with NSZombie to find the problem, and it points me to an instance of LocationSelectionController.

|
Error on second save of NSManagedObjectContext (deallocated insance)
|
CC BY-SA 3.0
| null |
2011-04-09T15:56:22.320
|
2011-04-14T20:21:50.967
| null | null | 234,394 |
[
"iphone",
"objective-c",
"core-data",
"nsfetchedresultscontroller",
"nsmanagedobjectcontext"
] |
5,606,121 | 1 | 6,086,713 | null | 11 | 14,677 |
I was wondering if anyone had some code, or knew of a place that has code for creating a double handled slider. Example : 
I am looking to do something similar using a double slider to search for a range of ages on a time array , like in the photo
Thanks in advance
|
Double handled slider android
|
CC BY-SA 3.0
| 0 |
2011-04-09T16:08:17.813
|
2014-11-27T20:34:10.407
|
2011-04-09T16:21:51.133
| 680,093 | 700,088 |
[
"java",
"android",
"user-interface",
"android-layout",
"slider"
] |
5,606,324 | 1 | 5,606,368 | null | 0 | 159 |

I have added a light white/gray color to the background to see what happens when the "Delete Confirmation" is on. My problem is that when the delete button animates on screen, it does not reposition the content of my cell so I have this strange overlapping issue. Could anybody please help me? Do I have to make my own animation etc for this? Thank you.
---
EDIT ADDED CODE: (I have removed the autoresizing because I don't get it to work..)
```
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *LogCellId = @"LogCellId";
UITableViewCell *cell = [tv dequeueReusableCellWithIdentifier:LogCellId];
UILabel *lblSummary;
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:LogCellId] autorelease];
lblSummary = [[[UILabel alloc] initWithFrame:CGRectMake(10.0, 10.0, 260.0, 30.0)] autorelease];
lblSummary.font = [UIFont fontWithName:@"Helvetica-Bold" size:13];
lblSummary.tag = SUMMARY_TAG;
lblSummary.lineBreakMode = UILineBreakModeTailTruncation;
lblSummary.opaque = YES;
lblSummary.backgroundColor = [UIColor colorWithRed:240.0/255.0 green:240.0/255.0 blue:240.0/255.0 alpha:1.0];
[cell.contentView addSubview:lblSummary];
cell.contentView.backgroundColor = [UIColor colorWithRed:240.0/255.0 green:240.0/255.0 blue:240.0/255.0 alpha:1.0];
} else {
lblSummary = (UILabel *)[cell viewWithTag:SUMMARY_TAG];
}
lblSummary.text = [self.logList objectAtIndex:[indexPath row]];
return cell;
}
```
|
Delete confirmation issue on iPhone
|
CC BY-SA 3.0
| null |
2011-04-09T16:40:58.200
|
2011-04-09T17:01:21.127
|
2011-04-09T16:55:02.830
| 454,049 | 454,049 |
[
"iphone"
] |
5,606,321 | 1 | 5,695,304 | null | 1 | 733 |
It's easiest if I just start by showing pictures of the problem. The pictures show a snapshot of a texture moving around.
The application on my HTC Hero:

The same application on the emulator where it works fine (Disregard the randomly placed leftovers, I know the cause of them, and it's not a problem):

Now, if you look at the first image, the top one is the "real one" and the others always follow beneath, and there are copies above aswell. I am currently only repainting the background squares that was visited, and they are for some reason drawn above the copies (you can see they are all partially painted over by a tile).
Do you have to always repaint the whole screen every frame on the android phones? Or is it possible to get rid of these weird copies?
Here is the code used to draw the textures (I'm new to opengl-es so it's a lot like replica island):
first
```
public static void beginDrawing(GL10 gl, float viewWidth, float viewHeight) {
gl.glShadeModel(GL10.GL_FLAT);
gl.glEnable(GL10.GL_BLEND);
gl.glBlendFunc(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA);
gl.glColor4x(0x10000, 0x10000, 0x10000, 0x10000);
gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glPushMatrix();
gl.glLoadIdentity();
gl.glOrthof(0.0f, viewWidth, 0.0f, viewHeight, 0.0f, 1.0f);
gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glPushMatrix();
gl.glLoadIdentity();
gl.glEnable(GL10.GL_TEXTURE_2D);
}
```
Then for every texture (I draw background first, then in this case only one hulk texture. I'm sure it's being drawn only once):
```
gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);
((GL11Ext) gl).glDrawTexfOES(x, y, 0, (float) mWidth, (float) mHeight);
```
and at the end:
```
public static void endDrawing(GL10 gl) {
gl.glDisable(GL10.GL_BLEND);
gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glPopMatrix();
gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glPopMatrix();
}
```
The code I use to load textures:
```
private void loadGLTextures(GL10 gl) {
int[] textures = new int[1];
gl.glGenTextures(1, textures, 0);
textureID = textures[0];
gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,
GL10.GL_LINEAR);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,
GL10.GL_LINEAR);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
GL10.GL_CLAMP_TO_EDGE);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,
GL10.GL_CLAMP_TO_EDGE);
gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
GL10.GL_MODULATE);
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
int[] mCropWorkspace = new int[4];
mCropWorkspace[0] = 0;
mCropWorkspace[1] = bitmap.getHeight();
mCropWorkspace[2] = bitmap.getWidth();
mCropWorkspace[3] = -bitmap.getHeight();
((GL11) gl).glTexParameteriv(GL10.GL_TEXTURE_2D,
GL11Ext.GL_TEXTURE_CROP_RECT_OES,
mCropWorkspace,
0);
mCrop = mCropWorkspace;
bitmap.recycle();
}
```
All help is very much appriciated, and please leave a comment if anything is unclear!
EDIT: I should add that if I every frame redraw all the squares, the "extra" images are hidden, and it works the way it should.
|
Trying selectively redraw background for an android game, but the moving image is duplicated across the screen
|
CC BY-SA 3.0
| null |
2011-04-09T16:40:18.573
|
2011-04-17T17:57:18.690
|
2011-04-13T10:27:52.580
| 195,215 | 195,215 |
[
"android",
"opengl-es"
] |
5,606,354 | 1 | null | null | 1 | 744 |
I want to build simple project:
```
////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Window.hpp>
#define SFML_DYNAMIC
////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
```
I build it with:
g++ main.cpp -I./include -L./lib -o main -lsfml-system -lsfml-window -static-libgcc .
Everything compile without erros, but when I run it looks:

I try to build with:
-lopengl32 -lglu3s
Without -static-libgcc and #SFML_DYNAMICS
A lot of combinations, but I get the same result: black command window instead of normal window with graphics.
I use SFML 1.6 , and gcc 4.5.2 ( I have the same problem on 3... version :/ )
Anyone know what I do wrong ? Or how to compile it ? I know i can try visual studio, but I want to make it with gcc.
|
Problem with build SFML project with mingw
|
CC BY-SA 3.0
| null |
2011-04-09T16:47:47.340
|
2011-04-09T18:14:35.583
| null | null | 338,775 |
[
"c++",
"build",
"g++",
"mingw",
"sfml"
] |
5,606,662 | 1 | null | null | 1 | 99 |
I've made a [simple mockup of my website on jsFiddle](http://jsfiddle.net/Z443Y/3/). As you can see, the text in the content column is not mindful of the other elements and the footer is pushed up to just below the sidebar.
I understand that this is what is supposed to happen since the content column's position is set to absolute but I'm not sure how else to make the column go up behind the header like that.
How can I modify or restructure my site so that it can look less like the above and more like this:

Notice that the column goes up above the header a little ways.
|
How do I make my content column work?
|
CC BY-SA 3.0
| null |
2011-04-09T17:36:41.173
|
2011-04-11T13:38:54.393
|
2011-04-11T13:01:36.223
| 695,984 | 695,984 |
[
"html",
"css",
"css-position"
] |
5,606,903 | 1 | 5,606,929 | null | 2 | 6,299 |
I have a toolbar, where I want to have one `UIBarButtonItem` centered and have another on the very right. However when I add the button on the right, my centered button gets shifted further to the left (see attached). I can't figure out how to get this resolved without using code (I would like to use interface builder only). Any ideas?

|
UIToolbar and Flexable/Fixed bar button items
|
CC BY-SA 3.0
| null |
2011-04-09T18:15:32.563
|
2011-04-09T18:20:14.740
| null | null | 127,853 |
[
"iphone",
"alignment",
"center",
"uibarbuttonitem",
"uitoolbar"
] |
5,607,097 | 1 | 5,607,135 | null | 4 | 1,322 |
I'm porting an OpenGL game from iPhone to Mac, and having problems with textures getting corrupted. I guess it's a memory problem.
The thing is I've crashed the mac 3 times now (happens random when the game launches), so it's getting difficult to debug this.
Is there any way I can force software render?

|
OpenGL development for mac in Xcode. Can I force software render?
|
CC BY-SA 3.0
| 0 |
2011-04-09T18:53:18.943
|
2014-05-22T14:11:28.940
| null | null | 85,057 |
[
"xcode",
"macos",
"opengl"
] |
5,607,188 | 1 | 5,607,219 | null | -1 | 1,321 |
Hi i just write function in C# that generate coordinate for cube but the problem i want just
generate the coordinate of cube sides not in the depth !!!
```
static class Util
{
public static List<string> GenerateCubeCoord(double bc,int nt,double stp)
{
List<string> list = new List<string>();
double CoorBase = bc;
int n = nt;
double step = stp;
int id = 1;
for (int x = 0; x < n; x++)
{
for (int y = 0; y < n; y++)
{
for (int z = 0; z < n; z++)
{
list.Add(string.Format("GRID {0} {1}.0 {2}.0 {3}.0 \n",
id, step * x + CoorBase, step * y + CoorBase, step * z + CoorBase));
id++;
}
}
}
return list;
}
```
}
I wat to generate all this coordinate not the corner coordinates of cube , in the image one
side of may cube

|
Generate coordinates for cube
|
CC BY-SA 3.0
| 0 |
2011-04-09T19:07:33.110
|
2011-04-09T22:26:31.450
|
2011-04-09T19:28:27.150
| 697,561 | 697,561 |
[
"c#",
"algorithm"
] |
5,607,295 | 1 | 5,607,453 | null | 1 | 1,608 |
I want to disply JList over the JTextArea but its showing it behind the JTextArea. I have attached two images to describe my problem through images.At runtime how can we set JList over the JTextArea?
## JList behind JTextArea:

## JList over JTextArea:

|
Want to display JList over the JTextArea
|
CC BY-SA 3.0
| null |
2011-04-09T19:29:27.543
|
2011-04-09T19:50:03.590
|
2011-04-09T19:42:01.697
| 50,476 | 646,023 |
[
"java",
"swing",
"jlist",
"jtextarea"
] |
5,607,352 | 1 | 10,062,559 | null | 13 | 15,045 |
I'm a linux newbie coming from a Windows background and I am trying to find a simple full-screen console-based plain-text editor. Something that emulates the look and feel of the Windows edit.com would be perfect.

Specifically, I'm looking for;
- - - - -
I'm using small-footprint versions of Ubuntu 904 and Centos 5.5.
edit:
I suppose what I'm looking for is a console editor that conforms to the normal keystrokes used by GUI editors, ie. cursor keys to move up/down/left/right, pg-up / pg-down keys to move up and down a page, home / end keys to move to the start or end of a line etc etc. In other words, the keys we all use without thinking, in any GUI environment, be it Windows or Linux.
|
Simple linux console text editor wanted
|
CC BY-SA 3.0
| 0 |
2011-04-09T19:36:32.350
|
2021-01-24T20:14:45.947
|
2021-01-24T20:14:45.947
| 213,269 | 514,445 |
[
"linux"
] |
5,607,427 | 1 | 5,607,562 | null | 3 | 16,654 |
I'm displaying a list of links for voting, similar to [Hacker News](http://news.ycombinator.com/). I want the following layout for each link:

The gray boxes highlight the four divs for each link listed.
I could define the width of the rank and arrow divs (the two little boxes), of course, and then indent the other text div accordingly. But this implementation has some downsides relative to my specific needs -- which I won't go into -- and more importantly, I just feel like there should be a more elegant way to achieve this. Something like a clear bottom for the rank and arrow divs, or maybe a property of the link headline div that tells the following div to appear directly below it.
Any ideas?
|
How to achieve "clear" for bottom of div, not just left and right
|
CC BY-SA 3.0
| 0 |
2011-04-09T19:46:42.403
|
2017-07-13T18:15:35.973
| null | null | 640,057 |
[
"css",
"alignment"
] |
5,607,869 | 1 | 5,710,010 | null | 8 | 13,455 |
I'm about to create a solution that will list events that will occur in specific days, and was looking for a Calendar control that I can deal with to make only the days with events clickable, and of course receive this click event and handle the rest myself in my Controller.
(something like the old asp:Calendar server-side control in Webforms).
is there any that match this scenario?
What I'm exactly looking for is a Mini Calendar, not a full Calendar like the one in Outlook.
this is what I'm exactly looking for:

|
Events calendar with clickable days using jQuery in ASP.NET MVC3
|
CC BY-SA 3.0
| 0 |
2011-04-09T20:57:33.293
|
2012-12-15T13:20:46.000
|
2011-04-13T09:31:27.210
| 555,946 | 555,946 |
[
"asp.net",
"asp.net-mvc",
"asp.net-mvc-3",
"calendar"
] |
5,608,222 | 1 | 5,608,237 | null | 114 | 261,820 |
I'm trying to apply a `box-shadow` on all four sides. I could only get it on 2 sides:

|
How to apply box-shadow on all four sides?
|
CC BY-SA 3.0
| 0 |
2011-04-09T22:01:30.850
|
2022-10-18T23:51:18.393
|
2017-02-24T14:14:00.560
| 6,887,672 | 629,305 |
[
"css",
"box-shadow"
] |
5,608,440 | 1 | 5,608,730 | null | 3 | 2,040 |
the code below is working, but I want to make sure it's . I'm nervous about having an empty Array inside my dictionary that I create from the plist, since typically it seems that if you don't, say, `initWithCapacity:1` then you often get memory errors once you start trying to add items.
At least, that's been my experience with NSMutableDictionary. However, this is the first time I'm trying to implement nested data objects, so perhaps the reason this code works is that the nested array is automatically initialized when it's imported as part of its parent dictionary?
Any and all comments appreciated. Thanks.
First, here's what the plist looks like that I'm using to create my dictionary:

Next, here's my code where I'm using the plist to create a dictionary, then adding an item to `dataArray`
```// Create a pointer to a dictionary
NSMutableDictionary *dictionary;
// Read "SomeData.plist" from application bundle
NSString *path = [[NSBundle mainBundle] bundlePath];
NSString *finalPath = [path stringByAppendingPathComponent:@"SomeData.plist"];
dictionary = [NSMutableDictionary dictionaryWithContentsOfFile:finalPath];
// Now let's see if we can successfully add an item to the end of this empty nested array. How 'bout the number 23
NSNumber *yetAnotherNumber = [NSNumber numberWithInt:23];
[[dictionary objectForKey:@"dataArray"] addObject:yetAnotherNumber];
// Dump the contents of the dictionary to the console
NSLog(@"%@", dictionary);```
Okay, fine, simple, good. When I Log the dictionary contents it shows that "23" has been added as an array value to `dataArray`. So the code works. But again, I want to confirm that I'm not "getting lucky" here, with my code just happening to work even though I'm not properly initializing that nested array. If so, then I could run into unanticipated errors later on.
So to sum up, `dataArray` is an empty array inside the .plist, so do I need to initialize it somehow (using, for example `initWithCapacity:` or something else) before I can properly populate it, or is the way I'm coding here just fine?
Thanks again.
Hey all. I've been doing continued research on this, in the interests of finding a satisfying answer. I think I may have stumbled upon something, via [this link on deep copying](http://www.mlsite.net/blog/?p=895). His [previous posts on deep copying](http://www.mlsite.net/blog/?p=213) had presented some code to do essentially what I was looking for above: create a mutable copy of a dictionary or array, from a plist, that also has mutable sub-structures.
However, as mentioned in the link above, it looks like these methods were superfluous, due to the [CFPropertyListCreateDeepCopy](http://developer.apple.com/library/ios/#documentation/CoreFoundation/Reference/CFPropertyListRef/Reference/reference.html) method, which can be invoked with a call such as
```
testData = CFPropertyListCreateDeepCopy(kCFAllocatorDefault, [NSDictionary dictionaryWithContentsOfFile:path], kCFPropertyListMutableContainersAndLeaves);
```
So, my question is, can I properly use `CFPropertyListCreateDeepCopy`, in the way shown, to achieve what I've been asking about here? In other words, can I use this method to import my dictionary from a plist with fully mutable, nested data objects?
As I mentioned in one of the comments, I know I can create a nested, mutable dictionary manually, but for complex data that's just not practical, and it seems unlikely that built-in methods to import a mutable plist don't exist. So, based on the above, it looks like I've possibly found the solution, but I'm still too new to this to be able to say for sure. Please advise.
(Side note: I would simply test the code, but as we've established, the current SDK is buggy with regard to allow you to edit immutable nested dictionaries, contrary to the documented behavior. So as before, I'm not just interested in whether this works, but whether it's )
Thanks in advance.
|
Do I need to initialize an iOS empty nested array that's part of a plist import?
|
CC BY-SA 3.0
| 0 |
2011-04-09T22:44:52.053
|
2011-04-13T21:17:27.670
|
2011-04-13T17:22:37.780
| 675,943 | 675,943 |
[
"iphone",
"objective-c",
"ios",
"nsmutablearray",
"nsmutabledictionary"
] |
5,608,505 | 1 | 5,608,526 | null | 1 | 350 |
I'm displaying a `GridView` using the following markup in my `default.aspx`:
```
<Columns>
<asp:BoundField DataField="SNo" HeaderText="SNo" />
<asp:BoundField DataField="ComponentName" HeaderText="Component Name" />
<asp:BoundField DataField="Size" HeaderText="Size" />
<asp:BoundField DataField="price" HeaderText="Price" />
<asp:BoundField DataField="TotalDownloads" HeaderText="Total Downloads" />
<asp:BoundField DataField="Description" HeaderText="Description" />
</Columns>
```
In the codebehind `default.aspx.cs` I have:
```
var result = (from Component comp in db
orderby comp.SNo
select new {
SNo = comp.SNo,
ComponentName = comp.ComponentName,
Size = comp.Size,
Price = comp.Price,
TotalDownloads = comp.TotalDownloads,
Description = comp.Description
}).ToList();
ComponentGridView.DataSource = result;
ComponentGridView.DataBind();
```
But the `GridView` looks like this:

I don't understand this. Why am I getting the same columns rendered twice?
|
problem with display of gridview in asp.net
|
CC BY-SA 3.0
| null |
2011-04-09T22:55:58.097
|
2011-04-09T23:06:20.780
|
2011-04-09T23:06:20.780
| 419 | 653,622 |
[
"asp.net",
"gridview"
] |
5,608,761 | 1 | null | null | 1 | 8,536 |
Hi there I have a UIView with a bunch of UITextfields. My problem is that my UITextfields are present from the top to the bottom of my screen. So when the keyboard pops up, it covers half the screen and consequently the UITextfields below...What can I do so that all the fields can be edited by simmply scrolling when the keyboard is visible?


|
How to make a UIView Scrollable?
|
CC BY-SA 3.0
| 0 |
2011-04-09T23:57:09.880
|
2014-04-05T00:04:19.247
| null | null | 657,514 |
[
"iphone",
"keyboard",
"uitextfield"
] |
5,609,327 | 1 | 5,609,353 | null | 0 | 55 |
I am using mysql. I have a table called 'messages_received'.
This is all messages for a particular user. What i would like to do is get a list of senders (from_member_id based on chrnological order.
In this case; the data would be like
```
59
10697
1451
3704
997
```

|
Help me write the sql to get distinct members
|
CC BY-SA 3.0
| null |
2011-04-10T02:13:11.507
|
2011-04-10T03:26:56.783
| null | null | 64,758 |
[
"mysql"
] |
5,609,421 | 1 | 5,610,144 | null | 7 | 255 |
After purchasing a new monitor and setting up a dual monitor display, VS 2010 is smudging. I'm not really sure how to describe it, but it is really annoying. See here:


I've tried reinstalling VS, but no luck. My video card is a ATI Radeon HD 5770, and I'm using Catalyst Control Center drivers for it. Any help would be appreciated. Thanks in advance.
|
Visual Studio 2010 "Smudging"
|
CC BY-SA 3.0
| 0 |
2011-04-10T02:41:15.880
|
2014-02-12T23:04:21.880
|
2011-04-10T06:26:21.363
| 366,904 | 700,518 |
[
"visual-studio",
"visual-studio-2010"
] |
5,609,531 | 1 | 5,610,538 | null | 2 | 1,188 |
Suppose I have three `<div>`s in my page,:
```
<div id="left" class="test" style="float:left;"></div>
<div id="right" class="test" style="float:right;"></div>
<div id="footer">footer</div>
```
with this css:
```
.test{ background:black;height:200px;width:200px;}
#footer{ background:yellow;margin:20px 0 0 0;}
```
What I want is:
- - - `margin: 20px;`
The result is below:

But I wonder why the floated divs also have the same margin as the `#footer`. They are floated, so they're independent of the other elements, why would the `#footer` could affect them?
|
Why is this block div affecting two floated divs?
|
CC BY-SA 3.0
| null |
2011-04-10T03:13:08.680
|
2014-06-05T10:56:01.333
|
2012-06-05T16:06:12.870
| 44,390 | 508,236 |
[
"css",
"css-float",
"margin"
] |
5,610,031 | 1 | 5,610,127 | null | 6 | 21,791 |
I am trying to do a plot with date on x-axis with an interval of 1 month and date values rotated for clarity.
```
r=runif(100)
d <- as.Date("2001/1/1") + 70*sort(r)
plot(d,r,type="l",xaxt="n")
axis.Date(1, at=seq(d[1],d[100],"month"), format="%m/%d/%Y")
```
This doesn't really work. I am trying to get something similar to the following graph:

|
plotting a graph with date on the x-axis in R
|
CC BY-SA 3.0
| 0 |
2011-04-10T05:45:33.393
|
2014-05-20T06:05:27.397
|
2020-06-20T09:12:55.060
| -1 | 236,215 |
[
"r",
"date",
"plot"
] |
5,610,426 | 1 | null | null | 11 | 4,622 |
I'm new to code contracts. I downloaded the latest build of code contract project (1.4.40314.1) and started to implement it in my project. When i enabled 'Runtume Checking' through Code Contracts Tab in VS2010, i got this Error
`Error 1 The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite" "@Application1ccrewrite.rsp"" exited with code -1.`
everytime i build the project. Plz help.
---
Now it's a major problem for me.
Every project using code contracts is showing same error in VS2010 Errors window and 'Application1ccrewrite.rsp' not found in output window, but it is there.
---
I tried out everything. I installed both versions (Pro, Std) but the problem persist. Plz help !
---

|
Code Contract : ccrewrite exited with code -1?
|
CC BY-SA 3.0
| 0 |
2011-04-10T07:48:51.367
|
2015-04-22T23:19:48.167
|
2011-04-12T04:47:18.880
| 496,841 | 496,841 |
[
"c#",
"code-contracts"
] |
5,610,939 | 1 | 5,611,087 | null | 2 | 1,302 |
Good Day,
I'm completely inexperienced in checking for memory leaks and so any help with this would be great.
I've just finished the bulk of the work for my iPhone app and I'm now trying to figure out why it stops working after a couple of runs. Using Instruments in Leaks and Allocations mode I can see there are two objects that are piling up memory quite quickly and not releasing:

I'm not a hundred percent sure where or why this is happening, but when I clicked on the arrow to the right of UIDeviceRGBColor the Responsible Caller is stated as
```
[UIColor allocWithZone];
```
I did a search through my project for UIColor and came up this (take note of _colorThreshold):

I believe my problem has to do with _colorThreshold which doesn't seem to be getting released:

I've tried adding autorelease to their initialisation arguments, but that made the app crash. Any advice here?
---
Here is the screen shot from LevelMeter.h 
|
Using Instruments for Memory Leak Checking in XCode?
|
CC BY-SA 3.0
| 0 |
2011-04-10T09:41:57.980
|
2011-04-20T11:22:53.147
|
2011-04-10T10:29:02.907
| 385,559 | 385,559 |
[
"iphone",
"objective-c",
"memory",
"memory-leaks",
"instruments"
] |
5,611,104 | 1 | null | null | 0 | 2,572 |
I am doing a small application which tries to do animation with an Image. I want the image to come into view  like this . How do I go about doing it in WPF using C# Code? Thank You
|
Image Animation in WPF
|
CC BY-SA 3.0
| null |
2011-04-10T10:15:18.040
|
2014-05-02T11:40:42.893
|
2014-05-02T11:40:42.893
| 759,866 | 561,730 |
[
"wpf",
"animation"
] |
5,611,125 | 1 | 5,611,139 | null | 2 | 1,713 |
let's say I have following SQL column:

Now, I want to do following:
In col_1, I have the value 'one'. If I check, which corresponding values I get in col_2 I get for that, I find 'two' and 'three'. So the results would be 'two' and 'three'. But from this result set, I want to only have those, that, used in `col_1`, have, in col_2, the corresponding value 'one'. So:
'two', in `col_1`, have 'one' in `col_2`, but three doesn't. So, from the result set of {'two', 'three'} only {'two'} would remain.
How can I make such a double-checking query with MySQL?
Thanks in advance!
|
SQL double comparison
|
CC BY-SA 3.0
| null |
2011-04-10T10:20:43.223
|
2011-04-10T10:38:01.630
| null | null | 299,711 |
[
"sql",
"comparison",
"double"
] |
5,611,140 | 1 | 5,611,846 | null | 4 | 1,188 |
Good Morning everybody,
Today I wanna concern about the topic "Image Manipulation in C++".
So far I am able to filter all the noisy stuff out of the picture and change the color to black and white.
But now I have two questions.
:
Below you see a screenshot of the image. What is the best way to find out how to rotate the text. In the end it would be nice if the text is horizontal. Does anybody have a good link or an example.

How to go on? Do you think I should send the image to an "Optical Character Recognizer" or should I filter out each letter ?
If the answer is what is the smallest ocr lib? All libs I found so far seem to be overpowered and difficult to implement in an existing project. (like gocr or tesseract)
If the answer is what is the best way to save each letter as an own image? Shoul i search for an white pixel an than go from pixel to pixel an save the coordinates in an 2D Array? What is with the letter "i" ;)
Thanks to everybody who will help me to find my way!Sorry for the strange english above. I'm still a language :-)
|
Image Processing - Rotation and Optical Character Recognizion
|
CC BY-SA 3.0
| 0 |
2011-04-10T10:23:04.997
|
2011-12-03T15:16:08.123
|
2011-12-03T15:16:08.123
| 698,410 | 698,410 |
[
"c++",
"image",
"image-processing",
"captcha"
] |
5,611,315 | 1 | 5,611,415 | null | 0 | 54 |
I'm new to memory management and have been playing around with Instruments in Leaks mode. This is my latest output and I was wondering if I could get some feedback from the SO community. It seems as if my total leak amount is quite high, even though the individual leaks are not that big (I think). Should I be concerned? Should I be looking to get rid of all of these leaks?
N.B. The app runs on the iPhone and doesn't use any network.

|
Reading this output from Instruments in Leaks mode?
|
CC BY-SA 3.0
| null |
2011-04-10T11:05:30.907
|
2011-04-10T11:23:29.507
| null | null | 385,559 |
[
"iphone",
"objective-c",
"memory",
"memory-management",
"memory-leaks"
] |
5,611,449 | 1 | 5,630,893 | null | 0 | 3,802 |
I have tried all the possible ideas to get rid of the problem, I know its a known issue, but how do I get past it, basically jQuery ui does not show the dialog when called twice, using
```
self.$popup.dialog("open");
```
I am using jQuery Ui 1.8.9 and jQuery 1.4.4
Here's my code:
```
self.$popup = $("#import_box_dialog").dialog({
autoOpen: false,
title: 'Import Albums',
modal: true,
position: "top",
height: 600,
maxWidth: 800 ,
minWidth: 400 ,
show:"slide",
width :700,
"buttons": [
{
text: "Import",
click: self.doImport
}
]
});
```
Another queer thing i saw was that the dialog box content gets embedded in the outer DOM element.
My dialog DOM structure is like : import_box->
```
<div class="media_import_box" >
<div id="import_box_dialog">
<ul id="media_content"></ul>
</div>
</div>
```
and when when it is displayed second time the DOM tree looks like this

The "import_box_dialog" actually moves out of the "import_box" div and I have no idea how it happens, but the display property is none, which does not change when i call the dialog again.
|
Jquery Dialog does not show content on second time
|
CC BY-SA 3.0
| 0 |
2011-04-10T11:29:18.003
|
2016-02-19T06:29:59.023
|
2016-02-19T06:29:59.023
| 13,302 | 611,229 |
[
"javascript",
"jquery-ui"
] |
5,611,596 | 1 | 5,612,764 | null | 0 | 622 |
I am making a side scrolling flash game. The level is pre-made so there aren't objects which spawn on runtime. Now I made this level quite long, but in the editor window it suddenly stops. But in game it still scrolls on.
This is in the editor. You can see that the scroll bar can't go left any more:

And in game:

The level is longer than then shown in editor. At first it was just putting an object at the border of the scene to increase it. But that won't work anymore. How can I increase the scene width?
|
Increase Flash scene length
|
CC BY-SA 4.0
| null |
2011-04-10T12:03:21.500
|
2021-06-01T14:41:50.427
|
2021-06-01T14:41:50.427
| 214,143 | 569,776 |
[
"flash",
"cs4"
] |
5,611,697 | 1 | 5,708,061 | null | 9 | 2,075 |
I'm looking into developing a web application hosted on Amazon Web Services and I have a question regarding it's architecture.
Looking at the diagram below from Amazon, they've got 3 layers; a web server serving users via HTTP, an application server processing business logic, and a database server. This is perfect for our use and the separation of web and application logic is great, however I have a question regarding the communication between the layers.
The app's code is going to be written in PHP. The communication between the application server and the database server can be done by PHP's mysqli extension (to the host db server via port 3306 by default). This is fine, however I'm unsure how communication would be made between the web server and the application server during a user's HTTP request, and what the best way of doing it is.
I've read up about XML/RPC, or possibly JSON/RPC, but is this the right thing that I'm looking for? Or is communication between different PHP server layers usually done another way?
Any advice would be greatly appreciated.

|
Communication between PHP web app server layers on Amazon Web Services
|
CC BY-SA 3.0
| 0 |
2011-04-10T12:23:42.637
|
2011-04-25T03:27:25.850
| null | null | 383,603 |
[
"php",
"web-applications",
"architecture",
"amazon-ec2"
] |
5,611,852 | 1 | 5,611,985 | null | 2 | 79 |
I just would like to make a simple dataBinding between a textbox field and a dataGridView control..
How can I make this?

With Winforms I would add a Databinding with this
```
NameTextBox.DataBindings.Add("Text", ds, "Categories.Category_Product.ProductName");
```
But I'm trying to do this in wpf and I don't see how to make this..
Here's the code for the page.
```
public partial class Categories : Window
{
public Categories()
{
InitializeComponent();
DataTable dt = CATEGORIE_MANAGER.GetList(false);
listViewListe.ItemsSource = dt.DefaultView;
cbbParent.ItemsSource = dt.DefaultView;
}
}
```
How can I link the textBox with the ListViewListe? Should I use the dataContext? How can I do that?
Thanks
|
How to make simple databinding
|
CC BY-SA 3.0
| 0 |
2011-04-10T12:55:12.323
|
2011-04-10T13:31:06.147
|
2020-06-20T09:12:55.060
| -1 | 142,234 |
[
"c#",
"wpf",
"data-binding"
] |
5,612,297 | 1 | 5,612,502 | null | 4 | 8,194 |
I'm styling a lightbox div with the following properties:
```
#lightbox {
border: 0.3em solid #acaeb0;
-webkit-border-radius: 1em;
background: #eee -webkit-gradient(linear, 0% 60%, 0% 100%, from(#eee), to(#ccc));
-webkit-box-shadow: 0 0 0.6em 0.3em #888;
}
```
Problem is that the resulting rounded corners looks very ugly (using safari5):

Problem is the white space at the rounded corner.
Do you know how I can avoid this behavior?
EDIT:
After adding the `-webkit-background-clip: padding-box;` property it looks better but not perfect:

I reduced the width of the border but it looks the same with thick borders. Do I have to set another property to make it perfect looking?
EDIT2:
Seems to be a Bug of webkit:
[https://bugs.webkit.org/show_bug.cgi?id=21819](https://bugs.webkit.org/show_bug.cgi?id=21819)
|
-webkit-border-radius looks ugly
|
CC BY-SA 3.0
| 0 |
2011-04-10T14:10:21.487
|
2011-09-01T01:16:27.423
|
2011-04-10T17:30:37.630
| 235,420 | 235,420 |
[
"html",
"safari",
"webkit",
"css"
] |
5,612,506 | 1 | 5,612,781 | null | 40 | 129,818 |
I want to use Helvetica Neue Condensed Bold on my webpage but it doesn't seem to be working. I have tried this: [http://jsfiddle.net/ndFTL/](http://jsfiddle.net/ndFTL/) but it does not work, it simply shows up as Helvetica Neue Bold.
I have Helvetica Neue Condensed Bold installed:

Could anyone please help me out?
|
How can I use Helvetica Neue Condensed Bold in CSS?
|
CC BY-SA 3.0
| 0 |
2011-04-10T14:45:18.777
|
2020-06-26T15:40:35.070
|
2011-04-10T14:49:53.173
| 313,758 | null |
[
"css",
"fonts"
] |
5,612,597 | 1 | 5,612,645 | null | 0 | 49 |
My problem is the following..

The help that I need is to only SELECT when both prp_response <> 1 for each of prp_hist_id
so it will list those ones (DISTINCT)
For example in this case will only SELECT only the prp_hist_id = 21 since both prp_response <> 1
Hope I was clear enough and any help would be greatly appreciated. Thank you.
|
SQL selecting a single record by comparing the different fields
|
CC BY-SA 3.0
| null |
2011-04-10T15:00:46.083
|
2011-04-11T07:51:12.653
|
2011-04-10T15:21:32.740
| 565,903 | 577,761 |
[
"sql",
"sql-server",
"tsql"
] |
5,612,782 | 1 | 7,381,908 | null | 3 | 7,291 |
I have problem installing SwingX in my Netbeans IDE. I want to play with JXPanel and related components but i could not get right library and get it going.
I tried to download swingx.jar but there is no valid link available in internet. I somehow managed to download swingx-1.6.jar, swingx-beaninfo-0.9.7 and swingbean.jar. I imported these jar files into the new library i created "SwingX" using tools->library and after that went to tools->palette->Swing/AWT Components and added a new palette group called SwingX and added the created library (SwingX) into it. Now i get a block in my IDE as shown in the figure.

Then i added the library into my project which is shown in the and when i tried to insert JXXollapsiblePane from the pallete group into a JFrame i am gettign the following error shown in .


|
Installing SwingX in Netbeans
|
CC BY-SA 3.0
| 0 |
2011-04-10T15:34:38.240
|
2011-09-11T23:10:33.840
| null | null | 402,610 |
[
"java",
"swing",
"netbeans-6.9",
"swingx"
] |
5,613,290 | 1 | 5,616,569 | null | 2 | 4,363 |
I have 2 ids on my page as;
```
<div id="a">
<div id="b"></div>
</div>
```
With styling;
```
#a {
height: 25px;
width: 100px;
background-color: #9DBA6A;
}
#b {
height: 25px;
width: 25px;
background-color: #FF7E00;
}
```
I want to stick div b on div `a`'s bottom with some -ve margin or padding and I want to remain its position like that when div `a`'s height changes. The layout cannot be altered.
Here is a diagram;

You can see my fiddle [here](http://jsfiddle.net/shP3D/) and the complete layout [here](http://jsfiddle.net/7KTe6).
|
div bottom float - css
|
CC BY-SA 4.0
| null |
2011-04-10T16:58:48.890
|
2023-02-11T09:41:23.433
|
2023-02-11T09:40:59.627
| 472,495 | 484,082 |
[
"css"
] |
5,613,302 | 1 | null | null | 5 | 3,312 |
Sometimes I notice the Android emulator starts with a very small font size. This seems to happen randomly. Other times it has a normal font size.
I use ADT 10.0.1.
Do you know what is the problem?
 
|
Small font size in Android emulator
|
CC BY-SA 3.0
| 0 |
2011-04-10T16:59:56.280
|
2016-01-07T02:52:12.703
| null | null | 639,722 |
[
"android",
"fonts",
"size",
"emulation",
"adt"
] |
5,613,467 | 1 | 5,613,476 | null | 7 | 7,716 |
Below is my table screenshot:

Data after insertion

Code in C#
```
SqlConnection con = new SqlConnection(connectionsession.Con);
con.Open();
SqlCommand cmd = new SqlCommand("finalinsert", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@fid", SqlDbType.Int)).Value = flightsession.Sflightid;
cmd.Parameters.Add(new SqlParameter("@fcid", SqlDbType.Int)).Value = flightsession.Sflightcostid;
cmd.Parameters.Add(new SqlParameter("@ftid", SqlDbType.Int)).Value = flightsession.Sflighttimingid;
cmd.Parameters.Add(new SqlParameter("@frdn", SqlDbType.Date)).Value = DateTime.Now.ToString("dd-MM-yyyy");
cmd.Parameters.Add(new SqlParameter("@ford", SqlDbType.Date)).Value = flightsession.Regdate;
cmd.Parameters.Add(new SqlParameter("@uid", SqlDbType.Int)).Value = loginsession.Auser;
cmd.Parameters.Add(new SqlParameter("@paid", SqlDbType.Int)).Value = "1";
cmd.Parameters.Add(new SqlParameter("@source", SqlDbType.VarChar)).Value = flightsession.Sscource;
cmd.Parameters.Add(new SqlParameter("@destination", SqlDbType.VarChar)).Value = flightsession.Sdestination;
cmd.Parameters.Add(new SqlParameter("@fn", SqlDbType.VarChar)).Value = flightsession.Sflightname;
cmd.Parameters.Add(new SqlParameter("@fc", SqlDbType.VarChar)).Value = flightsession.Total;
cmd.Parameters.Add(new SqlParameter("@fty", SqlDbType.VarChar)).Value = flightsession.Stype;
cmd.Parameters.Add(new SqlParameter("@fcl", SqlDbType.VarChar)).Value = flightsession.Sflightclass;
cmd.Parameters.Add(new SqlParameter("@ft", SqlDbType.Time)).Value =flightsession.Sflighttime;
cmd.ExecuteNonQuery();
MessageBox.Show("Succesful");
con.Close();
flightreceipt ob18 = new flightreceipt();
ob18.ShowDialog();
this.Hide();
```
Code for creating procedure in SQL server 2008
```
ALTER procedure [dbo].[finalinsert] @fid int,@fcid int,@ftid int,@frdn date,@ford date,@uid int,
@paid int,@source varchar,@destination varchar,@fc varchar,@fty varchar,@fcl varchar,@ft time(7) ,@fn varchar
AS
INSERT INTO [shangrila].[dbo].[flight_reg_table]
([flight_id]
,[flight_cost_id]
,[flight_time_id]
,[flight_reg_date_now]
,[flight_on_reg_date]
,[user_id]
,[paid]
,[source]
,[destination]
,[flight_name]
,[flight_cost]
,[flight_type]
,[flight_class]
,[flight_time])
VALUES
(@fid,
@fcid,
@ftid,
@frdn,
@ford,
@uid,
@paid,
@source,
@destination,
@fn,
@fc,
@fty,
@fcl,
@ft)
```
I tried to figure out why! But i am stuck.
Remember all format which I am inserting is string.
Thanks.
|
After inserting, only one character is inserted of "string" in database
|
CC BY-SA 3.0
| 0 |
2011-04-10T17:24:48.300
|
2017-11-16T04:45:11.627
|
2011-04-10T17:33:50.743
| 41,956 | 1,373,033 |
[
"c#",
".net",
"sql-server",
"tsql",
"stored-procedures"
] |
5,614,165 | 1 | 5,614,505 | null | 0 | 62 |
I have an implementation of Animation.
This functions correct in IE8 and Firefox, however this doesnt work in IE7.
[http://www.davincispainting.com/generalcontact.aspx](http://www.davincispainting.com/generalcontact.aspx)
For some reason the Annimation scrolls over top of the Purple Div for IE7, when it should start behind it, as demonstrated in IE8. Why is that?

|
Annimation Issue for IE7 and not IE8
|
CC BY-SA 3.0
| null |
2011-04-10T19:30:45.567
|
2011-04-11T01:06:14.210
|
2011-04-11T01:06:14.210
| 598,931 | 598,931 |
[
"css"
] |
5,614,553 | 1 | 5,614,978 | null | 4 | 2,952 |
I am drawing a triangle on a Canvas, something like:
```
canvas.moveTo(0, 30);
canvas.lineTo(40, 0);
canvas.lineTo(40, 40);
canvas.lineTo(40, 40);
canvas.lineTo(0, 30);
```
And get proper triangle on my Canvas. But I need to curve the sides a little and fill that path with specific color. What is the easiest way to do this? Drawing arcs? But how to fill the object?

Thanks!
|
Curved sides of triangle path?
|
CC BY-SA 3.0
| null |
2011-04-10T20:39:03.667
|
2011-04-10T21:50:56.770
| null | null | 584,513 |
[
"java",
"android",
"graphics",
"canvas",
"2d"
] |
5,614,817 | 1 | 5,615,346 | null | 1 | 3,874 |
I have gone through most of the posts here and on the internet. I did find a lot of the answers I was looking but one problem remains and I am not sure how to solve it: Basically, I have a setup in IB as follows:

There are several text fields that the user fills in one by one. However when the user finishes with the "City" text field, he has to press "DONE" on the keyboard to resign it, only then can he go to the "Telephone" field and fill the rest. I have implemnted the method to move the view up when the user starts editing the "Telephone" field but that only happens when the "Telephone" field is clicked. But, going from top to bottom, after finishing the "City" field, the user doesn't even see the "Telephone" field, so how can he click on it and consquently, how can the view move up?
Im confused. I have implemented a scroll view but when I try to scroll the screen up nothing happens.



|
UIScrollview implemented, but UITextfields still covered by keyboard
|
CC BY-SA 3.0
| null |
2011-04-10T21:23:28.757
|
2017-07-01T12:58:00.927
| null | null | 657,514 |
[
"iphone",
"uiscrollview"
] |
5,615,110 | 1 | 5,617,939 | null | 3 | 8,760 |
Using jquery datatable ([http://www.datatables.net/](http://www.datatables.net/)) on the html page, Want to send data generated by query from python to javascript, so that it can be printed in the table. If someone can provide a sample implementation for this or a starter link, it would be awesome.
The hierarchical relationship between the models is as follows:
UserReportecCountry (one) to UserReportedCity(many)
UserReportedCity(one) to UserReportedStatus(many)
```
class UserReportedCountry(db.Model):
country_name = db.StringProperty( required=True,
choices=['Afghanistan','Aring land Islands']
)
class UserReportedCity(db.Model):
country = db.ReferenceProperty(UserReportedCountry, collection_name='cities')
city_name = db.StringProperty(required=True)
class UserReportedStatus(db.Model):
city = db.ReferenceProperty(UserReportedCity, collection_name='statuses')
status = db.BooleanProperty(required=True)
date_time = db.DateTimeProperty(auto_now_add=True)
```
The HTML code includes jquery , datatable javascript libraries. The datatable javascript library is configured to allow multicolumn sorting.
```
<!--importing javascript and css files -->
<style type="text/css">@import "/media/css/demo_table.css";</style>
<script type="text/javascript" language="javascript" src="/media/js/jquery.js"></script>
<script type="text/javascript" src="/media/js/jquery.dataTables.js"></script>
<!-- Configuring the datatable javascript library to allow multicolumn sorting -->
<script type="text/javascript">
/* Define two custom functions (asc and desc) for string sorting */
jQuery.fn.dataTableExt.oSort['string-case-asc'] = function(x,y) {
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
};
jQuery.fn.dataTableExt.oSort['string-case-desc'] = function(x,y) {
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
};
$(document).ready(function() {
/* Build the DataTable with third column using our custom sort functions */
// #user_reported_data_table is the name of the table which is used to display the data reported by the users
$('#user_reported_data_table').dataTable( {
"aaSorting": [ [0,'asc'], [1,'asc'] ],
"aoColumns": [
null,
null,
{ "sType": 'string-case' },
null
]
} );
} );
</script>
<!-- Table containing the data to be printed-->
<div id="userReportedData">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="user_reported_data_table">
<thead>
<tr>
<th>Country</th>
<th>City</th>
<th>Status</th>
<th>Reported at</th>
</tr>
</thead>
<tbody>
<tr class="gradeA">
<td>United Status</td>
<td>Boston</td>
<td>Up</td>
<td>5 minutes back</td>
</tr>
</tbody>
</table>
```
The code excerpt does the query of the data, puts the data in a "template" and send it to the HTML page ( this is off-course not working right now :( )
```
__TEMPLATE_ALL_DATA_FROM_DATABASE = 'all_data_from_database'
def get(self):
template_values = {
self.__TEMPLATE_ALL_DATA_FROM_DATABASE: self.get_data_reported_by_users()
}
self.response.out.write(template.render(self.__MAIN_HTML_PAGE, template_values))
def get_data_reported_by_users(self):
return db.GqlQuery("SELECT * FROM UserReportedCountry ORDER BY country_name ASC")
```
1] Jquery
2] Jquery datatable
3] Google app engine
4] Python
5] Django.
thank you for reading.
[EDIT#1]
Code based on the response given by @Mark
Tried the following
```
<!-- script snippet to setup the properties of the datatable(table which will contain site status reported by the users) -->
<script type="text/javascript">
/* Define two custom functions (asc and desc) for string sorting */
jQuery.fn.dataTableExt.oSort['string-case-asc'] = function(x,y) {
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
};
jQuery.fn.dataTableExt.oSort['string-case-desc'] = function(x,y) {
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
};
$(document).ready(function() {
/* Build the DataTable with third column using our custom sort functions */
// #user_reported_data_table is the name of the table which is used to display the data reported by the users
$('#user_reported_data_table').dataTable( {
"aaSorting": [ [0,'asc'], [1,'asc'] ],
"aoColumns": [
null,
null,
{ "sType": 'string-case' },
null
],
/* enabling serverside processing, specifying that the datasource for this will come from
file ajaxsource , function populate_world_wide_data
*/
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/ajaxsource/populate_world_wide_data"
} );
} );
</script>
<div id="userReportedData">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="user_reported_data_table">
<thead>
<tr>
<th>Country</th>
<th>City</th>
<th>Status</th>
<th>Reported at</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
```
Python code, name of the file is ajaxsource.py
from django.utils import simplejson
from google.appengine.ext import db
```
def populate_world_wide_data(self,request):
my_data_object = db.GqlQuery("SELECT * FROM UserReportedCountry ORDER BY country_name ASC")
json_object = simplejson.dumps(my_data_object)
self.response.out.write( json_object, mimetype='application/javascript')
```
This however only showed "processing" on the table.
Couple of queries, How would the datatable know where to print the country, where to print the city and status?
[EDIT#2] Code based on the response given by @Abdul Kader
```
<script type="text/javascript" src="/media/js/jquery.dataTables.js"></script>
<!-- script snippet to setup the properties of the datatable(table which will contain site status reported by the users) -->
<script type="text/javascript">
/* Define two custom functions (asc and desc) for string sorting */
jQuery.fn.dataTableExt.oSort['string-case-asc'] = function(x,y) {
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
};
jQuery.fn.dataTableExt.oSort['string-case-desc'] = function(x,y) {
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
};
$(document).ready(function() {
/* Build the DataTable with third column using our custom sort functions */
// #user_reported_data_table is the name of the table which is used to display the data reported by the users
$('#user_reported_data_table').dataTable( {
"aaSorting": [ [0,'asc'], [1,'asc'] ],
"aoColumns": [
null,
null,
{ "sType": 'string-case' },
null
]
} );
} );
</script>
<!-- Table containing the data to be printed-->
<div id="userReportedData">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="user_reported_data_table">
<thead>
<tr>
<th>Country</th>
<th>City</th>
<th>Status</th>
<th>Reported at</th>
</tr>
</thead>
<tbody>
<tr class="gradeA">
{% for country in all_data_from_database %}
<td>{{country}}</td>
{%endfor%}
</tr>
</tbody>
</table>
```
Python code --
```
__TEMPLATE_ALL_DATA_FROM_DATABASE = 'all_data_from_database'
def get(self):
template_values = {
self.__TEMPLATE_ALL_DATA_FROM_DATABASE: self.get_data_reported_by_users()
}
#rendering the html page and passing the template_values
self.response.out.write(template.render(self.__MAIN_HTML_PAGE, template_values))
def get_data_reported_by_users(self):
return db.GqlQuery("SELECT * FROM UserReportedCountry ORDER BY country_name ASC")
```
Item printed in the html page:

[EDIT#3]
I modified the solution given by @Abdul Kader a bit and the following has worked
HTML code:
```
<!-- Table containing the data to be printed-->
<div id="userReportedData">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="user_reported_data_table">
<thead>
<tr>
<th>Country</th>
<th>City</th>
<th>Status</th>
<th>Reported at</th>
</tr>
</thead>
<tbody>
{% for country in countries %}
{%for city in country.cities %}
{%for status in city.statuses %}
<tr class="gradeA">
<td>{{country.country_name}}</td>
<td>{{city.city_name}}</td>
<td>{{status.status}}</td>
<td>{{status.date_time }}</td>
</tr>
{%endfor%}
{%endfor%}
{%endfor%}
</tbody>
</table>
```
Python code:
def get(self):
```
__TEMPLATE_ALL_DATA_FROM_DATABASE = 'countries'
country_query = UserReportedCountry.all().order('country_name')
country = country_query.fetch(10)
template_values = {
self.__TEMPLATE_ALL_DATA_FROM_DATABASE: country
}
self.response.out.write(template.render(self.__MAIN_HTML_PAGE, template_values))
```
Enhancement Request: I believe this is a very basic way to do this and there might be a solution that can involve a bit of ajax or more elegance. If someone has a example or a open source project that is using datatables based on python, please let me know.
Code review request: Can someone please review the code that i have done and let me know if i am doing a mistake or something that can be done better or in a more efficient manner.
|
How to send data generated from python to jquery datatable for rendering
|
CC BY-SA 3.0
| 0 |
2011-04-10T22:17:48.990
|
2011-04-13T04:00:43.163
|
2011-04-13T04:00:43.163
| 639,582 | 639,582 |
[
"jquery",
"python",
"google-app-engine",
"datatable"
] |
5,615,270 | 1 | 5,653,277 | null | 10 | 1,082 |
For a school project we have to build a web app. I'll be creating something where people can keep track of their classes, their homework, and their free time. A planner/calendar. (I'm making it sound really lame here but hey, I'm tired and English isn't my first language ;) )
I'll be working in CodeIgniter for the PHP logic, combined with the usual.. CSS, jQuery, mySQL. PHP is a requirement for the course; I chose to do this in CI because well.. I wanted to learn the framework. We kind of have to show off what we can do at this point of our 'school career'.
Anyway, I would like to ask for some insights regarding a feature I want to implement. At the top of my page, I would like to show a bar which contains the days of the month. Below the day number, I would be showing how many tasks are added on that day by means of some dots. When the user clicks previous or next, I want to show the previous/next month's days. I also want some sort of slider underneath this box which the user can use to slide left and right, and cycle through the days that way. I hope that made sense?
EDIT 2: I want the slider to be . If the user slides to the previous or next months, or clicks the buttons, I want it to load the days of the previous/next months and show those. Also, say we're at the 26th of a month, the slider would have to show something like 10-31 of this month AND 1-10 of the next month. I suppose I'll also have to change my month indication (not like in the image here) so a user knows when another month starts (I'll show them the name of the month).
Here's a picture (don't mind the day numbers being messed up, I was lazy doing that correctly in Photoshop. will fix that tomo):

I've been looking at the jQuery UI sliders. I suppose I'd have to grab the number of days from a database or by using PHP? I guess the [cal_days_in_month](http://php.net/manual/en/function.cal-days-in-month.php) function could come in handy here. When the user clicks on the arrows or slides left or right, I don't want the page to refresh. Should I go with ajax calls there? I'm not quite sure how to implement this, to be honest. The numbers are also links to a calendar type of view which shows underneath this bar.
Could I possibly use the CI Calendar class for this? Or is it more for full-fledged google calendar-type of calendars? I thought [this screencast](http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-the-calendar-library/) could perhaps be useful?
If possible, could someone please provide some insights on how to start working on this and which plugins/etc I could perhaps use? I'm not sure where to start, to be honest. I'm sure I can work this out somehow, but I guess it'd be nice to get a kickstart by means of some help here. The main problem I'm seeing is the slider/next/previous thing and loading in the previous/next month's days.
Thanks in advance.
EDIT: I realise some people might say/think 'OMG, why don't you just use the skills you have instead of trying something you have to ask us about!'. Well, this is because I actually want to learn something while doing this project. Keep in mind, I'm not asking for lines of code here, I'm just asking for some insight on where to start and what stuff to use; perhaps little snippets that can help me out. Thanks.
UPDATE:
I got a very basic 'day bar' working. Still without a slider, nor do the previous and next buttons work, but hey.. at least it fills it in dynamically. It shows the 5 days previous to the current day, then this month till the end. Whatever is left to fill in gets filled with days of the next month. Quite basic. However, I do have a couple of questions!
Since someone told me yesterday that I was breaking design patterns by doing some stuff the way I was doing it, I'm extremely paranoid about the way I'm working now and I would really like some feedback from 'CodeIgniter pro's'. To fill in the 'day bar', I created a helper with a couple of methods. (One method to dynamically fill that 'month year' thing you see in the picture, another method init() which loads the list of the days, like I explained before). I loaded this helper in the controller and I'm now using the methods in my view:
```
<ul>
<?php
init($current_day_of_month, $current_month,
$current_year, $days_in_current_month, $show_history);
?>
</ul>
```
The helper then echoes my day values in my view. Is this good or bad practice? I kept thinking the wrong way when I wanted to start writing the code for this.. I wanted to have a function somewhere in my controller and then call it from the view, but I read that I shouldn't be doing it like that.. that I had to reverse my logic. I find it hard to wrap my head around the fact that I have to do this by sending arrays of data to my view (from my controller), so I opted for creating the helper. Good? Bad? Any tips, resources I should read, screencasts I should watch? Thanks a bunch.
|
Web app - slider showing days of the months feature
|
CC BY-SA 3.0
| 0 |
2011-04-10T22:56:07.373
|
2012-09-17T13:15:00.640
|
2012-09-17T13:15:00.640
| 1,288 | 613,721 |
[
"php",
"jquery",
"mysql",
"codeigniter"
] |
5,615,553 | 1 | 5,615,736 | null | 3 | 225 |
I have a CSS top-margin issue for a SlideShow Photo within IE7 only.
I cant locate the problem with the CSS.
[http://www.davincispainting.com/default.aspx](http://www.davincispainting.com/default.aspx)
In IE7- for some reason the SlideShow Photo does NOT have a top-margin.

In IE8- the SlideShow Photo does have normal top-margin:

|
IE7 CSS Horizontal Space Issue
|
CC BY-SA 3.0
| null |
2011-04-10T23:56:14.243
|
2011-04-11T00:37:00.090
| null | null | 598,931 |
[
"html",
"css"
] |
5,615,555 | 1 | 5,762,469 | null | 8 | 3,392 |
When you right click in a folder, Eclipse pops up a context menu that allows you to create different kinds of files. I'd like to add an option to add a kind of file of my own (with some constant data I'll want to put there). Is there an easy way to do it?

|
How to add my own file template to Eclipse?
|
CC BY-SA 3.0
| 0 |
2011-04-10T23:56:35.493
|
2018-04-22T09:06:49.723
|
2018-04-22T09:06:49.723
| 1,033,581 | 130,758 |
[
"eclipse"
] |
5,615,791 | 1 | 5,615,881 | null | 1 | 1,119 |
So, I'm trying to get all the comments for a certain course. The way it tells what course has which comments is by the course.php?cID=1563 for example. The cID is the identifer which performs this distinction.

```
<?php
// Get course information cID, prefix, code and dept info : name
$cID = filter_input(INPUT_GET, 'cID', FILTER_SANITIZE_NUMBER_INT);
if(!$cID) {
echo "No cID specified.";
exit;
}
$username = "###";
$password = "###";
$pdo2 = new PDO('mysql:host=localhost;dbname=####', $username, $password);
$pdo2->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
$sth2 = $pdo2->prepare('
SELECT Co.info, Co.date
FROM Course C, Comment Co
WHERE C.cID = Co.cID
AND cID = ?;
;');
$sth2->execute(array(
$cID
));
?>
```
```
<?php
// Did we get any *course detail*
if($sth2->rowCount() > 0) {
$row = $sth2->fetch(PDO::FETCH_ASSOC);
echo "<img class='left' style='margin:5px;' src='img/courseComment.png'/> <p> {$row['info']} </p>";
} else {
echo "No results.";
}
unset($sth2);
?>
```
Why does this happen? If someone could please help me with an explanation and code fix that would be greatly appreciated. Also The url has the cID of the page.
|
Ambiguous PDO Statement - Php?
|
CC BY-SA 3.0
| null |
2011-04-11T00:47:33.420
|
2011-07-13T15:44:22.773
|
2011-07-13T15:44:22.773
| 135,152 | 700,070 |
[
"php",
"mysql",
"mysql-error-1052"
] |
5,616,116 | 1 | null | null | 2 | 653 |
I am trying to add a thick shadow to a UILabel, without any blur. In photoshop I would use the "Spread" option to make the shadow look like this. It's for a comic book themed UI in an app I am developing. I cannot use images as the text is dynamic and different for each user.
Here is what I am after (on the left) and here is as far as I have gotten so far with CGShadowWithColor (on the right):

Anyone know how I can achieve this result?
|
thick shadow with no blur on UILabel
|
CC BY-SA 3.0
| 0 |
2011-04-11T02:03:41.220
|
2011-04-11T08:13:44.913
| null | null | 496,727 |
[
"iphone",
"uilabel",
"shadow"
] |
5,616,728 | 1 | 5,616,836 | null | 1 | 1,033 |
The problem I am having is only in IE 8 & 9. For some reason the background image for a div tag duplicates and part of the content flows to the duplicated image on the next row. This problem does not happen in Chrome, Safari, FireFox or older versions of IE.
The screenshot below shows the correct way it is suppose to look, which is taken from FireFox 3.6:

Now if you look at the screenshot below taken from an IE8 page, you can see the issue I am having. The problem begins on the row where you see the image named Anchor. Notice the background image duplicates down a row and part of the content goes to it.

If you go to the URL below you can see the live site:
[http://server1.todaysinternet.net/~kingdoms/index.php?option=com_jreviews&url=tag/listingcategories/appliances-_m166&Itemid=226#](http://server1.todaysinternet.net/~kingdoms/index.php?option=com_jreviews&url=tag/listingcategories/appliances-_m166&Itemid=226#)
|
IE 8 & IE 9 html / CSS rendering issue
|
CC BY-SA 3.0
| null |
2011-04-11T04:26:41.260
|
2011-04-11T05:28:03.013
|
2011-04-11T05:28:03.013
| 398,242 | 555,677 |
[
"html",
"css",
"xhtml",
"internet-explorer-8",
"internet-explorer-9"
] |
5,616,748 | 1 | null | null | 3 | 727 |
Does anyone know how to view comments in the method navigator in Xcode 4
In Xcode 3 these would put comments like:
```
???: Huh?
!!!: Woah
MARK: Aliens
TODO: Fix this
```
in here...

|
How to View Comments in the Method Navigator of Xcode 4?
|
CC BY-SA 3.0
| 0 |
2011-04-11T04:30:08.783
|
2011-09-04T11:19:30.260
| null | null | 519,493 |
[
"iphone",
"objective-c",
"xcode"
] |
5,616,918 | 1 | 5,621,634 | null | 14 | 5,781 |
I have made a small app for a client. The app scans a `files` directory which contains several text files. It then reads each file into a string. Every file has a title and the article text. The two parts are separated with a pipe character like this: `article_title|article_text`. The script displays a list of links to open each article. The text of the link is the same as the article title.
Now, the client has apparently deleted an article, but is seeing an entry for the deleted file like the image bellow:

I searched for the string on the web and could actually find pages showing similar strings, e.g. [here](http://www.vta2d.info/bud1-edsdb/) which is apparently a deleted blog post.
What could be the cause for this? Is the file really deleted?
P.S.
1. The client has set the app on an intranet and cannot give me access, he sent me a screenshot.
2. I also don't know what his server OS is.
3. I'm not sure what to tag this question, maybe you can change the tags to better ones.
|
What is Bud1% @ @ @ @E%DSDB` @ @ @?
|
CC BY-SA 3.0
| 0 |
2011-04-11T04:59:59.080
|
2020-05-07T19:44:52.837
|
2011-04-13T06:36:27.957
| 66,580 | 66,580 |
[
"php",
"osx-leopard",
"osx-server"
] |
5,617,467 | 1 | 5,617,530 | null | 2 | 162 |
I have a table "first":

I am trying to write a query.
```
If first.type = 'MM'
then replace this line in two new lines
where first.type = 'HH' and first.type = 'VV'.
```
For example : The line where first.type = 'MM':

I want to replace this line like that:

And the result:

Does someone have an idea on how this can be done?
I'm using MS SQL Server Management Studio Express.
|
SQL: How to replace one with two?
|
CC BY-SA 3.0
| null |
2011-04-11T06:18:43.840
|
2011-04-11T11:46:31.113
|
2011-04-11T06:47:17.263
| 15,168 | 572,853 |
[
"sql",
"sql-server-2005",
"replace",
"line"
] |
5,617,685 | 1 | 5,814,442 | null | 7 | 398 |
As I [learned](https://stackoverflow.com/questions/5616305) recently there are some types of expressions in which are automatically parsed by the FrontEnd.
For example if we evaluate `HoldComplete[Rotate[Style[expr, Red], 0.5]]` we see that the FrontEnd does not display the original expression:

Is it possible to control such behavior of the FrontEnd?
And is it possible to get complete list of expressions those are parsed by the FrontEnd automatically?
---
### EDIT
We can see calls to `MakeBoxes` when using `Print`:
```
On[MakeBoxes]; Print[HoldComplete@Rotate["text", Pi/2]]
```
But copy-pasting the printed output gives changed expression: `HoldComplete[Rotate["text", 1.5707963267948966]]`. It shows that `Print` does not respect `HoldComplete`.
When creating output `Cell` there should be calls for `MakeBoxes` too. Is there a way to see them?
|
Conversion of expressions by the FrontEnd
|
CC BY-SA 3.0
| 0 |
2011-04-11T06:44:39.013
|
2017-05-28T04:37:42.427
|
2020-06-20T09:12:55.060
| -1 | 590,388 |
[
"wolfram-mathematica",
"mathematica-frontend"
] |
5,618,506 | 1 | 5,618,576 | null | 4 | 27,962 |
I am having trouble sorting child nodes of a treeview in my winforms program. My treeview is populated by some XML files and it uses an internal text inside the xml files as Text property of nodes (So I think I cant sort them before adding them to the tree view, or if it is possible, since the xml files are big in size I dont want to waste the process). A populated treeview in my program looks like this:

As you can guess I want child nodes to sort like (I dont want HBM\D10 to come after HBM\D1) rather I want:
```
HBM\D1
HBM\D2
HBM\D3
etc...
```
I have already tried treeView1.Sort() and also adding beginUpdate and endUpdate but I had no suceess :(
I am using .NET 4, any tips would be appriciated
```
class NodeSorter : IComparer
{
public int Compare(object x, object y)
{
TreeNode tx = (TreeNode)x;
TreeNode ty = (TreeNode)y;
if (tx.Text.Length < ty.Text.Length)
{
return -1;
}
if (tx.Text.Length > ty.Text.Length)
{
return 1;
}
return 0;
}
}
```
|
Sorting child nodes of a treeview after populating the treeview in c# winforms
|
CC BY-SA 3.0
| 0 |
2011-04-11T08:10:53.237
|
2019-03-28T08:46:29.040
|
2011-04-11T08:47:15.467
| 658,031 | 658,031 |
[
"c#",
"winforms",
"sorting",
"treeview"
] |
5,618,528 | 1 | null | null | 1 | 91 |
My designer has designed the following navigation

He is wanting it implmented so that the dark bar underneath the nav animates to the current page on page load (think progress bar). No obvioulsy with PHP I can sort it so that the current `a` has a class so I can identify the current page, however I have no idea how I could animate the bar underneath the nav, does anyone have any advice?
|
css possibly jquery help
|
CC BY-SA 3.0
| null |
2011-04-11T08:13:14.400
|
2011-04-11T08:34:00.103
| null | null | 307,007 |
[
"javascript",
"jquery",
"css",
"dom-manipulation"
] |
5,618,565 | 1 | null | null | 0 | 1,128 |
I have a very simple cube with buying transactions details.
dimentions:
1. Time dimension with two hierarchies:
a. full date hierarchy: Year > Month > Day of Month
b. day of week hierarchy: DayOfWeek > Day of Month
1. Store dimention with single member: a. store id
The face table contains store id and time for each transaction.
The query goal is to return the count measure on transactions on selected stores in a specific time range arranged by day of week member.
For example: the results for the input store ids (111,222,444) and time range(5/1/10 - 6/1/10) are attached.

The query I`ve built:
`SELECT [DATETIME_DIM].[Hierarchy].[Day Of Week] * [Measures].[Count] ON columns, { {[STORE_DIM].[STORE ID].[111], [STORE_DIM].[STORE ID].[222], [STORE_DIM].[STORE ID].[444]} } on rows FROM [MY_CUBE] where [DATETIME_DIM].[2010].[May].[1] : [DATETIME_DIM].[2010].[June].[1]`
The problem with my query is that it returns the count of transactions on the entire fact table and not specific on the time range I`ve asked.
Thanks!
|
MDX query problem (count measure over specific time range)
|
CC BY-SA 3.0
| 0 |
2011-04-11T08:17:25.307
|
2011-04-29T14:37:48.013
|
2011-04-11T08:24:26.427
| 260,133 | 260,133 |
[
"mdx",
"ssas"
] |
5,618,668 | 1 | 5,618,791 | null | 4 | 17,471 |
I have a Rails application which generate HTML like this:
```
<a href="/ReadItLater/stock?qid=5618572&" data-remote="true">stock it</a>
```
When I click on this link in browser I can get information about AJAX request on Firebug, on Console tab. I can see the respond of the request:
```
$("#stock_5618528").hide();
```

But how can I set breakpoint on this line and debug this code?
|
How to debug Ajax request
|
CC BY-SA 3.0
| 0 |
2011-04-11T08:29:07.213
|
2012-07-20T15:19:27.757
|
2011-04-11T08:40:54.960
| 205,270 | 205,270 |
[
"javascript",
"ruby-on-rails",
"ajax",
"firebug"
] |
5,618,780 | 1 | 5,618,930 | null | 33 | 21,944 |
I'm trying to create a kind of a "game mode" menu similar to the one used by the "Cut the Rope" game to select the level pack:

What I want in particular is to achieve the same effect of showing the "current item" (in this case, the "2. Fabric Box" item) plus a bit of the previous and following items (to make sure the user is aware that there are more modes available by scrolling), with pagination enabled (to make the scroll view automatically "center" on these items).
This seems like a natural job for a UIScrollView with pagination enabled, however from the documentation it seems the pagination occurs on multiples of the view bounds.
So: if pagination occurs on multiples of the view bounds, is there any way to achieve this effect with a UIScrollView?
The fact that we see the full width of the screen would suggest that the UIScrollView frame's width would be 320px in this case, but each individual item would need to be smaller than that in order to show that little bit of the previous and next items, thus messing up the pagination...
|
UIScrollView with pagination + showing part of the previous/following pages
|
CC BY-SA 3.0
| 0 |
2011-04-11T08:41:12.340
|
2017-06-29T15:23:26.870
|
2014-05-08T23:36:12.727
| 1,358,722 | 374,516 |
[
"ios",
"iphone",
"objective-c",
"uiscrollview",
"programmatically-created"
] |
5,618,962 | 1 | 5,846,539 | null | 3 | 2,557 |
Greetings,
Can anybody tells how can I give image distortion effect to images like pinch, twirl, bathroom, punch, cylinder etc . Actually I am making a small image library for photo editing.
I tried Google it bit couldn't find much help.
If anybody can help or suggest me image distortion algorithm, I will be thankful.
Thank You!!

|
Twirl and pinch effect to images, Image distortion algorithm
|
CC BY-SA 3.0
| 0 |
2011-04-11T08:57:25.820
|
2011-05-01T04:53:26.180
| null | null | 528,459 |
[
"c#",
"java",
"android",
"algorithm",
"image-processing"
] |
5,618,971 | 1 | 5,622,004 | null | 1 | 829 |
[http://www.vector.safwanmanpower.com/](http://www.vector.safwanmanpower.com/)
I'm developing a website package,this website package will be given to third party companies
so if third party companies want to change background color,font face in css to change this I have created a webpage where all this css property are specified and in textbox they will select background color,font face values and this changes should effect in css file after submitting the changes.
My aim behind is this companies can make changes through webpage interface i don't want them to find css code and change the values their to make the work easy.

|
make permanent changes in css file through web interface?
|
CC BY-SA 3.0
| null |
2011-04-11T08:58:44.757
|
2011-04-11T13:25:07.470
| null | null | 435,559 |
[
"php",
"javascript",
"jquery",
"css"
] |
5,619,091 | 1 | 5,619,247 | null | 5 | 2,112 |
I have what seems a simple requirement, but I can't seem to achieve the desired result. My dataframes are rather large, so I will just give a screenshot:
What I want is: `if ps2c$ps == present2$pn then ps2c$sf == present2$sf`.
If it is not clear, for every `ps2c$ps` there is a `present2$pn` (present2 is just the mean data).
|
Create column based on another dataframe
|
CC BY-SA 3.0
| 0 |
2011-04-11T09:12:32.510
|
2016-01-26T16:49:49.763
|
2011-04-11T09:52:50.773
| 429,846 | 471,431 |
[
"r"
] |
5,619,387 | 1 | 5,619,430 | null | 0 | 1,275 |
Video frame looks like mozaik.
What wrong with it and how can be fixed?
[http://www.emgu.com](http://www.emgu.com)

Is any other library that can show video with less processor resources
|
WPF Emgu CV. Capture class cuts my video camera image(Mosaic)
|
CC BY-SA 3.0
| null |
2011-04-11T09:36:00.500
|
2011-04-11T09:40:11.497
| null | null | 508,330 |
[
"c#",
".net",
"wpf",
"video-capture"
] |
5,619,448 | 1 | 5,619,524 | null | 0 | 608 |
Please following the below image:

I want to transform a Rectangle with anchor point is center of its from P1 to P1' point.
I want to compute the bounding rectangle after rotate.
I use a solution is get new 4points: P1 => P1' and P2 => P2' etc...
But problems is: the rectangle ( I expect to get) is larger.
Please tell me a way to get it correctly.
Thanks.
|
How to get the bounding rectangle after rotate at a its conner from P1 to P1'?
|
CC BY-SA 3.0
| null |
2011-04-11T09:41:47.817
|
2011-04-12T07:21:09.527
| null | null | 513,404 |
[
"c++",
"algorithm",
"graphics"
] |
5,619,583 | 1 | 5,619,665 | null | 1 | 79 |
```
- (void)viewDidLoad {
NSArray* tmpArray = [[NSArray alloc] initWithObjects:@"Titre", @"Nom", @"Prenon",@"Adresse",@"Phone",@"Mobile",@"Mail",@"Site",@"Note",nil];
self.detailsTableView = tmpArray;
[tmpArray release];
[super viewDidLoad];
```
}
---
```
- (UITableViewCell *)tableView:(UITableView *)atableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
}
// Configure the cell...
cell.textLabel.text =[self.detailsTableView objectAtIndex:indexPath.row] ;
return cell;
```
}

|
problem in display in a tableView
|
CC BY-SA 3.0
| null |
2011-04-11T09:53:14.293
|
2011-04-11T10:00:07.907
| null | null | 673,352 |
[
"iphone",
"objective-c"
] |
5,619,672 | 1 | 5,628,061 | null | 1 | 1,110 |
In my iPhone App I want to add Graph as shown below
!
How can I plot this kind of graph in my iphone App using coreplot
please Help and Suggest
Thanks.
|
iPhone App:Plot a graph
|
CC BY-SA 3.0
| null |
2011-04-11T10:00:57.413
|
2011-04-11T22:02:03.393
|
2011-04-11T10:10:41.337
| 531,783 | 531,783 |
[
"iphone",
"ios4",
"core-plot"
] |
5,619,678 | 1 | null | null | 0 | 241 |

Hi All,
When i tried to execute RSExecutionLog_Update.dtsx to update my execution log data. it throws me this error. Can anyone help with this issue with me?
Thanks
|
SSRS Execution Log updating problem
|
CC BY-SA 3.0
| null |
2011-04-11T10:01:21.380
|
2011-04-15T04:15:50.287
| null | null | 474,260 |
[
"sql-server-2005",
"reportingservices-2005",
"reporting-services"
] |
5,620,018 | 1 | 5,620,169 | null | 0 | 784 |
Im trying to make my application module-structured but have a problem... My application has local address "myapp" and links to "C:/www/myapp/public" (Windows). When I try to access [http://myapp](http://myapp) (address based on virtual host) I get Default module executed (module:default, controller:index, action:index). But when I try to open [http://myapp/default](http://myapp/default) or [http://myapp/faxes](http://myapp/faxes) I get 404 browser page (not Zend exception). What am I doing wrong?
This is my project structure:

And this is my shortened application.ini:
```
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.upload_tmp_dir = APPLICATION_PATH "/../data/tmp"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.env = APPLICATION_ENV
resources.modules[] =
resources.layout.layoutPath = APPLICATION_PATH "/layouts"
resources.layout.viewSuffix = "phtml"
resources.layout.layout = "index"
resources.view.titleSeparator = " - "
resources.view.doctype = "XHTML1_STRICT"
resources.view.contentType = "text/html; charset=utf-8"
resources.view.encoding = "utf-8"
resources.view.ViewSuffix = "phtml"
resources.session.save_path = APPLICATION_PATH "/../data/session"
pluginPaths.Duck_Application_Resource = LIBRARY_PATH "/Duck/Application/Resource"
autoloaderNamespaces[] = "Duck"
```
|
Zend - module structure does not work properly
|
CC BY-SA 3.0
| null |
2011-04-11T10:31:22.210
|
2011-04-11T10:48:39.507
| null | null | 598,717 |
[
"zend-framework"
] |
5,620,468 | 1 | null | null | 2 | 310 |
This is what the weird view looks like, in Chrome on OS X on first load:

That blue bar running right across the screen is actually the navigation bar that should be at the top of the screen. See below.
This is what the original view looks like, and this is what it reverts to - once I scroll down (so that portion of the screen disappears) and scroll back up:

Edit1: I don't even know what code to post, if any because it is kinda random. If you ask some questions though, maybe something might jump out and I will know what code to either post or look at.
Thanks.
Edit2: Here is the code for the `div#navigation`:
```
<div id="navigation">
<div id="quota-info">
Plan: Chameleon<br />
# of Projects: 2 / 20<br />
# of Clients: 2 / 15<br />
Storage: 10.8 MB / 10.0GB <br />
</div>
<div id="user-info">
<span class="username">Hi Test</span><br />
Name: Test User<br />
Email: [email protected]<br />
Last Logged In: about 2 hours ago<br />
</div>
<ul>
<li><a href="/home/index"><img src="logo.png" /></a></li>
<li id="dashboard"><a href="/home/index">Dashboard</a></li>
<li id="settings"><a href="/settings">Settings</a></li>
<li id="logout"><a href="/logout">Logout</a></li>
</ul>
</div>
```
Here is the CSS:
```
#navigation {
font-family: Verdana, Arial, sans-serif;
font-size: 13px;
background: #2d343f;
background-image: url('../images/nav-textured-bg.png');
background-repeat: repeat;
padding: 5px 5px;
margin: 0px auto;
position: relative;
height: 75px;
}
#navigation a {
text-decoration: none;
padding: 10px 15px;
display: inline;
height: 35px;
line-height: 35px;
color: #c6c8cb;
}
#navigation ul {
width: 100%;
margin: 0 auto;
text-align: center;
}
#navigation li {
width: 100%;
display: inline;
list-style-type: none;
}
#navigation li img {
position: relative;
top: 15px;
}
```
Edit 3:
Here is another screenshot of how it looks when I scroll up. The top navigational bar is still there. This blue thing is not even the menu, it's like a screenshot of it. When I hover over the menu links, they don't work.

|
What causes this weird display ? I suspect it might be CSS or a bug in Chrome OS X?
|
CC BY-SA 3.0
| 0 |
2011-04-11T11:13:03.447
|
2013-05-22T07:51:58.173
|
2011-04-11T11:36:17.570
| 91,970 | 91,970 |
[
"html",
"css"
] |
5,620,511 | 1 | 5,620,619 | null | 0 | 853 |
I was exploring Nhibernate and have come across a problem.
I have the following Entities.

And the corresponding Dto for them

Now using the following query I am trying transform the Orders into Orderdto
```
select o
FROM Order o
join o.OrderItems
join o.Customer
```
The following transformation is not working probably because of Order being a composite type.
```
var query = session.GetNamedQuery("GetOrderSummaries")
.SetResultTransformer(Transformers.AliasToBean<OrderItemDto>());
```
Any out of box transformation available for such situations?
|
How to transform an entity into composite dto? (Fluent Nhibernate)
|
CC BY-SA 3.0
| 0 |
2011-04-11T11:18:39.313
|
2011-04-11T11:30:07.803
| null | null | 116,371 |
[
"fluent-nhibernate"
] |
5,620,559 | 1 | 5,620,807 | null | 0 | 173 |
I am looking to display number line in my application 
How this can be done? I also want to control number like programatically
|
Represent Number Line in iphone app
|
CC BY-SA 3.0
| 0 |
2011-04-11T11:23:10.967
|
2011-04-11T11:49:59.063
| null | null | 505,011 |
[
"iphone"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.