Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
sequence
3,985,456
1
3,985,586
null
0
934
I have an image that is 320x480 and upon orientation change this image obviously hangs out of view. There are some images where the focal point of it sits with it's bottom cut off (which isn't undesirable). My issue however is when the user pans vertically to see the full image, the view appears to snap to the bottom meaning the top of the focal point is cutoff. What I wish to happen is that the users can "free-scroll" through the image and perhaps move the images so the focal point is centre screen, instead of cutting off the top and bottom. I understand this is a difficult concept to describe in words so I've attached some images below. This is how it starts: ![alt text](https://i.stack.imgur.com/99wup.jpg) This is where it snaps to the bottom: ![alt text](https://i.stack.imgur.com/AmIyr.jpg) This is the kind of view I wish to have but cannot: ![alt text](https://i.stack.imgur.com/WIarJ.jpg) Is there a way to control this "snapping" or perhaps a method I could use to override it when dealing specifically with this kind of orientation? My issue is that i WANT it to snap when panning left/right onto the other images in the ScrollView, just not up/down. EDIT: pagingEnabled is the property that controls this snapping, but is there anyway to detect if the movement is Up/Down or Left/Right and disable or enable this property in each occasion? Cheers for any help you can offer
UIScrollView Vertical Pan Snapping to top or bottom of view
CC BY-SA 2.5
0
2010-10-21T08:12:18.777
2010-10-21T08:30:31.900
2010-10-21T08:18:02.460
418,146
418,146
[ "iphone", "objective-c", "uiscrollview", "orientation", "panning" ]
3,985,506
1
3,985,525
null
0
2,600
I would like to know which UML Sofware has been used to create the UML Diagram on the Wordpress Developper Website : [http://codex.wordpress.org/images/8/83/WP_27_dbsERD.png](http://codex.wordpress.org/images/8/83/WP_27_dbsERD.png) ![alt text](https://i.stack.imgur.com/gfkWt.png) Thanks!
Which UML Tool has been used to create this diagram?
CC BY-SA 2.5
null
2010-10-21T08:19:45.033
2010-10-21T08:22:39.783
2010-10-21T08:22:39.783
84,631
455,329
[ "uml" ]
3,985,561
1
4,003,376
null
3
10,768
I am a newbie to VTiger, I am using the 5.2.0 version to try, learn implementing Issue Tracking. A client sends an email to say [email protected], Mail Converter or Mail Scanner.. scans for the new email and if found creates a new ticket. If admin sees a new ticket which is being raised in Trouble Tickets, makes some changes such as assigning it to someone, or making a comment etc.. VTiger CRM sends an email to a client saying that admin has made modifications to the ticket. Lets say Client wants some changes, so he replies to [email protected], a new ticket is raised because a new mail as arrived and mail scanner creates a new ticket. Instead of updating an existing ticket which the client has sent before, creating a new ticket everytime duplicates the problem by making many tickets for one issue, which is a big problem. When ever a client sends a mail to [email protected], Subject of email goes as Title of the Ticket and Body of Email as Description of Ticket. Lets say ``` Title of Ticket is SubjectClientSent ``` Client didnot like something after admin makes some modifications and the client decides to reply to the email which VTiger has sent him, it is generally in this manner. ``` Re: TT17 [ Ticket Id : 22 ] Re : SubjectClientSent ``` I dont want Mail Scanner to create a new ticket with the title of ticket as `Re: TT17 [ Ticket Id : 22 ] Re : SubjectClientSent` , I want it to update the exiting ticket with title `SubjectClientSent` I tried to do that with creating a new rule something like this.. ![alt text](https://i.stack.imgur.com/nu0mR.png) But, its still creating a new ticket. Could you help me correct this? Is there a better way of updating the existing ticket? Thanks for the help and support.
Update existing ticket in VTiger
CC BY-SA 2.5
0
2010-10-21T08:27:10.380
2010-10-23T10:01:45.537
2010-10-21T09:26:55.230
351,132
351,132
[ "php", "crm", "issue-tracking", "ticket-system", "vtiger" ]
3,985,619
1
3,985,630
null
213
429,249
This is a logistic sigmoid function: ![enter image description here](https://i.stack.imgur.com/SUuRi.png) I know x. How can I calculate F(x) in Python now? Let's say x = 0.458. F(x) = ?
How to calculate a logistic sigmoid function in Python?
CC BY-SA 3.0
0
2010-10-21T08:36:07.707
2022-11-01T19:41:37.093
2020-01-31T13:24:50.503
10,407,023
95,944
[ "python", "sigmoid" ]
3,985,816
1
4,152,715
null
8
5,885
I've sort of accomplised implementing a custom slider cell that can draw over using images for the scroll bar and knob. The only obstacle that is in the way now is this, when I drag the knob quickly, the images get messed up. I've posted a screen shot. ![Screenshot](https://i.stack.imgur.com/MWLPr.png) Here is the code: ``` #import "customSliderCell.h" @implementation customSliderCell - (void)drawKnob:(NSRect)knobRect { NSImage * knob = knobImage; [[self controlView] lockFocus]; [knob compositeToPoint:NSMakePoint(knobRect.origin.x,knobRect.origin.y+knobRect.size.height) operation:NSCompositeSourceOver]; [[self controlView] unlockFocus]; } - (void)drawBarInside:(NSRect)rect flipped:(BOOL)flipped { rect.size.height = 8; NSRect leftRect = rect; leftRect.origin.x=0; leftRect.origin.y=2; leftRect.size.width = knobrect.origin.x + (knobrect.size.width); [leftBarImage setSize:leftRect.size]; [leftBarImage drawInRect:leftRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction:1]; NSRect rightRect = rect; rightRect.origin.x=0; rightRect.origin.y=2; rightRect.origin.x = knobrect.origin.x; [rightBarImage setSize:rightRect.size]; [rightBarImage drawInRect:rightRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction:1]; } ``` ah i'm so close. any help regarding as to why this happens and how to solve it will be greatly appreciated, thanks!
custom NSSliderCell
CC BY-SA 3.0
0
2010-10-21T09:02:44.680
2012-08-01T10:08:27.000
2012-05-10T23:06:51.327
1,028,709
376,209
[ "objective-c", "cocoa", "nsslider" ]
3,985,864
1
3,985,930
null
0
465
My autocomplete field: [http://www.faressoft.org/autocomplete/](http://www.faressoft.org/autocomplete/) What is the best way to make autocomplete field using jquery (With mySql or XML ?) and what is the reason ? How to minimize consumption of server resources ? or ![alt text](https://i.stack.imgur.com/hg4B6.jpg)
What is the best way to make autocomplete field using jquery (With mySql or XML ?)
CC BY-SA 2.5
null
2010-10-21T09:09:29.437
2014-02-23T15:33:05.473
2014-02-23T15:33:05.473
1,808,674
423,903
[ "php", "jquery", "mysql", "xml" ]
3,986,067
1
3,991,408
null
6
4,260
Im looking for a delphi component that looks and functions like the Windows 7 control panel buttons when you "view by category". Anybody know if something like this already exists? ![alt text](https://i.stack.imgur.com/h8k8R.png)
Delphi windows 7 control panel component
CC BY-SA 2.5
0
2010-10-21T09:34:59.030
2019-07-30T10:46:29.963
2010-10-21T10:35:40.873
256,544
383,219
[ "delphi", "windows-7", "controls", "vcl" ]
3,986,536
1
4,686,602
null
2
1,326
I have two series, series1 and series2. My aim is to find (each bin represents a particular feature,) automatically/quantitatively. ![alt text](https://i.stack.imgur.com/Zvcdv.gif) This image can be seen in its original size by [clicking here.](http://img713.imageshack.us/img713/3401/image001eg.gif) Series1 is the expected result. Series2 is the test/incoming series. I am providing a histogram plot, where Series2 is represented in dark brown colour. You can also note in the x-axis between 221 and 353 there is a significant variation. ie Series2 is less than Series1. I am coding using C++. I think, crosscorrelation will help, but produces a value based on similarity rather than dissimilarity. I see people talk about Kolmogorov-Smirnov Test. Is this the test which i should be performing? UPDATE 1: I am trying to perform a template matching. I have divided my template image in to 8x8 blocks as well as my incoming test image. I am trying to compare one block in template image with the same block(based on the spatial pixel positions) in the test image. I calculate the intensity sum within each block.I obtain series1 for the Template image and have Series2 for the test image.
automatically compare two series -Dissimilarity test
CC BY-SA 2.5
0
2010-10-21T10:39:14.147
2011-01-13T23:43:17.840
2010-10-21T11:19:44.437
119,535
119,535
[ "c++", "c", "algorithm", "statistics" ]
3,986,619
1
4,015,948
null
1
3,706
I am trying to do some image processing and I would like to apply the LoG kernel. I know the formula, which is : ![alt text](https://i.stack.imgur.com/2NPsh.gif) But I didn't understand how to obtain the kernel matrix with this formula. From what I have read, I have a matrix of n x n and I apply this formula to every cell in that matrix, but what should be the starting values within that matrix in the first place. Also, I have the same question with the Laplacian filer. I know the formula, which is: ![alt text](https://i.stack.imgur.com/tRTNB.gif) and also, from what I have read, the 3 x 3 filter should be the matrix: `x = [1 1 1; 1 -4 1; 1 1 1]` but can you please tell me how to apply the formula in order to obtain the matrix, or at least indicate me a tutorial of how to apply this.
Laplacian and Gaussian Filter
CC BY-SA 2.5
0
2010-10-21T10:50:08.553
2019-09-11T14:28:43.013
2019-09-11T14:28:43.013
527,702
442,124
[ "image", "image-processing", "gaussian", "laplacian" ]
3,986,668
1
3,986,751
null
0
303
I use the code below to transition between two UIImageViews. ``` -(void)performTransitionNew: (NSInteger)type subType:(NSInteger)subType fromImageView:(UIImageView *)fromImageView toImageView:(UIImageView *)toImageView duration:(NSInteger)duration; { CATransition *transition = [CATransition animation]; transition.duration = duration;//0.3; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; NSString *types[4] = {kCATransitionMoveIn, kCATransitionPush, kCATransitionReveal, kCATransitionFade}; NSString *subtypes[4] = { kCATransitionFromLeft, kCATransitionFromRight, kCATransitionFromTop, kCATransitionFromBottom}; transition.type = types[type]; transition.subtype = subtypes[subType]; transitioning = YES; transition.delegate = self; [self.aUIView.layer addAnimation:transition forKey:nil]; fromImageView.hidden = YES; toImageView.hidden = NO; UIImageView *tmp = toImageView; toImageView = fromImageView; toImageView = tmp; } ``` Both of them are on an UIView 'aUIView'. I want the result to be like this: ![alt text](https://i.stack.imgur.com/VdWVP.png) but it displays like this: ![alt text](https://i.stack.imgur.com/foNW5.png) It looks like toImageView comes from outside of aUIView. Any comment is welcome.
transition between 2 UIImages
CC BY-SA 2.5
0
2010-10-21T10:56:25.093
2010-10-21T11:07:29.563
2010-10-21T10:58:53.483
96,531
262,325
[ "iphone" ]
3,986,832
1
null
null
1
832
Whenever I navigate to the PayPal sandbox for a transaction, I see the new PayPal sandbox interface because of which I am unable to make transactions. Because the new interface does not return the post parameters after the transaction. The PayPal new interface is as well, and the same problem is happening there, when the user completes the transaction, PayPal does not return post parameters to our site, therefore we are unable to log the transaction in our database. The new PayPal interface: ![The new sandbox interface](https://i.stack.imgur.com/TbrfP.png)
PayPal sandbox new interface not returning post parameters
CC BY-SA 3.0
0
2010-10-21T11:16:28.120
2012-09-11T11:12:58.220
2011-05-03T20:42:24.257
63,550
230,431
[ "paypal", "sandbox" ]
3,987,357
1
3,987,580
null
0
164
I'd like to slightly change the look of some browser widgets (like changing the background color of required fields). But apparently this forces the browser to switch back from 'native'-looking widgets to boring common-look widgets. This is especially bad if you have both unmodified and modified widgets on the same page. Problem occurs with Firefox on OS X and Ubuuntu. Any ideas how to get around that 'fallback'-behavior? [https://bounty.schuettel.ch/~reto/so/demo.html](https://bounty.schuettel.ch/~reto/so/demo.html) ``` <input type="text" value="123 test" style="background-color: #FFC;"/> ``` ![OSX](https://i.stack.imgur.com/Kk1ev.png) ![Ubuntu](https://i.stack.imgur.com/wkz2Y.png) Thanks Reto
Nice browser widgets AND background color, posssible?
CC BY-SA 2.5
null
2010-10-21T12:22:31.573
2010-10-21T12:45:33.723
2010-10-21T12:37:25.623
102,200
102,200
[ "html", "firefox", "browser" ]
3,987,491
1
5,410,980
null
4
5,019
I use the following code to listen for the key presses of 0 - 9 from the soft input keyboard on Android: --- ``` @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_0) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_1) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_2) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_3) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_4) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_5) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_6) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_7) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_8) { return super.onKeyDown(keyCode, event); } if(keyCode == KeyEvent.KEYCODE_9) { Log.d("Keycode", "Got KeyCode 9"); return super.onKeyDown(keyCode, event); } return true; } ``` --- The code works when i display the soft input keyboard in the following mode: ![alt text](https://i.stack.imgur.com/Snasz.png) However it does work when I display the soft input keyboard in the following mode: ![alt text](https://i.stack.imgur.com/wf0Kt.png) Why is this?
Android - Listen for key presses on Numeric keypad?
CC BY-SA 2.5
null
2010-10-21T12:35:40.713
2011-03-23T20:06:13.683
null
null
243,999
[ "android", "keycode", "keyevent", "android-softkeyboard", "numeric-keypad" ]
3,987,588
1
3,995,963
null
0
194
I'm using the fxcomponent: [Flv video player](http://www.fxcomponents.com/item/about-us/29/) to play my flv/mob files. You may get it from [here](http://www.brothersoft.com/flex-video-player-340203.html). Now, player works perfectly as shown in their site, but when I try to use the `FXVideo` control in popup window (popup manager help is [here](http://livedocs.adobe.com/flex/3/html/help.html?content=layouts_12.html)), the component gives mirror image!, strange, I didn't change any code in that. So can any one help me out to fix this issue, as I'm novice to action script? Image: ![alt text](https://i.stack.imgur.com/aMWaO.png) For quick set up, I'm putting my code here: 1. FXVideo_Example.mxml file (No change at all except variable) [Bindable] private var source:String = "http://localhost/greatcatches.flv"; ]]> </mx:Script> <controls:FXVideo width="480" height="360" source="{source}" autoPlay="false" bufferTime="10" /> 2. MainPage.mxml: import mx.core.IFlexDisplayObject; import mx.managers.PopUpManager; private function showW():void { // Create a non-modal TitleWindow container. var helpWindow:IFlexDisplayObject = PopUpManager.createPopUp(this, FXVideo_Example, false); } ]]> </mx:Script> <mx:VBox width="480" height="360"> <mx:Button click="showW();" label="Show"/> </mx:VBox>
Fxcomponent: Flex video player issue
CC BY-SA 2.5
null
2010-10-21T12:46:57.317
2010-10-22T10:32:50.750
null
null
415,865
[ "apache-flex", "actionscript", "flex3" ]
3,987,670
1
3,988,906
null
0
1,657
Can i create img map and then add several click event? for example this img- I have 4 area for event top-left, top-right etc. How i can do this? ![alt text](https://i.stack.imgur.com/dpFED.jpg) I need something like tag map on HTML.
how to add click event on image area on flex?
CC BY-SA 2.5
null
2010-10-21T12:56:43.000
2010-10-21T15:04:31.933
null
null
369,280
[ "apache-flex", "image", "events" ]
3,987,778
1
3,987,835
null
2
662
I'm creating a settings screen, its a child screen and won't push to another screen. I don't want to use a table view. But I need to have the screen look like other settings screens, with the gray sort of background, like this... ![alt text](https://i.stack.imgur.com/iYSPE.png)
iPhone, how do I set the background of a view like the settings screens gray style?
CC BY-SA 2.5
null
2010-10-21T13:11:11.720
2010-10-21T13:19:09.690
null
null
450,456
[ "iphone", "xcode" ]
3,988,183
1
3,988,830
null
3
462
![alt text](https://i.stack.imgur.com/StTqm.png) I drew this graph using matplotlib using the following code. ``` import matplotlib import matplotlib.pyplot as plt x = [450.0, 450.0, 438.0, 450.0, 420.0, 432.0, 416.0, 406.0, 432.0, 400.0] y = [328.90000000000003, 327.60000000000031, 305.90000000000146, 285.2000000000013, 276.0, 264.0, 244.0, 236.0, 233.5, 236.0] z = [2,4,6,8,10,12,14,16,18,20] plt.plot(z,x,'-',lw=3) plt.plot(z,y,'--',lw=3) plt.show() ``` As you can see the graph of x touches the axis boundary and does not look good. How can I change this?
Matplotlib: Curve touches axis boudary. How to solve this?
CC BY-SA 2.5
0
2010-10-21T13:54:42.333
2010-10-21T14:56:18.147
2010-10-21T14:52:43.707
204,623
204,623
[ "python", "matplotlib" ]
3,988,992
1
3,989,036
null
4
3,228
In c# I'm trying to set the office field ![alt text](https://i.stack.imgur.com/dyDd8.png) When I do this: ADEntry.Properties[ "office"].Add( "Alaska"); It says office does not exist. Can anyone tell me where to get at this property? Thanks, Cal-
In c# how do I set the active directy field "office" so i can show the location of our users in Outlook
CC BY-SA 2.5
null
2010-10-21T15:13:20.833
2016-08-03T09:08:21.637
2010-10-21T15:18:38.217
189,950
86,431
[ "c#", ".net", "active-directory" ]
3,989,071
1
4,027,824
null
7
1,873
I wish to add this type of graph in my datagridviewcontrol :- ![alt text](https://i.stack.imgur.com/269Nm.png) Here the graph is to plotted for 12 months and I can either input percentages or comparative values in pixels for the 12 months....Please also tell how to color the graphs Any ideas for doing this will be highly appreciated Edit----Thanks for all the answers I learned a lot but still couldn't get around the problem... 1. I need to display a lot of rows in my datagridview with around 15 columns....So its very odd to directly add the rows but add a different columns for graph each time I add a row...couldn't think of any other way of accomplishing this....moreover I don't want to save the images which I found I have to if i add the images directly into the grid view..... 2. Is there any third party tool there which may help me to get custom datagridview with charts Thank You .
How to make this(refer image) type of graph in datagridview
CC BY-SA 2.5
null
2010-10-21T15:23:47.223
2010-11-24T00:07:46.000
2010-11-24T00:07:46.000
119,549
418,281
[ "c#", ".net", "graphics", "datagridview", "bar-chart" ]
3,990,169
1
3,992,625
null
1
109
I want to creating a graphical editor which a physician can use to create user interfaces to define state-based interactive dialogue based diagnosis systems for simple diseases. Each screen consists of simple UI elements like a textarea,button and these are in a container to make up the state. Once he defines many screens with text and buttons or photos/videos, he wants to save the configuration in a XML file. How can I use the Eclipse modeling technologies to create a graphical editor to do this task Example below: ![](https://i.stack.imgur.com/tGZwq.jpg)
Creating a graphical editor for a domain specific UI application using Eclipse modeling technologies
CC BY-SA 2.5
null
2010-10-21T17:22:16.633
2010-10-21T22:47:38.223
null
null
143,373
[ "eclipse" ]
3,990,192
1
3,990,304
null
1
266
I have the following table: ![alt text](https://i.stack.imgur.com/YgQBf.jpg) I am trying to create an SQL query that returns a table that returns three fields: Year (ActionDate), Count of Built (actiontype = 12), Count of Lost (actiontype = a few different ones) Bascially, ActionType is a lookup code. So, I'd get back something like: ``` YEAR CountofBuilt CountofLost 1905 30 18 1929 12 99 1940 60 1 etc.... ``` I figured this would take two SELECT statements put together with a UNION. I tried the following below but it only spits back two columns (year and countbuilt). My countLost field doesn't appear My sql currently (MS Access): ``` SELECT tblHist.ActionDate, Count(tblHist.ActionDate) as countBuilt FROM ... WHERE ((tblHist.ActionType)=12) GROUP BY tblHist.ActionDate UNION SELECT tblHist.ActionDate, Count(tblHist.ActionDate) as countLost FROM ... WHERE (((tblHist.ActionType)<>2) AND ((tblHist.ActionType)<>3)) GROUP BY tblHist.ActionDate; ```
Trouble with SQL UNION operation
CC BY-SA 2.5
null
2010-10-21T17:25:02.743
2010-10-21T18:17:37.483
2010-10-21T17:56:18.313
135,152
474,601
[ "sql", "ms-access", "coldfusion", "aggregate-functions" ]
3,990,703
1
3,997,838
null
0
827
I have a tab (Internal Development Review) on one of my work item forms that I would not like to show to all users: ![alt text](https://i.stack.imgur.com/dGCfc.png) Is it possible to hide this from a specific user group (or conversely, to grant it to another group)? I cannot find a way to put permissions on a tab.
Is it possible to hide a tab from a group of users in Team Foundation Server 2010?
CC BY-SA 2.5
null
2010-10-21T18:30:42.867
2012-11-21T09:50:36.007
null
null
467,210
[ "visual-studio-2010", "tfs" ]
3,990,765
1
4,048,061
null
1
1,485
I just started experimenting with jqModal and am having a strange issue. The modal window is displayed correctly however I get a javascript error when I click anywhere inside it. When I look at the offending line of code, it turns out that jqModal is trying to run my entire page as if it were one big piece of javascript. Since I wrote this post, I discovered that the code works fine in FireFox. The issue is IE of course. My markup: ``` <script type="text/javascript"> $(document).ready(function () { $('#jqmWindowContainer').jqm({ modal: true, ajax: '<%: Url.Action("Save", "AssetSearch") %>', onHide: myAddClose }); function myAddClose(hash) { hash.w.fadeOut('300', function () { hash.o.remove(); }); } }); </script> <a href="#" class="jqModal display-field-right">Save this search</a> <span id="jqmWindowContainer" class="jqmWindow"> </span> ``` Modal window markup: ``` <div id="modalWindow" class="jqmWindow"> <% using (Ajax.BeginForm("Save", "AssetSearch", new AjaxOptions() { HttpMethod = "Post", InsertionMode = InsertionMode.Replace, UpdateTargetId = "modalWindow" })) {%> <!-- Validation summary --> <div class="validation-summary"> <%=ViewData["Message"]%> </div> <%=Html.LabelFor(x => x.Name)%> <%=Html.TextBoxFor(x => x.Name)%> <!-- Submit button --> <div class="submit-form"> <input type="submit" value="Save" /> </div> <% }%> </div> <a class="jqmClose" href="#">Close</a> ``` Clicking on the “Save this search” link correctly displays the modal window. Clicking anywhere in the modal, causes this error: > Line: 5 Error: Object doesn't support this property or method When I look at the code it’s trying to execute, it turns out to be my whole page which of course triggers an error: ![alt text](https://i.stack.imgur.com/rV3nn.jpg) I have no clue what would cause this behavior. If I continue past the error, the window works correctly and my action method gets called when I click Save. Help! Thanks! Rick
jqModal is trying to run my whole page!
CC BY-SA 2.5
0
2010-10-21T18:39:55.760
2010-10-30T17:07:53.837
2010-10-30T17:07:53.837
131,818
131,818
[ "jquery", "jqmodal" ]
3,990,910
1
3,990,948
null
3
5,627
I'm trying to float a div over another one but in the center (width). EDIT: I want the container div to be over the top div and centered. Current CSS: ``` body { background-color: #FFF; margin: auto; } #top { background-color: #F2F2F2; border-bottom: 1px solid #CCC; height: 150px; position: relative; } #container { background-color: #FFF; border: 1px solid #CCC; width: 920px; height:300px; position: absolute; top:0; right:auto; } ``` This is what i get: ![image](https://i.stack.imgur.com/7WFaE.png)
Float a DIV centered over another DIV
CC BY-SA 2.5
null
2010-10-21T18:56:08.950
2010-10-21T19:10:07.497
2010-10-21T19:05:59.397
273,173
273,173
[ "css", "html", "css-float" ]
3,990,963
1
3,991,119
null
3
1,499
I'm trying to use Microsoft.Office.Interop.Excel. It seems to load fine but when I try to use it, all the defaults parameters are not working. Here is a screenshot that shows all those bad values ![alt text](https://i.stack.imgur.com/1Q0U4.png) Whenever I try to ommit them, the compiler tells me that the function needs more than 1 parameter. This function is Open as in : ``` Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); Workbook wb = excel.Workbooks.Open("ss.xlsx"); ``` How can I use the default value for those 14 parameters? EDIT I'm using C# 3.5 (2008) with Office 2010 Accepted Solution : Type.Missing works I also had this issue [http://support.microsoft.com/default.aspx?scid=kb;en-us;320369](http://support.microsoft.com/default.aspx?scid=kb;en-us;320369) The problem is that my windows is french but office is in english so hell breaks loose. Solution is ``` CultureInfo ci = new CultureInfo("en-US"); System.Threading.Thread.CurrentThread.CurrentCulture = ci; ```
Microsoft.Office.Interop.Excel having "bad value" as default parameters
CC BY-SA 2.5
null
2010-10-21T19:03:47.840
2010-10-21T20:57:19.317
2010-10-21T20:57:19.317
6,367
6,367
[ "c#", ".net", "excel", "interop", "automation" ]
3,991,043
1
4,026,594
null
8
16,250
Need to get Visual Studio 6 Processor Pack installed on Windows 7 (32 bit). First i installed VS6 + SP6, which prevents the PP from installing. I uninstalled VS6 and re-installed VS6 and am trying to install SP5. It is now complaining that MDAC 2.5 or 2.6 needs to be installed first. I've tried 2.5, 2.6, and 2.8. All run through the little extract progress dialog and appear to finish. But SP5 still fails with this: ![alt text](https://i.stack.imgur.com/TmnwJ.jpg) Any ideas on getting VS6 + SP5 + PP installed correctly? EDIT: Alternatively, any way to get VS6 (or just VC6) + SP6 + PP installed correctly? Processor Pack refuses to install on SP6, insisting on SP5. EDIT: I found a [KB article suggesting a registry change](http://support.microsoft.com/kb/872907), and that got SP6 + PP installed, but i'm getting this error, which is apparently indicates that PP isn't installed: ``` --------------------Configuration: test - Win32 Debug-------------------- Compiling... test.cpp c:\svn\test\test.cpp(127) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64 Error executing cl.exe. test.dll - 1 error(s), 0 warning(s) ``` EDIT: Fixed title.
How to install VS6, SP5, and Proc Pack on Windows 7?
CC BY-SA 2.5
0
2010-10-21T19:13:44.447
2016-04-18T05:23:34.150
2010-10-25T20:24:41.427
4,126
4,126
[ "visual-studio", "visual-c++", "windows-7" ]
3,991,270
1
3,995,221
null
2
1,917
I have some problems with Eclipse and Team Explorer Everywhere. I installed and added a server to Eclipse. But now i couldn't add new servers. Because, server button is disabled. ![alt text](https://i.stack.imgur.com/3EtcY.jpg) I wonder, how can i add new servers?
Eclipse and Team Explorer Everywhere Problem
CC BY-SA 2.5
0
2010-10-21T19:43:03.390
2013-03-29T08:15:55.330
null
null
423,699
[ "eclipse", "tfs", "team-explorer" ]
3,991,379
1
4,727,503
null
3
756
I'm using Intel C++ Compiler from within Visual Studio 2008. I was experimenting with the Intel quadruple precision type (`_Quad`). Everything seems to be working fine, except for the debugging. Visual Studio visualiser is unable to peek into `_Quad` values. What's worse, the visualiser is unable to provide the type information about the `_Quad` value, giving enigmatic three question marks: `???` (as on the attached screenshot) ![Debugger Visualiser](https://i.stack.imgur.com/jC4li.png) The value is `0` while it should be something else. Would appreciate some hints on how to attack this puzzle. To work with `autoexp.dat` I need the VS to pickup the type, don't I?
Visual Studio Debugger - Visualising Intel Quadruple precision (_Quad)
CC BY-SA 2.5
0
2010-10-21T19:57:14.763
2011-01-18T18:13:29.253
null
null
61,574
[ "c++", "visual-studio-2008", "intel" ]
3,991,470
1
3,991,809
null
0
1,141
I'm using the TabHost and TabWidget to create some tabs for an Android application. I see that the tabs show up vertically one next to the other. Is there any way to make tabs that are aligned horizontally (one on top of the other) ?. I'm creating the tabs like this: ``` <?xml version="1.0" encoding="utf-8"?> ``` ``` <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/textview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="this is a tab" /> <TextView android:id="@+id/textview2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="this is another tab" /> </FrameLayout> </LinearLayout> ``` Something like this is what I need to do: ![alt text](https://i.stack.imgur.com/FMaPT.png)
Is it possible to create Horizontal Tabs in Android OS?
CC BY-SA 2.5
0
2010-10-21T20:08:46.013
2010-11-22T21:52:47.193
null
null
146,100
[ "android" ]
3,991,505
1
3,991,979
null
4
5,483
I've written the following program which purpose is to create a file of a give size with some random data in it. The program works fine and does what it's suppose to do. However, I don't understand why it consumes 5GB of RAM (see screenshot of my Task Manager). While I am writing the file with random data, I am not creating new objects. What am I missing? I would expect this program to take no memory at all. The big problem I have right now is that in the middle on the file generation, the machine is dying... ``` class Program { static void Main(string[] args) { CreateFile("test.dat", 10 * 1024 * 1024); } public static void CreateFile(string path, long approximativeFileSizeInKb) { RandomNumberGenerator randomNumber = RandomNumberGenerator.Create(); byte[] randomData = new byte[64 * 1024]; int numberOfIteration = 0; randomNumber.GetNonZeroBytes(randomData); using (FileStream fs = File.Create(path, 64 * 1024)) { while (numberOfIteration++ * 64 < approximativeFileSizeInKb) { fs.Write(randomData, 0, randomData.Length); } } } } ``` ![alt text](https://i.stack.imgur.com/Gp5mY.png) ![alt text](https://i.stack.imgur.com/M98C7.png)
FileStream and memory usage
CC BY-SA 2.5
0
2010-10-21T20:12:28.117
2012-02-10T22:12:50.897
2010-10-21T21:01:02.927
42,024
42,024
[ ".net", "file-io", ".net-4.0", "memory-management", "filestream" ]
3,991,706
1
3,991,728
null
2
302
Can I create a window without this topbar? : ![http://i52.tinypic.com/2e30dpi.png](https://i.stack.imgur.com/aSt6i.png) I want a window like this: ![http://i52.tinypic.com/1q62pg.jpg](https://i.stack.imgur.com/MZppj.png)
How to draw this window?
CC BY-SA 2.5
0
2010-10-21T20:38:25.273
2010-10-21T22:29:39.693
null
null
244,413
[ "python", "ubuntu", "gtk", "pygtk" ]
3,991,779
1
3,991,911
null
0
392
I am trying to create a "copy-paste javascript" (it will work when user paste this javascript on the url bar and press the return key) for [http://www.vtunnel.com/](http://goo.gl/FvJcv). My script will automatically create a form to the current page and value of the "textbox" will automatically filled up with the current url, and submit the form. I am trying this JavaScript: ``` javascript: _vtunnel_form=document.createElement('FORM'); _vtunnel_form.name='login'; _vtunnel_form.method='POST'; _vtunnel_form.action='http://www.vtunnel.com/index.php'; _vtunnel_h1=document.createElement('INPUT'); _vtunnel_h1.type='TEXT'; _vtunnel_h1.name='username'; _vtunnel_h1.value=encodeURIComponent(location.href); _vtunnel_form.appendChild(_vtunnel_h1); _vtunnel_h2=document.createElement('INPUT'); _vtunnel_h2.type='HIDDEN'; _vtunnel_h2.name='r4'; _vtunnel_h2.value=' checked'; _vtunnel_form.appendChild(_vtunnel_h2); _vtunnel_h3=document.createElement('INPUT'); _vtunnel_h3.type='HIDDEN'; _vtunnel_h3.name='fa'; _vtunnel_form.appendChild(_vtunnel_h3); _vtunnel_h4=document.createElement('INPUT'); _vtunnel_h4.type='HIDDEN'; _vtunnel_h4.name='if'; _vtunnel_h4.value=' checked'; _vtunnel_form.appendChild(_vtunnel_h4); document.body.appendChild(_vtunnel_form); _vtunnel_form.submit(); ``` Computed code of the "Vtunnel" form is like below: ![Screenshot from Chrome](https://i.stack.imgur.com/g56wv.jpg) But it is not working properly. It is giving a 404 error. Why? Are there any solution?
Problem while creating "copy-paste JavaScript"
CC BY-SA 3.0
null
2010-10-21T20:47:38.903
2011-04-22T15:34:21.323
2011-04-22T15:34:21.323
395,703
395,703
[ "javascript" ]
3,992,448
1
3,998,455
null
4
3,486
I've subclasses UIControl and in it I am sending: ``` [self sendActionsForControlEvents:UIControlEventValueChanged]; ``` When I create an instance of the object, I add a target as follows: ``` [starView addTarget:self action:@selector(starRatingChanged:) forControlEvents:UIControlEventValueChanged]; ``` The view shows up fine, and without the target being there the functionality works well. But with adding the target, it crashes. Any ideas why? My class is declared with: ``` @interface RMStarRating : UIControl {...} ``` For what it is worth, I set up my view in `- (void)layoutSubviews`. Is there another method that I need to subclass in order for the targets to be saved properly or for the targets to be sent the right actions? I thought UIControl handled saving the targets and actions for you. UPDATE: trying to provide more information I set the object up as follows: ``` RMStarRating *starView = [[RMStarRating alloc] initWithFrame:CGRectMake(10, 70, 23*5, 30)]; [starView addTarget:self action:@selector(starRatingChanged:) forControlEvents:UIControlEventValueChanged]; .... [self.view addSubview:starView]; ``` My sendAction, according to Jordan's suggestion: ``` - (void)sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event { NSLog(@"send action"); [super sendAction:action to:target forEvent:event]; } ``` My function that calls sendActionsForControlEvents: ``` - (void)updateValue:(UITouch *)touch { .... NSLog(@"sendActionsForControlEvents"); [self sendActionsForControlEvents:UIControlEventValueChanged]; } ``` And the function that should be called (and it is in the header too): ``` - (void)starRatingChanged:(id)sender { NSLog(@"star rating changed"); } ``` And the log just spits out: ``` 2010-10-22 09:45:41.348 MyApp[72164:207] sendActionsForControlEvents 2010-10-22 09:45:41.350 MyApp[72164:207] send action ``` The debugger has: ![debugger picture](https://i.stack.imgur.com/qKQE2.png)
UIControl subclass is unable to take a target?
CC BY-SA 2.5
null
2010-10-21T22:17:55.097
2010-10-22T15:38:20.097
2010-10-22T15:16:40.493
130,556
130,556
[ "iphone", "subclass", "uicontrol" ]
3,992,608
1
3,995,508
null
3
367
I'm using ReSharper 5.1 in VS2010, and I've been annoyed by the intellisense behavior for quite a while. It seems this is different since R# 4.5/VS2008, but I don't have that combo handy to verify. Let's say I'm typing some code: ``` ... public Guid teamId { get; set; } ... ``` And later on I decide I want to make `teamId` a read-only property, so I go back to put `private` in front of `set`. As I start typing, I end up with this: ![picture of R# Intellisense menu](https://i.stack.imgur.com/flMfj.jpg) At this point, I have to either switch to the mouse or the arrow keys, or just finish typing `private`, which really defeats the purpose of this feature. Is there a way to tell ReSharper to select an entry as soon as the Intellisense popup appears?
Can I make R# intellisense select the first list item?
CC BY-SA 2.5
0
2010-10-21T22:43:44.627
2010-10-22T09:28:37.497
null
null
182,654
[ "resharper", "intellisense", "resharper-5.x" ]
3,993,055
1
3,993,117
null
3
1,129
I have a graph of memory use over time which looks like: ![alt text](https://i.stack.imgur.com/6JFff.jpg) I set the `y-axis: { max:n }` value `n` to 1024 (which means 1024MB of RAM). How do I get Flot to change the y-axis labels so they display:
How do I change the stepping of y-axis values in Flot?
CC BY-SA 2.5
null
2010-10-22T00:31:22.003
2010-10-22T00:55:17.547
null
null
419
[ "javascript", "charts", "flot", "graphing" ]
3,993,216
1
3,994,158
null
1
840
I'm trying to use a JButton as an editor within a JComboBox. On Mac OS X this looks fine, but on Windows using the system look and feel, there is an ugly gap left between the JButton editor and the combo button itself: ![image showing gap between JButton and combo button](https://i.stack.imgur.com/jCj3X.png) This is the test code used to produce the dialog: ``` import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ButtonEditorTest implements Runnable { String[] items = {"One", "Two", "Three"}; ComboBoxModel model; ButtonEditorTest() { // our model, kept simple for the test model = new DefaultComboBoxModel(items); // create the UI on the EDT SwingUtilities.invokeLater(this); } // creates UI on the event dispatch thread @Override public void run() { JComboBox comboBox = new JComboBox(model); comboBox.setEditable(true); comboBox.setEditor(new ComboButtonEditor()); JFrame frame = new JFrame("JComboBox with JButton editor test"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(comboBox, BorderLayout.NORTH); frame.setSize(200, 100); frame.setVisible(true); } public static void main(String[] args) throws Exception { String lookAndFeelClassName = UIManager.getSystemLookAndFeelClassName(); UIManager.setLookAndFeel(lookAndFeelClassName); new ButtonEditorTest(); } class ComboButtonEditor implements ComboBoxEditor { private JButton button = new JButton(); private Object item; @Override public void addActionListener(ActionListener arg0) { // not needed for UI test } @Override public Component getEditorComponent() { return button; } @Override public Object getItem() { return item; } @Override public void removeActionListener(ActionListener arg0) { // not needed for UI test } @Override public void selectAll() { // not needed for UI test } @Override public void setItem(Object item) { this.item = item; button.setText(item.toString()); } } } ```
How can I remove the gap when using a JButton as a ComboBoxEditor in the Windows L&F?
CC BY-SA 2.5
null
2010-10-22T01:17:05.243
2010-10-22T05:42:28.897
null
null
225,810
[ "java", "windows", "swing", "jbutton", "jcombobox" ]
3,993,301
1
3,993,763
null
30
26,196
I am working on finishing up a graph generated using ggplot2 like so... ``` ggplot(timeSeries, aes(x=Date, y=Unique.Visitors, colour=Revenue)) + geom_point() + stat_smooth() + scale_y_continuous(formatter=comma) ``` I have attached the result and you can see the numeric values in the legend for Revenue do not have a comma. How can I add a comma to those values? I was able to use scale_y_continuous for the axis, can that be used for the legend also? ![alt text](https://i.stack.imgur.com/hZ7c0.jpg)
How to format number values for ggplot2 legend?
CC BY-SA 2.5
0
2010-10-22T01:34:12.633
2018-05-18T05:43:16.557
null
null
302,274
[ "r", "ggplot2" ]
3,993,587
1
null
null
0
181
I'm looking for a easy to use jQuery form validation plugin, which give validation error as a . Because is the best way to inform screen reader users about errors. ![alt text](https://i.stack.imgur.com/rx33l.png)
I'm looking for a jquery form validation plugin, which can give validation error as a "Alert"
CC BY-SA 2.5
null
2010-10-22T03:03:10.197
2010-10-22T03:11:55.903
null
null
84,201
[ "jquery", "xhtml", "accessibility", "screen-readers" ]
3,993,782
1
3,993,795
null
0
139
I have two tables in my application. The first one, Sections, stores content for a specific section of an online publication. This contains (among other things) the section title and a field CurrentRevisionId (FK). A second table, Revisions, stores different revisions of that content. It has PK RevisionId field (the FK above, used to denote current revision), the HTML content itself, and SectionId (FK), specifying which Section the revision belongs to. So basically I've got these two FKs pointing to each other. When I create a new Section, the child entity CurrentRevision is also populated with that content. But the InsertOnSubmit fails with this error: > The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Sections_Revisions". The conflict occurred in database "xxxx", table "xxxx.Sections", column 'SectionID'. The statement has been terminated. My guess is that it can't simultaneously create both rows and populate them with each other's PKs. Should I insert the Section first, then the Revision (along with Section's PK), and then update the Section with the Revision PK? Or is there a better / more elegant solution to this? I've attached a screencap of the two tables with their relationships. Each Section has many Revisions (FK SectionID inside of Revisions table). Additionally, there is a one-to-one relationship where the CurrentRevisionId field in Section points to the revision which is "current". This "current" revision is where the application pulls the HTML from. Hope that clears things up a bit. ![alt text](https://i.stack.imgur.com/4Mbl4.png)
Adding two entities with FKs pointing to each other
CC BY-SA 2.5
null
2010-10-22T04:01:49.137
2010-10-22T04:25:55.310
2010-10-22T04:25:55.310
158,766
158,766
[ "c#", "asp.net-mvc", "linq-to-sql", "entity-framework", "linq-to-entities" ]
3,993,801
1
3,994,624
null
0
785
i have recently run into a strange problem. i have a table in db named Task. A Task may have a parent task and more than one child tasks (self join). i have written a stored procedure that returns me all the tasks in the project their children and sub children upto n level using CTE (common table expression). my required result is as follows![alt text](https://i.stack.imgur.com/hMJdo.jpg) the result is successfully achieved. you can see the indentation in first column to show hierarchical relation. the problem is that i m doing it in a "bad way". below is my view code ``` <table cellspacing="0"> <%foreach (var it in Model.list.Where(x=>x.ParentID == null)) { int x = 1;%> <tr> <td width="150"><div class="wrapper" style="width:18px;">&nbsp;</div><%:it.TOC %></td> <td><%:it.label %></td> <td><%:it.StartDate%></td> <td><%:it.EndDate%></td> <td><%:it.smallDescription %></td> </tr> <%=Model.CallRecursion(it,Model.list,ref x) %> <%} %> ``` u can see that Call recursion method has been defined on model that is returning the html string recursively. below is the code of CallRecursion method. ``` public string CallRecursion(TempModel item, List<TempModel> all,ref int count) { if(all.Where(x=>x.ParentID == item.ID).Count() == 0) return ""; else { count++; string retval = "<tr>"; foreach (var kids in all.Where(x => x.ParentID == item.ID)) { retval += "<td><div style='width:"+count*18+"px;' class='wrapper'>&nbsp;</div><span>" + kids.TOC + "</span></td><td>" + kids.label + "</td><td>" + kids.StartDate + "</td><td>" + kids.EndDate+"</td><td>"+kids.smallDescription+"</td></tr>"+ CallRecursion(kids, all,ref count); } count--; return retval; } } ``` my question is how i can achieve this target in a cleaner way. i have no idea if i can call partial views recursively to render the html and if so what would be the dynamics. comments and suggestions are appreciated.
asp.net mvc rendering html recursively
CC BY-SA 2.5
null
2010-10-22T04:07:43.473
2010-10-22T07:07:24.433
null
null
331,174
[ "asp.net-mvc", "recursion", "renderpartial" ]
3,994,468
1
3,994,957
null
1
599
"TreeNode.IsVisible" is available but I can't tell from it whether it's visible or partially visible - "true if the tree node is visible or partially visible". e.g. How can I tell if the following "Temporary ASP.NET" tree node is partially visible? Also, how the text hovers directly over the node is called? Is it a tooltip in the end? Can it be controled on visibility? ![](https://imgur.com/wwF3k.jpg) Thanks,
How to know that a tree node is partially visible?
CC BY-SA 2.5
null
2010-10-22T06:36:44.313
2010-10-22T08:39:56.543
2010-10-22T08:39:56.543
354,255
354,255
[ "c#", "winforms", "visible", "treenode" ]
3,994,316
1
4,014,285
null
1
977
Im maintaining this Drupal Site which is using Slideshow Views for displaying the featured posts. Its using contribution of '' [http://drupal.org/project/views_slideshow](http://drupal.org/project/views_slideshow) Module for Drupal. However, even after scanning through the code and browsing though all settings, I cant figure out how to increase the max -character length of titles. Its currently set to 50. I want to increase it to 70. ![alt text](https://i.stack.imgur.com/ZYcE3.jpg) Thanks in advance! ``` The exported view is as follows: $view = new view; $view->name = 'SlideShows'; $view->description = 'Various views that display content in slideshows'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'field_upload_image_fid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'Slideshow_656x400_default', 'multiple' => array( 'group' => 0, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_upload_image_fid', 'table' => 'node_data_field_upload_image', 'field' => 'field_upload_image_fid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_upload_image_data' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '80', 'word_boundary' => 0, 'ellipsis' => 0, 'strip_tags' => 1, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'data_key' => 'description', 'exclude' => 0, 'id' => 'field_upload_image_data', 'table' => 'node_data_field_upload_image', 'field' => 'field_upload_image_data', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'created' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'created', 'table' => 'node', 'field' => 'created', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'nid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'node', 'default_argument' => '', 'validate_type' => 'node', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, ), 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blogs' => 0, 'industry_focus' => 0, 'market_sectors' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, '6' => 0, '3' => 0, '2' => 0, '5' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'association' => 'association', 'blogs' => 'blogs', 'cars' => 'cars', 'company_reports' => 'company_reports', 'events' => 'events', 'howto' => 'howto', 'news' => 'news', 'press_releases' => 'press_releases', 'testimonial' => 'testimonial', 'travel' => 'travel', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'delta' => array( 'operator' => 'not empty', 'value' => array( 'value' => '', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'delta', 'table' => 'node_data_field_upload_image', 'field' => 'delta', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('header_format', '3'); $handler->override_option('header_empty', 0); $handler->override_option('footer_format', '2'); $handler->override_option('footer_empty', 0); $handler->override_option('use_ajax', TRUE); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'slideshow'); $handler->override_option('style_options', array( 'type' => 'ul', 'mode' => 'views_slideshow_thumbnailhover', 'views_slideshow_singleframe-prefix' => '', 'views_slideshow_singleframe' => array( 'timeout' => '6000', 'delay' => '0', 'speed' => '700', 'start_paused' => 0, 'fixed_height' => '1', 'random' => '0', 'pause' => '1', 'pause_on_click' => '0', 'remember_slide' => 0, 'remember_slide_days' => '1', 'controls' => '0', 'pager' => '2', 'pager_type' => 'Numbered', 'pager_hover' => '2', 'pager_click_to_page' => 0, 'image_count' => '0', 'effect' => 'fade', 'sync' => '1', 'nowrap' => '0', 'advanced' => '', 'ie' => array( 'cleartype' => 'true', 'cleartypenobg' => 'false', ), ), 'views_slideshow_thumbnailhover-prefix' => '', 'views_slideshow_thumbnailhover' => array( 'hover_breakout' => 'title', 'teasers_last' => 1, 'timeout' => '5000', 'delay' => '0', 'speed' => '300', 'start_paused' => 0, 'fixed_height' => '1', 'random' => '0', 'pause' => '1', 'pause_on_click' => '0', 'remember_slide' => 0, 'remember_slide_days' => '1', 'pager_event' => 'mouseover', 'controls' => '0', 'image_count' => '0', 'effect' => 'fade', 'sync' => '1', 'nowrap' => '1', 'advanced' => '', 'ie' => array( 'cleartype' => 'true', 'cleartypenobg' => 'false', ), ), )); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'relationship' => 'none', 'build_mode' => 'full', 'links' => 0, 'comments' => 0, )); $handler = $view->new_display('block', 'BlockImageSlideshow', 'block_1'); $handler->override_option('use_ajax', FALSE); $handler->override_option('use_pager', '0'); $handler->override_option('distinct', 0); $handler->override_option('style_options', array( 'type' => 'ul', 'mode' => 'views_slideshow_singleframe', 'views_slideshow_singleframe-prefix' => '', 'views_slideshow_singleframe' => array( 'timeout' => '5000', 'delay' => '0', 'speed' => '700', 'start_paused' => 0, 'fixed_height' => '1', 'random' => '0', 'pause' => '1', 'pause_on_click' => '0', 'remember_slide' => 0, 'remember_slide_days' => '1', 'controls' => '0', 'pager' => '2', 'pager_type' => 'Numbered', 'pager_hover' => '2', 'pager_click_to_page' => 0, 'image_count' => '0', 'effect' => 'none', 'sync' => '1', 'nowrap' => '0', 'advanced' => '', 'ie' => array( 'cleartype' => 'false', 'cleartypenobg' => 'false', ), ), 'views_slideshow_thumbnailhover-prefix' => '', 'views_slideshow_thumbnailhover' => array( 'main_fields' => array( 'field_upload_image_fid' => 0, 'field_upload_image_data' => 0, ), 'breakout_fields' => array( 'field_upload_image_fid' => 0, 'field_upload_image_data' => 0, ), 'teasers_last' => 1, 'timeout' => '5000', 'delay' => '0', 'speed' => '300', 'start_paused' => 0, 'fixed_height' => '1', 'random' => '0', 'pause' => '1', 'pause_on_click' => '0', 'remember_slide' => 0, 'remember_slide_days' => '1', 'pager_event' => 'mouseover', 'controls' => '0', 'image_count' => '0', 'effect' => 'fade', 'sync' => '1', 'nowrap' => '1', 'advanced' => '', 'ie' => array( 'cleartype' => 'true', 'cleartypenobg' => 'false', ), ), )); $handler->override_option('row_plugin', 'fields'); $handler->override_option('row_options', array()); $handler->override_option('block_description', 'Block: REFID Image Slideshow'); $handler->override_option('block_caching', -1); $handler = $view->new_display('block', 'BlockTopStories', 'block_2'); $handler->override_option('fields', array( 'field_upload_image_fid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'Thumb_50x50_linked', 'multiple' => array( 'group' => 1, 'multiple_number' => '1', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_upload_image_fid', 'table' => 'node_data_field_upload_image', 'field' => 'field_upload_image_fid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '55', 'word_boundary' => 1, 'ellipsis' => 0, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'gid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'current_domain', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'gid', 'table' => 'domain_access', 'field' => 'gid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, ), 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'associations' => 0, 'blogs' => 0, 'company_profile' => 0, 'company_reports' => 0, 'events' => 0, 'industry_focus' => 0, 'market_sectors' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, '6' => 0, '7' => 0, '3' => 0, '2' => 0, '5' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'news' => 'news', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'delta' => array( 'operator' => 'not empty', 'value' => array( 'value' => '', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'delta', 'table' => 'node_data_field_upload_image', 'field' => 'delta', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'field_news_feature_value_many_to_one' => array( 'operator' => 'or', 'value' => array( '0' => '0', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'field_news_feature_value_many_to_one', 'table' => 'node_data_field_news_feature', 'field' => 'field_news_feature_value_many_to_one', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 0, ), )); $handler->override_option('style_plugin', 'viewscarousel'); $handler->override_option('style_options', array( 'grouping' => '', 'skin' => 'custom', 'skin_path' => 'sites/all/themes/exdigital/carousel/style.css', 'vertical' => 0, 'start' => '', 'offset' => '', 'scroll' => '1', 'visible' => 0, 'animation' => 'fast', 'easing' => '', 'auto' => '0', 'wrap' => 'both', )); $handler->override_option('row_plugin', 'fields'); $handler->override_option('row_options', array()); $handler->override_option('block_description', 'Block: TopStories Slide'); $handler->override_option('block_caching', -1); $handler = $view->new_display('block', 'BlockFrontNews', 'block_3'); $handler->override_option('fields', array( 'field_upload_image_fid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'Slide_Front_430_linked', 'multiple' => array( 'group' => 0, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_upload_image_fid', 'table' => 'node_data_field_upload_image', 'field' => 'field_upload_image_fid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '55', 'word_boundary' => 1, 'ellipsis' => 0, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'field_headline_caption_value' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '150', 'word_boundary' => 1, 'ellipsis' => 0, 'strip_tags' => 1, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_headline_caption_value', 'table' => 'node_data_field_headline_caption', 'field' => 'field_headline_caption_value', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'gid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'current_domain', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'gid', 'table' => 'domain_access', 'field' => 'gid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, ), 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'association' => 0, 'blogs' => 0, 'company_reports' => 0, 'events' => 0, 'industry_focus' => 0, 'market_sectors' => 0, 'news' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, '6' => 0, '7' => 0, '3' => 0, '2' => 0, '5' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'news' => 'news', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'field_news_feature_value_many_to_one' => array( 'operator' => 'or', 'value' => array( '2' => '2', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'field_news_feature_value_many_to_one', 'table' => 'node_data_field_news_feature', 'field' => 'field_news_feature_value_many_to_one', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 0, ), )); $handler->override_option('title', 'News'); $handler->override_option('use_ajax', FALSE); $handler->override_option('items_per_page', 5); $handler->override_option('block_description', 'BlockFrontNews'); $handler->override_option('block_caching', -1); ```
How to increase character length for title in views-slideshow module?
CC BY-SA 2.5
null
2010-10-22T06:06:04.037
2010-10-25T11:58:25.167
2010-10-24T13:06:29.067
415,924
415,924
[ "drupal", "drupal-6", "drupal-views", "slideshow" ]
3,995,104
1
3,995,160
null
1
221
I'm trying to create a div that would have a dynamic width depending on the content inside that div. It works well in Firefox but in IE I get linebreaks, see screenshot below: ![alt text](https://i.stack.imgur.com/fsqir.png) The markup looks like this: ``` <div class="filter-dropdown"> <div class="filter-dropdown-options-wrapper"> <ul> <li> <label> <input type="checkbox" checked="checked">(Select All) </label> </li> <li> <label> <input type="checkbox" value="2010-01-31" checked="checked">2010-01-31 </label> </li> </ul> </div> <div class="filter-btn-wrapper"> <input type="button" value="Ok" class="btn-filter-ok"> <input type="button" value="Cancel" class="btn-filter-cancel"> </div> </div> ``` and CSS looks like this: ``` .filter-wrapper div.filter-dropdown{ position:absolute; top:-190px; right:10px; border:1px solid #CFD6DA; z-index:10000; display:none; padding:10px; height:170px; background-color:#EEF1F2; } .filter-wrapper div.filter-dropdown .filter-dropdown-options-wrapper{ border:1px solid #CFD6DA; padding:5px 10px; height:130px; overflow-y:auto; background-color:#FFFFFF; width:100%; } .filter-wrapper div.filter-dropdown .filter-dropdown-options-wrapper ul{ list-style:none; padding-left:0px; margin:0px; } .filter-wrapper div.filter-dropdown .filter-dropdown-options-wrapper ul li label{ display:block; } .filter-wrapper div.filter-dropdown .filter-btn-wrapper{ margin-top:10px; text-align:right; width:130px; } .filter-wrapper div.filter-dropdown .filter-btn-wrapper .btn-filter-ok{ margin-right:5px; width:60px; } ``` So, my question is - what do I have to do in order to avoid linebreaks and keep width of the outer div dynamic?
Avoid linebreaks inside a div with dynamic width in IE
CC BY-SA 2.5
null
2010-10-22T08:31:54.370
2010-10-22T08:40:26.460
null
null
185,943
[ "html", "css" ]
3,995,148
1
4,010,068
null
0
2,170
I am using roweditor and inside the row i have a combo. in the grid, the combo column is the symbol_id (number). how do i make the combo/grid understand that symbol_id 22 is actually 'EURUSD'. and force the grid display EURUSD and not 22. Thanks. this is my store: ``` 'displayField' : 'symbol' ,'valueField' : 'symbol_id' ,SimpleStore({ fields: ['symbol_id', 'symbol'] ,data: [[22,'EURUSD'],[23,'EURGBP'],[50,'USDILS']] }) ``` ![alt text](https://i.stack.imgur.com/8Ucdi.png)
ExtJs Combo selectedValue
CC BY-SA 2.5
null
2010-10-22T08:38:45.137
2010-10-24T19:42:30.653
null
null
169,150
[ "combobox", "extjs" ]
3,995,194
1
3,995,214
null
0
1,104
How can I create button using pure CSS with a sold background color and on top of that and an oval shape gradient in the center of it. I don't want to use any external images.Here is the sample button.![Example Button](https://i.stack.imgur.com/xYjl2.png)In this example background is solid black and the blue area is composed of two linear gradient (from top(#92B5FD) to middle(#6094FC) and then from middle(#4484FB) to bottom(#44BBFC)).I started using following piece of CSS but couldn't figure out to get the desired result.``` .gradButton {width:620px; height:60px; border:1px solid black; padding: 0px; background: -webkit-gradient(linear, left top, left bottom, from(#92bffd), to(#6094fc), color-stop(0.5, #4484fb), color-stop(0.5, #44bbfc)); background-position:center; outline:0; position:absolute; top:-60px; right:-1px; z-index:9999; display:block; } ```
How can I create button using pure CSS which involves linear gradients and background color
CC BY-SA 2.5
null
2010-10-22T08:43:43.783
2011-07-23T19:33:57.290
null
null
195,802
[ "css", "button", "gradient" ]
3,995,411
1
4,202,303
null
2
307
How's the text(like below "Temporary ASP.NET") hovers directly over the tree node called? Any difference from tooltip? Can it be controlled on visibility? e.g. do not display even when the node is partially visible. ![](https://imgur.com/wwF3k.jpg) pic: Windows Explorer Thanks,
"text" on the tree node when it is partially visible
CC BY-SA 2.5
null
2010-10-22T09:15:32.103
2010-11-17T07:23:55.543
2010-10-22T09:35:18.720
354,255
354,255
[ "c#", "winforms", "treeview", "tooltip", "treenode" ]
3,995,780
1
null
null
0
265
I'm pretty noob with ASP.NET programming and i'm a bit confused on a problem that i'm facing right now. We, as devs in my company, live in a clustered environment like the one shown in figure ![alt text](https://i.stack.imgur.com/jkYxR.jpg) Nothing really special. You see, IIS Websites are duplicated on evry FrontEnd Servers. Business logic resides on BackEnds that are sitting, togheder with DB and NAS File system, behind a firewall. So communication between the public space and the protected one is permitted only through particular channels, with particular requests, to particular IPs and Protocols. Now, we were asked to build a site where the user can customize his own environment, upload images and other features. In a classical configuration, a user upload an image that is written in a folder in the site root, and then the HTML refers to that image to populate whatever control to display it. But, when a user connect to our site, the load balancer will choose one particular frontend that's not the same for evry session. So, a user will upload his file, disconnect and then come back only to find that his image is gone, 'couse the Load Balancer has routed his request to a differnt frontend where the image does not exist. So the need to write a piece of code that pull the file from the NAS behind the Firewall. The upload part is stupid, and i can understand it. My problem is: when the user connects to his page, how i reference in the HTML an image that's not on the machine the site is running on but on a completely hidden File system? I thought of writing a WCF that serve the image as as a byte stream, but which ASP.NET control to use on the Page to put the stream content on, and How? I Know that asking the experts community will bring me the best way to accomplish this. Hope this is clear enough. Thanks so much for the replays and excuse me for the bad english form.
ASP.NET: Clustered environment communication Problem
CC BY-SA 2.5
null
2010-10-22T10:04:35.433
2012-07-02T12:21:14.120
2012-07-02T11:59:53.167
97,160
352,968
[ "c#", "asp.net", "asp.net-ajax", "cluster-computing" ]
3,995,793
1
4,016,600
null
2
582
I'm having issues submitting an app to iTunes Connect using Organizer. I build and archive my application successfully then go to Organizer. I successfully validate the application. I then click to submit the application to iTunes Connect. I get the dialog to choose signing certificate and the app that I am uploading. I submit that and after a short time it comes back with the following error: ![alt text](https://i.stack.imgur.com/FuJWr.png) I know that I am entering my apple id and password correctly. As far as I can tell the bundle identifier and the rest of the app metadata are correct. Has anyone seen this before or have any advice? (I have tried using the App Uploader and get similar results). 10.6.4. And latest version of SDK and xcode.
Unable to submit app to iTunes Connect using Organizer
CC BY-SA 2.5
null
2010-10-22T10:06:13.280
2010-10-25T16:16:02.317
null
null
143,613
[ "iphone", "ios4", "app-store", "app-store-connect", "itunes-store" ]
3,996,023
1
3,996,403
null
0
339
I am about to present my work that I have created in MATLAB, but I am having trouble manipulating my data into a presentable form using the plot function. My code looks like this: ``` [inputname, pathname] = uigetfile('*.wav', 'Select WAV-file'); thumb1 = inputname; %# Get filename information fprintf('\n%s is being turned into a 30s thumbnail...\n', thumb1); fprintf('Please wait..!\n\n'); %# load the signal [y, fs, nb] = wavread(thumb1); y = mean(y,2); %# stereo, take avrg of 2 channels %# Calculate frame energy fWidth = round(fs*10e-3); %# 10ms numFrames = floor(length(y)/fWidth); energy = zeros(1,numFrames); for f=1:numFrames energy(f) = sum( y((f-1)*fWidth+1:f*fWidth).^2 ); end ``` Basically I want to plot the energy of the track over time (in seconds). ``` plot(energy) ``` nearly does what I require, but I have an unusual amount of blank space at the end of the track which is not present in the .wav file![alt text](https://i.stack.imgur.com/cSlHl.jpg). This blank space is the main issue that I'm having. Ideally I would like the x axis to be displayed in seconds! Any help would be much appreciated. Using the first suggested method: ![alt text](https://i.stack.imgur.com/jKSqS.jpg)
Help Required With Graph Plotting in MATLAB
CC BY-SA 2.5
null
2010-10-22T10:42:49.123
2010-10-22T11:38:36.407
2010-10-22T11:31:30.940
372,752
372,752
[ "matlab", "graph" ]
3,996,080
1
3,996,496
null
0
154
Have I understood db design correctly? - - - Are there any improvements that should be made? simplicity should be maintained. I intend to shorten table and column names. ![alt text](https://i.stack.imgur.com/4anRD.jpg) is this better? ![alt text](https://i.stack.imgur.com/JYiLp.jpg)
Have I understood Database design correctly?
CC BY-SA 2.5
null
2010-10-22T10:52:15.253
2010-10-26T10:04:34.457
2010-10-26T10:04:34.457
219,609
219,609
[ "mysql", "database", "database-design" ]
3,996,418
1
3,997,122
null
1
9,559
I want to create custom ImageButton, but to work like on/ off button. On click on button image to be changed to pressed(until another button is pressed)! On picture This month button is on , This year off . How can I create button like this? Do I need to use and how ? Thanks ![alt text](https://i.stack.imgur.com/OGm7s.png)
Android custom image on/off button
CC BY-SA 2.5
null
2010-10-22T11:40:46.097
2011-01-22T01:52:22.263
null
null
432,848
[ "android" ]
3,996,439
1
null
null
0
97
CSS Problem with my topNav in IE6 HTML Page: [http://www.faressoft.net](http://www.faressoft.net) ![alt text](https://i.stack.imgur.com/T0jCL.png)
CSS Problem with my topNav in IE6
CC BY-SA 2.5
null
2010-10-22T11:43:42.970
2010-10-22T12:07:20.540
null
null
423,903
[ "html", "css", "internet-explorer", "internet-explorer-6" ]
3,996,783
1
3,996,924
null
3
180
Given a set of nodes, how can I construct a tree which links together all the nodes in a way which minimises ? For example, given a set of five nodes, I could connect them like so: ![max(degree) = 4, max(depth) = 1](https://i.stack.imgur.com/CkNJ6.png) However, this is not minimal, since max(degree) == 4 and max(depth) == 1, a better tree would be: ![max(degree) = 2, max(depth) = 2](https://i.stack.imgur.com/gqW6K.png) which has max(degree) == 2 and max(depth) == 2 Edit:: The algorithm does not have to be fast, but calculating the absolutely optimal tree is important.
Calculating the smallest possible tree
CC BY-SA 2.5
0
2010-10-22T12:32:48.470
2010-10-22T13:00:24.580
null
null
108,234
[ "algorithm", "language-agnostic", "tree" ]
3,997,174
1
4,005,224
null
3
115
I'm constructing a file sharing system which needs to transmit a single file to many peers. One single root peer has the entire file and needs to transfer it to all other peers. How can I best construct a tree of file transfers such that total waiting time is minimised? For example: ![alt text](https://i.stack.imgur.com/BQMTk.png) In this tree, we need to wait 4 times before the transfer is finished. ![alt text](https://i.stack.imgur.com/TjLtL.png)![alt text](https://i.stack.imgur.com/oO6CS.png) These two are better, since we only have to wait three times for the transfer to finish.
Calculating a minimal tree for file transfer
CC BY-SA 2.5
null
2010-10-22T13:19:58.183
2010-10-24T09:57:25.697
null
null
108,234
[ "algorithm", "language-agnostic" ]
3,997,345
1
3,997,429
null
0
496
Just a simple problem without any idea of how to do it. Does anyone know how/if this can be done? I just want one solid dialog box with no partitions as it looks a little better in my application. ``` public void showCustomDialog() { Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.customdialog); TextView thisText = (TextView) dialog.findViewById(R.id.customDialogThisText); thisText.setText("This"); TextView thatText = (TextView) dialog.findViewById(R.id.customDialogThatText); thatText.setText("That"); ImageView image = (ImageView) dialog.findViewById(R.id.customDialogImageView); image.setImageResource(R.drawable.icon); //Crashes the program with an AndroidRuntimeError //dialog.requestWindowFeature(dialog.getWindow().FEATURE_NO_TITLE); dialog.show(); } ``` ![](https://i.stack.imgur.com/A5LM1.png)
Is there a way to make the Title part of a Custom Dialog Box invisible?
CC BY-SA 2.5
null
2010-10-22T13:40:27.370
2012-09-03T17:12:01.337
2012-09-03T17:12:01.337
50,776
348,261
[ "android", "title", "visible", "customdialog" ]
3,997,454
1
3,997,704
null
5
5,283
I'm cross-posting this from [math.stackexchange.com](https://math.stackexchange.com/questions/7499/help-me-understand-linearly-separability-in-a-binary-svm) because I'm not getting any feedback and it's a time-sensitive question for me. --- My question pertains to linear separability with hyperplanes in a support vector machine. According to [Wikipedia](http://en.wikipedia.org/wiki/Support_vector_machineclassifier.): > ...formally, a support vector machine constructs a hyperplane or set of hyperplanes in a high or infinite dimensional space, which can be used for classification, regression or other tasks. Intuitively, a good separation is achieved by the hyperplane that has the largest distance to the nearest training data points of any class (so-called functional margin), since in general the larger the margin the lower the generalization error of the classifier.classifier. The linear separation of classes by hyperplanes intuitively makes sense to me. And I think I understand linear separability for two-dimensional geometry. However, I'm implementing an SVM using a popular SVM library (libSVM) and when messing around with the numbers, I fail to understand how an SVM can create a curve between classes, or enclose central points in category 1 within a circular curve when surrounded by points in category 2 if a hyperplane in an n-dimensional space V is a "flat" subset of dimension n − 1, or for two-dimensional space - a 1D line. ## Here is what I mean: ![circularly enclosed class separation for a 2D binary SVM](https://i.stack.imgur.com/wqZMd.png) That's not a hyperplane. That's circular. How does this work? Or are there more dimensions inside the SVM than the two-dimensional 2D input features? --- This example application can be downloaded [here](http://www.matthewajohnson.org/software/svm.html). --- ## Edit: Thanks for your comprehensive answers. So the SVM can separate weird data well by using a kernel function. Would it help to linearize the data before sending it to the SVM? For example, one of my input features (a numeric value) has a turning point (eg. 0) where it neatly fits into category 1, but above and below zero it fits into category 2. Now, because I know this, would it help classification to send the absolute value of this feature for the SVM?
Help me understand linear separability in a binary SVM
CC BY-SA 2.5
0
2010-10-22T13:52:16.127
2013-02-19T22:24:41.940
2017-04-13T12:19:15.857
-1
198,927
[ "algorithm", "machine-learning", "classification", "svm", "libsvm" ]
3,997,765
1
3,997,940
null
0
1,513
I am Working on a cs5 as3 project and in that project i have writen all code in the frame1 of main timeline (there is no package/class in the code) The code in the main timeline is very complex in which i am loading external images and xml's and many more things . i have not written any code in the action layer. Now i want to add Preloader . how can i add Preloader in this situation ? here is a snapshot of the timeline : ![alt text](https://i.stack.imgur.com/dKUjq.jpg)
Adding a Preloader in CS5 as3 project
CC BY-SA 2.5
null
2010-10-22T14:25:27.080
2010-10-25T14:50:04.177
null
null
235,710
[ "actionscript-3", "preloader", "flash-cs5" ]
3,997,811
1
3,998,426
null
9
12,734
We have an SWF based audio player. We want to be able to embed this player into Facebook wall posts in the same way that Youtube videos or BandPage songs are embedded into Facebook feed walls. Right now clicking on the image that we provide redirects to the player instead of loading the player inline. UPDATE: We want to embed our SWF player like BandPage does it. We want to have the little play button on top of our image. We also want to have the small symbol left to the date. ![alt text](https://i.stack.imgur.com/PeqbT.png) Clicking on the image or play button then loads the SWF inline. ![alt text](https://i.stack.imgur.com/A4veD.png) How can I achieve this with the Facebook JavaScript API? Is it really just a matter of being white listed? Or do I have to provide more parameters? This is what I have right now: ``` function fb_post() { var message = 'Look at my fantastic SWF!'; var picture = 'A LINK TO A 100X100 IMAGE'; var link = 'A LINK TO OUR SWF'; var source = 'A LINK TO OUR SWF'; var name = 'Blah blah'; var caption = 'Yada yada yada'; var description = 'Facebook programming'; var type = 'swf'; FB.api('/me/feed', 'post', { message: message, picture: picture, link: link, name: name, type: type }, function(response) { if (!response || response.error) { alert('Error occured: ' + response.error.message); } else { alert('Post ID: ' + response); } }); } ``` UPDATE: It's working now! We've got the play button on our image and the SWF is loaded and displayed in the Facebook wall :) We haven't got it working with FB.api though. We are using FB.ui. Use this form for the [Video Embed Whitelist Request](http://www.facebook.com/help/contact.php?show_form=video_embed_whitelist). We had to wait less than a week to get our URLs whitelisted.
How to embed a custom SWF based audio player into facebook wall posts?
CC BY-SA 2.5
0
2010-10-22T14:30:37.843
2013-08-22T07:13:30.230
2011-02-28T18:30:11.720
218,471
218,471
[ "javascript", "facebook", "flash" ]
3,997,873
1
3,998,063
null
0
1,200
In learning WPF, I (perhaps unwisely) chose to display my XML data (wisely parsed with LINQ) in a TreeView. But when I load it into a TreeView, it looks like this: ![alt text](https://i.stack.imgur.com/M2IfD.jpg) The XAML is as follows: ``` <TreeView Name="StoryTree"> <TreeViewItem Name="TreeGeneral" Header="General"/> <TreeViewItem Name="TreeCharacters" Header="Characters" /> <TreeViewItem Name="TreeEvents" Header="Events" /> <TreeViewItem Name="TreeFactions" Header="Factions" /> <TreeViewItem Name="TreeLocations" Header="Locations" /> <TreeViewItem Name="TreePlots" Header="Plots" /> <TreeViewItem Name="TreeReferences" Header="References" /> <TreeViewItem Name="TreeScenes" Header="Scenes" /> </TreeView> ``` In the code-behind, I load the items into the treeview with a simple routine as follows: ``` private void Update(StoryItem[] items, TreeViewItem parentNode) { // Suppress updating if there are no actual changes. if (Changed(items, parentNode)) { // Remove all items from the child node. ClearItem(parentNode); // Reinsert the child nodes. foreach (var item in items) { // Create a TreeViewItem and insert it into the TreeView. // Note that the item must support double clicking so that the // user can open the item. Also, we want to support tooltips // for the items so that the summary text (if any) will display // when the user hovers over the item with the mouse. TreeViewItem treeItem = new TreeViewItem(); TextBlock block = new TextBlock(); block.Text = item.Name; block.ToolTip = item.Summary; block.TextTrimming = TextTrimming.WordEllipsis; treeItem.Items.Add(block); parentNode.Items.Add(treeItem); } } } ``` I kind of suspect that this is the "cascading style inheritance" in WPF, but I'm not entirely sure (the top-level nodes look fine), but it might be something about the way I'm creating the child nodes. DISCLAIMER: Please don't delve into talks about binding the treeview. For this particular app, the data is going to consist of more than a category header (top-level nodes) and the items immediately below them. What I want to know is the top level nodes look fine and the ones I created are different from them. I've tried eliminating the padding on both the TreeViewItem and the margin & padding on the TextBlock, both to no avail. (Visual STudio 2008 SP1, .NET 3.5, Win7)
Why Do my WPF TreeView Items Look Like This?
CC BY-SA 2.5
null
2010-10-22T14:38:04.497
2018-05-19T13:24:45.440
null
null
47,580
[ ".net", "wpf", "layout", "treeview" ]
3,997,967
1
5,188,507
null
20
7,126
I have two viewControllers, one is a subclass of UIViewController (autoresizes correctly), the other one is a subclass of a subclass of UIViewController. I did a layout in Interface Builder, I tested my code in the Simulator and everything works as expected. But if I rotate the device my views don't resize. So I went back to Interface Builder and found out that I cannot change the Resizing property of the "root"-UIView. So I opened another file and the resizing property is fixed there, too. But it is set to resizing in both direction. This is the behavior I want. There are not so many subviews that it is impossible to start again from scratch, but I don't want to do this. ![Interface Builder, Autoresizing Mask](https://i.stack.imgur.com/EjWEx.png)
Problem setting autosizing in interface builder
CC BY-SA 2.5
0
2010-10-22T14:47:46.443
2017-10-31T12:41:51.387
null
null
457,406
[ "iphone", "interface-builder", "autoresizingmask" ]
3,998,223
1
null
null
0
1,384
I'm trying to create a tab based menu using unordered lists and CSS(3). The sample can be seen here : [http://prashantraju.com/pat/tabs.html](http://prashantraju.com/pat/tabs.html) or code here: ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> /* Reset */ html { margin:0; padding:0; border:0; } body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; } /* This helps to make newer HTML5 elements behave like DIVs in older browers */ article, aside, dialog, figure, footer, header, hgroup, nav, section { display:block; } /* Line-height should always be unitless! */ body { line-height: 1.5; background: white; } /* Tables still need 'cellspacing="0"' in the markup. */ table { border-collapse: separate; border-spacing: 0; } /* float:none prevents the span-x classes from breaking table-cell display */ caption, th, td { text-align: left; font-weight: normal; float:none !important; } table, th, td { vertical-align: middle; } /* Remove possible quote marks (") from <q>, <blockquote>. */ blockquote:before, blockquote:after, q:before, q:after { content: ''; } blockquote, q { quotes: "" ""; } /* Remove annoying border on linked images. */ a img { border: none; } /* Remember to define your own focus styles! */ :focus { outline: 0; } /* Eof reset */ /* Tab */ #tabs { padding: 10px } #tabs ul { border-bottom: 1px solid #d5d5d5; margin: 0; padding: 0; } #tabs ul li { display: inline; list-style-type: none; } #tabs ul li a { background: #f9f9f9; border-top: 1px solid #d5d5d5; border-right: 1px solid #d5d5d5; border-left: 1px solid #d5d5d5; margin-left: 5px; text-shadow: 1px 1px 0 #ffffff; -moz-border-radius: 2px 2px 0 0; -webkit-border-radius: 2px 2px 0 0; color: #666; text-decoration: none; padding: 5px 5px 4px 5px; } #tabs ul li a:hover {} #tabs ul li a:active, #tabs ul li.selected a { background: #ffffff; background: -moz-linear-gradient(top, #f3f3f3 0%, #ffffff 100%); background: -webkit-gradient(linear, left top, left bottom, from(#f3f3f3), to(#ffffff)); border-bottom: 1px solid #ffffff; color: #333333; font-weight: bold; } /* Eof tab*/ </style> </head> <body> <div id="tabs"> <ul> <li class="selected"><a href="#">I'm a tab!</a></li> <li><a href="#">Look, I'm also a tab!</a></li> <li><a href="#">I'm also a tab</a></li> </ul> </div> </body> ``` For some reason it renders fine in Firefox however in Chrome it adds an extra pixel of padding on the bottom which covers up bottom border (see image below) ![alt text](https://i.stack.imgur.com/WiWVT.png) Does anyone know a fix for this? I'm currently using Eric Meyers reset as well.
Unordered List for CSS Based Tabs - Chrome Issue
CC BY-SA 2.5
null
2010-10-22T15:13:45.930
2010-10-22T15:25:46.223
null
null
null
[ "css", "google-chrome", "html-lists" ]
3,998,314
1
3,998,445
null
2
3,380
From [here](https://stackoverflow.com/questions/3994772/what-is-the-standard-approach-for-event-handling-in-case-of-visual-inheritance) I have created a `BaseForm`, then set all its `BaseForm.Designer.cs` `private` members to `protected`. Then has had a visually inherited/derived `Form`. Now I am able to re-size or modify all the controls in the derived `Form` in design-time except the `DataGridView`. I am finding the `DataGridView` as locked in the derived `Form`, even though it is not locked in the `BaseForm`. What can be the reason? What should I look/check for again? I have a base form like this: ![alt text](https://i.stack.imgur.com/VcdXs.jpg) And I have derived a form like this: ![alt text](https://i.stack.imgur.com/u0KPL.jpg)
C# Winforms visual inheritance problem with DataGridView
CC BY-SA 2.5
null
2010-10-22T15:23:05.610
2014-10-08T22:23:47.593
2017-05-23T12:19:48.617
-1
159,072
[ "c#", "winforms", "datagridview", "visual-inheritance" ]
3,998,422
1
3,998,452
null
1
2,057
My Windows XP workstation at the office had several old versions of the Java JDK installed on it. Today I decided to install the newest Java JDK and uninstall the older ones. BIG MISTAKE APPARENTLY! I don't understand why, but XP seems to think that one of the removed JDK installations is the one that it wants to use. Not sure if it is relevant, but it was JDK 1.6.0_13. I uninstalled it earlier using the XP "Add or Remove Programs" from the Control Panel. The JDK folder is gone (as one would expect) but apparently not forgotten. Here are the symptoms: Eclipse will no longer start up and use the new JDK that I installed. Eclipse acts as if there is no JDK available on the system. ![alt text](https://i.stack.imgur.com/lO8Ls.jpg) When I type `java -version` at a Command Prompt I get the following response: () ![alt text](https://i.stack.imgur.com/yECIm.jpg) When searching around on the machine I found a system service named "Java Quick Starter" that is pointing to the removed JDK directory. ![alt text](https://i.stack.imgur.com/tNIca.jpg) Now I know what some of you are probably thinking. He has a JAVA_HOME system variable pointing to the old location and/or has the old location in his PATH system variable. Not the case! There are no system variables that reference this old JDK and neither does my PATH. In fact, I have already defined a new JAVA_HOME for the new JDK that I installed this morning and added it to the system PATH. I was sure that would at least give me success from the Command Prompt, but no luck. ![alt text](https://i.stack.imgur.com/6BO6Q.jpg) And in case you're wondering if I have rebooted after the install/uninstall/system variable changes, yes I have. Does anyone know what I did wrong here? How do I purge these references to the uninstalled JDK from my system so it can start using the newly installed one? I checked the registry as suggested. There was some stuff under `HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft` that did not look right. An entry still existed for the 1.6.0_13 JDK that I had deleted, and a number of the newer JDK installs had entries here with their JavaHome attribute set to the path for the old 1.6.0_13 JDK for some inexplicable reason! ![alt text](https://i.stack.imgur.com/LtmYr.jpg) I uninstalled all of the JDKs on the machine, but still there is a remnant of the old 1.6.0_13 JDK in this registry section. ![alt text](https://i.stack.imgur.com/ZdCh5.jpg) Also, a 1.6.0_21 JRE is still listed in the Add and Remove Programs list that gives an error if I try to uninstall it. That one is also shown in the registry and has a registry "JavaHome" key with a value that points to the no-longer-existing JDK 1.6.0_13. ![alt text](https://i.stack.imgur.com/ezi6k.jpg) ![alt text](https://i.stack.imgur.com/qMFkL.jpg)
How do I make Windows XP machine stop trying to use uninstalled Java JDK (1.6.0_13)
CC BY-SA 2.5
null
2010-10-22T15:34:26.193
2012-11-24T21:31:11.070
2010-10-25T10:52:17.847
346,112
346,112
[ "uninstallation", "java" ]
3,998,779
1
null
null
0
93
I want to build an app for the Mac / iPad that allows to assign semantic roles to sub phrases of every sentence of a text. So basically I have a text with n sentences and for every sentence the user selects one or multiple words and assigns it a semantic role (e.g. agent or patient). Then, I want the according phrases to be highlighted in a different background color and a small label above or beneath it that indicates the semantic role that was assigned before. I created a short mockup to show what this could look like: ![“(The dog) (Agent) bit (the man) (Patient) in his house.”](https://cl.ly/2wNs/content) Editing the text itself is not required at the moment, just tagging the phrases. It would be favorable to have a solution that can be relatively easily be used both for the Mac and iOS on the iPad. My ideas were the following: - Using a hack around UIWebView / NSWebView - Writing some own rendering code, either in conjunction with UITextView / NSTextView or completely without out. What do you think? Are there any libraries maybe that either do that (I could not find any when searching) or that maybe help in accomplishing this, especially when going with solution 2?
OS X / iOS: Labeling phrases in a text view
CC BY-SA 2.5
null
2010-10-22T16:13:09.223
2010-10-22T16:39:52.317
2017-02-08T14:30:40.817
-1
484,417
[ "cocoa", "cocoa-touch" ]
3,999,140
1
3,999,310
null
0
1,075
This is probably me being a little dim, I am setting up a UITableViewController via a UINavigationController, I have subclassed UITableViewController: (see below) and have implemented the datasource methods to get my table up and running ``` @interface RootViewController : UITableViewController { NSArray *dataList; } @property(nonatomic, retain) NSArray *dataList; @end ``` My question is: when I came to implement the viewDidLoad for RootViewController I wanted to set the title for the table (See image below). I looked at the docs for UITableViewController and found that it had a property called "tableView" so I tried ... ``` [[self tableView] setTitle:@"Eeek!"]; ``` This did not work, what I should have tried was ... ``` [self setTitle:@"Eeek!"]; ``` What I am wondering, when you subclass UITableViewController and add code your actually dealing with the tableView and not the UITableViewController, does this make sense? ![alt text](https://i.stack.imgur.com/KQVbg.png) Gary
Subclassing UITableViewController what you get?
CC BY-SA 2.5
null
2010-10-22T16:58:41.087
2010-10-22T17:22:46.383
2010-10-22T17:05:28.053
164,216
164,216
[ "iphone", "objective-c", "cocoa-touch" ]
3,999,150
1
null
null
1
2,116
### Problem When making calls to a SQL database from a WCF service we receive the following error: > "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" ### Our Setup We have a WCF service hosted on an internal server behind the firewall. That service makes calls to SQL. When making calls to the WCF service from inside the firewall, the service can communicate with the SQL server fine. We moved site outside the firewall and the network guys gave me a port to use for talking between the site and the WCF service. When making calls to the service from the site outside the firewall, the service gets an error when connecting to the database. We are using SQL authentication in the connection string to connect to the database. Connection String Example: ``` Data Source=SQLServer;Initial Catalog=Database; Persist Security Info=True; User ID=username;Password=userpass ``` ![alt text](https://i.stack.imgur.com/Xls9r.jpg)
WCF Service Not Connecting to SQL Database
CC BY-SA 2.5
0
2010-10-22T17:00:24.597
2010-10-25T21:47:03.767
2010-10-22T20:39:08.947
13,302
120,749
[ ".net", "asp.net", "sql", "wcf" ]
3,999,589
1
null
null
3
571
![alt text](https://i.stack.imgur.com/EIbKB.png) What do those numbers mean exactly? Times the line was hit? Microseconds per invocation? Or what? Also, what do the 'progress-bars' behind the numbers mean? They aren't even proportional to the numbers, so I'm really confused.
What's the meaning of dotTrace's numbers in Line-By-Line profiling?
CC BY-SA 2.5
null
2010-10-22T17:58:33.320
2015-03-10T02:35:07.867
null
null
122,687
[ "user-interface", "profiler", "dottrace", "line-by-line" ]
3,999,877
1
null
null
0
326
I have a ASP.Net 4.0 web application for which I need to create typed configuration class. What I mean is as follows: ``` class SettingsClass { int count; string name; decimal amount; } ``` Should map to the configuration file as: ``` <MyAppSettings> <xmlSerializationSection type="..."> <SettingsClass> <count>2<count> <name>Moiz</name> <decimal>10.66</decimal> </SettingsClass> </xmlSerializationSection> </MyAppSettings> ``` The configuration file was identified in the web.config as follows by a configuration section (Read ColorSettings as MyAppSettings) ![Configuration section in web.config](https://i.stack.imgur.com/omrz7.jpg) This was straight forward in ASP.Net 2.0 and Enterprise library 1.0 I am trying to achieve the same thing in ASP.Net 4.0 and Enterprise Library 5.0. However, the Enterprise Library Console of 5.0 does not work the same way as the Enterprise Library Configuration tool of 1.0. I wanted to know how I should be going about in .Net 4.0 and Ent Lib 5.0 to achieve this same requirement. Is there a better means by which configuration can be handled for typed class in .Net 4.0/ent lib 5.0?
Creating a typed configuration class using MS Enterprise Library 5.0
CC BY-SA 2.5
null
2010-10-22T18:36:55.253
2010-10-22T22:44:23.153
null
null
199,745
[ "configuration", ".net-4.0", "web-config", "enterprise-library", "configurationsection" ]
3,999,975
1
4,000,193
null
12
5,551
I'd like to be able to extract the geometry for each letter in a TrueType font file. Each letter would have a set of coordinates, assuming each letter is in its own grid. As a picture tells a thousand words - I'd like to get the vertices for letters similar to the image below (courtesy of [http://polymaps.org/](http://polymaps.org/)) ![alt text](https://i.stack.imgur.com/Lqs2s.png) Thanks to the hint to use GDI, which is now incorporated into .NET System.Drawing.Drawing2D I got the following code to create WKT polygons. No bezier curves possible. And even after the letters were flipped and rotated some paths still would not join correctly. ``` // C# Visual Studio GraphicsPath gp = new GraphicsPath(); Point origin = new Point(0, 0); StringFormat format = new StringFormat(); FontFamily ff = new FontFamily("Arial"); //enter letter here gp.AddString("T", ff, 0, 12, origin, format); //ABCDEFGHIJKLMNOPQRSTUVWXYZ StringBuilder sb = new StringBuilder(); sb.AppendLine("DECLARE @g geometry;"); sb.Append("SET @g = geometry::STGeomFromText('POLYGON (("); Matrix flipmatrix = new Matrix(-1, 0, 0, 1, 0, 0); gp.Transform(flipmatrix); Matrix rotationtransform = new Matrix(); RectangleF r = gp.GetBounds(); // Get center point PointF rotationPoint = new PointF(r.Left + (r.Width / 2), r.Top + (r.Height / 2)); rotationtransform.RotateAt(180, rotationPoint); gp.Transform(rotationtransform); //gp.CloseAllFigures(); //make sure the polygon is closed - does not work foreach (PointF pt in gp.PathData.Points) { sb.AppendFormat("{0} {1},", pt.X, pt.Y); } PointF firstpoint = gp.PathData.Points[0]; sb.AppendFormat("{0} {1}", firstpoint.X, firstpoint.Y); //make last point same as first sb.Append("))',0);"); sb.AppendLine(""); sb.AppendLine("SELECT @g"); System.Diagnostics.Debug.WriteLine(sb.ToString()); ``` ![alt text](https://i.stack.imgur.com/9QGzL.png) ![alt text](https://i.stack.imgur.com/BecTl.png)
Extract Geometry from Font
CC BY-SA 3.0
0
2010-10-22T18:51:21.243
2022-02-20T05:37:05.293
2020-11-30T09:22:52.930
24,874
179,520
[ ".net", "vector", "fonts", "geometry", "extract" ]
4,000,691
1
4,006,567
null
2
2,821
I have a WPF conundrum. I want some text to look like this: > Enter this info: [ComboBox] Alt+E is the access key that focuses the ComboBox, and when Alt is pressed, the E in the text should be underlined. I can get the access key to work easily: ``` <Label Target="{Binding ElementName=PreparerComboBox}"> _Enter this preparer's info:</Label> ``` But then "preparer's" can't be bold because a Label doesn't support Runs (as far as I can tell). I can do the bolding easily in a TextBlock: ``` <TextBlock>Enter this <Bold>preparer's</Bold> info:</TextBlock> ``` But there's no access key defined, so I tried adding my AccessText inside the TextBlock: ``` <Label Target="{Binding ElementName=PreparerComboBox}"> <TextBlock> <AccessText>_Enter</AccessText> this <Bold>preparer's</Bold> info: </TextBlock> </Label> ``` But then the AccessText doesn't line up properly with the rest of the text in the TextBlock, and Margin doesn't seem to have any effect on it. Example: ![alt text](https://i.stack.imgur.com/CPROF.png) The best I've come up with so far is this : ``` <Label Target="{Binding ElementName=PreparerComboBox}"> <WrapPanel> <AccessText>_E</AccessText> <TextBlock>nter this <Bold>preparer's</Bold> info:</TextBlock> </WrapPanel> </Label> ``` What am I missing here? Seems like there has to be an easier way.
How can I add bold text and AccessText to a Label or TextBlock?
CC BY-SA 2.5
null
2010-10-22T20:27:33.580
2010-11-11T18:12:15.003
2010-11-11T18:12:15.003
7,072
7,072
[ "wpf", "xaml" ]
4,000,820
1
7,780,764
null
13
8,099
I've searched high & low for an answer on this and I can't seem to find an answer or anybody else having the same issue. Hope some one can assist? I have a web page for signup which I'm viewing in an iPhone UIWebView. A user is asking if we can stop capitalization on the first letter of the email address being entered. I thought this didn't matter, but apparently it can for the local-part on some email systems (apparently it's only the domain that is only case insensitive). It seems autocomplete is the culprit. I've tried adding autocomplete="off" to the input element in the html, but iOS is obviously ignoring it: ![alt text](https://i.stack.imgur.com/bAE0H.png) Can auto-complete be turned off on a html input text field within a UIWebView? Thanks
iPhone UIWebView - Can auto complete be turned off on a input text field?
CC BY-SA 2.5
0
2010-10-22T20:45:31.693
2014-11-11T15:35:14.513
2011-01-23T10:24:03.640
26,679
26,679
[ "iphone", "autocomplete", "input", "uiwebview", "autocorrect" ]
4,000,903
1
4,015,344
null
2
4,865
So I am trying to suppress a specific bar on my bar graph. So instead of populating the graph from the database, I am populating it from a formula field. So in my formula field, I have something like this: ``` if field <> "Member" then formula = field ``` So it gets rid of the field however it leaves me with this: ![alt text](https://i.stack.imgur.com/1CJRw.png) I know I can make a subreport that gets rid of that field from the beginning, but I was hoping to avoid creating a subreport for this. Any ideas? Thanks!!
How to suppress specific bar on bar graph in crystal reports?
CC BY-SA 2.5
0
2010-10-22T20:56:22.933
2016-07-07T09:22:13.323
2010-10-25T13:24:49.503
124,367
327,575
[ "crystal-reports" ]
4,000,912
1
null
null
0
1,199
I just started using VS 2010 to create a Cloud Service (HealthTracker), and I attached a MVC2 web project to it. When I hit Debug, the dev fabric was started and I was able to navigate my web app on my machine as expected. I decided MVCWebRole2 was a bad name for my web app, so I renamed it to HealthTrackerMVC. I used Refactor --> Rename to change MVCWebRole2 to HealthTrackerMVC. I Built clean and now when I hit debug the dev fabric starts, and the web app never starts and eventually it exits debug mode without me doing anything. How do I fix this? I'd rather not start over with everything... UPDATE I have checked the ServiceConfiguration.cscfg, the ServiceDefinition.csdef and the solution file. All the names match, and all the GUIDs match. I even renamed the folder that housed HealthTrackerMVC (formerly named MVCWebRole2) and edited the solution file to point to the new project. Everything loads and builds correctly. The Development Fabric shows HealthTrackerMVC starting, says it's busy, then shuts it down, rather quickly. See the attached screenshot: ![alt text](https://i.stack.imgur.com/ZTs8r.png) So I know my web role is being started... why is it shutting down so quickly?
Rename Web Role in VS 2010 Cloud Service Project
CC BY-SA 2.5
null
2010-10-22T20:57:10.867
2013-04-06T21:57:15.767
2013-04-06T21:57:15.767
727,208
1,753
[ "asp.net-mvc", "visual-studio-2010", "azure" ]
4,001,011
1
4,001,072
null
1
583
I have a issue with a table. I want just a border-bottom to be set and I wanted to have no gaps in between the td's, my css looks like this: ``` #questions td { padding: 10px; border-bottom: solid thin black; } ``` questions is the id of my table. I've tried setting the border bottom of the tr but this seems to do nothing (in Chrome and Firefox at least). My table looks like this: ![alt text](https://i.stack.imgur.com/Y2Dey.png)
Simple Table CSS border issue
CC BY-SA 3.0
null
2010-10-22T21:12:30.807
2017-06-13T11:05:53.017
2017-06-13T11:05:53.017
4,370,109
242,934
[ "html", "css", "css-tables" ]
4,001,571
1
4,661,295
null
1
817
I have a stored procedure that is called by data collection . The procedure has many parameters that for the collected data. I'm using the INFORMATION_SCHEMA to pull the parameter list into a temp table From there I can insert any missing data tag names in my tag list table So far so good, now I would like to use the ToolTag and the temp table list to insert the data from each parameter. Initial I though some dynamic SQL would do the trick. Of course the above doesn't work as the @sql statement ends up with something like this: INSERT INTO ToolTagData VALUES(315, 50, @ShutterPosition, 0) As opposed to the @ShutterPosition parameter value. I'm stuck here, I could so some kind of brute force with each name, but I'd like to be able to be abstract and have re-usability for other procedures. So is there any way out this, or am I barking up the wrong tree with this approach? My Schema looks like this: ![alt text](https://i.stack.imgur.com/yt2dZ.jpg) The goal is to insert one record into ToolTagData Data for each stored procedure parameter. The key into ToolTag is the name of the stored procedure parameter. The hope is that tags are added to the ToolTag table simply by adding a new parameter to procedure. I'm limited by what the third party data acquisition program can do, so this an attempt abstract the process.
Access Stored Procedure Parameters with Dynamic SQL
CC BY-SA 2.5
null
2010-10-22T23:06:44.170
2011-01-11T18:36:35.910
2010-10-22T23:29:28.403
69,892
69,892
[ "sql-server", "tsql" ]
4,001,730
1
4,001,734
null
0
842
I am trying to write a menu whose subitems vanish when the page is loaded. If you need full HTML, I will copy it, however it just consists of a bunch of DIVs, the items under the headers have a class of `subitems`. I have managed to do what I need via: ``` $(document).ready( $(".subitems").hide() ); ``` However, in Chrome, despite it working fine, I get the following error in the console: ![alt text](https://i.stack.imgur.com/kKdwS.png) (Using picture as I can't copy the formatting well) When I remove the above code, the error goes. I guess I have done something wrong, but I can't see it and so far it works in every browser I have tested. Any suggestions on either: 1. Have I done something wrong? 2. Is there a better way to achieve what I want?
Jquery "hide on load" causing a Javascript error
CC BY-SA 2.5
null
2010-10-22T23:53:12.653
2010-10-23T00:04:07.180
null
null
1,205,001
[ "jquery", "html", "syntax" ]
4,001,745
1
4,001,803
null
16
17,579
For a polygon defined as a sequence of (x,y) points, how can I detect whether it is complex or not? A complex polygon has intersections with itself, as shown: ![example complex polygon image](https://i.stack.imgur.com/cZkiX.png) Is there a better solution than checking every pair which would have a time complexity of O(N)?
Testing whether a polygon is simple or complex
CC BY-SA 3.0
0
2010-10-22T23:57:52.450
2022-04-19T08:08:06.130
2014-05-08T07:15:20.563
214,671
24,874
[ "algorithm", "geometry", "polygon", "computational-geometry" ]
4,001,944
1
null
null
0
518
I'm struggling to find an efficient and flexible representation for my data. We have a many-to-many relationship between two entities which have arbitrary lifetimes. Let's call these `Voter` and `Candidate`. Each relationship has a measurement which we'd like to summarize in various ways. These are timestamped and are guaranteed to be within the lifetime of the two related entities. Let's say the measure is approval rating, or just `Rating`. One unusual requirement is that if I'm summarizing a period which has no measurement, I should substitute the latest valid measurement, rather than giving NULL. Our current solution is to compile a list of valid voters and candidates for each day, then formulate a many-to-many table which records the latest valid measure. What would your solution be? ![Example diagram](https://i.stack.imgur.com/uE8EB.png) This allows me to do a single query to get a daily summary: ``` select avg(rating), valid_date, candidate_SSN, candidate_DOB from daily_rating natural join rating group by valid_date, candidate_SSN, candidate_DOB ``` This might work ok, but It seems inefficient to me. We're repeating a lot of data, especially if nothing happens for a given day. It also is unclear how to do weekly/monthly summaries without compiling even more tables. Since we're dealing with millions of rows (we're not really talking about voter polls...) I'm looking for a more efficient solution.
database: summarizing data which expires
CC BY-SA 2.5
null
2010-10-23T00:59:06.283
2010-10-31T05:08:59.940
2010-10-23T01:43:14.447
146,821
146,821
[ "sql", "database", "database-design", "data-warehouse", "olap" ]
4,002,105
1
null
null
4
196
I think I'm falling into a common category of, "It works perfectly in my dev environment, but anywhere else I get strange results," and for all my efforts I'm only more confused. I have 2 applications. One of them is .NET 4 C# app, and the other is (I think) .NET 3.5 VB. The C# app creates a DLL, that for the time being, I have a version of this DLL compiled with 3.5 so that I can use it in my VB app. I have the source to the VB app, but not the C# app. I've never compiled the C# app on my machine. Within this DLL, it references a C-based library. (I feel this is the problem.) In my dev environment, I can use this DLL without any issue in my VB app. However, when I try this setup on another machine, it acts as though the bits relating to that embedded C-based DLL are not the most recent version. - - - - - - - It's not that I get any errors. The VB app still runs fine. The VB app is instantiating and using that C# DLL (which within it has the C DLL), and I can see that the inconsistencies from the VB app appear to be issues with the C DLL. I've never had the source code to the C# app on my machine, and so I haven't any idea why it works well on my own, but not anywhere else. I feel I've reached the end of what little I know about this, and I don't see anywhere else to go. I do feel that I should be able to re-create a working environment on other machines, though. What else can I look in to? I thought I may add some more specific information in the hopes that it leads to a solution. For the time being, I've updated the VB code to work with the differing values. This picture represents the values returned from one of the C-DLL methods on my machine. ![alt text](https://i.stack.imgur.com/BbpCm.jpg) Everything looks as it should. I then take my DLLs and executable to fresh machine, run it, and these same items appear as: ![alt text](https://i.stack.imgur.com/6mJgE.jpg) I've checked the GAC several times. I've stared blankly at the loaded assembly logs for several hours only to take note that the same (correct) DLLs are being loaded in both environments. I've ensured the same various MS updates are installed on both machines. I've removed all 3rd party DLLs from both environments, that are used in the project, and reloaded them to both. At this point, I have no clue what is causing this to happen. There's no errors. It works just as happily on everyone's machine as it does my own, but I am thoroughly convinced (probably to own inability to see the actual problem) that my dev machine creates/has "something" I'm failing to move over, change the reference, etc. I just currently feel as though I've exhausted my limited knowledge on the matter. Oh, one last thing, the DLLs were provided to me from a VS2010 environment. I'll have 2010 tomorrow, and hope to use the normal .NET 4 DLL instead of the 3.5 I requested. This currently is my last hope for fixing this issue short of me changing the VB code. Any ideas?
Loading wrong assemblies on non-dev machines?
CC BY-SA 2.5
0
2010-10-23T02:14:26.857
2011-01-19T14:46:48.770
2010-10-27T00:22:16.853
227,498
227,498
[ "dll", "assemblies", "reference", "gac" ]
4,002,393
1
null
null
0
52
Hello i tried hard to make exactly like this: ![http://i55.tinypic.com/2j31fg3.png](https://i.stack.imgur.com/NS9iC.png) But it's difficult for me, and its not right at all. My boxes arent so perfect as in the image, and same with the text under it. ``` <table border="0" align="center" cellspacing="2" cellpadding="2" > <tr > <td class="cell" style="color: #CCC; font-size: 10px;"> <input type="text" value="Email"></td> <td class="cell" style="color: #CCC; font-size: 10px;"> <input type="text" value="Lösenord"></td> </tr> <tr align="center" > <td class="cell" style="color: #CCC; font-size: 10px;">Glömt lösenord</td> <td class="cell" style="color: #CCC; font-size: 10px;">Kom ihåg</td> </tr> </table> ``` What have I done wrong? / am i missing?
making this right in html
CC BY-SA 2.5
0
2010-10-23T03:53:48.093
2011-09-12T18:05:46.677
2011-09-12T18:05:46.677
254,528
457,827
[ "html", "css" ]
4,002,563
1
null
null
0
773
I've been working on a PHP project of mine, and I am attempting to add a feature that tells the user whether or not the username they entered in a register form is already taken as they update the input. When starting this, I thought I knew how to code this- but I ran into some problems along the way. When I post the data to my PHP script, I get the 'all clear'. I've double checked it, as well as FireBugged the post- all variables are present, and the server returns exactly as expected. I've inserted a test field into my database so I can see if it works. The name in the DB is 'Cameron'. Now, for my code. ``` function checkUsername() { $.post(rootpath + "/inc/php/handlers/checkusername.php", { submit: "submitted", username: $('#username').val() }, function (data) { if (data = 'not_taken') { $('#cui').html('<img src="' + rootpath + '/inc/images/icons/Checkmark-32.png" />'); } else { $('#cui').html('<img src="' + rootpath + '/inc/images/icons/block-icon-32.png" width="32" height="32" />'); } }, "html"); } ``` and then ``` <input type='text' name='username' id='username' onkeyup='checkUsername();' /> ``` In this case, I was hoping to change the HTML of a div to that of an image. But what the code does is switch to the checkmark image (the first one), regardless of the return (see below). ![alt text](https://i.stack.imgur.com/WxAbm.png) I believed this was a problem with the method I used for updating the div, `.html()`. But I then discovered that, even if the first combination submitted was that of the database (returning 'taken'), the output would still be the check-mark image. I need the image to update with, obviously, the correct one. I'm pretty sure it's not a PHP problem as the script I set up returns the data expected. Thanks in advance for any help!
How To (Effectively) use jQuery to Match the Value of an Input with a Database?
CC BY-SA 2.5
null
2010-10-23T05:04:23.433
2012-01-05T00:27:33.160
2010-10-23T05:28:19.260
333,255
484,859
[ "javascript", "jquery", "post", ".post" ]
4,002,679
1
4,002,770
null
3
1,564
I hope to display the view of one of ViewControllers in my app as full screen , so in Interface Builder, I set the statusbar as None. I also resize the frame of view as 320*480 but when I run the app, the view of the viewcontroller still displays the statusbar. Welcome any comment thanks ![alt text](https://i.stack.imgur.com/W8m0K.png)
hide the statusbar
CC BY-SA 2.5
null
2010-10-23T05:41:07.307
2012-11-29T12:04:18.867
2012-06-27T04:19:21.530
774,691
262,325
[ "iphone", "statusbar" ]
4,003,284
1
4,007,515
null
0
753
I am working on a project in which i want to add preloader and for that i have used the sample preloader provided in cs5 (in sample files). i have moved(from another fla) all my code to second frame and all library content to current fla's library. Now the problem is that the size of first frame is now 182kb (the size of library content) which is only 8kb when i have not added my library content in current fla's library. And due to this when i test the movie the first frame(preloader) is not shown up until the 182 kb is loaded and immediately after that second frame is shown up. here my question is how can i load library contents in second frame ? i am having a large number of library content which is expected to increase in future. here are two snapshot: the library:![alt text](https://i.stack.imgur.com/Njtai.jpg) testing the movie:![alt text](https://i.stack.imgur.com/3FHKt.jpg) you can see in second snapshot the size of first frame is 182kb. Please provide a good solution for this problem. Thanks !
Preloader in as3 using preloader sample provided in cs5
CC BY-SA 2.5
null
2010-10-23T09:24:19.937
2010-10-24T08:17:37.467
null
null
235,710
[ "actionscript-3", "preloader", "flash-cs5" ]
4,003,467
1
4,004,573
null
0
1,664
How do I achieve the following? ![Expected](https://i.stack.imgur.com/Tarmq.png)![Actual](https://i.stack.imgur.com/QtV5N.png) The first image shows the result I want to achieve. The second one is the current result I'm getting from my layout. The image I'm using is the one from jar. ``` <?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"> <SlidingDrawer android:id="@+id/drawer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:handle="@+id/handle" android:content="@+id/content"> <ImageView android:id="@id/handle" android:src="@drawable/drawer_handle" android:layout_width="fill_parent" android:layout_height="fill_parent" /> <Button android:id="@id/content" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Button" /> </SlidingDrawer> </LinearLayout> ```
SlidingDrawer using a 9 patch handle image
CC BY-SA 2.5
0
2010-10-23T10:11:54.443
2011-04-15T04:47:31.917
null
null
421,372
[ "android", "slidingdrawer" ]
4,003,536
1
4,003,625
null
2
1,915
I would like to plot discrete values in MATLAB like this: ![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/fb/Discrete_probability_distribution.svg/200px-Discrete_probability_distribution.svg.png) `stairs()` and `stem()` make similar plots but can I configure one of them to look like the image above? [http://www.mathworks.com/help/techdoc/ref/plottype-stairs.gif](http://www.mathworks.com/help/techdoc/ref/plottype-stairs.gif) [http://www.mathworks.com/help/techdoc/ref/plottype-stem.gif](http://www.mathworks.com/help/techdoc/ref/plottype-stem.gif)
How to customize a discrete function plot in MATLAB?
CC BY-SA 2.5
null
2010-10-23T10:32:58.443
2010-10-23T11:43:18.117
2017-02-08T14:30:41.157
-1
330,953
[ "matlab", "graph", "discrete-mathematics" ]
4,003,701
1
4,698,687
null
8
12,216
I've seen the Mario live wallpaper uses admob ads in the settings screen, but I haven't been able to do it myself. If I put the adview into the settings.xml like you would with a normal layout I get a class cast exception. Here's a screenshot of the mario live wallpaper to illustrate what I'm trying to do. ![example screenshot](https://i.stack.imgur.com/lrax1.png)
How do I put an admob adview in the settings screen for a live wallpaper?
CC BY-SA 2.5
0
2010-10-23T11:16:56.557
2016-11-03T21:30:50.403
null
null
350,678
[ "android", "layout", "admob" ]
4,003,815
1
4,005,761
null
3
2,502
I want to show the number of characters left for a new tweet, after a key has been lifted. Currently, this only happens if return is lifted: ``` - (IBAction)updateCharacterCountFromNewTweetField:(id)sender { [newTweetCharacterCount setIntValue:140 - [[sender stringValue] length]]; } ``` This action is connected to an (NOT A UITextField!!): ![alt text](https://i.stack.imgur.com/H8RlR.png) This is terrible for users, because they want to see the character count immediately, not just after pressing return. Can anyone help me out? Thanks.
Send action from NSTextField when on key up instead of return
CC BY-SA 2.5
null
2010-10-23T11:50:17.317
2010-10-23T19:50:50.560
null
null
null
[ "cocoa", "nstextfield", "ibaction" ]
4,003,862
1
null
null
1
332
While browsing through various apps in the market, I noticed that there's a "New in version xyz: ... " text, just above the number of downloads and comments. Did I miss something, or is there a dedicated field to provide this kind of information while uploading a new version of your app in the market instead of just changing your application description? Thanks Edit: Here a picture to clarify what I'm talking about: ![what's new dialog](https://i.stack.imgur.com/z3mml.jpg)
Android market "Whats new in version xyz" - information
CC BY-SA 3.0
null
2010-10-23T12:03:26.187
2014-01-23T01:30:36.950
2014-01-23T01:30:36.950
338,479
485,032
[ "android", "google-play" ]
4,003,949
1
4,003,991
null
1
562
Given a set of points in the 2D Euclidean plane: P={V,V,..,V}, and we assume that there are K different types of points:T,T,..,T, every point V in P belongs to exactly one of the K types. Definition of KTSP tour: Given an arbitrary location point V in the same 2D Euclidean plane (V has no type), a path V->V->V->V->....->V->V is called a KTSP tour iff V belongs to type i. A KTSP tour is just an ordinary tour starting and ending in the same given arbitrary point but subject to two more constraints: (1)It passes every type of point one and only once. (2)The type of point the path passes has order. That is, it first starts from point V, then first passes type T1 point, then type T2 point, then type T3 point, and so on until it passes type T point, after which it comes back at V. Here is my question: when the point location V is given find the shortest KTSP tour. For example, in the following figure, every color represents one type of point, there are 3 different types of points, we assume blue colored points are type 1, red type 2, black type 3, and the little triangle with yellow is the given location V, then the shortest TSKP tour corresponding to this particular V is shown with the four blue arrows. It seems to me this a variant of the classical TSP problem, but i can't think of an algorithm, need help! ![alt text](https://i.stack.imgur.com/TYbe0.png)
A traveling salesman like problem
CC BY-SA 2.5
null
2010-10-23T12:28:43.877
2013-02-18T09:49:41.807
2020-06-20T09:12:55.060
-1
437,472
[ "algorithm", "optimization", "math", "graph" ]
4,003,975
1
null
null
5
5,118
I'm creating an application and [I don't want a title bar](http://www.usabilitypost.com/2010/10/22/no-title-bar/): > If the title remains the same all the time, does it make sense to show it? For example, if an app doesn’t show the names of documents, or any other assets that it opens, and there is plenty of space at the top around other controls to grab onto if you want to move the window around, does the title serve much purpose? ![http://i.stack.imgur.com/C9mTo.png](https://i.stack.imgur.com/C9mTo.png) The problem is: how do I do this? I tried using `[mainWindow setStyleMask:NSBorderlessWindowMask];` but I can't make it have round corners. I really don't know how to make round corners. Next to that, I can't make it have a resize control. If I use `[mainWindow setStyleMask:NSBorderlessWindowMask | NSResizableWindowMask];` it's not borderless anymore. Can anyone help me? Thanks.
Round corners on a borderless NSWindow
CC BY-SA 2.5
0
2010-10-23T12:35:10.440
2020-02-25T09:08:48.033
2010-10-23T12:51:48.810
21,234
null
[ "cocoa", "nswindow", "titlebar", "borderless" ]
4,004,048
1
4,004,098
null
0
157
I am trying to make a control that displays a news item. There is an image that will be given in any size, but the control can crop to a square. There is also a headline and teaser. The headline and image will be on the same vertical level. The teaser will be beneath them: ![the story control](https://i.stack.imgur.com/JalSP.png) I want the control to stretch vertically to accommodate any teaser and headline text. Also, if there is no image present, I would like the text to slide over to the right. Here is the XAML I am currently using: ``` <Grid x:Name="LayoutRoot" Background="Transparent"> <Image x:Name="Thumbnail" Width="89" HorizontalAlignment="Left" VerticalAlignment="Top" /> <TextBlock x:Name="Headline" Margin="93,0,0,0" Style="{StaticResource PhoneTextAccentStyle}" TextWrapping="Wrap" HorizontalAlignment="Left" Width="299" FontSize="23.333" VerticalAlignment="Top" /> <TextBlock x:Name="Teaser" HorizontalAlignment="Left" Margin="4,100,0,0" Style="{StaticResource PhoneTextSubtleStyle}" TextWrapping="Wrap" VerticalAlignment="Top" Width="384"/> </Grid> ``` Do I want to be controlling the layout with `Grid` rows and columns? Or do I want to be using margins? If the headline is short, and there is no image, how can I be sure that the teaser text will slide up to fill up the empty space?
Silverlight: How can I set the height correctly in XAML?
CC BY-SA 2.5
null
2010-10-23T12:58:07.797
2011-09-28T00:22:16.367
null
null
147,601
[ "silverlight", "windows-phone-7" ]
4,004,078
1
null
null
0
514
I've opened a repository on github, and am now trying to clone it using TortoiseGit 1.5.3.0. I'm getting these cryptic error: ``` can't open pageant program git have not installed ``` When I'm trying to follow the instructions on github, I'm getting the following error after doing "git commit -m 'first commit'" ``` error: pathspec 'commit'' did not match any file(s) known to git ``` Trying to diagnose, this is what I've done: 1. Reinstalled latest Tortoise Git 2. Tried to create a local repository. Got this helpful box: ![alt text](https://i.stack.imgur.com/Jdnd0.png) Next, I tried clearing my personal data from Tortoise, and reentering my username & password. Got the same lovely error window.
Error cloning a git repository (can't open pageant program)
CC BY-SA 2.5
null
2010-10-23T13:06:00.423
2010-10-23T18:31:37.420
2010-10-23T15:26:25.117
11,236
11,236
[ "git", "tortoisegit" ]
4,004,173
1
4,004,191
null
0
1,017
The list view is like ![alt text](https://i.stack.imgur.com/Ls0jf.jpg) i need to add the data from the `Listview` to a `Dictionary<String,String>`. Now i'm using `for loop` to do this. Is there any way to do this using `LINQ`. Finally the Dictionary will contain ``` {"A","1"} {"B","2"} {"C","3"} ``` My code : ``` Dictionary<String, String> Dic = new Dictionary<string, string>(); for (int i = 0; i < listView1.Items.Count; i++) { Dic.Add(listView1.Items[i].Text.ToString(), listView1.Items[i].SubItems[1].Text.ToString()); } ``` Thanks in advance
C# : How to add data data from a ListView control to a Dictionary
CC BY-SA 2.5
null
2010-10-23T13:27:33.057
2010-10-25T03:53:19.063
2010-10-25T03:53:19.063
336,940
336,940
[ "c#", "linq", "listview", "lambda" ]
4,004,548
1
4,036,276
null
2
86
HI, I am new to WebOS dev. I finished writing the sample app of chapter 2 of [this book](https://rads.stackoverflow.com/amzn/click/com/0596155255), everything seems to be correct except when I start the app I get this:![alt text](https://i.stack.imgur.com/p88lr.png) Is like my app is still loading but I can't really tell and it never ends. what does this mean and how can I debug this? What could be causing this? I have tried the original sample of the book and works fine, I have copied the source so I make sure there is no spelling misses but I still get this. (Copied two assistants one model, modified one view and added the model path to sources.json with out success) This app is super simple and should show some news (title and summary) Thanks in advance.
Palm-pre app loading takes forever
CC BY-SA 2.5
null
2010-10-23T14:49:53.080
2010-10-27T18:09:21.353
null
null
149,008
[ "webos", "palm-pre", "palm-pre2" ]
4,004,598
1
4,019,312
null
1
916
I'm writing a application that put docks in the right side of the screen, like this: ![Image](https://i.stack.imgur.com/mzq6i.png) I can reserve space in the side of the screen by using the `_NET_WM_STRUT_PARTIAL`, so that the maximized windows won't overlap the docks. In the image, you can see that there is a top panel. The problem is that . Is there a way to either find out the size of the panel, or to make a way that the panel will reduce to open space to the docks? I'm using Xlib, by the way.
Discover the size of a panel with Xlib
CC BY-SA 2.5
0
2010-10-23T15:00:51.783
2010-10-25T22:15:16.937
null
null
105,398
[ "c", "x11", "xlib" ]
4,004,910
1
4,006,784
null
0
602
I am trying to automatically load an image full screen after the application is launched but it looks just a little bit funky. The outside edge of the image view can be seen - how do I eliminate that? My code looks like this: ``` - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { NSImage *imageFromBundle = [NSImage imageNamed:@"Screen.png"]; [image setImage:imageFromBundle]; [image enterFullScreenMode:[window screen] withOptions:nil]; } ``` Here is the Image: ![alt text](https://i.stack.imgur.com/hhK4N.jpg)
Cocoa NSImage full view question
CC BY-SA 2.5
null
2010-10-23T16:18:34.357
2010-10-24T01:11:18.847
2010-10-23T21:45:32.157
324,788
324,788
[ "cocoa", "nsimageview" ]
4,005,097
1
4,005,640
null
0
4,983
I am currently developing a game in which a player plays slot machine.The game is based on that the user stops in money, 100sek, 300sek or 500sek. Then the user makes a bet for each game. The one-armed bandit randomly spits out 3 different symbols in nine pieces fields. See figure: ![alt text](https://i.stack.imgur.com/7wPwK.jpg) The goal of the game is to obtain as many rows, columns, and diagonals as possible of the same symbol. In the above example that I made, obtained a profit when the upper and lower line have equal symbols, 2 simbles of the same in a row (aaa). The following profit system is depending on the number of rows with the same symbol as: •A series provides 2 * bet •Two lines giving 3 * bet •Three rows giving 4 * bet Four rows gives 5 * bet •Five lines gives 7 * bet •Fully playing field gives 10 * bet I dont know how to solve this problem with the paying? What code can I use? Should I use a for-loop? I'm new with c++ so I'm having trouble with this. I' been spending a lot of hours on this game and I just can't solve it. Please help me! Here's a small part of my code for now: I just want to compare the results. Can somone help me to compare the result after the previous goals I just described. Im thankfull for all the help I get! ``` srand(time(0)); char game[3][3] = {{'O','X','A'}, {'X','A','X'}, {'A','O','O'}}; for (int i = 0; i < 3; ++i) { int r = rand() % 3; cout << " " <<game[r][0] << " | " << game[r][1] << " | " << game[r][2] << "\n"; cout << "___|___|___\n"; } //.....compare the two-dimensional array???? ```
for-loop to compare the two-dimensional array???Help!
CC BY-SA 2.5
null
2010-10-23T17:01:32.867
2010-10-23T19:13:24.187
2010-10-23T17:45:14.783
484,991
484,991
[ "c++" ]
4,005,137
1
null
null
1
539
I have very simple circular (or self-reflecting) relationship core data model in my iPhone word game. Entity Word has one-to-many relationship to/with itself which points to related words: ![alt text](https://i.stack.imgur.com/ZIxD0.jpg) I use NSPersistentDocument Core Data Mac OS X template application to import words to Core Data sqlite database. After importing data I can see all relationships being imported correctly (every word has at least one or more related words to it). However, pointers (words are still there but relationships are gone - ). It could be sometimes up to 50% loss of related words information. When I store my database as file and reopen it, all relationships Can anyone point me when XML and binary versions of the same database stores everything correctly? I am interested in sqlite because it has opinion of being more (memory) efficient when using in iPhone and of course produces significantly smaller database file size.
Saving Core Data database to sqlite file loses some recursive/circular relationship information
CC BY-SA 2.5
null
2010-10-23T17:11:06.883
2010-10-25T19:39:26.350
2010-10-25T19:39:26.350
229,229
229,229
[ "cocoa", "sqlite", "core-data", "save", "entity-relationship" ]
4,005,476
1
4,005,492
null
0
1,947
Image files come with description properties like title, subject and keyword (summary tab). How do I "get" these properties in PHP? is there a function that allows me to the same in Javascript? ![](https://i1131.photobucket.com/albums/m541/protein-1/summary.jpg)
PHP & Javascript: Image file description properties (Summary tab)
CC BY-SA 2.5
null
2010-10-23T18:32:57.863
2010-10-23T19:56:57.597
2017-02-08T14:30:41.497
-1
2,058,243
[ "php", "javascript", "jquery", "image", "file" ]
4,006,676
1
4,198,170
null
0
86
Previously, when running a Code Analysis on my project, I thought the context men used to show a link to a MS web page that explains the issue in more detail. I don't see that now and I am not sure if I am doing something differently or if I am confusing this tool with another. Does anyone know if this type of information is normally available from the Code Analyzer? ![alt text](https://i.stack.imgur.com/r3pyf.png)
Visual Studio Code Analysis - Issue explanation Help not available
CC BY-SA 2.5
null
2010-10-24T00:12:43.030
2010-11-16T19:32:13.877
null
null
109,676
[ ".net", "code-analysis" ]