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
4,007,223
1
4,095,943
null
2
546
![alt text](https://i.stack.imgur.com/qDeyq.jpg) I want to create an auto-tunneler for Garena. What basically has to be done is iterate through all the items in the list box (in the right - I think that is what it is.), right click and click tunnel on each of them. I only have a C compiler with me atm. Any ideas on how to do this? What API calls and so on? EDIT: Few clarifications as I see my original question was rather vague. 1. I do not have the source code of Garena nor do I waish to reverse engineer it. 2. I want to write a standalone application which will send messages or mouse clicks to the window.I was under the impression that this is possible. Am I wrong?
How to iterate a list box and issue commands to all the items
CC BY-SA 2.5
null
2010-10-24T04:40:47.123
2010-11-04T10:58:29.960
2010-10-31T17:17:13.403
466,694
466,694
[ "c", "windows" ]
4,007,567
1
4,007,633
null
2
219
I would like to add a "preview" stripe to a site. I like what blogger does when you click to preview editing a post (Anteprima means preview in italian) ![alt text](https://i.stack.imgur.com/lwRwO.png) Do you know how to make it as a layer in order to plug it without modifying the main html code of my site?
How to add a "preview" stripe to my site
CC BY-SA 2.5
null
2010-10-24T08:41:37.177
2010-10-24T14:18:11.880
null
null
130,929
[ "javascript", "jquery", "html", "css" ]
4,007,598
1
null
null
2
2,528
I need to make design like this, ![alt text](https://i.stack.imgur.com/NO1ru.png) to make this possible i used dotted line as background of li and + icon as a list-style-image. but it's not looking same in all browsers. ``` <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> <li>item 4</li> <li class="last">item 5</li> </ul> ``` IE7 and 6 it's looking like this ![alt text](https://i.stack.imgur.com/bb5SR.jpg)
How to make cross browser compatible list with list-style image properly?
CC BY-SA 2.5
null
2010-10-24T08:52:35.727
2011-01-16T00:31:41.653
2010-10-24T09:00:22.267
84,201
84,201
[ "css", "xhtml" ]
4,007,689
1
null
null
1
557
I met a really strange problem while using UITextView, I try to use "GrowStyle" of UITextView, wire up the frame with contentSize, turn off the `.scrollEnabled`, Build & Run: but when click the bottom of the screen, the keyboard showing up, the UITextView moves up a short distance, and its Top lines disappear, here is the code: ``` - (void)viewDidLoad { [super viewDidLoad]; //Turn off the scrollEnabled. UITextView *growStyleText.scrollEnabled = NO; //Wire the growStyleText's contentSize to its frame, let it grow. CGRect selfHack = growStyleText.frame; selfHack.size = growStyleText.contentSize; growStyleText.frame = selfHack; //Make a UIScrollView UIScrollView *scroll.contentSize = selfHack.size; scroll.clipsToBounds = NO; [self.view insertSubview:scroll atIndex:1]; //Add the TextView on the ScrollView, make it scrollable. [scroll addSubview:growStyleText]; } ``` After click the last line, Keyboard shows up, then the Top line Disappears! I thought about for all day long, anybody seen this? how can I make Top line moves up instead of disappear? hard question for me, guess there may be simple answers, thank you, very much. ![alt text](https://i.stack.imgur.com/VIZsb.jpg) ![alt text](https://i.stack.imgur.com/s2nM7.jpg)
Keyboard eats my Top Line of text in UITextView !
CC BY-SA 2.5
null
2010-10-24T09:23:21.270
2010-10-25T00:50:17.373
2010-10-24T13:57:08.443
444,452
444,452
[ "iphone", "uiscrollview", "uitextview" ]
4,007,743
1
null
null
1
163
It's a continuation of this post : [What throws Internet Explorer into quirks mode?](https://stackoverflow.com/questions/3949941/what-throws-internet-explorer-into-quirks-mode) . I have a webpage, built on Django LFC CMS ( [http://snow4life.pl/](http://snow4life.pl/) ). Problem is that when I upload my files to server, the default templates ([http://bitbucket.org/diefenbach/lfc-theme-1.0/src/tip/lfc_theme/templates/lfc/base.html](http://bitbucket.org/diefenbach/lfc-theme-1.0/src/tip/lfc_theme/templates/lfc/base.html)) are somehow edited by the server and some random whitespaces are added before the DOCTYPE declaration. The declaration itself is moved somewhere in the `<body>` segment. This of course throws internet explorer into quirks mode. This is not the templates fault, as on the demo page it is working normally ( [http://demo.django-lfc.com/](http://demo.django-lfc.com/)). Do you have any ideas what can cause this ? I've tried uploading empty html pages, samples from w3c, editing it in hex mode and nothing works. --- I'm uploading via WinSCP. Here are the screenshots from edits in vi on server, winscp's editor on server, vim on my local disk and vi(hex) locally. ![enter image description here](https://i.stack.imgur.com/ha0dk.png)
Html page edited by the server after upload?
CC BY-SA 3.0
0
2010-10-24T09:49:07.493
2011-11-29T23:58:57.037
2017-05-23T12:24:45.570
-1
485,511
[ "html", "internet-explorer", "doctype", "quirks-mode" ]
4,008,235
1
4,009,010
null
0
643
I'm trying to invoke the below but the EventHander is not compatible with the RasConnectionEventArgs from my calling event, how would I invoke SetOverlayIcon and my notification icon on the UI thread? ``` Public Sub watcher_Connected(ByVal sender As Object, ByVal e As RasConnectionEventArgs) If InvokeRequired Then BeginInvoke(New EventHandler(AddressOf OnRegChanged)) Else TaskbarManager.Instance.SetOverlayIcon(My.Resources.LockIcon, "Connected") Me.NotifyIcon.ShowBalloonTip(5000, "Connected", e.Connection.EntryName, ToolTipIcon.Info) End Sub ``` ![alt text](https://i.stack.imgur.com/AMEC7.png)
EventHandler Invoking question
CC BY-SA 2.5
null
2010-10-24T12:41:42.973
2010-10-24T16:26:31.750
2010-10-24T16:11:48.703
2,278,201
2,278,201
[ "vb.net" ]
4,008,257
1
4,008,277
null
0
2,260
I am working with Visual studio 2008. I want to work on WPF DataGrid control. I downloaded [WPF toolkit](http://wpf.codeplex.com/releases/view/40535) and install it, and then added toolkit reference in my project, but it does not recognize Datagrid control, and does not show it in Toolbox, I even try to add it in toolbox through but when I click WPFToolkit.dll, it gives the error. And even if I write code in XAML it does not recognize dataGrid. ![alt text](https://i.stack.imgur.com/0IBJD.jpg)
WPF DataGrid not appear in Toolbox?
CC BY-SA 2.5
0
2010-10-24T12:46:56.827
2010-11-07T10:50:57.157
2010-11-07T10:50:57.157
228,755
228,755
[ "datagrid", "wpftoolkit", "toolbox", ".net-4.0", "wpf-4.0" ]
4,008,276
1
null
null
8
14,603
When I 'Build and Analyze" this code in Xcode, I get a warning that I don't understand. Here's the method with the problem: ``` -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch * touch = [touches anyObject]; CGPoint location = [touch locationInView:self]; CGPoint relativePosition = CGPointMake(1.0-(location.x / self.bounds.size.width),location.y / self.bounds.size.height); [[Stage getSharedStage] movePartToLocation:relativePosition]; } ``` Here's the warning: ``` warning: The left operand of '/' is a garbage value CGPoint relativePosition = CGPointMake(1.0-(location.x / self.bounds.size.width),location.y / self.bounds.size.height); ~~~~~~~~~~ ^ 1 warning generated. ``` Here are the arrows: ![alt text](https://i.stack.imgur.com/tIfQF.png) What is it trying to tell me? The code works fine.
What is the 'garbage value' in 'Left operand of '/' is a garbage value' warning generated by "Build & Analyze"?
CC BY-SA 2.5
null
2010-10-24T12:53:19.357
2018-12-14T01:38:03.743
2010-10-24T13:17:15.990
191,991
191,991
[ "objective-c", "cocoa-touch", "xcode", "ios" ]
4,008,298
1
4,008,646
null
2
407
I switched to work on another computer, I installed visual C# express and protoBuf-net, and then I copied the source of the project to the other computer. Now when I open the project on the second computer, the program does not serialize and deserialize the data. When I'm debugging, every time I step into a piece of code using Protobuf, I get this message: ![Image](https://i.stack.imgur.com/7Lcre.png)
Problem with Protobuf
CC BY-SA 2.5
null
2010-10-24T12:59:40.023
2010-10-24T14:24:36.597
2010-10-24T13:02:04.310
56,338
389,222
[ "c#", ".net", "protobuf-net" ]
4,008,472
1
4,008,479
null
2
1,779
When I work on C currently, I use Xcode and just press in the Debugger Console which shows all the program's output. ![Example](https://i.stack.imgur.com/Omql2.png) I want to test iterating through command line arguments now. I tried to fake it with... ``` int main() { char *argv[] = {"echo","-n","hello world!"}; int argc = 3; } ``` But trying to iterate through `argv` kept giving me an error... > error: lvalue required as increment operand When I tried to `++argv`. So, I'm wondering, how can I give some command line arguments to my program when I run it this way, or do I need to compile and then run it with Terminal? Thanks!
How can I add command line arguments when compiling and running a C program in Xcode?
CC BY-SA 2.5
null
2010-10-24T13:40:14.183
2010-10-24T13:43:02.280
null
null
31,671
[ "c" ]
4,008,672
1
4,023,170
null
1
513
guys I don't know what could be wrong, but I'm deploying snapshot and sources with `gpg:sign-and-deploy-file`, but the sources name does always have the value of the following buildnumber. Like artifact-timestamp-1.jar and artifact-timestamp-2-sources.jar so that if I then have a snapshot dependency, it is looking for artifact-timestamp-2.jar instead of artifact-timestamp-1.jar I'm not using any build number plugin etc., the pom definitions for this artifact is having only credentials. I also don't use SCM... IS THERE ANY WORKAROUND FOR DEPLOYING SNAPSHOT SOURCES ? Cause obviously it is not allowed be design. [pastebin](http://pastebin.com/b2F5Ju1s) ![alt text](https://i.stack.imgur.com/g5hSx.png)
Deploying snapshot sources - Is it possible ? It increments build number
CC BY-SA 2.5
null
2010-10-24T14:31:38.517
2011-11-13T14:27:12.300
2010-10-24T18:44:39.453
306,488
306,488
[ "maven", "deployment", "snapshot", "nexus", "maven-3" ]
4,009,106
1
4,009,138
null
4
4,482
Thats my code so far which does not work: ``` <DockPanel > <Button Content="Start" Command="{Binding Path=FirstDateCommand}" /> <Button Content="Back" Command="{Binding Path=PreviousDateCommand}" /> <DatePicker Width="150" SelectedDate="{Binding Path=SelectedDate}" DisplayDateStart="{Binding Path=MinDate}" DisplayDateEnd="{Binding Path=MaxDate}" SelectedDateFormat="Long" /> <Button Content="Forward" Command="{Binding Path=NextDateCommand}" /> <Button Content="End" Command="{Binding Path=LastDateCommand}" /> <Button Command="{Binding PrintCommand}" Content="Print Planner" /> <Button Command="{Binding ToggleDocumentsCommand}" Content="Show Docs" /> <Button Command="{Binding MaterialExplorerShowCommand}" Content="Browse Docs" /> <Button Command="{Binding LessonPlannerCommand}" Content="Edit Planner" /> <TextBox Text="{Binding SearchText,Mode=TwoWay}" Width="50" /> <Button Command="{Binding FindAllCommand}" Content="Search" /> <DockPanel DockPanel.Dock="Right" HorizontalAlignment="Right"> <TextBlock Text="class code:" VerticalAlignment="Center" /> <ComboBox ItemsSource="{Binding GroupViewModelList}" Style="{StaticResource GroupViewModelStyle}" ItemTemplate="{StaticResource GroupViewModelItemTemplate}" Width="100"/> </DockPanel> </DockPanel> ``` ![alt text](https://i.stack.imgur.com/JpCjh.png) How can I set the 2 last controls on the image on the very right side? : ``` <Grid Name="MainGrid"> <Grid.RowDefinitions> <RowDefinition Height="40" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid Margin="10,10,10,0" Grid.Row="0" Name="ButtonBar"> <StackPanel FocusManager.IsFocusScope="True" Orientation="Horizontal"> <ComboBox AlternationCount="2" FontSize="16" VerticalContentAlignment="Center" Width="100" ItemContainerStyle="{StaticResource alternateColor}" ItemsSource="{Binding Source={x:Static Member=Fonts.SystemFontFamilies}}" x:Name="fontComboFast"> <ComboBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel VirtualizingStackPanel.VirtualizationMode="Recycling" /> </ItemsPanelTemplate> </ComboBox.ItemsPanel> <ComboBox.ItemTemplate> <DataTemplate> <TextBlock Width="100" Text="{Binding}" FontFamily="{Binding }" /> </DataTemplate> </ComboBox.ItemTemplate> </ComboBox> <!--<View:FormatButtonBar />--> <View:DateNavigatorView /> <View:LessonPlannerView /> <!--<View:TextFormatBarUC />--> </StackPanel> </Grid> ``` The 2 controls are in the LessonPlannerView (UserControl) Inside the LessonPlannerView you find this code: ``` ... <Grid > <DockPanel> <Button Command="{Binding PrintCommand}" Content="Print Planner" /> <Button Command="{Binding ToggleDocumentsCommand}" Content="Show Docs" /> <Button Command="{Binding MaterialExplorerShowCommand}" Content="Browse Docs" /> <Button Command="{Binding LessonPlannerCommand}" Content="Edit Planner" /> <TextBox Text="{Binding SearchText,Mode=TwoWay}" Width="50" /> <Button Command="{Binding FindAllCommand}" Content="Search" /> <StackPanel x:Name="ClassCodeChooser" Orientation="Horizontal" DockPanel.Dock="Right" HorizontalAlignment="Right"> <TextBlock Text="class code:" VerticalAlignment="Center" /> <ComboBox ItemsSource="{Binding SchoolclassCodeList}" /> </StackPanel> </DockPanel> </Grid> </UserControl> ```
WPF: Align last TWO controls in StackPanel/DockPanel on the very right side
CC BY-SA 2.5
null
2010-10-24T16:23:12.707
2013-09-05T13:02:13.627
2013-09-05T13:02:13.627
null
320,460
[ "wpf", "element", "stackpanel", "dockpanel" ]
4,009,588
1
null
null
4
467
When rendering huge visuals in WPF, the visual gets distorted and more distorted with increasing coordinates. I assume that it has something to do with the floating point data types used in the render pipeline, but I'm not completely sure. Either way, I'm searching for a practical solution to solve the problem. To demonstrate what I'm talking about, I created a sample application which just contains a custom control embedded in a ScrollViewer that draws a sine curve. ![alt text](https://i.stack.imgur.com/YGp0C.png) You can see here that the drawing is alright for double values <= 2^24 (in this case the horizontal coordinate value), but from that point on it gets distorted. ![alt text](https://i.stack.imgur.com/MdU25.png) The distortion gets worse at 2^25 and so the distortion continues to increase with every additional bit until it just draws some vertical lines. For performance reasons I'm just drawing the visible part of the graph, but for layouting reasons I cannot "virtualize" the control which would make this problem obsolete. The only solution I could come up with is to draw the visible part of the graph to a bitmap, and then render the bitmap at the appropriate point - but there I have again the precision problem with big values, as I cannot accurately place the bitmap at the position where I need it. Does anybody have an idea how to solve this?
Unprecise rendering of huge WPF visuals - any solutions?
CC BY-SA 2.5
null
2010-10-24T18:02:46.113
2020-05-10T08:51:51.303
2010-10-24T18:40:58.613
370,252
370,252
[ "wpf", "drawing", "rendering", "coordinates", "precision" ]
4,009,880
1
4,009,902
null
0
2,267
I'm trying to build the boost examples. I get the following error: ``` Access is denied. Access is denied. ...found 9 targets... ...updating 2 targets... gcc.compile.c++ bin\gcc\debug\hello.o Access is denied. "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -c -o "bin\gcc\debu g\hello.o" "hello.cpp" ...failed gcc.compile.c++ bin\gcc\debug\hello.o... ...skipped <pbin\gcc\debug>hello.exe for lack of <pbin\gcc\debug>hello.o... ...failed updating 1 target... ...skipped 1 target... ``` I'm not familiar with Windows 7, but I believe I have the correct access rights: ![permissions](https://i.stack.imgur.com/mtgZX.png) Can anyone shed some light on this error? Thanks. Update: Process Manager finds hundreds of non-SUCCESS results for bjam. A typical line, if it helps, has the properties: ``` Desired Access: Read Attributes Disposition: Open Options: Open Reparse Point Attributes: n/a ShareMode: Read, Write, Delete AllocationSize: n/a ``` I'm not sure how to act on this though.
Windows 7 Access is Denied
CC BY-SA 2.5
null
2010-10-24T19:05:22.573
2014-02-24T17:52:23.243
2010-10-24T20:10:35.740
285,726
285,726
[ "windows-7" ]
4,011,211
1
4,011,766
null
4
1,958
I have an EF4 Model that is built with abstract entities/classes: ![alt text](https://i.stack.imgur.com/yYZTI.png) Notice how entity has a navigational property called . Note: I have lazy-loading disabled, so i must eager-load on demand. Now, if i have the following method: ``` public Location FindSingle(int id) { return _repository.Find().WithId(id).SingleOrDefault(); } ``` This does not return any associations by default. But how can i eager-load the associations when i explicitly want to? I cannot do this: ``` return _repository.Find().WithId(id).Include("Country").SingleOrDefault(); ``` As i am working with an abstract class called , which does not have a navigational property called "Country". I do not what the derived type is until i actually execute the query with `.SingleOrDefault`. So, here's what i've had to do: ``` public Location FindSingle(int id, bool includeAssociations = false) { var location = _repository.Find().WithId(id).SingleOrDefault(); return includeAssociations ? LoadAssociation(location) : location; } private Location LoadAssociation(Location location) { // test derived-type, e.g: var state = location as State; if (state != null) return _repository.Find().OfType<State>().Include("Country").WithId(id).SingleOrDefault(); } ``` Essentially, i'm doing 2 identical calls. Does it work? Yes. Is it pretty? No, and it's not really "eager-loading". I know this is not the correct solution, can you guys think of the proper one? (and yes i know i can use stored procedures, but i really want to go through my repository/model here, so the entities are correctly attached to the graph, ready for editing). Even though `.Include` causes a Left Outer Join, the problem is i'm working off the "Locations" entity set. I need to `.Include` on the "State", but "States" belong to the "Locations" entity set (derived classes belong to their parent's entity set). So i guess my question is actually pretty generic - Remember, i cannot use `.OfType<T>()` first (and then the .Include on the derived type), as i don't know what T is (and neither does the calling code), hence generics cannot be utilized here.
Entity Framework 4 Abstract Model - How to Programatically Eager-Load Navigational Properties?
CC BY-SA 2.5
0
2010-10-25T00:39:12.263
2010-10-25T03:40:51.130
2010-10-25T02:42:28.180
321,946
321,946
[ "c#", "linq-to-entities", "entity-framework-4", "abstract-class", "eager-loading" ]
4,011,991
1
null
null
0
101
I'm trying to setup Bundler with Rails 2.3.10 to make the transition to Rails 3 easier. But I'm not sure what the instruction on [this page](http://gembundler.com/bundler_setup.html) means. Am I supposed to require all the gems that I'm using in my app? If so, where? Thanks for reading. ![alt text](https://i.stack.imgur.com/O24iQ.png)
What does this instruction in the Bundler setup mean?
CC BY-SA 2.5
null
2010-10-25T04:52:14.290
2010-10-25T07:24:04.350
null
null
173,634
[ "ruby-on-rails" ]
4,012,035
1
4,023,390
null
6
3,823
I'm writing a game for IPhone in Opengl ES, and I'm experiencing a problem with alpha blending: I'm using `glBlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA)` to achieve alpha blending and trying to compose a scene with several "layers" so I can move them separately instead of having a static image. I created a preview in photoshop and then tried to achieve the same result in the iphone, but a black halo is shown when I blend a texture with semi-transparent regions. I attached an image. In the left is the screenshot from the iphone, and in the right is what it looks like when I make the composition in photoshop. The image is composed by a gradient and a sand image with feathered edges. Is this the expected behaviour? Is there any way I can avoid the dark borders? Thanks. : I'm uploading the portion of the png containing the sand. The complete png is 512x512 and has other images too. I'm loading the image using the following code: ``` NSString *path = [NSString stringWithUTF8String:filePath]; NSData *texData = [[NSData alloc] initWithContentsOfFile:path]; UIImage *image = [[UIImage alloc] initWithData:texData]; if (image == nil) NSLog(@"ERROR LOADING TEXTURE IMAGE"); GLuint width = CGImageGetWidth(image.CGImage); GLuint height = CGImageGetHeight(image.CGImage); CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); void *imageData = malloc( height * width * 4 ); CGContextRef context = CGBitmapContextCreate( imageData, width, height, 8, 4 * width, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big ); CGColorSpaceRelease( colorSpace ); CGContextClearRect( context, CGRectMake( 0, 0, width, height ) ); CGContextTranslateCTM( context, 0, height - height ); CGContextDrawImage( context, CGRectMake( 0, 0, width, height ), image.CGImage ); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, imageData); CGContextRelease(context); free(imageData); [image release]; [texData release]; ``` --- ![alt text](https://i.stack.imgur.com/bPGwB.png) ![alt text](https://i.stack.imgur.com/Ig0GR.png)
OpenGL ES (IPhone) alpha blending looks weird
CC BY-SA 2.5
0
2010-10-25T05:06:40.770
2013-09-11T19:37:50.583
2010-10-25T11:48:39.117
85,057
85,057
[ "iphone", "opengl-es", "alphablending" ]
4,012,085
1
null
null
41
56,879
I have a css code: ``` -moz-border-radius-topleft:50px; ``` I get the result: ![rounded corner](https://i.stack.imgur.com/tbOa9.jpg) Is there any possibilities to give like this: ![inverted rounded corner](https://i.stack.imgur.com/pl411.jpg)
Invert rounded corner in CSS?
CC BY-SA 3.0
0
2010-10-25T05:46:46.920
2023-01-10T23:22:52.883
2018-03-30T14:21:51.070
1,811,992
358,450
[ "css", "svg", "border", "css-shapes" ]
4,012,424
1
4,012,522
null
1
2,143
I'm using C# and WinForms. When using a button with a BackgroundImage property, when I enable/disable the button, the image doesn't get gray... Result : The user is unable to tell if the button is enabled or disabled without trying to click it. When using a button with a Image property, the image's behavior is correct but the image is not centered in the button ! ![alt text](https://i.stack.imgur.com/KcPBq.png) As you can see in the picture, the first button uses BackgroundImage , the second one uses Image property but the minus sign is not centered properly... How can I manage this enable/disable state with a proper image's behavior ? Thanks in advance !
C# - Disable buttons with image
CC BY-SA 2.5
null
2010-10-25T06:56:46.713
2010-10-25T07:16:38.407
null
null
174,129
[ "c#", "image", "button" ]
4,012,426
1
4,014,809
null
0
311
I have a simple table: ``` <table cellpadding="0" cellspacing="0" style="width:600px"> <tr> <td style="width:100px; padding:5px; border:1px solid #444">E-mail</td> <td style="width:500px; padding:5px; border:1px solid #444">[email protected]</td> </tr> <tr> <td style="width:100px; padding:5px; border:1px solid #444">Message</td> <td style="width:500px; padding:5px; border:1px solid #444">sometext</td> </tr> </table> ``` When I test it, it looks fine: ![alt text](https://i.stack.imgur.com/1QQCR.jpg) When I send it through PHP mail() function, it looks like this: ![alt text](https://i.stack.imgur.com/v8yA4.jpg) Just in case, my mail() headers are: ``` $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; ```
Sending HTML mail through PHP - strange rendering
CC BY-SA 2.5
null
2010-10-25T06:57:27.230
2017-06-13T11:16:47.033
2017-06-13T11:16:47.033
4,370,109
420,376
[ "php", "css", "html-table", "html-email", "margin" ]
4,012,798
1
4,012,845
null
8
30,537
How can I make it so that a ListViews control's background color for items varies from item to item like in WinAmp, along with changing the column header colors? ![http://i.stack.imgur.com/30pQy.png](https://i.stack.imgur.com/30pQy.png) If you look closely you can see the first item is a dark gray and the second is black and so on.
Varying ListViews item background color
CC BY-SA 3.0
0
2010-10-25T08:10:28.953
2013-11-21T08:40:59.877
2013-11-21T08:40:59.877
505,893
141,831
[ "c#", "listview" ]
4,012,852
1
4,012,876
null
3
1,028
I just wanted to know about, Is there any keyboard shortcut key available for the "Go Into" option into the eclipse 3.5 IDE. Any help will be really appreciate. See below this screen shot if you can figure out the answer.![alt text](https://i.stack.imgur.com/TalLS.jpg)
Keyboard shorcut for "Go Into" in eclipse
CC BY-SA 2.5
0
2010-10-25T08:18:23.960
2011-01-11T09:54:39.230
2011-01-11T09:54:39.230
457,982
457,982
[ "eclipse", "ide", "keyboard", "shortcut" ]
4,013,055
1
8,150,766
null
5
3,008
I'm working on a TextMate like color scheme for NetBeans (twilight), I'm almost done, there's only one thing left: I can't set the html attributes highlighting. ![alt text](https://i.stack.imgur.com/4O6V6.png) As you can see normal attributes are okay, but the ID and CLASS attributes are highlighted with this ugly greenish color. How can I fix that? [Here's](https://dl.dropbox.com/u/14148878/netbeans_twilight_theme.zip) the link to the theme.
How to change the color scheme for html attributes in NetBeans?
CC BY-SA 2.5
0
2010-10-25T08:51:23.883
2018-04-25T21:13:03.470
2010-10-30T12:07:51.483
206,720
279,776
[ "netbeans", "textmate", "color-scheme" ]
4,013,352
1
null
null
0
311
We moved to another SVN server, and now my IntelliJ-SVN integration doesn't work. Whenever I open the project, I get this: ![alt text](https://i.stack.imgur.com/iwUda.png) What is this "content roots"? I searched all over the project dir and didn't find it.
Problems with IntelliJ integration after switching SVN servers
CC BY-SA 2.5
null
2010-10-25T09:39:02.837
2012-05-28T18:55:31.733
null
null
11,236
[ "svn", "intellij-idea" ]
4,013,372
1
4,013,474
null
-1
837
I have managed to get at the top, and at the center. But I did get stuck with placing div at the right of the content. I have tried using `position:relative`, but what happens it appears below content's div, but on the right though, and also when I scroll down the view, it appears on top of the . So how do I solve this? Thanks! # Updated This is how it should look visually: ![alt text](https://i.stack.imgur.com/lnqpl.png)
Layout where header has fixed position, content is in center, and user navigation on centent's right
CC BY-SA 2.5
null
2010-10-25T09:42:27.993
2010-10-25T10:04:28.457
2010-10-25T10:04:28.457
278,984
278,984
[ "css", "html" ]
4,013,645
1
4,013,771
null
2
368
my css for the menu ``` ul#menubar { width: 800px; padding: 27px 10px 5px 10px; list-style: none; text-align: center; } ul#menubar li { display: inline; } ul#menubar li a{ border-right: 1px solid #111111; font: 12px "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif; padding: 5px 10px 8px 10px; } ul#menubar li a#last { border-right: none; } ul#menubar li a:hover, ul#menubar li a:active{ background: #8d4d09 url("images/hover.gif") bottom center no-repeat; padding-bottom: 8px; } ``` menu html ``` <ul id="menubar"> <li><a href="#" target="_self">Home</a></li> <li><a href="#" target="_self">Sale</a></li> <li><a href="#" target="_self">Purchase</a></li> <li><a href="#" target="_self">Rent</a></li> <li><a href="#" target="_self">Developments</a></li> <li><a href="#" target="_self">Interior Decorators</a></li> <li><a href="#" target="_self">Maps</a></li> <li><a id="last" href="#" target="_self">Legal Documents</a></li> </ul> ``` preview ![sample](https://i.stack.imgur.com/d4TA7.jpg) problem is that i cant figure out the space between the border-right and the anchor when the link is hovered. what is causing this space and how can it be removed. The hovered effect is shown on "Purchase" link.
CSS Menu Problem
CC BY-SA 2.5
null
2010-10-25T10:24:02.177
2010-10-25T10:42:31.040
null
null
356,188
[ "html", "css" ]
4,013,793
1
null
null
1
1,380
Take a look at this screenshot from Firefox: ![alt text](https://i.stack.imgur.com/vuD9e.jpg) The two left and right arrows are translucent text, at 20% and 80% opacity. The text has a text-shadow style applied. The images behind them also have varying opacities applied. Other browsers are working fine - even IE6, in its own pathetic minimal way - but Firefox is drawing a strange black box behind the text. It's not filling the full text area, just the clip of the actual characters. I know firefox is capable of doing transparency, so any idea what's triggering this strange behaviour? --- [here's a simple JSFiddle showing the effect](http://www.jsfiddle.net/sadie/A95L6/1/). Remove the `opacity` rule and the problem goes away. I'm using Firefox 3.6.9 on Linux. The page uses jQuery and jQuery Tools for various opacity fading things, but as the fiddle above shows that isn't causing the issue.
Firefox text opacity background issue
CC BY-SA 2.5
null
2010-10-25T10:45:00.810
2010-10-25T11:15:54.740
2010-10-25T11:15:54.740
1,000
1,000
[ "html", "css", "firefox", "cross-browser" ]
4,014,396
1
null
null
4
5,576
I want to write all frames to disk using QTKit.framework for camera input. But all the images I get are half transparent and without some colors, maybe colorspace problem? ;( They seem good in the preview View but when I write them "something" happens. I wonder what it that. ``` -(void)savePNGImage:(CGImageRef)imageRef path:(NSString *)path { NSURL *outURL = [[NSURL alloc] initFileURLWithPath:path]; CGImageDestinationRef dr = CGImageDestinationCreateWithURL ((CFURLRef)outURL, (CFStringRef)@"public.png" , 1, NULL); CGImageDestinationAddImage(dr, imageRef, NULL); CGImageDestinationFinalize(dr); [outURL release]; } -(void)saveJPEGImage:(CGImageRef)imageRef path:(NSString *)path { CFMutableDictionaryRef mSaveMetaAndOpts = CFDictionaryCreateMutable(nil, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFDictionarySetValue(mSaveMetaAndOpts, kCGImageDestinationLossyCompressionQuality, [NSNumber numberWithFloat:1.0]); // set the compression quality here NSURL *outURL = [[NSURL alloc] initFileURLWithPath:path]; CGImageDestinationRef dr = CGImageDestinationCreateWithURL ((CFURLRef)outURL, (CFStringRef)@"public.jpeg" , 1, NULL); CGImageDestinationAddImage(dr, imageRef, mSaveMetaAndOpts); CGImageDestinationFinalize(dr); [outURL release]; } - (void)captureOutput:(QTCaptureOutput *)captureOutput didOutputVideoFrame:(CVImageBufferRef)videoFrame withSampleBuffer:(QTSampleBuffer *)sampleBuffer fromConnection:(QTCaptureConnection *)connection{ CVPixelBufferLockBaseAddress(videoFrame,0); uint8_t *baseAddress = (uint8_t *)CVPixelBufferGetBaseAddress(videoFrame); size_t bytesPerRow = CVPixelBufferGetBytesPerRow(videoFrame); size_t width = CVPixelBufferGetWidth(videoFrame); size_t height = CVPixelBufferGetHeight(videoFrame); CVPixelBufferUnlockBaseAddress(videoFrame,0); CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef newContext = CGBitmapContextCreate(baseAddress, width, height, 8, bytesPerRow, colorSpace, kCGBitmapByteOrder32Little | kCGImageAlphaPremultipliedFirst); CGImageRef frame = CGBitmapContextCreateImage(newContext); CGContextRelease(newContext); CGColorSpaceRelease(colorSpace); [self savePNGImage:frame path:[NSString stringWithFormat:@"/Users/nacho4d/Desktop/framesCam/frame%003d.png", frameNum++]]; [self saveJPEGImage:frame path:[NSString stringWithFormat:@"/Users/nacho4d/Desktop/framesCam/frame%003d.jpeg", frameNum++]]; CGImageRelease(frame); } ``` Capturer attributes are just frame size and pixel format like so: `[NSNumber numberWithUnsignedInt:kCVPixelFormatType_32ARGB], (id)kCVPixelBufferPixelFormatTypeKey` Update: I have tried with JPEG also and I get the same kind of image, like there are some channels lacking in the image and all written frames have a white background. (since JPEG does not allow transparence ??) The original and the written (JPEG) one: ![alt text](https://i.stack.imgur.com/8DX1H.png) ![alt text](https://i.stack.imgur.com/loFZh.jpg) (I don't show the PNG since is transparent and is difficult to see in a browser) Thanks in advance.
Converting CVImageBufferRef to PNG
CC BY-SA 3.0
0
2010-10-25T12:13:00.637
2014-01-25T02:11:05.227
2011-10-18T09:48:18.327
149,008
149,008
[ "cocoa", "macos", "png", "cgimage", "qtkit" ]
4,014,709
1
4,015,072
null
0
1,163
I have a very odd problem, hopefully easily solved. I am drawing a quad as a triangle strip. It simply has 2 triangles in the strip and I apply a texture containing an alpha channel to it. For one of the triangles it seems the alpha is fine and exactly as I want it however for the first triangle it looks as though the alpha is either 1.0 or 0.0, rather than the correct in-between values. What could be causing this? Have I assumed correctly that that's the problem? I shall attach an image so people can see what I mean: ![Alpha problem](https://i.stack.imgur.com/xzJWm.png) The weird thing is this is drawn as a triangle array and from 1 texture so I am unsure how I can change settings or affect the texture in some way. I thought maybe the triangle was being drawn in a different rotation but they are both anti-clockwise. Code wise drawn like so: ``` gl.glBindTexture(GL10.GL_TEXTURE_2D, texturePointer); //Enable the vertices buffer for writing and to be used during our rendering gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); //Specify the location and data format of an array of vertex coordinates to use when rendering gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); //Enable the texture buffer gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer); gl.glDrawElements(GL10.GL_TRIANGLE_STRIP, indices.length, GL10.GL_UNSIGNED_SHORT, indexBuffer); ``` So I am a little stumped if I'm honest. Edit: Looking at this a bit more it's as though one of the triangles is being textured twice so the alpha obviously adds up and it gets a bit more applied. This probably means I'm doing something wrong with my triangle strip. I make the strip like so (started hand writing it out to check..): ``` //Top left vertices[vertPlace++] = 0.0f; vertices[vertPlace++] = height; vertices[vertPlace++] = 0.0f; //Bottom left vertices[vertPlace++] = 0.0f; vertices[vertPlace++] = 0.0f; vertices[vertPlace++] = 0.0f; //top right vertices[vertPlace++] = width; vertices[vertPlace++] = height; vertices[vertPlace++] = 0.0f; //Bottom right vertices[vertPlace++] = width; vertices[vertPlace++] = 0.0f; vertices[vertPlace++] = 0.0f; //Now set the indices indices[indiPlace++] = (short)0; indices[indiPlace++] = (short)1; indices[indiPlace++] = (short)2; indices[indiPlace++] = (short)3; //Top Left textureCoords[textPlace++] = 0.0f; textureCoords[textPlace++] = 1.0f; ///Bottom left textureCoords[textPlace++] = 0.0f; textureCoords[textPlace++] = 0.0f; //Top right textureCoords[textPlace++] = 1.0f; textureCoords[textPlace++] = 1.0f; //Bottom right textureCoords[textPlace++] = 1.0f; textureCoords[textPlace++] = 0.0f; ``` Somehow I'm doing something wrong there, I just can't see it.
Android OpenGL - ES alpha transparency different for triangles in triangle strip?
CC BY-SA 2.5
null
2010-10-25T12:53:58.957
2011-01-30T15:03:22.400
2010-10-25T13:29:06.533
432,272
432,272
[ "android", "opengl-es", "textures", "alphablending" ]
4,015,066
1
4,015,156
null
0
1,564
I need a progress bar that's kind of in an odd shape, I've attached an image. It's not a preloader; it's for periodic progress while the user is performing other action on the website. I've played and played with tweens from a symbol of a fill of the bar to no avail. I'm not great at flash, so apparently even this simple thing is a stumbling block for me. Since it's an odd shape, I was hoping I could somehow use a paint bucket fill of the symbol or something like that to create "progress", and simply send a "stop" command when it's at the appropriate level, but I've tried several different ways and just don't have the ability to do it. I can't seem to find anything online that's even close either. I'd sure appreciate being pointed in the right direction!! ![alt text](https://i.stack.imgur.com/XbF6u.jpg)
Creating a custom progress bar in flash? (not a preloader)
CC BY-SA 2.5
null
2010-10-25T13:34:57.910
2010-10-25T13:45:34.957
null
null
48,957
[ "flash", "actionscript-3", "flash-cs4", "flash-cs5" ]
4,016,163
1
4,016,220
null
19
27,286
Is there a jQuery UI class you can use to create a more severe looking error dialog box than the one below? ![alt text](https://i.stack.imgur.com/Ah3qg.jpg) This is the HTML we use to create the dialog: ``` <div style="display:none" id="div-dialog-warning"> <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span><div/></p> </div> ``` And this is how we show it: ``` $("#div-dialog-warning").dialog({ title: t, resizable: false, height: 160, modal: true, buttons: { "Ok" : function () { $(this).dialog("close"); } } }); ```
Create more serious looking jQuery error dialog?
CC BY-SA 2.5
0
2010-10-25T15:32:52.663
2017-06-12T17:37:01.653
null
null
47,281
[ "jquery", "jquery-ui", "modal-dialog", "jquery-ui-dialog" ]
4,016,353
1
null
null
1
261
I have some data that is displayed in a bar chart, using Google's Visualization API. Was simple enough until designers redesigned it... Now it appears to be something that is beyond what Google can help me with. Given the attached mockup (and note the finer details like reflection and gradients!)- how would you go about building it? Using some existing graphing libraries? Homebrew from the ground up? Thanks for any advice. ![alt text](https://i.stack.imgur.com/MA5e3.png)
Advice for building simple bar chart, but with custom styling
CC BY-SA 2.5
null
2010-10-25T15:52:02.627
2012-06-25T20:19:21.710
null
null
319,859
[ "charts" ]
4,016,558
1
4,016,623
null
2
1,645
![alt text](https://i.stack.imgur.com/1gUMv.png) The above UIActionSheet is thinner than the normal one. I took the screenshot from Safari when I try to bookmark some website. Mine or the default UIActionSheet in iPad looks like the following. It is thicker than the one in Safari, especially the border. ![alt text](https://i.stack.imgur.com/5I3jT.png) How can I make my own UIActionSheet look like the one in Safari? Do I need to do any particular customisation or I can use some kinds of parameters for UIActionSheet? thanks
iPad - How can I make my UIActionSheet look like the thin one in safari?
CC BY-SA 2.5
0
2010-10-25T16:11:25.543
2010-10-25T16:57:12.090
2010-10-25T16:57:12.090
213,076
213,076
[ "ipad", "safari", "uiactionsheet" ]
4,016,953
1
4,020,754
null
1
326
![My Nib file](https://i.stack.imgur.com/pIi33.png) and I want to make the tableviewcells draggable, but outsite the tableview. Is this possible?
It's possible to make a uitableviewcell draggable
CC BY-SA 2.5
null
2010-10-25T16:55:13.743
2010-10-26T04:42:57.500
null
null
169,274
[ "iphone", "objective-c", "uitableview", "drag-and-drop" ]
4,016,997
1
4,017,811
null
2
11,787
I have the following code to layout the menu for my page: ``` //Header Conainer Panel VerticalPanel headerWidget = new VerticalPanel(); headerWidget.setWidth("100%"); //Header Panel HorizontalPanel headerPanel = new HorizontalPanel(); headerPanel.setStyleName("header"); headerPanel.setWidth("100%"); Label title = new Label("Information System"); title.setStyleName("componentgap"); headerPanel.add(title); headerWidget.add(headerPanel); //Menu 1 Panel HorizontalPanel menu = new HorizontalPanel(); menu.setStyleName("menu1"); menu.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT); Label componentLabel = new Label("Component"); componentLabel.setStyleName("componentgap"); componentLabel.setWidth("50px"); menu.add(componentLabel); //Outbound Routing Menu Item final Label outRouteMenu = new Label("Routing"); outRouteMenu.setWidth("75px"); outRouteMenu.setStyleName("menu1button"); ``` I have to set the headerPanel and headerWidget to 100% as I want the top page bars to take up the whole width of the screen. However, when I add Labels to the menu they are being spaced evenly accross the screen rather than on the left next to each other as I want. As you can see I tried to set the width of the Labels explicitly to force them to be smaller and therefore next to each other in the menu bar. Any ideas how I can achieve this? you will see I am using styles I include these below but will point out they do not intefer with the width of a component. Thank you, James Currently I have something like this: ![alt text](https://i.stack.imgur.com/zQw9c.jpg) CSS: ``` .header { background-color: #669966; border-bottom-color: #003300; border-right-color: #003300; border-top-color: #99CC99; border-left-color: #99CC99; color: #FFFFFF; padding: 0px; border-style: solid; border-width: 1px; margin: 0px; font: bold 165% "Trebuchet MS",sans-serif; } .menu1 { background-color: #336633; border-bottom-color: #003300; border-right-color: #003300; border-left-color: #99CC99; border-top-color: #99CC99; color: #FFFFFF; padding: 0px; border-style: solid; border-width: 1px; font: 85% "Trebuchet MS",sans-serif; } .menu1button { background-color: #336633; border-bottom-color: #003300; border-right-color: #003300; border-left-color: #99CC99; border-top-color: #99CC99; color: #FFFFFF; padding: 0px; border-style: solid; border-width: 0px; margin: 5px; font: 85% "Trebuchet MS",sans-serif; } .menu1selectedbutton { background-color: #669966; border-bottom-color: #003300; border-right-color: #003300; border-left-color: #99CC99; border-top-color: #99CC99; color: #336633; padding: 0px; border-style: solid; border-width: 0px; margin: 5px; font: 85% "Trebuchet MS",sans-serif; } .menu2 { color:#A6A6A6; padding: 0px; border-style:none; margin:0px; font: 85% "Trebuchet MS",sans-serif; } .menu2button { color:#336633; padding: 0px; border-style:none; margin:5px; font: 85% "Trebuchet MS",sans-serif; } .menu2selectedbutton { color:#336633; background-color: #669966; padding: 0px; border-style:none; margin:5px; font: 85% "Trebuchet MS",sans-serif; } .componentgap{ margin: 4px; } ```
GWT component spacing on HorizontalPanel
CC BY-SA 2.5
null
2010-10-25T17:00:15.763
2010-10-25T18:51:30.160
null
null
88,003
[ "css", "gwt" ]
4,017,897
1
null
null
4
7,385
I want to display events in the jQuery UI Datepicker. I want the days that have events to be styled differently from days that don't have events, and I want to display a custom tooltip with the event details when hovering dates with events. The solution to the question "[jQuery UI Datepicker with jQuery tipsy](https://stackoverflow.com/questions/2300118/jquery-ui-datepicker-with-jquery-tipsy)" gets very close, but doesn't work with the Datepicker configuration I use. I use the "showOtherMonths" option, and it throws the date link calculation off. The event data is available at [http://mydomain.com/events.json](http://mydomain.com/events.json) Mockup of what I want: ![Datepicker with events](https://i.stack.imgur.com/BVLGC.png) This is the code I use for creating the Datepicker: ``` $('#dateDiv').datepicker({ altField: '#dateInput', altFormat: 'yy-mm-dd', dateFormat: 'yy-mm-dd', firstDay: '1', showOtherMonths: 'true', }); ``` I'm not concerned about the CSS part of the solution at this time, just the javascript part. How do I make my custom tooltip appear when hovering the dates with events attached to them? And how do I attach the events (calendar events, not javascript/DOM events ;) )?
Events in jQuery UI Datepicker with json data source
CC BY-SA 2.5
0
2010-10-25T19:02:35.570
2013-06-02T07:59:06.740
2017-05-23T10:32:35.693
-1
88,106
[ "javascript", "jquery", "json", "jquery-ui", "jquery-ui-datepicker" ]
4,018,870
1
null
null
0
914
Displayed below are some functions I have (written by a previous developer no longer with the company) that queries a database and sends back json code which updates a specific div's inner HTML. I've now been given the requirement to set up a typeahead search in another div, using json code that we have on another page. The problem I'm having is that I can't figure out how to get them to work together. Here are some screenshot illustrations of what I have to start with: ![alt text](https://i.stack.imgur.com/mHTr2.png) On top, the merchants list is currently just done by running a query in the model and then passing back the formatted results as a view variable, accessed like this: ``` <table><?= $this->merchantsList; ?></table> ``` The bottom section, the cart, is done by querying the database and sending back the results via json, so that each time someone clicks an Add to Cart button in the top section, the bottom table gets updated. This all works. The new requirement is to provide a typeahead search on the merchants table - we have code that does this in a completely different component: ![alt text](https://i.stack.imgur.com/b0HMt.png) However, I can't seem to integrate the typeahead code - it conflicts with the json code already there for the cart update. Here is the code we currently have on the cart page: ``` var xmlhttp; var the_object = {}; var suggestions = []; function loadXMLDoc(url) { xmlhttp=null; if (window.XMLHttpRequest) {// code for IE7, Firefox, Mozilla, etc. xmlhttp = new XMLHttpRequest(); } else if (window.ActiveXObject) {// code for IE5, IE6, 7, 8 try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (xmlhttp != null) { xmlhttp.onreadystatechange = onResponse; xmlhttp.open("GET",url,true); xmlhttp.send(null); } else { alert("Your browser does not support XMLHTTP."); } } function onResponse() { if (xmlhttp.readyState!=4) return; if (xmlhttp.status!=200) { alert("Problem retrieving XML data"); return; } //JSON response code //alert("response text: " + xmlhttp.responseText); the_object = eval('(' + xmlhttp.responseText + ')'); if (the_object.errMsg){ alert(the_object.errMsg); }else{ document.getElementById("shoppingCartTable").innerHTML = the_object.cartHTML; } } function addToCart(id){ var denElem = document.getElementById('item'+id+'_den'); var quanElem = document.getElementById('item'+id+'_quan'); if (denElem.options){ var den = denElem.options[denElem.selectedIndex].value; }else{ var den = denElem.value; } var quan = quanElem.options[quanElem.selectedIndex].value; var voucherNbr = document.getElementById("voucherNbr").value; var url = "/redeem/add-to-cart/?action=add&format=json&voucherNbr=" + voucherNbr + "&merchantId=" + id + "&denomination=" + den + "&quantity=" + quan; loadXMLDoc(url); } ``` We have several other functions on the shopping cart, all of which call loadXMLDoc(url) when complete; this calls onResponse which updates the cart div in this line: ``` document.getElementById("shoppingCartTable").innerHTML = the_object.cartHTML; ``` I've tried adding a param to to loadXMLDoc like this: ``` loadXMLDoc(url, divName) ``` which would then get passed to onResponse like this: ``` function onResponse(divName) { if (xmlhttp.readyState!=4) return; if (xmlhttp.status!=200) { alert("Problem retrieving XML data"); return; } //JSON response code //alert("response text: " + xmlhttp.responseText); the_object = eval('(' + xmlhttp.responseText + ')'); if (the_object.errMsg){ alert(the_object.errMsg); }else{ document.getElementById(divName).innerHTML = the_object.cartHTML; } } ``` As soon as I add that param to onResponse, though, the page just goes completely blank - view source doesn't even show empty html tags. Can anyone give me an idea of how to use XMLHTTP and onResponse to update two different divs with two different chunks of content?
XMLHTTP json code - how to choose which container gets updated? JOOMLA
CC BY-SA 2.5
null
2010-10-25T21:07:57.827
2010-10-28T05:33:19.570
null
null
341,611
[ "json", "joomla", "xmlhttprequest" ]
4,019,100
1
4,019,193
null
0
10,854
``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:text="Title" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="30px" android:textStyle="bold" > </TextView> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="60px"> <Button android:text="Choose a Story" android:id="@+id/choose" android:layout_width="150px" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginBottom="1px"> </Button> <Button android:text="Info" android:id="@+id/info" android:layout_width="150px" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginBottom="1px"> </Button> </LinearLayout> </LinearLayout> ``` In this code, as you can see, there is a title, 2 linear layouts, and 2 buttons that are inside a linear layout. What I'm trying to do is center the 2 buttons. No matter what I do, I can never get the 2 buttons to be centered at the bottom with a height of 60px. In the end I'm trying to make the text centered both vertically and horizontally, and have the 2 buttons on the bottom centered horizontally. What do I need to change? Heres a picture of what it looks like in the Layout Editor. ![alt text](https://i.stack.imgur.com/ynjJ5.png)
Android XML: Centering Horizontally On Bottom
CC BY-SA 2.5
null
2010-10-25T21:37:33.230
2010-10-25T22:09:20.967
2010-10-25T21:52:22.120
478,297
478,297
[ "android", "xml" ]
4,019,234
1
4,019,362
null
6
708
Let's say I'm implementing my own version of Scrabble. I currently have a `Board` class that contains lots of `Squares`. A `Square` in turn is composed of a `IBonus` and a `Piece`. The bonus implementations are actually the usual bonus for Scrabble, but it is possible that I might try to add some new and twisted bonus to spice the game -- flexibility here is paramount! ![alt text](https://i.stack.imgur.com/XJVzw.png) After thinking for a while I came to the conclusion that for `IBonus` implementations to work, they'll need to know the whole `Board` and also its current position(on the `Board`, so it knows where it is and it can check for the piece that's in the same square as the bonus is). This strikes me as bad as basically it needs to know a whole lot of information. So, my naive implementation would be to pass the `Board` as argument to `IBonus.calculate()` method, `IBonus.calculate(Board board, Point position)`, that is. Also, it seems to create a circular reference. Or am I wrong? ![alt text](https://i.stack.imgur.com/HNyJ5.png) I don't particulary like this approach, so I am looking for other possible approaches. I know I can make `calculate` accept an interface instead of a concrete class, i.e., `calculate(IBoard board)` but I IMO that isn't all that better than the first case. I fear being too focused on my current implementation to be able to think of whole different designs that could fit at least as well as solutions to this problem. Maybe I could re-architect the whole game and have the bonuses in other place, so it would facilitate this calculation? Maybe I am too focused on having them on the `Board`? I certainly hope there are other approaches to this problem out there! Thanks
Designing a flexible and extensible bonus system for a Scrabble's game implementation
CC BY-SA 2.5
null
2010-10-25T21:57:50.590
2010-10-25T22:54:29.243
2010-10-25T22:18:09.653
130,758
130,758
[ "c#", "java", "oop", "software-design", "architecture" ]
4,019,263
1
4,026,724
null
0
863
got a quick question for you (pretty much the title): is the book [Cocoa Programming for Mac OS X (3rd Edition)](https://rads.stackoverflow.com/amzn/click/com/0321503619) outdated? It's just that I read a little in it, until page 36 (in a .PDF ebook version) where I came across a problem. The chapter introduces you to Objective-C and Cocoa, and you already have to write a program by yourself. Exciting. But when he makes a class called Foo.h and Foo.m, my Xcode doesn't follow the guide. 1. His Interface Builder is different from my Interface Builder. 2. When he is about to make outlets and actions, I can't do it. They just won't show up. I am sure I entered the correct info in my Foo.h file: ``` #import <Cocoa/Cocoa.h> @interface Foo : NSObject { IBOutlet NSTextField *textField; } -(IBAction)seed:(id)sender; -(IBAction)generate:(id)sender; @end ``` the Foo.m file: ``` #import "Foo.h" @implementation Foo @end ``` and I dragged them both to the "Class" folder, but it still won't show them in IB. Besides that, Xcode shows three warnings: - - - This is why I think the book is outdated, but these are not errors, just warnings. Here's some screenies: ![How his looks](https://i.stack.imgur.com/X5B9j.png) ![vs. how mine look](https://i.stack.imgur.com/TnkxF.png) ![How his looks](https://i.stack.imgur.com/kVHM7.png) ![vs. how mine look](https://i.stack.imgur.com/zVsiR.png) This just made me think that the book might be outdated, and if I can use it all (if there are mistakes in every chapters). Is it me that made a stupid mistake, or is the book really outdated? Please help me out on this one, as I really want to learn Objective-C and Cocoa :) Thank you.
Is Cocoa Programming for Mac OS X (3rd edition) outdated?
CC BY-SA 2.5
null
2010-10-25T22:02:32.030
2014-06-25T20:48:52.030
2014-06-25T20:48:52.030
null
485,731
[ "objective-c", "cocoa" ]
4,019,280
1
4,119,320
null
3
2,234
I'm working on a c# wpf app in which I want to do something with audio. the irrklang audio library provides me with a pcm decoded 16 bit byte array. I want to create a timeline control which shows the waveform along the timeline with an overlaying rectangle which the user can drag and click/drag the left and right side to increase or decrease the selection. It is used to the trim the audio track. I would like the selected min and max to be databindable, the minimum and maximum value of the total track to be bindable. To clarify here is an image mockup: ![alt text](https://i.stack.imgur.com/KXRd1.png) I'm not asking for a complete control but tips and suggestions on how to tackle this are more than welcome. Perhaps solutions like this already exist but so far I haven't been able to find it. I think I need to tackle: the control (zooming, panning and changing the selection) and drawing the waveform in the control Thanks in advance,
wpf custom control: audiowaveform rectangle with selection slider
CC BY-SA 3.0
0
2010-10-25T22:04:48.733
2013-03-06T19:00:54.333
2013-03-06T19:00:54.333
305,637
401,480
[ "c#", "wpf", "audio", "user-controls" ]
4,019,481
1
4,025,741
null
1
523
This question is a follow up to a previous question I had [I'm trying to implement 2 factor authentication on the cheap. How would I do that?](https://stackoverflow.com/questions/2822885/im-trying-to-implement-2-factor-authentication-on-the-cheap-how-would-i-do-that) I'm exploring the idea of using an android phone to SMS or robot talk a pin/token code to a user's home phone or mobile device. I'm looking at using android because the hardware would be cheap and I'll be able to install the application I'd make with no issues. User's should be logging onto the system about once a day. The application currently has 75 users. User's are not guaranteed to have a cell phone. I have a few questions: Is this a viable 2nd form of authentication? Is there a cheaper way of accomplishing this? The workflow is as follows. User goes to webapp enters user name, selects type of notification they want, SMS or Speech and submits. The webapp (in my case C# .net) verifies the user exists and looks up the phone number we have on record. The web app creates a token that will expire in a set amount of time and somehow communicates this and the phone number to the android device. (XML, files or anything really) The android phone has an application that checks the XML file or folder containing files with the information on a set interval and performs a SMS or phones the person and tells them the token with the robot voice. The phone then notifies the webapp that the message was sent or failed and the webapp notifies the user. Here is a picture of what I'm thinking. ![alt text](https://i.stack.imgur.com/y8dtU.jpg) Thanks for any feedback. Security is not my strong suit.
Using SMS as an authentication factor for a website
CC BY-SA 2.5
null
2010-10-25T22:47:55.083
2010-10-26T16:28:55.180
2017-05-23T10:30:21.840
-1
102,526
[ "android", "authentication", "mobile-phones" ]
4,019,679
1
null
null
2
223
i'm not sure of the term for this problem i'm having, or if it's even an issue to worry about at all. let's say i have a hypothetical situation like this: ![http://i.stack.imgur.com/o1zyq.png](https://i.stack.imgur.com/31eO7.png) it seems as though having the link from remix objects back to the the original objects makes for a somewhat complicated structure, especially if i start to add more objects into the structure. if i remove the links from remix song and remix album to the original, i can use some sort of ID and traverse the structure to still figure out the original versions, but this would require me to write some code to ensure the integrity of the data, like the remix album is not pointing to an original album that no longer exist. question: is having a structure like this something to worry about? if so, how to fix such a structure aside from the solution i proposed above which requires writing code to ensure the integrity of the data.
Parallel relationship data structure
CC BY-SA 3.0
null
2010-10-25T23:26:53.550
2012-09-21T10:42:35.600
2012-09-21T10:42:35.600
525,478
487,044
[ "data-structures" ]
4,019,718
1
4,019,824
null
1
127
I have the following simple preloading function which substitute an image "src" attribute with another image (an animated GIF "Loading"). The problem arises only in IE: if the "loading" GIF is smaller than the actual image src, that will be resized. For example if I have a square 100px image and preload it, the image is temporarly substituted by an animated GIF of 50x50px. Whem the original image is fully loaded it is NOT displayed at its size, but at the smaller 50px. Here is the code, if you need it ``` _preload = function(url, placeholderUrl) { var img = new Image(); loading = true; var placeholder = new Element("img", { src: placeholderUrl }); img.placeholder = placeholder; img.onload = function(evt) { this.placeholder.src = this.src; loading = false; } img.src = url; return placeholder; } ``` ![alt text](https://i.stack.imgur.com/RhUgb.jpg) Here you can see the visual error
swapping images of different sizes [Javascript vs IE]
CC BY-SA 2.5
0
2010-10-25T23:52:31.280
2010-10-26T00:18:04.157
null
null
315,306
[ "javascript", "internet-explorer" ]
4,019,888
1
4,019,948
null
19
26,702
How do you add a image to a tab label on a tab control? Just like this: ![alt text](https://i.stack.imgur.com/53XX9.png) But on a normal tab page like this:![alt text](https://i.stack.imgur.com/ex86u.png) I understand to do this you need to a add a Imagelist and make a index of the images to be used but I haven't found any examples searching on google. Any help?
How do you add an image to TabControl's label in Winforms?
CC BY-SA 3.0
0
2010-10-26T00:37:03.817
2014-06-03T08:06:39.153
2014-06-03T08:06:39.153
395,698
339,789
[ "c#", "winforms", "tabs" ]
4,019,972
1
4,020,999
null
0
282
Currently I have a web part with some custom CSS. This is a Document Library web part which also contains the link to "Add a new document" below. ![alt text](https://i.stack.imgur.com/39Las.jpg) Once I click Add new document I am taken to the upload document page. Is there any way to have the upload document section displayed on the same page or is there an easy way to custom style the upload document page for just this library only?
Edit Sharepoint shared web part CSS for extra actions
CC BY-SA 2.5
null
2010-10-26T00:59:32.037
2010-10-26T05:39:47.473
2010-10-26T05:34:23.350
266,453
139,196
[ "css", "sharepoint", "sharepoint-2007", "customization" ]
4,020,020
1
4,021,723
null
0
721
This might be the simplest question of the day. I'm looking for the best answer based on all knowledged across community, not a basic tab effect but one that could be scalable, easy to implement and compliant with standards. What could be a good and simple (compatible) way to accomplish having different sections with Javascript. I personally prefer jQuery, Mootools or plain Javascript. When each link is clicked it should open up relationed table row or div, not a hover menu. Section has to stay open after selected on left options. Any help with resources or direction will be greatly appreciated. Form will have one common submit button with all selected options. ![alt text](https://i.stack.imgur.com/i1vsL.png)
Simple Tab Javascript Sections (not menus)
CC BY-SA 4.0
null
2010-10-26T01:15:49.943
2020-03-02T11:47:38.590
2020-03-02T11:47:38.590
4,370,109
64,742
[ "javascript", "jquery", "mootools" ]
4,020,025
1
null
null
0
299
Hey guys, I have a quick question. Does anyone know of any software that can help with understanding client-server logs? I have 3 huge logs of 1 server & 2 clients that are time stamped, but only if I could arrange all 3 of them in a UI side by side in a chronological order, it would be so easy for me to understand them. Thanks for any tips on such a software. (Or maybe some ideas to help me with this.)3![alt text](https://i.stack.imgur.com/u6G74.png) Edit: the mockup image has blue line partitions to separate out time in milliseconds. That is just for visualization.
Software to help in log analysis?
CC BY-SA 2.5
null
2010-10-26T01:16:49.113
2012-11-29T06:17:34.393
2010-10-28T20:42:01.853
360,844
360,844
[ "analysis", "logging" ]
4,020,041
1
null
null
7
21,162
I need to make a function that get all the properies of an object (including an children objects) This is for my error logging feature. Right now my code always returns 0 properties. Please let me know what I'm doing wrong, thanks! ``` public static string GetAllProperiesOfObject(object thisObject) { string result = string.Empty; try { // get all public static properties of MyClass type PropertyInfo[] propertyInfos; propertyInfos = thisObject.GetType().GetProperties(BindingFlags.Public | BindingFlags.Static);//By default, it will return only public properties. // sort properties by name Array.Sort(propertyInfos, (propertyInfo1, propertyInfo2) => propertyInfo1.Name.CompareTo(propertyInfo2.Name)); // write property names StringBuilder sb = new StringBuilder(); sb.Append("<hr />"); foreach (PropertyInfo propertyInfo in propertyInfos) { sb.AppendFormat("Name: {0} | Value: {1} <br>", propertyInfo.Name, "Get Value"); } sb.Append("<hr />"); result = sb.ToString(); } catch (Exception exception) { // to do log it } return result; } ``` here's what the object looks like: ![alt text](https://i.stack.imgur.com/DxyYf.gif) ![alt text](https://i.stack.imgur.com/nEL0Y.gif)
Reflection class to get all properties of any object
CC BY-SA 2.5
0
2010-10-26T01:23:20.000
2012-07-24T15:13:23.957
2010-10-26T02:04:12.770
87,302
87,302
[ "c#", "reflection" ]
4,020,690
1
4,021,389
null
1
2,153
For example, I need to change from ![alt text](https://i.stack.imgur.com/mBIuJ.png) to ![alt text](https://i.stack.imgur.com/TH1f0.png) . I know PIVOT is for that, but it requires an aggregate function; and for my case, I donot need to aggregate only need column to row. You can use the following sample data: ``` CREATE TABLE[StudentScores] ( [UserName] NVARCHAR(20), [Subject] NVARCHAR(30), [Score]FLOAT, ) GO INSERT INTO[StudentScores]SELECT'Nick','Chinese',80 INSERT INTO[StudentScores]SELECT'Nick','Maths',90 INSERT INTO[StudentScores]SELECT'Nick','English',70 INSERT INTO[StudentScores]SELECT'Nick','Biology',85 INSERT INTO[StudentScores]SELECT'Kent','Chinese',80 INSERT INTO[StudentScores]SELECT'Kent','Maths',90 INSERT INTO[StudentScores]SELECT'Kent','English',70 INSERT INTO[StudentScores]SELECT'Kent','Biology',85 ```
How to make Column to Row without an aggregate function in sql server 2005/8?
CC BY-SA 3.0
null
2010-10-26T04:25:43.080
2014-05-15T08:22:06.797
2012-01-07T12:00:44.690
918,472
316,334
[ "sql", "sql-server", "tsql", "pivot" ]
4,020,731
1
null
null
1
2,629
Hi I have a C# web application with a C# ActiveX tool that connects to the user's hardware to collect information. anyways all works fine on most computer except on some it shows me a (sometime on resetting of CAS permissions it works but soon starts throwing a fit) "Assertion failed!" error (See screenshot) new SecurityPermission(PermissionState.Unrestricted).Assert(); but the Error says it is "Microsoft Visual C++ Runtime Library" exception and from a completely different program NCS2Prov.exe which a bit of googling tells me is due to the network adapter. My applications runs on the internet and has the right CAS permissions - is there any reason that the CAS permission might have been revoked? Some clues on the internet tell me to reinstall the Microsoft Visual C++ Runtime library -- will reinstalling .net Framework 2.0 do the same thing? ![alt text](https://i.stack.imgur.com/6G4nl.png)
Why does my application return 'Assertion Failed!' error on some systems?
CC BY-SA 3.0
null
2010-10-26T04:38:15.427
2012-12-06T09:14:34.503
2012-12-06T09:14:34.503
1,840,861
109,141
[ "c#", "c++", "assert", "assertions", "assertion" ]
4,020,765
1
4,023,489
null
0
2,858
in my tomcat startup, i set -xms , -xmx to 1GB. inside visualvm when i monitor memory 1. when i do sampling of memory, it doesnt show accurate memory usage, until, if i press 'snapshot', and then the java classes that utilizing memory showing correct patterns and instances count. why like this? 2. also, as i set tomcat memory to 1gb, memory keep on increasing ing zip-zat and go up aroudn 960mb. until i press "perform gc" and the memory back to 200mb.. 3. do you think needed to create scheduler to force hit perform.gc() on jvm ,everday at midnight? any comments from my description ![VisualVM screenshot](https://i.stack.imgur.com/iHMbe.gif)
visualvm monitors memory usage
CC BY-SA 3.0
null
2010-10-26T04:45:19.543
2011-06-22T21:14:39.570
2011-06-22T21:14:39.570
3,916
108,869
[ "java", "memory-leaks", "visualvm" ]
4,021,259
1
4,022,494
null
4
918
I'm in the middle of a project teaching the basics of OpenGL. I've got most of the requirements working fine in terms of camera rotation, translation etc. However I'm struggling a lot with the lighting. This picture is a comparison of my current program (left) vs the sample solution (right). ![current program compared to sample solution](https://i.stack.imgur.com/amADf.jpg) In case you can't tell, I'm getting very monochrome colours on the truck. The shadows are very sharp and dark, the high points are singly coloured instead of specular. The project calls for the use of textures; the one I've shown here is a basic texture of plain grey pixels but i could use any texture (including the beach sand one being used for the ground). I'm drawing the object from a mesh: ``` GLfloat ambient[] = {0.1, 0.1, 0.1, 1}; GLfloat diffuse[] = {0.1, 0.1, 0.1, 1}; GLfloat specular[] = {1.0, 1.0, 1.0, 1.0}; GLfloat shine = 100.0; glMaterialfv(GL_FRONT, GL_AMBIENT, ambient); glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse); glMaterialfv(GL_FRONT, GL_SPECULAR, specular); glMaterialf(GL_FRONT, GL_SHININESS, shine); glEable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, textureNumber); glBegin(GL_TRIANGLES); for (int i = 0; i < meshes[n]->nTriangles; i++) { for (int j = 0; j < 3; j++) { glNormal3fv(mesh -> normals[mesh->triangles[i][j]]); glTexCoord2fv(mesh->texCoords[mesh->triangles[i][j]]); glVertex3fv(mesh -> vertices[mesh->triangles[i][j]]); } } glEnd(); ``` There is one light in the scene: ``` glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST) GLfloat diffuse0[]={1.0, 1.0, 1.0, 1.0}; GLfloat ambient0[]={1.0, 1.0, 1.0, 1.0}; GLfloat specular0[]={1.0, 1.0, 1.0, 1.0}; GLfloat light0_pos[]={1.0, 1.0, 1,0, 1.0}; glLightfv(GL_LIGHT0, GL_POSITION, light0_pos); glLightfv(GL_LIGHT0, GL_AMBIENT, ambient0); glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse0); glLightfv(GL_LIGHT0, GL_SPECULAR, specular0); glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 2.0); glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 1.0); glLightf(GL_LIGHT0, GL_QUADRATIC_ATTENUATION, 2.0); ``` Is there something major that I'm missing that could be causing this severe difference? Particular values I should play with? Or a `glEnable` call I've missed? Any help, advice or pointers to elsewhere much appreciated.
OpenGL Lighting struggles
CC BY-SA 2.5
null
2010-10-26T06:37:10.437
2010-10-26T09:48:58.930
2010-10-26T06:45:00.493
251,122
622,412
[ "c", "opengl" ]
4,021,318
1
4,021,559
null
10
1,280
I am doing the design of a small project where I didn't use programming against interfaces for all my classes. I found that some classes would hardly ever be needed to change, so I let them be referenced by their client classes as concrete classes. So, let's say we have `ClassB` that'll be consumed be consumed by `ClassA`: ![alt text](https://i.stack.imgur.com/TFNUR.png) ``` class ClassB { } ``` My question is, should I create `ClassB` in `ClassA`, or should I pass that responsability "up" in the hierarchy? I'll depict both cases: ``` class ClassA { private ClassB classB; public ClassA() { this.classB = new ClassB(); } } ``` or ``` class ClassA { private ClassB classB; public ClassA(ClassB classB) { this.classB = classB; } } ``` I'd like to hear about how would you do it and what'd be the rationale behind it! Thanks
Should I make concrete class dependencies explicit through constructor injection in my classes?
CC BY-SA 2.5
0
2010-10-26T06:49:52.283
2014-08-16T08:56:14.360
null
null
130,758
[ "c#", "java", "oop", "dependency-injection" ]
4,021,329
1
4,021,940
null
6
2,185
I am doing my first steps with GDB in TUI mode. During the debug session I see that each line outputted to console occurs in a single line (in the picture you see `222222` highlighted in red). It is like having an output pane of one single line. On top of that, each `\n` doesn't cleanup that line so all the strings do overwrite each other making my output very confusing. Can you help me a bit with this issue or point me to some key command to look for in order to have a clean output? I also highlighted another area (in the picture `1111111`) because the first string is outputted there and then all other on the frame of the source code window. ![alt text](https://i.stack.imgur.com/YyPw3.png)
issue with debugged application output in gdb
CC BY-SA 3.0
0
2010-10-26T06:51:38.837
2012-02-21T15:40:04.650
2012-02-21T15:40:04.650
597,607
245,416
[ "debugging", "gdb" ]
4,021,428
1
4,025,965
null
8
7,212
After launching SSMS (2008 R2) on my dev machine, which I launch with ``` "D:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" -nosplash -S localhost -d testdata ``` without doing anything, in Activity Monitor I observe some sessions (TestData is my default database) ![alt text](https://i.stack.imgur.com/I2AVw.jpg) Details of session 51: ``` select @@spid; select SERVERPROPERTY('ProductLevel'); ``` Details of session 52: ``` DBCC INPUTBUFFER(52) ``` Details of session 53: ``` SELECT CAST(serverproperty(N'Servername') AS sysname) AS [Name], 'Server[@Name=' + quotename(CAST( serverproperty(N'Servername') AS sysname),'''') + ']' + '/JobServer' AS [Urn] ORDER BY [Name] ASC ``` Details of session 54: ``` SET NOCOUNT ON; DECLARE @previous_collection_time datetime; DECLARE @previous_request_count bigint; DECLARE @current_collection_time datetime; DECLARE @current_request_count bigint; DECLARE @batch_requests_per_sec bigint; DECLARE @interval_sec bigint; -- Get the previous snapshot's time and batch request count SELECT TOP 1 @previous_collection_time = collection_time, @previous_request_count = request_count FROM #am_request_count ORDER BY collection_time DESC; -- Get the current total time and batch request count SET @current_collection_time = GETDATE(); SELECT @current_request_count = cntr_value FROM sys.sysperfinfo WHERE counter_name = 'Batch Requests/sec' COLLATE Latin1_General_BIN; SET @interval_sec = -- Avoid divide-by-zero CASE WHEN DATEDIFF (second, @previous_collection_time, @current_collection_time) = 0 THEN 1 ELSE DATEDIFF (second, @previous_collection_time, @current_collection_time) END; -- Calc the Batch Requests/sec rate for the just-completed time interval. SET @batch_requests_per_sec = (@current_request_count - @previous_request_count) / @interval_sec; -- Save off current batch count INSERT INTO #am_request_count (collection_time, request_count) VALUES (@current_collection_time, @current_request_count); -- Return the batch requests/sec rate for the just-completed time interval. SELECT ISNULL (@batch_requests_per_sec, 0) AS batch_requests_per_sec; -- Get rid of all but the most recent snapshot's data DELETE FROM #am_request_count WHERE collection_time < @current_collection_time; ``` If to launch SSMS (connecting to nameless instance by Windows authentication) without options then I do not have session corresponding to above show as 52 What had I done to have all those sessions to be launched ? I just do not remember all what I had been doing in my dev SQL Server 2008 R2 before... I restored the same options to SSMS.exe (-nosplash -S localhost -d testdata), relaunched SSMS and now I have different details corresponding to session 51 details: ``` DECLARE @edition sysname; SET @edition = cast(SERVERPROPERTY(N'EDITION') as sysname); select case when @edition = N'SQL Azure' then 1 else 0 end as 'IsCloud' ``` Why did not I have it before?
Where are all those SQL Server sessions from?
CC BY-SA 2.5
null
2010-10-26T07:12:24.607
2017-04-24T09:51:24.927
2010-10-26T07:23:08.583
200,449
200,449
[ "sql-server", "session", "ssms" ]
4,021,541
1
4,626,015
null
0
796
I did setup like this ![alt text](https://i.stack.imgur.com/fD2ue.png) but result is still like this: ![http://img41.imageshack.us/img41/8227/resultgj.png](https://i.stack.imgur.com/0fIbl.png) Where do I make a mistake? --- it was casued by google analytics code. i had to setup this way ``` var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxxx-1'], ['_setDomainName', 'www.xxxxxxx.com'], ['_trackPageview']); ```
I installed expires header at IIS 7.5 but still do not show at Firefox firebug yslow or .net plugin
CC BY-SA 3.0
null
2010-10-26T07:29:56.807
2014-01-23T20:19:19.017
2014-01-23T20:19:19.017
2,642,204
310,370
[ "http-headers", "iis-7.5", "installation", "yslow" ]
4,022,434
1
4,022,517
null
111
235,024
I changed the maxAllowedContentLength to ``` <security> <requestFiltering> <requestLimits maxAllowedContentLength="5024000000" /> </requestFiltering> </security> ``` In my web.config, but when running on IIS7 I get this error: > The 'maxAllowedContentLength' attribute is invalid. Not a valid unsigned integer ![http://i.stack.imgur.com/u1ZFe.jpg](https://i.stack.imgur.com/u1ZFe.jpg) but when I run in the VS server it run normally without any errors. How to config my website to allow upload files with 500MB size, without this problem on IIS7?
How to set the maxAllowedContentLength to 500MB while running on IIS7?
CC BY-SA 2.5
0
2010-10-26T09:43:09.747
2020-04-27T19:27:49.877
2010-10-26T09:53:43.923
41,956
20,126
[ "asp.net", "iis-7", "file-upload", ".net-4.0" ]
4,022,589
1
4,025,700
null
2
6,039
I've created a wallboard application to display outstanding support calls for my ICT department. I've bound a number of gridviews to sqldatasources which execute a stored procedure. This is automated via asp.net ajax controls and partially refreshes the page/data every 30 seconds. At the moment, when the number of records in the gridview goes over 9, the gridview automatically pages and shows the number of pages in the bottom right hand corner. The helpdesk can then VNC to the box which controls the screen and manually click to see what's on the next page. What I am after is a way to programmatically (using the c# code-behind file) changing the current displayed page after 10/15 seconds or so, obviously if this is possible in the scope of the gridview. I trailed using javascript (and failed at jquery) of scrolling the gridview within a div, however this didn't work as expected. Can anyone point me in the right example? I can't find anyone else querying this functionality via a quick Google. Any help/advice of how to fix this issue would be greatly appreciated!! ``` <asp:GridView ID="GridView1" ShowHeader="False" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" GridLines="None" CellPadding="2" Font-Size="35pt" AllowPaging="True" PageSize="9"> <Columns> <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID"> <ItemStyle Width="15%" /> </asp:BoundField> <asp:BoundField DataField="ASSIGNEES" HeaderText="ASSIGNEES" SortExpression="ASSIGNEES"> <ItemStyle Width="32%" Wrap="false"/> </asp:BoundField> <asp:BoundField DataField="title" HeaderText="title" SortExpression="title"> <ItemStyle Width="53%" Wrap="false"/> </asp:BoundField> </Columns> </asp:GridView> ``` ``` <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:FPConnectionString %>" SelectCommand="HDMonitoringOutstandingToday" SelectCommandType="StoredProcedure"></asp:SqlDataSource> ``` ![wallboard example.JPG](https://i.stack.imgur.com/sDvdy.jpg)
How to programmatically iterate through pages of a GridView
CC BY-SA 3.0
null
2010-10-26T10:02:26.877
2011-10-28T21:27:29.053
2011-10-28T21:27:29.053
757,830
487,443
[ "c#", "asp.net", "gridview", "sqldatasource" ]
4,022,788
1
4,023,366
null
0
332
Can you help-me with that database : ![alt text](https://i.stack.imgur.com/LJSp5.png) I´m using Fluent NHibernate, but XML helps too... My problem is with table... Thanks Paul
How to mapping that tables using NHibernate (Fluent or XML)
CC BY-SA 2.5
0
2010-10-26T10:29:21.387
2011-12-05T12:31:20.717
2010-10-26T11:29:20.940
83,313
83,313
[ "nhibernate", "database-design", "fluent-nhibernate", "nhibernate-mapping" ]
4,023,291
1
4,023,385
null
2
127
Why does the code have an error? ``` var images = ['/test/img/Gallery/large/4cba0c8a-4acc-4f4a-9d71-0a444afdf48d.jpg','/test/img/Gallery/large/4cba0ca8-2158-41af-829a-0a444afdf48d.jpg','/test/img/Gallery/large/4cbc549a-5228-433f-b0bc-0a444afdf48d.jpg']; $('.triggerNext').click(function(){ nextImage(); return false; }); function nextImage(){ currentImage = $('.Pagepage:eq(0)').val(); nextImage = parseInt(currentImage)+1; $('#imageCurrent').attr('src',images[nextImage]); $('#imageCurrent') .css('position','absolute').css('left',($(window).width()- $('#imageCurrent').width() )/2); $('.Pagepage').val(nextImage); } ``` It runs correctly the first time but gets an error after clicking. Yet, the code below runs fine without any errors: ``` var images = ['/test/img/Gallery/large/4cba0c8a-4acc-4f4a-9d71-0a444afdf48d.jpg','/test/img/Gallery/large/4cba0ca8-2158-41af-829a-0a444afdf48d.jpg','/test/img/Gallery/large/4cbc549a-5228-433f-b0bc-0a444afdf48d.jpg']; $('.triggerNext').click(function(){ currentImage = $('.Pagepage:eq(0)').val(); nextImage = parseInt(currentImage)+1; $('#imageCurrent').attr('src',images[nextImage]); $('#imageCurrent') .css('position','absolute').css('left',($(window).width()- $('#imageCurrent').width() )/2); $('.Pagepage').val(nextImage); return false; }); ``` ![alt text](https://i.stack.imgur.com/lDrGe.jpg)
How to fix 'Uncaught TypeError: number is not a function error' and 'Failed to load resource' error
CC BY-SA 3.0
0
2010-10-26T11:44:59.340
2015-12-15T08:50:47.767
2015-12-15T08:50:47.767
747,678
329,424
[ "javascript", "jquery" ]
4,023,310
1
4,040,164
null
7
1,430
A similar question [is posted here](https://stackoverflow.com/questions/1607124/algorithms-to-identify-all-the-cycle-bases-in-a-undirected-graph). I have an undirected graph with Vertex `V` and Edge `E`. I am looking for an algorithm to identify all the cycle bases in that graph. An example of such a graph is shown below: ![alt text](https://i.stack.imgur.com/ys5Hi.jpg) Now, all the vertex coordinates are ( , contrary to the explanation in the above diagram), therefore it is possible to find the smallest cycles that encompass the whole graph. In this graph, it is possible that there are edges that don't form any cycles. What is the best algorithm to do this? Here's another example that you can take a look at: ![](https://docs.google.com/drawings/pub?id=1QF2JouvziCYaPCkERy5kld1No8NORf63O7XwKN22nXY&w=960&h=720) Assuming that `e1` is the edge that gets picked first, and the arrow shows the direction of the edge.
Find All Cycle Bases In a Graph, With the Vertex Coordinates Given
CC BY-SA 2.5
0
2010-10-26T11:47:58.063
2010-12-21T15:43:14.637
2017-05-23T11:48:22.880
-1
3,834
[ "graph" ]
4,023,800
1
4,023,867
null
2
405
I've recently engaged on studying WPF (to be honest, I've gotten into it just because there was built-in 3D object, camera and rendering capabilities), which has allowed me to do this: ![alt text](https://dl.dropbox.com/u/3045472/StackOverflow/MasterMaze.png) Download: [Master Maze](http://dl.dropbox.com/u/3045472/MasterMaze.exe) Use directional keys ([ ↑ ] [ ↓ ] [→] [←]) to walk and turn, [Q] or [A], and [W] or [S] ("god mode") to have a broader look on the maze from above. Note: I have no intention on harming anyone's PC. Please, would the first one to run it comment here stating that it's safe ? Or just run it on a VM. Which I'm aware is not quite that impressive (given that there are tools that can be used to develop way smoother and more detailed little games like this one in a tenth of the time), but it was made for learning, and developing my notions in 3D development and spacial concepts. As I'm learning Java recently, and I'm wondering: are there tools to work with 3D just as easily as in what is provided in WPF ? For those who don't know: WPF provides the possiblity to create 3d objects, cameras, light, faces and render them (through the camera's view), and this little test game was made with fixed cubes and a camera that moves using user interaction. Not a dupe, it's not about Java equivalent for WPF, i'm asking specifically about the WPF's 3D functionalities.
Java equivalent to WPF's 3D functionalities
CC BY-SA 2.5
0
2010-10-26T12:50:24.210
2010-10-26T15:02:35.410
2017-02-08T14:30:42.527
-1
208,670
[ "java", ".net", "wpf", "3d" ]
4,024,245
1
null
null
10
1,470
does someone might know in visual studio 2010 or at least ? ![alt text](https://i.stack.imgur.com/Dv5am.jpg)
Search Value in VS2010 Debug Locals and/or expand all Nodes
CC BY-SA 2.5
0
2010-10-26T13:41:41.770
2010-12-02T02:07:32.227
null
null
182,758
[ "visual-studio-2010", "stack", "locals" ]
4,024,479
1
4,025,012
null
7
3,697
If I have something like this: ![alt text](https://i.stack.imgur.com/JegKv.png) Is there a way to fire the `mouseover` events on BOTH divs? Edit: Sorry all .. I tried to simplify the problem so it was clear to understand and I forgot to mention I have more than 100 divs like that so probably those solutions don't work. I'm going to see if I can adapt them.
Is there a way to fire over events ignoring z-index?
CC BY-SA 4.0
0
2010-10-26T14:05:26.953
2021-09-17T19:34:17.447
2021-09-17T19:34:17.447
4,370,109
290,692
[ "jquery", "z-index", "jquery-events" ]
4,024,568
1
4,024,611
null
0
832
i was wondering how can i change the iAd black background image ? ![alt text](https://i.stack.imgur.com/Peyt4.png)
iAd Banner background image
CC BY-SA 2.5
null
2010-10-26T14:13:38.850
2012-01-27T14:13:30.450
null
null
199,173
[ "iphone", "iad" ]
4,024,785
1
null
null
0
2,155
I'm writing a WebService in .NET and use a custom type with no public properties. It looks like this: ![Class diagramm for MacAddress](https://i.stack.imgur.com/7lel3.jpg) It is similar to the built-in type `Guid` but with special validation rules for MAC addresses. The SOAP description looks like this: ``` <StringProperty>string</StringProperty> <GuidProperty>guid</GuidProperty> <MacAddressProperty /> <!--My aim: <MacAddressProperty>macaddress</MacAddressProperty> --> ``` My question: Can I create a type like `MacAddress` to ensure type-safety and use it as parameter for a WebService? How can I say that the delivered string from the caller should be filled in the parameterized constructor (probably like `Guid` works - it has a constructor with a string-parameter)? Thanks Alex
Custom data type as parameter in WebService
CC BY-SA 2.5
null
2010-10-26T14:35:34.837
2010-10-26T14:48:30.593
null
null
129,233
[ "c#", ".net", "web-services", "custom-type" ]
4,024,822
1
4,199,775
null
4
755
I want do an app,i want it look the same as this one: ![alt text](https://i.stack.imgur.com/pUF7P.jpg) I don't know how to write the word "writing" as the red mark ,and how to add the app icon on the screen.
how to write word for app on screen
CC BY-SA 2.5
0
2010-10-26T14:40:42.407
2010-11-16T22:38:39.427
2010-10-26T14:55:21.840
40,347
233,618
[ "android", "android-widget" ]
4,025,367
1
4,029,751
null
1
1,046
I have a `UIDatePicker` using `UIDatePickerModeTime` that I use in an iPhone app modally, works fine: ![alt text](https://i.stack.imgur.com/jKivW.png) Using this same basic code for iPad, but putting the view in a `UIPopoverController` gives some pretty inconsistent results. My desired mode (`UIDatePickerModeTime`) plus the other three modes are shown below. Notice how 2 of them are not rendering at all, but instead have no content `UIDatePickerModeTime` ![alt text](https://i.stack.imgur.com/6fRIS.png) `UIDatePickerModeCountDownTimer` ![alt text](https://i.stack.imgur.com/U5tzu.png) `UIDatePickerModeDateAndTime` ![alt text](https://i.stack.imgur.com/MVNmu.png) `UIDatePickerModeDate` ![alt text](https://i.stack.imgur.com/Wexgc.png) What could be causing the `UIDatePickerModeTime` and `UIDatePickerModeDateAndTime` modes to go haywire?
UIDatePicker not rendering properly for certain modes in UIPopoverController
CC BY-SA 2.5
null
2010-10-26T15:44:22.830
2010-10-27T03:23:56.457
null
null
69,634
[ "iphone", "ipad", "uidatepicker", "uidatepickermodetime" ]
4,025,602
1
4,026,602
null
0
240
I'm having a problem with VS2005. Whenever I have an exception thrown and my program breaks, the line that it breaks on is not readable because it turns black and blue. Please see my screenshot for a better idea of what I'm talking about. ![alt text](https://i.stack.imgur.com/csm4F.jpg) I had resharper installed but I went ahead and disabled it but this is still happening. Thanks
Blue/Black line appearing on exception thrown in Visual Studio 2005
CC BY-SA 2.5
null
2010-10-26T16:11:06.153
2010-10-26T18:09:08.270
null
null
176,755
[ "visual-studio", "visual-studio-2005" ]
4,025,686
1
4,032,809
null
5
2,571
I'd like to achieve the following and was looking for a sample/tutorial but couldn't really find anything: I have C# Winforms application, which has multiple Forms within the same process. I'd like to be able to drag & drop items within and between forms and would like to provide some custom painted visualization of the item being dragged. For example, my IM app shows the effect that I'd like to achieve: ![alt text](https://i.stack.imgur.com/BTOGx.png) Thanks, Tom
Winforms -> Visualize dragged item for Drag & Drop
CC BY-SA 2.5
0
2010-10-26T16:22:37.590
2021-09-24T05:46:31.903
null
null
178,189
[ "c#", "winforms", "drag-and-drop" ]
4,025,978
1
null
null
2
376
![alt text](https://i.stack.imgur.com/FEQC9.png) In hierarchy viewer there are several IDs as shown above, for example "id/timepicker_input". But I can't find a respective timepicker_input - ID when typing ``` myNumberPicker.findViewById(android.R.id. ...? ); ``` So how to access these Views by their ID?
How to access a View by an ID of the android namespace
CC BY-SA 2.5
null
2010-10-26T16:56:35.790
2010-10-26T20:07:35.553
2010-10-26T17:00:06.693
474,326
474,326
[ "android", "namespaces", "view", "hierarchy" ]
4,027,164
1
4,029,789
null
0
843
I have some code that inserts data into some tables (one table has a FILESTREAM column) and then calls SubmitChanges after it is done. ``` db.Log = new System.IO.StreamWriter(@"c:\windows\temp\linq.log") { AutoFlush = true }; db.SubmitChanges(ConflictMode.FailOnFirstConflict); ``` I have referenced the following links but they appear to not be my issue: [LINQ to SQL: SubmitChanges() does not work?](https://stackoverflow.com/questions/3441241/linq-to-sql-submitchanges-does-not-work) [LINQ not updating on .SubmitChanges()](https://stackoverflow.com/questions/206532/linq-not-updating-on-submitchanges) Each table has a primary key. ![alt text](https://i.stack.imgur.com/UyIi0.jpg) I have 14 tables and I see 14 IsPrimaryKey=true contained in the linq.designer.cs Though I do see that "AutoSync=AutoSync.OnInsert" is missing from the Files table but I think that is because IDENTITY is not set (using guid as primary key). When I check the database, nothing was inserted into it. The linq.log shows: ``` INSERT INTO [dbo].[Files]([fileID], [FileContents], [dteCreated], [dteLastModified], [txtDesc], [mimeID], [txtName], [txtTitle], [dteDeleted]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8) -- @p0: Input UniqueIdentifier (Size = -1; Prec = 0; Scale = 0) [92190315-1107-4848-94b3-dd9badf4465b] -- @p1: Input VarBinary (Size = -1; Prec = 0; Scale = 0) [SqlBinary(24064)] -- @p2: Input DateTime2 (Size = -1; Prec = 0; Scale = 0) [10/26/2010 1:54:55 PM] -- @p3: Input DateTime2 (Size = -1; Prec = 0; Scale = 0) [10/26/2010 1:54:55 PM] -- @p4: Input VarChar (Size = 8000; Prec = 0; Scale = 0) [This is my new file] -- @p5: Input Int (Size = -1; Prec = 0; Scale = 0) [3] -- @p6: Input VarChar (Size = 8000; Prec = 0; Scale = 0) [MySecondTestDoc.doc] -- @p7: Input VarChar (Size = 8000; Prec = 0; Scale = 0) [My Other Test Document] -- @p8: Input DateTime2 (Size = -1; Prec = 0; Scale = 0) [] -- Context: SqlProvider(Sql2008) Model: AttributedMetaModel Build: 4.0.30319.1 INSERT INTO [dbo].[UserFiles]([fileID], [userID], [rightsID]) VALUES (@p0, @p1, @p2) SELECT CONVERT(Int,SCOPE_IDENTITY()) AS [value] -- @p0: Input UniqueIdentifier (Size = -1; Prec = 0; Scale = 0) [92190315-1107-4848-94b3-dd9badf4465b] -- @p1: Input Int (Size = -1; Prec = 0; Scale = 0) [1] -- @p2: Input Int (Size = -1; Prec = 0; Scale = 0) [3] -- Context: SqlProvider(Sql2008) Model: AttributedMetaModel Build: 4.0.30319.1 ``` When I look at Server Profiler it records RPC:Completed exec sp_executesql "Good Insert Statement" When I run the sql manually through Server Manager Studio, everything works fine. I can do that successfully either by logging in with SA or with the credentials used by the web service. LINQ SubmitChanges is not throwing an error though. Any reason why it is not working? I have not overloaded any Insert/Update/DeleteFile functions in any partial classes. Modifying other tables seem to work fine though. I am wondering if it has to do with the FILESTREAM column. My connection string is: ``` Data Source=IP;Initial Catalog=MyDB;User ID=myLogin;Password=myPswd ``` Once I manually put the record into the table (FILESTREAM table), I can read that data just fine. Lastly, I have FILESTREAM configured for Transact-SQL access and not for file i/o streaming access. From how I understood it, I didn't see a need to have a shared folder to the data location. I wanted everything to go through the database to get to the FILESTREAM data. Thanks! FIXED I have the following code: ``` public TransactionScope CreateTransactionScope(TransactionScopeOption scope, IsolationLevel level) { var transactionOptions = new TransactionOptions(); transactionOptions.IsolationLevel = level; transactionOptions.Timeout = TimeSpan.MaxValue; return new TransactionScope(scope, transactionOptions); } public TransactionScope CreateTransactionScope(TransactionScopeOption scope) { return CreateTransactionScope(scope, IsolationLevel.ReadCommitted); } ``` and my submitchanges looked like: ``` using (var ts = db.CreateTransactionScope(TransactionScopeOption.RequiresNew, IsolationLevel.ReadUncommitted)) { db.SubmitChanges(ConflictMode.FailOnFirstConflict); } ``` anyone? anyone? I forgot the complete statement... lol. I was thinking that I might add more in the submitchanges area and might want to rollback so I left the using statement there but never commit my changes... Thanks everyone!
LINQ to SQL SubmitChanges not working FILESTREAM Table
CC BY-SA 2.5
0
2010-10-26T19:16:29.373
2010-10-27T03:36:36.107
2017-05-23T12:13:29.270
-1
207,305
[ "wcf", "linq-to-sql", "sql-server-2008", "filestream", "submitchanges" ]
4,027,755
1
4,027,902
null
3
7,479
I'm working on a template with a designer and we see different things. In my browser on mac the input field are next to the labels but for the designer in his browser the input fields are under the labels. I use eric meyer's css reset so everything should be correct. Here's a screenshot to illustrate what I mean (left is what it should be and on the right what it shouldn't be) ![alt text](https://i.stack.imgur.com/srohF.jpg) Does anyone know how this could be fixed?
css difference between firefox/Mac & firefox/Windows
CC BY-SA 2.5
null
2010-10-26T20:34:53.920
2015-10-07T19:52:10.720
null
null
173,234
[ "css", "windows", "macos", "firefox" ]
4,027,795
1
4,028,404
null
5
2,264
I'm rendering charts on my website using the Google Charts API and I want to export these into a report for the users, most likely a PDF file. What methods are available to do this programmatically into a PDF file? ![alt text](https://i.stack.imgur.com/x7JJj.png) ![alt text](https://i.stack.imgur.com/kRVpc.png)
How can I programatically render Google Charts API images into a PDF file?
CC BY-SA 2.5
null
2010-10-26T20:40:03.310
2022-08-24T17:43:36.257
null
null
121,682
[ "c#", ".net", "asp.net", "asp.net-mvc", "google-visualization" ]
4,028,053
1
4,028,070
null
5
1,263
![alt text](https://i.stack.imgur.com/NPILs.png) Referencing the screenshot above, I changed the name of the lowest-level folder in the tree. For example, I changed "Chips" to "chips." Oddly, Git refuses to recognize the following command when I try to add it to the commit: ``` git add public/images/chips/ ``` The only way I can get it to add the file to the commit is by adding an actual file in the subfolder. Any ideas how to handle?
Changing name of folder in Rails - Git won't let me add to commit
CC BY-SA 2.5
0
2010-10-26T21:08:45.190
2013-03-15T21:30:49.540
null
null
251,257
[ "ruby-on-rails", "github" ]
4,028,373
1
null
null
3
2,853
I have a Data Flow task with an XMLSource that references an XML Variable. The DataFlow task does recognize that there are x number of rows in the variable, but it only sees null values in every row: The xml variable value: ``` <?xml version="1.0" encoding="utf-8"?> <words> <word>butter</word> <word>crispy</word> </words> ``` I used this source to generate the XSD within the XMLSource Editor - here is the auto-generated XSD: ``` <?xml version="1.0"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="words"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="word" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> ``` The package compiles, executes, and processes all the rows in my XML, but only sees nulls rather than the actual text strings... Here is a shot of the DataViewer displaying 2 rows after reading the XML variable: ![alt text](https://i.stack.imgur.com/N0M3w.png)
SSIS XMLSource only seeing null values in XML variable
CC BY-SA 2.5
null
2010-10-26T21:57:16.390
2011-01-13T22:32:55.977
2010-10-27T04:54:27.683
13,302
214,935
[ "sql-server", "ssis", "package", "dts" ]
4,028,782
1
null
null
0
285
When I change the layout_height of an EditText field in Android, the nice looking gradient becomes a hard gray line as you can see here: ![alt text](https://i.stack.imgur.com/uUBMX.png) Is there a way to either fix or disable this gradient? thx Ben
changing EditText
CC BY-SA 2.5
null
2010-10-26T23:04:45.890
2010-10-26T23:14:57.443
null
null
372,405
[ "android", "colors", "height", "gradient", "android-edittext" ]
4,029,541
1
4,043,347
null
45
16,792
Folks, In a nutshell, I want to replicate this dialog: ![alt text](https://i.stack.imgur.com/cbgU4.png) It's a Visual Studio 2010 ASP.Net MVC project. If I execute this command, I get all the files I want, including the transformed web.configs in the "C:\ToDeploy" directory. I want to replicate this on the command line so I can use it for a QA environment build. I've seen various articles on how to do this on the command line for Remote Deploys, but I just want to do it for File System deploys. I know I could replicate this functionality using nAnt tasks or rake scripts, but I want to do it using this mechanism so I'm not repeating myself. I've investigated this some more, and I've found these links, but none of them solve it cleanly: - [VS 2008 version, but no Web.Config transforms](https://stackoverflow.com/questions/776635/replicate-vs2008-publish-web-site-from-command-line)- [Creates package, but doesn't deploy it..do I need to use MSDeploy on this package?](http://vishaljoshi.blogspot.com/2009/02/web-packaging-creating-web-packages.html)- [Deploys package after creating it above...does the UI really do this 2 step tango?](http://vishaljoshi.blogspot.com/2009/03/web-packaging-installing-web-packages.html) Thanks in advance!
VS2010 Web Publish command line version of File System deploy
CC BY-SA 3.0
0
2010-10-27T02:24:22.863
2014-09-26T19:58:52.230
2017-05-23T12:25:51.427
-1
27,555
[ "visual-studio-2010", "command-line", "msdeploy", "web-publishing", "msbuild-wpp" ]
4,029,777
1
4,029,853
null
0
117
I need some help positioning two nav elements (2 and 3) in a subheader (1). Please, refer to the mockup. ![alt text](https://i.stack.imgur.com/Fqkar.png) I am really only concerned with positioning here. I want to position the daysNav (2) on the left, and opposite it, the paginationNav (3) on the right. It would also be cool if I didn't have to define a fixed height for the subheader both elements are in; instead, it'd expand and collapse automatically based on the largest height size of either element. Thanks!
Positioning Two Nav Elements in Subheader
CC BY-SA 2.5
null
2010-10-27T03:32:00.137
2010-10-27T04:05:42.423
null
null
251,257
[ "css" ]
4,030,334
1
5,923,120
null
2
1,243
I am using [CKEditor](http://ckeditor.com/) as a rich text WYSIWYG Javascript editor. ![Rich Text Editor](https://i.stack.imgur.com/d9soX.png) I would like to add an on-screen keyboard so that they can easily enter text from non-English alphabets. ![Google Hebrew Keyboard](https://i.stack.imgur.com/MUk7w.png) I was planning on finding a JavaScript on-screen keyboard and adding a custom button with a CKEditor plug-in to trigger it. I've found a [couple](http://www.codeproject.com/KB/scripting/jvk.aspx) of JavaScript on-screen keyboards. [I like the one that Google provides best.](http://code.google.com/apis/ajaxlanguage/documentation/#Keyboard) The problem is that it needs to be bound to an HTML `<textarea>`. As far as I can tell CKEDitor uses an iFrame and has no `<textarea>`. Does anyone have any ideas for how to work around this problem? Is there a way I can bind the keyboard to the CKEditor "`<textarea>`"? Or is there an on-screen keyboard that doesn't need to be bound to anything? Thanks!
Creating a foreign language on-screen keyboard for CKEditor
CC BY-SA 2.5
null
2010-10-27T05:53:33.520
2012-08-14T04:49:25.403
null
null
284,685
[ "javascript", "plugins", "ckeditor", "google-language-api", "on-screen-keyboard" ]
4,030,379
1
4,033,361
null
2
3,985
Is there any way to add the x-graphics in the android Editbox like the of iPhone So that by clicking on that x graphic it can clear all the values in the Editbox ![alt text](https://i.stack.imgur.com/qJ970.jpg) Is there any way to listen weather i touch a specific part of an edit text Thank you
EditText with cross(x) button at end of it
CC BY-SA 3.0
0
2010-10-27T06:02:56.297
2014-01-28T08:24:37.360
2012-12-12T06:11:27.503
477,754
477,754
[ "android", "editbox" ]
4,030,427
1
4,062,364
null
10
5,572
I've rewritten the question in hopes that the goal is a little clearer. This is an extended question to this question [here](https://stackoverflow.com/questions/445235/generating-random-results-by-weight-in-php), and I really like the function provided in [this answer](https://stackoverflow.com/questions/445235/generating-random-results-by-weight-in-php/445363#445363). In the answer above, one is able to set the probability of hitting an extreme, with higher numbers producing a higher probability of getting lower numbers and vice-versa. The issue is that I must set the probabilities for 3 groups. Those groups are Lowest Value (LV), Highest Value (HV), and Middle Value (MV). However, to simplify the request, we can consider `EVP=HVP=LVP`. Given range, the HV/LV should appear based on the specified EVP and, as you progress/degress through the range from each extreme, the probability of the next value in the range will increase, or decrease, based on the distance between EVP and MVP. Using an example range of 1-6, with 1 and 6 being weighted at 5% (EVP), the probability spread would be 1/6 is 5%, 2/4 is 15%, and 3/4 is 30% (MVP), totalling 100%. The reverse should also be possible, swapping EVP and MVP should produce an inverse of the graph below. Here's an image that I hope will convey the results expected from the given example. ![Middle Weighted Graph](https://i.stack.imgur.com/WHuK1.png) It would be most excellent if I was able to set HVP and LVP separately producing a result similar to the graph below (). ![Middle Weighted Bonus Graph](https://i.stack.imgur.com/WW3Em.png) Thanks!
Generate Random Weighted value
CC BY-SA 2.5
0
2010-10-27T06:12:50.280
2010-11-03T04:24:32.423
2017-05-23T10:32:35.693
-1
191,837
[ "c#", "php", "random" ]
4,030,497
1
4,050,273
null
5
923
I have a contentEditable div on which if a cursor is placed it's displayed as a huge cursor! Here's the code: ``` <html> <head></head> <body > <div style="position:absolute; top:2px; left:30px; right:0px; bottom: 0px; height:100%;"> <div contentEditable="true" style=" color:#333333; height:100%; width:100%; cursor:text;" spellcheck="false"></div> </div> </body> </html> ``` You can see it here: [http://jsfiddle.net/yW62h/](http://jsfiddle.net/yW62h/) Here's what it looks like in my browser (FFX3.5) ![alt text](https://i.stack.imgur.com/c70op.png) This problem also appears in FFX3.6 and 4.0b6 Is this a bug or am I doing something wrong here?
Firefox - Huge Cursor
CC BY-SA 2.5
null
2010-10-27T06:24:21.193
2022-01-28T17:20:17.237
2022-01-28T17:20:17.237
4,294,399
391,441
[ "firefox", "text-cursor" ]
4,030,640
1
4,030,668
null
2
4,109
I've used `typedef` `enum` in the past with method parameters and had no problem, but today I'm having problems... h file ``` typedef enum { eGetVarious1, eGetVarious2, } eGetVarious; - (double)getVarious:(eGetVarious)eVar:(NSDate*)pDate; ``` an m file ![alt text](https://i.stack.imgur.com/ho3i8.jpg)
Why doesn’t my enum work as a method parameter?
CC BY-SA 2.5
null
2010-10-27T06:51:57.873
2010-10-27T07:09:09.280
2010-10-27T06:58:40.143
17,279
450,456
[ "objective-c" ]
4,030,672
1
4,032,463
null
2
2,769
I'm using Visual C# Express 2010 both on my Win7 and XP. I have a Windows Form Application project, and there is SevenXPForm (inherits Form). I created it in Visual C# Express 2010 on Win7, and in the Properties panel, I set ``` .MinimumSize = 300, 300 .Size = 300, 300 ``` And a TabControl is in the middle of the Form: ![alt text](https://i.stack.imgur.com/cuvyA.png) However, when I save the project/solution, and open in in Visual C# Express 2010 on WinXP, the size changed to: ``` .MinimumSize = 300, 279 .Size = 300, 279 ``` And the TabControl is NOT it the middle of the Form any more: ![alt text](https://i.stack.imgur.com/4UkQu.png) When I open it on Win7 again, it comes back. This is haunting me, cuz my application is expected to be working both on XP and Seven, (and Vista). Do I have to set something to let it behave exactly same both on Win7 and WinXP? Peter
Visual C# 2010 Express: Same Form But Different Size on Win7 and WinXP
CC BY-SA 2.5
null
2010-10-27T06:57:19.013
2013-11-14T17:45:32.730
null
null
301,336
[ "c#", "windows", "forms", "size" ]
4,030,686
1
4,031,347
null
2
816
I use ID3DXSprite interface to draw gui controls in my app. I have a 512x512 texture with all controls and use sprite->Draw() telling the exact RECT of control. Everything works fine except a strange bug on only one(!) machine. Normally, the control looks: ![alt text](https://i.stack.imgur.com/2vlW6.png) And on that strange machine: ![alt text](https://i.stack.imgur.com/7Wl25.png) Moreover, some controls look fine but also many of them look like this one - with corrupted edges and ... well you can see the difference :( The second machine has Intel(R) G41 Express Chipset video adapter. Please, if someone has ANY ideas why can it happen - help! Regards, Anthony.
Strange problem with ID3DXSprite Draw method
CC BY-SA 2.5
0
2010-10-27T06:59:29.853
2010-10-27T08:45:18.290
2020-06-20T09:12:55.060
-1
341,129
[ "directx", "sprite", "draw" ]
4,030,912
1
6,453,300
null
4
6,250
How do I enlarge those rectangles ? I'm using wpf toolkit charts and I've tried to play with the control legend but it didn't helped. ![alt text](https://i.stack.imgur.com/qvYmw.png)
wpf chart legend
CC BY-SA 2.5
null
2010-10-27T07:37:34.950
2011-06-23T11:33:41.723
2010-10-27T09:19:29.190
138,627
138,627
[ "wpf", "charts", "legend", "pie-chart" ]
4,031,271
1
4,040,910
null
4
549
I'm using the Default.png method to create a splashscreen. I'm using the same file for my background and the Default.png (except default.png has the 20 pixel status bar at the top). However, the iphone isn't displaying them in them the same. The Default.png is being displayed darker than the background, so it's painfully obvious when the app is loaded. As a visual example of what I mean, please see below: ![Splashscreen is left, loaded screen is right](https://i.stack.imgur.com/VMOVV.png) The image on left is the Default.png whereas the image on the right is when the app has loaded. The difference looks subtle here but when the whole image changes, it looks quite drastic. Is this an issue with the colour-formatting of the pngs? Or is this an iOS feature whereby the Default.png appears slightly darker anyway? It's probably not worth mentioning but I'm using Monotouch to develop my app, I doubt that would have anything to do with this.
Correct colour display of Default.png on iPhone
CC BY-SA 2.5
0
2010-10-27T08:35:38.700
2012-06-13T19:48:56.880
null
null
399,123
[ "iphone", "splash-screen", "default.png" ]
4,031,952
1
4,172,758
null
0
522
This is the default look & feel of `UIActionSheet`. ![alt text](https://i.stack.imgur.com/5Apck.png) The border of the view is very thick with black colors, the overall looking is very bold and heavy. This is the one Safari has ![alt text](https://i.stack.imgur.com/om8ai.png) You can see that the border is very thin, and overall looking is more light and simpler Can someone tell me how do i customise the default `UIActionSheet` view to the one in Safari? make it more simpler and lighter? Thansk
ipad: Easy way to customise the UIActionSheet look & feel to be like the one in Safari?
CC BY-SA 3.0
null
2010-10-27T09:59:39.473
2016-05-25T06:28:14.170
2016-05-25T06:28:14.170
356,292
213,076
[ "ipad", "uiactionsheet" ]
4,032,196
1
4,032,438
null
0
1,523
I need to be able to stretch a image background to fit the window size now it works in all browsers except for ie6 I have endlesly searched the internet for a solution and tried all things I have found but nothing seems to work in ie6 here is my demo site if you have ie6 you will be able to see my problem I need it too stretch the full width and height with out it distorting the image at all [http://demo.jigsawfinance.com/](http://demo.jigsawfinance.com/) any one know a solution that will work I have the img tag etc but still no avail for those without ie6 here is a capture of the screen veiw ![alt text](https://i.stack.imgur.com/8ESjy.gif) as you can see I have alot of white space where the image is supposed to expand too
ie6 image stretch and scale
CC BY-SA 2.5
null
2010-10-27T10:27:01.210
2011-07-18T23:27:42.760
2010-10-27T11:44:34.713
437,301
474,691
[ "internet-explorer-6", "background", "image-scaling" ]
4,032,237
1
4,244,431
null
0
624
I am going to start working with Entity framework but the problem is my Visual Studio 2008 Does not showing `ADO.Net Entity Data Model` in Items list. Following is snapshot of my item list and Visual Studio. ![alt text](https://i.stack.imgur.com/dtF87.jpg) ![alt text](https://i.stack.imgur.com/TBlbF.jpg)
ADO.Net Entity Data Model does not appear in Add Item List
CC BY-SA 2.5
null
2010-10-27T10:30:32.437
2010-11-22T10:28:10.730
2010-11-22T10:23:07.457
228,755
228,755
[ ".net", "visual-studio-2008", ".net-3.5", "ado.net-entity-data-model" ]
4,032,358
1
4,032,948
null
0
147
I am not realy a php programmer myself, so any help would be appreciated. I run a website on cms e107. Now I have installed a menu plugin called "Recent news menu" This will display the latest news articles in the selected menu area on the site. Now my problem is that it also displays news that is set to "Not display" (see picture) ![alt text](https://i.stack.imgur.com/cEYWG.jpg) Can anyone help how to get this not displayed? Here is all the code: ``` <?php global $sql2, $tp; $caption = "Recent news"; $no_news = "No news items"; $eol_separator = "</td></tr>"; $sol_separator = "<tr><td style='width:0%;text-align:left;'>"; $qry = "SELECT news_id, news_title FROM #news WHERE news_render_type = 0 ORDER BY news_id DESC LIMIT 0,5"; if($sql2->db_Select_gen($qry)) { $n_text = "<table style='width:100%;'>"; while ($row = $sql2->db_Fetch()) { $title = $tp->toHTML($row['news_title']); $n_text .=$sol_separator ."<a href='".e_HTTP."news.php?item.".$row['news_id']."'>".$title."</a>".$eol_separator; } $n_text .= "</table>"; } else { $n_text = $no_news; } $ns->tablerender($caption, $n_text); ```
Php question about news menu plugin that may not be displayed
CC BY-SA 2.5
null
2010-10-27T10:45:06.753
2010-10-27T14:24:40.170
2010-10-27T11:42:25.823
437,301
487,527
[ "php", "content-management-system" ]
4,032,380
1
null
null
3
19,587
Below is a matrix to convert RGB to YCbCr. Can you tell me how can I get formula to convert YCbCr to RGB? I mean, I have YCbCr value available and I want to get RGB from it. ![RGB to YUV Image](https://i.stack.imgur.com/oNdh7.png)
YCbCr to RGB from matrix table
CC BY-SA 3.0
null
2010-10-27T10:47:31.143
2023-02-08T20:14:20.797
2016-05-26T07:18:54.730
1,859,503
148,869
[ "math", "rgb" ]
4,032,707
1
4,032,739
null
1
177
My css looks like this ``` * { margin: 0; padding: 0; } body { background-color: #FFFFFF; } div#header { background-color: #969696; height: 80px; } div#mid-bar { background: url(images/home.jpg) left no-repeat #6f6565; height: 200px; } #searchbox { background-color: #c1c1c1; width: 200px; height: 180px; margin: 10px 20px 10px 350px; } ``` and my html ``` <div id="header"> </div> <div id="mid-bar"> <div id="searchbox"> </div> </div> ``` ![preview](https://i.stack.imgur.com/x9C97.png) you can see the problem. the space between header and mid-bar which is created due to the margin given in the searchbox div. i want this margin for searchbox within the mid-bar div... and not from header div.
css margin problem
CC BY-SA 2.5
0
2010-10-27T11:26:16.077
2010-10-27T17:52:49.397
null
null
356,188
[ "css" ]
4,032,751
1
4,362,523
null
3
3,067
I have a project that needs to draw text in a view with a gradient fill in a custom subclass of NSView, like this example below. ![alt text](https://cl.ly/2znx/Screen_shot_2010-10-27_at_12.30.59.png) I'm wondering how I can achieve this, as I'm pretty new to Cocoa drawing.
Drawing text with gradient fill in Cocoa
CC BY-SA 2.5
0
2010-10-27T11:33:03.287
2010-12-06T01:36:38.113
2017-02-08T14:30:42.950
-1
427,178
[ "cocoa", "text", "drawing", "gradient" ]
4,033,113
1
38,726,576
null
58
218,058
I'm using a DataGridView with object data binding to display information about logging entities in a system, retrieved via SOAP from a remote service. One of the columns is called "Last action" and means the last time the entity logged a message. It is a `System.DateTime` value. When I read the SOAP response (example below), he timestamp obviously contains all the information, up to second fractions. ``` <LoggingEntity> <host>marty86ce</host> <process>10148</process> <logger>http_core</logger> <appName>httpd</appName> <ffda>true</ffda> <lastAction>2010-10-27T12:00:19.5117509Z</lastAction> <lastHeartbeat>0001-01-01T00:00:00</lastHeartbeat> <channelId>em_9BA2A2B4D0B6E66</channelId> <ffdaChannelId>em_E7C8D1D4DE8EEB9</ffdaChannelId> </LoggingEntity> ``` When I display it on the table, I instead can read up to the minutes ![http://i.stack.imgur.com/dLYBz.png](https://i.stack.imgur.com/dLYBz.png) I use the following code to do the data binding when I press the refresh button ``` public void RefreshEntities() { IEntityManagement management = EntityPlugin.GetProxy(); LoggingEntity[] result = management.FindLoggingEntities(new TemplateQuery { ffdaSpecified = true, ffda = true }); //Remote invocation Invoke(new MethodInvoker(delegate { gridEntities.DataSource = result; })); //THIS does the data binding from the array Invoke(new MethodInvoker(delegate { btnRefresh.Enabled = true; })); } ``` I would like to know how to control column formatting of data bound values. I think that the format dd/MM/yyyy hh:mm comes from my system's settings. Thank you in advance Full solution code on [Subversion](http://logbus-ng.svn.sourceforge.net/viewvc/logbus-ng/trunk/) (FFDAGui program) for the Logbus-ng open source project.
How to format DateTime columns in DataGridView?
CC BY-SA 2.5
0
2010-10-27T12:26:05.333
2019-11-17T02:04:31.520
2010-10-27T12:31:19.573
41,956
471,213
[ "c#", "winforms", "data-binding", "datetime", "datagridview" ]
4,033,531
1
4,033,753
null
1
320
I've looked all over and haven't been able to find a clear answer to a seemingly common question: How can I do two-way databinding over a many-to-many relationship in ASP.net? I have the following database structure: ![LINQ Diagram](https://i.stack.imgur.com/E1uRy.png) I am currently writing a page for editing or adding a User record. Databinding things such as name and password is simple, but what I really need it to be able to display a list of all PhoneGroups and choose one or more from the list. How do I do this? I tried a CheckBoxList, but while I can display the list of PhoneGroups, How do I bind the Checked state of each box based on whether the user has access? Some solutions use a loop in the OnDataBound event of the CheckBoxList. If I do this, how do I update the database when the checked state changes? I could go the brute force approach and write code to do this, but isn't there something that can make this simpler? It seems like such a common scenario. ## Update #1 I am currently using [Devart's LinqConnect](http://www.devart.com/linqconnect/), but I am open to change. The backend database is MySQL.
Many-to-Many Databinding in LINQ
CC BY-SA 2.5
null
2010-10-27T13:07:05.540
2010-10-27T13:42:29.637
2010-10-27T13:42:29.637
2,101,267
2,101,267
[ "c#", "asp.net", "linq" ]
4,033,613
1
null
null
1
1,037
I've already check [stackoverflow](https://stackoverflow.com/questions/2075720/windows-7-theme-for-wpf/) and the web for my problem, but I can't find any answer. I can't find a way to have the Windows 7 Aero theme working. I mean, I have the Aero style from PresentationFramework.Aero, but it has the Vista look, the blue selection is not exactly the same. This is the Windows 7 theme in Windows Explorer ![alt text](https://i.stack.imgur.com/EaMTf.png) And this is mine (the Aero look, I got by follow this thread) ![alt text](https://i.stack.imgur.com/SZn8w.png) I Have already managed to do the same ,as windows 7, by hand, but it's a pain to have to style every control, in order to retrieve this effect. Do you know if there is any way to get the Windows 7 Aero?
Windows 7 Aero theme
CC BY-SA 2.5
0
2010-10-27T13:14:30.727
2011-02-18T02:51:20.500
2017-05-23T10:32:36.017
-1
43,143
[ "wpf", "windows-7", "themes" ]
4,033,964
1
4,034,191
null
8
2,618
Given [GMan's](https://stackoverflow.com/users/87234/gman) deliciously evil `auto_cast` utility function concocted [here](http://www.gmannickg.com/?p=28), I've been trying to figure out why it doesn't compile for me when I'm trying to `auto_cast` from an rvalue (on MSVC 10.0). Here's the code that I'm using: ``` template <typename T> class auto_cast_wrapper : boost::noncopyable { public: template <typename R> friend auto_cast_wrapper<R> auto_cast(R&& pX); template <typename U> operator U() const { return static_cast<U>( std::forward<T>(mX) ); } private: //error C2440: 'initializing': cannot convert from 'float' to 'float &&' auto_cast_wrapper(T&& pX) : mX(pX) { } T&& mX; }; template <typename R> auto_cast_wrapper<R> auto_cast(R&& pX) { return auto_cast_wrapper<R>( std::forward<R>(pX) ); } int main() { int c = auto_cast( 5.0f ); // from an rvalue } ``` To the best of my ability I've tried to follow the C++0x reference collapsing rules and the template argument deduction rules outlined [here](http://thbecker.net/articles/rvalue_references/section_08.html), and as far as I can tell the code given above should work. > Recall that in pre-0x C++, it is not allowed to take a reference to a reference: something like A& & causes a compile error. C++0x, by contrast, introduces the following reference collapsing rules:- - - - The second rule is a special template argument deduction rule for function templates that take an argument by rvalue reference to a template argument:``` template<typename T> void foo(T&&); ``` Here, the following rules apply: 1. When foo is called on an lvalue of type A, then T resolves to A& and hence, by the reference collapsing rules above, the argument type effectively becomes A&. 2. When foo is called on an rvalue of type A, then T resolves to A, and hence the argument type becomes A&&. Now when I mouse over the call to `auto_cast( 5.0f )`, the tooltip correctly displays its return value as `auto_cast_wrapper<float>`. This meaning that the compiler has correctly followed rule 2: > When foo is called on an rvalue of type A, then T resolves to A. So since we have an `auto_cast_wrapper<float>`, the constructor should instantiate to take a `float&&`. But the error message seems to imply that it instantiates to take a `float` by value. ![error showing tooltip](https://i.stack.imgur.com/ShB3F.png) Here's the full error message, showing again that T=float correctly yet the T&& parameter becomes T? > ``` main.cpp(17): error C2440: 'initializing' : cannot convert from 'float' to 'float &&' You cannot bind an lvalue to an rvalue reference main.cpp(17) : while compiling class template member function 'auto_cast_wrapper<T>::auto_cast_wrapper(T &&)' with [ T=float ] main.cpp(33) : see reference to class template instantiation 'auto_cast_wrapper<T>' being compiled with [ T=float ] ``` Any thoughts?
C++0x rvalue reference template argument deduction
CC BY-SA 3.0
0
2010-10-27T13:49:15.377
2012-04-11T06:44:25.250
2017-05-23T11:48:24.847
-1
149,467
[ "c++", "c++11", "rvalue-reference" ]