Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
sequence
2,775,070
1
2,775,133
null
21
4,098
In the Visual Studio Debug property page (for a .NET 4 project) I want to be able to specify macros, e.g. $(OutDir), like I can in the Build Events. But it doesn't work, the macros aren't replaced. ![Doesn't Work](https://imgur.com/C3xhi.png) Is it just not supported? Is there a work around?
How do I use macros for the command line arguments for debugging a .NET project?
CC BY-SA 2.5
0
2010-05-05T16:31:05.383
2010-05-05T16:41:18.940
null
null
233
[ ".net", "visual-studio", "command-line", "macros" ]
2,777,053
1
null
null
16
7,687
Here's my code: ``` #data sites <- structure(list(site = c(928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L, 928L), date = c(13493L, 13534L, 13566L, 13611L, 13723L, 13752L, 13804L, 13837L, 13927L, 14028L, 14082L, 14122L, 14150L, 14182L, 14199L, 16198L, 16279L, 16607L, 16945L, 17545L, 17650L, 17743L, 17868L, 17941L, 18017L, 18092L), y = c(7L, 7L, 17L, 18L, 17L, 17L, 10L, 3L, 17L, 24L, 11L, 5L, 5L, 3L, 5L, 14L, 2L, 9L, 9L, 4L, 7L, 6L, 1L, 0L, 5L, 0L)), .Names = c("site", "date", "y"), class = "data.frame", row.names = c(NA, -26L)) #convert to date x<-as.Date(sites$date, origin="1960-01-01") #plot smooth, line goes below zero! qplot(data=sites, x, y, main="Site 349") (p <- qplot(data = sites, x, y, xlab = "", ylab = "")) (p1 <- p + geom_smooth(method = "loess",span=0.5, size = 1.5)) ``` Some of the `LOESS` lines and confidence intervals go below zero, I would like to restrict the graphics to 0 and positive numbers (because negative do not make sense). ![enter image description here](https://i.stack.imgur.com/CeiDZ.jpg) How can I do this?
In ggplot restrict y to be >0 in LOESS
CC BY-SA 3.0
0
2010-05-05T21:51:12.030
2017-11-20T04:48:55.590
2014-08-12T09:28:00.947
680,068
333,902
[ "r", "plot", "ggplot2", "axis" ]
2,777,179
1
2,781,944
null
5
6,744
This question resulted from the question [here](https://stackoverflow.com/questions/2772972/latex-curly-braces-outside-math) I want to produce a curly brace which spans some lines of text. The problem is that I have to align the x coordinate manually, which is not a clean solution. Currently I use ``` \begin{frame}{Example} \begin{itemize} \item The long Issue 1 \tikz[remember picture] \node[coordinate,yshift=0.7em] (n1) {}; \\ spanning 2 lines \item Issue 2 \tikz[remember picture] \node[coordinate, xshift=1.597cm] (n2) {}; \item Issue 3 \end{itemize} \visible<2->{ \begin{tikzpicture}[overlay,remember picture] \draw[thick,decorate,decoration={brace,amplitude=5pt}] (n1) -- (n2) node[midway, right=4pt] {One and two are cool}; \end{tikzpicture} } % end visible \end{frame} ``` which produces the desired result: ![tikz example1](https://imgur.com/aD4VR.png) The unsatisfying thing is, that I had to figure out the xshift value of 1.597cm by trial and error (more or less) Without xshift argument the result is: ![tikz example 1](https://imgur.com/7jGGZ.png) I guess there is an elegant way to avoid the explicit xshift value. The best way would it imho be to calculate the maximum x value of two nodes and use this, (as already suggested by [Geoff](https://stackoverflow.com/users/310165/geoff)) But it would already be very handy to be able to explicitly define the absolute xvalues of both nodes while keeping their current y values. This would avoid the fiddly procedure of adapting the third post decimal position to ensure that the brace looks vertical.
tikz: set appropriate x value for a node
CC BY-SA 2.5
0
2010-05-05T22:21:10.607
2017-02-06T03:18:48.107
2017-05-23T12:01:39.100
-1
333,403
[ "latex", "beamer", "tikz" ]
2,777,318
1
2,777,804
null
0
830
I currently have an application which uses a regular ListView with groups to show a bunch of modules. I would like to use a Category view. Category view is the new view introduced in Windows Vista for the Control Panel: ![Windows 7 Control Panel](https://imgur.com/FGu5l.png) Is there a third party control or a way (via API) to create a ListView which mimics the behavior of the Windows 7 Control Panel? - - - - Seems like Windows is using a TreeView (SysTreeView32) control internally for this.
Creating a ListView/TreeView using Category (Control Panel-Like) View
CC BY-SA 2.5
null
2010-05-05T22:53:34.953
2010-05-06T01:11:48.850
2010-05-05T23:31:31.213
26,210
26,210
[ ".net", "listview", "treeview", "managed", "categories" ]
2,777,798
1
2,777,820
null
0
696
I have to edit Company Name profile property in SSP. It is not allowing me edit or delete property. I need to change length value from 250 to 50. How can I do that? Can we set through code? ![alt text](https://i700.photobucket.com/albums/ww5/vsrikanth/editprop-1.jpg) ![alt text](https://i700.photobucket.com/albums/ww5/vsrikanth/editprop1.jpg)
Edit existing Profile Properties in sharepoint?
CC BY-SA 2.5
null
2010-05-06T01:11:12.670
2011-12-06T09:02:27.987
2017-02-08T14:25:15.813
-1
158,008
[ "sharepoint", "ssp" ]
2,778,109
1
2,778,254
null
45
39,039
I noticed that adding a `MenuStrip` (from the Toolbox) to my form design doesn't yield a menu bar like the one seen in many native Windows applications. Instead I get a menu bar like Visual Studio's own. None of the style settings for `MenuStrip` appear to mimic the much more common native menu bar. Is there a way to add a menu bar to my Windows Forms application that looks the same as the one you see in Notepad, Task Manager and others? (Preferably with the designer, but I wouldn't mind adding it programmatically either.) Screenshot for illustration: ![](https://i.stack.imgur.com/VE9OX.png)
Standard Windows menu bars in Windows Forms
CC BY-SA 3.0
0
2010-05-06T02:47:00.617
2021-06-09T14:05:22.223
2012-08-19T06:12:27.160
106,224
106,224
[ ".net", "windows", "winforms", "user-interface", "menubar" ]
2,781,827
1
2,788,977
null
1
822
- - - - the problem is that no matter what I do, I run into a permissioning issue - ![alt text](https://content.screencast.com/users/AlphaTrustSupport/folders/Jing/media/29fc1bb6-cfb7-42d0-ac04-f3af640a5cd8/2010-05-06_0909.png) If I use pass-through authentication I get a 401 error. If I use a specific user that's set up on both boxes, I get a 500 error. I've also tried sticking a Web.config file in the "AcctData" directory allowing anonymous access. Nothing is working though. ![alt text](https://content.screencast.com/users/AlphaTrustSupport/folders/Jing/media/cc4cee41-45ea-4bce-ac55-bc3e8dafdbd2/2010-05-06_0923.png)
Trouble with cross network permissions for an image through iis7 in an asp.net virtual directory
CC BY-SA 2.5
null
2010-05-06T14:28:11.063
2010-05-07T13:42:10.460
2017-02-08T14:25:19.223
-1
47,167
[ "asp.net", "iis-7", "permissions" ]
2,781,907
1
2,782,049
null
10
6,291
I want to create this Markov Chain in C#. I need to know if there is any other structure other than adjacency list which can work better in this situation. Also how can I use the existing .Net collection type to implement this. ![enter image description here](https://i.stack.imgur.com/NH9R6.png)
How to generate Markov Chain in C#
CC BY-SA 3.0
0
2010-05-06T14:38:49.910
2015-08-25T09:39:30.750
2015-08-25T09:39:30.750
4,374,739
334,489
[ "c#", "data-structures", "adjacency-list" ]
2,781,939
1
2,782,041
null
32
68,397
I have a which has in .. Now, when I minimize a windows, after a certain limit, the third JPanel tends to disappear. I tried setting minimizing size of JFrame using but no success. The windows can still be minimized. > So, I actually want to make a threshhold, that my window cannot be minimized after a certain limit. How can I do so? Code:- ``` import java.awt.Dimension; import javax.swing.JFrame; public class JFrameExample { public static void main(String[] args) { JFrame frame = new JFrame("Hello World"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setMinimumSize(new Dimension(400, 400)); frame.setVisible(true); } } ``` Also: ``` shadyabhi@shadyabhi-desktop:~/java$ java --showversion java version "1.5.0" gij (GNU libgcj) version 4.4.1 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Usage: gij [OPTION] ... CLASS [ARGS] ... to invoke CLASS.main, or gij -jar [OPTION] ... JARFILE [ARGS] ... to execute a jar file Try `gij --help' for more information. shadyabhi@shadyabhi-desktop:~/java$ ``` Gives me output like ![alt text](https://sites.google.com/site/abhijeet1989/OMG3.png) **UPDATE: ** The same when run though Netbeans IDE gives expected output.. When I run through "java JFrameExample" compiler, I am facing issues.. Now, what that means??
Setting minimum size limit for a window in java swing
CC BY-SA 2.5
0
2010-05-06T14:42:02.697
2012-08-30T10:57:55.787
2017-02-08T14:25:19.563
-1
167,814
[ "java", "user-interface", "swing", "jframe" ]
2,781,987
1
2,793,051
null
15
26,117
I would like to have a customized title bar in my Java Swing desktop application. What is the best way to do that? I can use a "Swing-title bar" by using the following code in the constructor for my JFrame: ``` this.setUndecorated(true); this.getRootPane().setWindowDecorationStyle(JRootPane.FRAME); ``` But how do I customize it? Is there any that I can override or do I have to implement my own title bar from scratch? I want something like Lawson Smart Office: ![Lawson Smart Office](https://www.istartedsomething.com/wp-content/uploads/2008/01/lawson_1l.jpg)
How can I customize the title bar on JFrame?
CC BY-SA 3.0
0
2010-05-06T14:50:10.670
2020-05-19T23:39:32.067
2017-02-08T14:25:19.903
-1
213,269
[ "java", "swing", "customization", "jframe", "titlebar" ]
2,784,387
1
4,043,078
null
1
2,136
I am creating a layout with a `ListView` and at the very top of the list there is this weird black line that I can't seem to figure out how to get rid of! It's part of the `ListView` because it moves up and down as I size the `ListView`. Has anyone ran into this before? ![alt text](https://i18.photobucket.com/albums/b141/CasetB/window.png) I couldn't get DDMS to take a screen capture for some reason so I took a picture of the screen with my G1, so please forgive the quality! As you can see the line is there at the top of the fade out in the list. [alt text http://dl.dropbox.com/u/3618586/2010-05-07%2014.25.50.jpg](http://dl.dropbox.com/u/3618586/2010-05-07%2014.25.50.jpg)
Weird black line on top of list view
CC BY-SA 2.5
0
2010-05-06T20:48:50.377
2011-01-11T21:25:53.503
2017-02-08T14:25:20.623
-1
236,136
[ "android", "listview" ]
2,784,669
1
2,790,293
null
9
859
I'm trying to make a webpage where it basically looks like a word document. There would be multiple boxes that would scroll down and the text would flow and page break from one page to the next. Does anyone have any idea where I would even start? Thanks. Edit: It should be right in the browser, looking similar to this: ![enter image description here](https://i.stack.imgur.com/kqfEI.jpg) (Ignore the columns)
CSS Page Layout w/ Breaks
CC BY-SA 3.0
0
2010-05-06T21:31:06.280
2014-10-23T07:47:43.437
2014-10-23T07:47:43.437
1,575,570
248,423
[ "javascript", "html", "css", "printing" ]
2,784,889
1
3,928,034
null
32
35,518
I'm in the process of developping a Web Application for mobiles. I went with web applications because to me it seems a winning situation having to develop one application that could run also on iPhone / Windows Mobile / Palm etc. I started testing today after a few days of doing concepts, ideas and designs and what I wanted to do was have a menu that sticks at the bottom of the page. Exactly like the menu on the bottom in this iPhone application screenshot : ![enter image description here](https://i.stack.imgur.com/yApHM.jpg) Using CSS, I though it would be really easy to do this. Only using position:fixed; bottom:0; would have done the trick but I have found it doesn't behave the same on mobile browsers I tried to split my page in 2 sections : 1 would be a scrollable div (for the content) and the other one would be the bottom menu. Scrollable divs also do not work on Android. I also tried using frames with no luck either. Does anyone know of any way to re-create a menu that would stick to the bottom of a page for mobile phones?
Android Web App : Position:fixed broken?
CC BY-SA 3.0
0
2010-05-06T22:15:39.420
2021-01-26T19:58:51.540
2013-04-16T14:52:20.490
664,177
null
[ "html", "css", "android", "webkit", "position" ]
2,787,732
1
2,789,197
null
0
3,623
![alt text](https://i759.photobucket.com/albums/xx232/shellom2005/Untitled.jpg)Hi, ive been dealing with this for some time now and need your help. well I have an array $arrayAmenities which contains a combination of the following data based on what is fetched from the database: ``` Air Conditioned Bar Brunch Party Room Tea Room Terrace Valet ``` I would like the application to dynamically check the following set of checkboxes based on the data contained in the array. With my code only one checkbox is checked based on the first data contained in the array. Can you please tell what Im missing? Thanks for answering. code: ``` //get amenities one by one in order to set the checkboxes $arrayAmenities = explode(',', $rest_amenities ); $i=0; while(count($arrayAmenities) > $i) { var_dump($arrayAmenities[$i]); switch($arrayAmenities[$i]) { case 'Air Conditioned': $checkedAir = 'checked=true'; break; case 'Bar': $checkedBar = 'checked=true'; break; case 'Brunch': $checkedBru = 'checked=true'; break; case 'Party Room'; $checkedPar = 'checked=true'; break; } $i+=1; } } ``` checkboxes ``` <table cellpadding="0" cellspacing="0" style="font-size:10px"> <tr> <td style="border-top:1px solid #CCC;border-right:1px solid #CCC;border-left:1px solid #CCC; padding-left:5px ">Air Conditioned <input type="checkbox" name="air_cond" <?php print $checkedAir;?> value="Air Conditioned"></td> <td style="padding-left:10px; border-top:1px solid #CCC;border-right:1px solid #CCC;">Bar <input type="checkbox" name="bar" value="Bar" <?php print $checkedBar;?>></td> <td style="padding-left:10px; border-top:1px solid #CCC;border-right:1px solid #CCC; ">Brunch <input type="checkbox" name="brunch" value="Brunch" <?php print $checkedBru;?>></td> </tr> <tr> <td style="border-top:1px solid #CCC;border-right:1px solid #CCC; border-bottom:1px solid #CCC; border-left:1px solid #CCC; padding-left:5px">Party Room <input <?php print $checkedPar;?> type="checkbox" name="party_room" value="Party Room" ></td> <td style="padding-left:10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Tea Room <input type="checkbox" name="tea_room" value="Tea Room" ></td> <td style="padding-left:10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Terrace <input type="checkbox" name="terrace" value="Terrace"></td> </tr> <tr> <td colspan="3" style="border-bottom:1px solid #CCC; border-left:1px solid #CCC; border-right:1px solid #CCC; padding-left:5px">Valet <input type="checkbox" name="valet" value="Valet" ></td> </tr> </table> ```
Check Checkboxes dynamically
CC BY-SA 2.5
null
2010-05-07T10:09:06.880
2010-05-07T14:15:12.437
2017-02-08T14:25:22.027
-1
207,376
[ "php" ]
2,789,790
1
3,139,522
null
1
731
![Bug](https://dl.dropbox.com/u/1478968/Screenshot%202010.05.07%2018.25.51.png) Anyone had a smiliar bug? The control is placed from Interface Builder and not modified in any way by code. It was working fine until some time ago after a random build the bug appeared. Happens in two places in my app while the same exact kind of setup is fine inside another viewcontroller. In all cases the controls are inside a UINavigationItem. Deleting the control and re adding it didn't change anything. This only appreas on an actual device, never in the simulator.
UISegmentedControl parts collapse to 0 width
CC BY-SA 2.5
null
2010-05-07T15:40:19.717
2010-06-29T09:48:37.570
2017-02-08T14:25:22.377
-1
146,741
[ "iphone", "cocoa-touch", "uisegmentedcontrol" ]
2,791,787
1
null
null
22
2,735
[Tim Sweeney](http://en.wikipedia.org/wiki/Tim_Sweeney_(game_developer)) of Epic MegaGames is the lead developer for Unreal and a [programming language geek](http://lambda-the-ultimate.org/user/97/track). Many years ago posted the following screen shot to VoodooExtreme: ![Tim Sweeney's screenshot](https://i.stack.imgur.com/bc2GU.png) As a C++ programmer and Sweeney fan, I was captivated by this. It shows generic C++ code that implements some kind of scripting language where that language itself seems to be generic in the sense that it can define its own grammar. Mr. Sweeney never explained himself. :-) It's rare to see this level of template programming, but you do see it from time to time when people want to push the compiler to generate great code or because they want to create generic code (for example, [Modern C++ Design](https://rads.stackoverflow.com/amzn/click/com/0201704315)). Tim seems to be using it to create a grammar in Parser.cpp - you can see what look like prioritized binary operators. If that is the case, then why does Test.ae look like it's defining a grammar? Obviously this is a puzzle that needs to be solved. Victory goes to the answer with a working version of this code, or the most plausible explanation, or to Tim Sweeney himself if he posts an answer. :-)
What was Tim Sweeney thinking? (How does this C++ parser work?)
CC BY-SA 3.0
0
2010-05-07T21:24:17.667
2012-04-29T13:43:27.343
2012-04-29T13:43:27.343
995,926
338
[ "c++", "parsing", "templates", "metaprogramming" ]
2,794,573
1
2,794,591
null
2
3,597
I've a Javascript Class and its method. But when i call it toJSON is generating an error. I couldn't figure out why this error is happening. ``` try { if (this.TabloEkId == undefined || this.TabloEkId == "") { throw errEksikVeri; } fAjaxSetup(fBefore, fSuccess, fError, fComplete); $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: ResolveUrl("~/Yonetim/WS/Yonetim.asmx/f_TabloEklerindenSil"), data: "{_tblEkId:" + this.TabloEkId + "}", dataType: "json" }); } catch (err) { f_ErrorViewer(err); } ``` ![Javascript Class](https://content.screencast.com/users/uzay95/folders/Jing/media/f8fc6a4f-b496-44ef-a592-d29f41c7c858/jsClass.png) ![Error](https://content.screencast.com/users/uzay95/folders/Jing/media/241d2521-a08c-4648-991e-78a58c69ab2e/jsClassMethod.png)
toJSON "Object doesn't support this property or method"
CC BY-SA 2.5
0
2010-05-08T15:12:43.137
2015-12-16T19:46:52.973
2017-02-08T14:25:23.050
-1
104,085
[ "javascript", "jquery", "json" ]
2,794,636
1
null
null
4
4,138
I am trying to build a graph that will change resolution depending on how far you are zoomed in. Here is what it looks like when you are complete zoomed out. ![alt text](https://farm5.static.flickr.com/4063/4588752711_c6c36d729b_o.png) So this looks good so when I zoom in I get a higher resolution data and my graph looks like this: ![alt text](https://farm5.static.flickr.com/4014/4588752731_dcd8e51bfe_o.png) The problem is when I zoom out the higher resolution data does not get cleared out of the graph: ![alt text](https://farm5.static.flickr.com/4059/4588752745_242c4b605b_o.png) The tables below the graphs are table display what is in the DataTable. This is what drawing code looks like. ``` var g_graph = new google.visualization.AnnotatedTimeLine(document.getElementById('graph_div_json')); var table = new google.visualization.Table(document.getElementById('table_div_json')); function handleQueryResponse(response){ log("Drawing graph") var data = response.getDataTable() g_graph.draw(data, {allowRedraw:true, thickness:2, fill:50, scaleType:'maximized'}) table.draw(data, {allowRedraw:true}) } ``` I am try to find a way for it to only displaying the data that is in the DataTable. I have tried removing the allowRedraw flag but then it breaks the zooming operation. Any help would be greatly appreciated. Thanks ## See also - [Annotated TimeLine when zoomed-out, Too Many Datapoints.](http://groups.google.com/group/google-visualization-api/browse_thread/thread/50e6c7efc3333508)
Google Visualization Annotated Time Line, removing data points
CC BY-SA 3.0
0
2010-05-08T15:35:54.840
2013-02-04T16:51:43.570
2017-02-08T14:25:24.063
-1
76,890
[ "google-visualization", "annotatedtimeline" ]
2,796,164
1
2,796,175
null
2
551
Below is my javascript code snippet. Its not running as expected, please help me with this. ``` <script type="text/javascript"> function getCurrentLocation() { console.log("inside location"); navigator.geolocation.getCurrentPosition(function(position) { insert_coord(new google.maps.LatLng(position.coords.latitude,position.coords.longitude)); }); } function insert_coord(loc) { var request = new XMLHttpRequest(); request.open("POST","start.php",true); request.onreadystatechange = function() { callback(request); }; request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send("lat=" + encodeURIComponent(loc.lat()) + "&lng=" + encodeURIComponent(loc.lng())); return request; } function callback(req) { console.log("inside callback"); if(req.readyState == 4) if(req.status == 200) { document.getElementById("scratch").innerHTML = "callback success"; //window.setTimeout("getCurrentLocation()",5000); setTimeout(getCurrentLocation,5000); } } getCurrentLocation(); //called on body load </script> ``` What i'm trying to achieve is to send my current location to the php page every 5 seconds or so. i can see few of the coordinates in my database but after sometime it gets weird. Firebug show very weird logs like simultaneous POST's at irregular intervals. Here's the firebug screenshot: ![firebug screenshot](https://i.imgur.com/xfViF.png) IS there a leak in the program. please help. EDIT: The expected outcome in the firebug console should be like this :- > inside location POST .... inside callback/* 5 secs later */inside location POST ... inside callback/* keep repeating */
XMLHttpRequest leak
CC BY-SA 2.5
null
2010-05-09T00:30:30.230
2010-05-09T01:22:04.463
2010-05-09T01:22:04.463
126,562
240,410
[ "javascript", "memory-leaks", "firebug", "xmlhttprequest" ]
2,797,255
1
2,850,787
null
0
1,419
I'd like to set the tick box options within the LAN settings of the Internet Options: ![LAN Settings screenshot](https://jzvb4w.bay.livefilestore.com/y1pFFzFU8lHkXPfYDedlBciYZHuC0Z0xGgA3zAn3SF03uR2nRVbEBcmYM2mblFZM07ZMi3nigjwu-wxa6JzDWkVnTbaBuL-z9ji/Internet%20Options.png) I'd prefer the code in a script or C#, but C/C++ would be fine as well. Please answer with the code/script to at least untick the "Use automatic configuration script" option. THANKS!
How do I set the Internet Options? Specifically the LAN Settings tick boxes
CC BY-SA 2.5
null
2010-05-09T09:53:32.400
2010-05-17T16:33:17.263
2017-02-08T14:25:24.807
-1
39,722
[ "windows", "networking" ]
2,798,922
1
39,856,756
null
14
5,557
Where, in Windows, is this ![Yellow-Blue Windows Security Icon](https://i.stack.imgur.com/lBFti.png) icon stored? I need to use it in a TaskDialog emulation for XP and am having a hard time tracking it down. It's not in shell32.dll, explorer.exe, ieframe.dll or wmploc.dll (as these contain a lot of icons commonly used in Windows). Edit: For clarification, I am emulating a [certain type of dialog](http://msdn.microsoft.com/en-us/library/bb760544%28VS.85%29.aspx) in XP. The icon is (most likely) not present there. So I want to extract it from the library that holds it in Windows 7. I am extending an [existing implementation](http://www.codeproject.com/KB/vista/Vista_TaskDialog_Wrapper.aspx?fid=783605) of this emulation and want to provide a full feature set.
Storage location of yellow-blue shield icon
CC BY-SA 3.0
0
2010-05-09T19:43:39.023
2018-05-07T14:39:37.197
2012-03-04T20:24:57.037
259,953
259,953
[ "windows", "icons", "uac" ]
2,799,609
1
2,799,886
null
3
949
I wrote like this. After submit click loop is not excuting. But I saw value are there, But array lenght is showing '0'. (Please see picture). Why it is not going into loop? and $('#myVisibleRows').val(idsString); becoming 'empty'. ``` $(document).ready(function() { $('tr[@class^=RegText]').hide().children('td'); var list_Visible_Ids = []; var idsString, idsArray; alert($('#myVisibleRows').val()); idsString = $('#myVisibleRows').val(); idsArray = idsString.split(','); $.each(idsArray, function() { if (this != "") { $('#' + this).siblings(('.RegText').toggle(true)); window['list_Visible_Ids'][this] = 1; } }); $('tr.subCategory1') .css("cursor", "pointer") .attr("title", "Click to expand/collapse") .click(function() { //this = $(this); $(this).siblings('.RegText').toggle(); list_Visible_Ids[$(this).attr('id')] = $(this).css('display') != 'none' ? 1 : null; alert(list_Visible_Ids[$(this).attr('id')]) }); $('#form1').submit(function() { idsString = ''; $.each(list_Visible_Ids, function(key, val) { alert(val); if (val) { idsString += (idsString != '' ? ',' : '') + key; } }); $('#myVisibleRows').val(idsString); form.submit(); }); }); ``` ![alt text](https://i700.photobucket.com/albums/ww5/vsrikanth/jquery.jpg)
Array length is zero in jQuery
CC BY-SA 2.5
null
2010-05-09T23:42:45.647
2010-05-10T01:41:16.533
2017-02-08T14:25:25.897
-1
158,008
[ "asp.net", "jquery", "vb.net", "arrays" ]
2,799,646
1
2,799,658
null
3
1,862
Here's the deal. I'm just starting with Java programming, I've made a simple application that uses SWT graphic library and I want to deploy it on a Mac (running the latest version of MacOS X). I did all the programming in my Windows 7 machine, so here are my questions: (I saw that it's possible to create .exe files on Windows, instead of using .jar; I want to do the same for the Mac, of course it won't be an .exe) If I export my project in Eclipse and I choose `Runnable JAR File` and then on `Library Handling` I pick `Extract required libraries into generated JAR` or `Package required libraries into generated JAR` Here's the list of libraries that my project appears to be using: ![alt text](https://i.imgur.com/PsdUZ.png)
Deploy Java application on MacOSX (from a Windows system)
CC BY-SA 2.5
0
2010-05-09T23:56:46.337
2010-05-13T12:26:03.317
null
null
4,386
[ "java", "deployment", "swt" ]
2,799,827
1
null
null
2
1,180
In our current ASP.Net Webforms application we have several composite/template server controls that only exist for a common look and feel. For example, we have a panel control that has a title, a place for buttons related to the contents of the panel, and of course the contents. How is this best accomplished in MVC? RenderPartial doesn't get done what I need here. Should I still be using the same controls, but just on a view page? These controls don't really do anything on postback, they are only there for a common look and feel. More Info: We have a control in Webforms that implements ICompositeControl. We have a few properties on this control like Panel (type Panel), Buttons (again type Panel which would hold buttons) and a property Title of type string. Visually it looks like ![alt text](https://i.imgur.com/vEyLm.gif)
How do build a composite or template control in ASP.Net MVC, or the equivelant?
CC BY-SA 2.5
0
2010-05-10T01:08:55.330
2010-05-10T14:42:45.083
2010-05-10T14:42:45.083
13,103
13,103
[ "asp.net", "asp.net-mvc", "asp.net-mvc-2" ]
2,800,045
1
2,800,050
null
3
178
I am toggling row siblings. I wrote .toggle(true) when document ready. see below picture. I think row sibling are not availble before this function calls. ![alt text](https://i700.photobucket.com/albums/ww5/vsrikanth/toggle3.jpg) ``` $(document).ready(function() { $('tr[@class^=RegText]').hide().children('td'); list_Visible_Ids = []; var idsString, idsArray; idsString = $('#myVisibleRows').val(); idsArray = idsString.split(','); $.each(idsArray, function() { if (this != "") { $(this).siblings('.RegText').toggle(true); list_Visible_Ids[this] = 1; } }); ``` ![alt text](https://i700.photobucket.com/albums/ww5/vsrikanth/toggle2.jpg) ![alt text](https://i700.photobucket.com/albums/ww5/vsrikanth/toggle4.jpg)
.toggle(true) throw null in $(document).ready(function())
CC BY-SA 2.5
null
2010-05-10T02:41:33.057
2010-05-10T02:49:46.457
2017-02-08T14:25:26.923
-1
158,008
[ "asp.net", "jquery", "toggle" ]
2,802,395
1
null
null
0
2,369
I have a strange Problem with table formating using IE 7. My table looks like this: ![Correct table rendering](https://imgur.com/R8Uz2.png) In IE, when using border-collapse, the borders don't get displayed correctly. That's why I used this fix: ``` .table-vmlist td { border-top: 1px solid black; } td.col-vm-status, tr.row-details td { border-left: 1px solid black; } td.col-vm-rdp, tr.row-details td { border-right: 1px solid black; } .table-vmlist { border-bottom: 1px solid black;} ``` When hovering over the row, it gets highlighted with CSS: ![Table highlighting](https://imgur.com/OkUeu.png) ``` .table-vmlist tr.row-vm { background-color: #A4C3EF; } .table-vmlist tr.row-vm:hover { background-color: #91BAEF; } ``` Now, in IE 7, when moving the mouse from the top to the bottom of the list, every row gets highlighted correctly and no problems happen. But if I move my mouse pointer from the bottom of the list to the top, every second row seems to loose the border. ![IE7 Bug](https://imgur.com/ktJCR.png) Can someone explain what the problem is, and how to solve it? This is my markup: ``` <tr class="row-vm"> <td class="col-vm-status status-1"><img title="Host Down" alt="Down" src="/Technik/vm-management/img/hoststatus_1.png"></td> <td class="col-vm-name">V1-VM-1</td> <td class="col-vm-stati"> <img title="Ping" alt="Ping status" src="/Technik/vm-management/img/servicestatus_3.png"> <img title="CPU" alt="CPU status" src="/Technik/vm-management/img/servicestatus_3.png"> <img title="RAM" alt="RAM status" src="/Technik/vm-management/img/servicestatus_3.png"> <img title="C:\ Diskspace" alt="Disk space status" src="/Technik/vm-management/img/servicestatus_3.png"> </td> <td class="col-vm-owner">kus</td> <td class="col-vm-purpose">Citrix Testserver</td> <td class="col-vm-ip">-</td> <td class="col-vm-uptime">-</td> <td class="col-vm-rdp">&nbsp;</td> </tr> ``` And the CSS: ``` /* VM-Tabelle formatieren */ .table-vmlist { border-collapse: collapse; } .table-vmlist tr { border: 1px solid black; } .table-vmlist tr.row-header { border: none; } .table-vmlist tr.row-vm { background-color: #A4C3EF; } .table-vmlist tr.row-vm:hover { background-color: #91BAEF; } .table-vmlist th { text-align: left; } .table-vmlist td { } .table-vmlist th, table td { padding: 2px 0px; } /* Spaltenbreite der VM-Tabelle festlegen */ .table-vmlist #col-status { width: 25px; } .table-vmlist #col-stati { width: 90px; } .table-vmlist #col-owner { width: 90px; } .table-vmlist #col-ip { width: 100px; } .table-vmlist #col-uptime { width: 70px; } .table-vmlist #col-rdp { width: 25px; } .table-vmlist tr.row-details td { padding: 0px 10px; } /* Kein Rahmen um verlinkte Bilder */ a img { border-width: 0px; } /* Für Einschaltknopf Hand-Cursor anstatt normalen Pfeil anzeigen */ td.status-1 img { cursor: pointer; } img.ajax-loader { margin-left: 2px; } ``` IE fix: ``` .table-vmlist td { border-top: 1px solid black; } td.col-vm-status, tr.row-details td { border-left: 1px solid black; } td.col-vm-rdp, tr.row-details td { border-right: 1px solid black; } .table-vmlist { border-bottom: 1px solid black;} ```
Internet Explorer background-color hover problem
CC BY-SA 2.5
null
2010-05-10T12:03:50.990
2010-05-12T07:28:11.687
null
null
284,318
[ "html", "css", "internet-explorer-7" ]
2,803,432
1
null
null
5
1,730
Is there somewhere some polished stylesheet (and guidelines for its usage) that can be applied to any window to give it a proper "Microsoft" look? In my case / example I have a simple window: ``` <Window x:Class="WPFTest.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" SnapsToDevicePixels="True"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <GroupBox Header="My checkboxes"> <StackPanel > <CheckBox>First</CheckBox> <CheckBox>Second</CheckBox> <CheckBox>Third</CheckBox> </StackPanel> </GroupBox> <StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right"> <Button>OK</Button> <Button>Cancel</Button> </StackPanel> </Grid> </Window> ``` This is how it looks: ![](https://imgur.com/8gIOo.png) I can think of the following styles group ``` <Window.Resources> <Style TargetType="CheckBox"> <Setter Property="Margin" Value="0,8,0,0"/> </Style> <Style TargetType="Grid"> <Setter Property="Margin" Value="8"/> </Style> <Style TargetType="StackPanel"> <Setter Property="Margin" Value="0"/> </Style> <Style TargetType="GroupBox"> <Setter Property="Padding" Value="8"/> </Style> <Style TargetType="Button"> <Setter Property="Margin" Value="8,0,0,0"/> <Setter Property="Padding" Value="8"/> <Setter Property="MinWidth" Value="70"/> </Style> </Window.Resources> ``` Together with this change of the first checkbox: ``` <CheckBox Margin="0">First</CheckBox> ``` It makes the window look this way: ![](https://imgur.com/ZwUHU.png) It's not perfect, but it's much better than it was without styles applied.
Is there a standard WPF stylesheet for a "Microsoft" look?
CC BY-SA 4.0
0
2010-05-10T14:33:54.757
2018-06-21T15:17:32.053
2018-06-21T15:17:32.053
3,195,477
1,271,135
[ "wpf", "wpf-controls" ]
2,803,532
1
2,803,922
null
177
267,565
I want to have a nice little icon that, when clicked will clear the text in the <INPUT> box. This is to save space rather than having a clear link outside of the input box. My CSS skills are weak... Here is a photo of how the iPhone looks. ![](https://imgur.com/vOJFX.jpg)
How do I put a clear button inside my HTML text input box like the iPhone does?
CC BY-SA 2.5
0
2010-05-10T14:43:54.253
2023-01-31T02:51:34.997
2010-05-10T18:34:31.600
9,307
9,307
[ "javascript", "iphone", "html", "css" ]
2,803,626
1
2,803,687
null
9
5,662
Is there a standard way to set up a table to allow editing-in-place, kind of like this: ![enter image description here](https://i.stack.imgur.com/BCGEC.jpg) I only need editable text at the moment, but I might need UISwitches or UISliders in the future.
How to do edit-in-place in a UITableView?
CC BY-SA 3.0
0
2010-05-10T14:54:32.750
2014-08-09T18:23:25.623
2014-08-09T18:23:25.623
1,077,789
121,646
[ "iphone", "objective-c", "uitableview", "edit-in-place" ]
2,805,375
1
null
null
4
15,815
I am building a blog-post detail page on my site that will display display a '' and '' link similar to how a typepad blog post works. See example below. ![alt text](https://content.screencast.com/users/jessegavin/folders/Jing/media/09475b53-8d72-4d8f-8c27-8b959d6be9b0/2010-05-10_1315.png) I am wondering if there is a way to query the database which accomplishes something like the image below where it selects the 'current' record (in yellow) for display, but also selects the next and previous records (in green) when sorted by PublishDate. ![alt text](https://content.screencast.com/users/jessegavin/folders/Jing/media/57728c35-d459-4eed-9b05-a2877fa80cf7/2010-05-10_1323.png) Also, for clarification, the database table I am working with has unique publish dates. Sorry that the example image shows multiple records with the same PublishDate.
How to select 'previous' and 'next' records in SQL?
CC BY-SA 2.5
0
2010-05-10T18:31:29.053
2022-02-03T07:47:20.180
2017-02-08T14:25:28.667
-1
5,651
[ "sql", "sql-server", "pagination" ]
2,805,496
1
2,805,524
null
5
1,955
I'm designing a city building game and got into a problem. Imagine Sierra's game mechanics: you have many city districts with one market each. There are several granaries over the distance connected with a directed weighted graph. The difference: people (here cars) are units that form traffic jams (here goes the graph weights). Note: in Ceasar game series, people harvested food and stockpiled it in several big granaries, whereas many markets (small shops) took food from the granaries and delivered it to the citizens. : tell each district where they should be getting their food from while taking least time and minimizing congestions on the city's roads. ## Map example ![Example graph diagram](https://i.imgur.com/v4uif67.png) Suppose that yellow districts need 7, 7 and 4 apples accordingly. Bluish granaries have 7 and 11 apples accordingly. Suppose edges weights to be proportional to their length. Then, the solution should be something like the gray numbers indicated on the edges. Eg, first district gets 4 apples from the 1st and 3 apples from the 2nd granary, while the last district gets 4 apples from only the 2nd granary. Here, vertical roads are first occupied to the max, and then the remaining workers are sent to the diagonal paths. ## Question What practical and very fast algorithm should I use? I was looking at some papers ( etc.) describing congestion games, but could not get the big picture.
Algorithm for finding the best routes for food distribution in game
CC BY-SA 3.0
0
2010-05-10T18:45:36.693
2018-03-19T15:16:55.530
2018-03-19T15:16:55.530
118,593
118,593
[ "algorithm", "graph", "mathematical-optimization", "path-finding" ]
2,806,101
1
2,807,162
null
7
4,648
My problem is this: I want to create a grails domain instance, defining the 'Many' instances of another domain that it has. I have the actual source in a [Google Code Project](http://code.google.com/p/grails-bumbumtrain/source/browse/#svn/trunk/TestBumBum/grails-app/domain/uk/co/bumbumtrain%3Fstate%3Dclosed) but the following should illustrate the problem. ``` class Person { String name static hasMany[skills:Skill] static constraints = { id (visible:false) skills (nullable:false, blank:false) } } class Skill { String name String description static constraints = { id (visible:false) name (nullable:false, blank:false) description (nullable:false, blank:false) } } ``` If you use this model and `def scaffold` for the two Controllers then you end up with a form like this that doesn't work; ![Scaffolding](https://imgur.com/g4a2b.png) My own attempt to get this to work enumerates the Skills as checkboxes and looks like this; ![Custom Create.gsp](https://imgur.com/R21VX.png) But when I save the Volunteer the skills are null! ![Failed to save Skills](https://imgur.com/2gW39.png) This is the code for my save method; ``` def save = { log.info "Saving: " + params.toString() def skills = params.skills log.info "Skills: " + skills def volunteerInstance = new Volunteer(params) log.info volunteerInstance if (volunteerInstance.save(flush: true)) { flash.message = "${message(code: 'default.created.message', args: [message(code: 'volunteer.label', default: 'Volunteer'), volunteerInstance.id])}" redirect(action: "show", id: volunteerInstance.id) log.info volunteerInstance } else { render(view: "create", model: [volunteerInstance: volunteerInstance]) } } ``` This is my log output (I have custom toString() methods); ``` 2010-05-10 21:06:41,494 [http-8080-3] INFO bumbumtrain.VolunteerController - Saving: ["skills":["1", "2"], "name":"Ian", "_skills":["", ""], "create":"Create", "action":"save", "controller":"volunteer"] 2010-05-10 21:06:41,495 [http-8080-3] INFO bumbumtrain.VolunteerController - Skills: [1, 2] 2010-05-10 21:06:41,508 [http-8080-3] INFO bumbumtrain.VolunteerController - Volunteer[ id: null | Name: Ian | Skills [Skill[ id: 1 | Name: Carpenter ] , Skill[ id: 2 | Name: Sound Engineer ] ]] ``` Note that in the final log line the right Skills have been picked up and are part of the object instance. When the volunteer is saved the 'Skills' are ignored and not commited to the database despite the in memory version created clearly does have the items. Is it not possible to pass the Skills at construction time? There must be a way round this? I need a single form to allow a person to register but I want to normalise the data so that I can add more skills at a later time. If you think this should 'just work' then a link to a working example would be great. Such as the following to make the Create page; ``` <tr class="prop"> <td valign="top" class="name"> <label for="skills"><g:message code="volunteer.skills.label" default="Skills" /></label> </td> <td valign="top" class="value ${hasErrors(bean: volunteerInstance, field: 'skills', 'errors')}"> <g:select name="skills" from="${uk.co.bumbumtrain.Skill.list()}" multiple="yes" optionKey="id" size="5" value="${volunteerInstance?.skills}" /> </td> </tr> ``` ; ``` <tr class="prop"> <td valign="top" class="name"> <label for="skills"><g:message code="volunteer.skills.label" default="Skills" /></label> </td> <td valign="top" class="value ${hasErrors(bean: volunteerInstance, field: 'skills', 'errors')}"> <g:each in="${skillInstanceList}" status="i" var="skillInstance"> <label for="${skillInstance?.name}"><g:message code="${skillInstance?.name}.label" default="${skillInstance?.name}" /></label> <g:checkBox name="skills" value="${skillInstance?.id.toString()}"/> </g:each> </td> </tr> ``` With both style of form the Volunteer instance is created with the Skills correctly referenced in the 'Skills' variable. When saving, the latter fails with a null reference exception as shown at the top of this question. Hope this makes sense, thanks in advance! Gav
Grails - Simple hasMany Problem - Using CheckBoxes rather than HTML Select in create.gsp
CC BY-SA 2.5
0
2010-05-10T20:11:46.543
2013-07-31T22:17:36.513
2010-05-10T20:37:32.710
111,734
111,734
[ "grails", "save", "has-many" ]
2,807,734
1
2,807,751
null
4
16,222
Not that significant, but annoying to no end. Why does matlab has no small phi (`\varphi`) symbol ? It has pretty much all other symbols LaTeX offers, but not this one. Why ? ![alt text](https://www.mathsisfun.com/numbers/images/phi.gif)
matlab's phi symbol
CC BY-SA 2.5
0
2010-05-11T02:35:40.710
2010-05-11T03:07:16.290
2017-02-08T14:25:29.023
-1
62,699
[ "matlab" ]
2,808,007
1
2,808,017
null
2
961
For some reason my DataContext is not showing all the normal methods like SubmitChanges() etc in the intellisense. It also won't compile if I type in db.SubmitChanges(); Any idea what I'm doing wrong? Normally I don't have this issue, I have several other projects that work fine... Image of what I'm talking about: ![alt text](https://farm2.static.flickr.com/1072/4597775924_879ae5213f_o.jpg)
LINQ Data Context Not Showing Methods
CC BY-SA 2.5
null
2010-05-11T04:07:43.403
2015-01-26T04:56:52.520
2017-02-08T14:25:29.373
-1
452,047
[ "c#", "asp.net", "linq", "datacontext" ]
2,808,276
1
2,808,837
null
0
525
Using the [documentation provided by Apple](http://developer.apple.com/cocoa/cocoabindings.html) to create an application preferences window that doesn't require any extra code, I seem to have triggered a crash that I cannot trace. While the stuff from Apple is older, I believe I have the settings pretty much the same as shown here: ![](https://i.stack.imgur.com/Yf1dv.png) When I run my application (Hcode) and go to the preferences menu item, it brings up the proper window with the defaults I specified in the bindings with the exception of the Spaces per tab is blank (no idea how to fix this). When the window is closed, the application crashes with a backtrace similar to this: ``` (gdb) bt #0 0x00007fff800cb1d4 in objc_msgSend_vtable5 () #1 0x00007fff80447cf3 in -[NSMenu _enableItem:] () #2 0x00007fff80447ad8 in -[NSCarbonMenuImpl _carbonUpdateStatusEvent:handlerCallRef:] () #3 0x00007fff8042b3b0 in NSSLMMenuEventHandler () #4 0x00007fff80e06b57 in DispatchEventToHandlers () #5 0x00007fff80e060a6 in SendEventToEventTargetInternal () #6 0x00007fff80e23d85 in SendEventToEventTarget () #7 0x00007fff80e52e61 in SendHICommandEvent () #8 0x00007fff80e66357 in UpdateHICommandStatusWithCachedEvent () #9 0x00007fff80e02a6d in HIApplication::EventHandler () #10 0x00007fff80e06b57 in DispatchEventToHandlers () #11 0x00007fff80e060a6 in SendEventToEventTargetInternal () #12 0x00007fff80e23d85 in SendEventToEventTarget () #13 0x00007fff80e6599b in SendMenuOpening () #14 0x00007fff80e65388 in DrawTheMenu () #15 0x00007fff80e65149 in MenuChanged () #16 0x00007fff80e643d4 in TrackMenuCommon () #17 0x00007fff80e60dbe in MenuSelectCore () #18 0x00007fff80e60596 in _HandleMenuSelection2 () #19 0x00007fff802fc3b9 in _NSHandleCarbonMenuEvent () #20 0x00007fff802cfeda in _DPSNextEvent () #21 0x00007fff802cf379 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #22 0x00007fff8029505b in -[NSApplication run] () #23 0x00007fff8028dd7c in NSApplicationMain () #24 0x0000000100001cac in main (argc=1, argv=0x7fff5fbff5e0) at /Users/iaefai/Projects/Hcode/Source/main.m:13 ``` I am at a complete loss as to what the problem is. Is there potentially a better way of doing this?
Cocoa Bindings and Application Preferences - Crash
CC BY-SA 2.5
null
2010-05-11T05:25:50.393
2011-02-23T22:15:41.620
2011-02-23T22:15:41.620
120,292
302,253
[ "cocoa", "binding", "crash", "cocoa-bindings" ]
2,808,931
1
4,489,734
null
0
1,374
I have the following table structure and I want a turn the query into a NH criteria but I'm not sure how to incorporate the correct 'Projection', does anyone know how? ![alt text](https://farm2.static.flickr.com/1142/4598160070_b9b25f66aa.jpg) And the query I want to turn into a Criteria: ``` select ComponentId from Table_1 where [Name] = 'Contact' or [Name] = 'CurrencyPair' group by ComponentId having count(VersionId) = 2 ```
nHibernate criteria - how do I implement 'having count'
CC BY-SA 2.5
null
2010-05-11T08:01:07.740
2010-12-20T12:44:14.403
2017-02-08T14:25:29.710
-1
91,729
[ "nhibernate", "criteria", "projection" ]
2,810,854
1
null
null
2
3,954
Our company is working with a great Business Intelligence tool CorVu 4.2 to analyse the operational and strategic data. Since several years we are successfully working with Sharepoint 2007 to collaborate and share information with colleagues. Most of my colleagues are working with Internet Explorer 7, but step by step Internet Explorer 8 is implemented in the company. We share a lot of CorVu files thought Sharepoint, but since we are using Internet Explorer 8, we have a problem that is new for us. If we click on a CorVu file in Internet Explorer 8 (not necessarily in Sharepoint) a pop-up shows how to open the file, if we save the file, there is no problem. But if we open the file, the file is shown in the browser and not in the CorVu client! See the screenshot below: ![inbrowsershot](https://i.stack.imgur.com/iWUOe.jpg) [http://img169.imageshack.us/img169/5719/inbrowsershot.jpg](http://img169.imageshack.us/img169/5719/inbrowsershot.jpg) (I removed some unnecessary information) So far my colleagues accept this 'feature' in Internet Explorer 8. But I we open and closes more CorVu files, multiple errors (more than 10) show up starting with: (unable to place more hyperlinks) By pressing Enter the errors disappear, but it's not professional! I contacted the creators of CorVu, but they don't have a solution for in their client. There may be a solution in Internet Explorer 8? The extensions of a CorVu file can be a .sqy, .tab or .qrp. But is it possible to force the files to open in the standard client instead of the browser?
Internet explorer 8 opens file in browser instead of the client
CC BY-SA 3.0
null
2010-05-11T12:59:02.483
2011-12-02T08:31:15.267
2011-12-02T08:31:15.267
234,976
158,060
[ "sharepoint-2007", "internet-explorer-8", "business-intelligence" ]
2,814,516
1
null
null
3
124
I've had this issue for some time, but it is blocking me now. Any solution I edit or create is stuck in C++ mode. The Stack Trace shows "Language" as C++ and the watch behaves differently--shows memory addresses, etc. ASP.NET debugging is also effected in that it doesn't work at all. However, this may be unrelated. I've reset my settings to default and perused every option in the Tools > Options dialog. I'm running out of ideas. Any clues? UPDATE: I've completely uninstalled VS 2008, and then re-installed and applied SP1. Same issue occurs. I then removed the following directories: C:\Users[username]\Documents\Visual Studio 2008 C:\Users[username]\AppData\Local\Microsoft\VisualStudio C:\Users[username]\AppData\Roaming\Microsoft\VisualStudio No change. Issue still occurs. ![alt text](https://lh4.ggpht.com/__oixf95iq-g/S-rvbL5hi5I/AAAAAAAACdk/7OJ6ZV25mb0/s800/vs.jpg)
Visual Studio 2008 Debugger incorrectly shows C++ as the language when in C# solution
CC BY-SA 2.5
0
2010-05-11T21:17:11.543
2010-05-13T13:45:05.043
2017-02-08T14:25:31.907
-1
80,516
[ "c#", "visual-studio-2008" ]
2,817,043
1
2,817,247
null
2
693
I know this is something I'm probably doing wrong, so please don't incinerate me for the thread title. I'm trying to put together a small personal website using HTML 5/CSS3. I've checked with the w3c validator and the site and CSS file fully conform according to the validator (However the validator has a warning attached that it might not be perfect). I'm not sure how to explain it without a picture, so here's a comparison of Chrome/Opera/Firefox: ![](https://img.photobucket.com/albums/v714/darkflight_devil/ImDoingItWrong.png) So, you can sorta see how in Chrome the background image is in one non-repeating piece, whereas in Opera/Firefox the image has, oddly, been broken up and placed slightly differently. I'm confident this is due to an error on my part, but I've had no luck at all figuring out why the image is being mangled in Opera and Firefox. Here's the CSS that's relevant to this issue: ``` /* Content Pane */ .content { position: absolute; left: 220px; width: 800px; top: 80px; min-height: 550px; background-color: rgba(8,12,42,0.85); } /* Headers */ .content hgroup { background: url("Header_Flat.png") no-repeat left top; min-height: 38px; padding-left: 28px; text-shadow: 0 0 8px #FFA9FF; color: Black; text-decoration: none; } .content hgroup h1 { display: block; } .content hgroup h3 { display: inline; position: relative; top: -12px; left: 20px; text-shadow: 0 0 6px #AFF9FF; } .content hgroup h4 { display: inline; position: relative; top: -12px; left: 20px; font-size: xx-small; text-shadow: 0 0 6px #AFF9FF; } ``` And the HTML: ``` <hgroup> <h1>New Site!</h1> <h3>Now with Bloom!</h3> <h4> - Posted Tuesday, May 11th 2010</h4> </hgroup> ``` Can anyone see what I'm doing wrong? ## EDIT I changed the CSS a bit, and it halfway-fixed the image (I don't understand why) and the bad alignments (I hadn't yet noticed those). ![](https://img.photobucket.com/albums/v714/darkflight_devil/ImDoingItWrong2.png) The changed CSS defs are as follows: ``` /* Headers */ .content hgroup { background: url("Header_Flat.png") no-repeat left top; min-height: 38px; position: relative; text-shadow: 0 0 8px #FFA9FF; color: Black; text-decoration: none; } .content hgroup h1 { position: relative; left: 28px; } .content hgroup h3 { display: inline; position: relative; top: -12px; left: 48px; text-shadow: 0 0 6px #AFF9FF; } .content hgroup h4 { display: inline; position: relative; top: -12px; left: 48px; font-size: xx-small; text-shadow: 0 0 6px #AFF9FF; } ```
What's causing this background-image to display "incorrectly" in Opera and Firefox?
CC BY-SA 2.5
null
2010-05-12T08:21:02.810
2012-04-28T21:39:24.187
2017-02-08T14:25:32.953
-1
50,005
[ "html", "css", "firefox", "google-chrome", "opera" ]
2,817,242
1
2,824,889
null
1
13,568
I'm using jsTree and I need to convert this HTML tag tree code `<ul> <li>` to a PHP array. The jsTree HTML tag will be passed to PHP to be parsed and store in a structured tree PHP array(see below for the PHP array structure). : Is my desired PHP array structure good or you can suggest a good structure? I'm open for suggestions. Thanks in advance :) Cheers, Mark : ![alt text](https://i.imgur.com/olmxe.png) : ``` <ul class="ltr"> <li id="phtml_1" class=" open"> <a style="" class=" " href="#"><ins>&nbsp;</ins>Folder 1</a> <ul> <li class="leaf" id="phtml_2"> <a style="" class=" " href="#"><ins>&nbsp;</ins>Child 1.1</a> </li> <li class="open" id="phtml_3"> <a style="" class=" " href="#"><ins>&nbsp;</ins>Folder 1.1</a> <ul> <li class="leaf last" rel="default"> <a href="" style="" class=" "><ins>&nbsp;</ins>Child 1.1.1</a> </li> </ul> </li> <li class="last open" rel="default"> <a href="" style="" class=" "><ins>&nbsp;</ins>Folder 1.2</a> <ul> <li class="leaf" rel="default"> <a href="" style="" class=" "><ins>&nbsp;</ins>Child 1.2.1</a> </li> <li class="leaf last" rel="default"> <a href="" style="" class=" "><ins>&nbsp;</ins>Child 1.2.2</a> </li> </ul> </li> </ul> </li> <li id="phtml_5" class="file open"> <a style="" class=" " href="#"><ins>&nbsp;</ins>Folder 2</a> <ul> <li class="leaf" rel="default"> <a href="" style="" class=" "><ins>&nbsp;</ins>Child 2.1</a> </li> <li class="leaf last" rel="default"> <a href="" style="" class="clicked"><ins>&nbsp;</ins>Child 2.2</a> </li> </ul> </li> <li class="leaf last" rel="default"> <a href="" style="" class=" "><ins>&nbsp;</ins>Outer Child</a> </li> </ul> ``` : ``` <?php $tree_array = array( 'Folder 1' => array( 'Child 1.1', 'Folder 1.1' => array( 'Child 1.1.1' ), 'Folder 1.2' => array( 'Child 1.2.1', 'Child 1.2.2' ), ), 'Folder 2' => array( 'Child 2.1', 'Child 2.2' ), 'Outer Child' ); echo '<pre>',print_r($tree_array),'</pre>'; ?> ``` : ``` Array ( [Folder 1] => Array ( [0] => Child 1.1 [Folder 1.1] => Array ( [0] => Child 1.1.1 ) [Folder 1.2] => Array ( [0] => Child 1.2.1 [1] => Child 1.2.2 ) ) [Folder 2] => Array ( [0] => Child 2.1 [1] => Child 2.2 ) [0] => Outer Child ) ```
PHP: Convert <ul> <li> Tree HTML tag to an array
CC BY-SA 2.5
0
2010-05-12T08:53:56.723
2014-08-25T05:20:09.117
null
null
95,322
[ "php", "arrays", "jstree" ]
2,817,385
1
2,818,463
null
0
148
I have a window that looks like this: ``` <Window x:Class="MyWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="My Title" Height="300" Width="300" ResizeMode="NoResize" SizeToContent="Height" WindowStartupLocation="CenterOwner"> <DockPanel> <Grid x:Name="MyGrid" DockPanel.Dock="Top" Margin="10"> </Grid> </DockPanel> </Window> ``` Pretty simple. The instructions I am following suggest that if I click the item, the properties window will appear (it does), and then I can click ColumnDefinitions (which is a Collection) to bring up the Collection Editor and add some columns. However, the ColumnDefinitions property looks like this: ![Argh!](https://dl.dropbox.com/u/104757/StackOverflow_GridProblem.png) The ColumnDefinitions ellipsis you'd normally press is gone, or invisible, or something. Any idea why?
Cannot edit ColumnDefinitions property in Visual Studio WPF application, ellipsis are invisible!
CC BY-SA 2.5
null
2010-05-12T09:15:49.890
2010-05-12T11:49:37.313
2017-02-08T14:25:33.333
-1
174,375
[ "wpf", "visual-studio-2010" ]
2,817,540
1
2,817,604
null
16
29,157
I would like to do a visually appealing / user-friendly GUI in java. Swing is a limited in terms of "skin" customization. I'm thinking about JavaFX, but I don't get it yet, - - - I would like to do something in this spirit of this, which is built on the .NET framework: ![GUI example with .NET techno](https://imgur.com/7Fvu8.png) original link: [http://www.patrickpayet.com/net/?p=329](http://www.patrickpayet.com/net/?p=329) : is their any getting started overview sample code that I can read to get a general feeling of the work needed to be done to achieve something in the spirit of the screenshot? maybe something like the miglayout's swing demo [http://www.migcalendar.com/miglayout/swingdemoapp.jnlp](http://www.migcalendar.com/miglayout/swingdemoapp.jnlp) : I found [http://download.java.net/general/openjfx/demos/tutorial.jnlp](http://download.java.net/general/openjfx/demos/tutorial.jnlp) it's really basic though, linked from [http://www.deitel.com/ResourceCenters/Programming/JavaFX/JavaFXTutorialsandDemos/tabid/2187/Default.aspx](http://www.deitel.com/ResourceCenters/Programming/JavaFX/JavaFXTutorialsandDemos/tabid/2187/Default.aspx)
Is it possible to make a visually appealing GUI with JavaFX & Swing?
CC BY-SA 4.0
0
2010-05-12T09:36:19.497
2018-11-12T21:10:24.913
2018-11-12T21:10:24.913
1,305,969
140,837
[ "java", "user-interface", "swing", "javafx" ]
2,822,230
1
2,822,305
null
1
153
I have the following model ![EDMX model representing a ProductionBlock with 0 or many ProductionLog](https://luezew.bay.livefilestore.com/y1pERLMtGPcSTavzvdTiLOjKCSek4lRbA841_O65hmzribrv2Tmdt-SVEpEL8jGwTDV6frnB9jBcdbGxbVMub9083j9Fi_zsi0t/so-001-filtered-children.jpg) The first step is to select all the `ProductionBlock` with ``` var blocks = context.ProductionBlocks; ``` How can I combine the `ProductionLog` that has no end time with the `ProductionBlock`? I tried to do it using a reverse lookup like ``` var blocks = context .ProductionLogs .Include("FK_ProductionLog_ProductionBlock") .Where(log => log.EndTime == null).Select(log => log.ProductionBlock) .Union(context.ProductionBlocks); ``` But the blocks don't contains any `ProductionLogs`. How can I achieve that?
In linq-to-entities, how to return objects with a filtered list of children?
CC BY-SA 2.5
null
2010-05-12T19:44:49.550
2010-05-18T02:00:59.010
2017-02-08T14:25:35.257
-1
151,488
[ "c#-3.0", "linq-to-entities" ]
2,823,327
1
2,823,339
null
100
40,738
I am wondering what these greens things are in Visual Studio 2010. What are they for? They look pretty random but of course they have to have some meaning. Can any one tell me? At first glance they don't mean any thing to me. ![Image 1](https://i.stack.imgur.com/J3dvn.png) ![Image 2](https://i.stack.imgur.com/yc5W8.png) They show saved changed content during the document open. Once you close the document they disappear.
Green Bars in Visual Studio 2010
CC BY-SA 3.0
0
2010-05-12T22:50:53.290
2019-01-03T20:54:35.363
2014-11-29T14:14:18.900
1,842,065
44,852
[ "visual-studio", "visual-studio-2010" ]
2,826,750
1
2,882,368
null
2
566
![](https://imgur.com/AZsnf.png) Hiya, I'm a bit of a newbie to .NET so please ignore my ignorance. If you look at the above image (a complete prototype, ignore black bits :)) you will see lovely menus, toolbars & statusbars all using windows XP render mode and in a funky blue. Look at the form, labels, checkboxes and other buttons and you see horrible old school windows grey. These components don't have a render mode. My question: is there any way to show everything in XP style or do I have to chose new components? Thx. A.
Problems with .net and toolbar, menu & status bar rendermode (blue) and standard form (grey)
CC BY-SA 2.5
null
2010-05-13T12:35:11.207
2019-07-27T05:30:57.600
2010-05-13T12:45:23.457
34,397
334,455
[ "c#", ".net", "windows", "user-interface" ]
2,827,343
1
null
null
0
341
Once I click on the button i am getting this error. ![show image](https://i.stack.imgur.com/gKuBN.jpg) [http://cid-3dbfac44f49def30.skydrive.live.com/self.aspx/New%20album/error.JPG](http://cid-3dbfac44f49def30.skydrive.live.com/self.aspx/New%20album/error.JPG) This is my code ``` <sdk:DataGrid MinHeight="100" x:Name="dgCounty" AutoGenerateColumns="False" VerticalAlignment="Top" IsReadOnly="True" Margin="5,5,5,0" RowDetailsVisibilityChanged="dgCounty_RowDetailsVisibilityChanged" RowDetailsVisibilityMode="VisibleWhenSelected"> <sdk:DataGrid.Columns> <data:DataGridTemplateColumn.CellTemplate> <DataTemplate> <Button Content="+" Click="Button_Click"></Button> </DataTemplate> </data:DataGridTemplateColumn.CellTemplate> <sdk:DataGridTextColumn Header="Countryname" Width="100" Binding="{Binding Region Name}" CanUserReorder="False"/> <sdk:DataGridTextColumn Header="Populution" Width="80" Binding="{Binding Number Of People}" CanUserReorder="False"/> </sdk:DataGrid.Columns> <sdk:DataGrid.RowDetailsTemplate> <DataTemplate> <sdk:DataGrid x:Name="dgrdRowDetail" Width="400" AutoGenerateColumns="False" HorizontalAlignment="Center" IsReadOnly="True" Grid.Row="1"> <sdk:DataGrid.Columns> <sdk:DataGridTextColumn Header="county" Binding="{Binding CompanyName}" /> <sdk:DataGridTextColumn Header="Number Of People" Binding="{Binding CompanyID}"/> </sdk:DataGrid.Columns> </sdk:DataGrid> </DataTemplate> </sdk:DataGrid.RowDetailsTemplate> </sdk:DataGrid> ``` code:- ``` private void Button_Click(object sender, RoutedEventArgs e) { Button btnExpandCollapse = sender as Button; var Row = DataGridRow.GetRowContainingElement(sender as FrameworkElement); if (Row.DetailsVisibility == Visibility.Collapsed) { Row.DetailsVisibility = Visibility.Visible; } else { Row.DetailsVisibility = Visibility.Collapsed; } if (btnExpandCollapse.Content.ToString() == "+") { btnExpandCollapse.Content = "-"; } else if (btnExpandCollapse.Content.ToString() == "-") { btnExpandCollapse.Content = "+"; } } void dtg_RowDetailsVisibilityChanged(object sender, DataGridRowDetailsEventArgs e) { DataGrid RowDetails = e.DetailsElement as DataGrid if(RowDetails.YourDesiciveFlag = true) { } else { } } } ``` Working on this issue from past 3 days any idea how to solve this issue. just going mad on this issue. Let me know if you people can provide me any code that can solve my issue. thanks in advance prince
Unable to cast type isse in silverlight
CC BY-SA 3.0
null
2010-05-13T14:00:31.230
2011-12-07T04:54:01.110
2011-12-07T04:54:01.110
53,195
767,920
[ "silverlight", "silverlight-4.0" ]
2,828,113
1
null
null
1
4,772
I am implementing Naive Bayesian classifier for spam filtering. I have doubt on some calculation. Please clarify me what to do. Here is my question. In this method, you have to calculate ![alt text](https://upload.wikimedia.org/math/c/c/c/ccc7bc9030475b2415e122ebe279d009.png) P(S|W) -> Probability that Message is spam given word W occurs in it. P(W|S) -> Probability that word W occurs in a spam message. P(W|H) -> Probability that word W occurs in a Ham message. So to calculate P(W|S), which of the following is correct: 1. (Number of times W occurring in spam)/(total number of times W occurs in all the messages) 2. (Number of times word W occurs in Spam)/(Total number of words in the spam message) So, to calculate P(W|S), should I do (1) or (2)? (I thought it to be (2), but I am not sure.) I am referring [http://en.wikipedia.org/wiki/Bayesian_spam_filtering](http://en.wikipedia.org/wiki/Bayesian_spam_filtering) for the info by the way. I got to complete the implementation by this weekend :( --- Shouldn't repeated occurrence of word 'W' increase a message's spam score? In the your approach it wouldn't, right?. Lets say, we have 100 training messages, out of which 50 are spam and 50 are Ham. and say word_count of each message = 100. And lets say, in spam messages word W occurs 5 times in each message and word W occurs 1 time in Ham message. So total number of times W occurring in all the spam message = 5*50 = 250 times. And total number of times W occurring in all Ham messages = 1*50 = 50 times. Total occurrence of W in all of the training messages = (250+50) = 300 times. So, in this scenario, how do you calculate P(W|S) and P(W|H) ? Naturally we should expect, `P(W|S) > P(W|H)` right?
Naive Bayesian classification (spam filtering) - Which calculation is right?
CC BY-SA 3.0
0
2010-05-13T15:38:37.077
2012-08-14T15:40:29.987
2017-02-08T14:25:36.500
-1
298,519
[ "algorithm", "math", "statistics", "bayesian", "spam-prevention" ]
2,828,600
1
2,830,555
null
1
70
I am having trouble correctly modeling related objects that can use templates. This is not homework, but part of a small project in the university. In this application the user can add several elements, which can either be passive or active. Each concrete element has different attributes, these must be set by the user. See diagram 1: ![diagram 1](https://i.imgur.com/PxNg7.png) Since the user will create many elements, we want there to be templates for each type of element, so some of the attributes are filled in automatically. See diagram 2: ![diagram 2](https://i.imgur.com/wVFE9.png) In my opinion, this is a bad design. For example, to get all possible templates for a PassiveElementA-object, there has to be a list/set somewhere that only holds PassiveElementATemplate-objects. There has to be a separate list for each subclass of Element. So if you wanted to add a new PassiveElement-child, you also have to edit the class which holds all these separate lists. I cannot figure out a good way to solve this problem. Since the concrete classes (i.e. PassiveElementA, ..., PassiveElementZ) have so many different attributes, many of the design patterns I know do not work. Thanks in advance for any hints, and sorry for my bad English.
Modeling related objects and their templates
CC BY-SA 2.5
null
2010-05-13T16:43:34.173
2010-05-13T21:47:24.000
null
null
299,913
[ "design-patterns", "modeling", "uml" ]
2,829,406
1
3,659,166
null
2
1,318
I am working on an custom container and I need a border for this container. I have a 15x15 image that I am creating a 9-slice border skin with. The issue that I am having is that the border skin does not appear the way that I had hoped it would. Here is a ss of the skin in place. ![](https://imgur.com/BjfD6.png) Ideally I should have a transparent box with a 5 pixel border around it. Here is my current testing code: CSS Code: ``` Box { borderSkin: Embed(source="15x15.png", scaleGridLeft="5", scaleGridTop="5", scaleGridRight="10", scaleGridBottom="10"); } ``` MXML Code: ``` <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Style source="MainTest.css"/> <mx:Box id="tw" width="400" height="400"> </mx:Box> </mx:WindowedApplication> ```
Flex 3 Using an image as a border
CC BY-SA 2.5
0
2010-05-13T18:50:34.253
2010-09-07T13:44:31.990
null
null
170,957
[ "css", "apache-flex", "actionscript-3" ]
2,829,890
1
2,829,954
null
4
5,561
Consider a Visual Studio 2010 project whose requirement is to model the data using Entity Framework. The datasource is a SQL Server 2000 database. The first step is creating a new ADO.NET Entity Data Model item. The Entity Data Model Wizard prompts for a Data Connection. ![alt text](https://i.imgur.com/6fD6e.png) When creating a new Connection, you will need to use a provider other than `SqlClient`. Usually it's `SQLOLEDB`. The list of data providers only has `SqlClient` or ".NET Framework Data Provider for SQL Server". ![alt text](https://i.imgur.com/anGWO.png) -
VS 2010 and Entity Framework: accessing SQL Server 2000 databases
CC BY-SA 2.5
null
2010-05-13T20:00:18.290
2011-11-08T00:41:39.400
null
null
23,199
[ "entity-framework", "visual-studio-2010", "sql-server-2000" ]
2,831,545
1
2,832,087
null
3
1,954
I've been trying to deal with this problem for a couple of hours now and haven't been able to come up with a clean solution. It seems I'm not too good with rails... Anyway, I have the following: ![Diagram](https://i3.photobucket.com/albums/y94/Logox/model2-1.png) In code: ``` class Article < ActiveRecord::Base has_many :line_aspects has_many :aspects, :through => :line_aspects #plus a 'name' field end class LineAspect < ActiveRecord::Base belongs_to :article belongs_to :aspect #plus a 'value' field end class Aspect < ActiveRecord::Base has_many :line_aspects has_many :articles, :through => :line_aspects #plus a 'name' field end ``` Now, what I would like to do, is to sort these in two steps. First sort of Articles by their Articles.name, and then inside sort them by Aspect.name (note, not the middleman). For instance, alphabetically (sorry if the notation is not correct): ``` [{ article => 'Apple', line_aspects => [ {:value => 'red'}, #corresponding to the Attribute with :name => 'color' {:value => 'small'} #corresponding to the Attribute with :name => 'shape' ] },{ article => 'Watermelon', line_aspects => [ {:value => 'green'}, #corresponding to the Attribute with :name => 'color' {:value => 'big'} #corresponding to the Attribute with :name => 'shape' ] }] ``` Again, note that these are ordered by the aspect name (color before shape) instead of the specific values of each line (red before green). My intention is to display these in a table in the view. With this result: ![Table](https://i3.photobucket.com/albums/y94/Logox/Pantallazo.png) This is the code I'm using: ``` <table> <tr> <th>Category</th> <% @articles.each do |article| -%> <th><%= link_to article.name, article -%></th> <% end -%> </tr> <% @aspects.each do |aspect| -%> <tr> <td><%= aspect.name -%></td> <% aspect.line_aspects.each do |line_aspect| -%> <td><%= line_aspect.value %></td> <% end -%> </tr> <% end -%> </table> ``` I have not found a good way to do this in rails yet (without resorting to N queries). Can anyone tell me a good way to do it (even changing the view, if my approach is wrong)? (I found a [similar question in hyphen](http://www.experts-exchange.com/Programming/Languages/Scripting/Ruby/RubyOnRails/Q_24035892.html)) UPDATE: Here's how I'd do it in SQL: ``` SELECT line_aspects.value FROM line_aspects, aspects, articles WHERE articles.id = line_aspects.article_id AND aspects.id = line_aspects.aspect_id ORDER BY aspects.name, articles.name ``` But I'd like to do it the rails way. UPDATE: Added the view code. Which might expose my predicament a bit better.
How to sort objects in a many-to-many relationship in ruby on rails?
CC BY-SA 2.5
0
2010-05-14T02:39:53.750
2010-05-14T09:34:17.700
2017-02-08T14:25:37.417
-1
133,208
[ "ruby-on-rails", "sorting", "many-to-many", "ruby-on-rails-3" ]
2,832,342
1
2,832,401
null
2
1,951
This picture from Wikipedia has a nice example of the sort of functions I'd ideally like to generate: ![pseudo-Gaussian distributions](https://upload.wikimedia.org/wikipedia/commons/7/74/Normal_Distribution_PDF.svg) Right now I'm using the Irwin-Hall Distribution, which is more or less a polynomial approximation of the Gaussian distribution...basically, you use uniform random number generator and iterate it x times, and take the average. The more iterations, the more like a Gaussian Distribution it is. It's pretty nice; however I'd like to be able to have one where I can vary the mean. For example, let's say I wanted a number between the range 0 and 10, but 7. Like, the mean (if I repeated this function multiple times) would turn out to be 7, but the actual range is 0-10. Is there one I should look up, or should I work on doing some fancy maths with standard Gaussian distributions?
Computationally simple pseudo-Gaussian distribution with varying mean and standard deviation?
CC BY-SA 3.0
0
2010-05-14T06:52:41.860
2016-02-14T19:17:44.463
2016-02-14T19:17:44.463
1,461,210
292,731
[ "random", "probability", "gaussian", "probability-theory" ]
2,833,893
1
2,833,913
null
1
1,043
I am not worried about whether this is in Winforms or WPF. Is there ANY way at all that I could develop my own user control like the one found in Microsoft Paint, below: ![alt text](https://i.stack.imgur.com/VrvP4.png) If you can't see the pic above, it's here: [http://img232.imageshack.us/i/txtboxlblctrl.png/](http://img232.imageshack.us/i/txtboxlblctrl.png/) Is there anyway at all I can do something like this in C#? Thank you
TextBox Label Control
CC BY-SA 2.5
0
2010-05-14T11:55:31.520
2010-11-15T12:29:26.687
2010-11-15T12:29:26.687
770
null
[ "c#", "textbox", "controls", "label", "new-operator" ]
2,836,098
1
4,092,859
null
44
46,961
Given a closed Path object result is like this: ![enter image description here](https://i.stack.imgur.com/jm1ov.jpg) Although that is a rectangle I'm looking for something which works with any closed Path.
How to fill a Path in Android with a linear gradient?
CC BY-SA 3.0
0
2010-05-14T17:09:16.763
2021-09-06T23:38:41.060
2014-02-12T08:48:16.953
1,231,359
250,340
[ "android", "graphics", "path", "fill" ]
2,836,633
1
2,837,217
null
1
313
Is there a setting or a plugin to display VCS markers on files in the project view ? Here is what i'm talking about (Subversive/Subclipse on Eclipse): ![alt text](https://sites.google.com/site/cse70labs/_/rsrc/1254759574199/lab2/PackageExplorerOverlays.png) (I am mainly asking for Subversion).
Intellij IDEA: VCS markers on files
CC BY-SA 2.5
0
2010-05-14T18:29:31.160
2014-09-01T00:54:15.747
2017-02-08T14:25:39.473
-1
202,191
[ "svn", "intellij-idea" ]
2,836,622
1
null
null
0
224
Is it possible to avoid the spaces X & Y (see image)? There is no padding in CSS! ![](https://i.stack.imgur.com/Rbwfm.jpg) ``` <html> <head> <title>Prova WIDGET</title> <link rel="stylesheet" href="jquery-ui-1.8.1.custom/css/ui-lightness/jquery-ui-1.8.1.custom.css" type="text/css"> <script src="jquery-ui-1.8.1.custom/development-bundle/jquery-1.4.2.js" type="text/javascript"></script> <script src="jquery-ui-1.8.1.custom/js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $(themify); function themify(){ $("#pulsante").addClass("ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"); //ui-button-text } </script> <style>#test{display:none}</style> <script type="text/javascript"> function rendiVisibile(){ if(document.getElementById("test").style.display = "none"){ $("#test").css({"width":"100px","float":"right","text-align":"center"}); $("#test").show("slide",{},1000); } } </script> </head> <body> <h2 class="ui-widget-header">Tentativo widget con DIV</h2> <form action=""> <input type="button" value="Submit" id="pulsante" onclick="rendiVisibile()";><br/></br> <div id="test" class="ui-widget ui-widget-content ui-corner-all"> <h3 class="ui-widget-header ui-corner-all">CIAO</h3> <p class="ui-widget-content ui-corner-all">Un saluto</p> </div> </form> </body> </html> ```
It is possible to avoid these spaces in a div?
CC BY-SA 4.0
0
2010-05-14T18:27:15.377
2019-07-26T18:04:14.767
2019-07-26T18:04:14.767
4,751,173
341,523
[ "html", "css", "jquery-ui" ]
2,837,057
1
11,742,116
null
63
39,990
I'm coding a "popup window" in JavaScript and I've come across an interesting thing: ![Cropped screenshot demonstrating strange stacking behavior](https://i.stack.imgur.com/gTQyq.png) The navy square under the popup window is visible even though I would expect it to be hidden. The popup was added after the square, so it should be on the top. CSS `opacity` property of the navy square is `0.3`. From what I've tried, it seems that every number from the interval `(0,1)` would yield the same result. If I change it to `1`, then it behaves as expected (i.e. the part of the square under the popup is hidden). I've tried to set the `z-index` property to `10` for the square and `100` for the popup, but it doesn't change anything. What am I missing? Why is part of square displayed? Tested browsers: - -
What has bigger priority: opacity or z-index in browsers?
CC BY-SA 3.0
0
2010-05-14T19:37:31.957
2020-09-21T14:01:41.440
2013-11-06T20:29:17.137
526,741
99,256
[ "css", "z-index", "opacity" ]
2,840,862
1
null
null
57
71,365
I'm trying to make a effect using CSS3, HTML Canvas, or even SVG (see image below for example)? Is this possible? If so, how can I achieve this effect? To clarify: The text that will be styled this way will be dynamic. ![Arched or Curved Text Example](https://i.stack.imgur.com/xDyu0.png)
Is there a way to curve / arc text using CSS3 / Canvas
CC BY-SA 3.0
0
2010-05-15T16:29:58.700
2022-11-28T20:16:35.390
2015-10-27T10:29:25.993
1,811,992
5,447
[ "javascript", "html", "canvas", "css" ]
2,840,863
1
null
null
1
3,486
i have been writing a music website for my customer using ASP.NET. Everything has been cool except I don't know how to prevent the users from downloadng the song which is being played. For example, I click "Heal the world" to play and while the song is playing, I dont't want the IDM download manager or other download programs appear the download dialog --- any help for my question? I used this code to play the song ``` <embed type="application/x-mplayer2" src="files/funring/15.mp3" align="absbottom" /> ``` And I don't want the IDM download appears as shown in the followwing image ![enter image description here](https://i.stack.imgur.com/1dDtR.png)
prevent users from downloading music
CC BY-SA 3.0
0
2010-05-15T16:30:14.077
2011-08-25T15:03:39.930
2011-08-25T15:03:39.930
665,800
342,004
[ "asp.net" ]
2,845,701
1
null
null
1
14,705
I'm experiencing a weird bug that I can replicate pretty consistently with the FBConnect iPhone SDK, more specifically with the class FBPermissionDialog. The result is that instead of seeing the standard extended permissions dialog, the user is shown this: ![enter image description here](https://i.stack.imgur.com/ANscy.png) The only way around it is for the user to delete the app and reinstall. This is how I have replicated it: - - - The only way for the user to get asked again is to delete the app and reinstall. Has anyone else experienced this? Is there a workaround? Here is the code I use to ask for permission, I believe it's pretty standard. ``` // Create a permission dialog FBPermissionDialog *dialog = [[[FBPermissionDialog alloc] init] autorelease]; dialog.delegate = self; dialog.permission = @"read_stream"; [dialog show]; ```
FBPermissionDialog bug, showing "Welcome to Facebook" page
CC BY-SA 3.0
0
2010-05-16T22:17:19.423
2023-01-15T09:08:16.010
2011-10-16T19:09:39.437
540,162
100,889
[ "iphone", "cocoa-touch", "fbconnect" ]
2,846,704
1
2,856,207
null
5
710
I am working on a form which displays information about orders. Each order has a unique id, but they are not necessarily sequential on the form. Also, the number of fields can vary (one field per row on the form). The input into the form will not be mapped straight into the database, but will be added to the current value in the database, and then saved. An example of the form is in the picture below - the callout on the right shows the id for each row. ![Form example](https://imgur.com/3vuF1.png) I know how to generate the form like this, but I can't work out how I can easily process each of these rows reliably. I also know how to give each of the fields a unique identifier, like `name="order-23"` or `name="order[23]"`, but how can I translate that name so that I can update the related record in the database? --- One solution I can think of would be to iterate through form field in the `FormCollection`, and if the name of the field matches the pattern, then I will extract the number from that field-name and process it. However, I feel that there must be a much easier way to go about it - this method would likely involve a fair bit of string processing on each field, and there would possibly fall over if I have to add extra fields for each row later on.
Processing variable number of form fields
CC BY-SA 2.5
null
2010-05-17T04:39:15.083
2013-02-25T22:50:52.243
2013-02-25T22:50:52.243
889,949
106,762
[ "asp.net", "asp.net-mvc", "forms" ]
2,847,357
1
2,848,746
null
1
1,648
I'm creating a own plugin for wordpress where I have to view a set of data. Now I want to use the wordpress default table view to display my data, and give some functionality to it. default table: ![default table view](https://dl.getdropbox.com/u/6357394/wptable.jpg) Is there a way to use this table view for my own plugins (some classes or functions) or do I have to create something similar by myself?
Wordpress use table sort functionality in own plugin
CC BY-SA 3.0
null
2010-05-17T07:47:14.907
2016-12-15T15:07:28.037
2017-02-08T14:25:43.687
-1
253,288
[ "php", "wordpress", "plugins" ]
2,849,804
1
2,849,965
null
3
271
I have the following class hierachy: ``` @interface Message : NSObject {} @end @implementation Message - (void) dealloc { // I won't be called [super dealloc]; } @end @interface FooMessage : Message {} @end @implementation FooMessage - (void) dealloc { // should call Message - dealloc [super dealloc]; } @end ``` And the following unit test: ``` - (void) test { FooMessage* msg = [[FooMessage alloc] init]; [msg release]; } ``` The test will always fail with EXC_BAD_INSTRUCTION. `FooMessage` calls it's super class destructor in `dealloc`, but the call never arrives there. Instead, the Objective-C runtime resolves the call to a different location: ![StackTrace and disassembly](https://jorudolph.files.wordpress.com/2010/05/objcmessageruntimebug.png) The error doesn't occur if the `Message` base class is renamed to something else, e.g. `AbstractMessage`. It appears there is another class named `Message`, whose definition is not publicly available. Is this a bug? What's really happening here? Am I violating any naming restrictions (even though I think the compiler should warn me about that)?. It's XCode 3.1. compiling for iPhone OS 3.0.
Objective-C-Runtime Bug When Naming a Superclass "Message"
CC BY-SA 2.5
null
2010-05-17T14:22:53.457
2010-07-12T12:58:13.127
2017-02-08T14:25:44.047
-1
125,407
[ "objective-c", "runtime" ]
2,851,094
1
2,851,142
null
6
7,721
As I use vim, it tries to be helpful by highlighting groups of four spaces in yellow, as shown. ![Example of the highlighting in question](https://imgur.com/iwwDP.png) My `.vimrc` file says, in its entirety, `set tabstop=4`. How can I keep vim from highlighting the indentation in my files?
How to remove indentation highlighting in vim?
CC BY-SA 2.5
null
2010-05-17T17:03:28.007
2012-11-10T17:45:18.653
2010-05-17T17:12:30.807
339,671
339,671
[ "vim", "configuration", "syntax-highlighting", "indentation" ]
2,852,872
1
null
null
13
17,845
I want to show a MPMoviePlayerController in a view controller and let the user toggle full screen with the default controls, like the YouTube app. I'm using the following code in a bare-bones example: ``` - (void)viewDidLoad { [super viewDidLoad]; self.player = [[MPMoviePlayerController alloc] init]; self.player.contentURL = theURL; self.player.view.frame = self.viewForMovie.bounds; self.player.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; [self.viewForMovie addSubview:player.view]; [self.player play]; } ``` This works well until the user makes the video full screen, rotates the device and taps on the screen. The status bar is shown in the wrong position, as shown in the screenshot below. ![screenshot](https://i.stack.imgur.com/s4H80.png) I'm working with the template Tab Bar Application for iPad. I've only added the viewDidLoad above, the view variables and an UIView in the XIB to show the movie player. What am I doing wrong?
MPMoviePlayerController fullscreen quirk in iPad
CC BY-SA 3.0
0
2010-05-17T21:16:32.600
2022-07-13T22:44:09.813
2013-05-20T09:05:58.130
1,142,743
143,378
[ "ipad", "fullscreen", "mpmovieplayercontroller", "statusbar", "screen-orientation" ]
2,852,995
1
2,853,050
null
61
10,893
I'm trying to figure out what this sort of thing is called, and eventually how I can create one in a web browser. It looks like this (screenshot of the first app that came to mind): ![enter image description here](https://i.stack.imgur.com/bCuFJ.png) The specific component/pattern I'm looking for is the two [list boxes](http://en.wikipedia.org/wiki/List_box) ("Included Gear" and "Excluded Gear") that represent inclusion/exclusion of items from a set. I'm not really looking for the WPF name (if there is one) but it might be helpful. I looking for the name of this thingy, if there is one, and if you really want to make my day, you can point me toward a jQuery or YUI way of making one of these dealies in a browser.
What's this UI pattern called?
CC BY-SA 3.0
0
2010-05-17T21:33:48.983
2021-01-15T05:03:55.197
2015-02-20T17:11:12.507
1,816,580
139,010
[ "jquery", "user-interface", "yui", "terminology" ]
2,853,136
1
2,853,152
null
0
1,205
Is there some cool [Moria](http://winterdom.com/2007/04/visualstudiomoriaalternate) like theme for Visual Studio 2010? ![alt text](https://farm3.static.flickr.com/2191/1817077506_3d725be39a.jpg) Mine is highlighting gray font with gray background! I just can't configure it on Tools->Options->Environment->Fonts and Colors menu. Visual Studio doesn't seem to show an item for this "highlighting keyword/tag system". You select a variable on variable called myVar, and it highlights all with the same name but with a grayer color and gray background. I just can't read it and can't set it.
Is there a Moria like theme for Visual Studio 2010?
CC BY-SA 2.5
null
2010-05-17T21:54:18.403
2010-05-17T21:57:00.893
2017-02-08T14:25:44.750
-1
66,708
[ "visual-studio-2010", "text-editor", "color-scheme" ]
2,855,890
1
8,808,337
null
40
33,960
Is there a way to add TinyMCE into my own WordPress plugin? I have a textarea in my back end script and want to make this area into a TinyMCE WYSIWYG editable field. Is there a way to do that? ![wysiwyg demonstration screenshot](https://dl.getdropbox.com/u/6357394/wysiwyg.jpg) This code does not work for me: ``` <?php wp_tiny_mce(false,array("editor_selector" => "test")); ?> <textarea class="test" id="test" name="test"></textarea> ``` It shows the javascript error ``` f is undefined ``` Firebug screenshot: ![TinyMCE error](https://dl.getdropbox.com/u/6357394/mceeror.png) This didn't work either: ``` <textarea class="theEditor" id="videogalerie-add_description" name="videogalerie-add_description"></textarea> ```
Call TinyMCE in a WordPress plugin
CC BY-SA 3.0
0
2010-05-18T09:20:13.023
2012-11-06T22:06:14.537
2017-02-08T14:25:45.437
-1
253,288
[ "php", "javascript", "wordpress", "plugins", "tinymce" ]
2,858,917
1
2,858,941
null
3
261
How would you implement a user message stack in ASP.Net MVC? (you set messages for the user in any place inside your app. and they are shown as hints of your app to the user anywhere inside the app) I want to hear your ideas and thoughts. How would you do it? e.g.: ![User stack message example](https://i291.photobucket.com/albums/ll283/sdplox/c4aa70cde56bcfd18f18832f5597a921.jpg)
MVC: User Message Stack implementations
CC BY-SA 2.5
null
2010-05-18T15:57:17.780
2010-05-18T16:21:35.443
2017-02-08T14:25:46.127
-1
201,142
[ "asp.net", "asp.net-mvc", "user-interface", "messagebox", "ui-patterns" ]
2,864,447
1
null
null
8
2,849
I have a Mercurial repository that is in a strange state now. This is what it looks like in TortoiseHG: ![Hg graph](https://i.stack.imgur.com/CPafC.png) I didn't think this would be possible. Revision 54 has a parent of "-1 (000000000000)" (i.e. nothing). There's clearly something I don't understand yet about Mercurial, can anyone let me know what this means - and what must have happened for it to get into this state. As far as I know, it's only had stuff pushed and pulled from it - and nobody has been using any wacky extensions. Revisions 54 and 55 were just adding tags, but if I 'update -C' to revision 54 I end up with ONLY the .hgtags file. I've made a clone from revision 53 to fix this. But I'd rather understand what happened here, so I can avoid it happening again.
What does a mercurial revision with no parent mean?
CC BY-SA 3.0
0
2010-05-19T09:58:30.677
2019-07-26T23:15:54.823
2013-02-12T13:55:15.583
8,705
1,367
[ "mercurial" ]
2,865,501
1
null
null
3
101
I have implemented a small ordering and stock control system (for internal using) with the MVC 2 framework. Now my friends, they want to have a website to present the existing products for their customers. I know, I know they will ask me to do this one day. So in the beginning, I have made the controller name to start with "Admin". But now I am not sure the best way to implement their requirements. Could you advise me? 1.For the security reason, I did not allowed anonymous user to access the website a part from the CSS and image files. My question is the controllers' name are not folders' name, how could I set this up? ``` <!--Only allow the anonymous users to access the content folder--> <location path="Content"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> ``` 2.I'm planning to put the admin section into an "area" and will it be a good way to go? Can anyone provide me some suggestions. Many thanks. ![controller](https://lh5.ggpht.com/_QNDkqTv_9oU/S_PbEmDr0rI/AAAAAAAAULk/txk3iECvuoM/s512/controller.png) ![view](https://lh4.ggpht.com/_QNDkqTv_9oU/S_PbE9aJQLI/AAAAAAAAULo/CEkFvRtoD2M/s512/view.png)
Need an Asp.net MVC Application solution
CC BY-SA 2.5
null
2010-05-19T12:37:03.787
2010-05-19T13:04:04.083
2017-02-08T14:25:47.150
-1
52,463
[ "asp.net", "asp.net-mvc" ]
2,868,945
1
2,880,320
null
6
2,588
My project actually use XML files to define flow of the application. I like to convert this XML a image that represent the flow, to use it in the documentation. There is any c# library that help with the graphical part of a UML generation? There is any XML standard format to generate UML flows that can be converted to IMG? I need something like this ![LampFlowChart](https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/LampFlowchart.svg/200px-LampFlowchart.svg.png)
Library to Generate UML Diagrams
CC BY-SA 2.5
0
2010-05-19T19:59:13.923
2018-06-07T11:28:23.617
2017-02-08T14:25:48.267
-1
1,847,702
[ "c#", "uml" ]
2,871,057
1
2,875,363
null
1
313
72 child tables, each having a year index and a station index, are defined as follows: ``` CREATE TABLE climate.measurement_12_013 ( -- Inherited from table climate.measurement_12_013: id bigint NOT NULL DEFAULT nextval('climate.measurement_id_seq'::regclass), -- Inherited from table climate.measurement_12_013: station_id integer NOT NULL, -- Inherited from table climate.measurement_12_013: taken date NOT NULL, -- Inherited from table climate.measurement_12_013: amount numeric(8,2) NOT NULL, -- Inherited from table climate.measurement_12_013: category_id smallint NOT NULL, -- Inherited from table climate.measurement_12_013: flag character varying(1) NOT NULL DEFAULT ' '::character varying, CONSTRAINT measurement_12_013_category_id_check CHECK (category_id = 7), CONSTRAINT measurement_12_013_taken_check CHECK (date_part('month'::text, taken)::integer = 12) ) INHERITS (climate.measurement) CREATE INDEX measurement_12_013_s_idx ON climate.measurement_12_013 USING btree (station_id); CREATE INDEX measurement_12_013_y_idx ON climate.measurement_12_013 USING btree (date_part('year'::text, taken)); ``` (Foreign key constraints to be added later.) The following query runs abysmally slow due to a full table scan: ``` SELECT count(1) AS measurements, avg(m.amount) AS amount FROM climate.measurement m WHERE m.station_id IN ( SELECT s.id FROM climate.station s, climate.city c WHERE /* For one city... */ c.id = 5182 AND /* Where stations are within an elevation range... */ s.elevation BETWEEN 0 AND 3000 AND /* and within a specific radius... */ 6371.009 * SQRT( POW(RADIANS(c.latitude_decimal - s.latitude_decimal), 2) + (COS(RADIANS(c.latitude_decimal + s.latitude_decimal) / 2) * POW(RADIANS(c.longitude_decimal - s.longitude_decimal), 2)) ) <= 50 ) AND /* Data before 1900 is shaky; insufficient after 2009. */ extract( YEAR FROM m.taken ) BETWEEN 1900 AND 2009 AND /* Whittled down by category... */ m.category_id = 1 AND /* Between the selected days and years... */ m.taken BETWEEN /* Start date. */ (extract( YEAR FROM m.taken )||'-01-01')::date AND /* End date. Calculated by checking to see if the end date wraps into the next year. If it does, then add 1 to the current year. */ (cast(extract( YEAR FROM m.taken ) + greatest( -1 * sign( (extract( YEAR FROM m.taken )||'-12-31')::date - (extract( YEAR FROM m.taken )||'-01-01')::date ), 0 ) AS text)||'-12-31')::date GROUP BY extract( YEAR FROM m.taken ) ``` The sluggishness comes from this part of the query: ``` m.taken BETWEEN /* Start date. */ (extract( YEAR FROM m.taken )||'-01-01')::date AND /* End date. Calculated by checking to see if the end date wraps into the next year. If it does, then add 1 to the current year. */ (cast(extract( YEAR FROM m.taken ) + greatest( -1 * sign( (extract( YEAR FROM m.taken )||'-12-31')::date - (extract( YEAR FROM m.taken )||'-01-01')::date ), 0 ) AS text)||'-12-31')::date ``` This part of the query matches a selection of days. For example, if the user wants to look at data between June 1st and July 1st over all the years for which there is data, the above clause matches against just those days. If the use wants to look at data between December 22nd and March 22nd, again for all the years for which there is data, the above clause calculates that March 22nd is in the following year of December 22nd, and so matches the date accordingly: ![](https://i.imgur.com/MUkuZ.png) Currently the dates are fixed as Jan 1 to Dec 31, but will be parameterized, as shown above. The HashAggregate from the plan shows a cost of 10006220141.11, which is, I suspect, on the astronomically huge side. There is a full table scan on the measurement table (itself having neither data nor indexes) being performed. The table aggregates 273 million rows from its child tables. What is the proper way to index the dates to avoid full table scans? Options I have considered: - - - - What are your thoughts? Thank you!
Optimize date query for large child tables: GiST or GIN?
CC BY-SA 2.5
0
2010-05-20T04:43:08.580
2010-05-24T17:51:35.757
2010-05-20T15:12:14.047
59,087
59,087
[ "sql", "postgresql", "date", "query-optimization", "full-table-scan" ]
2,871,898
1
2,872,070
null
1
375
I have the following google chart code that im working with as an example: ``` Type: Line Dimensions: 270x150 283,285,295,204,340,#41C0E4 64,120,130,170,175,180,#3962C2 1,2,5,12,28,34,#005E91 Bottom Label: test ``` The following is the URL which generates the image below [https://chart.apis.google.com/chart?chs=270x150&cht=lc&chtt=&chd=s:zz1l9,LWXffg,AABCFG&chco=41C0E4,3962C2,005E91&chxl=0:|test|&chxt=x](https://chart.apis.google.com/chart?chs=270x150&cht=lc&chtt=&chd=s:zz1l9,LWXffg,AABCFG&chco=41C0E4,3962C2,005E91&chxl=0:|test|&chxt=x) ![alt text](https://chart.apis.google.com/chart?chs=270x150&cht=lc&chtt=&chd=s:zz1l9,LWXffg,AABCFG&chco=41C0E4,3962C2,005E91&chxl=0:|test|&chxt=x) My question is that i dont see the actual data in the url, but i see this ``` chd=s:zz1l9,LWXffg,AABCFG ``` That looks like serialized data, but im wondering how exactly that works, or how to encode/decode that to make the input of chart data dynamic via php.
serializing data with google charts api
CC BY-SA 2.5
0
2010-05-20T07:55:39.900
2010-05-20T08:25:06.840
2017-02-09T15:09:20.030
-1
115,949
[ "php", "api", "google-visualization" ]
2,872,847
1
2,872,905
null
0
559
lets say I have bunch of hyperlinks. When link is clicked, I'd like an opened page (in a separate window) to have a google-translator style toolbox that I could use to save the page to a localdisk if I liked it, adding a few tags to the database using php. I understand how to save a file using php, but could You help me with ideas as how to add a toolbar and to send request from toolbar to my processing page? Here's graphic representation of my question. ![alt text](https://farm5.static.flickr.com/4050/4624060190_0fa08d69c0.jpg)
How to add a toolbar (like google translate) to a webpage opened through a link for saving/processing using html/javascript and php?
CC BY-SA 2.5
null
2010-05-20T10:25:12.043
2010-05-20T14:19:13.020
2017-02-08T14:25:49.890
-1
337,062
[ "php", "javascript", "html" ]
2,873,773
1
2,873,841
null
3
227
During my C learning days, when I had implemented a `Queue`, I implemented them on top of a `LinkedList`. So essentially I had two pointers (front and rear) for the `Queue` operations on top of `LinkedList`, or better one front pointer on top of a `CircularLinkedList`. I am learning the Java `Collections Framework`, and I observe that the design has completely disjointed the `List` and `Queue` interfaces, and the implementations branches out in following fashion - ![alt text](https://imgur.com/KlNLw.png) I think `AbstractQueue` should have been subclassed somewhere inside `AbstractList`. Maybe not inside `ArrayList`, because I do not want random access to elements, but maybe inside `AbstractSequentialList`, hmm? (I realize, I could be completely wrong here)
Why are AbstractQueue and AbstractList disjointed?
CC BY-SA 3.0
null
2010-05-20T12:45:36.087
2011-08-05T09:22:44.540
2011-08-05T09:22:44.540
1,140,524
1,140,524
[ "java", "design-patterns", "collections" ]
2,874,976
1
2,875,461
null
6
3,484
How could I center the blue box inside the red one ? I see that the left side of the blue box is exactly in the middle of the red box, but I would like to center the whole blue box, not its left side. The dimensions of the boxes are not constant. I want to align regardless of boxes dimensions. Example to play with [here](http://jsfiddle.net/NN68Z/). Thanks ! HTML: ``` <div id="rel"> <span id="abs">Why I'm not centered ?</span> </div> ``` CSS: ``` #rel { position: relative; top: 10px; left: 20px; width: 400px; height: 300px; border: 1px solid red; text-align: center; } #abs { position: absolute; bottom: 15px; width: 300px; height: 200px; border: 1px solid blue; } ``` ![Screenshot](https://i.stack.imgur.com/BFpj7.png)
Alignment with relative and absolute positioning
CC BY-SA 2.5
null
2010-05-20T15:01:57.680
2013-06-21T10:09:19.347
2010-12-16T05:52:32.130
19,750
247,243
[ "html", "css", "css-position" ]
2,877,127
1
null
null
2
3,588
Is there a way to add, specifically, form elements for every day that are distinguishable per day? Below is an example. I know FullCalendar is built to handle "Events", so from what I can tell in the docs, it's not really possible. But I'm not a Javascript guru either, so would anyone else know of a solution? I'm hoping to not have to reinvent the wheel. ![](https://imgur.com/StJvk.png)
Custom HTML in a day with FullCalendar?
CC BY-SA 2.5
0
2010-05-20T19:30:34.660
2011-06-15T12:05:12.000
null
null
229,967
[ "javascript", "html", "fullcalendar" ]
2,878,738
1
2,878,994
null
0
123
Let's say I have 2 instances of the same web services. Is there a way that I can have the second instance of the web service perform a task at the behest of the first instance of the WCF service and reply directly to the original requester? I could code this and include logic in WCF-A to contact WCF-B under the right conditions and then passback the result, but returning to the requester directly from WCF-B would be easier. Also, I made a handy dandy chart. ![alt text](https://imgur.com/DtTgl.png)
Can one instance of a WCF service pass work on to another instance where this 2nd instance would reply directly to the requester?
CC BY-SA 2.5
null
2010-05-21T00:05:26.433
2010-05-21T01:15:11.127
null
null
127,257
[ "c#", "wcf", ".net-3.5" ]
2,881,864
1
null
null
-3
5,130
How to make inline png transparent inside div? using css ``` <div id="report'> <p> some text </p> <img src=transparent.png" /> </p> </div> ``` this is image for example . Other than ball i want to make transparent other white area. Which is looking grey in IE6 ![alt text](https://upload.wikimedia.org/wikipedia/commons/7/7a/Basketball.png) I want to do in css like this `div#report img {.....}` is it possible? Edit: I don't want to make whole image transparent Here i added example [http://jsbin.com/ubabo3](http://jsbin.com/ubabo3)
How to make inline png <img> transparent using css?
CC BY-SA 2.5
null
2010-05-21T12:09:31.873
2010-05-21T15:43:48.180
2017-02-08T14:25:51.280
-1
84,201
[ "javascript", "css", "xhtml", "internet-explorer-6", "png-24" ]
2,885,370
1
null
null
0
456
![alt text](https://i4.photobucket.com/albums/y116/fscussel/tabela.jpg) I'm trying to figure out why that table is showing like that, I mean, how to set every col to ocuppy the full width of the table frame? Here's the function that creates the table: ``` function rp_insertTable() { FM_log(3,"rp_insertTable() called"); var farmTable = dom.cn("table"); var ftableBody = dom.cn("tbody"); var i; var maximize = GM_getValue("Maximize_" + suffixGlobal, 0); farmTable.className = "FMtbg"; farmTable.id = "farmMachineTable"; farmTable.setAttribute('cellpadding', 2); farmTable.setAttribute('cellspacing', 1); farmTable.style.marginBotton = "12px"; farmTable.width = 1000; //farmTable.innerHTML = "<font size=1>"; //farmTable.style.fontSize = "8px"; //top row var tableRow = dom.cn("tr"); tableRow.className = "cbg1"; tableRow.width = "100%"; var tableCol = dom.cn("td"); tableCol.style.width = 1000; // tableCol.setAttribute("colspan", 15); var Button = dom.cn("div"); tableCol.appendChild(Button); tableRow.appendChild(tableCol); //Add Minimize||Maximize button tableCol = dom.cn("td"); var img = dom.cn("img"); if (maximize) { img.src = image['MINIMIZE']; //add minimize image img.title = T("Minimize"); } else { img.src = image['MAXIMIZE']; //add minimize image img.title = T("Maximize"); } img.style.height = '16px'; img.style.width = '30px'; img.style.cursor = "pointer"; Button = dom.cn("div"); Button.setAttribute("style", "width:30px;float:right;"); Button.appendChild(img); Button.addEventListener('click', function() { rp_min_max(); }, 0); tableCol.appendChild(Button); tableRow.appendChild(tableCol); ftableBody.appendChild(tableRow); //adding the top row //******************************** // option row tableRow = dom.cn("tr"); tableRow.className = "cbg1"; tableCol = dom.cn("td"); //tableCol.setAttribute("colspan", 15); if(GM_getValue("MaximizeSettings_" + suffixGlobal, 0)==1) { tableRow = dom.cn("tr"); tableRow.className = "cbg1"; tableCol = dom.cn("td"); //tableCol.setAttribute("colspan", 15); var settingsTable = dom.cn('table'); settingsTable.width = "100%"; settingsTable.setAttribute("margin-bottom",10); //1st option: randomiz farming var setRowRandomize = dom.cn('tr'); var setRandomizeC1 = dom.cn('td'); setRandomizeC1.width = 20; RandomButton = createInputButton("checkbox", 0, setRandomFarming); var random = GM_getValue("RandomFarming_" + suffixGlobal, 0); if (random == 1) { RandomButton.checked = true; } setRandomizeC1.appendChild(RandomButton); var setRandomizeC2 = dom.cn('td'); setRandomizeC2.innerHTML = T('SETRANDOMIZE'); setRowRandomize.appendChild(setRandomizeC1); setRowRandomize.appendChild(setRandomizeC2); //2nd option: delete temporary list var setRowDelTList = dom.cn('tr'); var setTListC1 = dom.cn('td'); setTListC1.width = 20; TListButton = createInputButton("checkbox", 0, setDelTList); var TList = GM_getValue("DelTList_" + suffixGlobal, 0); if (TList == 1) { TListButton.checked = true; } setTListC1.appendChild(TListButton); var setTListC2 = dom.cn('td'); setTListC2.innerHTML = T('SETDELTLIST'); setRowDelTList.appendChild(setTListC1); setRowDelTList.appendChild(setTListC2); //3rd option: read reports to make a priority queue var setRowReadRep = dom.cn('tr'); var setReadRepC1 = dom.cn('td'); setReadRepC1.width = 20; ReadRepButton = createInputButton("checkbox", 0, setReadRep); var ReadRep = GM_getValue("ReadRep_" + suffixGlobal, 0); if (ReadRep == 1) { ReadRepButton.checked = true; } setReadRepC1.appendChild(ReadRepButton); var setReadRepC2 = dom.cn('td'); setReadRepC2.innerHTML = T('SETREADREP'); setRowReadRep.appendChild(setReadRepC1); setRowReadRep.appendChild(setReadRepC2); //4th option: skipping of Villages var setRowVilSkip = dom.cn('tr'); var setVilSkipC1 = dom.cn('td'); setVilSkipC1.width = 20; SkipButton = createInputButton("checkbox", 0, setVillageSkipping); var vilSkip = GM_getValue("VillageSkipping_" + suffixGlobal, 0); if (vilSkip == 1) { SkipButton.checked = true; } setVilSkipC1.appendChild(SkipButton); var setVilSkipC2 = dom.cn('td'); setVilSkipC2.innerHTML = T('SETVILSKIP'); setRowVilSkip.appendChild(setVilSkipC1); setRowVilSkip.appendChild(setVilSkipC2); //5th option: marking of Farms var setRowFarmMark = dom.cn('tr'); var setFarmMarkC1 = dom.cn('td'); setFarmMarkC1.width = 20; farmMarkButton = createInputButton("checkbox", 0, setFarmMarking); var farmMark = GM_getValue("farmMarking_" + suffixGlobal, 0); if (farmMark == 1) { farmMarkButton.checked = true; } setFarmMarkC1.appendChild(farmMarkButton); var setFarmMarkC2 = dom.cn('td'); setFarmMarkC2.innerHTML = T('FARMMARKING'); setRowFarmMark.appendChild(setFarmMarkC1); setRowFarmMark.appendChild(setFarmMarkC2); // adding settingRows to the table settingsTable.appendChild(setRowRandomize); settingsTable.appendChild(setRowDelTList); settingsTable.appendChild(setRowReadRep); settingsTable.appendChild(setRowVilSkip); settingsTable.appendChild(setRowFarmMark); // add table tableCol.appendChild(settingsTable); tableRow.appendChild(tableCol); ftableBody.appendChild(tableRow); //add to table } //******************************** // end option row //second row tableRow = dom.cn("tr"); tableRow.className = "cbg1"; tableCol = dom.cn("td"); // tableCol.setAttribute("colspan", 24); tableCol.width = "100%"; tableCol.appendChild(createInputButton("submit", T('START_FARMING'), startEngine)); tableRow.appendChild(tableCol); ftableBody.appendChild(tableRow); //adding the second row //third row tableRow = dom.cn("tr"); tableRow.className = "cbg1"; //------------------------------------------------------------------ //checkbox tableCol = dom.cn("td"); //tableCol.width = "80%"; tableCol.style.fontSize = "13px"; //tableCol.style.fontWeigth = "bold"; //tableCol.style.fontFamily = "Arial"; tableCol.appendChild(createLinkButton("X", T('CHECKFARM_M'), function() {rp_marcadesmarcaFarm(true)})); tableCol.appendChild(createLinkButton("0", T('CHECKFARM_M'), function() {rp_marcadesmarcaFarm(false)})); tableRow.appendChild(tableCol); //------------------------------------------------------------------ //start tableCol = dom.cn("td"); tableCol.innerHTML = "<div style='cursor:help;' class='b' title='" + T('START_M') + "'>S</div>"; tableRow.appendChild(tableCol); //------------------------------------------------------------------ //end if (opcaoEND) { tableCol = dom.cn("td"); //tableCol.innerHTML = "<div style='cursor:pointer;' class='b' title='Select End Position'>E</div>"; //tableCol.addEventListener("click",rp_removeEndIndex,false); tableCol.appendChild(createLinkButton("E", T('END_M'), rp_removeEndIndex)); tableRow.appendChild(tableCol); } //------------------------------------------------------------------ //edit if (opcaoEDIT) { tableCol = dom.cn("td"); tableCol.innerHTML = "<div style='cursor:help;' class='b' title='" + T('EDIT_M') + "'>E</div>"; tableRow.appendChild(tableCol); } //------------------------------------------------------------------ //delete tableCol = dom.cn("td"); tableCol.innerHTML = "<div style='cursor:help;' class='b' title='" + T('DELETE_M') + "'>D</div>"; tableRow.appendChild(tableCol); //------------------------------------------------------------------ //farm tableCol = dom.cn("td"); tableCol.appendChild(createLinkButton(T('FARM') + " &#8595;", T('SORT_FARM'), sortFarms)); tableCol.width = "100%"; // tableCol.setAttribute("colspan", 8); tableRow.appendChild(tableCol); //------------------------------------------------------------------ //imagens tableCol = dom.cn("td"); tableCol.innerHTML = '<td><img src="img/x.gif" class="unit u' + user_race + '"></td>'; tableRow.appendChild(tableCol); for (i = 1; i < 10; i++) { tableCol = dom.cn("td"); tableCol.innerHTML = '<td><img src="img/x.gif" class="unit u' + (user_race + i) + '"></td>'; tableRow.appendChild(tableCol); } //------------------------------------------------------------------ //hero tableCol = dom.cn("td"); tableCol.width = "1"; tableCol.innerHTML = '<td><img src="img/x.gif" class="unit uhero" width="1px"></td>'; tableRow.appendChild(tableCol); ftableBody.appendChild(tableRow); //adding the 3rd row //add List //getting first farm in list for sIndex prioque = GM_getValue('priorityqueue'+ suffixLocal, '').split('>:)'); fque = GM_getValue('farmqueue'+ suffixLocal, '').split('>:)'); if (prioque.length >= 1 && prioque[0].length > 2) { var arr = prioque[0].split("|"); var tX = arr[0].split(",")[0]; var tY = arr[0].split(",")[1]; var sIndex = getSindexFromXY(tX,tY, suffixLocal); } else if (fque.length >= 1 && fque[0].length > 2){ var arr = fque[0].split("|"); var tX = arr[0].split(",")[0]; var tY = arr[0].split(",")[1]; var sIndex = getSindexFromXY(tX,tY, suffixLocal); } else { sIndex = getStartIndex(); } FM_log(4,"starting farmrows for: "+suffixLocal); farmList = GM_getValue("FarmList_" + suffixLocal, ""); totalTroops = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); if (farmList != "" && farmList != null) { farmList = farmList.split(">:)"); var eIndex = getEndIndex(); FM_log(3,"sIndex="+sIndex+"/eIndex="+eIndex); if (farmList.length > 0) { for (i = 0; i < farmList.length; i++) { if (maximize == 1) { tableRow = rp_createFarmRow(i, sIndex, eIndex); if (tableRow != null) { ftableBody.appendChild(tableRow); } } else { //the i have to count totalTroops here var arr = farmList[i].split("|"); if (arr[7] == 'true') { arr[1] = arr[1].split(","); for (var j = 0; j < arr[1].length; j++) { totalTroops[j] += parseInt(arr[1][j]); } } } } } } else { tableCol = dom.cn("td"); // tableCol.setAttribute("colspan", 18); tableCol.innerHTML = "<div style='margin: auto;'>" + T('NO_FARM_YET') + "</div>"; tableCol.style.fontSize = "13px"; tableCol.style.fontWeigth = "bold"; tableCol.style.fontFamily = "Arial"; ftableBody.appendChild(tableCol); } //bottom row tableRow = dom.cn("tr"); tableRow.className = "cbg1"; tableCol = dom.cn("td"); // tableCol.setAttribute("colspan", 7); //add space //Button = dom.cn("div"); //Button.innerHTML = "&nbsp;"; //Button.setAttribute("style", "width:10px;float:left;"); //tableCol.appendChild(Button); //Optimize button img = dom.cn("img"); img.src = image['OPTIMIZE']; img.title = T('OPTIMIZE_M'); img.style.height = '16px'; img.style.width = '16px'; img.style.cursor = "pointer"; Button = dom.cn("div"); Button.setAttribute("style", "width:16px;float:left;"); Button.appendChild(img); Button.addEventListener('click', function() { optimizeFarmsByDistance(); }, 0); tableCol.appendChild(Button); //add space Button = dom.cn("div"); Button.innerHTML = "&nbsp;"; Button.setAttribute("style", "width:5px;float:left;"); tableCol.appendChild(Button); //Import/Export Button img = dom.cn("img"); img.src = image['IM_EXPORT']; img.title = T('LOCAL_IM_EX_M'); img.style.height = '16px'; img.style.width = '16px'; img.style.cursor = "pointer"; Button = dom.cn("div"); Button.setAttribute("style", "width:16px;float:left;"); Button.appendChild(img); Button.addEventListener('click', function() { importExport(); }, 0); tableCol.appendChild(Button); //add space Button = dom.cn("div"); Button.innerHTML = "&nbsp;"; Button.setAttribute("style", "width:5px;float:left;"); tableCol.appendChild(Button); //globalImportExport img = dom.cn("img"); img.src = image['GIM_EXPORT']; img.title = T('GLOBAL_IM_EX_M'); img.style.height = '16px'; img.style.width = '16px'; img.style.cursor = "pointer"; Button = dom.cn("div"); Button.setAttribute("style", "width:16px;float:left;"); Button.appendChild(img); Button.addEventListener('click', function() { globalImportExport(); }, 0); tableCol.appendChild(Button); //add space Button = dom.cn("div"); Button.innerHTML = "&nbsp;"; Button.setAttribute("style", "width:5px;float:left;"); tableCol.appendChild(Button); //Delete Farm list Button img = dom.cn("img"); img.src = image['DELTEMPLIST']; img.title = T('DELTEMPLIST'); img.style.height = '16px'; img.style.width = '16px'; img.style.cursor = "pointer"; Button = dom.cn("div"); Button.setAttribute("style", "width:16px;float:left;"); Button.appendChild(img); Button.addEventListener('click', function() { clearque(); alert("Farmlist and Prioritylist deleted"); }, 0); tableCol.appendChild(Button); //add space Button = dom.cn("div"); Button.innerHTML = "&nbsp;"; Button.setAttribute("style", "width:5px;float:left;"); tableCol.appendChild(Button); //Settings Button img = dom.cn("img"); img.src = image['SETTINGS']; img.title = T('UPDATE_SETTINGS'); img.style.height = '16px'; img.style.width = '16px'; img.style.cursor = "pointer"; Button = dom.cn("div"); Button.setAttribute("style", "width:16px;float:left;"); Button.appendChild(img); Button.addEventListener('click', function() { min_max_settings(); }, 0); tableCol.appendChild(Button); //append the row in the table tableRow.appendChild(tableCol); for (i = 0; i < 11; i++) { tableCol = dom.cn("td"); tableCol.innerHTML = totalTroops[i]; tableRow.appendChild(tableCol); } ftableBody.appendChild(tableRow); farmTable.appendChild(ftableBody); var container = dom.get("content"); container.appendChild(farmTable); } ```
Javascript table not working correctly
CC BY-SA 3.0
null
2010-05-21T20:33:04.740
2017-05-30T17:29:55.123
2017-05-30T17:29:55.123
4,370,109
336,762
[ "javascript", "css-tables" ]
2,886,839
1
2,886,884
null
1
3,170
I'm using Computed Columns to provide me with the following information: Hours, Minutes, and Seconds between a Start DateTime and Finish DateTime (Where Minutes and Seconds are between 0 and 59 and Hours can be any value 0 or greater) Computed Column for Seconds: ``` datediff(second,[Start],[Finish]) % 60 ``` Computed Column for Minutes: ``` floor(datediff(second,[Start],[Finish]) / 60.0) % 60 ``` Computed Column for Hours: ``` floor(datediff(second,[Start],[Finish]) / 3600.0) ``` Here's the table for reference ![alt text](https://imgur.com/5SEpx.png) Note: I'm also calculating TotalElapsedSeconds, TotalElapsedMinutes, and TotalElapsedHours in other computed columns, but those are easy. I just feel like I might be missing out on a nice built in function in SQL. Note: I have a check constraint that ensures that Finish > Start
SQL: Is there a more efficient way to calculate elapsed hours, minutes, seconds?
CC BY-SA 2.5
0
2010-05-22T03:34:32.433
2013-09-18T13:20:17.170
2010-05-22T03:40:33.200
127,880
127,880
[ "sql" ]
2,888,309
1
2,888,331
null
5
4,637
What steps are needed to target previous versions of the .NET framework in Visual Studio 2010? I installed Visual Studio and the .NET 2.0 SDK (from [here](http://www.microsoft.com/downloads/details.aspx?FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en)), but only .NET 4.0 is in the list of available frameworks. ![Screenshot](https://i.imgur.com/VFrnRmB.png) What am I missing?
Unable to target .NET 2.0 in Visual Studio 2010
CC BY-SA 3.0
null
2010-05-22T13:49:17.117
2015-07-23T17:34:53.200
2015-07-23T17:34:53.200
63,550
66,341
[ ".net", "visual-studio-2010", "multi-targeting" ]
2,888,819
1
2,888,823
null
0
2,020
``` <?php function VerifyForm(&$values, &$errors) { if (strlen($values['fname']) == 0) $errors['fname'] = 'Enter First Name'; if (strlen($values['lname']) == 0) $errors['lname'] = 'Enter Last Name'; if (strlen($values['mname']) == 0) $errors['mname'] = 'Enter Middle Name'; if (strlen($values['address']) == 0) $errors['address'] = 'Enter Address'; if (strlen($values['terms']) == 0) $errors['terms'] = 'Please Read Terms and Agreement and Check the box.'; if (!ereg('.*@.*\..{2,4}', $values['email'])) $errors['email'] = 'Email address invalid'; else if (strlen($values['email']) < 0) $errors['email'] = 'Enter Email Address'; return (count($errors) == 0); } function DisplayForm($values, $errors) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>GIA Soap » Products » Customer Informations</title> <link href="stylesheet/style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js_files/jquery.js"></script> <script type="text/javascript" src="js_files/sliding_effect.js"></script> <script type="text/javascript" src="js_files/slideshow.js"></script> </head> <body> <div class="bg_top"> <div class="bg_bottom"> <div class="wrapper"> <div class="header"> <div class="logo"> </div> <div class="logo_text"> <div class="logo_head_text">Gia Soap Making</div> <div class="logo_sub_text">Sub text here</div> </div> </div> <div class="h_nav"> <div class="h_nav_dash"> </div> </div> <div class="container"> <div class="content_term"> <div class="content_terms"> <br /> <h1><p>Customer Information</p></h1><br /> <p>Please the following correctly.</p> <div class="customer_info"> <?php if (count($errors) > 0) echo "<p>There were some errors in your submitted form, please correct them and try again.</p>"; ?> <form method="post" action="<?= $_SERVER['PHP_SELF'] ?>"> <!-- hidden values --> <input type="hidden" value="<?php echo $papaya; ?>" name="papaya" /> <input type="hidden" value="<?php echo $carrot; ?>" name="carrot" /> <input type="hidden" value="<?php echo $guava; ?>" name="guava" /> <label for="customer_fname">First Name (<i>Required</i>)</label> <input type="text" class="textbox" id="customer_fname" name="customer_fname" value="<?= htmlentities($values['fname']) ?>" /> <span class="error_msg"><?= $errors['fname'] ?></span> <label for="customer_lname">Last Name (<i>Required</i>)</label> <input type="text" class="textbox" id="customer_fname" name="customer_fname" value="<?= htmlentities($values['lname']) ?>" /> <span class="error_msg"><?= $errors['lname'] ?></span> <label for="customer_mname">Middle Name (<i>Required</i>)</label> <input type="text" class="textbox" id="customer_fname" name="customer_fname" value="<?= htmlentities($values['mname']) ?>" /> <span class="error_msg"><?= $errors['mname'] ?></span> <label for="customer_add">Address (<i>Required : Complete Address Please</i>)</label> <input type="text" class="textbox" id="customer_add" name="customer_add1" value="<?= htmlentities($values['address']) ?>" /><br /> <input type="text" class="textbox" id="customer_add" name="customer_add2" /><br /> <input type="text" class="textbox" id="customer_add" name="customer_add3" /> <span class="error_msg"><?= $errors['address'] ?></span> <label for="customer_email">Email Address (<i>Required</i>)</label> <input type="text" class="textbox" id="customer_email" name="customer_email" value="<?= htmlentities($values['email']) ?>" /> <span class="error_msg"><?= $errors['email'] ?></span> <label for="customer_phone">Phone Number </label> <input type="text" class="textbox" id="customer_phone" name="customer_phone" /> <label for="customer_mobile">Mobile Number </label> <input type="text" class="textbox" id="customer_mobile" name="customer_mobile" /> <br /><br /> <div class="terms"> <center> <h1>Terms and Agreement</h1><br /> <p>Please read the following.</p><br /> </div> <br /> <input type="checkbox" name="terms" value="<?= htmlentities($values['terms']) ?>" /> I Read the Terms and Agreement<br /><br /> <span class="error_msg"><?= $errors['terms'] ?></span> <input type="submit" value="Send Order" class="prod_subbtn" /> </center> </form> </div> </div> </div> <div class="clear"></div> </div> <?php include ('includes/footer.php'); ?> </div> </div> </div> </body> </html> <?php } function ProcessForm($values) { $papaya = $_POST['papaya']; $carrot = $_POST['carrot']; $guava = $_POST['guava']; $fname = $_POST['fname']; $lname = $_POST['lname']; $mname = $_POST['mname']; $address = $_POST['address']; } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $formValues = $_POST; $formErrors = array(); if (!VerifyForm($formValues, $formErrors)) DisplayForm($formValues, $formErrors); else ProcessForm($formValues); } else DisplayForm(null, null); ?> ``` The output is: ![Screenshot of output](https://i218.photobucket.com/albums/cc173/watanabe123/output.jpg) The PHP code that is supposed to put in the field values can be seen by users.
Form PHP code is output to the screen
CC BY-SA 3.0
null
2010-05-22T16:17:42.100
2017-04-16T19:58:28.083
2017-04-16T19:58:28.083
3,478,852
242,839
[ "php" ]
2,888,985
1
null
null
4
9,968
I can connect to a remote SQL 2008 Server instance, but I cannot see all the databases in the instance using SQL Server 2008 Management Studio. I suspect that my problem has something to do with not all database in the remote instance having the same version. For example, I "upgraded" a 2005 database to 2008 by doing a backup from 2005 and importing it into 2008. When I realized that this was not one of the database that I could see from my other PC, I noticed that the compatibility level of the imported was still 2005, so I changed it to 2008. Still I could not see the database. On that remote server, the instance node is named "sql2008", and is "Version 10". When I connect to the sql2008 remote instance from my local PC, the connection is shown locally as being a "SQL Server Version 8.0" instance. I suspect that locally, I am only being shown databases that are somehow in the remote 2008 instance but have not been upgraded. I guess I don't know what constitutes an upgraded database and I don't know how to connect to see all the databases, even if this requires multiple connections from the source PC. The local machine is Windows 7 Ultimate. The remote host is Windows XP Pro. [Related](https://stackoverflow.com/questions/2885989/sql-server-2008-allow-remote-connections) -not being able to see the SQL Server 2008 instance. # Update: This is what I see on the remote server using Mgt Studio, namely, a SQL 2008 instance and a 2000 instance. ![alt text](https://content.screencast.com/users/Dokmanc/folders/Jing/media/91900c56-cbce-47fc-bc5c-2fe9a5431880/2010-05-22_1416.png) When I log onto the SQL 2008 instance and perform the following query SELECT @@VERSION As Version, SERVERPROPERTY('ComputerNamePhysicalNetBIOS') as ComputerNamePhysicalNetBIOS, SERVERPROPERTY('ServerName') As ServerName, SERVERPROPERTY('MachineName') As MachineName The result re-confirms that the 2008b instance shown above with a version of 10 is a 2008 instance: ``` Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (Intel X86) Mar 29 2009 10:27:29 Copyright (c) 1988-2008 Microsoft Corporation Developer Edition on Windows NT 5.1 <X86> (Build 2600: Service Pack 3) USPL-DOKMANC2 USPL-DOKMANC2\SQL2008B USPL-DOKMANC2 ``` OK, now from my LOCAL box, I used SQL Mgt Studio to try and connect to USPL-DOKMANC2 (the remote box.) [alt text http://content.screencast.com/users/Dokmanc/folders/Jing/media/ec146f56-5651-4968-9286-82508dc5d3b2/2010-05-22_1426.png](http://content.screencast.com/users/Dokmanc/folders/Jing/media/ec146f56-5651-4968-9286-82508dc5d3b2/2010-05-22_1426.png) ...I connect to the remote w/o the port I get this error: [alt text http://content.screencast.com/users/Dokmanc/folders/Jing/media/d3c5bc46-c286-4708-a2f5-282fc76124cb/2010-05-22_1427.png](http://content.screencast.com/users/Dokmanc/folders/Jing/media/d3c5bc46-c286-4708-a2f5-282fc76124cb/2010-05-22_1427.png) But if I enter the DEFAULT port, I am able to connect. Note that the SQL2008 connection that I just added appears as being version "8" (SQL 2000). [alt text http://content.screencast.com/users/Dokmanc/folders/Jing/media/ea80af5e-4a1f-4417-9327-0b76476b4d14/2010-05-22_1426.png](http://content.screencast.com/users/Dokmanc/folders/Jing/media/ea80af5e-4a1f-4417-9327-0b76476b4d14/2010-05-22_1426.png) I seem to be connecting to my SQL2000 instance again even though I specified in my connection params to connect to SQL2008b, a 2008 instance. I can't seem to see my remote 2008 instance on uspl-dokmanc2. I keep getting my 2000 default instance databases showing up under sql2008b. Based on excellenf feedback below that SQL is most likely disregarding the name of the instance when tryingt o connect and determining the instance from the port specified. Now I just need to know the port that the SQL2008b instance is running on. I expected that SQL Mgt Config would tell me. The port is blank. Does this imply a default port? What would it be for 2008, not ethat I already have another 2008 instance, so if they all have to have separate ports, the normal 2008 default is probably not it. Here's what I see in SQL Mgt Config for the 2008b instance. No port mentioned: ![alt text](https://content.screencast.com/users/Dokmanc/folders/Jing/media/377bd6b7-2932-48f5-b85f-f2d3d91b09d8/2010-05-22_1607.png)
Can't see *all* databases in a remote SQL Server instance
CC BY-SA 2.5
0
2010-05-22T17:08:49.257
2010-05-22T20:12:01.123
2017-05-23T12:01:34.363
-1
109,676
[ "sql-server" ]
2,889,501
1
null
null
121
231,010
I am currently playing around with CSS3 and trying to achieve a text effect like this (the black blurry inner shadow): ![](https://i.stack.imgur.com/rw4vf.jpg) But I cannot find a way to create text shadows the text. I wonder whether it is still possible because the box-shadow element is able to render shadow inside like this: ``` box-shadow: inset 0px -5px 10px 0px rgba(0, 0, 0, 0.5); ``` Any ideas?
Inner text shadow with CSS
CC BY-SA 3.0
0
2010-05-22T19:34:17.037
2020-03-31T22:06:24.807
2018-04-24T04:57:27.973
6,083,675
72,448
[ "css", "text", "shadow" ]
2,889,664
1
null
null
2
2,623
![alt text](https://nettuts.s3.amazonaws.com/410_typography/images/webtypography1.png) When I change the size of a font in CSS, how do I make it so no matter what size the font is (from 12px to 200px), that the "Cap Height" (pic) of the text will always 'visually' have 10px padding on top? Otherwise what I'm doing is every time I change the font size, I have to go back and reposition the top/margin-top etc. Here's what I have: CSS: ``` #header .statement { position: relative; background: white; padding-top: 10px; display: inline; float: left; margin-left: 0; margin-right: 0; width: 960px; } #header .statement h3 { position: relative; font-size: 160px; letter-spacing: -10px; font-weight: bold; color: #141414; font-family: Helvetica, sans-serif; text-align: center; } ``` HTML sample: ``` <div id='header'> <div class='intro'> Stuff before the statement </div> <div class='statement'> <h3> <p>A Statement</p> </h3> <div class='large_spacer'></div> </div> <div class='clearfix'></div> </div> ``` This is what it looks like with `line-height: 0`: [alt text http://ilove4d.com/ex/css-typography.png](http://ilove4d.com/ex/css-typography.png) This is with `line-height: 1`: [alt text http://ilove4d.com/ex/css-typography-2.png](http://ilove4d.com/ex/css-typography-2.png) If I change the `font-size` from 160px to 20px, the white space proportionally gets smaller... How do I get around that? Note: it's adding like 20px extra whitespace, even if margin:0;padding:0;...
CSS to position text based on Top of text?
CC BY-SA 2.5
null
2010-05-22T20:38:09.687
2010-08-29T02:36:09.980
2017-02-08T14:25:54.110
-1
169,992
[ "css", "typography" ]
2,889,733
1
2,889,751
null
9
16,684
Check out this pic of my SQL 2008 Management Configuration screen for TCP: ![alt text](https://content.screencast.com/users/Dokmanc/folders/Jing/media/377bd6b7-2932-48f5-b85f-f2d3d91b09d8/2010-05-22_1607.png) I need to know what port I am running on. Based on [this previous post](https://stackoverflow.com/questions/2888985/cant-see-all-databases-in-a-remote-sql-server-instance), I don't believe that it is 1433, which I guess is the default. When I check my port number in SQL Config Mgr., it is blank. Does this suggest a default port? Note that I have multiple SQL Server instances on the db server. One 2000 instance and two 2008 instances. I want to know the port of the 2008b instance. The first display is for TCP. I'm not sure what VIA is, but check it out: ![alt text](https://content.screencast.com/users/Dokmanc/folders/Jing/media/16906ba3-04f0-47f5-ada2-1a7328f7adea/2010-05-22_1659.png) Can you help? I restarted my sql2008b instance and checked the log to look for a msg that indicated the port that it was using. It showed this: ``` 2010-05-22 20:06:29.27 Server A self-generated certificate was successfully loaded for encryption. 2010-05-22 20:06:29.27 Server Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQL2008B ]. 2010-05-22 20:06:29.27 Server Server local connection provider is ready to accept connection on [ \\.\pipe\MSSQL$SQL2008B\sql\query ]. 2010-05-22 20:06:29.32 Server Server is listening on [ 127.0.0.1 <ipv4> 5786]. 2010-05-22 20:06:29.32 Server Dedicated admin connection support was established for listening locally on port 5786. ``` Yet, when I tried to log on using the following as the server name: (local)\sql2008b,5786 I still was unable to connect, while logged onto the remote box (hence using "local".) A suggstion was made below to set the port myself. This occurred to me to try but there are a couple of things that are botehring me: 1) Why can I connect to my SQL 2000 instance without monkeying with anything to get it to work (but not my 2008 instance)? 2) The IP addresses shown in TCP1 and 2 don't appear correct. The one I blacnked out, presumably theIP address of my router and the one needed to make my server visible on the Internet, was not correct. Also , the local 192.168.1.100 was not correct. The db server server's IP adress end in a different number. perhaps I sh
What port is my SQL2008 instance running on?
CC BY-SA 2.5
null
2010-05-22T20:58:17.963
2010-05-23T02:59:48.640
2017-05-23T12:01:32.580
-1
109,676
[ "sql-server" ]
2,892,144
1
null
null
1
152
Why? Test console: ![test console](https://i.stack.imgur.com/13pbq.png) My Application: ![application](https://i.stack.imgur.com/005DJ.png)
Different result from my app and test console Facebook
CC BY-SA 3.0
0
2010-05-23T14:42:00.927
2012-08-12T01:07:53.323
2011-09-24T12:52:48.053
142,162
347,466
[ "facebook" ]
2,894,007
1
null
null
1
1,068
I am having issues loading my effect.fx from directx. When I step into my application, my ID3D10Effect *m_pDefaultEffect; pointer remains empty. the address remains at 0x000000 below is my code ``` #pragma once #include "stdafx.h" #include "resource.h" #include "d3d10.h" #include "d3dx10.h" #include "dinput.h" #define MAX_LOADSTRING 100 class RenderEngine { protected: RECT m_screenRect; //direct3d Members ID3D10Device *m_pDevice; // The IDirect3DDevice10 // interface ID3D10Texture2D *m_pBackBuffer; // Pointer to the back buffer ID3D10RenderTargetView *m_pRenderTargetView; // Pointer to render target view IDXGISwapChain *m_pSwapChain; // Pointer to the swap chain RECT m_rcScreenRect; // The dimensions of the screen ID3D10Texture2D *m_pDepthStencilBuffer; ID3D10DepthStencilState *m_pDepthStencilState; ID3D10DepthStencilView *m_pDepthStencilView; //transformation matrixs D3DXMATRIX g_mtxWorld; D3DXMATRIX g_mtxView; D3DXMATRIX g_mtxProj; //Effect members ID3D10Effect *m_pDefaultEffect; ID3D10EffectTechnique *m_pDefaultTechnique; ID3DX10Font *m_pFont; // The font used for rendering text // Sprites used to hold font characters ID3DX10Sprite *m_pFontSprite; ATOM RegisterEngineClass(); void DoFrame(float); bool LoadEffects(); public: static HINSTANCE m_hInst; HWND m_hWnd; int m_nCmdShow; TCHAR m_szTitle[MAX_LOADSTRING]; // The title bar text TCHAR m_szWindowClass[MAX_LOADSTRING]; // the main window class name void DrawTextString(int x, int y, D3DXCOLOR color, const TCHAR *strOutput); //static functions static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); static INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); bool InitWindow(); bool InitDirectX(); bool InitInstance(); int Run(); void ShutDown(); RenderEngine() { m_screenRect.right = 800; m_screenRect.bottom = 600; } }; ``` below is the implementation ``` bool RenderEngine::LoadEffects() { HRESULT hr; ID3D10Blob *pErrors = 0; // Create the default rendering effect LPCWSTR effectFilename = L"effect.fx"; hr = D3DX10CreateEffectFromFile(effectFilename, NULL, NULL, "fx_4_0", D3D10_SHADER_ENABLE_STRICTNESS, 0, m_pDevice, NULL, NULL, &m_pDefaultEffect, &pErrors, NULL); if(pErrors)// at this point, m_pDefaultEffect is still empty but pErrors returns data which means there is {//errors return false; //ends here } //m_pDefaultTechnique = m_pDefaultEffect->GetTechniqueByName("DefaultTechnique"); return true; } ``` My directx Device does work. My effect.fx file is in the same folder as my solution files (.cpp and header files) ![alt text](https://i159.photobucket.com/albums/t150/numerical25/director.jpg) [edit] ![alt text](https://i159.photobucket.com/albums/t150/numerical25/Efail.jpg) I tried putting effect.fx in the same folder as the executable too I've been messing around with some other code I have that works. I did not know this but it appears that the layout of .fx file can effect whether I upload the file successfully or not. So I provided my effect code as well ``` matrix g_mtxWorld; matrix g_mtxView; matrix g_mtxProj; #define MAX_LIGHTS 10 // Ensure this is the same as the C++ value int4 g_viLightStatus; float4 g_vLightColors[MAX_LIGHTS]; float4 g_vLightDirections[MAX_LIGHTS]; struct VS_INPUT { float3 vPosition : POSITION; float3 vNormal : NORMAL; float4 vColor : COLOR0; float2 vTexCoords : TEXCOORD; }; struct VS_OUTPUT { float4 vPosition : SV_POSITION; float3 vNormal : NORMAL; float4 vColor : COLOR0; }; VS_OUTPUT DefaultVS(VS_INPUT dataIn) { VS_OUTPUT result; float4 vPos = float4(dataIn.vPosition, 1.0f); float4 vFinalPos = mul(vPos, g_mtxWorld); vFinalPos = mul(vFinalPos, g_mtxView); vFinalPos = mul(vFinalPos, g_mtxProj); result.vPosition = vFinalPos; result.vNormal = float3(0,0,0); result.vColor = float4(1,0,0,0); return result; } float4 DefaultPS(VS_OUTPUT dataIn) : SV_Target { return dataIn.vColor; } technique10 DefaultTechnique { pass Pass0 { SetGeometryShader(NULL); SetVertexShader(CompileShader(vs_4_0, VS())); SetPixelShader(CompileShader(ps_4_0, PS())); } } ```
cannot retrieve effect.fx file
CC BY-SA 2.5
null
2010-05-23T23:48:20.810
2010-07-19T03:04:13.403
2017-02-08T14:25:55.837
-1
201,934
[ "c++", "c", "directx" ]
2,895,022
1
null
null
4
2,878
Wondering--does anyone know of any good articles explaining the CSS technique allowing multiple instances of a class to flow down the page relative to the items above it. Not explaining it that well. Veerle' Pierter's does it on this page: [http://veerle.duoh.com/belgiangraphicdesign](http://veerle.duoh.com/belgiangraphicdesign) Although I'm not sure I want to use a technique like her's that requires entering of the height per element via her EE installation. I made a little graphic of what I am trying to acheive; ![enter image description here](https://i.stack.imgur.com/Xs7tJ.png) The key is I need a robust technique for doing it. Something where the markup could be as simple as; ``` <div class="box"> Number 1 </div> <div class="box"> Number 2 </div> <div class="box"> Number 3 </div> <div class="box"> Number 4 </div> <div class="box"> Number 5 </div> ... ``` Would love any pointers in the right direction.
Dynamic columns/rows
CC BY-SA 3.0
0
2010-05-24T05:52:25.770
2012-03-06T14:46:45.547
2011-10-16T19:10:35.520
540,162
428,741
[ "css" ]
2,896,118
1
null
null
0
338
I need to change the color of certain attributes/tags. I am switching from Dreamweaver and making the skin has been really hard in TextMate. ![Dreamweaver and TextMate comparison](https://imgur.com/5U0OM.png) As you can see, I want to change the a and img tags along with all of their attributes. The closest I've come to find is `entity.other.attribute-name` which only works with id for some reason `entity.other.attribute-name.id` Bonus would be the scope selector for the value of an attribute, e.g. "Logo" alt in the above example. Thank You!
TextMate Theme Select Attribute Value
CC BY-SA 2.5
null
2010-05-24T10:05:35.613
2010-05-25T04:38:31.113
null
null
155,741
[ "textmate" ]
2,896,992
1
null
null
5
798
The block quotes are from the Java Docs - > A FilterInputStream contains some other input stream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.A DataInputStream lets an application read primitive Java data types from an underlying input stream in a machine-independent way. The `DataInputStream` therefore extends `FilterInputStream` > An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream. However, for some reason the `ObjectInputStream` does NOT extend `FilterInputStream` even though it is also reading objects (this time and not primitive types) from the underlying input stream. Here is the branching of the concerned classes. ![alt text](https://imgur.com/667K9.png) Is there is a design reasoning for the same?
Shouldn't ObjectInputStream extend FilterInputStream?
CC BY-SA 2.5
0
2010-05-24T12:37:27.230
2010-05-24T13:17:31.987
null
null
1,140,524
[ "java", "design-patterns", "java-io" ]
2,897,233
1
2,937,228
null
3
1,219
I'm developing a plugin for Eclipse. I'd like it to suggest the user to save unsaved resources before running. This is in a similar behavior to how eclipse suggest you to save unsaved files before debugging. In essence, I would like to open the following dialog: ![alt text](https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/OS+IDE/images/saveresources.gif) Any help will be greatly appreciate.
Java Eclipse plugin Development - Save all project's files programmatically
CC BY-SA 2.5
0
2010-05-24T13:19:02.740
2010-05-30T09:10:55.277
2017-02-08T14:25:56.867
-1
78,283
[ "java", "eclipse", "eclipse-plugin" ]
2,897,225
1
2,897,416
null
1
1,104
The Following is the basic skeleton for my MATLAB program. Each box is a class definition. Scroll down for the error. ![alt text](https://imgur.com/IpJBO.png) 1. Each Class has a custom constructor --- ``` Undefined function or variable 'Troom'. Error in ==> wall>wall.wall at 31 function o = wall(Tr) Error in ==> mainfile at 5 w1 = wall(); ``` This comes when I create an object of Class wall from another file "mainfile" --- 1. Why is this happening? 2. Am I getting wrong in the concepts of OOP for Matlab specific? 3. How do I resolve this? Thanks in Advance! --- PS: ``` function o = wall() Tr = o.Troom*2; o.N = round(1/o.dx) + 1; o.T = Tr * ones(o.N,1); o.Tinf = Tr; o.update_properties(); end ``` --- ``` classdef wall properties dx = 0.01; dt = 0.4; L = 0.16; N; tlimit = 1505.2; sbc = 5.670400e-8 % The Stefan-Boltzmann Constant a; hi; % Surface Conductivity of Inner Surface bi; ho; % Surface Conductivity of Outer Surface bo; lamb; Troom = 298; % Room Temperature (K) Tinf; T; room = compartment(); conc = concrete(); fire = fireProperties(Troom); end ```
Undefined Variable in Matlab
CC BY-SA 2.5
null
2010-05-24T13:18:13.340
2012-03-20T14:11:16.540
2012-03-20T14:11:16.540
21,234
127,212
[ "oop", "matlab" ]
2,897,646
1
2,898,577
null
2
2,817
I've created an overlay that will popup whenever someone wants to upload a file to the system. The Gui looks like this (when the overlay is up) ![alt text](https://farm5.static.flickr.com/4061/4635717882_3e09d88680_o.png) I have two problems with this: 1. I attached a a4j:support object that, onclick, makes the overlay disappear. The problem with this is that when I click the upload button on the upload component, support catches the click event and closes the overlay with the upload component before I have the chance to finish the operation. 2. I chose two different style classes. One for the overlay and one for the upload panel. But the styling of the overlay takes over the upload component and it becomes transparent as well. The implementation looks something like this: ``` <h:panelgroup layout="block" styleClass="overlayClass"> <rich:fileUpload styleClass="uploadStyleClass"... /> <a4j:support event="onclick" action="#{mrBean.switchOverlayState}" reRender="..."/> </h:panelGroup> ``` The CSS: ``` .overlayClass { Opacity: 0.5; position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: #000; } .uploadStyleClass { opacity: 1.0; ... } ``` Thanks for the help!
JSF - Creating an overlay for popup panels
CC BY-SA 2.5
null
2010-05-24T14:21:45.873
2010-05-25T09:57:33.493
2017-02-08T14:25:57.550
-1
128,076
[ "css", "ajax", "jsf", "richfaces" ]
2,898,870
1
2,899,689
null
31
2,748
I am developing functional domain specific embedded language within C++ to translate formulas into working code as concisely and accurately as possible. I posted a prototype in the comments, it is about two hundred lines long. Right now my language looks something like this (well, actually is going to look like): ``` // implies two nested loops j=0:N, i=0,j (range(i) < j < N)[T(i,j) = (T(i,j) - T(j,i))/e(i+j)]; // implies summation over above expression sum(range(i) < j < N))[(T(i,j) - T(j,i))/e(i+j)]; ``` I am looking for possible syntax improvements/extensions or just different ideas about expressing mathematical formulas as clearly and precisely as possible (in any language, not just C++). Can you give me some syntax examples relating to my question which can be accomplished in your language of choice which consider useful. In particular, if you have some ideas about how to translate the above code segments, I would be happy to hear them. Thank you. Just to clarify and give an actual formula, my short-term goal is to express the following ![alt text](https://upload.wikimedia.org/math/3/3/7/3370db003ef2cdd0e3a74f210b67399d.png)![alt text](https://upload.wikimedia.org/math/5/6/1/56129c490fe77281a27d963230ed73b4.png) expression concisely where values in `<>` are already computed as 4-dimensional arrays.
Suggestions on syntax to express mathematical formula concisely
CC BY-SA 2.5
0
2010-05-24T17:23:13.570
2010-06-04T10:15:04.297
2017-02-08T14:25:58.597
-1
206,328
[ "c++", "math", "programming-languages", "syntax", "language-design" ]
2,900,237
1
2,900,465
null
5
1,814
How are GUIs like this made, but in console applications? There are many examples, such as alsamixer: ![alt text](https://i.stack.imgur.com/GadSv.png)
Console Application GUIs
CC BY-SA 3.0
null
2010-05-24T20:53:19.917
2017-09-15T06:48:47.790
2017-09-15T06:48:47.790
4,184,530
284,016
[ "user-interface", "console" ]
2,901,228
1
2,901,235
null
3
633
The following code ``` int _main() {return 0;} ``` Compiled using the command: ``` gcc -s -nostdlib -nostartfiles 01-simple.c -o01-simple.exe ``` OllyDbg produced this output: ![alt text](https://imgur.com/g81vK.png) Can you explain what happens here? Analysis so far: ``` // these two seems to be an idiom: PUSH EBP // places EBP on stack MOV EBP, ESP // overwrites EBP with ESP MOV EAX, 0 // EAX = 0 LEAVE // == mov esp, ebp // pop ebp // according to // http://en.wikipedia.org/wiki/X86_instruction_listings ``` What is the meaning of all this?
Explanation of the disassembly of the simplest program (x86)
CC BY-SA 2.5
0
2010-05-25T00:14:42.743
2010-05-25T00:32:43.437
2010-05-25T00:32:43.437
61,337
349,448
[ "c", "assembly", "x86", "ollydbg" ]
2,901,635
1
2,901,810
null
0
1,072
I have some arraylist string with keyword inside like that ! A windows is arraylist string with keyword is bold Struct of window : 9 words before + keyword + 9 words after You can see some window overlaping ![alt text](https://i250.photobucket.com/albums/gg272/vtienuit/windows.png) How to i combine that arraylist to receive like that : ![alt text](https://i250.photobucket.com/albums/gg272/vtienuit/compid.png) Thanks
How to combine array list string in java?
CC BY-SA 2.5
0
2010-05-25T02:34:50.430
2010-05-25T03:38:15.613
2017-02-08T14:25:59.613
-1
326,878
[ "java" ]