Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
4,393,436
1
null
null
0
1,167
I'm having this really frustrating problem that when I show a popup that has a ListBox with RadioButtons, the first item shows up cropped. I've spent almost two hours trying to fix it but I just can't. I know it's a really stupid problem, but I've ran out of ideas. Any ideas on how to fix this? Basically the popup shows up when I press some button, and this is how it shows up: ![alt text](https://i.stack.imgur.com/H87cA.png) And this is the XAML: ``` <Popup Grid.Row="1" Grid.RowSpan="4" x:Name="popupDateSelection" HorizontalAlignment="Center" Width="400"> <Grid> <Border BorderBrush="White" BorderThickness="4" Width="400"> <Border.Background> <SolidColorBrush Color="Black" Opacity=".9" /> </Border.Background> <ListBox> <ListBoxItem> <ListBoxItem.Content> <RadioButton Content="Item 1" Checked="radioButtonDates_Checked" /> </ListBoxItem.Content> </ListBoxItem> <ListBoxItem> <ListBoxItem.Content> <RadioButton Content="Item 2" Checked="radioButtonDates_Checked" /> </ListBoxItem.Content> </ListBoxItem> <ListBoxItem> <ListBoxItem.Content> <RadioButton Content="Item 3" Checked="radioButtonDates_Checked" /> </ListBoxItem.Content> </ListBoxItem> <ListBoxItem> <ListBoxItem.Content> <RadioButton Content="Item 4" Checked="radioButtonDates_Checked" /> </ListBoxItem.Content> </ListBoxItem> </ListBox> </Border> </Grid> </Popup> ``` Thanks.
Windows Phone 7 Popup problem
CC BY-SA 2.5
null
2010-12-08T23:36:27.603
2011-05-23T18:03:36.650
null
null
62,642
[ "windows-phone-7" ]
4,394,765
1
4,394,790
null
4
3,303
Program A, is a c program that endlessly, receives input in stdin, process it and output it to stdout. I want to write program B (in python) so it will reads A's output, and feed it back with whatever is needed. Note there must be only one instance of each of those programs, so given b1 and b2 which are instances of b instead of: ``` $ b1 | a | b2 ``` I need to have ``` $ b1 | a | b1 ``` The following is the diagram of the final desired result: ![alt text](https://i.stack.imgur.com/ArNR4.png)
How can I get those two processes (programs) talk to each other directly using pipes?
CC BY-SA 2.5
null
2010-12-09T04:12:38.890
2013-01-22T04:46:52.010
2010-12-09T04:41:03.957
9,296
9,296
[ "python", "pipe", "stdout", "stdin", "stdio" ]
4,394,802
1
4,399,745
null
3
31,145
Say I want the answer to this type of `formula = SUM(startcell:endcell)` but the `startcell` and `endcell` components change. So instead of using `C1` directly in a formula to represent the value in cell `C1`, I want to be able to use whatever the values are in and `B1, B2, and B3` to construct something that can represent `C1` in a formula? Perhaps a better way to ask the question is, Does Excel have something like Python's `eval()` ? ![alt text](https://i.stack.imgur.com/5pkWC.png)
Representing an Excel cell address in a formula using the string values of other Excel cells?
CC BY-SA 2.5
0
2010-12-09T04:20:18.050
2010-12-17T00:56:19.140
2010-12-17T00:56:19.140
13,295
290,150
[ "excel", "eval", "worksheet-function" ]
4,395,353
1
4,418,597
null
2
6,844
I have a html ``` <div class="portlet-header"> <a href="#" class="ui-icon ui-corner-all ui-state-default"> <span class="ui-icon ui-icon-minusthick ui-corner-all"></span> </a> </div> ``` I want the anchor to have hover effect so I add this javascript: ``` $(".portlet-header").hover(function() { $(this).find("a") .removeClass("ui-state-default") .addClass("ui-state-hover"); },function(){……}); ``` but the anchor's or state doesn't work like this :![alt text](https://i.stack.imgur.com/wu3bI.png) I want the effect like the jquery official ui dialog demo ![alt text](https://i.stack.imgur.com/LMzMc.png)(yes,the theme is different)…… So how can I solve this problem? Make a right hover effect
The issue with the "ui-state-hover" effect
CC BY-SA 3.0
null
2010-12-09T06:03:18.177
2013-08-31T14:58:42.413
2013-08-31T14:58:42.413
933,198
508,236
[ "jquery", "jquery-ui", "user-interface", "hover" ]
4,395,490
1
4,395,534
null
5
366
![alt text](https://i.stack.imgur.com/pfpYx.png) I am using the M-V-VM architectural pattern. I want my program to have two views, and . I start the program with . is shown by the program when I double click an item in . How should I structure my program such that I can achieve this?
Pass information from one view model to another
CC BY-SA 2.5
null
2010-12-09T06:28:06.840
2010-12-11T13:23:44.407
null
null
504,310
[ "c#", "wpf", "mvvm" ]
4,395,515
1
null
null
2
4,128
Is there any good tutorial or way to add a background image into Windows DialogBox? Something similar to this: ![http://dl.dropbox.com/u/26234/dialogbox_background_image.jpg](https://i.stack.imgur.com/5adxX.jpg) My Recourse file(trimmed a little): ``` #include <afxres.h> #include "WindowSettings.h" // for IDC_?, IDD_DLG // Dialog Box Template for IDD_DLG // IDD_DLG DIALOGEX 200, 100, 200, 350 STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION DLG_NAME FONT 8, "MS Sans Serif", 0, 0, 0x0 BEGIN LTEXT "Display Device", IDC_STATIC, 10, 5, 50, 10 COMBOBOX IDC_DIS, 10, 15, 180, 64, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP LTEXT "Resolution", IDC_STATIC, 10, 35, 50, 10 COMBOBOX IDC_RES, 10, 45, 180, 50, CBS_DROPDOWNLIST | WS_DISABLED | WS_VSCROLL | WS_TABSTOP DEFPUSHBUTTON "Go", IDC_GO, 40, 205, 50, 15, WS_DISABLED PUSHBUTTON "Cancel", IDCANCEL, 110, 205, 50, 15 END ```
Windows programming DialogBox background image
CC BY-SA 2.5
0
2010-12-09T06:31:49.160
2015-05-21T07:24:37.630
2010-12-09T06:34:46.370
223,391
535,996
[ "c++", "windows", "background", "bitmap", "dialog" ]
4,395,965
1
4,396,326
null
6
876
I am coming from CVS background. Currently, I have 2 mercurial repositories developed parallel. `hello-world-bugfix` and `hello-world-feature` (This one is being cloned from `hello-world-bugfix`) Now, I want to merge the bug fixed code from `hello-world-bugfix` into `hello-world-feature`, so that end of the day, I will get a merged file. ``` [BUG2 BUG2 BUG2] START [BUG1 BUG1 BUG1] [FEATURE2 FEATURE2 FEATURE2] ``` Here is how all the things looks like before, pulling and merging. The below two files had already been committed. ![alt text](https://i.stack.imgur.com/ypVuz.png) --- ![alt text](https://i.stack.imgur.com/KFtZ0.png) --- Now, I perform pull from `hello-world-feature`, to pull changes from `hello-world-bugfix`. ![alt text](https://i.stack.imgur.com/E9F62.png) Then, I perform update, with `always merge` options turned on. ![alt text](https://i.stack.imgur.com/Znjs5.png) Here is my merged file??? ``` [BUG2 BUG2 BUG2] START [BUG1 BUG1 BUG1] ``` It seems that my previous committed `[FEATURE2 FEATURE2 FEATURE2]` being overwritten. It seems that I shouldn't perform update step, which will not merge `feature` with `bug`, but overwrite `feature` away with `bug`. , so that I can get bug fix code, and remain feature code there? Here is the final repository view of `hello-world-feature` ![alt text](https://i.stack.imgur.com/XkH1s.png)
Mercurial update will overwrite my changes instead of merging
CC BY-SA 2.5
null
2010-12-09T07:41:52.537
2010-12-09T09:17:25.800
null
null
72,437
[ "mercurial" ]
4,396,072
1
4,396,170
null
4
487
I ran a simple jsperf test and everything went as expected when running in Firefox but when I ran the test in Google Chrome is was confused. The test is testing different ways of declaring function in JavaScript and then calling them. My guess is that Chrome is doing some sort of optimization on the JavaScript function but I'm not sure what or why there is such a big difference. Any help or links to understand this better is greatly appreciated. [http://jsperf.com/function-assignment-semicolon/2](http://jsperf.com/function-assignment-semicolon/2) ![alt text](https://i.stack.imgur.com/lFKBn.png) ![alt text](https://i.stack.imgur.com/mxbuI.png) --- Edit: I expected the results I got from Firefox because I expected them to be - fairly the same for each test - slower than when run in Google Chrome
Function declaration speed difference in JS
CC BY-SA 2.5
0
2010-12-09T08:03:18.097
2010-12-09T08:19:19.360
2010-12-09T08:19:19.137
117,068
117,068
[ "javascript", "browser", "performance", "jsperf" ]
4,396,246
1
null
null
2
3,057
I created a Qt4 Gui application. I have the main window. I put a QStackedWidget and two QPushButtons on the MainWindow's central widget. I am using QtCreator as my IDE. In the attached image the shown stacked widget has two pages and the two pushButtons 1 and 2 are for navigation to firstPage and SecondPage of the stacked widget respectively. Problem 1: When I opened signal/slot editor I selected sender=button1 and signal=clicked, then receiver=stackedWidget and slot=? . It supposed to be setCurrentIndex() but its not listed in the drop down list. Problem 2:![alt text](https://i.stack.imgur.com/PE3RF.png) In the right object panel of QtCreator there is marked the "Denied Symbols". I don't know why those symbols are there? Is there any problem ? I am attaching the screenshot below. If any more details are required please let me know.
My slots not listed in Qt Creator Signal/Slot editor
CC BY-SA 2.5
null
2010-12-09T08:31:03.093
2011-11-06T19:29:33.283
2010-12-13T06:56:29.160
218,284
218,284
[ "widget", "qt-creator", "signals-slots" ]
4,396,378
1
null
null
3
851
A long time ago, I developed a chrome extension that is able to scrobble the songs you listen to on youtube (via your last.fm account). What I did was simply taking the title of the video and assuming it had the proper format: "Artist - Track name" (obviously, I would send a request to last.fm, confirming it was a proper artist/song pair, before scrobbling). Recently (well, probably a couple of months ago) youtube started to provide artist and song information directly under the video (see image), and I was wondering how best to extract this information. ![alt text](https://i.stack.imgur.com/vUXYo.jpg) I was hoping to retrieve the information via the youtube feed api call ([http://gdata.youtube.com/feeds/api/videos/](http://gdata.youtube.com/feeds/api/videos/)?alt=json), but it doesn't apear to be featured in the returned json element. Alternatly, I could try extracting it via xpath, but I figure that might lead to complications when no artist/song information is present. If anybody could help me extract this information, and thereby greatly improving my extension, I would be very grateful.
Retrieving artist and song information from youtube
CC BY-SA 3.0
0
2010-12-09T08:53:52.260
2018-12-28T11:36:52.353
2018-12-28T11:36:52.353
2,266,772
267,833
[ "youtube", "youtube-api" ]
4,396,886
1
4,397,934
null
0
200
I want to implement the following control in my application. Is there an existing control out there? If not, can anyone suggest what default control I should base my custom control on. ## Pictures for clarification: --- ## Control on Toolbar ![alt text](https://i.stack.imgur.com/QdEKD.png) ## Control Mini Menu ![alt text](https://i.stack.imgur.com/O2RE6.png)
Replicating Windows Explorer Change View Control
CC BY-SA 2.5
null
2010-12-09T09:55:55.323
2010-12-09T11:59:21.633
null
null
504,310
[ "c#", "wpf", "controls" ]
4,397,403
1
4,413,617
null
7
10,524
I am using a form which is generated for me by django. I'm using this as a comment form after a post in my blog. Currently it renders fine but it's not nicely aligned. This is what I have. ![alt text](https://i.stack.imgur.com/dbqfx.jpg) This is what I'd like. ![alt text](https://i.stack.imgur.com/Feavk.jpg) Thanks ![alt text](https://i.stack.imgur.com/k1HMe.jpg)
How to format form fields for django comments?
CC BY-SA 2.5
0
2010-12-09T10:51:05.867
2017-10-30T22:37:48.723
2010-12-09T12:07:19.090
234,543
234,543
[ "django", "formatting", "django-forms", "styling", "django-comments" ]
4,397,677
1
4,398,017
null
2
535
I am porting an app from iPhone to Android and I was wondering what the best way was to make this screen in Android? ![alt text](https://i.stack.imgur.com/zs8fM.png) The places where it sais "optioneel" and where the phonenumbers are must be editable like this: ![alt text](https://i.stack.imgur.com/JTHim.png) This is what I've come up with so far: ![alt text](https://i.stack.imgur.com/nwCAv.png) So how can I make these 'editable listview' things in Android?
How can i make this kind of View (from iPhone) in Android?
CC BY-SA 2.5
null
2010-12-09T11:28:07.970
2019-06-19T15:07:44.063
2019-06-19T15:07:44.063
2,370,483
517,460
[ "iphone", "android", "user-interface", "listview" ]
4,397,814
1
4,397,884
null
1
1,835
When I put a view on a layout, it automatically has some padding/margin on it. See this picture: ![alt text](https://i.stack.imgur.com/03V4M.png) The red rectangle show the space that the button takes. Note the empty space between the button and the red lines. That's the space in question. What controls that space and how to I change it ? It's messing up my lisview's button alignments! The code for that layout: ``` <Button android:text="@+id/Button01" android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <Button android:text="@+id/Button02" android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> ```
What controls the default padding between views?
CC BY-SA 2.5
null
2010-12-09T11:42:01.293
2014-06-26T22:51:16.837
null
null
466,771
[ "android" ]
4,398,485
1
4,398,515
null
1
88
Take a look at this strange issue: ![Debugging steps](https://i.stack.imgur.com/vloud.png) 1. I have a breakpoint on all access to the field res1 2. Res1 is assigned the value of f, which is "bar" 3. Res1 now is "bar" 4. At the next break, res1 is suddenly null Why is this impossible? - - `assertEquals`- `res1` What could be up? I'm assuming it's not a bug in the JVM, but who knows. --- As Jon Skeet said, the problem is that the instances are different. This is caused by this strange reflection issue: ``` public class ServiceObject { private static final Map<Class<?>, Map<String, Operation>> opsByClass = new ConcurrentHashMap<Class<?>, Map<String,Operation>>(); private final Object target; private final Map<String, Operation> myClassOps; private class Operation { private final Method method; public Operation(Method met) { this.method = met; method.setAccessible(true); } public void execute(Map<String,?> args, Responder responder, Object context, boolean coerce) { ... method.invoke(target, mArgs); } } public ServiceObject(Object target) { Class<?> myClass = target.getClass(); Map<String, Operation> op = opsByClass.get(myClass); if (op == null) { op = new HashMap<String, Operation>(); for (Method meth : myClass.getMethods()) { ... op.put(opName, new Operation(meth)); } opsByClass.put(myClass, op); } this.target = target; this.myClassOps = op; } public void execute(String opName) { Operation op = myClassOps.get(opName); ... op.execute(args, responder, context, coerce); } } // Foo is equivalent to the class that contains <res1> above class Foo { @ServiceOperation public void bar() { // breakpoint here } } ``` What happens when the tests are run: ``` a = new Foo(); b = new Foo(); svc = new ServiceObject(a); svc.execute("bar", ...); // inside Foo.bar() <this> will be <a> svc = new ServiceObject(b); svc.execute("bar", ...); // inside Foo.bar() <this> will still be <a>, but should be <b> ```
Unexplained field value change
CC BY-SA 2.5
0
2010-12-09T13:02:34.530
2010-12-09T13:34:17.427
2010-12-09T13:28:36.240
60,956
85,821
[ "java", "debugging", "reflection", "variable-assignment" ]
4,398,994
1
null
null
0
144
I am playing with some models for the game [glest](http://glest.org/). These models are made up of one or more meshes; each mesh is made up of many frames which describe the position of each vertex for each frame of animation. In the model shown below, the position of each vertex in each wheel in each frame is in an array. These models have been exported from 3D tools like Blender. Someone somewhere has the originals. But I am wondering, for simple animation such as a wheel turning, the transforms - the steps of rotate, scale and translate, or the matrix that when applied to the previous frame will result in the new frame? (Obviously not all frames will have such transforms, because they may distort the models and such.) Also, how can you detect mirroring and other opportunities to reduce the amount of vertex data by applying a matrix and rendering the same vertices again? Running speed - if its measured in just minutes - won't be a problem. ![A glest catapult](https://i.stack.imgur.com/V9fCy.jpg)
computing the matrix that turns one set of coordinates into another
CC BY-SA 2.5
null
2010-12-09T14:00:19.263
2010-12-10T16:18:12.030
2010-12-10T14:32:24.457
15,721
15,721
[ "graphics", "matrix" ]
4,399,967
1
4,401,430
null
28
4,039
It happens to the best of us. ![alt text](https://i.stack.imgur.com/Z8yuQ.png) Particularly when dealing with languages without built in debugging capabilities such as breakpoints and watched variables, these bugs bite developers. Debugging code, alerts and Response.Writes, show up in production code. How do you separate debugging concerns from functional code in javascript, php, or vbscript? How do you ensure those debugging changes never enter production environments?
How do you keep debug code out of production?
CC BY-SA 2.5
0
2010-12-09T15:34:37.280
2019-05-14T04:51:15.630
null
null
409,875
[ "php", "javascript", "debugging", "vbscript" ]
4,400,147
1
4,400,508
null
3
5,123
I've created a custom progress bar as follows: ``` <!-- Custom progress bar --> <Style x:Key="CopyProgressBar" TargetType="ProgressBar"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ProgressBar"> <Grid> <Border x:Name="PART_Track" CornerRadius="5" BorderBrush="#BBC6C4" BorderThickness="2" /> <Rectangle x:Name="PART_Indicator" Fill="#A5B2B0" RadiusX="5" RadiusY="5" Margin="3" HorizontalAlignment="Left" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> ``` Here's how it is used: ``` <ProgressBar x:Name="copyProgress" Height="13" Width="279" Canvas.Left="158" Canvas.Top="103" Minimum="0" Maximum="100" Style="{StaticResource CopyProgressBar}" /> ``` It works quite well, but when the progress is full, the right side of the fill bar is clipped, which removes the rounding styling I'm going for. I've fiddled with padding, margins, max width, etc, but I can't find a way to prevent the clipping. Here is an image: ![alt text](https://i.stack.imgur.com/1UehG.png)
WPF custom progress bar clipping
CC BY-SA 2.5
0
2010-12-09T15:50:38.570
2011-08-12T20:22:07.930
2011-08-12T20:22:07.930
305,637
178,173
[ "wpf", "progress-bar", "styles" ]
4,400,411
1
4,401,022
null
2
850
I have this problem: ![alt text](https://i.stack.imgur.com/Ik38F.png) See the 5th row down... the detail text label of the cell is being squashed to the right to make room for the text label. Any idea how to make all the detail text label's uniform in size? So that the whole of its content is shown? Thank you. (PS: if anyone knows how to default a table to scrolling from the bottom up then that would be much appreciated too...)
UITableViewCellStyleValue1 - keep detail text label width uniform
CC BY-SA 2.5
null
2010-12-09T16:13:25.473
2010-12-09T17:05:40.107
null
null
414,972
[ "iphone", "core-data" ]
4,400,405
1
4,400,612
null
1
315
Maybe I'm going about this all wrong but I can't seem to figure out a simple layout. I basically want a header than spans 100% width and have a fixed height (say 120px). I then need a left menu and the content on the right. If the viewport changes, I need to show scrollbars if the content is greater than the viewport (overflow: auto). BUT, I can't seem to make it work properly. Here's what I have so far: ``` <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Client Layout Test</title> <style type="text/css" media="screen"> body { margin: 0; padding: 0; height: 100%; width: 100%; } #container { position: fixed; height: 100%; width: 100%; background: #eaeaea; } #header { background: #000000; height: 120px; } .PageTitle{ color: #ffffff; font-size: 1.8em; width: 100%; height: 100px; text-align: center; padding-top: 15px; } .leftMenu{ padding-top: 10px; padding-left: 5px; } </style> </head> <body> <div id="header"> <div class="PageTitle">CLIENT NAME AND LOGO GO HERE!</div> </div> <div id="container" style="overflow: auto;"> <table width="100%" cellpadding="0" cellspacing="0" style="height: 100%;"> <tr valign="top"> <td style="background: #5a7394; width: 235px;"> <div class="leftMenu"> List of links goes here </div> </td> <td style="background: #ffffff; padding-left: 10px;"> <div style="text-align: justify;"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse condimentum egestas nulla nec accumsan. Suspendisse pretium luctus rhoncus. Suspendisse euismod, magna non tempor lobortis, sapien velit ornare est, a venenatis enim erat a lectus. Nunc placerat, lorem ac viverra aliquet, nisl nunc varius sem, nec commodo dui mauris interdum augue. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras vulputate nunc non lorem mattis luctus. Sed sit amet lorem venenatis ipsum blandit commodo. Mauris tempor dolor a nisl tristique volutpat. Aliquam tincidunt rhoncus diam vitae faucibus. Sed consequat diam in eros laoreet placerat.</p> <p>Pellentesque consectetur tincidunt tortor, a laoreet massa interdum vitae. Nam faucibus ante sit amet lacus pulvinar eleifend. Sed iaculis tempor nunc ut tincidunt. Phasellus id metus ac purus fringilla pellentesque pulvinar nec arcu. In augue lacus, imperdiet et egestas vel, laoreet eget lorem. Donec ante tellus, feugiat eu feugiat sed, consequat sed felis. Duis porta est sit amet erat lacinia vehicula. Nullam congue luctus sapien, ut suscipit augue varius a. In consectetur dignissim urna. Donec adipiscing ornare magna eget laoreet. Fusce purus mauris, vestibulum id feugiat ac, pretium at libero. Nam placerat, ante ornare gravida cursus, magna risus eleifend dolor, ut auctor velit purus at ligula. Nullam ultrices, orci fermentum semper euismod, velit metus condimentum lacus, consequat interdum dolor orci ut elit.</p> <p>Aliquam quis nibh ac ipsum dignissim sodales ac id arcu. Ut rutrum dolor at mauris ullamcorper dignissim. Vivamus sagittis iaculis varius. Nullam pharetra enim id lectus placerat venenatis. Ut gravida nisl magna. Praesent pretium viverra convallis. Nullam molestie, est vitae luctus rhoncus, ante mi porttitor dolor, id fermentum sem eros et dui. Quisque imperdiet, justo nec aliquet dictum, lorem felis pulvinar augue, at facilisis magna metus a elit. Fusce molestie nunc nec dui blandit nec cursus neque molestie. Sed tempus metus et neque malesuada ut lacinia tortor suscipit. Sed tristique sagittis elit, tempor tincidunt augue tempus at. Vestibulum convallis volutpat euismod.</p> <p>Integer mattis vulputate viverra. Cras ultrices, lectus vitae mollis pharetra, dui odio porttitor quam, vel iaculis arcu felis vel arcu. Nam posuere viverra erat, nec molestie nunc egestas a. Proin pharetra, velit quis pretium ullamcorper, arcu dui condimentum sem, eget vulputate urna turpis vitae lorem. Suspendisse vitae felis sit amet odio dapibus vulputate. Nam hendrerit tempor neque, ac dapibus turpis ullamcorper eget. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed ipsum justo, venenatis in dignissim sit amet, consectetur gravida elit. Praesent tincidunt, orci vel elementum condimentum, nisl purus auctor orci, in ullamcorper nulla nisl et mi. Suspendisse volutpat urna vel nunc dapibus venenatis consequat nibh blandit. Cras id ipsum orci. Pellentesque eget odio dui. Fusce porta erat quis eros ornare varius. In viverra dui nec est rhoncus sed tincidunt augue imperdiet. Etiam a lectus et dui mollis fringilla.</p> <p>Sed odio sapien, viverra in egestas eu, tempor consequat erat. Vestibulum laoreet felis eu ante dapibus porttitor malesuada quam varius. Morbi egestas quam nec metus ultrices ultricies. Sed lacus libero, mattis ut feugiat at, iaculis a orci. Fusce ullamcorper accumsan dui. Aenean sit amet condimentum velit. Suspendisse turpis magna, ornare in sodales vitae, lacinia id elit. Sed non nulla ac augue egestas lacinia et a arcu. Aenean vel dolor lectus, eu imperdiet sem. Integer vel tellus sed dolor mattis condimentum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Phasellus eget massa massa, imperdiet volutpat velit. Duis a massa sit amet ligula scelerisque venenatis semper at ipsum. Aenean varius nisi a diam pretium ac facilisis metus aliquet. Ut tempus ante ac leo cursus in convallis nibh malesuada. Praesent sit amet eros neque, luctus fringilla nisi. Aliquam erat volutpat. Nam est erat, volutpat eget vulputate eget, gravida ut lorem. Nam ultricies nibh nec turpis vulputate lacinia eget vel eros. Nullam nulla tellus, porttitor id tempor non, rhoncus vitae neque.</p> </div> </td> </tr> </table> </div> </body> ``` Here's what it looks like: ![Incorrect Layout](https://i.stack.imgur.com/jz7Iw.png) Here's the issues and what I need it to do: ![Would Like to Look](https://i.stack.imgur.com/eRLCn.jpg)
HTML + CSS table layout
CC BY-SA 3.0
0
2010-12-09T16:12:58.803
2017-01-17T12:48:43.517
2017-01-17T12:48:43.517
4,370,109
176,806
[ "html", "css", "html-table" ]
4,400,575
1
4,417,850
null
4
9,119
I am working on a web application that is deployed to Websphere as a war file contained inside a wrapper ear. There are no other modules within the ear. A shared library has been created at the cell scope in the Websphere admin console, and I can specify a shared library reference at the web module level in the admin console. Everything works great when I do this, until I undeploy and redeploy the application, which of course causes the shared library reference to disappear. I would like to specify the shared library reference in the deployment descriptors for the war or ear, but I'm not sure how to do this at the web module level. Does anyone know if a shared library reference can be specified at the web module level via deployment descriptors in the war or ear file? EDIT: this screenshot shows the shared library reference that was created in the admin console. My goal is to have the same shared library reference created via deployment descriptors, so that each time the app is undeployed and redeployed the shared library reference does not need to be recreated in the admin console. ![](https://i.stack.imgur.com/cdmKA.png)
How can I specify a shared library reference at the web module level in Websphere 6.1 deployment descriptors?
CC BY-SA 2.5
null
2010-12-09T16:28:11.470
2017-07-12T13:29:00.583
2010-12-09T16:35:23.400
357,641
357,641
[ "java", "jakarta-ee", "websphere" ]
4,400,699
1
null
null
1
1,218
I have a web page that uses Google Maps API v3 to display markers with infowindows where my company has locations. Whenever I'm on an iPhone or Android phone and have the device turned in landscape mode, the infowindow height is too small to see the content and no scrollbars appear (included photo shows what I mean). When the device is in portrait mode, the infowindows display correctly. I've tried setting the height and min-height CSS properties of the HTML that makes up the content of the infowindows, but that has not worked. ![alt text](https://i.stack.imgur.com/xRvdd.png)
Google Maps API InfoWindow Incorrect Height on iPhone/Android Browser
CC BY-SA 2.5
null
2010-12-09T16:37:14.980
2011-02-24T11:32:42.260
null
null
265,333
[ "iphone", "android", "html", "css", "google-maps" ]
4,400,797
1
4,402,889
null
0
1,339
I have this rather simple SQL query, but it takes almost a minute to execute: ``` SELECT i.id, ..., a.id AS albums_id, ..., u.id AS users_id, ... FROM images i LEFT JOIN albums a ON i.albums_id = a.id LEFT JOIN users u ON a.users_id = u.id WHERE a.access = 'public' AND i.num_of_views > 0 ORDER BY i.num_of_views DESC LIMIT 0, 60 ``` Result of EXPLAIN for the above query: ![http://i.min.us/ibeAnM.png](https://i.stack.imgur.com/oAXnd.png) Tables involved: `images` (~4,822,000 rows), `albums` (~149,000 rows), `users` (~43,000 rows) Relevant indexes: `albums`: access(access,num_of_images,album_time), access_2(access,num_of_images,num_of_all_comments,album_time), users_id(users_id,album_time) `images`: browser_2(num_of_views), albums_id(albums_id,image_order) All tabels are InnoDB, running on MySql v5.1.47 So how do I bring this down to under a second? Please leave a comment if you need any additional info. edit: `users` table can be joined either with `albums` or `images` does not matter to me. edit2: moving `a.access = 'public'` from `WHERE` to `JOIN` does indeed solve my problem, but the results returned are not correct (I get images from albums that are not public), putting the `a.access ...` in both `WHERE` and `JOIN` slows the query down even more than before.
Optimizing simple query that takes 1 minute to execute
CC BY-SA 2.5
null
2010-12-09T16:45:48.730
2010-12-09T20:43:42.753
2010-12-09T17:51:12.247
185,527
185,527
[ "sql", "mysql", "query-optimization" ]
4,401,442
1
null
null
1
8,404
Ok so I've been through answers like "background-clip: padding-box;" and while it makes the end product look a little better, it still doesn't completely solve the problem of the background color bleeding outside of the border. Does anyone have a real solution to this issue? ![alt text](https://i.stack.imgur.com/NSROU.png) ``` #footer #pager li a { -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; display: block; float: left; color: #444 !important; text-decoration: none !important; background-clip: padding-box !important; padding: 8px 12px; background-color: #ccc; border: 1px solid #000; } ```
Border Radius = Background Bleed
CC BY-SA 3.0
0
2010-12-09T17:52:38.100
2013-02-01T09:18:01.723
2012-03-23T01:15:34.057
271,358
262,117
[ "background-color", "css" ]
4,401,543
1
4,401,616
null
6
5,760
Any way to emulate something like this? Isn't there an API for doing something like a "Half page curl" or something? ![alt text](https://i.stack.imgur.com/tqUSW.jpg)
How to create a page curl animation?
CC BY-SA 2.5
0
2010-12-09T18:05:33.283
2022-11-14T14:35:54.883
null
null
456,851
[ "iphone", "objective-c", "animation", "uiview" ]
4,401,596
1
4,415,227
null
0
9,934
Very basic, and very annoying, I have searched solution for many hours with no help... Problem: I'm populating Combobox from named range, range is list of times (formatted as time :-), Combo seems fine, drop-down shows my times as they should be, but when selected time is formatted as a decimal number... ![alt text](https://i.stack.imgur.com/P6LgU.jpg) Here is the code (ripped down to bare minimum): ``` Private Sub UserForm_Initialize() ComboBoxTime.RowSource = "Help!Time" End Sub ``` "Help" is name of worksheet containing named range "Time"I have tried formatting different ways with no luck... ``` ComboBoxTime = Format(ComboBoxTime, "hhmm") ``` Here is link to sample. [http://www.equstom.fi/dateproblem.html](http://www.equstom.fi/dateproblem.html) (And yes I need to populate from named range, instead for each loop, and I will set .value with code, Whole document is actually quite complex, but I included just The problem part...)
Excel VBA Time Format as decimal with Combobox
CC BY-SA 2.5
null
2010-12-09T18:11:32.113
2010-12-11T04:39:12.327
2010-12-10T02:47:57.273
4
491,936
[ "excel", "vba", "time", "combobox", "format" ]
4,401,807
1
null
null
4
1,969
I hope anybody can help me with this. When I insert a chart into a new report (SSRS 2008 R2) in Visual Studio preview everything looks fine and sharp. But when I deploy and open the same report within the browser (IE 9 & Firefox) the chart is blurry and cut off on the right hand side as well as at the bottom. Finally, when I print the report everything is fine again. I have included a screenshot ![screenshot](https://i.stack.imgur.com/Vd1ip.png) to better explain what I mean. Would be grateful for any hint on this problem! Thanks a lot! Andreas
SSRS 2008 R2 Charts cropped and blurry
CC BY-SA 3.0
0
2010-12-09T18:34:46.947
2011-11-26T06:06:42.770
2011-11-26T06:06:42.770
234,976
536,854
[ "ssrs-2008", "reporting-services" ]
4,402,416
1
4,416,674
null
1
4,415
I am just dealing with a new scenario for me, which I believe might be common to some :).. As per requirements I need to build a user experience to be like a synchronous on-line transaction for a web service call, which actually delegates the call to a IBM MQ Series using an asynchronous JMS-MQ Bridge. The client calls the web service and than his message should be published in a JMS queue on the App server which will be delivered to WebSphere MQ and than after processing a response will delivered back to App server in a FIXED JMS queue endpoint. The requirement deals with this transaction that will need to time out in case WebSphere MQ does not delivery the response in a defined amount of time, than the web service should send a time-out signal to client and ignore this transaction. The sketch of the problem follows. I need to block the request on the web service until the response arrives or time-out. Than I am looking for some open library to help me on this task. Or the only solution is blocking a thread and keep pooling for the response? Maybe I could implement some block with a listener to be notified when the response arrives? A bit of discussion would be very helpful for me now to try to clear my ideas on this. Any suggestions? I have a sketch that I hope will help clearing the picture ;) ![alt text](https://i.stack.imgur.com/cBVwW.jpg)
How to wrap a JMS to WebSphere MQ bridge in a synchronous call using the request-reply pattern?
CC BY-SA 2.5
0
2010-12-09T19:47:21.297
2011-03-25T04:09:30.933
2011-03-25T04:09:30.933
214,668
442,041
[ "asynchronous", "jms", "weblogic", "integration", "ibm-mq" ]
4,402,656
1
4,408,803
null
4
23,484
so we all know that [fancybox](http://fancybox.net/) have resize functionality and thats great, but if the content is larger than your screen it will resize as well and you have to scroll down with you browser scroll bars, not with fancybox scroll bars. To resize without fast clutter I do like this. ``` <script type="text/javascript"> jQuery(document).ready(function() { $('MyTagValue').fancybox( { 'titlePosition' : 'inside', 'transitionIn' : 'fade', 'transitionOut' : 'fade', 'onStart' : function() { $('#MyTagStyle').css( { marginLeft: '-10000px' }); }, 'onComplete' : function() { $.fancybox.resize(); $('#MyTagStyle').css( { marginLeft: '0px' }); } }); }); </script> ``` so my question is how to resize within your browser screen, or no more than a specific value, f.ex I want to autoresize, BUT no more than width: 800px; and height: 900px; to illustrate what I have now, and what I want to achieve, here is some screens: ![alt text](https://i.stack.imgur.com/3d057.png) ![alt text](https://i.stack.imgur.com/8eNe5.png) Any ideas?
fancybox auto-resize with limits
CC BY-SA 2.5
0
2010-12-09T20:10:11.460
2010-12-10T12:26:41.403
2010-12-09T20:26:59.687
5,369
5,369
[ "jquery", "html", "fancybox" ]
4,402,828
1
4,403,538
null
6
2,924
I'm looking for a way to rotate an image in order to cut a rectangle inside this image and save it as a separate picture. ![Illustration](https://i.stack.imgur.com/hgcIg.jpg)
WPF: Cut and save image
CC BY-SA 2.5
0
2010-12-09T20:30:31.000
2010-12-10T12:41:58.170
2010-12-10T12:41:58.170
11,387
11,387
[ "c#", "wpf", "image-manipulation", "rotation" ]
4,402,965
1
4,403,154
null
4
1,345
I have some filename encoding problem in GAE blobstore here. ``` class UploadHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): upload_files = self.get_uploads('file') blob_info = upload_files[0] #Problem right here decoded_filename = blob_info.filename.decode("utf-8") # File_info = Fileinfo( key_name=str(blob_info.key()), filename=decoded_filename, ) File_info.put() self.redirect("/") ``` When I run in local, it function normal in SDK console, ![alt text](https://i.stack.imgur.com/hT7hQ.png) but after upload to GAE it store it shows like non-decode string or =?Big5?B?v8O59afWt9MgMjAxMC0xMi0wMiA=?= ![alt text](https://i.stack.imgur.com/q1xAH.png) I doubt the best solution might be, stop using Chinese character filename ... All suggestions are very welcome :)
GAE blobstore filename UTF-8 encoding problem
CC BY-SA 2.5
null
2010-12-09T20:49:07.403
2015-10-22T11:22:39.353
null
null
527,376
[ "python", "google-app-engine", "utf-8", "encode", "blobstore" ]
4,403,004
1
4,468,855
null
7
51,850
Is there a way to mimic the native transition and functionality of "sliding entire pages" like you see on the iPhone but inside a web browser instead? I want one HTML page to slide over and a new HTML page to take it's place after the press of a button. The button cannot be constant. So like if you were to have a constant header with buttons that slid content inside a box then that would be incorrect. I need to slide the entire webpage. Would slides made in HTML5 be what I need? Thank you in advance for any help! Edit: I have also been thinking about possibly setting up two full-sized DIV's side by side with one hidden off the page with "overflow:hidden" and then using CSS transitions to hit a button and then move one DIV off the screen and the other one into view, but I have no idea how to do that. The other really hard part about this is that my DIV containers need to be dynamic and 100% width and height. I can't used fixed dimensions. Using the scrollTo and localscroll functions developed by [Ariel Flesler](http://flesler.blogspot.com/2007/10/jqueryscrollto.html) I have been able to complete 99% of what I am looking for. However, at the very end of development, I hit a huge road block. Here is an image that I hope helps explain what I am trying to do: ![alt text](https://i.stack.imgur.com/yL0Og.jpg) My problem is that the main content area is a fixed position with an overflow-y auto so that I can keep the scrollbar for the DIV inbetween the header and the footer. But the problem is that when I initiate the sliding animation of my DIV by hitting my button, the fixed content area does not move and only the header and footers move. If I change the positioning of the main content area to "relative" everything moves like I want it to, but I lose the positioning of the scroll. If someone could figure this out I will be greatly indebted to you! (I would post a link to what I have, but I can't. It's confidential work for a company) Thank you in advance!! I am working on reviewing all this information. I will respond in a couple days. Thank you all for you input!
Sliding An Entire Web Page
CC BY-SA 2.5
0
2010-12-09T20:53:52.333
2012-07-28T18:51:50.717
2012-07-28T18:51:50.717
16,511
511,039
[ "html", "css", "slide" ]
4,403,345
1
4,403,747
null
2
1,444
I want to create dynamically line chart (svg format). ![Like this](https://i.stack.imgur.com/8xdUk.png) But svg coordinate system works inverse. Like this: ![SVG Coordinate ](https://i.stack.imgur.com/QozaW.png) When I have points like (0,9),(1,3),(2,6), graph will be drawing top to bottom. But svg has [rotate](http://www.w3.org/TR/SVG/coords.html) function. But when it turned to left (- direction) last value will be first point. I need to draw line chart like mirroring it. But there is mirror function like roate or scale function :( Is there any way to draw line chart on simple x y coordinates like : ![Known x y axis](https://i.stack.imgur.com/Iz8Lu.jpg)
SVG Line chart on known axes
CC BY-SA 2.5
null
2010-12-09T21:34:28.203
2010-12-09T22:22:13.143
null
null
104,085
[ "charts", "svg", "linechart" ]
4,403,417
1
4,403,617
null
1
6,110
I know something about scrum and project management. For ex. We need to findout all steps of program and write down with their prioraty and work hours. But I don't know how to draw burn down chart for one sprint (which values do we need and which calculation creates the chart?). ![alt text](https://i.stack.imgur.com/ruvWz.gif)
How to calculate sprint chart for scrum project
CC BY-SA 2.5
0
2010-12-09T21:42:08.137
2013-12-18T19:42:46.263
null
null
104,085
[ "scrum", "burndowncharts" ]
4,403,461
1
4,403,512
null
0
51
Please see this: ![alt text](https://i.stack.imgur.com/fDMrM.png) My code looks like this now: [http://jsfiddle.net/Bd9Ut/](http://jsfiddle.net/Bd9Ut/) As you can see I only managed the get text above.. ("asd"), and i want it under, above the border image.. How can I do this?
CSS: Help with text under than over
CC BY-SA 2.5
null
2010-12-09T21:47:43.533
2010-12-09T21:54:17.763
null
null
267,304
[ "html", "css" ]
4,404,340
1
4,404,363
null
6
11,070
I'm doing this project for school and for some reason one of by Buttons in one of my Panels has focus(i can change it with the tab button) Well whatever button has the focus is acting weird. Is there a way that I can have no button have focus? ie. have nothing selected by the tab button? notice the Rectangle button has a dotted line around it. I want to make that go away. Thanks! ![alt text](https://i.stack.imgur.com/P8plY.png)
java, swing, awt, remove focus from all objects
CC BY-SA 2.5
null
2010-12-09T23:49:05.753
2021-03-25T19:45:09.240
null
null
351,980
[ "java" ]
4,404,623
1
4,404,640
null
4
3,864
I'm trying to get an "embed" effect on my UILabel in my app. Here's what I mean: ![alt text](https://i.stack.imgur.com/Umeux.png) I want it to look like the font is "embedded" or pressed into the background. Please note this font is dynamic, the UILabel will be changed programmatically. Any ideas as to how this can be done, or as to what font looks like this? Thanks in advance! Thanks to , I figured out how to do it. Check out the result, though. ![alt text](https://i.stack.imgur.com/WN1Ra.png) It really doesn't look very nice, any ideas why?
How to make inverted shadow on UILabel?
CC BY-SA 2.5
0
2010-12-10T00:42:55.490
2010-12-10T01:11:38.130
2010-12-10T01:11:38.130
456,851
456,851
[ "iphone", "objective-c", "fonts", "uilabel" ]
4,404,708
1
4,404,740
null
7
923
I'm styling my form buttons like this: ``` /* CSS RESET */ * { margin: 0; padding: 0; } ... form input.button { padding: 2px; } ... <input class="button" name="submit" type="submit" value="Login" /> ``` But they look like this: ![alt text](https://i.stack.imgur.com/zw2cB.jpg)
How can I make input buttons look exactly the same in all browsers?
CC BY-SA 2.5
0
2010-12-10T01:00:32.233
2010-12-10T01:05:32.110
null
null
4,639
[ "css", "cross-browser" ]
4,404,697
1
null
null
4
1,939
Me and a guy from work are working on a web application for our clients to log on and manage there details. One of the sections asks the user to upload there company logo but as we all know the html browes button or the tag as its also known is a hard cookie to style. this is how I want it to look: ![alt text](https://i.stack.imgur.com/8EkKG.jpg) But the reality is if I put a plain old file tag in there it would look bland, generic and out of place so I Googled for the solution and after a it of hunting I came across this code which yielded the image below the code (Which I also show the file upload without the opacity set to zero): ``` #divinputfile { height:85px; width:250px; margin:0px; background-image: url(images/upload_file.gif); background-repeat: no-repeat; background-position: right bottom; } #divinputfile #filepc { opacity: 0.0; -moz-opacity: 0.0; filter: alpha(opacity=00); font-size:16px; cursor: pointer; } #filepc { margin-top: 12px; } #fakeinputfile { margin-top:-28px; } #fakeinputfile #fakefilepc { width:250px; height:22px; font-size:18px; font-family:Arial; } <body> <br /> <div id="divinputfile"> <div id="fakeinputfile"> <br /> <input name="fakefilepc" type="text" id="fakefilepc" /> </div> <div align="right"> <input name="filepc" type="file" size="1" id="filepc" onchange="document.getElementById('fakefilepc').value = this.value;"/> </div> </div> </body> ``` ![alt text](https://i.stack.imgur.com/IiGqR.jpg) This is a basic hack and when I select the styled button I'm really selecting the invisible upload button, then the value of the upload is passed into the test box above to look like its really part of the upload. Two problem with this method and I hoping you'll be able to help me here is a) Only the button can be click to upload. In most browsers(not including Chrome) you can click into the text box as well as the button to upload the image. Sure with this method the text of the file path is added to the textbox but any alteration to that box wont change the file eg: if you selected file1.jpg to upload but you really wanted file2.jpg, changing the file path in the textbox wont change a thing to the ACTUAL upload element b) Some browers like Chrome and Opera add the \fakepath\ filepath to the textbox and this is just ugly, so any if statement that can strip this out also would be hugely useful. Hope you guys can help me with this, if not via code hints then if anyone knows a good JavaScript plug that saves the day. Thanks
Styling with CSS and functionality of the upload button
CC BY-SA 2.5
0
2010-12-10T00:58:32.190
2012-02-17T09:52:29.320
null
null
493,847
[ "javascript", "html", "css", "file-upload" ]
4,404,927
1
4,405,002
null
0
257
I am trying to duplicate this text in either jquery or css but so far have not been able to. Anyone got any ideas because I am fresh out: ``` Text-Color: 4F4F4F Shadow-Color: E7EAEE ``` ![alt text](https://i.stack.imgur.com/cJOqH.jpg)
Text Effect - Image to css/jQuery
CC BY-SA 3.0
null
2010-12-10T01:43:42.997
2014-10-29T10:49:14.563
2014-10-29T10:49:14.563
1,663,352
348,843
[ "jquery", "css", "text" ]
4,405,204
1
4,576,972
null
2
1,913
## Screenshots below are from the Solution Explorer Pane: --- I have a class in Folder that needs to access a resource in Folder . I get the following error message. `System.IO.IOException: Cannot locate resource 'data/danio_rerio.xml'.` ## Does not Work If: ![Does not Work](https://i.stack.imgur.com/9mJaP.png) ## It works if: ![It works](https://i.stack.imgur.com/9m1Ze.png) Folder is a child folder within Folder . Is it possible for me to use the following syntax: `foldername/somefile.someextension` to access resources within the project that are in seperate folders? --- Edit: I do not want to hard code locations to my directories.
Access project files from class in separate folder
CC BY-SA 2.5
null
2010-12-10T02:42:07.153
2011-01-02T03:27:36.163
2020-06-20T09:12:55.060
-1
504,310
[ "c#", ".net", "visual-studio", "visual-studio-2010" ]
4,405,271
1
4,405,317
null
1
281
I'm SUPER new to mac and Objective C. Interface builder is also new. I'm trying to get a UITabBar with three UITabBarItems to freeze, or dock, or stay at the bottom of the screen. I've tried a few different things in IB, but no luck... any pointers? ![Screen Shot](https://i.stack.imgur.com/P0GId.png) Notice the big white gap at the bottom. Thank you,
Forcing UITabView to 'dock' or lock to the bottom of the screen?
CC BY-SA 2.5
null
2010-12-10T03:02:39.060
2010-12-10T03:19:05.267
null
null
22,451
[ "iphone", "objective-c", "ios", "interface-builder", "uitabbar" ]
4,405,284
1
4,405,512
null
0
727
I am trying this ``` Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); Cursor cursor1 = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, null); int nameIdx = cursor.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME); int phoneIdx = cursor1.getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER); if (cursor.moveToFirst()) do { // Extract the name. String name = cursor.getString(nameIdx); // Extract the phone number. String phone = cursor.getString(phoneIdx); Log.i("ContentProvider", name); Log.i("ContentProvider", phone); } while (cursor.moveToNext()); ``` I am able to read Names but Numbers i am getting an error ![alt text](https://i.stack.imgur.com/Uv3ft.png)
Android Read Contacts Number
CC BY-SA 2.5
null
2010-12-10T03:04:37.893
2010-12-10T03:59:03.023
null
null
155,196
[ "android", "android-contacts" ]
4,405,316
1
4,405,383
null
2
8,360
I'd like to configure database with the exact requirement collation of "" but for some reason in SQL Server 2008, I can only select "". How can I select the proper collation and change it from into while retaining all of the data and the settings (schema and logins, etc)? ![alt text](https://i.stack.imgur.com/j1Feg.jpg)
SQL Server 2008 Database Collation conversion
CC BY-SA 4.0
0
2010-12-10T03:11:42.403
2019-12-27T19:04:56.943
2019-12-27T19:04:56.943
472,495
453,544
[ "sql-server", "collation" ]
4,405,367
1
4,405,374
null
0
49
I am learning to use mysql.So, I got some problems. I have three table :`users movie and movie watching history(moviewh)` the structure of `movie` table is: ``` movie_id[key] movie_title ``` and `users` is: ``` user_id[key] user_name ``` and moviewh is: ``` user_id[key] movie_id[key] watching_date[key] ``` and my sql query is: ``` EXPLAIN SELECT m.movie_id,m.movie_name_cn FROM movie AS m LEFT JOIN moviewh AS mwh ON m.movie_id = mwh.movie_id WHERE date_format(mwh.watching_date,'%Y-%m-%d') = '2010-11-01' AND mwh.user_id = 1 ``` ![alt text](https://i.stack.imgur.com/IUR7n.jpg) so . how can I optimize the table and query ??
Mysql query optimize for searching records!
CC BY-SA 2.5
null
2010-12-10T03:27:41.450
2010-12-10T03:30:32.847
null
null
408,482
[ "mysql", "optimization", "join" ]
4,405,447
1
4,405,506
null
7
4,155
i am wondering why the textarea refuses to stay aligned with the containing div? ``` <!-- the textarea pokes out--> <div style="border:1px solid #ccc; width:300px"> <textarea style="width:100%"></textarea> </div> ``` It is causing me difficulty in ensuring alignment of elements ![alt text](https://i.stack.imgur.com/0BsOJ.png)
Textarea width does not align with the containing div
CC BY-SA 2.5
0
2010-12-10T03:46:20.767
2010-12-10T04:20:39.627
null
null
180,663
[ "html", "css", "xhtml" ]
4,405,453
1
4,411,367
null
0
198
sorry if my question kind of doesn't make sense but i am total confused onto what im trying to accomplish. here are my tables. tbl_products(if the image came out small, right click on it and view picture to see it big.) ![alt text](https://i.stack.imgur.com/hLMXv.png) tbl_product_images ![alt text](https://i.stack.imgur.com/CIDXR.png) basically tbl_products has the record for a product and its description. and tbl_product_images has the images for this product. i want to display the product title,description, and its images in a format like this. ![alt text](https://i.stack.imgur.com/276os.jpg) problem is the query i wrote which is: ``` select tbl_products.dealname, tbl_products.desc, tbl_products.price, tbl_products.discount, tbl_product_images.thumb, tbl_product_images.large from tbl_products inner join tbl_product_images on tbl_products.pHash = tbl_product_images.pHash where tbl_products.startdate = '2010-12-09'; ``` displays the query like this. ![alt text](https://i.stack.imgur.com/bCZ8b.png) so when i need to write something like this ``` while($row = mysql_fetch_assoc($query)) { print $row['dealname']; print "<img src='".$row['large']."'>"; //and so on. } ``` i will see the product displayed 4 times since i have 4 images for this product. what is the best way to perform what i am trying to accomplish? btw, phash is another way of id. its my way of relating a products identification within another table.
how to query a 1-to-many db relationship and display the rows correctly?
CC BY-SA 2.5
null
2010-12-10T03:46:58.497
2010-12-10T17:03:21.280
null
null
451,725
[ "php", "mysql" ]
4,405,968
1
4,406,013
null
2
2,115
![equation](https://i.stack.imgur.com/7Fdks.gif) Currently I have: ``` def func(points): #Input is a matrix with n lines and 2 columns. centroid = numpy.mean(points, axis=0) sum = 0 for point in points: x = point[0] - centroid[0] y = point[1] - centorid[1] sum += x**2 + y**2 return math.sqrt(sum) ```
Shortest representation of this function in Python
CC BY-SA 2.5
null
2010-12-10T05:30:09.893
2010-12-10T08:04:27.353
2010-12-10T05:33:48.863
126,042
537,441
[ "python", "math" ]
4,406,477
1
null
null
1
57
Hi consider a table like this ![alt text](https://i.stack.imgur.com/WFCSf.png) Now i need an output like this ![alt text](https://i.stack.imgur.com/1sC5Z.png) this is my requirement. i just gave 3 registration dates days here. consider there are N number of registration dates and validity dates. how to write a query for this. Thanks for helping me.
mysql query by having timestamp along both the axis (i.e) in both columns and rows
CC BY-SA 2.5
null
2010-12-10T07:03:20.243
2011-05-07T05:51:17.517
2011-05-07T02:09:48.237
135,152
386,674
[ "mysql", "sql" ]
4,406,625
1
4,407,587
null
1
2,132
Is there anyway to set onlickListener inside a flipper view. In my application, there is a question wizard with "Next","Previous" and "Finish" button. I have used the ViewFlipper to flip through all the questions. There is having a textview and 4 radiobuttons wrapped inside a Radiogroup for each view in flipper. I want to get the value of the RadioButton selected when users click the finish button. What I have planned to do is, call a function to store the value in an array each time when the radio button is clicked and get the array when clicking on the finish button. Is there any suggestion how to establish this! My Question wizard will look like this: ![alt text](https://i.stack.imgur.com/o3LM8.jpg)
How to set onclick listener inside Viewflipper
CC BY-SA 2.5
0
2010-12-10T07:31:08.160
2010-12-10T09:56:07.987
2020-06-20T09:12:55.060
-1
395,959
[ "android", "onclick", "viewflipper" ]
4,406,679
1
14,103,175
null
2
1,804
Now I want to set the tab widget like this style: ![alt text](https://i.stack.imgur.com/UB0Jb.png) how should I do? All I know the possibility is to modify the Android source code, Any better ideas? Thanks a lot!
android: how to set tabs of tabhost in two lines?
CC BY-SA 2.5
0
2010-12-10T07:43:12.403
2012-12-31T15:10:01.210
2010-12-13T05:53:02.093
354,459
354,459
[ "android", "tabs", "android-tabhost", "tabwidget" ]
4,406,860
1
4,406,907
null
4
2,814
![alt text](https://i.stack.imgur.com/vwU38.png) As you can see in the picture, I don't want the blue color suggestions. How do I change that? Also I don't want that black color background.
How to change the way eclipse showing suggestion?
CC BY-SA 3.0
0
2010-12-10T08:14:47.200
2018-03-01T15:08:52.970
2011-12-28T15:13:38.110
714,965
305,684
[ "eclipse" ]
4,407,233
1
4,407,647
null
0
1,270
In my WPF application we have various custom controls, dependency properties in these controls use various attributes like `SortOrder`, `MaxLength` etc.; these attribute values are used in `PropertyGrid` control to identify Sort Order etc. for a particular property. Using ANTS profiler I came to know that these attribute objects always remain in memory, even though original custom controls are no longer in memory. Profiler shows this retention graph for these attributes - [http://weblogs.asp.net/blogs/akjoshi/CustomAttributeRetentionGraph.png](http://weblogs.asp.net/blogs/akjoshi/CustomAttributeRetentionGraph.png) ![alt text](https://i.stack.imgur.com/Ot36q.png) I am not sure why this is happening any leads?
Custom attributes not getting garbage collected?
CC BY-SA 3.0
null
2010-12-10T09:14:54.320
2012-12-03T05:33:04.763
2012-12-03T05:33:04.763
45,382
45,382
[ "c#", "wpf", "memory-management", "attributes", "garbage-collection" ]
4,407,531
1
4,407,786
null
0
1,115
I am trying to install "Twitter-Node" (npm install twitter-node). Version .3.2-pre of Node JS. When I try and install I receive the follow error. Any thoughts on what I may be doing wrong? Seems like a pretty straight forward install to me. I was able successfully install socket-io too... ``` m ERR! Error: [email protected] preinstall: `./build.sh` npm ERR! `sh` failed with 1 npm ERR! at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.12- 1/package/lib/utils/exec.js:25:18) npm ERR! at ChildProcess.emit (events.js:34:17) npm ERR! at ChildProcess.onexit (child_process.js:164:12) npm ERR! npm ERR! Failed at the [email protected] preinstall script. npm ERR! This is most likely a problem with the twitter-node package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./build.sh ``` ![alt text](https://i.stack.imgur.com/RsdlN.png)
Twitter-Node Failing to Build Node.js (npm install twitter-node)
CC BY-SA 2.5
null
2010-12-10T09:50:37.867
2010-12-10T15:36:58.463
2010-12-10T10:43:43.823
20,446
20,446
[ "twitter", "node.js" ]
4,407,711
1
4,408,015
null
3
1,630
I have a Windows Forms app where I created a UserControl that consists of two Buttons and one Label. The Buttons have an png with transparent Background assigned. If I look at the UserControl in the Windows Forms Designer it looks great. However, if I drop the UserControl onto a form it doesn't have it's smooth edges anymore. Here are some screenshot to show what I mean: ![alt text](https://i.stack.imgur.com/adkcN.jpg) ![alt text](https://i.stack.imgur.com/OEppf.jpg) Does anyone know how to fix this?
poor image quality in windows forms app (no AA)
CC BY-SA 2.5
null
2010-12-10T10:08:13.767
2010-12-10T11:29:59.537
null
null
98,491
[ "c#", ".net", "winforms", "png", "antialiasing" ]
4,407,772
1
null
null
2
5,314
Here is a CTE that slows down the whole stored procedure: ``` select * from #finalResults where intervalEnd is not null union select two.startTime, two.endTime, two.intervalEnd, one.barcodeID, one.id, one.pairId, one.bookingTypeID, one.cardID, one.factor, two.openIntervals, two.factorSumConcurrentJobs from #finalResults as one inner join #finalResults as two on two.cardID = one.cardID and two.startTime > one.startTime and two.startTime < one.intervalEnd ``` The table #finalResults contains a little over 600K lines, the upper part of the UNION (`where intervalEnd is not null`) about 580K rows, the lower part with the joined #finalResults roughly 300K rows. However, this inner join estimates to end up with a whooping 100 mio. rows, which might be responsible for the long-running Hash Match here: ![alt text](https://i.stack.imgur.com/1gEpK.png) Now if I [understand Hash Joins](http://msdn.microsoft.com/en-us/library/ms189313.aspx) correctly, the smaller table should be hashed first and the larger table inserted, and if you guess the sizes wrong at first, you get performance penalties due to mid-process role reversal. Might this be responsible for the slowness? I tried an explicit `inner merge join` and `inner loop join` in hopes of improving the row count estimate, but to no avail. One other thing: the Eager Spool on the bottom right estimates 17K rows, ends up with 300K rows and performs almost half a million rebinds and rewrites. Is this normal? The temp table #finalResults has an index on it: ``` create nonclustered index "finalResultsIDX_cardID_intervalEnd_startTime__REST" on #finalresults( "cardID", "intervalEnd", "startTime" ) include( barcodeID, id, pairID, bookingTypeID, factor, openIntervals, factorSumConcurrentJobs ); ``` Do I need to build a separate statistic on it as well?
SQL Server: INNER JOIN after UNION leads to slow Hash Match (Aggregate)
CC BY-SA 2.5
0
2010-12-10T10:15:17.137
2010-12-10T11:40:51.080
2010-12-10T11:40:51.080
158,371
158,371
[ "sql", "tsql", "sql-server-2008", "union" ]
4,407,859
1
4,408,691
null
0
932
I see that on www.dropbox.com, the watch_a_video2.png image is a transparent PNG image with an opacity set to 0.5. When you mouse over it the opacity change. How are they doing to not have a dark outline around the watch_a_video2.png image with IE7/8? I don't see any filter or specific IE fix library... I try to reproduce their style with Jquery and it works fine with Firefox/Safari but I get a dark outline with IE. Thanks for your help. ![alt text](https://i.stack.imgur.com/x8eHp.png)
How do Dropbox make their transparent PNG + opacity work on IE?
CC BY-SA 2.5
0
2010-12-10T10:28:02.270
2010-12-10T12:10:32.333
2010-12-10T10:53:37.150
287,047
266,406
[ "html", "css", "internet-explorer", "png", "opacity" ]
4,407,910
1
4,407,970
null
1
1,441
I am using Chrome latest version (8.0.552.215). I have a web page with an hyperlink that, when clicked, open up a jquery dialog and makes an ajax call that return `HTML` markup. the ajax call, upon success, add the returned markup to the dialog. The returned markup contains also some jquery code to execute upon `$(document).ready()`. How can I debug that code inside the dialog? I have added the `debugger;` directive to my script as per the @Gaby answer ``` $(document).ready(function () { $("#myTabs").tabs(); debugger; var auth = "<% = Request.Cookies[FormsAuthentication.FormsCookieName]==null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value %>"; ``` But unfortunately when the debugger stops at the directive I am not able to see the code that is executing ![alt text](https://i.stack.imgur.com/FNNjN.png)
Debug jQuery code in a dialog
CC BY-SA 2.5
null
2010-12-10T10:31:31.597
2011-06-04T14:32:41.230
2011-06-04T14:32:41.230
417,562
431,537
[ "jquery", "jquery-ui" ]
4,408,277
1
null
null
2
679
Is there any way to create multiple column headers in ? ![alt text](https://i.stack.imgur.com/Cq3CI.png)
XCeed DataGrid for WPF v4.x: How to create multiple column headers
CC BY-SA 3.0
null
2010-12-10T11:20:10.960
2011-05-04T06:02:10.070
2011-05-04T06:02:10.070
212,823
212,823
[ "wpf", "xceed-datagrid", "xceed" ]
4,408,726
1
4,409,917
null
9
8,452
This is a question regarding a very simple construction - I have the following XAML: ``` <Viewbox Height="100" Stretch="Uniform"> <TextBlock FontFamily="Georgia">My Cool Text</TextBlock> </Viewbox> ``` This is quite simple to understand. Yet when I start the program I get strange blurry text (there are no bitmap effects anywhere in my project). ![alt text](https://i.stack.imgur.com/eii27.png) (left side - the designer view in VS2010, right side - the running application) Does anyone have ANY suggestions about why this is happening??
TextBlock inside a Viewbox - strange rendering
CC BY-SA 2.5
0
2010-12-10T12:15:26.833
2010-12-10T14:43:46.473
null
null
196,983
[ "wpf", "viewbox" ]
4,408,751
1
4,408,852
null
0
322
I have a win form with lot of controls: ![alt text](https://i.stack.imgur.com/rNjP0.png) I want to know when user enters 'txt2' exactly after he entered 'txt1'. In other words when user is in 'txt2' I want to know was previous control 'txt1' or not. What is the best way to such thing?
Previous focused control in WinForms
CC BY-SA 2.5
null
2010-12-10T12:19:09.770
2010-12-10T13:02:07.597
null
null
283,606
[ "winforms", "focus" ]
4,408,877
1
4,410,749
null
0
173
I want to try joomla, but I can't even install it properly. The last step I was able to make, using the manual installation is before the step before the finish. When I click next, I get this: ![alt text](https://i.stack.imgur.com/nb3zU.png) The database is created, when I check on phpmyadmin. What's wrong, I think I have followed all the steps correctly because there's no error in every step. And my php settings is set to the recommended settings by joomla.
how to properly install joomla
CC BY-SA 2.5
null
2010-12-10T12:38:10.970
2011-01-16T00:10:32.863
null
null
472,034
[ "php", "joomla" ]
4,409,119
1
8,218,567
null
5
7,355
I want to know how to make vary color bar for two series in Jqplot. If I have only one series data, it works perfectly like the image below ![alt text](https://i.stack.imgur.com/LLXZj.png) The red and green color based on its value. But if I have two series data, I can't configure to have two series color for each series data. So far, I can only make this graph ![alt text](https://i.stack.imgur.com/JSR3n.png) I want the two series graph can have vary color based on its value as well as the one series graph. This is my code ``` chart = $.jqplot('map-chart', [dataChart, dataChart2], { title: 'TIME', legend: { renderer: $.jqplot.EnhancedLegendRenderer, show: true, location: 'ne' }, series: [{label: 'Current data'}, {label: 'Worst data'}], //seriesColors: seriesColors1, seriesDefaults:{ renderer:$.jqplot.BarRenderer, pointLabels: {show: true} //rendererOptions:{ //varyBarColor: true //} }, axes: { xaxis: { label: 'station', renderer: $.jqplot.CategoryAxisRenderer, labelRenderer: $.jqplot.CanvasAxisLabelRenderer, tickRenderer: $.jqplot.CanvasAxisTickRenderer, ticks: tickers, tickOptions: { angle: -30 } }, yaxis: { min: 0, label: 'Time', labelRenderer: $.jqplot.CanvasAxisLabelRenderer, tickOptions: { fontSize: '8pt' } } }, highlighter: {show: false} }); ``` I have tried `seriesColors : [seriesColors1, seriesColors2]` but it didn't work.
Vary Color Bar For Two Series Data in Jqplot
CC BY-SA 3.0
0
2010-12-10T13:07:54.877
2014-11-05T23:34:12.177
2011-11-21T21:06:18.847
457,571
375,148
[ "javascript", "jquery", "jqplot" ]
4,409,314
1
4,409,705
null
0
2,080
with following code [qTip](http://craigsworks.com/projects/qtip/) works for me and generates tooltips: ``` $('a.ppname[rel]').live('mouseover', function() { $(this).qtip( { content : { url : $(this).attr('rel') }, position : { corner : { tooltip : 'leftBottom', target : 'rightBottom' } }, style : { border : { width : 5, radius : 10 }, padding : 10, textAlign : 'center', tip : true, // Give it a speech bubble tip with // automatic corner detection name : 'cream' // Style it according to the preset // 'cream' style } }); }); }); ``` But the qTip is not removed from the dom, well sometimes it just disappears and appears again and I get a lot of opened tooltips: ![alt text](https://i.stack.imgur.com/3xrSt.png) I looked at the dom, the qtip seems not to be removed but just set invisible. I need some simple logic to destroy the tooltip. E.g. if `a.ppname` was focused and is not focused any more I could destroy it. But how would that look like in javascript? Any Ideas? : I downgraded my jQuery to 1.3.2 [recommended for qTip](http://craigsworks.com/projects/qtip/download/#). I don't get tooltips that stay open anymore but there is another problem now: ![alt text](https://i.stack.imgur.com/XlzpD.png) The tooltips, which for now I can not delete seem to appear when I hover the next item. Please, provide some suggestions how to destroy the tooltip. : using ``` $('a.ppname[rel]').each(function(){ ``` in the first line of the code the problem is solved. But that leads to another problem another problem that I describe here [qTip tooltip does not appear, jQuery](https://stackoverflow.com/questions/4408415/qtip-tooltip-does-not-appear-jquery). seems to be a dilemma^:D
Tooltip (qTip) is not closed, jQuery
CC BY-SA 4.0
0
2010-12-10T13:33:51.223
2021-07-08T14:33:46.653
2021-07-08T14:33:46.653
4,370,109
401,025
[ "javascript", "jquery", "jquery-events", "qtip", "jquery-ui-tooltip" ]
4,409,331
1
4,409,429
null
1
376
I'd like to export my "Tag specific Options" (the formatting options) in Visual Studio 2010 so that the other developers in my office can format their code in the exact same way. I have though about copying the setting folder, but obviously not everyone in my office wants the same VS 2010 settings as myself. [Screen-shot](https://i.stack.imgur.com/RqtIK.png) included for some clarity. Any suggestions on how to go about doing this would be much appreciated. ![alt text](https://i.stack.imgur.com/RqtIK.png)
Export "Tag Specific Options" in Visual Studio 2010
CC BY-SA 2.5
null
2010-12-10T13:35:21.797
2010-12-10T13:51:05.833
2010-12-10T13:51:05.833
366,904
370,286
[ "visual-studio", "visual-studio-2010", "settings", "export", "code-formatting" ]
4,409,434
1
null
null
5
4,767
I tried to google it out, but is there any sample Shader effect which I could use to produce an outlined FormattedText. I was able to get the outline by using BuildGeometry(), but the performance is very poor! ![outlined Text](https://i.stack.imgur.com/neGg9.png) PS: Since I'm new to this and still learning, it would be helpful if anyone can suggest whether it would be even possible or not.
Text Outlining Using WPF Shader
CC BY-SA 2.5
0
2010-12-10T13:51:21.590
2010-12-10T14:59:39.630
null
null
171,531
[ "wpf", "shader", "outline", "formatted-text" ]
4,409,486
1
4,497,110
null
3
877
Since yesterday I cannot debug and step into any source code in VS2010. It is displaying the text as shown in the screenshot below. Whenever click on The text changes to the following: > No source available. The source code cannot be displayed. The funny thing about this screenshot is that it states that it actually find the correct source file with the correct checksum. What could have happend here and how do I fix it? In the example below I have setup a simple windows forms application project and set a breakpoint in the form's constructor and then hit f5. When I start the application separately and then attach to it later, everything works fine. I can hit the breakpoints. ![screenshot](https://i.stack.imgur.com/owvXr.jpg)
Suddenly I cannot debug anything in VS2010
CC BY-SA 2.5
null
2010-12-10T13:58:07.383
2010-12-21T07:33:44.103
2010-12-10T14:41:28.457
4,227
4,227
[ "debugging", "visual-studio-2010" ]
4,409,535
1
4,409,702
null
1
1,380
Hi I'm working on a project and I'd like to have large image displayed on the left and a regular list on the left, akin to Windows Media Player's ListView in Album mode. (see image below) ![Windows Media Player ListView](https://i.stack.imgur.com/yEdGe.jpg) Does anyone know of where I can get a control that does this in VB.NET/C# in WinForms?
Windows Media Player Styled ListView
CC BY-SA 2.5
null
2010-12-10T14:05:11.103
2010-12-10T14:22:08.887
2010-12-10T14:14:35.253
366,904
117,870
[ ".net", "winforms", "listview", "custom-controls" ]
4,409,678
1
4,409,850
null
0
1,334
I'm searching for a way to convert embossed letters e.g. like in the picture of the credit card below to normal ones like you see them in a book. I don't need specific code here, just ideas which image manipulation steps could lead to the desired result. ![Credit Card](https://i.stack.imgur.com/U0nZw.png)
Image Manipulation: Convert embossed letters to normal letters
CC BY-SA 2.5
null
2010-12-10T14:19:29.367
2010-12-10T14:37:40.953
null
null
11,387
[ "image-manipulation", "emboss" ]
4,409,715
1
4,409,775
null
1
493
Here is the deal. I have a container DIV with a width of 100%. And inside of that DIV I have tons of blank DIV's floated to the left with display:block on them. (for test purposes) I have overflow-x:auto on the container. Once the last div reaches the end of the container element it drops to the next line instead of staying in line with the other DIV's and initiating a scroll bar on the container. How do I keep the DIV's from dropping to the next line and forcing them to invoke scroll behavior on the container? Let me know thanks so much! Here is a pic to help: ![alt text](https://i.stack.imgur.com/ExbKv.jpg)
Overflow:auto and DIV Problem
CC BY-SA 2.5
null
2010-12-10T14:23:32.827
2010-12-10T14:30:38.187
null
null
511,039
[ "css", "html", "scroll", "overflow" ]
4,410,408
1
4,410,486
null
8
7,875
In VS2005, using C#, I have a Forms application with a ListView. I can added items to the listview just fine. However, as soon as I try to sort those items into groups, they don't appear. I know that groups don't appear when they're empty, but I've confirmed these groups are empty. Also, I setting listView.ShowGroups = true. If I add items to one of the groups, but not the second, the "Default" group does show up...it's just the groups I've added that don't appear! Here's the code I'm using: ``` this.listView.View = View.Details; this.listView.Columns.Add("Column1"); this.listView.Columns[0].Width = this.listView.Width - 20; this.listView.HeaderStyle = ColumnHeaderStyle.None; this.listView.Groups.Add(new ListViewGroup("A")); this.listView.Groups.Add(new ListViewGroup("D")); foreach(item i in Class.Items) { if (i.Type == Type.A) this.listView.Groups[0].Items.Add(i.Name); else this.listView.Groups[1].Items.Add(i.Name); } this.listView.ShowGroups = true; ``` Does anyone have any ideas as to why my groups don't show up? Here's a screen shot of what I'm seeing: ![alt text](https://i.stack.imgur.com/bNHMD.png)
C# ListView Appears Blank with Groups
CC BY-SA 3.0
0
2010-12-10T15:32:22.883
2020-04-29T15:59:12.783
2014-03-29T13:41:22.487
2,040,375
397,985
[ "c#", ".net", "winforms", "listview" ]
4,410,680
1
4,411,695
null
1
1,705
I have account and wanted to host a git repository so I followed the steps [here](http://wiki.dreamhost.com/Git#Setup_One:_For_the_Impatient) . Here is the what I did: 1 - Installed and following the steps [here](http://dbanck.de/2009/10/08/github-windows-and-tortoisegit-part-1-installing-pulling/) (didnt generate a key) 2 - Using (with username: , host: ) ``` ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub ssh [email protected] "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys" eval `ssh-agent` ssh-add ``` then created my local and remote repositories and ``` git remote add origin ssh://[email protected]/~/p5.git git push origin master ``` then it asks for my and and after I type i got this error: ![alt text](https://i.stack.imgur.com/UniFe.png) I tried assigning private to tortoisegit but no luck. What am I doing wrong?
git error on push : "fatal: The remote end hung up unexpectedly"
CC BY-SA 2.5
null
2010-12-10T15:59:10.603
2010-12-10T17:54:14.070
null
null
263,050
[ "git", "dreamhost" ]
4,410,873
1
4,410,983
null
29
20,692
I'm plotting 5 x 3 plots using subplot command, but there are massive margins around each subplot. How do I control the margin size around them? ``` figure; for c=1:15 subplot(5,3,c); imagesc(reshape(image(:,c), 360,480)); colormap gray; axis image; end ``` ![alt text](https://i.stack.imgur.com/mUmxR.png)
How to control the margin size around subplots?
CC BY-SA 4.0
0
2010-12-10T16:15:15.827
2021-02-01T22:24:18.660
2020-07-03T12:09:11.677
1,536,976
445,762
[ "matlab", "plot", "subplot" ]
4,410,989
1
null
null
2
1,960
I'm looking for good library for iphone to draw charts (pie chart, bar chart). I've tested Core plot, which was recommended by many people, but I think the generated charts look poor. I saw example of good-looking charts in that application: ![enter image description here](https://i.stack.imgur.com/RcP2O.jpg) Anyone knows what library was used there? Or what library can help me achieve similar, nice look?
How can I create better looking charts than those generated by Core Plot?
CC BY-SA 3.0
0
2010-12-10T16:27:27.597
2013-01-10T12:45:21.700
2013-01-10T12:45:21.700
1,313,939
513,773
[ "iphone", "graph", "plot", "charts", "core-plot" ]
4,411,231
1
4,412,980
null
0
886
I have a set of items of size N. The items are sorted by probability. A square matrix m[N][N] of those items, in C style memory organization, would have elements with similar probabilities spread out. For example m[0][100] will be very far from m[100][0] and all others with similar probability. I need to permutate the elements in a simple way so the more likely ones tend to be closer to 0. It doesn't need to be a square matrix, it can be a vector [N*N]. And it doesn't need to be perfect, just good enough that elements with similar probability are somewhat grouped together. I'm looking for a function f(i,j) to give the position on the permutated matrix/vector. If possible with very simple operations (e.g. no squares and division but programatic conditionals are OK) For a more graphical reference, I'm looking for something like this. [From BBC's The Story of Maths on Cantor's argument] ![alt text](https://i.stack.imgur.com/4SXFQ.png) But it doesn't need to be exactly that permutation. Just that the elements walked on the diagonals are mostly grouped nearby. Well, I know this is probably something very simple but it's been many years since school/uni and Wolframalpha isn't helping. Thanks!
Square Matrix Permutation
CC BY-SA 2.5
0
2010-12-10T16:49:20.357
2010-12-13T05:21:27.850
2020-06-20T09:12:55.060
-1
169,437
[ "c", "algorithm", "matrix" ]
4,411,640
1
4,413,149
null
1
3,093
I have a .plist file that looks like this: ![alt text](https://i.stack.imgur.com/Hr3nU.jpg) and was wondering how I would go about navigating through the multiple dictionaries or if this is even the best way to set up the plist file. Not all elements in the dictionary will have the same years or sizes associated with them so I'm not sure if arrays would be the way to go on it.
Navigating multiple nested dictionaries in plist file
CC BY-SA 2.5
null
2010-12-10T17:34:32.763
2013-03-25T21:25:23.353
null
null
406,076
[ "iphone", "objective-c", "xcode", "plist" ]
4,411,668
1
null
null
4
4,496
in IE I can view the structure of a jQuery object in an expandable treeview. How do I get something similar in Firefox's Firebug? The top dark box shows the object in IE. The bottom shows the same object in Firebug (pretty empty!). ![alt text](https://i.stack.imgur.com/6JhbB.gif)
How to inspect a jQuery object in Firebug like IE's debugger?
CC BY-SA 2.5
0
2010-12-10T17:37:04.700
2011-01-02T19:11:59.447
2010-12-10T19:03:14.880
129,001
129,001
[ "jquery", "firebug" ]
4,412,134
1
4,412,169
null
1
462
This is the Raw response that is generated from the server (using Fiddler2) ``` HTTP/1.1 200 OK Cache-Control: private Content-Type: text/plain; charset=utf-8 Server: Microsoft-IIS/7.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET MicrosoftOfficeWebServer: 5.0_Pub MS-Author-Via: MS-FP/4.0 Date: Fri, 10 Dec 2010 18:19:18 GMT Content-Length: 594 Contents of 24194_XXXXXXXXXX.log as of 10/12/2010 19:19:18 w3wp.exe Information: 0 : START: New Alarm [9] w3wp.exe Information: 0 : 12/10/2010 19:14:56 - <?xml version="1.0"?> <CALLS> <CALL> <CALL_ID>9_1</CALL_ID> <BODY>004|007|015|058|1_ToConfirm|2_ToDecline</BODY> <LANGID>321</LANGID> <TO1>99999999999</TO1> <TO2 /> </CALL> </CALLS> w3wp.exe Information: 0 : END: New Alarm [9] w3wp.exe Information: 0 : 12/10/2010 19:15:30 - <RESULT><CALL_ID>9_1</CALL_ID><CALLRESULT1>0</CALLRESULT1><DTMF1>2</DTMF1><CALLRESULT2></CALLRESULT2><DTMF2></DTMF2></RESULT> ``` In my asp.net `IHttpHandler` I have set ``` context.Response.ContentType = "text/plain"; ``` Which it is clearly returning. In IE8 I get to see this: ![IE8 trying to be clever...](https://i.stack.imgur.com/G1GjH.png) When I try the I get this (Notice the ): ![alt text](https://i.stack.imgur.com/iEGx0.png)
Why is Internet Explorer (8) thinking this is XML
CC BY-SA 2.5
null
2010-12-10T18:38:04.950
2010-12-10T18:43:51.603
null
null
45,045
[ "xml", "internet-explorer-8", "ihttphandler", "response.contenttype" ]
4,412,680
1
null
null
1
704
[http://api.jquery.com/animate/](http://api.jquery.com/animate/) On this page, they give a demo where they have a gray div move across the screen with the click of a button. Notice that if you click the right button enough times and the DIV block reaches the end of the container it creates horizontal and vertical scrollbars. I downloaded and modified the code to get rid of the overflow property and what I have so far works BEAUTIFULLY in desktop browsers. However, Safari on the iPhone handles things a little bit differently. For some reason, Safari completely ignores the overflow property and instead expands the browser window to show you where the block moved to. I don't want you to be able to see the block. I want it hidden until you hit button again. Anyone know what the heck is going on? Here is a pic of the issue: ![alt text](https://i.stack.imgur.com/xkfCx.jpg) Here is my code: ``` div { position:absolute; background-color:#abc; width:100%; height:100%; margin:0px; max-width:100%; } body { margin:0px; padding:0px; } * { overflow:hidden; clip:rect(auto, auto, auto, auto); } </style> <script src="http://code.jquery.com/jquery-1.4.4.js"></script> </head> <body> <button id="left">&laquo;</button> <button id="right">&raquo;</button> <div class="block"></div> <script> $("#right").click(function(){ $(".block").animate({"left": "+=110%"}, "medium"); }); $("#left").click(function(){ $(".block").animate({"left": "-=110%"}, "medium"); }); </script> ``` Even though I have moved the DIV block off the screen and I have overflow:hidden as a global style, the iPhone will make room for it in the browser window to show you where the DIV has moved to. ANNOYING! Thank you in advance!
jQuery Issue Using .animate Command
CC BY-SA 2.5
null
2010-12-10T19:47:22.110
2012-08-17T15:35:45.723
null
null
511,039
[ "iphone", "jquery", "html", "scroll", "jquery-animate" ]
4,412,764
1
4,412,882
null
0
58
I have XML files stored in a folder. I would create a table with 5 columns: Process No.: file name; Name of patient: I will get the xml file there is information; Date of creation: just see the file date; Status: Full yes or no, this information is in the file; Open: a button that opens the file of the line where is the button. This part I managed more or less solved. My main difficulty is that I want to appear only 10 files at a time. I need navigation button to go to the next and previous files. And at the end of each column, I have a field that allows me to search for that column. Here is a mockup that I created: ![alt text](https://i.stack.imgur.com/eepNl.jpg) I work in Java with NetBeans. Can anyone give me a tips?
Table listing of files with search
CC BY-SA 3.0
null
2010-12-10T19:57:23.810
2017-05-12T22:19:03.620
2017-05-12T22:19:03.620
4,370,109
452,011
[ "java" ]
4,412,902
1
4,413,027
null
7
12,903
The background color of the selected item in an uneditable JComboBox is a sort of blue: ![alt text](https://i.stack.imgur.com/bNDlP.jpg) Is there any way to make this a different color, such as white, for example?
Background color of the selected item in an uneditable JComboBox
CC BY-SA 2.5
0
2010-12-10T20:14:06.603
2021-10-17T03:55:42.210
null
null
7,648
[ "java", "swing", "jcombobox" ]
4,413,111
1
4,416,052
null
0
939
i designed an export to excel page that uses the following code ![alt text](https://i.stack.imgur.com/SwXos.jpg) the data is displayed in grid view and the date format is displayed as M/d/yyyy so i added the culture en-GB to page directive to display the date as d/M/yyyy ![alt text](https://i.stack.imgur.com/dGJzT.jpg) the date now displays correctly d/M/yyyy, and the utf-8 also display correctly in gridview. however once i export to excel the utf-8 appears scrambled when ever i remove the culture from page directives, names display correctly, however i face again the M/d/yyyy issue. My question is: is there a way to display date as d/M/yyyy and at the same time reading correct utf-8 any ideas will be appreciated
ASP.Net UTF-8 dont display correctly after changing culture in page directive
CC BY-SA 2.5
0
2010-12-10T20:40:35.257
2011-01-23T23:20:59.017
2011-01-23T23:20:59.017
531,491
531,491
[ "asp.net", "culture", "arabic", "utf" ]
4,413,264
1
4,413,314
null
0
245
I've cleared a row and then added new cells using jQuery. This works fine in Firefox, but the columns don't align correctly in google Chrome. I've included a picture that uses Google Chrome's debugger to demonstrate what I'm talking about: ![alt text](https://i.stack.imgur.com/5uSU8.gif) And this is the code: ``` // clear old contents row.empty(); row.inputs={}; // write new cells for( var i=0; i<this.fields.length; i++){ var field = this.fields[i]; var newCell = $('<td></td>'); row.append(newCell); var newInput = $('<input></input>'); newCell.append(newInput); row.inputs[field.name] = newInput; newInput.val(row.representedObject[field.name]); } ```
Chrome, table columns don't align after editing row with jQuery
CC BY-SA 3.0
null
2010-12-10T20:59:45.983
2017-05-16T19:01:36.907
2017-05-16T19:01:36.907
4,370,109
84,131
[ "jquery", "google-chrome", "html-table" ]
4,413,480
1
null
null
2
724
I'm having a problem with Pango rendering under a rotated matrix. I'm attempting to draw a label (see code below) which happens inside of an animating Cairo matrix rotation. As the label rotates, the text jitters, seeming to grow and shrink in weight, becoming thickest at diagonal angles, and thinnest at orthogonal angles. See this comparison: ![http://www5.picturepush.com/photo/a/4666818/640/Anonymous/pango-rotation.jpg](https://i.stack.imgur.com/iACJs.jpg) I'd like the rotated text to generate as if it were just rotating shape paths, and not trying to change the look of the text based on the angle. Any ideas of how I could do this? Thanks, Sean ``` //Draw text with Pango PangoLayout *layout; PangoFontDescription *desc; // pCr is the cairomm context ptr. // pCr->cobj() is the underlying C Cairo context ptr. pCr->set_source_rgb(0.0, 0.0, 1.0); layout = pango_cairo_create_layout(pCr->cobj()); // text is the label string pango_layout_set_text(layout, text.c_str(), -1); desc = pango_font_description_from_string("Sans Bold 12"); pango_layout_set_font_description(layout, desc); pango_cairo_layout_path(pCr->cobj(), layout); pCr->fill(); pango_font_description_free(desc); g_object_unref(layout); ```
Why do fonts in Pango change weight when text is rotated in Cairo?
CC BY-SA 2.5
0
2010-12-10T21:28:52.543
2011-08-16T19:08:09.643
null
null
345,651
[ "animation", "cairo", "pango" ]
4,414,204
1
4,414,226
null
1
482
See the pic: ![alt text](https://i.stack.imgur.com/2pJ2x.gif) I know gradients, but in this pic, the gradient border is irregular, just like pouring water.
How to draw "pouring" effect in gdi+?
CC BY-SA 3.0
0
2010-12-10T23:29:09.360
2013-04-02T18:07:18.937
2013-04-02T18:07:18.937
787,856
84,325
[ "c++", "windows", "graphics", "gdi+" ]
4,414,231
1
4,414,376
null
2
1,205
I'm running the MVC3 RC2 with Razor in my VB.NET application. I can't for the life of me figure out why I'm getting highlight errors in my markup. Here are a couple of screenshots. ![debug 1](https://i.stack.imgur.com/BChm8.png) ![debug 2](https://i.stack.imgur.com/D4Jvr.png) ![debug 3](https://i.stack.imgur.com/wLSQK.png)
Why am I getting ASP.NET MVC3 Razor Syntax Errors
CC BY-SA 2.5
null
2010-12-10T23:37:11.623
2010-12-11T00:13:55.807
2010-12-11T00:13:55.807
358,970
124,069
[ "asp.net-mvc-3", "razor" ]
4,414,510
1
4,414,615
null
3
3,419
I have a website that has a few buttons on the home page: [http://www.bniolsztyn.pl](http://www.bniolsztyn.pl) (in Polish, sorry). There are a couple blue buttons with the following markup: ``` <div class='more-link'> <a href='#'>Read more...</a> </div> ``` Their styling is: ``` div.more-link a { padding: 8px 20px; color: #d0d0d0; } div.more-link { width: 100%; height: 12px; padding: 6px 0; margin: 4px 0; text-align: center; background: url(/sites/all/themes/bni/img/button.png) center repeat-x; background-color: #1a3754; background: -moz-linear-gradient(top,#5190cf 0%,#27527e 48%,#1a3754 52%,#234a71 100%); background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#5190cf),color-stop(48%,#27527e),color-stop(52%,#1a3754),color-stop(100%,#234a71)); background: linear-gradient(top,#5190cf 0%,#27527e 48%,#1a3754 52%,#234a71 100%); border: 1px solid #5190cf; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 0 0 1px #244e76, 0 3px 3px rgba(0,0,0,.5); -moz-box-shadow: 0 0 0 1px #244e76, 0 3px 3px rgba(0,0,0,.5); box-shadow: 0 0 0 1px #244e76, 0 3px 3px rgba(0,0,0,.5); } ``` The inner `<a>` tag has a fixed 20px padding on both sides: ![alt text](https://i.stack.imgur.com/GAtuV.png) Using jQuery, I make it occupy the entire parent div: ![alt text](https://i.stack.imgur.com/WxDMY.png) The jQuery code is as follows: ``` $(document).ready(function(){ $('div.more-link a').each(function(){ var container = $(this).parent().width(); var link = $(this).width(); var pad = Math.floor((container - link) / 2); $(this).css({ paddingLeft: pad + 'px', paddingRight: pad + 'px' }); }); }); ``` Now, everything works fine in Firefox, Opera and Internet Explorer. However, Chrome seems to react to the jQuery code in a peculiar way: it reduces the width of the `<a>` tags and, as a consequence, displacing the button text to the right: ![alt text](https://i.stack.imgur.com/9iXtB.png) At first, I thought it was a `box-sizing` issue, but it doesn't seem to be so. Disabling the inline padding added by jQuery brings the element's width back to normal (both left and right padding values must be set in order to see the quirk). I'm using Chrome 8.0.552.215 and jQuery 1.4.4. Is this a known problem with Chrome or is it a "What a Terrible Failure" on my side? Is there anything wrong with the code? Can you reproduce the error?
Padding set by jQuery changes an element's width
CC BY-SA 2.5
0
2010-12-11T00:40:42.863
2010-12-11T01:09:41.397
null
null
244,727
[ "jquery", "html", "css", "google-chrome" ]
4,414,722
1
4,414,846
null
0
276
I always used the standard emulator when testing and thought it was about time to see what it looked like in a higher res/density setting. I ran my application using WVGA854 which has a density of 240 (rather than the 160 I usually used). The result is my application sitting as its old size in the center of the screen. I don't specifically hardcode the application size anywhere that would produce this (except for background images, but there are other things like x,y positions that are still limited by the old size). What gives? I move over the high res images into the correct folders but it still appears to be forcing my app to a smaller size? The background below is set to 854 width in the HDPI (and MDPI folder) but it is still cutting it off? Using a surfaceView to draw the bitmaps. ![alt text](https://i.stack.imgur.com/Z3Xqj.png)
Android large-sized emulator produces regular size application in center of screen
CC BY-SA 2.5
null
2010-12-11T01:39:47.803
2010-12-11T02:18:13.167
null
null
437,414
[ "android", "graphics", "emulation", "resolution" ]
4,415,013
1
null
null
1
493
I need a simple string filter for a drop-down menu that highlights matched text. Here's an example of such a module in use in Gmail's UI: ![Gmail screenshot](https://i.stack.imgur.com/Vp9lo.png) I'm assuming there's a plugin for something like this, though I'm also thinking it could be simple enough to roll my own. Any ideas?
Simple Gmail-like solution for jQuery string filter which highlights matched text
CC BY-SA 2.5
null
2010-12-11T03:25:07.903
2010-12-11T08:22:47.053
null
null
373,496
[ "jquery", "filter", "drop-down-menu" ]
4,415,131
1
4,415,282
null
1
736
On clicking on the Populate Values button the div below the button should populate the values of the selected radio buttons of the preferred and home locations respectively I want to do it unobtrusively without inline JavaScript ![alt text](https://i.stack.imgur.com/WaWZz.jpg) ``` <div id="form_block"> <div class="home-location"> <ul> <li>Home Location</li> <li> <input type="radio" name="home-location" value="india" class="radio" id="home-india" /><label for="home-india">India</label></li> <li> <input type="radio" name="home-location" value="usa" class="radio" id="home-usa" /><label for="home-usa">USA</label></li> </ul> </div> <div class="prefer-location"> <ul> <li>Preferred Location</li> <li> <input type="radio" name="home-preferred" value="india" class="radio" id="preferred-india" /><label for="preferred-india">India</label></li> <li> <input type="radio" name="home-preferred" value="usa" class="radio" id="preferred-usa" /><label for="preferred-usa">USA</label></li> </ul> </div> <div class="result"> My Home Location is: <span class="home-location-result"></span>and my preferred location is: <span class="home-location-result"></span> </div> <input type="submit" value="Populate Values" id="ss" class="submit" /> ```
How to show selected value of type="radio" on populate?
CC BY-SA 2.5
null
2010-12-11T03:59:46.763
2010-12-11T14:31:13.823
2010-12-11T04:10:27.777
368,035
368,035
[ "javascript", "jquery", "xhtml" ]
4,415,365
1
4,416,958
null
3
1,378
## Intro How to write public static or , in Java 6, so that it would at least cover common functionality implemented in other programming languages? If you want to answer the question, then you can just ignore following. --- ## About Time after time I miss functionality, that other languages have. I happen to have different coding style for about any language I write and I'm not willing to change that habit. So, if I want to reuse an algorithm, that I have written in a different language, then I have to make annoying little hacks or workarounds, to cover missing functionality. I'd like to find permanent and efficient fix for `range()`. For me - `range()` method returns range of input, possibly in a lazy manner and it has default values. At any point it has a start, a condition of ending and a way to get the next element. It should work perfectly in loop as well as outside it. ## Notes I would really prefer not to use a any external library, except Google Guava or equivalent. By equivalent I mean code that is properly tested, works excellently with JDK and is not considered deprecated. ![alt text](https://i.stack.imgur.com/BpdxF.jpg) It might be unclear, so: - `How to write`- `loop code`- Aside from integer input, that would be the most used feature, I would really like it to work well with type instances of classes like BigInteger and Joda DateTime. ## Ideas - `for-each`- - As a method, `range()` header could look like: ``` /**TODO: Think about why / how to add step, limit, offset and cycle detection. */ public static <T extends Comparable<T>> Iterable<T> // range(T from, Predicate<T> to, Function<T, T> fNext) // throws NullPointerException, IllegalArgumentException { ``` As a personal preference, I have written `Range` as Builder pattern implementation. ## Edit Range implementations [Scala](http://www.scala-lang.org/api/2.7.7/scala/Range.html), [Python 3](http://docs.python.org/py3k/library/functions.html?highlight=range#range), [Groovy](http://groovy.codehaus.org/api/groovy/lang/Range.html), [.Net (with linq) [c#, f#, vb and c++]](http://msdn.microsoft.com/en-us/library/system.linq.enumerable.range.aspx), [ruby](http://ruby-doc.org/core/classes/Range.html), [PHP](http://php.net/manual/en/function.range.php) ... And all of them differ. I might as well add an example of from what I want to do better ( [simple sample case](http://pastebin.com/wPmMbU1F) ). ``` public static <T extends Comparable<T>> Iterable<T> // range(T from, Predicate<T> to, Function<T, T> fNext) // throws NullPointerException { Preconditions.checkNotNull(from); Preconditions.checkNotNull(to); Preconditions.checkNotNull(fNext); T current = from; ArrayList<T> result = Lists.newArrayList(); if (to.apply(current)) result.add(current); while (to.apply(current = Preconditions.checkNotNull(fNext.apply(current)))) result.add(current); return result; } ``` or lazy alternative ``` //eats first element public static <T extends Comparable<T>> Iterator<T> // range2(final T from, final Predicate<T> to, final Function<T, T> fNext) throws NullPointerException, UnsupportedOperationException { Preconditions.checkNotNull(from); Preconditions.checkNotNull(to); Preconditions.checkNotNull(fNext); return new Iterator<T>() { T current = from; @Override public boolean hasNext() {return to.apply(current);} @Override public T next() {return current = Preconditions.checkNotNull(fNext.apply(current));} @Override public void remove() {throw new UnsupportedOperationException();} }; } ```
How to implement `range()`
CC BY-SA 2.5
0
2010-12-11T05:30:34.473
2010-12-12T01:02:32.073
2020-06-20T09:12:55.060
-1
97,754
[ "java", "language-features", "range" ]
4,415,440
1
4,417,952
null
0
857
I'm just starting to go through tutorials for writing Android apps. My first app is hopefully going to be very simple, but I am having a little trouble with the next step. I have my main GUI working, which is a simple `LinearLayout` with several Buttons arranged vertically. When I click on the Connect button, I want a PopupWindow to appear, with the following information: ``` TextView: "Enter IP Address" EditText: <ip address should get entered here> Button: "OK" --> connects to a PC listening for requests ``` The problem is, when the PopupWindow is created, I can barely make out any of the text in the TextView, but it's definitely there. More strangely, I can't see the EditText or the Button. It's almost as if the PopupWindow is fading into view, but gets frozen partway. I used the code from [this answer on SO](https://stackoverflow.com/questions/1967863/is-there-a-simple-example-of-the-popupwindow-class-using-android-v2-0) for getting the PopupWindow to (kind of) work. Once the PopupWindow (kind of) displays, my app is frozen because it's obscuring the main GUI at that point. I have also added calls to showAsDropDown() and dismiss(), and when I do this the PopupWindow definitely disappears because I regain responsiveness in my main GUI. Can anyone explain what's going on here? Here's what I am talking about regarding the barely-visible TextView: ![alt text](https://i.stack.imgur.com/GRiNp.png)
Having trouble with PopupWindow
CC BY-SA 3.0
null
2010-12-11T05:57:51.550
2012-05-22T08:05:10.140
2017-05-23T12:01:09.963
-1
214,071
[ "android", "popupwindow", "android-2.2-froyo" ]
4,415,765
1
null
null
2
2,888
How do I associate/"bind" an resx file to a class file in Visual Studio? For example, when a new windows form is created, an resx file is automatically associated with it. ![alt text](https://i.stack.imgur.com/shRDl.jpg) I am asking this as the following code doesn't open the right resource file for another .cs file I have: ``` ComponentResourceManager manager = new ComponentResourceManager(typeof(MyClass)); ``` This code works fine for frmLogin from above however. The MSDN documentation for the constructor: > Creates a ComponentResourceManager that looks up resources in satellite assemblies based on information from the specified Type.
How to associate a Resx file to a class in Visual Studio 2010
CC BY-SA 2.5
0
2010-12-11T07:45:53.150
2016-10-31T12:26:36.693
2010-12-11T10:11:46.960
366,904
481,750
[ "visual-studio", "resx" ]
4,415,778
1
4,415,985
null
0
959
I created an application using Imagemagick library with Qt on Mac. Now that I want to deploy the application for windows: - - - And when I go run the application I'm getting errors that I think they are related to mingw32. here are the build issues: ![alt text](https://i.stack.imgur.com/VJdx7.png) and here is the compile output: ![alt text](https://i.stack.imgur.com/poLz8.png) Can someone Identify the error ? What do I have to do to deploy the application for windows? I also tried to use a Mingw32 version of my library but again, It didnt work: ![alt text](https://i.stack.imgur.com/3XMwG.png) When I put -lmagick after the lib it says file lmagick cannot ne found and when I try to build unticking the shadow build checkbox in the build settings, it give me the errors in the first screenshoot. Thank you
Imagemagick Linking to QT and mingw32-make: *** [debug] Error 2
CC BY-SA 2.5
null
2010-12-11T07:50:14.717
2010-12-11T17:48:50.363
2010-12-11T17:48:50.363
387,221
387,221
[ "qt", "compiler-construction", "qt4", "imagemagick" ]
4,416,103
1
null
null
1
171
In Ubuntu Software Center I can see a background image and some icons which really render it beautiful. I want to do the same with my GTK applications so would you please tell me how did they do that ? ![alt text](https://i.stack.imgur.com/ARG8o.png)
GTK theming as in Ubuntu Software Center
CC BY-SA 2.5
null
2010-12-11T09:45:10.573
2010-12-11T11:58:54.100
null
null
531,445
[ "gtk" ]
4,416,805
1
4,417,202
null
1
9,668
In the following picture, I have mocked up a CSS active menu styling I would like to find examples of, and hopefully replicate. ![Triangle active menu](https://i.stack.imgur.com/WBCFt.png) You will notice there is a triangle highlighting the active menu, and it can appear bold too. Question 1. What is this "active menu triangle style" actually called? So I can find CSS examples of it. Question 2. Where can I find examples of this?
What is this CSS active menu style with triangle called?
CC BY-SA 3.0
0
2010-12-11T12:57:34.510
2015-11-24T03:13:40.840
2015-11-24T03:13:40.840
2,680,216
315,635
[ "css", "geometry" ]
4,416,934
1
4,417,214
null
2
41,431
I have a picturebox with a png in it. Yet even when I set the BackColor to Transparent, it is not transparent. Any ideas what might be wrong? :) ![alt text](https://i.stack.imgur.com/OTW4s.jpg) Thanks!
C#, how to make a picture background transparent?
CC BY-SA 2.5
null
2010-12-11T13:29:33.463
2014-05-23T06:17:37.270
null
null
524,251
[ "c#" ]
4,417,068
1
null
null
8
663
I am an architecture student trying to solve a spatial problem with C# in Grasshopper for Rhino. The space I am trying to create is an exhibition space in an airport. The space will be made up of elements of similar length. The idea is to connect them with a hinge and thereby allow them to create spaces of different layout and size according to how many elements are used. ![illustration](https://i.stack.imgur.com/frNOI.jpg) As you can see from the illustration I would like the space to end with an opening an element length away from the starting point. My first attempt has been to create equilateral triangles depending on the number of segments (walls) needed. In short, from the starting point, triangles are created, and then the sides of the triangle that form the outer border are added to a list of points. This point list is returned to the Grasshopper application, which draws lines between the points. A little point is that I made the creation of the next triangle randomly either from the side AC or BC from the last triangle. Here is an example of the spaces created (for 12 - 8 - 14 - 20 elements): ![various generated shapes](https://i.stack.imgur.com/Nq7JQ.jpg) Here is the source code that creates these point lists: ``` private void RunScript(double radius, int walls, ref object A) { // List<Point3d> pointList = new List<Point3d>(); List<Point3d> lastList = new List<Point3d>(); bool alternate = true; bool swapped = false; Random turn = new Random(); // set up the first part of the triangle Point3d point1 = new Point3d(0, 0, 0); Point3d point2 = new Point3d(0, radius, 0); pointList.Add(point1); pointList.Add(point2); Point3d calcPoint; for(int i = 0; i < walls - 1; i++) // walls - 1, is because I need one less triangle to get to the amount of walls { // use the method to create two similar circles and return the intersection point // in order to create an equilateral triangle calcPoint = FindCircleIntersections(point1.X, point1.Y, point2.X, point2.Y, radius, alternate); // random generator: will decide if the new triangle should be created from side BC or AC bool rotate = turn.Next(2) != 0; Print("\n" + rotate); // set the 2nd and 3rd point as 1st and 2nd - depending on random generator. if(rotate) { point1 = point2; if(swapped == true) swapped = false; else swapped = true; } // if the direction is swapped, the next point created will not be a part of the outer border if(swapped) lastList.Add(calcPoint); else pointList.Add(calcPoint); point2 = calcPoint; // swap direction of intersection if(rotate) { if(alternate) alternate = false; else alternate = true; } } lastList.Reverse(); foreach (Point3d value in lastList) { pointList.Add(value); } A = pointList; } // Find the points where the two circles intersect. private Point3d FindCircleIntersections( double cx0, double cy0, double cx1, double cy1, double rad, bool alternate) { // Find the distance between the centers. double dx = cx0 - cx1; double dy = cy0 - cy1; double dist = Math.Sqrt(dx * dx + dy * dy); // Find a and h. double a = (rad * rad - rad * rad + dist * dist) / (2 * dist); double h = Math.Sqrt(rad * rad - a * a); // Find P2. double cx2 = cx0 + a * (cx1 - cx0) / dist; double cy2 = cy0 + a * (cy1 - cy0) / dist; // Get the points P3. if(alternate) return new Point3d((double) (cx2 + h * (cy1 - cy0) / dist), (double) (cy2 - h * (cx1 - cx0) / dist), 0); else return new Point3d((double) (cx2 - h * (cy1 - cy0) / dist), (double) (cy2 + h * (cx1 - cx0) / dist), 0); } ``` What I would like to do, is to vary the creation of these shapes, so that they are not only corridors, but resemble my initial sketches. I would like an algorithm to take an input of segments (number and length) and then propose different space layouts which are possible to create with this number of segments. I guess because of tesselation the space would have to be created with triangles, squares or hexagons? Do you think I should look into this "maximum area" algorithm : [Covering an arbitrary area with circles of equal radius here on stackoverflow](https://stackoverflow.com/questions/1404944/covering-an-arbitrary-area-with-circles-of-equal-radius)? I would greatly appreciate any help on this algorithm. Cheers, Eirik
algorithm for a random space bordered by elements of equal length
CC BY-SA 2.5
0
2010-12-11T13:56:51.343
2010-12-12T03:27:04.287
2017-05-23T12:01:17.083
-1
538,907
[ "c#", "algorithm", "geometry" ]
4,417,207
1
4,417,697
null
1
302
I am working on a custom plugin in wordpress. I have a weird issue with one sql. SQL: ``` SELECT SQL_CALC_FOUND_ROWS wp_posts. * FROM wp_posts INNER JOIN wp_term_relationships ON ( wp_posts.ID = wp_term_relationships.object_id ) INNER JOIN wp_term_taxonomy ON ( wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id ) WHERE 1 =1 AND wp_term_taxonomy.taxonomy = 'category' AND wp_term_taxonomy.term_id IN ('23') AND ( wp_posts.post_author =1 ) AND wp_posts.post_type = 'post' AND ( wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private' ) GROUP BY wp_posts.ID ORDER BY `wp_posts`.`as_stats_rating` DESC LIMIT 0 , 30 ``` --- Its returning the correct data but its not sorting results according to as_stats_rating. I am stumped. Does anyone know what I am doing wrong? ## Edit 1 : Update Here is the structure of wp_posts: ![alt text](https://i.stack.imgur.com/EZGP7.jpg) --- Sample result: ``` ID as_stats_rating 1221 8 1222 10 ``` All fields in sample results are : ID post_author post_date post_date_gmt post_content post_title post_excerpt post_status comment_status ping_status post_password post_name to_ping pinged post_modified post_modified_gmt post_content_filtered post_parent guid menu_order post_type post_mime_type comment_count as_stats_numviews as_stats_numvotes as_stats_votestotal as_stats_rating --- By the way, its not only about 'order by wp_posts.as_stats_rating', 'order by wp_posts.as_stats_numviews' have the same issue. (just to clear up, if you are wondering about as_stats_rating having varchar type)
Weird issue with orber by, inner join in wordpress query
CC BY-SA 2.5
null
2010-12-11T14:34:24.700
2010-12-11T16:44:07.953
2010-12-11T16:44:07.953
144,816
144,816
[ "mysql", "wordpress" ]
4,418,074
1
4,418,230
null
1
2,268
I have a requirement in my iPhone app which is something similar to . I want to give user a space on my view where he can write any character by touch and dragging his finger on the screen and based on what matches with his input the textbox should show the English alphabet. Above is an example of what I want: ![alt text](https://i.stack.imgur.com/IfK4d.png) How should I implement this feature? I am a beginner in this.
How to implement handwriting recognition feature in an iPhone app?
CC BY-SA 4.0
0
2010-12-11T17:49:12.147
2018-09-09T09:48:36.500
2018-09-09T09:48:36.500
472,495
463,857
[ "iphone", "objective-c", "cocoa-touch", "ios4", "handwriting" ]