Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
6,036,331
1
6,036,370
null
12
11,464
I am using a jQuery UI Dialog to pop-up some supplementary information on one of my pages. For some reason, in Chrome 11 and Firefox 4, the titlebar is ridiculously tall. For some reason it is ok in IE 9. Here's a screenshot of what it looks like: ![Screenshot of too-tall UI titlebar](https://i.stack.imgur.com/ew5vU.png) I have tried manually setting the height of the title bar, which only resizes the colored area of the title bar, but does not adjust the position of the title text or paragraph text. Inspecting in Chrome developer tools reveals no odd margins or padding that could be causing this issue. Anyone have an idea as to what could be causing this? Below I have included the script and markup for this dialog. As far as I can tell, there is no special CSS being applied to this dialog box (other than the standard jQueryUI CSS) In case it matters, I am using ASP.Net/C# with jQuery 1.5.2 and jQueryUI 1.8.12. ASP/HTML: ``` <!-- ssn --> <div class="input-block"> <asp:Label ID="lblSsn" runat="server" CssClass="input-label" AssociatedControlID="tbSsn">Social Security Number (<a id="show-ssn-disclosure" href="#">More Info</a>)</asp:Label> <asp:TextBox ID="tbSsn" runat="server" CssClass="input" /> <div id="ssn-disclosure-text"> <p>SSN disclosure is <strong>highly recommended</strong> if you have one. The University is required by federal law to report your SSN and other pertinent information to the Internal Revenue Service pursuant to the reporting requirements imposed by the Taxpayer Relief Act of 1997. The University will use the SSN you provide to verify the identity of each applicant, to link to the Payroll Office to verify amounts paid to students receiving teaching assistantships and research assistantships, and to link financial awards and admission data to registration histories and student records. This record-keeping system was established before January 1, 1975, pursuant to the authority of the Regents of the University of California under Article IX, Section 9 of the Constitution of the State of California. This notification is provided to you as required by the Federal Privacy Act of 1974.</p> </div> </div><!--/input-block--> ``` Script: ``` $(function() { //hide ssn disclosure dialog box var $ssnDialog = $('#ssn-disclosure-text').hide().dialog({ autoOpen: false, resizable: false, modal: true, width: 500, title: 'SSN Disclosure' }); //binding for ssn disclosure dialog $('#show-ssn-disclosure').click(function(e) { e.preventDefault(); $ssnDialog.dialog('open'); }); }); ``` Any viable suggestions for fixes would be much appreciated.
jQuery UI Dialog Titlebar too tall
CC BY-SA 3.0
0
2011-05-17T19:54:26.327
2014-03-14T15:55:31.103
null
null
107,820
[ "jquery", "jquery-ui", "jquery-ui-dialog" ]
6,036,354
1
6,038,132
null
0
810
I have got an assignment in VBA where I have to convert an existing table's rows to colums, but I only have to show two rows from the table and all that has to be done with the help of an ActiveX control button. I also have to change the table cells values to Euros and back to Estonian Kroons with the help of a button. Thirdly, I have to find a value and the price of it according to the new table. I have already written the code as much as I could, but it does not work correctly. There are a few problems: a)firstly, after pressing the solving button it does not give all the values in the new table, b)secondly, when I try to use the currency changing buttons Euros/Kroons, it multiplies my values infinitely and thirdly I do not get a right answer when I have to find the cheapest SMS package name and the price of it. I guess my explanation was very messy, so I am adding the Excel file that can be seen here: [http://www.2shared.com/file/awEG5hf-/KT_online.html](http://www.2shared.com/file/awEG5hf-/KT_online.html) The code is really long, so I don't want to add it here, but the image from the assignment looks like this: ![enter image description here](https://i.stack.imgur.com/zkLGP.png) that image shows the correct solution of the assignment. I really, really appreciate it if someone could find time to help me. A huge thank you.
VBA table columns/rows converting and changing currency
CC BY-SA 3.0
null
2011-05-17T19:56:08.573
2011-05-17T23:02:26.757
null
null
609,376
[ "vba" ]
6,036,431
1
null
null
0
2,457
How do we edit the master page to Show the User name with the drop down showing just (Sign out, Sign as a different user). Yet remove everything else (site actions, browse, page, my site, my profile, my settings) ![enter image description here](https://i.stack.imgur.com/UHKni.jpg)
SharePoint 2010 Show User Name and Sign Out
CC BY-SA 3.0
null
2011-05-17T20:04:37.703
2012-04-13T15:13:51.250
null
null
352,334
[ "sharepoint", "sharepoint-2010" ]
6,036,434
1
6,098,641
null
0
1,833
i have installed ckeditor into my asp.mvc project, now i need to implement just some of the options that are implemented. How do i define the config file or what i have wrong in it? ``` <link href="../../ckeditor/contents.css" rel="stylesheet" type="text/css"></link> <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script> <script src="../../../../ckeditor/config.js" type="text/javascript"></script> <textarea class="ckeditor" cols="20" id="Article_Text" name="Article.Text" rows="2"> </textarea> ``` how ever this still render with default settings. and my ckeditor config.js ``` CKEditor1.editorConfig = function( config ) { // Define changes to default configuration here. For example: config.language = 'cz'; config.uiColor = '#FFF'; }; CKEditor1.config.toolbar = new object[] { new object[] { "Source" }, new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" }, new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent" }, "/", new object[] { "Styles", "Format", "Font", "FontSize", "TextColor", "BGColor", "-", "About" }, }; ``` ![CKEditor_preview](https://i.stack.imgur.com/B8f46.png)
Customise CKEditor
CC BY-SA 3.0
null
2011-05-17T20:04:54.823
2011-05-23T14:31:02.487
2011-05-18T08:10:12.087
637,493
637,493
[ "asp.net-mvc-2", "ckeditor" ]
6,036,515
1
6,315,306
null
1
134
How can I remove the labels and keep the Y axis? I don't want remove the axis, only the labels. Basically the y axis without text or numbers ![enter image description here](https://i.stack.imgur.com/6esuy.jpg) ``` chart1.addAxis("y", { labels: false, vertical : true, leftBottom : true, }); ```
Question about label in axis
CC BY-SA 3.0
null
2011-05-17T20:12:59.920
2011-07-11T22:31:38.647
2011-07-11T22:31:38.647
23,572
537,173
[ "javascript", "dojo", "dojox.charting" ]
6,036,953
1
6,037,005
null
2
1,454
I am working with the new 10.1 galaxy tab google handed out at IO. I'm new to android layout but the Graphical Layout in eclipse looks fine but my app does not fill the parent on the tab. This is my `main.xml`: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="@color/red" android:layout_width="fill_parent" android:layout_height="fill_parent"> </LinearLayout> ``` This is what i see![screenshot](https://i.stack.imgur.com/he8tm.png)
fill_parent not filling parent?
CC BY-SA 3.0
null
2011-05-17T20:48:36.267
2012-03-19T21:35:23.683
2011-05-17T21:06:24.570
69,802
291,733
[ "android", "android-layout" ]
6,036,955
1
6,174,820
null
3
604
Essentially, what I'm trying to do is to load/draw a map from a Tiled map using Nick Gravelyn's TiledLib. The map is saved in Tiled's XML format. However, when I try loading the map with the line ``` TiledLib.Map map = Content.Load<TiledLib.Map>("Maps/Map1"); ``` it throws an `ArgumentException`. The whole thing renders like this in Tiled itself: ![enter image description here](https://i.stack.imgur.com/hWjPH.png) The map's XML source looks like [this](https://gist.github.com/977344) (not posted directly onto StackOverflow for obvious size reasons). It worked at first (with a pretty simple map using only one tileset) but when I edited it to include a bit more stuff then it suddenly started doing this. Could it be related to my usage of tile objects? EDIT: I have been able to work out that using tile objects was not the culprit; [this map structure](https://gist.github.com/978347) still creates the same error.
TiledLib for XNA throws ArgumentException on loading
CC BY-SA 3.0
null
2011-05-17T20:48:48.247
2011-12-03T02:17:53.287
2011-05-25T15:30:51.690
616,456
616,456
[ "c#", ".net", "xna" ]
6,037,114
1
6,037,241
null
5
3,570
Suppose I am given number of lines segments in Cartesian coordinate system.Each line is given as [x0,y0] and [x1,y1].Algorithm should find a perpendicular that cross maximum number of lines. In this example it crosses four lines: ![enter image description here](https://i.stack.imgur.com/1C0jL.png) What algorithm can do it with minimum complexity?(i would prefer c++ but some kind of pseudo code is OK too) P.S The point to think about is when several lines start/end in the same x coordinate Thank you.
How to find maximum number of intersectionS through set of line segments
CC BY-SA 3.0
0
2011-05-17T21:03:24.750
2011-05-17T21:34:50.383
2011-05-17T21:34:50.383
null
null
[ "c++", "algorithm" ]
6,037,266
1
6,247,001
null
1
1,443
does anybody know why I am getting this (see photo)? Here is how I set it: ``` this._seekBar.setProgressDrawable(_context.getResources().getDrawable(R.drawable.common_controls_player_progressbar_bg_expanded)); this._seekBar.setThumb(_context.getResources().getDrawable(R.drawable.ringtone_scrub)); this._seekBar.setThumbOffset(0); this._seekBar.setMax(1000); this._seekBar.setMinimumHeight(6); ``` Seekbar itself: ``` <SeekBar android:id="@+id/seekbar_ctrl" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxHeight="6dp"/> ``` Expanded view xml ``` <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background"> <shape> <solid android:color="@color/player_progressbar_gray"/> </shape> </item> <item android:id="@android:id/secondaryProgress"> <clip> <shape> <solid android:color="@color/player_progressbar_gray"/> </shape> </clip> </item> <item android:id="@android:id/progress"> <clip> <shape> <solid android:color="@color/player_progressbar_green"/> </shape> </clip> </item> </layer-list> ``` It does happen in both expanded and collapsed view. What am I missing? Thank you in advance![enter image description here](https://i.stack.imgur.com/kjz1F.png)
android - seekbar progress does not get painted all the way
CC BY-SA 3.0
0
2011-05-17T21:18:39.660
2011-06-06T01:07:23.113
2011-05-17T22:27:04.217
538,428
538,428
[ "android", "seekbar" ]
6,037,409
1
6,038,708
null
0
1,723
I'm having troubles aligning some python tkinter/ttk widgets on a small gui I'm making. My gui window has 4 "sections" which I'm representing with frames. I'm using the grid manager to populate each frame with it's respective labels, entries, comboboxes, etc. Frame2 (top right, or Cartesian quadrant 1) is the biggest. To conform to symmetry, I set the option of all my frames as . This created 4 frames that filled the entire space, where the top half of the window has two frames of equal size, and the bottom half of the window has two frames of equal size. My frames have a relief (RAISED) so there is a visual separation of each one. My frame1 (Cartesian quadrant 2) is the smallest frame, but, with grid, it matches frame2 in size. This is good, I wanted this. However, frame1 also has way fewer widgets than frame 2, and instead of aligning all widgets at (like all my other frames), it centers all of the widgets first. This results in the widgets having a huge padded boarder in the frame, making it look very uneven. I want the widgets to be in the boarder of my frame1, and just have open space in the frame below them. Is there a grid method, or a concept I've missed? I've dug through tonnes of examples/forums/etc looking for a similar description of this issue. I hope I was clear enough, my code isn't in a very presentable state right now as I am just trying to generate my visual idea right now. If more info or code is needed I can post. Thanks in advance, Chris.![enter image description here](https://i.stack.imgur.com/VNPRg.png)
Tkinter/ttk frame and widget positioning
CC BY-SA 3.0
null
2011-05-17T21:31:27.493
2011-05-18T00:41:23.173
2011-05-17T22:26:04.283
738,896
738,896
[ "tkinter", "position", "widget", "frames" ]
6,037,719
1
6,037,972
null
9
2,069
How would the [Fibonacci's closed form](http://en.wikipedia.org/wiki/Fibonacci_number#Closed-form_expression) code look like in ? ![enter image description here](https://i.stack.imgur.com/749tr.png)
Fibonacci's Closed-form expression in Haskell
CC BY-SA 3.0
0
2011-05-17T22:05:25.137
2011-11-20T02:46:13.787
2011-05-17T22:40:35.917
83,805
265,519
[ "haskell", "syntax" ]
6,037,832
1
6,038,297
null
28
21,962
Mathematica has ten basic plot markers which are used cyclically when making a `ListPlot` with `PlotMarkers->Automatic`. There are filled and empty versions of circle, square, diamond, up triangle, and down triangle. The eleventh marker repeats filled circle, but in a different color. For example, `ListPlot[Table[{i, i + #}, {i, 1, 7}] & /@ {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, PlotMarkers -> Automatic]` gives ![PlotMarkers defaults](https://i.stack.imgur.com/REa5t.png) Is it possible to specify a particular plot marker from this set of default markers? The `FullForm` of the above plot shows that Mathematic uses fonts for those symbols, i.e. `Style["\[FilledCircle]", Rule[FontSize, 8.96`]]` which one could set by hand, but I'm wondering if there is a way to do this in the way that one can pick from the default plot colors using `ColorData[1][n]`, where `n` is the nth color.
How to specify a particular plot marker from Mathematica's automatic list of markers?
CC BY-SA 3.0
0
2011-05-17T22:19:28.780
2022-06-03T22:12:26.103
null
null
602,368
[ "wolfram-mathematica" ]
6,038,064
1
null
null
0
48
How do I add that feature that tells you how far away from something you are into an iPhone App? For example: ![enter image description here](https://i.stack.imgur.com/q90Ho.jpg)
How to implement the how far away feature with Core Location into an iPhone App?
CC BY-SA 3.0
null
2011-05-17T22:51:28.210
2011-05-17T22:57:01.050
2011-05-17T22:57:01.050
142,162
756,539
[ "iphone" ]
6,038,119
1
6,038,556
null
1
1,759
Running Safari 5.05. This CSS is looks fine in Chrome and Firefox, but when displayed in Safari, the border-left only spans to the beginning of the border-radius. This leaves a gap at the top/bottom. ``` .boxWithLeftBorder { height:100px; width:100px; background: #ddd; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; border-left: 20px; border-color:#000; border-style:solid;} ``` I've included an image below to clarify. Given the wisdom of the crowds I'm guessing this is either well known or there is an easy workaround. I've Googled to the best of my ability and would appreciate any ideas. Thanks!! ![boxWithLeftBorder image](https://i.stack.imgur.com/q8tCY.png)
Safari bug with CSS rounded corner rendering
CC BY-SA 3.0
0
2011-05-17T23:00:30.170
2011-05-18T00:52:10.797
2011-05-17T23:07:38.310
106,224
758,206
[ "css", "safari" ]
6,038,153
1
6,038,650
null
1
1,855
I have a schema that looks like this: ![enter image description here](https://i.stack.imgur.com/sarRO.png) There is a one to one relationship between Foo and Bar and a many to one relationship between Bar and Baz. I have Foo and Baz mapped to separate objects, but I'm not sure how to go about linking them using Bar, without making Bar a separate object. (I want to be able to access Baz as a property of Foo) It looks like it should be possible as it's very similar to the example given [here](http://ayende.com/blog/3961/nhibernate-mapping-join), except using a many-to-one relationship instead of a property.
Mapping multiple tables into a single object with NHibernate
CC BY-SA 3.0
null
2011-05-17T23:04:18.780
2011-05-18T00:29:24.737
null
null
332,718
[ "c#", "nhibernate", "nhibernate-mapping" ]
6,038,344
1
null
null
1
786
I can't get this footer to align and sit on the bottom properly - it should be 3 column and centered on the page. Can anyone help? ![enter image description here](https://i.stack.imgur.com/TPLI7.png) /* FOOTER */ ``` #footer { line-height: 80px; width:100%; color: #fff; height: 80px; background-color: #111; padding: 30px 0px 0px 0px; } /* column width */ #footer > ul > li { width: 250px; list-style:none; float: left; border-left: 1px solid #fff; padding-left: 10px; } #footer > ul > li > ul { font-weight: normal; list-style:none; font-size: .80em; } #footer a, #footer a:visited, #footer a:active { color: #ffffff; } #footer a:hover { color: #ffffff; } <div id="footer"> <ul> <li> <ul> <li><a href="default.asp">About</a></li> <li><a href="default.asp">Contact</a></li> <li><a href="default.asp">Spare</a></li> </ul> </li> <li> <ul> <li><a href="default.asp">Terms</a></li> <li><a href="default.asp">Privacy</a></li> <li><a href="default.asp">Disclaimer</a></li> </ul> </li> <li> <ul> <li> or content on this website. Full disclaimer</li> </ul> </ul> ```
CSS Footer Alignment Issue
CC BY-SA 3.0
null
2011-05-17T23:33:49.527
2011-05-18T00:04:21.787
null
null
372,237
[ "css" ]
6,038,322
1
null
null
0
1,449
So I got Bada Wave II.. It [shall have FP9](http://en.wikipedia.org/wiki/Bada_%28operating_system%29#Architecture) and Adobe site thinks it has! ![9.1.122](https://i.stack.imgur.com/l7J64.jpg) but we see strange banner on top. So I thought - grate - we have it... And I [built this fith flex builder 3 for FP 9.0.124](http://superior0.narod.ru/fp9/PlayerOne.html) but when I go to it I see nothing but this ![landscape](https://i.stack.imgur.com/rqQWu.jpg) or ![portret](https://i.stack.imgur.com/RY7q2.jpg)... Code behind is simple: ``` <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:VideoDisplay id="va" source="http://imgproc.apmath.spbu.ru:4773/robot669394444.flv?action=read" autoPlay="true" metadataReceived="doHust()" left="10" right="10" top="10" bottom="38"/> <mx:TextArea bottom="10" text="" height="20" right="10" left="10" id="ta"/> <mx:Script> <![CDATA[ public function doHust():void { ta.text = va.totalTime.toString() + " " + va.source.toString() + " " + va.playheadTime.toString() + " Build By Cloud Forever team in 2011 for testing Bada 1.2 (Samsung Wave II) flash capabileties in browser. Build for FP 9.0.124"; } ]]> </mx:Script> </mx:Application> ``` I also tried to compile it for FP 9.0.28 which was one of big FP game changers... but no luck.. So I [whent to Google](http://www.google.ru/search?aq=f&sourceid=chrome&ie=UTF-8&q=flash%20player%209%20demo&qscrl=1) and [found something that worked on Bada and at the same time was FP9!) It was not working 100% correctly as you can see but any way - I can operate with out navigation](http://wwis-dubc1-vip118.adobe.com/products/flashplayer/productinfo/features/experience/)... Here are screenshots:![main site intro](https://i.stack.imgur.com/IifiS.jpg) ![proof link](https://i.stack.imgur.com/7SPFz.jpg) ![rendering performance demo](https://i.stack.imgur.com/IOu6E.jpg) ![video alpha channel... with no video (but frame is transparent)](https://i.stack.imgur.com/jwxR4.jpg) ![some text rendering stuff](https://i.stack.imgur.com/8EnDR.jpg) ![BTW here frame rate was smooth](https://i.stack.imgur.com/nLIzm.jpg) ![AS3 runs...](https://i.stack.imgur.com/sNpoA.jpg) ![Runs at 2 FPS...](https://i.stack.imgur.com/68Co5.jpg) ![Video buffering](https://i.stack.imgur.com/h6Bsa.jpg) ![Video not playing in landscape](https://i.stack.imgur.com/0w25f.jpg) ![nor in portret](https://i.stack.imgur.com/piwGv.jpg). Note that flash content was unscrollable, unzoomable and browser about was showing ![Samsung Dol (delphin picture here) in Browser v2.2 (open source WebKit based software)](https://i.stack.imgur.com/SZmk8.jpg)... So at leasted it worked! So I descided to try and go into html... [and modified my flex builder generated html into something as close as possible to that sample that worked](http://superior0.narod.ru/fp9/) and it shows this same wary FP9 logo thing...:![modified html, still no flash](https://i.stack.imgur.com/idn3R.jpg)... so It seems that I can not run Flex, mxml based projects on my bada... or can I? any tips? So what does this red/white FP9 square icon thing mean? So.. ok - no FB.. but we still have normal FP9 and Flash CS5... so we can build such video playing code in Flash Pro and try to look at it... So my code: ``` import flash.display.Sprite; import flash.events.NetStatusEvent; import flash.events.SecurityErrorEvent; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.Event; var videoURL:String = "http://imgproc.apmath.spbu.ru:4773/robot669394444.flv?action=read"; var connection:NetConnection; var stream:NetStream; var video:Video = new Video(); function main() { connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); connection.connect(null); } function netStatusHandler(event:NetStatusEvent):void { switch (event.info.code) { case "NetConnection.Connect.Success": connectStream(); break; case "NetStream.Play.StreamNotFound": trace("Stream not found: " + videoURL); break; } } function securityErrorHandler(event:SecurityErrorEvent):void { trace("securityErrorHandler: " + event); } function connectStream():void { var stream:NetStream = new NetStream(connection); stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); stream.client = {}; stream.client.onMetaData = l_onMetaData; stream.client.onCuePoint = l_onCuePoint; video.attachNetStream(stream); stream.play(videoURL); addChild(video); } function l_onMetaData(info:Object):void { trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate); video.width = info.width; video.height = info.height; } function l_onCuePoint(info:Object):void { trace("cuepoint: time=" + info.time + " name=" + info.name + " type=" + info.type); } main(); ``` And my app online here for [FP9.0.0](http://superior0.narod.ru/fp9/flash_Pro.html) and we get same bad results =-( So.. ok - I get it no FP9.. so let us [try Flash lite 2 (flash 7 analog)](http://superior0.narod.ru/fp9/mobile.html) [fla file here](http://superior0.narod.ru/fp9/mobile.fla) and 2 code lines in it: ``` WideoWid.contentPath = "http://imgproc.apmath.spbu.ru:4773/robot669394444.flv?action=read"; WideoWid.play(); ``` (BTW nokia N5800 played that=) ![and we see again bad thing...](https://i.stack.imgur.com/OWfVH.jpg)
Bada 1.2 and Flash. How shall I understand such thing?
CC BY-SA 3.0
null
2011-05-17T23:29:17.363
2011-05-18T13:30:28.737
2011-05-18T13:30:28.737
434,051
434,051
[ "html", "flash", "apache-flex", "browser", "bada" ]
6,039,146
1
6,039,785
null
0
352
I am a total newbie to programming so pls be patient with me if my question might sound dumb to you. I am trying to learn the cakephp framework. I downloaded the latest stable version which is 1.3.8 and my server is WAMP. I followed the tutorial on this link: > [http://www.youtube.com/watch?v=21Rt9HgITig](http://www.youtube.com/watch?v=21Rt9HgITig) I was able to follow it and here's the result when opened the site on my localserver ![screen shot](https://i.stack.imgur.com/8fMAZ.jpg) I don't know why the css doesn't weem to work when I think I successfuly baked it. I think it sould have some color green background. Pls help...
CakePHP First Successful Bake???, css doesn't seem to work
CC BY-SA 3.0
null
2011-05-18T02:11:43.917
2011-05-18T04:39:35.540
null
null
728,469
[ "cakephp" ]
6,039,325
1
6,041,391
null
2
1,093
I have a HTML file which contains both HTML and JavaScript. When I folded some code snippets, the syntax highlight didn't work well. Screenshot as following: ![enter image description here](https://i.stack.imgur.com/qAkS5.png) Line79 function setColor(color) is not correctly highlighted. Is there any way to fix it? BTW, I am using GVIM 7.2 in windows 7. Thanks!
Gvim doesn't highlight syntax correctly, how to fix it?
CC BY-SA 3.0
null
2011-05-18T02:42:52.573
2011-05-18T16:21:58.573
null
null
166,482
[ "vim", "syntax-highlighting" ]
6,039,331
1
6,039,526
null
1
1,227
Of course, the Graphics.MeasureString method is well-known to have padding problems, and so you use Graphics.MeasureCharacterRanges instead, but as you can see here: ![MeasureCharacterRanges problem](https://i.stack.imgur.com/6rrcb.png) It's not measuring quite correctly. Is this a problem with MeasureCharacterRanges or is it my code? How can I fix it? Here's my code: ``` 'Draw the selection cursor If Me.Focused Then Dim cX As Integer = 1, cY As Integer = 5, c As Char For i As Integer = 0 To Me.SelectionStart - 1 c = Me.Text(i) If c = ControlChars.CrLf Then cY += Me.Font.Height Else Dim w As Integer = MeasureCharacter(g, c, Me.Font).Width g.DrawRectangle(Pens.Black, cX, cY, w, Me.Font.Height) 'Draw a rectangle for debugging cX += w End If Next g.DrawLine(Pens.Black, cX, cY, cX, cY + Me.Font.Height) End If End Sub Protected Function MeasureCharacter(ByVal g As Graphics, ByVal c As Char, ByVal f As Font) As Size Dim cr() As CharacterRange = {New CharacterRange(0, 1)} Dim sfmt As New StringFormat() sfmt.FormatFlags = StringFormatFlags.MeasureTrailingSpaces sfmt.SetMeasurableCharacterRanges(cr) Return g.MeasureCharacterRanges(c.ToString(), f, Me.ClientRectangle, sfmt)(0).GetBounds(g).Size.ToSize() End Function ```
MeasureCharacterRanges not even exact?
CC BY-SA 3.0
null
2011-05-18T02:43:50.230
2011-05-18T03:25:35.077
null
null
707,111
[ "vb.net", "graphics", "text", "measure" ]
6,039,391
1
6,159,731
null
3
1,361
I'm in the process of making some adjustments to an app, including changing to a navigation-based interface. As part of that change I've written a view controller that contains a `UINavigationController`. The problem is, for some strange reason the `UINavigationBar` and `UIToolbar` managed by the `UINavigationController` are displaced 20px down from where they should be. I've managed to produce the following example that demonstrates the issue: ``` // MyAppDelegate.m @implementation MyAppDelegate @synthesize window = _window; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window.frame = [[UIScreen mainScreen] applicationFrame]; [self.window makeKeyAndVisible]; TestController* tc = [TestController new]; [self.window addSubview:tc.view]; return YES; } @end // TestController.m @implementation TestController - (void)loadView { self.view = [[UIView alloc] initWithFrame:CGRectZero]; UINavigationController* navController = [UINavigationController new]; navController.view.backgroundColor = [UIColor blueColor]; [navController setToolbarHidden:NO animated:NO]; [self.view addSubview:navController.view]; } @end ``` This produces the following result on my machine: ![Shot of example](https://i.stack.imgur.com/Ta5JL.png) As you can see, the controls are 20px down from where I'd expect them to be. I've tried just about everything I can think of (various combinations of `wantsFullScreenLayout`, `autoresizesSubviews`, etc) with no positive effect. This also has nothing to do with programatically messing with the statusbar (as seems to be the case in most other examples of this I have come across), since I do not at any point mess with the statusbar. This occurs with or without a root view controller in the navigation controller - if there is one, it's contents are shifted 20px down too (so they actually are in the right place relative to the navigation bar and toolbar). Any help much appreciated! After a bit of investigation, it seems that removing the line `self.window.frame = [[UIScreen mainScreen] applicationFrame];` seems to correct the positioning of the navigation bar and toolbar and content. That said, now some other views in the application are in the wrong place (up underneath the statusbar). My understanding is that line is generally recommended to ensure that the window is the correct size?
Troubles with iPhone UINavigationController (UINavigationBar in wrong place)
CC BY-SA 3.0
0
2011-05-18T02:54:37.280
2011-05-28T04:53:44.373
2011-05-18T04:01:00.223
214,149
214,149
[ "iphone", "uinavigationcontroller" ]
6,039,783
1
6,041,639
null
0
810
I'm using serproxy / thinkerproxy for serial communication in a small Air app. I have two hardware devices to test it. One is a barcode scanner, it works perfectly. The other is a custom board. It's kind of working also. The problem is that the characters are unreadable. I think it's a problem of charset (not sure) so I tried something like this in the function that handles the ProgressEvent.SOCKET_DATA event: ``` var cs:Array = new Array( 'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-11', 'ISO-8859-12', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', 'ISO-8859-17', 'ISO-8859-18', 'ISO-8859-19', 'ISO-8859-20', 'ASMO-708', 'DOS-720', 'x-mac-arabic', 'windows-1256', 'ibm775', 'windows-1257', 'ibm852', 'x-mac-ce', 'windows-1250', 'gb18030', 'EUC-CN', 'gb2312', 'gb18030', 'hz-gb-2312', 'x-mac-chinesesimp', 'big5', 'x-Chinese-CNS', 'x-Chinese-Eten', 'x-mac-chinesetrad', 'cp866', 'koi8-r', 'koi8-u', 'x-mac-greek', 'windows-1253', 'ibm869', 'DOS-862', 'iso-8859-8-i', 'x-mac-hebrew', 'windows-1255', 'x-EBCDIC-Arabic', 'x-EBCDIC-CyrillicRussian', 'x-EBCDIC-CyrillicSerbianBulgarian', 'x-EBCDIC-DenmarkNorway', 'x-ebcdic-denmarknorway-euro', 'x-EBCDIC-FinlandSweden', 'x-ebcdic-finlandsweden-euro', 'x-ebcdic-finlandsweden-euro', 'x-iscii-as', 'unicode', 'unicodeFFFE', 'utf-7', 'utf-8', 'us-ascii', 'windows-1258', 'x-IA5', 'Windows-1252' ); for each(var csStr:String in cs){ var info:String = _socket.readMultiByte(_socket.bytesAvailable, csStr); temp = csStr + ":" + info; if(info.length > 0) dispatchEvent(new TextEvent(EVENT_ON_DATA_RECEIVED, false, false, temp) ); } ``` The only value that contains a value is . and and it looks like this:![enter image description here](https://i.stack.imgur.com/pDBg3.png) The custom board is supposed to send something like : So, not sure what is the best approach here (I know there are more charset I can try). Any ideas?
Adobe Air and Serial Port Communication with Serproxy/Thinkerproxy
CC BY-SA 3.0
null
2011-05-18T04:12:33.513
2013-09-20T21:00:57.053
2013-09-20T21:00:57.053
58,074
440,243
[ "air", "serial-port" ]
6,040,011
1
6,040,098
null
7
13,509
I have a `JPanel` embedded inside a `JFrame`. `JPanel` is added at `CENTER` of `BorderLayout`. I am using the following code to draw on it but the `MouseEvent`'s `getX()` and `getY()` seem to offset the real coordinate. Why? The relevant code is:- ``` private Image backBuffer = createImage(getWidth(), getHeight()); public void mouseDragged(MouseEvent e) { //System.out.println("Canvas.mouseDragged()"); Graphics2D g2d = (Graphics2D) backBuffer.getGraphics(); int x = e.getX(), y = e.getY(); if(lastCoord == null) { g2d.drawRect(x, y, 0, 0); } else { g2d.drawLine(lastCoord[0], lastCoord[1], x, y); } lastCoord = new Integer[]{x, y}; repaint(); } public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D graphics2D = (Graphics2D) g; graphics2D.setColor(Color.black); graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); graphics2D.drawImage(backBuffer, 0, 0, null); } ``` ![What I mean by offset](https://i.stack.imgur.com/hoHu1.jpg)
Why does the getX() getY() of MouseEvent seem to offset from the real coordinate?
CC BY-SA 3.0
null
2011-05-18T04:50:24.583
2015-11-19T04:38:14.940
2015-11-19T04:38:14.940
4,926,126
137,893
[ "java", "swing" ]
6,040,099
1
6,040,426
null
0
657
In the attached screen shot you can she that to rename a selected tab we have to click on it, and to delete a tab we need a mouse hover on the unselected tab. Now this events are not key board accessible. For this I want to set the f2 key for rename, ie. when a tab is selected I can rename it by pressing the f2 key and to delete the tab I want to fix the delete button on the tab instead of a mouse hover and can make it key board accessible. Now I need the solution for both of this two problem and I can provide the css code for deleting the tab. ``` .js .delete-tab { background: url(../images/common/remove.png) no-repeat 42%; cursor: pointer; display: block; height: 8px; position: absolute; right: 2px; text-indent: -9999em; top: 2px; width: 8px; } ``` ![screenshot](https://i.stack.imgur.com/l59ln.png)
How to set a function key(f2) for rename a tab
CC BY-SA 3.0
null
2011-05-18T05:03:13.003
2011-05-18T05:58:33.180
2011-05-18T05:12:12.350
31,671
632,074
[ "javascript", "html", "css" ]
6,040,566
1
6,040,706
null
0
9,939
I need to hide a panel on the Parent Form when a Child Form on an MDI Parent Form closes & show back the panel on the Parent form when the Child Form is closed. Currently am using SendtoBack() to show the Child Form infront of the Panel which is on the Parent Form , but when i close the Child Form, then the Panel doesn't appears back, even if i use : `BringtoFront()` OR ``` Panel1.Visible=true public partial class CHILD : Form { private void CHILD_Load(object sender, EventArgs e) { this.FormClosed += new FormClosedEventHandler(CHILD_FormClosed); } void CHILD_FormClosed(object sender, FormClosedEventArgs e) { PARENTForm P = new PARENTForm(); P.panel1.BringToFront(); P.panel1.Visible = true; } } public partial class Form1 : Form { private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { CHILD P = new CHILD(); P.Showg(); P.MdiParent = this; P.BringToFront(); panel1.SendToBack(); panel1.Visible = false; } } ``` THIS ISN'T WORKING....PLEASE HELP..! ![enter image description here](https://i.stack.imgur.com/k82UM.png)
Show/hide, BringToFront/SendToBack a panel on Parent form when a Child Form on the MDI Parent Form closes or appears
CC BY-SA 3.0
0
2011-05-18T06:09:33.733
2020-03-21T16:13:57.510
2011-05-18T07:11:58.103
613,929
613,929
[ "c#", ".net", "winforms", "panel" ]
6,040,653
1
6,040,687
null
0
795
Does anyone ever have problem like this?? ![enter image description here](https://i.stack.imgur.com/L6FZ6.jpg) The "Enter" , "Tab" , and "space" character is shown .. and I don't know how to fix it. I have tried to restart the Eclipse, change the Android SDK, and also restart my computer. but nothing seems to work. everything stays like that. It's not a relly big problem, but it feels really annoying to see all those character floating around. anyone have solution?
Problem with eclipse text editor
CC BY-SA 3.0
null
2011-05-18T06:22:46.600
2011-05-18T06:26:20.330
null
null
616,280
[ "eclipse", "text-editor" ]
6,040,710
1
6,040,757
null
2
414
Due to some datastorage limitations (noSQL) I need to store images as strings. How can I serialize the image Bitmap to string and back. Here is how I am doing it: ``` Uri testImageUri = new Uri("/DictionaryBasedVM;component/test.jpg", UriKind.Relative); StreamResourceInfo sri = Application.GetResourceStream(testImageUri); var stringData = GetString(sri.Stream); ImageSource = stringData; ``` Where is just a silverlight image control defined in xaml. I am using the following utility functions: ``` //For testing public static string GetString(Stream stream) { byte[] byteArray = ReadFully(stream); return Encoding.Unicode.GetString(byteArray,0,byteArray.Length); } public static byte[] ReadFully(Stream input) { byte[] buffer = new byte[16 * 1024]; using (MemoryStream ms = new MemoryStream()) { int read; while ((read = input.Read(buffer, 0, buffer.Length)) > 0) { ms.Write(buffer, 0, read); } return ms.ToArray(); } } ``` And the following property: ``` private string _ImageSource = ""; public string ImageSource { set { _ImageSource = value; byte[] byteArray = Encoding.Unicode.GetBytes(value); MemoryStream imageStream = new MemoryStream(byteArray); BitmapImage imageSource = new BitmapImage(); imageSource.SetSource(imageStream); ImageControl.Source = imageSource; } get { return _ImageSource; } } ``` I get the error : "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" as shown: ![enter image description here](https://i.stack.imgur.com/dtN5M.png) Even if I don't store it as a string I am still curious why I can't do this.
Loading Image from a string
CC BY-SA 3.0
null
2011-05-18T06:28:39.100
2011-05-18T23:41:52.143
null
null
390,330
[ "c#", ".net", "silverlight", "silverlight-4.0" ]
6,040,756
1
6,040,780
null
1
5,447
I have rich datatable with delete button: ![enter image description here](https://i.stack.imgur.com/SIOhq.jpg) When I delete the row, row is really deleted in database, but still remains in dataTable. It dissapear after reload page or reload dataTable. part of dataTable code: ``` <rich:extendedDataTable value="#{myBdeCheck.dataListBde}" var="bdeItem"> <rich:column width="60px"> <f:facet name="header"> <h:outputText value="Kusy" /> </f:facet> <h:outputText value="#{bdeItem.prodPcs}" rendered="#{!myBdeCheck.editMode}"/> <h:inputText value="#{bdeItem.prodPcs}" rendered="#{myBdeCheck.editMode}"/> </rich:column> <rich:column width="50px"> <h:commandLink action="#{myBdeCheck.deleteBde}"> <h:graphicImage value="/images/icons/delete.png" alt="edit"/> <a4j:param value="#{it.index}" assignTo="#{myBdeCheck.currentIndexDetail}" /> <f:setPropertyActionListener target="#{myBdeCheck.BDEItem}" value="#{bdeItem}" /> </h:commandLink> </rich:column> </rich:extendedDataTable> ``` and part of myBdeCheck bean: ``` private int currentIndexDetail; // with getters, setters private BDE BDEItem; public void deleteBde() { try { DaoCrud.delete(BDEItem, 'R'); } catch{.....} } ``` How can I make dataTable to refresh automatically after click the delete button?
RICH:dataTable - refresh page after delete row
CC BY-SA 3.0
null
2011-05-18T06:33:57.150
2011-05-18T06:40:19.540
2011-05-18T06:40:19.540
260,990
731,696
[ "java", "jsf", "richfaces" ]
6,041,028
1
6,041,120
null
1
1,915
I want to build a simple tagging system for my news section DB setup (img borrowed from a previous post) ![DB Setup something like](https://i.stack.imgur.com/uIcQz.jpg) On my "Edit Article" screen, there are now tags sitting in an input field and the user can delete or type new tags. All good. But when the page is submitted and I get this array of tag values, I'm thinking that I have to check each one against the 'Tag' table to see if it exists or not. Is there any shortcut way of doing this or is it somehow possible to pass through tag_id=>tag_value? So far none of the preferred jQuery libraries seem to offer that: [one](http://devthought.com/wp-content/projects/jquery/textboxlist/Demo/), [two](http://remysharp.com/2007/12/28/jquery-tag-suggestion/)
PHP/MySQL - simple tagging system - updating article-tag links?
CC BY-SA 3.0
0
2011-05-18T07:03:07.900
2011-05-18T07:45:44.460
null
null
739,215
[ "php", "mysql", "tagging" ]
6,041,057
1
6,970,375
null
81
57,738
Here is my model of 3 entities: Route, Location and LocationInRoute. ![model](https://i.stack.imgur.com/tkPtR.jpg) the following method fails and get exception when commit it: ``` public static Route InsertRouteIfNotExists(Guid companyId, IListLocation> locations) { //Loop on locations and insert it without commit InsertLocations(companyId, routesOrLocations); RouteRepository routeRep = new RouteRepository(); Route route = routeRep.FindRoute(companyId, locations); if (route == null) { route = new Route() { CompanyId = companyId, IsDeleted = false }; routeRep.Insert(route); LocationInRouteRepository locInRouteRep = new LocationInRouteRepository(); for (int i = 0; i < locations.Count; i++) { locInRouteRep.Insert(new LocationInRoute() { //Id = i, LocationId = locations[i].Id, Order = i, RouteId = route.Id }); } } return route; } ``` When doing: ``` InsertRouteIfNotExists(companyId, locations); UnitOfWork.Commit(); ``` I got: > Unable to determine the principal end of the 'SimTaskModel.FK_T_STF_SUB_LOCATION_IN_ROUTE_T_STF_LOCATION_location_id' relationship. Multiple added entities may have the same primary key. When splitting the commit and insert in into the methos - it works: ``` public static Route InsertRouteIfNotExists(Guid companyId, IListLocation> locations) { //Loop on locations and insert it without commit InsertLocations(companyId, routesOrLocations); UnitOfWork.Commit(); RouteRepository routeRep = new RouteRepository(); Route route = routeRep.FindRoute(companyId, locations); if (route == null) { route = new Route() { CompanyId = companyId, IsDeleted = false }; routeRep.Insert(route); LocationInRouteRepository locInRouteRep = new LocationInRouteRepository(); for (int i = 0; i < locations.Count; i++) { locInRouteRep.Insert(new LocationInRoute() { //Id = i, LocationId = locations[i].Id, Order = i, RouteId = route.Id }); } UnitOfWork.Commit(); } return route; } ``` I would like to call commit once and outside the method. Why it fails in the first example and what does this exception means?
Multiple added entities may have the same primary key
CC BY-SA 3.0
0
2011-05-18T07:06:28.477
2018-07-16T07:58:08.107
2017-06-24T11:28:23.343
2,365,900
289,246
[ "c#", ".net", "entity-framework" ]
6,041,203
1
6,041,307
null
2
790
While I try to debug the application, it pop up the dialog box and shown as below. ![enter image description here](https://i.stack.imgur.com/2ABj5.png) How to overcome this issue?
Debugger for qt in windows?
CC BY-SA 3.0
null
2011-05-18T07:21:20.333
2017-04-05T19:18:25.477
2017-04-05T19:18:25.477
472,495
644,073
[ "qt", "qt4", "qt4.6" ]
6,041,244
1
6,052,789
null
5
6,808
I'm having trouble merging two PDF files with pyPdf. When I run the following code the the watermark (page1) looks fine, but the page2 has been rotated 90 degrees clockwise. Any ideas what's going on? ![Example of what's going wrong](https://i.stack.imgur.com/KMk5B.jpg) ``` from pyPdf import PdfFileWriter, PdfFileReader # PDF1: A4 Landscape page created in photoshop using PdfCreator, input1 = PdfFileReader(file("base.pdf", "rb")) page1 = input1.getPage(0) # PDF2: A4 Landscape page, text only, created using Pisa (www.xhtml2pdf.com) input2 = PdfFileReader(file("text.pdf", "rb")) page2 = input2.getPage(0) # Merge page1.mergePage(page2) # Output output = PdfFileWriter() output.addPage(page1) outputStream = file("output.pdf", "wb") output.write(outputStream) outputStream.close() ```
How to merge two landscape pdf pages using pyPdf
CC BY-SA 3.0
0
2011-05-18T07:26:11.373
2013-11-22T23:54:36.227
null
null
142,556
[ "python", "pdf-generation", "landscape", "pypdf" ]
6,041,380
1
6,042,147
null
0
2,505
In one of my view I am adding shadow to a view. Thing is that the shadow shows white spaces on left & right edges. I want to remove these spaces. Here is my code: ``` UIView *myView = [[ISTView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 35)]; myView.backgroundColor = [UIColor greyColor]; [myView.layer setShadowOffset:CGSizeMake(0.0, 5.0)]; [myView.layer setShadowOpacity:0.8]; [myView.layer setShadowRadius:2.0]; [myView.layer setShadowColor:[UIColor blackColor].CGColor]; [self.view addSubview:myView]; [myView release]; ``` Here is my view's o/p: ![enter image description here](https://i.stack.imgur.com/VHmhB.png)
Issue in adding a shadow to view layer
CC BY-SA 3.0
0
2011-05-18T07:40:08.200
2014-02-24T07:21:27.653
null
null
418,029
[ "iphone", "objective-c", "cocoa-touch", "uiview", "cglayer" ]
6,041,540
1
6,047,635
null
1
6,107
how can I add new row to extendedDataTable at the end of the list? Is there some solution? JSF table example: ![enter image description here](https://i.stack.imgur.com/TlRfC.jpg) Can you help me? : I'm able to add new item using for example a rich:popupPanel, but not by creating a new row in datatable. What I wanted to say, I'm able to save but not as elegant as using [BalusCs JSF guide](http://balusc.blogspot.com/2006/06/using-datatables.html#AddNewRowsToDatatable). ``` <rich:extendedDataTable id="tableDetail" value="#{myBdeCheck.dataListBde}" var="bdeItem"> <rich:column width="80px"> <f:facet name="header"> <h:outputText value="Směna" /> </f:facet> <h:outputText value="#{bdeItem.dayShift}"/> </rich:column> <rich:column width="70px"> <f:facet name="header"> <h:outputText value="Karta" /> </f:facet> <h:outputText value="#{bdeItem.bdeno}"/> </rich:column> ``` package common; ``` @ViewScoped @ManagedBean(name="myBdeCheck") public class MyBdeCheck extends Tools { /**/ private static final long serialVersionUID = -6586004426692130933L; private Session session; private List<BDE> dataListBde; //= new ArrayList<BDE>(); private int currentIndexDetail; // index for BDEDetail datatable private BDECheckView editedWork; // one item of BdeCheckView private BDE BDEItem; // one item of BdeData // Constructor public MyBdeCheck() { editedWork = new BDECheckView(); BDEItem = new BDE(); } /** GET DATA FROM BDEData ******************* * @param personalNum, dayShift [whole day: YYYY-MM-DD%] */ private void criteriaCheck() { try { Criteria criteria = session.createCriteria(BDE.class); {some restrictions} dataListBde = criteria.list(); } catch (Exception e) {...} } public void saveBde() { try { DaoCrud.update(dataListBde, 'R'); // ulozeni do dtb } catch {...} } public void saveNew() {...} // and GETTERS AND SETTERS } ```
RICH:dataTable - add new row
CC BY-SA 3.0
null
2011-05-18T07:58:13.697
2011-05-18T16:02:33.013
2011-05-18T13:33:03.930
731,696
731,696
[ "jsf", "richfaces" ]
6,041,578
1
null
null
0
393
I can't upload application to App Store This is my issue: ![enter image description here](https://i.stack.imgur.com/5XLGF.png) Please help me.
I can't upload application to App Store
CC BY-SA 3.0
null
2011-05-18T08:03:08.393
2011-05-18T08:19:04.690
2011-05-18T08:11:47.233
253,056
463,617
[ "xcode", "ios", "app-store" ]
6,041,769
1
6,045,046
null
1
956
I've just implemented SysCache2 and activated caching for some of the entities in my solution. Everything is working fine, but i do have one question: Sometimes when im browsing a specific page, NHibernate Profiler shows a very high number of cached entities being fetched. A couple of hundred cached entities should be a fair amount that would be used, but sometimes it counts up to 3000-5000. See image below. In this case, are 5002 entities really being fetched from the cache, or is there a misprint in NHibernate Profiler? Loading-wise, everything seems ok. The page request has finished, but the profiler keeps counting up more and more cached entities. Anyone experienced anything similiar or does this really occur? ![NHibernate Profiler Cache](https://i.stack.imgur.com/iMJT2.png)
NHibernate Profiler - cached entities
CC BY-SA 3.0
null
2011-05-18T08:20:10.300
2012-07-31T17:47:32.060
2012-07-31T17:47:32.060
918,414
189,993
[ "c#", "asp.net", "nhibernate", "profiler" ]
6,041,863
1
6,043,342
null
1
48
![My nephogram](https://i.stack.imgur.com/EbprM.png) I want to show the nephogram like the above which show the many-to-many relationships of objects. Are there any free Controls? Or, maybe some suggestion? Thanks a lot!
Are there any Controls to show the nephogram?
CC BY-SA 3.0
null
2011-05-18T08:27:36.250
2011-05-18T10:38:01.323
null
null
365,734
[ ".net", "controls" ]
6,041,882
1
6,041,931
null
0
1,460
When I set an icon or an image as a background for a button, I always see something like this : ![enter image description here](https://i.stack.imgur.com/e2hNL.png) as you can see, the images are smeared (2 images on left side, and 2 images on right side) Here is the code on how I added the icons(it's the defaults icon from android.R.Drawable...) ``` btnDown.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.arrow_down_float)); btnUp.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.arrow_up_float)); delete.setBackgroundDrawable(myIcon); btnOk.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.ic_menu_save)); ``` can someone tell me how to set icon/image on background correctly ? Without them being smeared . if the icon is 32x32, I want see it on button.
how to set image on background of button correctly
CC BY-SA 4.0
null
2011-05-18T08:29:15.920
2018-05-31T21:18:27.960
2018-05-31T21:18:27.960
2,740,501
562,592
[ "android", "image" ]
6,041,939
1
6,042,043
null
2
737
I am getting ie script error, how do i handle the dialog in Watin?? i am using the following code, does not work, any suggestions, links, tips..... also tried to disable script debugging, but error is not gone. -->. how to do it using Watin. -->. any other method to do the same from the winform application. ``` var __ie = new WebBrowserIE(webBrowser1); var thread = new Thread(() => { var helper = new DialogHandlerHelper(); using (new UseDialogOnce(__ie.DialogWatcher, helper)) { __ie.GoToNoWait("https://adwords.google.com/o/Targeting/Explorer?__u=1000000000&__c=1000000000&ideaRequestType=KEYWORD_IDEAS#search.none"); System.Threading.Thread.Sleep(5000); } foreach (string item in helper.CandidateDialogHandlers) { //dialog handler to use, but it does not reach here. } }); thread.SetApartmentState(ApartmentState.STA); thread.IsBackground = true; thread.Start(); ``` ![enter image description here](https://i.stack.imgur.com/CCLy5.jpg) Thank you in advance.
Watin Embeded in winform application
CC BY-SA 3.0
0
2011-05-18T08:35:27.747
2011-08-19T19:30:13.240
null
null
310,657
[ "c#", ".net", "winforms", "internet-explorer", "watin" ]
6,042,098
1
6,042,155
null
0
1,529
i am implementing a class with extends a JPanel, and this class is added to a JTabPane, and you can draw things on the area like a Paint program, however when drawing a new line it will join with the previous drawing points, why is that so? and in the for loop there is a -2 on the size of the arrayList , may i know why is it needed? i have tried removing it and it causes error. ![enter image description here](https://i.stack.imgur.com/0F66V.png) ``` import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Point; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.JPanel; public class STDrawingArea extends JPanel{ /** * */ private static final long serialVersionUID = 1L; ArrayList<Point> Points = new ArrayList<Point>(); public STDrawingArea() { setBorder(BorderFactory.createLineBorder(Color.black)); setBackground(Color.WHITE); addMouseMotionListener(new MouseAdapter() { public void mouseDragged(MouseEvent e) { Points.add(e.getPoint()); System.out.println("Dragged"); repaint(); } }); } @Override public Dimension getPreferredSize() { return new Dimension(700,600); } @Override protected void paintComponent(Graphics g) { super.paintComponent(g); for(int i = 0 ; i < Points.size()-2;i++) { Point p1 = Points.get(i); Point p2 = Points.get(i+1); g.drawLine(p1.x, p1.y, p2.x, p2.y); } } public void clearDrawings() { Points.clear(); repaint(); } } ```
drawn lines connect together instead of being on its own
CC BY-SA 3.0
null
2011-05-18T08:50:53.460
2011-05-19T13:41:05.390
2011-05-19T03:04:18.263
267,738
267,738
[ "java", "swing" ]
6,042,211
1
null
null
0
265
Is it possible to call a webservice if you reference it in .Web? ![enter image description here](https://i.stack.imgur.com/15eKU.png) If yes, how can I access it in MainPage.xaml.cs? The reason why I am asking this is for easy changing of config in deployment Thank you
Silverlight 4: Consuming a webservice in .web
CC BY-SA 3.0
null
2011-05-18T09:01:23.203
2011-05-24T09:38:55.723
2011-05-24T09:38:55.723
273,340
273,340
[ "silverlight", "web-services", "silverlight-4.0", "webclient" ]
6,042,467
1
6,043,402
null
1
1,290
I would need some expert advice on how to solve this problem. I am doing some crude testing for a new app for the iPad. I create a NSMutableArray (ballPath) in the viewDidLoad of my view controller (it is declared in my .h file) by loading a plist file created in another app. ``` ballPath = [[NSMutableArray alloc] initWithCapacity:1000]; NSString *path=[[NSBundle mainBundle] pathForResource:@"level_1" ofType:@"plist"]; ballPath = [NSKeyedUnarchiver unarchiveObjectWithFile:path]; ``` This array now contains a number of CGPoints (stored by the other app as NSValues and the archived). ![enter image description here](https://i.stack.imgur.com/beZxX.jpg) I then draw the path (still in my viewDidLoad), which works fine, so the path should work fine. When I later on want to read the array as a response to changes in acceleration, I get an EXC_BAD_ACCESS. When I debug and look at my array it looks like this: ![enter image description here](https://i.stack.imgur.com/I9A8Y.jpg) I test and replace the loaded array with this (also in viewDidLoad): ``` ballPath = [[NSMutableArray alloc] initWithObjects: [NSValue valueWithCGPoint:CGPointMake(100.0, 100.0)], [NSValue valueWithCGPoint:CGPointMake(100.0, 200.0)], [NSValue valueWithCGPoint:CGPointMake(100.0, 300.0)], [NSValue valueWithCGPoint:CGPointMake(100.0, 400.0)], [NSValue valueWithCGPoint:CGPointMake(125.0, 450.0)], [NSValue valueWithCGPoint:CGPointMake(150.0, 500.0)], [NSValue valueWithCGPoint:CGPointMake(300.0, 600.0)], [NSValue valueWithCGPoint:CGPointMake(350.0, 550.0)],nil]; ``` Then it works just fine! ![enter image description here](https://i.stack.imgur.com/aGbuT.jpg) What am I missing here???? I'm on Xcode 4.0.2 and my target is iOS 4.3.
Invalid Summary on NSMutableArray
CC BY-SA 3.0
null
2011-05-18T09:23:32.080
2011-05-18T10:43:23.353
null
null
350,622
[ "xcode", "ipad", "nsmutablearray", "nskeyedarchiver", "cgpoint" ]
6,042,483
1
6,042,746
null
1
6,706
I'm trying to use LINQ to bind the data in my GridView. In my Service.cs file I have a method for fetching the entries for a specific logged in user: ``` public List<tidsregistrering> ShowTidregistreringer() { var CurrentMedarbejder = FindUser(HttpContext.Current.Session["email"].ToString()); var tempList = (from t in kdc.tidsregistrerings join p in kdc.projekts on t.projektid equals p.id join k in kdc.kundes on t.kundeid equals k.id join o in kdc.øvriges on t.øvrigeid equals o.id where t.medarbejderid == CurrentMedarbejder.id select t).ToList(); return tempList; } ``` Where the kdc is my . I have tried joining the different tables together, but no data is shown in my GridView. If I leave out the joins, I get data... In my other tables I have a column called `navn` (name). I want that name printet in my GridView instead of the foreign key reference... My GridView: ``` <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:BoundField DataField="tidsforbrug" HeaderText="Tidsforbrug" /> <asp:BoundField DataField="dato" HeaderText="Dato" /> <asp:BoundField DataField="<%# Bind("projekt.id") %>" HeaderText="Projekt" /> <asp:BoundField DataField="<%# Bind("kunde.id") %>" HeaderText="Kunde" /> <asp:BoundField DataField="<%# Bind("øvrige.id") %>" HeaderText="Øvrigt" /> <asp:BoundField DataField="done" HeaderText="Done" /> </Columns> </asp:GridView ``` My binding happens at Page_load: ``` GridView1.DataSource = service.ShowTidregistreringer(); GridView1.DataBind(); ``` How do I do this? And for good measure this is my list, as of now... And I want those numbers in projektid, kundeid and øvrigeid to be joined with my foreign key tables. *Edit2:** For even better measure this is how my database tables are created: ``` CREATE TABLE chef( id int identity primary key, email varchar(100) unique not null, password char(100) not null, navn varchar(100) not null ); CREATE TABLE medarbejder( id int identity primary key, email varchar(100) unique not null, password char(100) not null, navn varchar(100) not null, chefid int foreign key references chef(id) ); CREATE TABLE projekt( id int identity primary key, navn varchar(50) not null, beskrivelse varchar(255) not null ); CREATE TABLE kunde( id int identity primary key, navn varchar(50) not null, beskrivelse varchar(255) not null ); CREATE TABLE øvrige( id int identity primary key, navn varchar(50) not null, ); CREATE TABLE tidsregistrering( id int identity primary key, tidsforbrug float, dato datetime, projektid int foreign key references projekt(id), kundeid int foreign key references kunde(id), øvrigeid int foreign key references øvrige(id), medarbejderid int foreign key references medarbejder(id) not null, done bit ); ``` I have remade my LINQ-query to this: ``` List<tidsregistrering> tempList = (from t in kdc.tidsregistrerings join p in kdc.projekts on t.projektid equals p.id into p_t join k in kdc.kundes on t.kundeid equals k.id into k_t join o in kdc.øvriges on t.øvrigeid equals o.id into o_t from k in k_t.DefaultIfEmpty() from p in p_t.DefaultIfEmpty() from o in o_t.DefaultIfEmpty() where t.medarbejderid == CurrentMedarbejder.id select t).ToList(); ``` ![http://i.stack.imgur.com/eSFQX.png](https://i.stack.imgur.com/eSFQX.png)
ASP.NET GridView DataSource with LINQ and Joins
CC BY-SA 3.0
0
2011-05-18T09:24:56.107
2011-05-18T12:57:09.457
2011-05-18T11:02:07.043
515,772
515,772
[ "c#", "asp.net", "linq", "gridview", "datasource" ]
6,042,592
1
6,042,830
null
0
248
Please see the Image hello I want to use this type of Layout in my application![enter image description here](https://i.stack.imgur.com/lYzxz.png) If I drag one layout to any direction then i want to display other Layout is it possible please help me
What is this Control or View?
CC BY-SA 3.0
null
2011-05-18T09:33:45.323
2015-05-09T16:49:11.843
null
null
630,668
[ "android", "layout", "view", "draggable" ]
6,042,615
1
6,121,442
null
2
936
Can anyone give some clues as to why when I try to render the color bar quad below ![enter image description here](https://i.stack.imgur.com/WzdTf.gif) It appears like this: ![enter image description here](https://i.stack.imgur.com/JZstJ.png) Here is my rendering code: ``` gl.glEnable(GL.GL_BLEND); gl.glBlendFunc(GL.GL_ONE, GL.GL_ZERO); gl.glBlendEquation(GL.GL_FUNC_ADD); gl.glEnable(GL.GL_ALPHA_TEST); gl.glAlphaFunc(GL.GL_GREATER, 0.01f); // do the drawing... gl.glDisable(GL.GL_TEXTURE_2D); gl.glDisable(GL.GL_ALPHA_TEST); ``` I'm sure the solution is simple and I'm just having a brainfart but it's just one of those days! Thanks for the help!
Problem with blending in openGL (Color bar example)
CC BY-SA 3.0
0
2011-05-18T09:35:43.730
2011-05-25T08:16:13.960
2011-05-25T08:16:13.960
243,925
410,921
[ "opengl", "blending" ]
6,042,765
1
null
null
0
1,154
I am having a problem thats not about the code, it's about the screen in Microsoft visual studio 2008. Actually problem is i created one utility from couple of weeks i didn't opened that utility today i opened (in Microsoft visual studio the screen appearing blank no controls are visible in that.But all the controls properties are there. I tried a lot but i didn't get solution. Last when the same thing happened i created the controls again. Now i don't want to go to create all the controls again. If any one have the solution please help me. Before screen is like this: ![Bofore page](https://i.stack.imgur.com/v6QW2.jpg) Now its blank (like new page)
Microsoft visual studio screen problem
CC BY-SA 3.0
null
2011-05-18T09:49:10.590
2011-05-18T13:52:53.593
2011-05-18T10:19:34.157
726,613
726,613
[ "visual-studio", "visual-studio-2008" ]
6,042,813
1
6,042,882
null
1
641
Why when i send html email it looks like: ![enter image description here](https://i.stack.imgur.com/pEyIN.png) but initial page is: ![enter image description here](https://i.stack.imgur.com/drcXE.png) Here is code: ``` MailMessage message = new MailMessage(); message.IsBodyHtml = true; message.Subject = subject; message.Body = body; foreach (MailAddress recipient in recipients) { message.To.Add(recipient); } if (message.To.Count > 0) { SmtpClient smtp = new SmtpClient(); smtp.Send(message); return true; } ``` Html file contains css in head. [http://pastebin.com/r5V6X4Ld](http://pastebin.com/r5V6X4Ld)
Problem with sending html email
CC BY-SA 3.0
null
2011-05-18T09:52:31.267
2011-05-18T10:37:59.643
2011-05-18T10:37:59.643
572,644
290,082
[ "c#", "email" ]
6,042,771
1
6,063,961
null
2
827
I used below code for Generate the Scatter Chart in my android application but problem is that in the graph scatter point circle's radius is very small, so it is difficult to see. I don't know how to increase the radius of circle... Application is create for Galaxy Tab Please Help ``` public class page_twenty extends Activity { public static final String TYPE = "type"; int[] colors = new int[] { Color.BLUE, Color.GREEN , Color.CYAN}; PointStyle[] styles = new PointStyle[] { PointStyle.CIRCLE, PointStyle.CIRCLE ,PointStyle.CIRCLE }; XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles); private GraphicalView mChartView; LinearLayout chart; String[] titles = new String[] { "", "", ""}; int length; List<double[]> x = new ArrayList<double[]>(); List<double[]> x1 = new ArrayList<double[]>(); List<double[]> x2 = new ArrayList<double[]>(); List<double[]> values = new ArrayList<double[]>(); List<double[]> values1 = new ArrayList<double[]>(); List<double[]> values2 = new ArrayList<double[]>(); @Override protected void onRestoreInstanceState(Bundle savedState) { super.onRestoreInstanceState(savedState); renderer = buildRenderer(colors, styles); } @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); } protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.twenty); chart = (LinearLayout) findViewById(R.id.chart); int count = 4; length = titles.length; Random r = new Random(); for (int i = 0; i < length; i++) { double[] xValues = new double[count]; double[] yValues = new double[count]; double[] xValues1 = new double[count]; double[] yValues1 = new double[count]; double[] xValues2 = new double[count]; double[] yValues2 = new double[count]; for (int k = 0; k < count; k++) { //xValues[k] = k + r.nextInt() % 10; //yValues[k] = k * 2 + r.nextInt() % 10; xValues[0] = 6; yValues[0] = 65; xValues[1] = 19; yValues[1] = 70; xValues[2] = 31; yValues[2] = 80; xValues[3] = 43; yValues[3] = 90; xValues1[0] = 6; yValues1[0] = 60; xValues1[1] = 19; yValues1[1] = 65; xValues1[2] = 31; yValues1[2] = 60; xValues1[3] = 43; yValues1[3] = 70; xValues2[0] = 6; yValues2[0] = 62; xValues2[1] = 19; yValues2[1] = 67.5; xValues2[2] = 31; yValues2[2] = 70; xValues2[3] = 43; yValues2[3] = 85; } x.add(xValues); values.add(yValues); x1.add(xValues1); values1.add(yValues1); x2.add(xValues2); values2.add(yValues2); } setChartSettings(renderer, "", "", "", 0, 50, 60, 92, Color.GRAY,Color.LTGRAY); renderer.setXLabels(0); renderer.setYLabels(10); length = renderer.getSeriesRendererCount(); for (int i = 0; i < length; i++) { ((XYSeriesRenderer) renderer.getSeriesRendererAt(i)).setFillPoints(true); } if (mChartView != null) { mChartView.repaint(); } } protected void setChartSettings(XYMultipleSeriesRenderer renderer, String title, String xTitle, String yTitle, double xMin, double xMax, double yMin, double yMax, int axesColor, int labelsColor) { renderer.setChartTitle(title); renderer.setXTitle(xTitle); renderer.setYTitle(yTitle); renderer.setXAxisMin(xMin); renderer.setXAxisMax(xMax); renderer.setYAxisMin(yMin); renderer.setYAxisMax(yMax); renderer.setAxesColor(axesColor); renderer.setLabelsColor(labelsColor); renderer.setShowLegend(false); renderer.setLabelsTextSize(15); } protected XYMultipleSeriesRenderer buildRenderer(int[] colors, PointStyle[] styles) { XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer(); int length = colors.length; for (int i = 0; i < length; i++) { XYSeriesRenderer r = new XYSeriesRenderer(); r.setColor(colors[i]); r.setPointStyle(styles[i]); renderer.addSeriesRenderer(r); } return renderer; } protected XYMultipleSeriesDataset buildDataset(String[] titles, List<double[]> xValues,List<double[]> yValues, List<double[]> xValues1,List<double[]> yValues1, List<double[]> xValues2,List<double[]> yValues2) { XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset(); int length = titles.length; for (int i = 0; i < length; i++) { //XYSeries series = new XYSeries(titles[i]); XYSeries series = new XYSeries(titles[i]); double[] xV; double[] yV; if (i==0) { xV = xValues.get(i); yV = yValues.get(i); } else if (i == 1) { xV = xValues1.get(i); yV = yValues1.get(i); } else { xV = xValues2.get(i); yV = yValues2.get(i); } int seriesLength = xV.length; for (int k = 0; k < seriesLength; k++) { //series.add(xV[k], yV[k]); series.add(xV[k], yV[k]); //series.add(xV1[k], yV1[k]); // series.add(xV2[k], yV2[k]); } dataset.addSeries(series); } return dataset; } @Override protected void onResume() { super.onResume(); if (mChartView == null) { mChartView = ChartFactory.getScatterChartView(this, buildDataset(titles, x, values,x1, values1,x2, values2), renderer); //mChartView = ChartFactory.getRangeBarChartView(this, buildDataset(titles, x, values,x1, values1,x2, values2), renderer,Type.DEFAULT); chart.addView(mChartView, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); } else { mChartView.repaint(); } } private void setSeriesEnabled(boolean enabled) { } } ``` ![Image display's the output of above code](https://i.stack.imgur.com/2gLP0.jpg)
How to Increase the radius of circle point in scatter chart?
CC BY-SA 3.0
0
2011-05-18T09:49:28.770
2013-05-11T09:47:19.977
2011-05-19T13:09:11.493
544,512
544,512
[ "android" ]
6,042,835
1
6,043,073
null
5
1,591
I am trying to design the GUI front end of a robot simulator (effectively a simple game). However, I don't know the best way of passing the simulator components (such as Robots and Walls) to the display. I want to hide the non-display oriented information of the components (such as the Robots mass), yet still be able to recognise each component im printing, i.e. when I'm drawing components I want to draw Robots differently that I do Walls (maybe the robot will have a name tag or something). Here is a picture that will hopefully explain the design: ![Program Design](https://i.stack.imgur.com/dA0e8.png) Maybe there is a useful design pattern that I haven't come across yet...
Simplest Way to Hide Part of a Class' public methods/Interface
CC BY-SA 3.0
0
2011-05-18T09:54:19.033
2011-05-18T11:53:35.243
null
null
754,300
[ "java", "model-view-controller", "design-patterns" ]
6,042,855
1
null
null
1
181
I plotted a couple of values, that represent a signal strength being weak or high. My problem is, that I want to statistically evaluate the start and end X-coordinate. ![I channel vs. Samples axis](https://i.stack.imgur.com/uui4Y.png) My issue with that is, that these high-valued blue amplitudes within do have little sections where the Y coordinate is low (if I zoom). So using an average value across 10-20 samples isn't going to be helpful or exact. I'm not sure which algorithm makes sense here. Visually I just want the start and the end value of the black line. Is there some smart way to get that? The values are within a CSV: ``` -0.00048828 0.00006104 -0.00024414 -0.00039673 -0.00109863 0.00286865 0.00527954 ```
Detect high amplitudes in a plot
CC BY-SA 3.0
null
2011-05-18T09:55:51.890
2011-05-18T12:27:24.630
null
null
59,300
[ "python", "algorithm", "search", "statistics", "plot" ]
6,043,132
1
null
null
1
5,436
Can i make the menu transparent(make the white not visible) I created an xml for the menu. ![enter image description here](https://i.stack.imgur.com/wyCwC.png) Here i added the image as ``` <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/done" android:icon="@drawable/base" /> </menu> ```
Android Menu transparent
CC BY-SA 3.0
0
2011-05-18T10:21:12.647
2012-11-09T08:25:58.767
2012-11-09T08:25:58.767
656,379
656,379
[ "android", "android-layout" ]
6,043,214
1
6,044,217
null
6
20,911
can I change background color for disabled `<h:inputText>`? I've tried to do this way: ``` <h:inputText value="test" disabled="true" styleClass="input"/> ``` css contains: ``` input:disabled {background-color:blue;} input:enabled {background-color:red;} ``` and result is: ![enter image description here](https://i.stack.imgur.com/mfP9W.jpg) reason, why I'm trying to change the background is, that since I've installed richfaces, disabled and enabled has the same color, both are white Thank you ![enter image description here](https://i.stack.imgur.com/jluu5.jpg) ``` <td class="width10">Směna:</td> <td class="width15"><input name="bde:j_idt100" value="2011-05-18-S2" size="13" style="background-color: blue; color: red;" disabled="disabled" type="text"><input id="bde:shift" name="bde:shift" type="hidden"></td> <td><input name="bde:j_idt102" value="ranní" class="input2" size="13" disabled="disabled" type="text"><input name="bde:j_idt103" value="admin" class="input2" size="13" disabled="disabled" type="text"></td> </tr> <tr class="rowEven"> <td class="width5"><input id="bde:f1" name="bde:f1" value="F1" tabindex="2" title="Novy pracovnik - vymaze vsechna pole formulare" class="btninput" type="submit"></td> <td class="width10">Pracovník:</td> <td class="width15"> <input id="bde:worker" name="bde:worker" class="input" size="13" tabindex="1" onblur="jsf.util.chain(this,event,'mojarra.ab(this,event,\'blur\',\'@this\',\'bde:inputName\')','mojarra.ab(this,event,\'blur\',\'@this\',\'bde:inputSname\')','mojarra.ab(this,event,\'blur\',\'@this\',\'bde:inputDep\')','mojarra.ab(this,event,\'blur\',\'@this\',\'bde:reportErr\')')" type="text"></td> ``` Graphic differences between richfaces generated code and HTML: ![enter image description here](https://i.stack.imgur.com/0vmn5.jpg)![enter image description here](https://i.stack.imgur.com/zlxJd.jpg)
<h:inputText> enabled/disabled - change background color
CC BY-SA 3.0
0
2011-05-18T10:26:49.510
2011-05-18T12:35:53.710
2011-05-18T12:35:53.710
157,882
731,696
[ "java", "html", "css", "jsf", "richfaces" ]
6,043,391
1
6,058,007
null
1
2,580
I am having trouble starting a JBoss 4.2.2 server - it is producing the following error message (from `org.jboss.kernel.plugins.dependency.AbstractKernelController`) : ``` Error installing to Described: name=WSDeployerHook_JAXWS_EJB3 state=Not Installed mode=Manual requiredState=Create java.lang.NoClassDefFoundError: org/jboss/ejb3/interceptors/direct/IndirectContainer ``` Looking through the JBoss source code, I have turned on TRACE level logging for certain classes, though all it is telling me is that it can't find the `IndirectContainer` (these lines all come from `org.jboss.mx.loading.LoadMgr3`): ``` Begin beginLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@c8aeb3{classname: org.jboss.ejb3.interceptors.direct.IndirectContainer, requestingThread: Thread[main,5,jboss], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@16925b0{ url=null ,addedOrder=2}, loadedClass: nullnull, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 0, #CCE: 0} End beginLoadTask, ClassNotFoundException Run failed with exception, loadTask=org.jboss.mx.loading.ClassLoadingTask@10e468f{classname: org.jboss.ejb3.EJBContainer, requestingThread: Thread[main,5,jboss], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@16925b0{ url=null ,addedOrder=2}, loadedClass: nullnull, loadOrder: 2147483647, loadException: java.lang.NoClassDefFoundError: org/jboss/ejb3/interceptors/direct/IndirectContainer, threadTaskCount: 0, state: 1, #CCE: 1} Notifying task of thread completion, loadTask:org.jboss.mx.loading.ClassLoadingTask@10e468f{classname: org.jboss.ejb3.EJBContainer, requestingThread: Thread[main,5,jboss], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@16925b0{ url=null ,addedOrder=2}, loadedClass: nullnull, loadOrder: 2147483647, loadException: java.lang.NoClassDefFoundError: org/jboss/ejb3/interceptors/direct/IndirectContainer, threadTaskCount: 0, state: 1, #CCE: 1} End nextTask(0), loadTask=org.jboss.mx.loading.ClassLoadingTask@10e468f{classname: org.jboss.ejb3.EJBContainer, requestingThread: Thread[main,5,jboss], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@16925b0{ url=null ,addedOrder=2}, loadedClass: nullnull, loadOrder: 2147483647, loadException: java.lang.NoClassDefFoundError: org/jboss/ejb3/interceptors/direct/IndirectContainer, threadTaskCount: 0, state: 4, #CCE: 1} Begin endLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@10e468f{classname: org.jboss.ejb3.EJBContainer, requestingThread: Thread[main,5,jboss], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@16925b0{ url=null ,addedOrder=2}, loadedClass: nullnull, loadOrder: 2147483647, loadException: java.lang.NoClassDefFoundError: org/jboss/ejb3/interceptors/direct/IndirectContainer, threadTaskCount: 0, state: 4, #CCE: 1} registerLoaderThread, ucl=org.jboss.mx.loading.UnifiedClassLoader3@56182f{ url=file:/var/data/applications/jboss/server/jbossgpa1/deploy/jboss-bean.deployer/ ,addedOrder=5}, t=Thread[main,5,jboss], prevT=null Begin beginLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@159d10{classname: org.jboss.util.JBossStringBuilder, requestingThread: Thread[main,5,jboss], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@56182f{ url=file:/var/data/applications/jboss/server/jbossgpa1/deploy/jboss-bean.deployer/ ,addedOrder=5}, loadedClass: nullnull, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 0, #CCE: 0} scheduleTask(1), created subtask: {t=Thread[main,5,jboss], ucl=org.jboss.mx.loading.UnifiedClassLoader3@56182f{ url=file:/var/data/applications/jboss/server/jbossgpa1/deploy/jboss-bean.deployer/ ,addedOrder=5}, name=org.jboss.util.JBossStringBuilder, requestingThread=Thread[main,5,jboss], order=5, releaseInNextTask=false} ``` I have used TextPad to search the whole folder structure including the .jars etc and there is not a single mention of `IndirectContainer` outside of the log files. I'm guessing that a library's dependency is not being satisfied, but I am unsure what the next step should be to diagnose this problem. Any ideas/suggestions? (running on RHEL4) I'm running `JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)]` I started getting a bit desparate, so I connected the debugger and created a conditional breakpoint (`"org.jboss.ejb3.interceptors.direct.IndirectContainer".equals(classname)`) on the constructor of org.jboss.mx.loading.ClassLoadingTask. When the breakpoint was hit, I went back down the stack to find the earliest mention of `IndirectContainer`: ![earliest mention of IndirectContainer](https://i.stack.imgur.com/dpOsr.png) On the left hand side you can see (I hope - it's not looking very clear on my small screen) that below the call to `UnifiedClassloader3.classLoadInternal()` is a native call (which I can't see any values of), and then there is a call to `UnifiedClassloader3.defineClass()`: ![jboss-ejb3-core-client.jar](https://i.stack.imgur.com/snGzV.png) In this call, you can see highlighted (in blue, bottom right) `jboss-ejb3-core-client.jar` - I don't work with Classloaders much, but I am assuming that the decision to instantiate a ClassLoadingTask for `IndirectContainer` was taken because of the contents of this .jar file. As far as I can see there is no mention of `IndirectContainer` in this .jar. Hopefully that's enough detail for someone to recognise the problem.
JBoss 4.2 startup throws NoClassDefFoundError
CC BY-SA 3.0
0
2011-05-18T10:42:22.220
2011-05-19T11:41:11.257
2011-05-18T12:55:51.847
68,283
68,283
[ "jboss", "classloader", "noclassdeffounderror", "jboss-4.2.x" ]
6,043,467
1
null
null
3
574
If this are the input points: ![enter image description here](https://i.stack.imgur.com/mJB5f.png) to the [Delauny Mesh Triangulation algorithm](http://en.wikipedia.org/wiki/Delaunay_triangulation), then what will be output of for ? This one: ![enter image description here](https://i.stack.imgur.com/JnSgb.png) or This one [ConvexHull of all given input points] ![enter image description here](https://i.stack.imgur.com/lvzzn.png) What is your answer? or
What should be the out put of Delauny Mesh Triangulation algorithm for 3-Dimension?
CC BY-SA 3.0
0
2011-05-18T10:48:52.587
2011-05-20T09:44:19.827
2011-05-18T12:02:30.743
468,968
468,968
[ "algorithm", "math", "3d", "mesh", "delaunay" ]
6,043,474
1
6,043,535
null
1
954
> [How to obtain longitude and latitude for a street address programmatically (and legally)](https://stackoverflow.com/questions/158474/how-to-obtain-longitude-and-latitude-for-a-street-address-programmatically-and-l) I want to get the `latitude` and `longitude` for an address! I found a site use it in this way: You can put an address directly or click on the map: ![enter image description here](https://i.stack.imgur.com/r9gTT.png) Questions: 1. How to display map for a getting latitude and longitude? assuming I have: `Latitude 37.77618``Longitude-122.42632` 1. How to display the map with a marker for those data
`latitude` and `longitude` with PHP & MySQL
CC BY-SA 3.0
null
2011-05-18T10:49:45.023
2011-05-18T11:26:24.863
2017-05-23T12:30:37.427
-1
521,466
[ "php", "geolocation" ]
6,043,490
1
6,045,106
null
0
377
Is there any open-source (free to use) code available that provides a vertical page index with tab-bar like functionality. The UI is usually inspired by paper based phone diaries and/or note books. For example, see attached screenshot of [Daily Notes + Todo](http://itunes.apple.com/us/app/daily-notes-todo/id364739177?mt=8) iPad application. I'm actually looking for something more like the tabs in Chrome (which are actually overlapping). ![Google Chrome tab-bar (overlapping)](https://i.stack.imgur.com/Q0CWf.png) Note: I'm looking for a solution that works with UISplitViewController (detail view, in particular). And, in my case each "button" will overlap (just like in actual paper based diaries indexes) ![Daily Notes + Todo iPad application screen-shot](https://i.stack.imgur.com/b6ZyX.png)
Open-source code for vertical page index
CC BY-SA 3.0
null
2011-05-18T10:51:18.423
2011-05-19T05:54:39.510
2011-05-19T05:54:39.510
49,739
49,739
[ "ios", "ipad", "tabbar" ]
6,043,579
1
null
null
15
9,446
I have the same question as on [this page](http://www.quora.com/How-do-you-use-Custom-Objects-in-Xcode-4): > In Interface Builder 3, we can drag custom object( ex. subview obj UIView ) to the stage. But in XCode 4, after we create a xib, I have trouble to reuse it except by code. And In the "Object Library" -> "Custom Objects",it's empty.![Custom Objects in Xcode 4](https://i.stack.imgur.com/BzVuA.png) But the answer given there doesn't work for me. I drag the xib file to Custom Objects list but it doesn't add anything to the list.
How do you use Custom Objects in Xcode 4?
CC BY-SA 3.0
0
2011-05-18T10:57:22.100
2012-06-20T01:50:42.630
2012-06-17T10:14:30.530
null
550,393
[ "iphone", "objective-c", "xcode" ]
6,043,609
1
6,043,826
null
1
3,024
I've downloaded the code from NeHe tutorial, the one about lighting. The original code didn't include the specular light, I simply added it. I defined a free color-lighting arrays and shut out the other lights. ``` GLfloat LightBlack[] = { 0.0f, 0.0f, 0.0f, 1.0f }; GLfloat LightGreen[] = { 0.0f, 1.0f, 0.0f, 1.0f }; ... glLightfv(GL_LIGHT1, GL_AMBIENT, LightBlack); // add lighting. (ambient) glLightfv(GL_LIGHT1, GL_SPECULAR, LightGreen); // THIS IS WHAT I ADDED glLightfv(GL_LIGHT1, GL_DIFFUSE, LightBlack); // add lighting. (diffuse). glLightfv(GL_LIGHT1, GL_POSITION, LightPosition); // set light position. ... glutSolidTeapot(0.8f); ``` However, the result seemed that all the lights are shut, there are no lights at all. Seems that the GL_SPECULAR didn't work. Why is that? With glDisable(GL_LIGHTING); ![With glDisable(GL_LIGHTING);](https://i.stack.imgur.com/QH6nh.png) With glDisable(GL_LIGHTING); ![With glEnable(GL_LIGHTING);](https://i.stack.imgur.com/Iq03a.png)
Why GL_SPECULAR doesn't work?
CC BY-SA 3.0
0
2011-05-18T11:01:02.947
2011-05-18T14:33:28.143
null
null
667,027
[ "opengl" ]
6,043,724
1
null
null
1
102
I have a div with `overflow: auto;`. Inside the div there is a listthat cross the border of the div and remain partially hidden. Here s an image: ![enter image description here](https://i.stack.imgur.com/iiDYi.jpg) In [jsfiddle.net/GQSFH/1](http://jsfiddle.net/GQSFH/1) I need that all of the list structure will be visible. I would like to show the whole list. How can I do it?
let the list cross the div border
CC BY-SA 3.0
null
2011-05-18T11:10:41.650
2011-05-18T12:47:39.890
2011-05-18T12:47:39.890
289,246
289,246
[ "javascript", "html", "css" ]
6,043,870
1
6,196,534
null
3
201
![Android Controls](https://i.stack.imgur.com/0Lq6N.png)
What is the name of this controls in android and how to implement this?
CC BY-SA 3.0
null
2011-05-18T11:22:59.717
2011-06-01T05:06:25.493
null
null
525,004
[ "android", "controls" ]
6,043,909
1
null
null
1
431
In my tableview names and title are comes from server through xml parsing as soon below figure. ![in figure1 name and title are comes from server through xml parsing](https://i.stack.imgur.com/Wvevv.png) In this tableview list I want to use indexed search which are as shown in the image below. How can I do this? ![Image](https://i.stack.imgur.com/2nQfi.jpg)
How to use index search in tableView?
CC BY-SA 4.0
0
2011-05-18T11:26:30.530
2020-03-04T09:42:30.227
2019-01-02T21:24:50.537
472,495
704,126
[ "iphone", "uitableview" ]
6,043,969
1
6,044,127
null
0
391
Which Audio Player is this?? ![enter image description here](https://i.stack.imgur.com/E1YtO.png) I want to add the Above player in my iPhone App How Can I include it to my App ? and I want to play Audio files from server (without downloading) so how can I achive that?
iPhone:Query about audio Player
CC BY-SA 3.0
null
2011-05-18T11:32:42.840
2011-05-18T11:44:42.710
null
null
531,783
[ "iphone", "objective-c", "cocoa-touch", "ios4" ]
6,044,030
1
6,044,073
null
3
728
Problem, simple and annoying. --- Im just trying to print a list of names, collected from my mysql database. The PHP-files are saved in utf8, the database and tables are set to use utf8. Still 'å,ä,ö', for example, outputs as �. Can't believe I'm still having this issue. ![enter image description here](https://i.stack.imgur.com/OieXv.png) Of course, Latin1 solves the problem. The thing is that I have to use utf8 since I'm doing some json_encode for sending the data to an ajax-script. ![enter image description here](https://i.stack.imgur.com/rPR0K.png) Any idea what on earth could be wrong? Should I convert the data to utf8 before returning it perhaps? Seems weird I should have to..
Having trouble with Php, Mysql and UTF8
CC BY-SA 3.0
0
2011-05-18T11:37:08.203
2011-05-18T12:00:29.677
null
null
543,365
[ "php", "encoding", "utf-8", "character-encoding" ]
6,044,094
1
6,044,294
null
2
5,759
hi i have put Sliding drawer in my application but this takes Space like in below Image if drawer is open ![enter image description here](https://i.stack.imgur.com/mHx9x.png) and if it is close then it looks like ![enter image description here](https://i.stack.imgur.com/ZlisK.png) ![enter image description here](https://i.stack.imgur.com/yVZxP.png) My layout is below ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:gravity="bottom" android:background="@drawable/androidpeople"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> <Button android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> <Button android:id="@+id/Button03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> <Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> <Button android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> <Button android:id="@+id/Button03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> </LinearLayout> <SlidingDrawer android:layout_width="wrap_content" android:id="@+id/SlidingDrawer" android:handle="@+id/slideHandleButton" android:content="@+id/contentLayout" android:padding="10dip" android:layout_height="250dip"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/slideHandleButton" android:background="@drawable/closearrow"> </Button> <LinearLayout android:layout_width="wrap_content" android:id="@+id/contentLayout" android:orientation="vertical" android:gravity="center|top" android:padding="10dip" android:background="#C0C0C0" android:layout_height="wrap_content"> <Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> <Button android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> <Button android:id="@+id/Button03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"> </Button> </LinearLayout> </SlidingDrawer> </LinearLayout> ``` My problem is even drawer is closed it takes space and i want to remove it so that first button top of the screen can come down
Sliding Drawer layout Problem in android
CC BY-SA 3.0
0
2011-05-18T11:41:54.510
2012-04-09T11:45:14.587
2011-05-18T12:06:26.250
630,668
630,668
[ "android", "layout", "slidingdrawer" ]
6,044,119
1
6,931,135
null
13
28,111
I've been playing around with OpenCV and with alot of trial and error have managed to learn how to detect circles (coins) in a photo. Everything is working great, except when I place coins directly next to each other (as seen below, ignore the fact that the 2nd image is upside down). ![Original Photo](https://i.stack.imgur.com/gc5HG.png) ![Contours Found](https://i.stack.imgur.com/9R3Kb.png) It seems because the coins are so close together cvFindContours think they are the same object. My question is how can I separate these contours into their separate objects, or get a list of contours that are already separated. The parameters I used for cvFindContours are: ``` cvFindContours( img, storage, &contour, sizeof(CvContour), CV_RETR_LIST, CV_CHAIN_APPROX_SIMPLE, cvPoint(0, 0) ); ``` Any help or advice would be greatly appreciated.
OpenCV cvFindContours - how do I separate components of a contour
CC BY-SA 3.0
0
2011-05-18T11:44:01.187
2013-12-24T14:43:16.080
2013-12-24T14:43:16.080
176,769
648,867
[ "c", "opencv", "image-processing", "geometry", "object-detection" ]
6,044,316
1
null
null
4
3,599
I'm making a text adventure, and I want to have pyGame animations and illustrations and a HUD! ![http://imageshack.us/photo/my-images/585/img20110518075206.jpg/](https://i.stack.imgur.com/ldH07.jpg) How can I insert this console? Thanks!
How can I insert a console in to a pyGame Window?
CC BY-SA 3.0
0
2011-05-18T11:59:43.740
2011-11-28T08:25:25.707
2011-11-28T08:25:25.707
234,976
759,128
[ "python", "user-interface", "console", "pygame", "frontend" ]
6,044,557
1
6,044,759
null
0
1,753
![enter image description here](https://i.stack.imgur.com/Yzv5T.png)Please help me to set a background image in EaglView. Here my source code with the image: ``` glBindFramebufferOES(GL_FRAMEBUFFER_OES, viewFramebuffer); brushImage = [UIImage imageNamed:@"Particle.png"].CGImage; width = CGImageGetWidth(brushImage); height = CGImageGetHeight(brushImage); if(brushImage) { brushData = (GLubyte *) calloc(width * height * 4, sizeof(GLubyte)); brushContext = CGBitmapContextCreate(brushData, width, height, 8, width * 4, CGImageGetColorSpace(brushImage), kCGImageAlphaPremultipliedLast); CGContextDrawImage(brushContext, CGRectMake(0.0, 0.0, (CGFloat)width, (CGFloat)height), brushImage); CGContextRelease(brushContext); glGenTextures(1, &brushTexture); glBindTexture(GL_TEXTURE_2D, brushTexture); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, brushData); free(brushData); } self.contentScaleFactor = 1.0; glLoadIdentity(); glMatrixMode(GL_PROJECTION); CGRect frame = self.bounds; CGFloat scale = self.contentScaleFactor; glOrthof(0, frame.size.width * scale, 0, frame.size.height * scale, -1, 1); glViewport(0, 0, frame.size.width * scale, frame.size.height * scale); glMatrixMode(GL_MODELVIEW); glDisable(GL_DITHER); glEnable(GL_TEXTURE_2D); glEnableClientState(GL_VERTEX_ARRAY); glEnable(GL_BLEND); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_POINT_SPRITE_OES); glTexEnvf(GL_POINT_SPRITE_OES, GL_COORD_REPLACE_OES, GL_TRUE); glPointSize(width / kBrushScale);` ```
How to set background image using OpenGL ES 1.1 for iPhone
CC BY-SA 3.0
0
2011-05-18T12:20:44.670
2011-05-31T11:47:19.823
2011-05-31T11:47:19.823
615,960
615,960
[ "iphone", "opengl-es" ]
6,044,736
1
6,047,823
null
0
1,838
We get some expression in [Cylindrical coordinates (r, ϕ, z )](http://en.wikipedia.org/wiki/Cylindrical_coordinate_system) like : `expr := r*z^2*sin((1/3)*`ϕ`)` we need to convert it into [Cartesian coordinates](http://en.wikipedia.org/wiki/Cartesian_coordinate_system) and than back to Cylindrical coordinates. How to do such thing? So I found something like this : `eval(expr, {r = sqrt(x^2+y^2), z = z,`ϕ`= arctan(y, x)})` but it seems incorrect, how to correct it and how make eval to convert backwords from Cartesian to Cylindrical? `&varphi;` == ϕ So I try: ``` R := 1; H := h; sigma[0] := sig0; sigma := sigma[0]*z^2*sin((1/3)*`&varphi;`); toCar := eval(sigma, {r = sqrt(x^2+y^2), z = z, `&varphi;` = arctan(y, x)}); toCyl := collect(eval(toCar, {x = r*cos(`&varphi;`), y = r*sin(`&varphi;`), z = z}), `&varphi;`) ``` It looks close to true but look: ![enter image description here](https://i.stack.imgur.com/iSLJs.jpg) why `arctan(r*sin(`ϕ`), r*cos(`ϕ`))` is not shown as ϕ? Actually it is only begining of fun time for me because I also need to calculate ``` Q := int(int(int(toCar, x = 0 .. r), y = 0 .. 2*Pi), z = 0 .. H) ``` and to get it back into Cylindrical coordinates...
Maple: How to convert Cylindrical coordinates to Cartesian coordinates?
CC BY-SA 3.0
null
2011-05-18T12:36:00.583
2011-05-18T17:24:13.693
2011-05-18T17:24:13.693
434,051
434,051
[ "coordinates", "maple", "cartesian", "cylindrical" ]
6,044,828
1
6,050,064
null
9
10,010
![a busy cat](https://ssl.gstatic.com/android/market/com.ebuddy.android/ss-3-320-480-160-1-f813fe8f097993db1f20b77ebb72f22b9a3bf2ce) I want to draw the number badge as shown in the above image on the Chats tab. That number badge shows number of new unread messages in chat. So how can I draw this kind of custom number badge. Is there any inbuilt API in Android SDK? Thanks in advance.
Drawing number badge like iPhone in Android
CC BY-SA 3.0
0
2011-05-18T12:43:36.653
2014-10-08T14:33:06.150
null
null
406,486
[ "android", "android-tabhost" ]
6,044,922
1
6,044,951
null
13
26,680
Instead of using the object directly, on a simple Razor View I have a form using as it+s `model` a decorator object. ``` public class GlobalAccount { public GlobalAccount() { this.TestService = new TestServiceModel(); } public TestServiceModel TestService { get; set; } } ``` beeing `TestServiceModel` represented as ``` public class TestServiceModel { [Required] [Display(Name = "Endpoint (url of your service like http://mydomain/remote/)")] public string Endpoint { get; set; } [Required] [Display(Name = "System username")] public string UserName { get; set; } [Required] [DataType(DataType.Password)] [Display(Name = "System password")] public string Password { get; set; } } ``` the `Password` property decorated with `DataType.Password` and in a `Partial Razor view` I have a call to that object ``` @model OnlineServices.Administration.Models.GlobalAccount ... @Html.TextBoxFor(model => model.TestService.Password, new { size = "30" }) ``` problem is that, in the `html` I get `type="text"` instead of `text="password"` You can see in [this image](https://i.stack.imgur.com/g6gpQ.png) the entire flow: ![enter image description here](https://i.stack.imgur.com/g6gpQ.png) > What am I here?
Model does not apply DataType.Password
CC BY-SA 3.0
null
2011-05-18T12:50:38.943
2013-08-28T07:49:08.593
null
null
28,004
[ "asp.net-mvc", "asp.net-mvc-3", "viewmodel" ]
6,045,029
1
6,045,294
null
2
1,212
I am using the CORDIC ATAN block in Simulink. I am using this block to calculate the Phase difference. here is the part of the model that I am using: ![enter image description here](https://i.stack.imgur.com/XQriH.jpg) I am giving the input a and b as 0, and I was expecting the value of `Phase_Signal` to be zero as well. But apparently its not. I am getting `Phase_Signal` as 1.7277. Please let me know, if I have configured the CORDIC block not properly. ATAN Block Parameters: ![enter image description here](https://i.stack.imgur.com/RJgjD.jpg) Thanks Kiran
Configuring CORDIC ATAN Block in Simulink
CC BY-SA 3.0
null
2011-05-18T12:56:34.423
2011-05-18T13:25:38.903
null
null
276,859
[ "fpga", "simulink", "xilinx" ]
6,045,091
1
6,046,142
null
0
145
I create a toolbar over the keyboard to display done button. I am using sdk 4.2 to build the project however when it is rendered on device running iOS 4.2.1 the barbutton gets clipped. The same runs perfectly fine on device running on iOS 4.0.1,The same problem persist even when i run the same code in simulator for Retina display. ``` aToolBar = [[UIToolbar alloc] init]; aToolBar.tintColor = self.navigationController.navigationBar.tintColor; UIBarButtonItem *whiteSpace = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]autorelease]; UIBarButtonItem *doneButton = [[[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleBordered target:self action:@selector(doneButtonPressed)]autorelease]; aToolBar.items = [NSArray arrayWithObjects:whiteSpace,doneButton,nil]; CGRect myToolBarRect = CGRectMake(0, self.view.frame.size.height-248, 320, 32); aToolBar.frame = myToolBarRect; [self.view addSubview:aToolBar]; ``` ![enter image description here](https://i.stack.imgur.com/v0co0.png) any clues in this ???
UIBarButton getting clipped on device running iOS greater than 4.0.1
CC BY-SA 3.0
null
2011-05-18T13:01:01.627
2011-05-18T14:12:32.477
2011-05-18T13:47:22.530
438,658
438,658
[ "iphone", "objective-c" ]
6,045,090
1
6,045,484
null
0
910
I am learning SQL and I have problem with building a query and I can't find any material to solve this. I will explain it on Album/Tracks database. So here is ![http://imageshack.us/photo/my-images/194/diagramtt.png/](https://i.stack.imgur.com/UT3NZ.png) and that what I want to do: ![http://imageshack.us/photo/my-images/803/selectwithwhere.png/](https://i.stack.imgur.com/QANgN.png) I am sure answer is obvious but it really gives me a headache. Mariusz --- (EDIT by ypercube): My wild guess is that OP wants to show all `Albums` and `Tracks` for those `Albums` that `Trackname` with `'UnwantedTrackName'` exists.
SQL query many-to-many ralationship problem
CC BY-SA 3.0
0
2011-05-18T13:01:00.690
2011-05-18T13:54:22.573
2011-05-18T13:25:49.720
344,949
746,962
[ "sql", "tsql", "many-to-many" ]
6,045,159
1
6,045,944
null
0
223
I found that code in the bottom executes more than 10 minutes on my server. The server itself is quite good and I cannot find any suitable explanation for that. I am using Joomla 1.6.3 the data is migrated from Joomla 1.5.23 using jUpgrade and MySQL client version is 5.1.45. ``` SELECT a.*,COUNT(DISTINCT m1.id) AS count_published,COUNT(DISTINCT m2.id) AS count_unpublished,COUNT(DISTINCT m3.id) AS count_trashed FROM `j16_menu_types` AS a LEFT JOIN `j16_menu` AS m1 ON m1.menutype = a.menutype AND m1.published = 1 LEFT JOIN `j16_menu` AS m2 ON m2.menutype = a.menutype AND m2.published = 0 LEFT JOIN `j16_menu` AS m3 ON m3.menutype = a.menutype AND m3.published = -2 GROUP BY a.id ORDER BY a.id asc; ``` I would be very pleased if someone could help me since I am in big trouble :) P.s. I have downloaded db and checked it on my computer - still the same, execution time is terrible. Is there any way to solve this problem? Or maybe to remove this sql part without significant changes in administration of joomla? Well it was done quite faster on my PC but still the result is far from one which would satisfy my. ![enter image description here](https://i.stack.imgur.com/l9zje.png) EDIT Well, I've found a reported bug of this problem. [http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=24868](http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=24868) And the solution is: ``` CREATE INDEX idx_menu_published ON j16_menu (published); ``` However, I am not sure how this will affect administration. I there is anyone who could briefly tell how this part works and should I edit Joomla core code or just use the above code on mysql once. I am wondering if I should index table everytime when I edit menu.
Joomla 1.6 menu problem in mysql (execution time < 10 min)
CC BY-SA 3.0
null
2011-05-18T13:05:51.610
2011-05-18T13:59:49.930
2011-05-18T13:39:09.910
710,223
710,223
[ "mysql", "joomla" ]
6,045,517
1
6,045,752
null
6
9,273
Given this html: ``` <div id="admin_login"> <form> <input type="text"/> <input type="text"/> </form> <a href="#">Login</a> </div> ``` And this css: ``` #admin_login form { background: #464950; padding: 5px; box-shadow: #000 2px 2px 10px; border-bottom-right-radius: 10px; margin-bottom:3px; } #admin_login input { display: block; border: none; margin: 6px 4px; padding: 4px; } #admin_login a { color: inherit; background: #464950; padding: 4px 8px; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; box-shadow: #000 2px 2px 10px; text-decoration: none; } ``` I get this: ![overlapping elements](https://cl.ly/6ruT/Screen_shot_2011-05-18_at_9.23.52_AM.png) How can I make the anchor tag and the form appear as one element, instead of overlapping each other? @TristarWebDesign's solution worked perfectly: ![enter image description here](https://i.stack.imgur.com/4Zgov.png)
How do I apply box shadow to adjacent elements without the appearance of overlapping?
CC BY-SA 3.0
0
2011-05-18T13:29:17.823
2015-05-16T16:49:18.790
2017-02-08T14:32:14.513
-1
176,021
[ "html", "css" ]
6,045,624
1
null
null
1
1,265
I having a serious issue with Umbraco Contour. I wish to send on 2 emails on submission with 2 different subjects with information gathered from the umbraco dictionary. The form and the email response works fine, but its just the subject line. Heres example of what I want to send to the client. ![enter image description here](https://i.stack.imgur.com/r5PNv.png) So for other email I would just change client to host so its like "Email Host Subject" instead of "Email Client Subject" What it renders on the email is the "[#Email Client Subject]" I have tried different alternatives but no success, same results..
Umbraco Contour: Changing Subject line to different dictionary items
CC BY-SA 3.0
null
2011-05-18T13:36:53.873
2013-02-25T13:49:48.777
2012-05-05T17:54:47.747
387,076
759,290
[ "email", "umbraco", "umbraco-contour" ]
6,045,790
1
null
null
1
4,230
I need to calculate Windows Form Width for displayed text. The form width is obviously in pixels so you would just want to obtain the width of the text in pixels but this doesn't work: ``` animationForm.Width = TextRenderer.MeasureText(_caption, animationForm.Font).Width; ``` The calculated form width is way too small (cuts off text) - what is going on here? MeasureText uses pixels, form width is in pixels. This works better but I don't think is right: ``` animationForm.Width = (int)(_caption.Length * animationForm.Font.Size); ``` Help would be appreciated. AnimationPic - PictureBox, Caption is set on a Label ``` using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Threading; using System.Windows.Forms; namespace PrlSystems.MaimInvoicing.Forms { public partial class ProgressIndicatorForm : Form { private volatile bool _animating = false; private Form _parent; private string _caption = ""; private object _mutex = new object(); public ProgressIndicatorForm(Form parent) { InitializeComponent(); _parent = parent; } public string Caption { set { _caption = value; } get { return _caption; } } public void StartAnimation() { lock (_mutex) { if (!_animating) { if (_parent != null) { _parent.Cursor = Cursors.WaitCursor; _parent.Enabled = false; } _animating = true; _SpawnAnimationThread(); } } } public void StopAnimation() { lock (_mutex) { if (_animating) { _animating = false; // stop animation thread if (_parent != null) { // restore parent form UI _parent.Cursor = Cursors.Default; _parent.Enabled = true; _parent.Activate(); } } } } private void _SpawnAnimationThread() { Thread animationThread = new Thread(new ThreadStart(_Animate)); animationThread.Priority = ThreadPriority.Normal; animationThread.IsBackground = true; // should terminate when application ends animationThread.Start(); } private void _Animate() { ProgressIndicatorForm animationForm = new ProgressIndicatorForm(_parent); animationForm.CaptionLabel.Text = _caption; animationForm.StartPosition = FormStartPosition.CenterScreen; animationForm.TopMost = true; animationForm.Width = _CalculateFormWidth(animationForm); animationForm.Show(); while (_animating) { animationForm.CaptionLabel.Text = _caption; animationForm.Width = _CalculateFormWidth(animationForm); animationForm.BringToFront(); animationForm.Refresh(); } animationForm.Close(); animationForm.Dispose(); } private int _CalculateFormWidth(ProgressIndicatorForm animationForm) { int width = AnimationPic.Location.X + AnimationPic.Width + TextRenderer.MeasureText(_caption, animationForm.Font).Width; return width; } } } ``` Image in the designer: ![This is how it looks in the designer, the progress dialog](https://i.stack.imgur.com/GQZ6i.jpg)
Calculate Windows Form Width for Displayed Text
CC BY-SA 3.0
null
2011-05-18T13:48:14.553
2011-05-19T22:53:47.167
2011-05-19T22:21:27.543
2,835,355
2,835,355
[ ".net", "winforms", "forms", "graphics", "textrenderer" ]
6,045,817
1
6,127,161
null
0
1,239
I'm trying to create behavior similar to iPhone keyboard (see included image). As in, when user starts and moves touch, she sees a zoomed version of the element that is touched, and selection would happen when on touch up. I'm using Zepto. I can get the touch coordinates correctly, but have trouble finding the object that's under the finger. I'm using below code to check which element is returned as target of the event. ``` $("#myList li").live('touchmove', function(event) { console.log(event.touches[0].target.innerHTML); }); ``` This returns always the event that was on starttouch. On [Apple documentation](http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html) the touch should have event.touches event.changedTouches event.targetTouches I've tried checking the first element on each of the objects, but they all seem to contain just the starttouch-element as target. Is there something I'm missing here? I get the coordinates for the touch correctly from ``` var positionTop = event.touches[0].pageY; var positionLeft = event.touches[0].pageX; ``` If all else fails, I started to think maybe there's a way to find the DOM-element under the touch with the coordinates. Any ideas are appreciated. ![Behavior similar to iPhone keyboard](https://i.stack.imgur.com/Ni3BF.jpg)
iOS/Android browser: showing a zoomed preview of button on touchmove
CC BY-SA 3.0
null
2011-05-18T13:50:07.760
2011-05-28T22:23:15.473
2011-05-18T14:52:34.603
49,982
49,982
[ "javascript", "mobile", "mobile-website", "touchscreen", "zepto" ]
6,045,875
1
6,045,968
null
1
2,089
i want to perform some test by using Json . I am using google app engine for development . I want to know how to import json lib and how i can import in jsp page . The work i have done so far can be seen in picture![enter image description here](https://i.stack.imgur.com/8l52T.png) i am not sure that i have added jar file correctly or not it is marked with red . Thanks
Error while importing in jsp page
CC BY-SA 3.0
null
2011-05-18T13:55:06.927
2015-01-23T11:46:35.337
null
null
667,340
[ "java", "google-app-engine", "jsp" ]
6,045,917
1
6,046,073
null
2
1,121
I'm getting started using Kohana framework. How do I properly link images? I'm linking images using the usual way: ``` <img src="../../resources/images/img01.jpg" /> ``` I'm using dreamweaver, and I can see that the link is correct. Since I can see an image in the preview: ![enter image description here](https://i.stack.imgur.com/vmPlJ.png) The link is still the same when I reference the image based on the controller.
How to link images in kohana?
CC BY-SA 3.0
null
2011-05-18T13:57:57.563
2011-05-18T14:08:25.900
null
null
472,034
[ "php", "kohana" ]
6,046,320
1
6,046,403
null
0
2,605
I want to move the bottom bar in my layout all the way to the bottom of the screen, but there is a black bar at the bottom. How can I remove this black space so that my application fills the screen? Here the code : ``` <?xml version="1.0" encoding="utf-8" ?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:background="@drawable/back1" android:layout_height="wrap_content"> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="40dip" android:gravity = "center" > /> </LinearLayout> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:background="#48250F" android:gravity="center"> <ImageView android:id="@+id/detail_view_1" android:layout_width="200dip" android:layout_height="240dip" android:layout_gravity="center" android:paddingTop="30dip" android:paddingBottom="10dip" /> <TextView android:id="@+id/detail_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="2dip" android:paddingTop="10dip" android:paddingBottom="10dip" android:textStyle="bold" android:textColor="#FFFFFF" /> <Button android:id="@+id/btn_facebook" android:background="@drawable/button_color_selector" android:layout_width="120dip" android:layout_height="25dip" android:text="facebook" android:textColor = "#FFFFFF" android:layout_marginTop="10dip" android:layout_marginBottom="5dip" /> <Button android:id="@+id/btn_email" android:background="@drawable/button_color_selector" android:layout_width="120dip" android:layout_height="25dip" android:text="email" android:textColor = "#FFFFFF" android:layout_marginTop="10dip" android:layout_marginBottom="5dip"/> </LinearLayout> <TableLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity = "center" android:layout_gravity="bottom" android:stretchColumns="1,3,5,7"> <TableRow> <Button android:id="@+id/image21" android:background="@drawable/flavors" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding= "3dip" android:layout_gravity="bottom" /> <TextView android:id="@+id/text_empty1" android:layout_width="wrap_content" /> <Button android:id="@+id/image22" android:background="@drawable/calendar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft = "1dip" android:paddingRight = "1dip" android:layout_gravity="bottom" /> <TextView android:id="@+id/text_empty2" android:layout_width="wrap_content" /> <Button android:id="@+id/image23" android:background="@drawable/fun" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft = "1dip" android:paddingRight = "1dip" android:layout_gravity="bottom" /> <TextView android:id="@+id/text_empty3" android:layout_width="wrap_content" /> <Button android:id="@+id/image24" android:background="@drawable/locations" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft = "1dip" android:paddingRight = "1dip" android:layout_gravity="bottom" /> <TextView android:id="@+id/text_empty4" android:layout_width="wrap_content" /> <Button android:id="@+id/image25" android:background="@drawable/gifts" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft = "1dip" android:paddingRight = "1dip" android:layout_gravity="bottom" /> </TableRow> </TableLayout> </LinearLayout> ``` ![image](https://i.stack.imgur.com/4kn1m.png)
Why is there a black bar at the bottom of my layout?
CC BY-SA 3.0
null
2011-05-18T14:24:44.497
2011-05-18T15:07:48.673
2011-05-18T14:43:32.367
390,989
304,785
[ "android", "android-layout", "tablelayout" ]
6,046,514
1
6,046,827
null
23
50,217
I'm reading a book on [EF4](https://en.wikipedia.org/wiki/Entity_Framework) and I came across this problem situation: ![enter image description here](https://i.stack.imgur.com/v6XM9.jpg) So I was wondering how to create this database so I can follow along with the example in the book. How would I create these tables, using simple TSQL commands? Forget about creating the database, imagine it already exists.
How can I share the same primary key across two tables?
CC BY-SA 4.0
0
2011-05-18T14:38:09.450
2019-05-16T17:14:09.717
2019-05-16T17:14:09.717
814,702
699,978
[ "sql", "sql-server", "tsql" ]
6,046,590
1
null
null
5
2,978
I have an webapp, where buttons are created with `<a>` elements, and all have `href` set to `#`. I want to remove blue border around `<a>` links during mouse click, because Opera Mobile annoyingly highlights all `<a>` elements, which has same `href` set. Example picture: ![enter image description here](https://i.stack.imgur.com/CSqD3.png) How can I remove it?
Remove Opera Mobile blue border around <a> links
CC BY-SA 3.0
null
2011-05-18T14:43:17.127
2016-08-05T04:42:13.687
2013-03-08T23:17:11.740
417,685
424,205
[ "javascript", "css", "mobile", "opera" ]
6,046,643
1
null
null
8
1,206
I am using vim's spell dictionary feature, and add these lines to my .vimrc set dictionary=~/.vim/dict/en_US.dic set complete+=k Then I open vim and input `le`, then input `<ctrl+x>` and `<ctrl+k>`. The auto complete show up correctly. But when I delete le to null, the vim screen is frozen. It seems vim keep scan dictionary and try to show all words in dictionary into the screen. After about 3 minutes, vim will come back and show up a list of words. screen copy as following: ![open vim and input le, and invoke auto complete](https://i.stack.imgur.com/ozjiR.png) ![then delete all input chars, will get vim screen frozen](https://i.stack.imgur.com/64p9Z.png) ![after about 3 minutes, vim will come back](https://i.stack.imgur.com/0IFmb.png) Anyone know how to get rid of this?
vim frozen when using spell keyword auto-complete
CC BY-SA 3.0
0
2011-05-18T14:46:24.767
2013-03-25T10:58:07.383
null
null
204,606
[ "vim" ]
6,046,838
1
null
null
2
5,500
the main concern is my query is running smoothly in SQL and also in table dataset query preview. i mean in table dataset query data preview it's displaying 2 records from my database table. please find the screen shot![enter image description here](https://i.stack.imgur.com/iPlax.png). also find Jrxml file. ``` <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report2" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <style name="table"> <box> <pen lineWidth="1.0" lineColor="#000000"/> </box> </style> <style name="table_TH" mode="Opaque" backcolor="#F0F8FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_CH" mode="Opaque" backcolor="#BFE1FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <subDataset name="Table Dataset 1"> <queryString> <![CDATA[select lname, fname from test1 order by fname]]> </queryString> <field name="lname" class="java.lang.String"/> <field name="fname" class="java.lang.String"/> </subDataset> <subDataset name="New Dataset 1"> <queryString language="SQL"> <![CDATA[select lname, fname from test1 order by fname]]> </queryString> <field name="lname" class="java.lang.String"/> <field name="fname" class="java.lang.String"/> </subDataset> <queryString> <![CDATA[select lname, fname from test1 order by fname]]> </queryString> <field name="lname" class="java.lang.String"/> <field name="fname" class="java.lang.String"/> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"/> </title> <pageHeader> <band height="35" splitType="Stretch"/> </pageHeader> <columnHeader> <band height="61" splitType="Stretch"> <staticText> <reportElement x="100" y="41" width="102" height="20"/> <textElement/> <text><![CDATA[lname]]></text> </staticText> <staticText> <reportElement x="202" y="41" width="147" height="20"/> <textElement/> <text><![CDATA[fname]]></text> </staticText> </band> </columnHeader> <detail> <band height="125" splitType="Stretch"> <componentElement> <reportElement key="table" style="table" x="100" y="0" width="360" height="86"/> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="Table Dataset 1"> <dataSourceExpression><![CDATA[$P{REPORT_DATA_SOURCE}]]></dataSourceExpression> </datasetRun> <jr:column width="90"> <jr:detailCell style="table_TD" height="20" rowSpan="1"> <textField> <reportElement x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{lname}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="90"> <jr:detailCell style="table_TD" height="20" rowSpan="1"> <textField> <reportElement x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{fname}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="54" splitType="Stretch"/> </pageFooter> <summary> <band height="42" splitType="Stretch"/> </summary> </jasperReport> ``` but the output in pdf report is only 1 record which is last 1. ![enter image description here](https://i.stack.imgur.com/6YaHu.png)
Table tool in showing one fewer database records
CC BY-SA 3.0
0
2011-05-18T14:59:35.887
2014-01-01T16:25:50.677
2011-05-19T09:45:13.837
59,087
759,100
[ "database", "jasper-reports", "ireport" ]
6,046,929
1
8,943,602
null
2
742
I have a problem somehow similar to this post : [glTexGen in OpenGL ES 2.0](https://stackoverflow.com/questions/5062301/gltexgen-in-opengl-es-2-0) I've looked up on the web a couple of other websites without finding out how to solve my issue. Basically, I want to map a texture onto a 2D quad after having set up an orthographic projection. The problem I have is that the texture is distorted as you can see on this picture where I used a coloured pattern instead of a texture: ![enter image description here](https://i.stack.imgur.com/4jQlu.png) I would like the lines of the texture to stay straight on the quad, but as you can see, they are distorted. I guess that I should modify the vertex shader in order for the texture coordinates to map the quad but I can't figure out how. Thanks a lot, Jim
Problem glTexGen in Open GL ES 2.0
CC BY-SA 3.0
0
2011-05-18T15:05:41.450
2012-01-20T15:17:46.787
2017-05-23T12:26:57.833
-1
759,429
[ "opengl-es", "opengl-es-2.0", "opengl-to-opengles" ]
6,047,407
1
13,223,588
null
5
2,174
working on a page that will allow a webmaster to add styles to their twitter feed. Several of these styles use transparency in their display. I want to create a list of images for them to choose from. Currently I am taking screenshots on a checked background such as this: ![enter image description here](https://i.stack.imgur.com/xSplc.png) But that isn't really what I want. Is their some method of capturing an image of an HTML element, and maintaining the transparency? EDIT: I'm just digging into this, so I'm coming across new topics, such as HTML5 Canvas, and -moz-element. Is it possible to set a canvas background to the html element using -moz-element, then extract the image data from the canvas? I'm going to try this unless someone who's 'been there done that' heads me off. EDIT: The -moz-element and canvas was a deadend. -moz-element will set the item as a background, but will not allow you to save background image. And canvas doesn't save its background, even when the background is a normal image.
How to capture an image of an HTML element, and maintain transparency?
CC BY-SA 3.0
0
2011-05-18T15:43:29.003
2020-10-21T15:01:59.790
2020-06-20T09:12:55.060
-1
710,913
[ "html", "image", "transparency", "gimp" ]
6,047,788
1
6,047,825
null
9
9,875
Its easy to check storage sizes for Tables and Indexes, you can right-click the table object on SSMS explorer and voila, the details appear in a nice popup. But since Indexed Views are displayed the same as Normal Views, there is no storage information avaiable in SSMS to show me the current size taken up on disk. ![enter image description here](https://i.stack.imgur.com/1McEe.png) Is there an alterate way to calculate the size (say via a system SP or similar method)? Thanks.
How do I check the size of an indexed view in SQL Server?
CC BY-SA 3.0
null
2011-05-18T16:15:01.890
2011-07-19T13:36:20.650
2011-05-18T16:20:47.800
448,568
448,568
[ "sql-server", "ssms", "indexed-view", "system-stored-procedures" ]
6,047,771
1
null
null
5
8,823
This is a follow on to a previous post about being unable to impersonate a currently logged in Windows user. There were many good suggestions, but the previous thread was getting messy, so I am resetting with this post. Hopefully with the current state documented below it will be obvious what the issue is. This is a well worn path, so I have to believe all I am missing is a little configuration step. PROBLEM: I need to have ASP.NET impersonate the currently logged in user. When I run under IIS 7.5, it doesn't work. IIS Express works fine, but I believe that is because the debugging session is running under my user id. I am using `Environment.Username` to determine who this user is. There was a suggestion that this property always returns the logged in user name, but from my testing it returns the impersonated user from IIS. For example, if my web.config has… ``` <identity impersonate="true" /> ``` When I run under IIS 7.5 with that setting, `Environment.Username` returns . I believe this is the IIS anonymous user account. If I change web.config to… ``` <identity impersonate="true" userName="domain\jlivermore" password="mypassword" /> ``` … then Environment.Username returns jlivemore. However, I need it to return jlivermore without me explicitly setting it in web.config. Here are my IIS settings… ![.NET Authorization Rules](https://i.stack.imgur.com/2gjiw.png) ![Authentication](https://i.stack.imgur.com/NuJSW.png) One question, if I disable Anonymous Authentication, then I am prompted to login to the site. I thought if you were logged in with an Active Directory account on a domain then this challenge wouldn't appear? Even if I enter my username/password into this prompt, I still don't get the impersonation to work. ![enter image description here](https://i.stack.imgur.com/Bg73P.png) ![Basic Settings](https://i.stack.imgur.com/e0mue.png)
ASP.NET impersonation problem (part 2)
CC BY-SA 3.0
0
2011-05-18T16:12:51.647
2011-08-04T21:33:20.473
2011-05-18T16:18:01.220
131,270
131,270
[ "asp.net", "asp.net-mvc-2", "asp.net-mvc-3", "impersonation", "windows-security" ]
6,047,884
1
8,177,670
null
15
37,773
I have 4 media queries. The 1st, 3rd and 4th work, but the 2nd one doesn't seem to activate. Why is the 480x720 (second media query) defaulting to the first media query? ``` @media screen and (max-width: 320px) and (orientation: portrait) { body{background:#F0F;} } @media screen and (min-width: 321px) and (max-width: 480px) and (orientation: portrait) { body{background:#F00;} } @media screen and (max-width: 480px) and (orientation: landscape) { body{background:#0F0;} } @media screen and (min-width: 481px) and (max-width: 800px) and (orientation: landscape) { body{background:#FF0;} } ``` ![1st Media Query CSS Output](https://i.stack.imgur.com/9Wo59.png) ![2nd Media Query CSS Output](https://i.stack.imgur.com/FCGoE.png) ![3rd Media Query CSS Output](https://i.stack.imgur.com/dHRqI.png) ![4th Media Query CSS Output](https://i.stack.imgur.com/TJ0mc.png) ![2nd Media Query fails](https://i.stack.imgur.com/MmvXQ.png) ![1st Media Query passes](https://i.stack.imgur.com/9Wo59.png) ![3rd Media Query passes](https://i.stack.imgur.com/dHRqI.png) ![4th media query passes](https://i.stack.imgur.com/TJ0mc.png) Why is the 480x720 (second media query) defaulting to the first media query?
Media queries not behaving as expected on Android
CC BY-SA 3.0
0
2011-05-18T16:22:55.493
2015-09-07T17:54:18.730
2012-03-03T01:20:22.650
436,641
654,362
[ "android", "css", "media-queries" ]
6,047,961
1
6,048,245
null
21
39,072
I have a simple chart, and I'd like the labels on the x-axis to be rotated 45 degrees. What am I doing wrong? ``` Chart c = new Chart(); c.ChartAreas.Add(new ChartArea()); c.Width = 200; c.Height = 200; Series mySeries = new Series(); mySeries.Points.DataBindXY(new string[] { "one", "two", "three" }, new int[] { 1, 2, 3 }); mySeries.LabelAngle = 45; // why doesn't this work? c.Series.Add(mySeries); ``` The output is: ![img](https://i.stack.imgur.com/zbolL.png) I'm using the charting stuff from System.Web.UI.DataVisualization.Charting.
C# chart rotate labels
CC BY-SA 3.0
0
2011-05-18T16:29:57.123
2020-08-07T19:09:18.900
null
null
347,165
[ "c#", "charts" ]
6,048,076
1
6,048,909
null
6
18,055
I have an array formula that outputs a single value, and I want to give a whole bunch of cells this same array formula. The problem is when I assign the array formula to the range, it interprets the formula in such a way as them all sharing the output of a single call to the array formula, rather than each of them outputting a separate value. To show you what I mean, I'm using the following code: ``` With MarginalData .Range(.Cells(2, 1), .Cells(13, .UsedRange.Columns.Count)).FormulaArray = pullFormula End With ``` , is a result that looks like this: ![desired result](https://i.stack.imgur.com/Rs3rq.png) That is what it looks like when I enter the array formula separately in every cell in the range. But is this: ![given result](https://i.stack.imgur.com/Auiru.png) The output of the array formula in the first cell is repeated in all the columns - they all share the same output. How can I programatically assign the array formula as though each cell had it assigned separately? --- The formula is: > {=INDEX(BatchResults,MATCH(TTID&CHAR(1)&ROW()-1,BatchResultsTTIDS&CHAR(1)&BatchResultsLayers,0),MATCH(A$1,BatchTTIDData!$1:$1,0))} It must be put in as an array formula because it performs a match not on a single column, but on two concatenated columns. The concatenation of the columns must be returned as an array, hence the formula must be entered as an array formula. --- The simplest solution so far, a variant of the accepted answer below, is the following: ``` Const pullFormula = "=INDEX(BatchResults,MATCH(TTID&CHAR(1)&ROW()-1,BatchResultsTTIDS&CHAR(1)&BatchResultsLayers,0),MATCH(A$1,BatchTTIDData!$1:$1,0))" With wrksht With .Range(.Cells(2, 1), .Cells(13, .UsedRange.Columns.Count)) .Formula = pullFormula .FormulaArray = .FormulaR1C1 End With End With ```
Set ArrayFormula to many Excel cells using VBA
CC BY-SA 3.0
0
2011-05-18T16:38:54.820
2011-05-19T16:06:30.030
2011-05-19T15:42:43.203
529,618
529,618
[ "excel", "vba", "array-formulas" ]
6,048,153
1
6,061,134
null
2
6,831
I've inherited a site that uses Google's [GSNewsBar](http://www.google.com/uds/solutions/wizards/newsbar.html). The wizard creates code that includes a linked stylesheet. On every browser BUT IE8 things display correctly (even IE7!) - ![enter image description here](https://i.stack.imgur.com/qMOs3.png) But in IE8, the list of search terms doesn't wrap. I've added a local style to the code that overrides the div width, and in IE8 using developer tools, I can see that it's getting the width set correctly (the blue outline in the screenshot below). But the text is not wrapping. Can anyone help me out here? I've tried adding word-wrap:break-word to the override style, which does force it to wrap, but it breaks in the middle of words instead of between words. ![enter image description here](https://i.stack.imgur.com/iWXly.png) Here's the entire piece of code, including the override styles: ``` <!-- Begin News Bar Wizard Generated Code++ --> <!-- // Created with a Google AJAX Search Wizard //http://www.google.com/uds/solutions/wizards/newsbar.html --> <!-- // The Following div element will end up holding the actual newsbar. // You can place this anywhere on your page. --> <div id="newsBar-bar" style="padding-left:10px"> <span style="color:#a5a599">Loading Google News Results</span> </div> <!-- Ajax Search Api and Stylesheet // Note: If you are already using the AJAX Search API, then do not include it // or its stylesheet again --> <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-nbw" type="text/javascript"></script> <style type="text/css"> @import url("http://www.google.com/uds/css/gsearch.css"); </style> <!-- News Bar Code and Stylesheet --> <script type="text/javascript"> window._uds_nbw_donotrepair = true; </script> <script src="http://www.google.com/uds/solutions/newsbar/gsnewsbar.js?mode=new" type="text/javascript"></script> <style type="text/css"> @import url("http://www.google.com/uds/solutions/newsbar/gsnewsbar.css"); </style> <style type="text/css"> .gs-result .gs-title * { color: #243c60; } .titleBox_gsnb { line-height: 1.1; padding-bottom: .25em; } .statusBoxRoot_gsnb { width: 300px; /*word-wrap: normal;*/ } </style> <script type="text/javascript"> function LoadNewsBar() { var newsBar; var options = { largeResultSet : true, title : "Google News Results", horizontal : false, linkTarget : GSearch.LINK_TARGET_BLANK, resultStyle : GSnewsBar.RESULT_STYLE_COMPRESSED, autoExecuteList : { executeList : [<?php print $google_news_string; ?>] } } newsBar = new GSnewsBar(document.getElementById("newsBar-bar"), options); } // arrange for this function to be called during body.onload // event processing GSearch.setOnLoadCallback(LoadNewsBar); </script> <!-- ++End News Bar Wizard Generated Code++ --> ``` - as per the comment below, the search terms wrap correctly when used in a completely blank, otherwise-unstyled page, so there has to be something in the existing styling on the page that's causing this. Here is the Computed Styles content for the selected element (statusBoxRoot_gsnb) from Chrome's element inspector (hugely long, sorry): ``` -webkit-animation-delay: 0s; -webkit-animation-direction: normal; -webkit-animation-duration: 0s; -webkit-animation-fill-mode: none; -webkit-animation-iteration-count: 1; -webkit-animation-name: none; -webkit-animation-play-state: running; -webkit-animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); -webkit-appearance: none; -webkit-backface-visibility: visible; -webkit-background-clip: border-box; -webkit-background-composite: source-over; -webkit-background-origin: padding-box; -webkit-background-size: auto auto; -webkit-border-fit: border; -webkit-border-horizontal-spacing: 0px; -webkit-border-image: none; -webkit-border-vertical-spacing: 0px; -webkit-box-align: stretch; -webkit-box-direction: normal; -webkit-box-flex: 0; -webkit-box-flex-group: 1; -webkit-box-lines: single; -webkit-box-ordinal-group: 1; -webkit-box-orient: horizontal; -webkit-box-pack: start; -webkit-box-reflect: none; -webkit-box-shadow: none; -webkit-color-correction: default; -webkit-column-break-after: auto; -webkit-column-break-before: auto; -webkit-column-break-inside: auto; -webkit-column-count: auto; -webkit-column-gap: normal; -webkit-column-rule-color: #383833; -webkit-column-rule-style: none; -webkit-column-rule-width: 0px; -webkit-column-span: 1; -webkit-column-width: auto; -webkit-font-smoothing: auto; -webkit-highlight: none; -webkit-hyphenate-character: auto; -webkit-hyphenate-limit-after: auto; -webkit-hyphenate-limit-before: auto; -webkit-hyphens: manual; -webkit-line-break: normal; -webkit-line-clamp: none; -webkit-locale: auto; -webkit-margin-after-collapse: collapse; -webkit-margin-before-collapse: collapse; -webkit-marquee-direction: auto; -webkit-marquee-increment: 6px; -webkit-marquee-repetition: infinite; -webkit-marquee-style: scroll; -webkit-mask-attachment: scroll; -webkit-mask-box-image: none; -webkit-mask-clip: border-box; -webkit-mask-composite: source-over; -webkit-mask-image: none; -webkit-mask-origin: border-box; -webkit-mask-position: 0% 0%; -webkit-mask-repeat: repeat; -webkit-mask-size: auto auto; -webkit-nbsp-mode: normal; -webkit-perspective: none; -webkit-perspective-origin: 150px 31px; -webkit-rtl-ordering: logical; -webkit-svg-shadow: none; -webkit-text-combine: none; -webkit-text-decorations-in-effect: none; -webkit-text-emphasis-color: #383833; -webkit-text-emphasis-position: over; -webkit-text-emphasis-style: none; -webkit-text-fill-color: #383833; -webkit-text-security: none; -webkit-text-stroke-color: #383833; -webkit-text-stroke-width: 0px; -webkit-transform: none; -webkit-transform-origin: 150px 31px; -webkit-transform-style: flat; -webkit-transition-delay: 0s; -webkit-transition-duration: 0s; -webkit-transition-property: all; -webkit-transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); -webkit-user-drag: auto; -webkit-user-modify: read-only; -webkit-user-select: text; -webkit-writing-mode: horizontal-tb; alignment-baseline: auto; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto; baseline-shift: baseline; border-bottom-color: #383833; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-left-color: #383833; border-left-style: none; border-left-width: 0px; border-right-color: #383833; border-right-style: none; border-right-width: 0px; border-top-color: #383833; border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; caption-side: top; clear: none; clip: auto; clip-path: none; clip-rule: nonzero; color: #383833; color-interpolation: srgb; color-interpolation-filters: linearrgb; color-rendering: auto; cursor: auto; direction: ltr; display: block; dominant-baseline: auto; empty-cells: show; fill: black; fill-opacity: 1; fill-rule: nonzero; filter: none; float: none; flood-color: black; flood-opacity: 1; font-family: Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; glyph-orientation-horizontal: 0deg; glyph-orientation-vertical: auto; height: 62px; image-rendering: auto; kerning: 0; left: auto; letter-spacing: normal; lighting-color: white; line-height: 18px; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; marker-end: none; marker-mid: none; marker-start: none; mask: none; max-height: none; max-width: none; min-height: 0px; min-width: 0px; opacity: 1; orphans: 2; outline-color: #383833; outline-style: none; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; page-break-after: auto; page-break-before: auto; page-break-inside: auto; pointer-events: auto; position: static; resize: none; right: auto; shape-rendering: auto; speak: normal; stop-color: black; stop-opacity: 1; stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-opacity: 1; stroke-width: 1; table-layout: auto; text-align: left; text-anchor: start; text-decoration: none; text-indent: 0px; text-overflow: clip; text-rendering: auto; text-shadow: none; text-transform: none; top: auto; unicode-bidi: normal; vector-effect: none; vertical-align: baseline; visibility: visible; white-space: normal; widows: 2; width: 300px; word-break: normal; word-spacing: 0px; word-wrap: normal; writing-mode: lr-tb; z-index: auto; zoom: 1; ``` There's no easy way I can find to copy/paste like that from IE8's developer tools, so here's a screenshot of the styles as applied to the selected element (statusBoxRoot_gsnb). I'm hoping someone will see something glaringly obvious in the first few lines so you don't have to read through all of it! :![enter image description here](https://i.stack.imgur.com/szBw9.png)
CSS issue in IE8 only
CC BY-SA 3.0
null
2011-05-18T16:45:28.730
2011-05-19T15:32:33.543
2011-05-18T17:26:01.500
128,165
341,611
[ "css", "internet-explorer-8" ]
6,048,230
1
6,050,944
null
2
810
I'm trying to create a website with a `background-size:100% 100%` css rule. It's an image that sits behind the content and is designed in such a way that no matter the dimensions of the browser window it still works well. I think the rule I have (as below) is clashing with Blueprint somehow. ``` body { background:url('../img/bg.jpg') no-repeat; background-size:100% 100%; -moz-background-size:100% 100%; -webkit-background-size:100% 100%; } ``` This should generate a perfect 100% background image, however, the results I'm getting is that the background finishes where the content finishes, regardless of the browser window size. Here are two images of what I want and what I'm getting: ![expected background display](https://i.stack.imgur.com/GPBki.png) ![display I'm getting](https://i.stack.imgur.com/jJEM7.png) Please help me, I'm not sure how to proceed with this. Here is my HTML setup for the page: ``` <body> <div class="container"> <div id="navbar" class="span-6 last"> <div id="logo" class="span-6 last"></div> <div id="menu"> <ul> <li class="menu-current"><a href="index.php">Home</a></li> <li><a href="aboutus.php">About Us</a></li> <li><a href="services.php">Services</a></li> <li><a href="contact.php">Contact Us</a></li> </ul> </div> </div> <div id="content" class="span-18 last"> </div> </div> </body> ``` If the container is 550px high then the background ends 550px down the page with an empty white space beneath that area. I was able to replicate the effect on JSFiddle: [http://jsfiddle.net/danhanly/TurW5/4/](http://jsfiddle.net/danhanly/TurW5/4/)
Does Blueprint prevent a 100% background-size for images in CSS?
CC BY-SA 3.0
null
2011-05-18T16:51:42.680
2012-04-09T17:52:19.623
2012-04-09T17:52:19.623
106,224
418,146
[ "blueprint-css", "css" ]
6,048,356
1
6,048,705
null
1
1,733
I wanna switch the styles the datascroller uses to shows the selected page. Is it possible? ``` <f:facet name="footer"> <a4j:form> <rich:datascroller styleClass="wrap-paginacao" for="estabelecimentoGrid" boundaryControls="hide" stepControls="show" fastControls="hide" > <f:facet name="previous"> <h:graphicImage value="/home/img/previous.png"/> </f:facet> <f:facet name="next"> <h:graphicImage value="/home/img/next.png"/> </f:facet> </rich:datascroller> </a4j:form> </f:facet> ``` Default styles: ![Default](https://i.stack.imgur.com/YnFyr.png) Styles I want: ![What I Want](https://i.stack.imgur.com/zmDwb.png)
Switch CSS of a rich:datascroller
CC BY-SA 3.0
null
2011-05-18T17:03:21.810
2011-05-18T18:12:28.943
2011-05-18T18:12:28.943
20,578
509,865
[ "css", "jsf", "richfaces", "facet", "datascroller" ]
6,048,343
1
null
null
1
823
I have a .NET 2 web service with a single web method that looks something like this: ``` [WebMethod] public Common.foobar DoSomething(Common.foobar foo) ``` The foobar class is defined in a common .NET 2 assembly that is also available (as a project reference) to a .NET 3.5 application that calls the webservice via a Service Reference (not a .NET compatibility web reference). The issue is that the service reference namespace contains its own, auto generated, implementation of foobar. So the auto generated Service Reference method, available on the proxy SOAP client, has the following signature: ``` ServiceReference.foobar DoSomething(ServiceReference.foobar foo) ``` A little googling tell me that this is unavoidable as the web service is .NET 2 based and therefore reuse of common classes is not supported as it is in WCF. So the question is: does anybody know of a simple and reliable way to clone a Common.foobar class into a WebServiceReference.foobar class? Alternatively does anybody know of a "hack" where I can use the class as defined in the Common library? Alternatively can anybody point out where I have missed the wood for the trees and it is infact possible to use the Common library class - The .NET 2 webservice class looks like this: ``` [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class Service1 : System.Web.Services.WebService { [WebMethod] public CommonLibrary.Foobar DoSomething(CommonLibrary.Foobar foo) { return new CommonLibrary.Foobar() { Data = "Data in common foobar class", EventCode = 1, MessageId = "mid" }; } } ``` The invoking client (.NET 3.5 - With a Service Reference to the .NET service) looks like this: ``` static void Main(string[] args) { // Create the soap client for the .NET 2 service using the auto generated proxy class var serviceClient = new NET2WebService_ServiceReference.Service1SoapClient(); //Just checking that there is a project reference to CommonLibrary var commonFoobar_Request = new CommonLibrary.Foobar() { Data = "Common foobar data", EventCode = 1, MessageId = "Common foobar message id" }; // This doesn't work as the Service Reference client does not accept the // common foobar class. /* var commonFoobar_Response = serviceClient.DoSomething(commonFoobar_Request); Console.WriteLine(commonFoobar_Response.Data); */ // This is the proxy class to foobar generated by the Service Reference var serviceRefFoobar_Request = new NET2WebService_ServiceReference.Foobar() { Data = "Common foobar data", EventCode = 1, MessageId = "Common foobar message id" }; // This does work as it does uses the autogenerated Foobar class in the service // reference var serviceRefFoobar_Response = serviceClient.DoSomething(serviceRefFoobar_Request); Console.WriteLine(serviceRefFoobar_Response.Data); } ``` The foobar class in the common library (also .NET 2) looks like this: ``` public partial class Foobar { private string dataField; private int eventCodeField; private string messageIdField; public string Data { get { return this.dataField; } set { this.dataField = value; } } public int EventCode { get { return this.eventCodeField; } set { this.eventCodeField = value; } } public string MessageId { get { return this.messageIdField; } set { this.messageIdField = value; } } } ``` And is derived from a schema that looks like this: ``` <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Foobar"> <xs:annotation> <xs:documentation>Comment describing your root element</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Data" type="xs:string"/> <xs:element name="EventCode" type="xs:int"/> </xs:sequence> <xs:attribute name="MessageId" type="xs:string" use="required"/> </xs:complexType> </xs:element> </xs:schema> ``` And finally, here is a screenshot of the Service Reference configuration page on the .NET 3.5 client: ![Screen shot of .NET 3.5 Service Config page](https://i.stack.imgur.com/RaOsV.gif) You can see from that screenshot that the Service Configuration, and therefore the client project, is aware of the CommonLibrary that contains my implementation of the Foobar class. It is worth mentioning that everything posted above works, however in reality the foobar class is far more complicated that the sample posted here. Therefore I am keen to find a solution where I can use Common.foobar throughout the entire framework rather than having to translate Common.Foobar => ServiceReference.Foobar for requests and vice versa for responses.
.NET 2 ASMX Web Service - Invoked via .NET 3.5 Service Reference - Common Class Reuse
CC BY-SA 3.0
null
2011-05-18T17:01:24.320
2011-09-07T13:11:55.560
2011-05-19T09:27:59.237
520,658
520,658
[ "web-services", ".net-3.5", ".net-2.0", "common-code" ]
6,048,534
1
null
null
8
9,398
I was following [setup instructions](http://allseeing-i.com/ASIHTTPRequest/Setup-instructions) to add ASIHTTPRequest to my project and it asks me to "Edit Active Target". Now that I'm using Xcode 4, I don't see that menu item anywhere. Where can I edit my active target? ![Edit Active Target in Xcode 3](https://i.stack.imgur.com/y5ANw.jpg)
Where is "Edit Active Target" in Xcode 4
CC BY-SA 3.0
0
2011-05-18T17:19:14.470
2013-09-26T23:52:39.873
2013-09-26T23:52:39.873
914,778
757,752
[ "xcode", "xcode4" ]
6,048,797
1
6,049,762
null
0
1,406
I'm trying to figure out all this Android UI stuff, and when doing the [Hello Tabwidget](http://developer.android.com/resources/tutorials/views/hello-tabwidget.html) tutorial in Eclipse, I'm not getting the TabHost to show up properly. Have I not installed all the required software or not configured Eclipse correctly? The graphical layout for the main.xml copied from the tutorial looks like this: ![tabhost error](https://i.stack.imgur.com/vFkvk.jpg) I just want to get the tabs working. Any help would be greatly appreciated!
Android Tabhost widget in Eclipse
CC BY-SA 3.0
null
2011-05-18T17:41:01.127
2011-05-18T19:04:25.743
null
null
490,326
[ "android", "eclipse" ]
6,048,855
1
null
null
0
1,956
I am working on a small PHP + MySQL application. I have run into an issue where one of my insert statements seems to cause MySQL to add an additional somewhat blank row after each insert. Here's my setup: I have a function that does the insert: ``` function addFacCertification($facultyID,$month,$year,$completed,$certificatesent,$confirmationtodean,$comments) { //echo "$facultyID<br>$month<br>$year<br>$completed<br>$certificatesent<br>$confirmationtodean<br>$comments"; $today = getdate(); $month = $today["mon"]; $date = $today["mday"]; $year = $today["year"]; $curdate = "$year" ."-". "$month" . "-" . "$date"; $sql = mysql_query("INSERT INTO facultycertification (facultyID,cmonth, cyear, completed, certificatesent, confirmationtodean, comments, certifiedon) VALUES ('$facultyID', '$month', '$year', '$completed', '$certificatesent', '$confirmationtodean','$comments', '$curdate')"); return $sql; } ``` Function call: ``` $sqlresults = addFacCertification($_POST["facultyID"], $_POST["month"], $_POST["year"], $_POST["completed"], $_POST["csent"], $_POST["ctodean"], $_POST["comments"]); ``` Image is here: ![http://imgur.com/osiXN](https://i.stack.imgur.com/X0D4X.png) Any ideas why? Here is the table structure: ``` id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, facultyID INT NOT NULL, cmonth INT NOT NULL, cyear INT NOT NULL, completed INT NOT NULL, certificatesent INT NOT NULL, confirmationtodean INT NOT NULL, comments TEXT, certifiedon DATE, FOREIGN KEY (facultyID) REFERENCES faculty(id) ```
MySQL/PHP - inserting an extra row on INSERT statement
CC BY-SA 3.0
null
2011-05-18T17:46:15.093
2011-12-04T12:33:36.227
2011-12-04T12:33:36.227
84,042
759,708
[ "php", "mysql" ]
6,048,943
1
6,780,157
null
1
654
[Google](http://www.google.com/?q=netbeans%207%20SAML) has failed me and [Netbeans 7](http://netbeans.org/community/releases/70/) is fairly new so I can't find any examples or tutorials yet. I'm using the sample that comes with Netbeans, its a simple web service with an operation that adds two int's together. If you click on Web Services -> CalculatorWS, then right-click (open context menu) -> Edit Web Service Attributes, then the "Secure Service" options supports - - - ![Netbeans Secure Service Screenshot](https://i.stack.imgur.com/9Vuzh.png) And a bunch of STS (Secure Token Service) options, which I don't want to use an STS right now. I'm very familiar with Web Services, just not SAML... or Netbeans (More of an Eclipse guy, but getting familiar with NB). I'm really just looking for a place to learn more about this, and if I can this simple example up and running.
Looking for help with SAML Web Services and Netbeans 7
CC BY-SA 3.0
null
2011-05-18T17:54:58.533
2011-09-12T08:32:43.957
2011-07-21T18:42:56.317
76,337
1,992
[ "web-services", "netbeans", "saml", "netbeans-7" ]