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,144,757
1
6,144,927
null
4
2,904
I Supplier class: ``` public class Supplier { .... .... .... } ``` I have also Subcontractor class and Subcontractor is a Supplier: ``` public class Subcontractor:Supplier { .... .... .... } ``` In my db I have Suppliers table with data and another table with id field which is act as foreign key to suppliers table and I have in there also the subcintractor data. In the entity framework edmx file I declared the inheritance relation: ![inheritance](https://i.stack.imgur.com/BqRD3.jpg) Now I want to gett all the suppliers which are not subcontractors so I am doing: ``` context.Suppliers.OfType<Supplier>(); ``` But this returns also the subcontractors.. How can I get only the Suppliers that are not subcontractors?
entity framework inheritance - retrieve only parent type
CC BY-SA 3.0
null
2011-05-26T20:37:40.933
2013-12-29T20:51:19.220
null
null
289,246
[ "c#", ".net", "entity-framework" ]
6,144,929
1
null
null
0
511
My report is doing this: ![Table Width Changed Image](https://i.stack.imgur.com/FRCcW.png) This only happens when I export the report to PDF. HTML view looks just fine... I am not sure where to even start. The first 3 pages are perfect. It is just page 4 that gets messed up. Any guesses of where I should look to fix this are welcome.
SSRS Report expands table width on page 4 only on PDF
CC BY-SA 3.0
null
2011-05-26T20:53:33.727
2011-06-02T01:38:20.510
null
null
16,241
[ "pdf", "ssrs-2008", "reporting-services" ]
6,145,282
1
6,145,344
null
1
2,253
I think this is going to be an easy one for you guys :) I am trying to get FPS displayed in the window title in my Directx application (written in C++). I do not really know how to do this as my app assigns title in this manner ![enter image description here](https://i.stack.imgur.com/TKfPU.png) any ideas how to do this (so that I can see the FPS when I minimise my app) ?
How to display framerate in window title?
CC BY-SA 3.0
null
2011-05-26T21:25:26.863
2011-05-26T22:30:46.773
null
null
675,100
[ "c++", "directx" ]
6,145,422
1
6,145,458
null
2
661
So, I have the following HTML structure: ``` <div id="category-filter"> <div class="column full"> <ul class="float-clear" id="category-filter"> <li><a href="/learn" data-category_id="">All Categories</a></li> <li><a href="/learn/C3" data-category_id="3">Educator Workshops</a></li> <li><a href="/learn/C1" data-category_id="1">Exhibitions</a></li> <li><a href="/learn/C5" data-category_id="5">Family Activities</a></li> <li><a href="/learn/C4" data-category_id="4">Films</a></li> <li><a href="/learn/C6" data-category_id="6">Lectures + Gallery Talks</a></li> <li><a href="/learn/C8" data-category_id="8">Music</a></li> <li><a href="/learn/C9" data-category_id="9">Other Activities</a></li> <li><a href="/learn/C7" data-category_id="7">Tours</a></li> <li><a href="/learn/C2" data-category_id="2">Workshops</a></li> </ul> </div> </div> ``` Which, after styling produces the following in Firefox: ![enter image description here](https://i.stack.imgur.com/OnVEP.png) However, in Webkit, the link text wraps: ![enter image description here](https://i.stack.imgur.com/XEYyT.png) The `LI` tags are floated left and should grow with the size of anchor inside them and then wrap as needed inside the container which has a width set. Any ideas why the links are wrapping in Webkit?
Links inside of floated LI wrapping in Chrome
CC BY-SA 3.0
0
2011-05-26T21:39:21.170
2011-05-26T22:06:24.350
2011-05-26T22:06:24.350
277,757
277,757
[ "html", "css", "webkit" ]
6,145,438
1
null
null
2
1,548
I've successfully implemented the custom map annotation callout code from the [asynchrony blog post](https://stackoverflow.com/questions/2537259/custom-mkpinannotation-callout-bubble-similar-to-default-callout-bubble/3636431#3636431). (When user taps a map pin, I show a customized image instead of the standard callout view). The only remaining problem is that the callout occupies the entire width of the view, and the app would look much better if the width corresponded to the image I'm using. ![screen shot](https://i.stack.imgur.com/o9cLz.png) I have subclassed MKAnnotationView, and when I set it's contentWidth to the width of the image, the triangle does not always point back to the pin, or the image is not even inside it's wrapper view.![Images are wrong](https://i.stack.imgur.com/dznCu.png) Any help or suggestions would be great. Thanks.
custom map annotation callout - how to control width
CC BY-SA 3.0
0
2011-05-26T21:41:31.583
2012-07-13T19:38:13.380
2020-06-20T09:12:55.060
-1
165,050
[ "ios", "callouts", "mapkit" ]
6,145,552
1
null
null
2
869
I am using matplotlib to scatter plot some data from an Oracle table. One of the fields is a DATE and when converting it to a to_char in the below query I get an error. I want to scatter plot by hours 00-23 not by date. So Y axis should show 00-23. See below code example along with error. Thanks for any help. ![Scatter Plot By Day](https://i.stack.imgur.com/zcVgx.png) --- ``` import cx_Oracle, os import numpy import matplotlib.pyplot as plt ``` This works ``` sql = """select number_of_small_reads, number_of_small_writes, number_of_large_reads, number_of_large_writes, end_time from schema.table order by end_time""" ``` This does not work ``` sql = """select number_of_small_reads, number_of_small_writes, number_of_large_reads, number_of_large_writes, to_char(end_time, 'HH24') e from schema.table order by e""" ``` I get the following error: ``` conn = cx_Oracle.Connection("user/password@server:1521/database") cursor = conn.cursor() cursor.execute(sql) rowset = cursor.fetchall() cursor.close() cx1 = [] cx2 = [] cx3 = [] cx4 = [] cy = [] cx1, cx2, cx3, cx4, cy = zip(*rowset) ax = plt.figure().add_subplot(111) ax.scatter(cx1, cy, s=9, c='b', marker='o', label='number_of_small_reads') ax.scatter(cx2, cy, s=9, c='r', marker='o', label='number_of_small_writes') ax.scatter(cx3, cy, s=9, c='g', marker='o', label='number_of_large_reads') ax.scatter(cx4, cy, s=9, c='y', marker='o', label='number_of_large_writes') plt.legend(shadow=True) plt.title('Python Generated Chart') plt.xlabel('IOPS') plt.ylabel('By Date') plt.xlim(0) plt.show() conn.close() ```
python matplotlib scatter
CC BY-SA 3.0
null
2011-05-26T21:51:52.563
2011-05-26T22:27:43.017
2011-05-26T22:27:43.017
176,958
368,667
[ "python", "oracle", "matplotlib" ]
6,145,636
1
6,156,675
null
17
21,447
We just got a new Windows 2008 R2 server and I am trying to set up an MVC 3 site in IIS 7.5 with the Razor View Engine. I am getting a strange error when I access the default route. > The layout page "~/Views/Shared/_Layout.cshtml" could not be found at the following path: "~/Views/Shared/_Layout.cshtml". This is strange because I explicitly set the Layout from within `/views/home/index.cshtml` like so: ``` @{ Layout = "~/Views/Shared/_Layout.cshtml"; } ``` I am 100% certain that the `/views/shared/_layout.cshtml` exists in the file system. Here's a screenshot. ![enter image description here](https://i.stack.imgur.com/0kEWJ.png) If I remove the `Layout = "~/Views/Shared/_Layout.cshtml";` from my view, the page will render out the contents of `/home/index.cshtml` all by itself (without any of the code from `_Layout.cshtml`). I have also tried setting the layout using `_ViewStart.cshtml`. Anyone know why MVC wouldn't be able to "find" the layout file? This website works perfectly fine when running in the built-in web server for visual studio. Here's my stack trace: ``` [HttpException (0x80004005): The layout page "~/Views/Shared/_Layout.cshtml" could not be found at the following path: "~/Views/Shared/_Layout.cshtml".] System.Web.WebPages.WebPageExecutingBase.NormalizeLayoutPagePath(String layoutPage) +204956 System.Web.WebPages.WebPageBase.PopContext() +150 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +384 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +33 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +784900 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +265 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +784976 System.Web.Mvc.Controller.ExecuteCore() +159 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +335 System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +20 System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +54 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +453 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371 ```
The layout page "{path}" could not be found
CC BY-SA 3.0
0
2011-05-26T22:00:42.197
2015-08-28T14:28:31.310
2011-05-27T17:22:11.377
5,651
5,651
[ "asp.net-mvc-3", "razor", "iis-7.5" ]
6,145,711
1
6,145,848
null
0
1,312
I want a UILabel like this. Where can I find one ? ![message bubble](https://i.stack.imgur.com/oz2KQ.jpg)
Message Bubble UILabel for making an interactive app
CC BY-SA 3.0
null
2011-05-26T22:09:43.703
2012-02-07T10:36:59.390
2012-02-07T10:36:59.390
457,406
631,473
[ "iphone", "objective-c", "xcode", "uiview", "uilabel" ]
6,146,201
1
6,484,541
null
0
1,541
I'm having a hard time aligning up my image buttons properly during a android activity. As you can see all the images are all shifted and not aligned properly. And that was after a long time of adjustments. My main XML layout: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:gravity="left" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:layout_width="fill_parent" android:baselineAligned="true"> <LinearLayout android:orientation="horizontal" android:layout_height="158px" android:adjustViewBounds="false" android:layout_weight="1" android:gravity="left" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:layout_width="fill_parent" android:baselineAligned="true"> <ImageButton android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:gravity="left" android:adjustViewBounds="false" android:scaleType="fitStart" android:layout_gravity="left" android:background="@drawable/topfula_r1_c1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/fluprepare" android:layout_weight="1" > </ImageButton> <ImageButton android:scaleType="fitCenter" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:adjustViewBounds="false" android:layout_weight="1" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:gravity="left" android:layout_gravity="left" android:background="@drawable/topfula_r1_c2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/refreshflu" ></ImageButton> <ImageButton android:scaleType="fitEnd" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:adjustViewBounds="false" android:layout_weight="1" android:layout_marginBottom="0dp" android:gravity="left" android:layout_gravity="left" android:background="@drawable/topfula_r1_c3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/quitprogram" ></ImageButton> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_height="159px" android:adjustViewBounds="true" android:layout_weight="1" android:gravity="left" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:layout_width="fill_parent" android:baselineAligned="true"> <ImageButton android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:gravity="left" android:adjustViewBounds="false" android:scaleType="fitStart" android:layout_gravity="left" android:background="@drawable/mid_r1_c1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/prepareflu" android:layout_weight="1" > </ImageButton> <ImageButton android:scaleType="fitCenter" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:adjustViewBounds="false" android:layout_weight="1" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:gravity="left" android:layout_gravity="left" android:background="@drawable/mid_r1_c2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/maincdc" ></ImageButton> <ImageButton android:scaleType="fitEnd" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:adjustViewBounds="false" android:layout_weight="1" android:layout_marginBottom="0dp" android:gravity="left" android:layout_gravity="left" android:background="@drawable/mid_r1_c3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/configsettings" ></ImageButton> </LinearLayout> <LinearLayout android:layout_height="460px" android:adjustViewBounds="false" android:layout_weight="1" android:gravity="left" android:layout_marginLeft="0dp" android:layout_marginTop="0dp" android:layout_marginRight="0dp" android:layout_marginBottom="0dp" android:layout_width="fill_parent" android:orientation="horizontal" android:baselineAligned="true"> <ImageButton android:id="@+id/informationcards" android:background="@drawable/bottommain" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1"></ImageButton> </LinearLayout> </LinearLayout> ``` [Device Screen shot of layout not aligning](http://img830.imageshack.us/img830/7965/sneezeinyoursleevebysky.png) As you can see there is a issue big time with the imagebuttons that I have initialy laid out as a test. Using 1 large bottom image that pushes up 3 images in the top and middle rows that need to be aligned is difficult. If any more detail is needed, please let me know. [edit] android:baselineAligned="true" android:layout_weight="1" android:baselineAligned="true" are just a nightmare to just have right. it is like black magic to get it all perfect with multiple images and layouts that all have to be edge to edge... I would love to instead of having the 3 layouts all in one larger Layout container seems awful.. a nice sweet grid with edge to edge? ![Original not Spliced up](https://i.stack.imgur.com/fsSH1.jpg) ![Spliced and ImageButton'd up awww](https://i.stack.imgur.com/Tc5NH.png) Whoo hoo! I solved it with lots of trial and error! with 100x less code. like wow.
Best practices for getting layout weights to align imagebuttons perfectly during android activity?
CC BY-SA 3.0
0
2011-05-26T23:21:14.300
2011-06-26T14:46:07.190
2011-06-26T14:29:13.900
560,395
560,395
[ "android", "xml", "layout", "imageview", "scale" ]
6,146,264
1
6,146,445
null
1
2,142
I'm just starting out with Qt and I'm trying to write an app with an interface, written by hand, not with Qt Designer, that looks like this ![enter image description here](https://i.stack.imgur.com/0e98D.png) but I can't figure out how to add more than one widget to the central widget, and I can't find any documentation or examples that I could use. Can anyone help me with this?
Multiple QWidgets in the central widget
CC BY-SA 3.0
null
2011-05-26T23:33:35.870
2011-05-29T15:01:06.787
null
null
null
[ "qt" ]
6,146,290
1
6,147,154
null
27
19,272
I don't know how this thing is called, or even how to describe it, so the title may be a little bit misleading. The first attached graph was created with pyplot. I would like to draw a straight line that goes through all graphs instead of the three red dot I currently use. Is it possible in pyplot? Second image is what I am looking for. ![Currently](https://i.stack.imgur.com/fFFS7.png) ![What I am looking for](https://i.stack.imgur.com/2Il8w.png)
Plotting a line over several graphs
CC BY-SA 3.0
0
2011-05-26T23:37:21.877
2014-10-04T10:46:27.583
2011-05-27T00:09:32.070
4,249
452,483
[ "python", "plot", "numerical", "matplotlib" ]
6,146,400
1
6,147,295
null
4
517
How can I add an item to the Places Bar on the left side of a standard file dialog box (TOpenDialog), where there are usually "Desktop", "My Computer", "My Documents", "My Network", etc.? Still a question how therefrom to clean standard buttons and whether it is possible to make it? ![picture of a Windows XP open dialog](https://i.stack.imgur.com/zqslQ.png)
How can I change what's on the Places Bar of a common dialog box?
CC BY-SA 3.0
null
2011-05-26T23:58:12.093
2012-09-17T04:14:11.693
2020-06-20T09:12:55.060
-1
537,311
[ "delphi", "common-dialog" ]
6,146,419
1
6,146,432
null
3
6,286
Why is the javac.exe not being recognized? I should have the right path in my environment variable. Anyone have any clues? I've already restarted the computer after editing my environment variables, so it should be updated. Thanks! ![enter image description here](https://i.stack.imgur.com/qEm0U.jpg)![enter image description here](https://i.stack.imgur.com/hEoGQ.jpg)![enter image description here](https://i.stack.imgur.com/E15Lh.jpg)
Why is my java path not being recognized?
CC BY-SA 3.0
null
2011-05-27T00:00:48.187
2013-04-08T15:52:47.297
null
null
556,282
[ "java", "environment-variables" ]
6,146,501
1
6,146,512
null
1
3,386
I have applied the following code in javascript to pop-up a input box for the user: Javascript code: ``` var removeDate=prompt("Please enter remove date",curr_date); ``` But somehow this is come out with 2 thing that I would like to removed it from the prompt, which is the "Explorer User Prompt" and "Script Prompt:" ![enter image description here](https://i.stack.imgur.com/75ir9.png) Does Anyone know how can I do it? so that I can removed both "Explorer User Prompt" and "Script Prompt:" and resize the pop-up box?
How can I removed styling the javascript prompt?
CC BY-SA 3.0
null
2011-05-27T00:17:14.770
2011-05-27T00:28:16.667
null
null
52,745
[ "javascript" ]
6,146,536
1
6,146,622
null
5
4,455
I have created a custom view cell with a UILabel in it, I have set : ``` cell.titleLabel.lineBreakMode = UILineBreakModeWordWrap; cell.titleLabel.numberOfLines = 0; ``` and it's not going in multiple lines, why is this? in the layoutSubviews I have: ``` - (void)layoutSubviews { [super layoutSubviews]; CGRect frame = titleLabel.frame; frame.origin.y = 5; titleLabel.frame = frame; } ``` and that's about all the settings I have, however for a long text put in the label in the cell it just won't word wrap: ![enter image description here](https://i.stack.imgur.com/j4Np2.png)
UILabel multiple line in UITableViewCell
CC BY-SA 3.0
null
2011-05-27T00:23:35.063
2011-07-08T07:28:46.797
2011-05-27T00:37:01.810
721,937
721,937
[ "iphone", "objective-c", "uilabel" ]
6,146,554
1
6,146,639
null
1
1,302
I have create the "snow" effect with the linked tutorial, basically it manipulates the instance of an object on the canvas and calls the script in the actions on the animation load. However, I cant get the generated snow to show behind any other objects on the canvas. [http://www.kirupa.com/developer/mx/snow.htm](http://www.kirupa.com/developer/mx/snow.htm) ![enter image description here](https://i.stack.imgur.com/7NeDi.jpg) You can see from the image the RedBox and the Border layers are above the SnowFlakes layer, I want them in front. How can I do that?
Generated Flash effect appearing over-top of top layers objects
CC BY-SA 3.0
null
2011-05-27T00:26:08.713
2011-05-31T05:02:42.230
null
null
505,999
[ "flash", "actionscript-2", "flash-cs5" ]
6,146,641
1
6,146,671
null
0
1,604
So I had this working perfectly fine, but now for some reason I can't get the jQuery validate plugin to load, and therefore am unable to use the `validate` method. ![enter image description here](https://i.stack.imgur.com/mSD9i.jpg) Clicking on this link to it opens it fine, ![enter image description here](https://i.stack.imgur.com/QAIkt.jpg) But it does not show in Chrome's resources tab: ![enter image description here](https://i.stack.imgur.com/iHSbs.jpg) Here's the code I am currently using in the `head`. ``` <script src="js/jquery-1.4.2.js" type="text/javascript" charset="utf-8"></script> <script src="js/jquery-validate.js" type="aplication/x-javascript" charset="utf-8"></script> <script src="js/jquery-ui-1.8.12.custom.min.js" type="application/x-javascript" charset="utf-8"></script> <script> $(function() { $( "#datepicker" ).datepicker({ showOn: "both", buttonImage: "css/images/calendar.gif", buttonImageOnly: true, minDate: 0 }); }); </script> <script type="text/javascript" > $(document).ready(function() { $("#mainForm").validate({ rules: { name: "required",// simple rule, converted to {required:true} email: {// compound rule required: true, email: true }, url: { url: true }, comment: { required: true } }, messages: { comment: "Please enter a comment." } }); }); </script> ``` Would love any help I could get right now!
Cannot Get JS File to be Added in my HTML
CC BY-SA 3.0
null
2011-05-27T00:42:10.930
2011-05-27T01:08:51.217
null
null
516,833
[ "javascript", "jquery", "html", "include" ]
6,146,769
1
6,149,068
null
1
434
I integrate sonar into hudson, but when I build a project using hudson, an error occured log:![logInfo](https://i.stack.imgur.com/Fu4F7.jpg) does anyone know how to avoid this error? thanks in advance~
hudson cobertura sonar integration error
CC BY-SA 3.0
null
2011-05-27T01:05:36.900
2011-05-27T07:18:36.413
null
null
509,280
[ "maven", "hudson", "cobertura", "sonarqube" ]
6,146,867
1
6,207,443
null
1
474
I am working on a project using an Arduino that needs to calculate the area of a polygon made up of many points. I use [surveyor's theorem](http://en.wikipedia.org/wiki/Polygon#Area_and_centroid), ![](https://upload.wikimedia.org/math/c/b/b/cbb6a25439b51061adb913c2a6706484.png) But the points are in random order, not (counter)clockwise. Some make lines that cross, and they make polygons like a bow-tie or hourglass, which don't work for the surveyor's theorem, so I need to sort them in (counter)clockwise order. what is the easiest way to do this?
Arduino convex hull algorithm
CC BY-SA 3.0
0
2011-05-27T01:22:06.957
2011-06-05T16:37:11.727
2017-02-08T14:32:18.563
-1
462,266
[ "algorithm", "sorting", "geometry", "arduino", "area" ]
6,146,959
1
6,147,013
null
1
599
Here is the code: ``` - (IBAction)textFieldDidBeginEditing:(UITextField *)textField { NSLog(@"Inside textfieldDidBeginEditing"); textFieldBeingEdited = textField; } //============================================================================== -(IBAction)textFieldDoneEditing:(id)sender { textFieldBeingEdited = NULL; [sender resignFirstResponder]; if (moveViewUp) { [self scrollTheView:NO]; } } //============================================================================== -(void)keyboardWillShow:(NSNotification *)notif { NSLog(@"Inside keyborad will show"); NSDictionary *info = [notif userInfo]; NSValue *aValue = [info objectForKey:UIKeyboardFrameBeginUserInfoKey]; CGSize keyboardSize = [aValue CGRectValue].size; float bottomPoint = (textFieldBeingEdited.frame.origin.y + textFieldBeingEdited.frame.size.height /*+ 20*/); scrollAmount = keyboardSize.height - (self.view.frame.size.height- bottomPoint); if(scrollAmount > 0) { moveViewUp = YES; [self scrollTheView:YES]; } else { moveViewUp = NO; } } ``` Here is the screen shot of the view controller ![enter image description here](https://i.stack.imgur.com/ABYXq.png) when I tap on any one of these text fields. An exception is thrown ``` -[__NSCFType textFieldDidBeginEditing:]: unrecognized selector sent to instance 0x5a3c100 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType textFieldDidBeginEditing:]: unrecognized selector sent to instance 0x5a3c100' *** Call stack at first throw: ( 0 CoreFoundation 0x010275a9 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x0117b313 objc_exception_throw + 44 2 CoreFoundation 0x010290bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 3 CoreFoundation 0x00f98966 ___forwarding___ + 966 4 CoreFoundation 0x00f98522 _CF_forwarding_prep_0 + 50 5 UIKit 0x003a1581 -[UIControl(Deprecated) sendAction:toTarget:forEvent:] + 67 6 UIKit 0x003a3e62 -[UIControl(Internal) _sendActionsForEventMask:withEvent:] + 525 7 UIKit 0x003a9e11 -[UITextField willAttachFieldEditor:] + 404 8 UIKit 0x003bbcdf -[UIFieldEditor becomeFieldEditorForView:] + 653 9 UIKit 0x003abf98 -[UITextField _becomeFirstResponder] + 99 10 UIKit 0x003e02c3 -[UIResponder becomeFirstResponder] + 328 11 UIKit 0x005a8961 -[UITextInteractionAssistant setFirstResponderIfNecessary] + 208 12 UIKit 0x005ab5e2 -[UITextInteractionAssistant oneFingerTap:] + 1676 13 UIKit 0x005a24f2 -[UIGestureRecognizer _updateGestureWithEvent:] + 730 14 UIKit 0x0059e4fe -[UIGestureRecognizer _delayedUpdateGesture] + 47 15 UIKit 0x005a4afc _UIGestureRecognizerUpdateObserver + 584 16 UIKit 0x005a4ce1 _UIGestureRecognizerUpdateGesturesFromSendEvent + 51 17 UIKit 0x0033832a -[UIWindow _sendGesturesForEvent:] + 1292 18 UIKit 0x00333ca3 -[UIWindow sendEvent:] + 105 19 UIKit 0x00316c37 -[UIApplication sendEvent:] + 447 20 UIKit 0x0031bf2e _UIApplicationHandleEvent + 7576 21 GraphicsServices 0x0197f992 PurpleEventCallback + 1550 22 CoreFoundation 0x01008944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 23 CoreFoundation 0x00f68cf7 __CFRunLoopDoSource1 + 215 24 CoreFoundation 0x00f65f83 __CFRunLoopRun + 979 25 CoreFoundation 0x00f65840 CFRunLoopRunSpecific + 208 26 CoreFoundation 0x00f65761 CFRunLoopRunInMode + 97 27 GraphicsServices 0x0197e1c4 GSEventRunModal + 217 28 GraphicsServices 0x0197e289 GSEventRun + 115 29 UIKit 0x0031fc93 UIApplicationMain + 1160 ``` terminate called after throwing an instance of 'NSException' please help
Exception thrown by code: Stack trace shows this is the last functioncall made: [UIControl(Deprecated)sendAction:toTarget:forEvent]
CC BY-SA 3.0
null
2011-05-27T01:36:21.363
2011-05-27T04:43:26.597
2011-05-27T04:43:26.597
631,629
657,514
[ "iphone", "exception", "uitextview" ]
6,147,031
1
null
null
3
1,782
When I run the applet whose code is listed below, the text of the `JLabel` does not draw properly. There are extra garbage characters superimposed on top of the label text. If I omit the call to `setFont()`, I don't see any rendering problems. The applet runs fine in the appletviewer, but has these rendering artifacts in Chrome, Firefox, and IE 8. I'm running the latest version of Java 6 (rev. 25) on Windows XP. The problem seems to always occur in Chrome, and be intermittent in Firefox. Do you have any ideas about what could be causing this? I suppose I'm doing something stupid. I've posted the compiled applet here: [http://evanmallory.com/bug-demo/](http://evanmallory.com/bug-demo/). ``` package com.evanmallory; import java.awt.*; import javax.swing.*; public class TellTime extends JApplet { private JLabel mMessage; public TellTime() { mMessage = new JLabel("Set the clock to the given time.", SwingConstants.CENTER); mMessage.setFont(new Font("Serif", Font.PLAIN, 36)); getContentPane().add(mMessage); } } ``` Here's a screenshot of what it looks like for me: ![enter image description here](https://i.stack.imgur.com/mXpn0.png)
Java applet renders JLabel (and other components) with extra random letters
CC BY-SA 3.0
null
2011-05-27T01:48:53.413
2013-09-10T20:45:33.880
2013-09-10T20:45:33.880
573,032
107,106
[ "java", "swing", "applet", "appletviewer" ]
6,147,130
1
6,147,186
null
2
880
I have looked everywhere and I could not find a 'good' solution to display a uidatepicker when a tableviewcell is tapped. In the following screenshot, the datepicker slides up from the bottom and the background of the view is dimmed. There are done and cancel buttons on the toolbar within the view that holds the datepicker. appreciate your help ![enter image description here](https://i.stack.imgur.com/000o9.png)
iphone uidatepicker in actionsheet with toolbar?
CC BY-SA 3.0
0
2011-05-27T02:09:40.700
2011-06-22T12:03:30.207
null
null
756,093
[ "iphone", "cocoa-touch", "cocoa", "ios", "uidatepicker" ]
6,147,284
1
6,147,850
null
8
4,070
I have an application with a UISplitViewController, when I launch the app under potrait mode it's missing the "Group" UIBarButtonItem. I need to turn to landscape mode and back to potrait to make it appear. When I launch it in landscape mode it is there. Here's some screenshot to make it clear: This is when the application is launched at portrait mode ![enter image description here](https://i.stack.imgur.com/ikmOv.png) This is in landscape mode, after rotating it from portrait mode: ![enter image description here](https://i.stack.imgur.com/BFMB5.png) This is after rotating back to portrait mode from landscape mode:![enter image description here](https://i.stack.imgur.com/Yzj7f.png)
UISplitViewController portrait mode missing UIBarButtonItem
CC BY-SA 3.0
null
2011-05-27T02:38:16.950
2012-10-03T19:47:50.547
null
null
721,937
[ "objective-c", "ipad", "uisplitviewcontroller" ]
6,147,401
1
6,147,483
null
1
4,152
I am trying to rotate a "2D" star around its center as an animation, something like this: ![enter image description here](https://i.stack.imgur.com/DwTBq.jpg) To put it another way, rotate it like the star is a piece of paper flat on a desk with a tac in the center, and I want to spin it around. Here's some code: ``` gl11.glPushMatrix(); gl11.glTranslatef(xCoord, yCoord, 0); // theta+=.08f; NEEDED? // rotateX++; NEEDED? // rotateY++; NEEDED? // rotateZ++; NEEDED? gl11.glRotatef(?,?,?,?); gl11.glRotatef(?,?,?,?); gl11.glRotatef(?,?,?,?); gl11.glDrawElements(...); gl11.glPopMatrix(); ``` Insight appreciated. Thanks for looking.
OpenGL - rotating a 2D star clockwise about its center
CC BY-SA 3.0
null
2011-05-27T02:59:02.423
2013-01-14T17:47:35.403
2011-05-27T03:09:09.860
371,588
371,588
[ "opengl" ]
6,147,543
1
null
null
0
1,353
I have a stand-lone java app, which jvm params are: ``` -Xmx2g -Xms2g -Xmn1g -XX:PermSize=96m -XX:+DisableExplicitGC -XX:+UseFastAccessorMethods -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:MaxTenuringThreshold=63 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true ``` as we can see, -Xmx and -Xms are all 2g, but I found the heap size always resize a bit: ![the red line represents the total heap size, the blue one represents used](https://i.stack.imgur.com/qOMCL.png) the red line represents the total heap size, the blue one represents used I think the red line should be straight, but it wasn't. But in another web app, which jvm params are: ``` -Xmx2g -Xms2g -Xmn512m -XX:PermSize=196m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:-ReduceInitialCardMarks -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true ``` its visual heap usage chart is: ![heap not resize when cms gc](https://i.stack.imgur.com/7FOLO.png) The total heap size is exactly as much as 2g and the red line is horizontal stable, that's what I think it should be. The main difference of the two apps are the GC strategy used, one is parallel GC and the other is CMS. Does the GC strategy has any effect on the resizing of the heap space? Or the -Xmn param has some effects on heap resizing that I didn't know?
jvm heap resize when -Xmx and -Xms are the same though
CC BY-SA 3.0
null
2011-05-27T03:26:47.417
2021-11-08T13:30:37.463
2021-11-08T13:30:37.463
5,459,839
243,990
[ "jvm", "resize", "heap-memory" ]
6,147,753
1
null
null
0
9,444
My question is simple, the hangman game looks like this: ![enter image description here](https://i.stack.imgur.com/5LukZ.png) I'm doing the indentation in a way I don't think is very good. I just have `var = "\t"` and add it at the begging of every print, this seem impractical and hard to maintain. Would you have it any other way? How is this generally managed? Thanks in advance!
How to "style" a text based hangman game
CC BY-SA 3.0
null
2011-05-27T04:08:04.283
2012-08-04T02:02:31.083
null
null
463,065
[ "python", "terminal", "text-based" ]
6,147,933
1
6,148,605
null
6
17,706
![enter image description here](https://i.stack.imgur.com/w5vjs.jpg) when someone clicks clothing, I want the UIPickerView to slide up as in the example as follows: ![enter image description here](https://i.stack.imgur.com/jyHHc.jpg) Can someone show a code sample please?
How to make a UIPickerView slide half way up the screen?
CC BY-SA 3.0
0
2011-05-27T04:45:21.430
2015-12-06T03:22:49.050
2011-05-27T04:50:08.863
491,980
323,698
[ "iphone", "ios" ]
6,147,935
1
null
null
1
215
I am using asp.net mvc the develop the application. I have a view which should contain a treeview at left pane and the right pane should show the details on the node item selected in the treeview. The left pane table represents the treeview structure and right pane contains the details of selected item which should be taken from the database. ![enter image description here](https://i.stack.imgur.com/Reneo.png) I have the treeview structure build, also using jquery am able to get the id of the selected item. I need to gather the item details and display it in the right pane.How can I achieve this?
Gathering information from database and showing it in the same view using jquery in asp.net mvc
CC BY-SA 3.0
null
2011-05-27T04:45:53.163
2011-05-27T07:08:04.557
null
null
855,788
[ "jquery", "asp.net-mvc-2", "treeview" ]
6,147,948
1
6,147,963
null
0
109
I have to display listings which are in a specific region using zip code. I mean if the input zip code is L6M2V6 then i have to select a range of zip codes around 5 miles and then display the results in the order nearest first. Here is a simplified query for your reference. ``` select TR.firstName, TR.LastName, TC.* from tutor_register as TR, tutor_user_content as TC where TR.Id=TC.tuotr_id and TC.status='Y' and (TC.ContentType='basic' or TC.ContentType='premium') and (TC.ZipCode like '%,L6M2V6,%' OR TC.ZipCode like '%,L6M2V5,%' OR TC.ZipCode like '%,L6M2E9,%' OR TC.ZipCode like '%,L6M2G1,%' OR TC.ZipCode like '%,L6M2E8,%' OR TC.ZipCode like '%,L6M2E7,%' OR TC.ZipCode like '%,L6M2E5,%' OR TC.ZipCode like '%,L6M2E6,%' OR TC.ZipCode like '%,L6M 4X8,%' OR TC.ZipCode like '%,L6M4X8,%' OR TC.ZipCode like '%,L6M1E7,%' OR TC.ZipCode like '%,L6M1A2,%' OR TC.ZipCode like '%,L6M1K4,%' OR TC.ZipCode like '%,L6M1H4,%' OR TC.ZipCode like '%,L6M0H4,%' OR TC.ZipCode like '%,L6M1C4,%' OR TC.ZipCode like '%,L6M2G2,%' OR TC.ZipCode like '%,L6M1G2,%' OR TC.ZipCode like '%,L6M1G5,%' OR TC.ZipCode like '%,L6M1G7,%' OR TC.ZipCode like '%,L6K2H4,%' OR TC.ZipCode like '%,L6M1E8,%' OR TC.ZipCode like '%,L6M1E5,%' OR TC.ZipCode like '%,L6M1G6,%' OR TC.ZipCode like '%,L6M1B1,%' OR TC.ZipCode like '%,L6L5B8,%' OR TC.ZipCode like '%,L6M1A8,%' OR TC.ZipCode like '%,L6L6R3,%' OR TC.ZipCode like '%,L6M1C5,%' OR TC.ZipCode like '%,L6M1N1,%' OR TC.ZipCode like '%,L6L6L7,%' OR TC.ZipCode like '%,L6M1B2,%' OR TC.ZipCode like '%,L6M1A9,%' OR TC.ZipCode like '%,L6M2G3,%' OR TC.ZipCode like '%,L6M1E1,%' OR TC.ZipCode like '%,L6M1C1,%' OR TC.ZipCode like '%,L6M1E4,%' OR TC.ZipCode like '%,L6M1A6,%' OR TC.ZipCode like '%,L6K2H1,%' OR TC.ZipCode like '%,L6M1B9,%' OR TC.ZipCode like '%,L6M1G1,%' OR TC.ZipCode like '%,L6M1E3,%' OR TC.ZipCode like '%,L6M1A1,%' OR TC.ZipCode like '%,L6M1G8,%' OR TC.ZipCode like '%,L6L5T7,%' OR TC.ZipCode like '%,L6M1E2,%' OR TC.ZipCode like '%,L6M1A5,%' OR TC.ZipCode like '%,L6M1M2,%' OR TC.ZipCode like '%,L6M1B4,%' OR TC.ZipCode like '%,L6M1B3,%' OR TC.ZipCode like '%,L6M3E3,%' OR TC.ZipCode like '%,L6M1A7,%' OR TC.ZipCode like '%,L6M3B6,%' OR TC.ZipCode like '%,L6M1M7,%' OR TC.ZipCode like '%,L6M1M8,%' OR TC.ZipCode like '%,L6L6K3,%' OR TC.ZipCode like '%,L6L6X7,%' OR TC.ZipCode like '%,L6L6R6,%' OR TC.ZipCode like '%,L6M1C2,%' OR TC.ZipCode like '%,L6M1C3,%' OR TC.ZipCode like '%,L6M1G3,%' OR TC.ZipCode like '%,L6M1S4,%' OR TC.ZipCode like '%,L6M3B5,%' OR TC.ZipCode like '%,L6M1G9,%' OR TC.ZipCode like '%,L6M1G4,%' OR TC.ZipCode like '%,L6M1E9,%' OR TC.ZipCode like '%,L6M1E6,%' OR TC.ZipCode like '%,L6M2V9,%' OR TC.ZipCode like '%,L6M2R7,%' OR TC.ZipCode like '%,L6M2E1,%' OR TC.ZipCode like '%,L6M1A4,%' OR TC.ZipCode like '%,L6M1C6,%' OR TC.ZipCode like '%,L6M2S1,%' OR TC.ZipCode like '%,L6M2S2,%' OR TC.ZipCode like '%,L6M2W1,%' OR TC.ZipCode like '%,L6L6J7,%' OR TC.ZipCode like '%,L6K2G7,%' OR TC.ZipCode like '%,L6M2R9,%' OR TC.ZipCode like '%,L6M1H1,%' OR TC.ZipCode like '%,L6M1C7,%' OR TC.ZipCode like '%,L6M1A3,%' OR TC.ZipCode like '%,L6L5B7,%' OR TC.ZipCode like '%,L6M1H3,%' OR TC.ZipCode like '%,L6M1K1,%' OR TC.ZipCode like '%,L6M1B6,%' OR TC.ZipCode like '%,L6M3B4,%' OR TC.ZipCode like '%,L6M1M9,%' OR TC.ZipCode like '%,L6M1J4,%' OR TC.ZipCode like '%,L6M1H8,%' OR TC.ZipCode like '%,L6M1B7,%' OR TC.ZipCode like '%,L6M1B5,%' OR TC.ZipCode like '%,L6L6N3,%' OR TC.ZipCode like '%,L6M2V8,%' OR TC.ZipCode like '%,L6M1H2,%' OR TC.ZipCode like '%,L6M2E2,%' OR TC.ZipCode like '%,L6M1P1,%' OR TC.ZipCode like '%,L6M2R8,%' OR TC.ZipCode like '%,L6M1C8,%' OR TC.ZipCode like '%,L6M1M6,%' OR TC.ZipCode like '%,L6M1H5,%' OR TC.ZipCode like '%,L6M1H6,%' OR TC.ZipCode like '%,L6M3Y4,%' OR TC.ZipCode like '%,L6M1C9,%' OR TC.ZipCode like '%,L6M1K5,%' OR TC.ZipCode like '%,L6M2E3,%' OR TC.ZipCode like '%,L6M1H7,%' OR TC.ZipCode like '%,L6M1B8,%' OR TC.ZipCode like '%,L6K3S1,%' OR TC.ZipCode like '%,L6L6K4,%' OR TC.ZipCode like '%,L6M1M5,%' OR TC.ZipCode like '%,L6L5B5,%' OR TC.ZipCode like '%,L6M2E4,%' OR TC.ZipCode like '%,L6M1R4,%' OR TC.ZipCode like '%,L6M3B7,%' OR TC.ZipCode like '%,L6M3B8,%' OR TC.ZipCode like '%,L6L5B4,%' OR TC.ZipCode like '%,L6M2C9,%' OR TC.ZipCode like '%,L6M3B3,%' OR TC.ZipCode like '%,L6M5C6,%' OR TC.ZipCode like '%,L6M 5C6,%' OR TC.ZipCode like '%,L6M3B9,%' OR TC.ZipCode like '%,L6M1R8,%' OR TC.ZipCode like '%,L6M2C7,%' OR TC.ZipCode like '%,L6M2C8,%' OR TC.ZipCode like '%,L6M1J3,%' OR TC.ZipCode like '%,L6M3E7,%' OR TC.ZipCode like '%,L6K2G4,%' OR TC.ZipCode like '%,L6M2C6,%' OR TC.ZipCode like '%,L6M1J2,%' OR TC.ZipCode like '%,L6L5B3,%' OR TC.ZipCode like '%,L6K2G3,%' OR TC.ZipCode like '%,L6L2X4,%' OR TC.ZipCode like '%,L6M3E4,%' OR TC.ZipCode like '%,L6M1J1,%' OR TC.ZipCode like '%,L6K2G2,%' OR TC.ZipCode like '%,L6L5B2,%' OR TC.ZipCode like '%,L6M1K2,%' OR TC.ZipCode like '%,L6M3H9,%' OR TC.ZipCode like '%,L6K3X5,%' OR TC.ZipCode like '%,L6M2C5,%' OR TC.ZipCode like '%,L6K3S9,%' OR TC.ZipCode like '%,L6M4V9,%' OR TC.ZipCode like '%,L6M3E6,%' OR TC.ZipCode like '%,L6M 4V8,%' OR TC.ZipCode like '%,L6M4V8,%' OR TC.ZipCode like '%,L6M 4V9,%' OR TC.ZipCode like '%,L6M1J5,%' OR TC.ZipCode like '%,L6L5W4,%' OR TC.ZipCode like '%,L6M3E5,%' OR TC.ZipCode like '%,L6M1J6,%' OR TC.ZipCode like '%,L6M3E8,%' OR TC.ZipCode like '%,L6M3Z5,%' OR TC.ZipCode like '%,L6M1J7,%' OR TC.ZipCode like '%,L6M 4X7,%' OR TC.ZipCode like '%,L6M4X7,%' OR TC.ZipCode like '%,L6K2H2,%' OR TC.ZipCode like '%,L6K3T2,%' OR TC.ZipCode like '%,L6M2Y5,%' OR TC.ZipCode like '%,L6M2L6,%' OR TC.ZipCode like '%,L6L0B1,%' OR TC.ZipCode like '%,L6M2C1,%' OR TC.ZipCode like '%,L6K3Y5,%' OR TC.ZipCode like '%,L6M1K3,%' OR TC.ZipCode like '%,L6K3W9,%' OR TC.ZipCode like '%,L6M1H9,%' OR TC.ZipCode like '%,L6M3G4,%' OR TC.ZipCode like '%,L6M3M3,%' OR TC.ZipCode like '%,L6M4G2,%' OR TC.ZipCode like '%,L6M1L2,%' OR TC.ZipCode like '%,L6M3E9,%' OR TC.ZipCode like '%,L6M 4X6,%' OR TC.ZipCode like '%,L6M2C2,%' OR TC.ZipCode like '%,L6M4X6,%' OR TC.ZipCode like '%,L6M1K9,%' OR TC.ZipCode like '%,L6M3G1,%' OR TC.ZipCode like '%,L6M1J8,%' OR TC.ZipCode like '%,L6M2N1,%' OR TC.ZipCode like '%,L6K3W7,%' OR TC.ZipCode like '%,L6M2B8,%' OR TC.ZipCode like '%,L6M3G5,%' OR TC.ZipCode like '%,L6M3H7,%' OR TC.ZipCode like '%,L6M1J9,%' OR TC.ZipCode like '%,L6K2C5,%' OR TC.ZipCode like '%,L6K3Y1,%' OR TC.ZipCode like '%,L6M1K6,%' OR TC.ZipCode like '%,L6K2C6,%' OR TC.ZipCode like '%,L6K3V3,%' OR TC.ZipCode like '%,L6M3Z4,%' OR TC.ZipCode like '%,L6M3R2,%' OR TC.ZipCode like '%,L6M 4V7,%' OR TC.ZipCode like '%,L6L2W3,%' OR TC.ZipCode like '%,L6L2W2,%' OR TC.ZipCode like '%,L6M4V7,%' OR TC.ZipCode like '%,L6M2M9,%' OR TC.ZipCode like '%,L6L5A7,%' OR TC.ZipCode like '%,L6K3V7,%' OR TC.ZipCode like '%,L6M2Y4,%' OR TC.ZipCode like '%,L6M2C4,%' OR TC.ZipCode like '%,L6K2C4,%' OR TC.ZipCode like '%,L6L2W4,%' OR TC.ZipCode like '%,L6M3G6,%' OR TC.ZipCode like '%,L6L5B1,%' OR TC.ZipCode like '%,L6M2C3,%' OR TC.ZipCode like '%,L6K3S4,%' OR TC.ZipCode like '%,L6K2L9,%' OR TC.ZipCode like '%,L6K2C2,%' OR TC.ZipCode like '%,L6K2C3,%' OR TC.ZipCode like '%,L6K3T7,%' OR TC.ZipCode like '%,L6K2C1,%' OR TC.ZipCode like '%,L6K2M1,%' OR TC.ZipCode like '%,L6K3W4,%' OR TC.ZipCode like '%,L6M2L7,%' OR TC.ZipCode like '%,L6K3S8,%' OR TC.ZipCode like '%,L6M2L9,%' OR TC.ZipCode like '%,L6M2Y3,%' OR TC.ZipCode like '%,L6K3S7,%' OR TC.ZipCode like '%,L6K2L4,%' OR TC.ZipCode like '%,L6M2A9,%' OR TC.ZipCode like '%,L6K2N1,%' OR TC.ZipCode like '%,L6M1V7,%' OR TC.ZipCode like '%,L6K1Y3,%' OR TC.ZipCode like '%,L6K2M7,%' OR TC.ZipCode like '%,L6M2B1,%' OR TC.ZipCode like '%,L6K3T5,%' OR TC.ZipCode like '%,L6K2B9,%' OR TC.ZipCode like '%,L6K3X9,%' OR TC.ZipCode like '%,L6K2M9,%' OR TC.ZipCode like '%,L6M1V8,%' OR TC.ZipCode like '%,L6M2M1,%' OR TC.ZipCode like '%,L6M2N6,%' OR TC.ZipCode like '%,L6K2B6,%' OR TC.ZipCode like '%,L6M2Y2,%' OR TC.ZipCode like '%,L6M2L8,%' OR TC.ZipCode like '%,L6L5A9,%' OR TC.ZipCode like '%,L6L2W5,%' OR TC.ZipCode like '%,L6M1L1,%' OR TC.ZipCode like '%,L6M2B9,%' OR TC.ZipCode like '%,L6K1Z9,%' OR TC.ZipCode like '%,L6K3W6,%' OR TC.ZipCode like '%,L6K2A1,%' OR TC.ZipCode like '%,L6K2B8,%' OR TC.ZipCode like '%,L6K2H3,%' OR TC.ZipCode like '%,L6K2M8,%' OR TC.ZipCode like '%,L6K1Y2,%' OR TC.ZipCode like '%,L6L2W6,%' OR TC.ZipCode like '%,L6M2B6,%' OR TC.ZipCode like '%,L6M1V3,%' OR TC.ZipCode like '%,L6M2W2,%' OR TC.ZipCode like '%,L6L4X8,%' OR TC.ZipCode like '%,L6M1V6,%' OR TC.ZipCode like '%,L6K2L3,%' OR TC.ZipCode like '%,L6M2Y1,%' OR TC.ZipCode like '%,L6K2T4,%' OR TC.ZipCode like '%,L6K2Y1,%' OR TC.ZipCode like '%,L6K3S3,%' OR TC.ZipCode like '%,L6K2T3,%' OR TC.ZipCode like '%,L6K1V5,%' OR TC.ZipCode like '%,L6K1V3,%' OR TC.ZipCode like '%,L6M1K8,%' OR TC.ZipCode like '%,L6K2L2,%' OR TC.ZipCode like '%,L6K2R7,%' OR TC.ZipCode like '%,L6M2N2,%' OR TC.ZipCode like '%,L6K3Y6,%' OR TC.ZipCode like '%,L6K1Z6,%' OR TC.ZipCode like '%,L6M2B7,%' OR TC.ZipCode like '%,L6M1K7,%' OR TC.ZipCode like '%,L6K1Z8,%' OR TC.ZipCode like '%,L6K1V4,%' OR TC.ZipCode like '%,L6M1V4,%' OR TC.ZipCode like '%,L6K2P8,%' OR TC.ZipCode like '%,L6K2M6,%' OR TC.ZipCode like '%,L6L5A8,%' OR TC.ZipCode like '%,L6K1V2,%' OR TC.ZipCode like '%,L6K1Z7,%' OR TC.ZipCode like '%,L6M2B2,%' OR TC.ZipCode like '%,L6M2B3,%' OR TC.ZipCode like '%,L6M2B4,%' OR TC.ZipCode like '%,L6M1V5,%' OR TC.ZipCode like '%,L6H0B4,%' OR TC.ZipCode like '%,L6M2B5,%' OR TC.ZipCode like '%,L6L2W7,%' OR TC.ZipCode like '%,L6K2P7,%' OR TC.ZipCode like '%,L6L5B6,%' OR TC.ZipCode like '%,L6K2M5,%' OR TC.ZipCode like '%,L6K3X7,%' OR TC.ZipCode like '%,L6K1V1,%' OR TC.ZipCode like '%,L6M2W8,%' OR TC.ZipCode like '%,L6K1T9,%' OR TC.ZipCode like '%,L6K2L1,%' OR TC.ZipCode like '%,L6M2Y6,%' OR TC.ZipCode like '%,L6K1T8,%' OR TC.ZipCode like '%,L6M2N3,%' OR TC.ZipCode like '%,L6M2A5,%' OR TC.ZipCode like '%,L6K2N8,%' OR TC.ZipCode like '%,L6K2N7,%' OR TC.ZipCode like '%,L6M2A4,%' OR TC.ZipCode like '%,L6L2W8,%' OR TC.ZipCode like '%,L6K2K8,%' OR TC.ZipCode like '%,L6L4W3,%' OR TC.ZipCode like '%,L6L4W2,%' OR TC.ZipCode like '%,L6M2N4,%' OR TC.ZipCode like '%,L6M2N5,%' OR TC.ZipCode like '%,L6L4W4,%' OR TC.ZipCode like '%,L6L4T8,%' OR TC.ZipCode like '%,L6L5N9,%' OR TC.ZipCode like '%,L6K1S9,%' OR TC.ZipCode like '%,L6H1E8,%' OR TC.ZipCode like '%,L6K1T1,%' OR TC.ZipCode like '%,L6H1R5,%' OR TC.ZipCode like '%,L6L2X5,%' OR TC.ZipCode like '%,L6K2M4,%' OR TC.ZipCode like '%,L6M2X9,%' OR TC.ZipCode like '%,L6M3B2,%' OR TC.ZipCode like '%,L6H1S2,%' OR TC.ZipCode like '%,L6K1P7,%' OR TC.ZipCode like '%,L6K1P6,%' OR TC.ZipCode like '%,L6L5T9,%' OR TC.ZipCode like '%,L6H1E9,%' OR TC.ZipCode like '%,L6L2W9,%' OR TC.ZipCode like '%,L6L4X5,%' OR TC.ZipCode like '%,L6L4X4,%' OR TC.ZipCode like '%,L6L4X3,%' OR TC.ZipCode like '%,L6M5C8,%' OR TC.ZipCode like '%,L6M 5C7,%' OR TC.ZipCode like '%,L6M 5C8,%' OR TC.ZipCode like '%,L6M 5C9,%' OR TC.ZipCode like '%,L6M 5E1,%' OR TC.ZipCode like '%,L6L0A6,%' OR TC.ZipCode like '%,L6H0B8,%' OR TC.ZipCode like '%,L6M5C7,%' OR TC.ZipCode like '%,L6L4X6,%' OR TC.ZipCode like '%,L6M5C9,%' OR TC.ZipCode like '%,L6M5E1,%' OR TC.ZipCode like '%,L6L4W1,%' OR TC.ZipCode like '%,L6M0B8,%' OR TC.ZipCode like '%,L6H1R3,%' OR TC.ZipCode like '%,L6H1S1,%' OR TC.ZipCode like '%,L6H7V8,%' OR TC.ZipCode like '%,L6H7V4,%' OR TC.ZipCode like '%,L6H7V3,%' OR TC.ZipCode like '%,L6M0B6,%' OR TC.ZipCode like '%,L6M2N9,%' OR TC.ZipCode like '%,L6K3V1,%' OR TC.ZipCode like '%,L6M3G7,%' OR TC.ZipCode like '%,L6L4Z1,%' OR TC.ZipCode like '%,L6L6K1,%' OR TC.ZipCode like '%,L6K2K9,%' OR TC.ZipCode like '%,L6K1P8,%' OR TC.ZipCode like '%,L6L4X7,%' OR TC.ZipCode like '%,L6L4T7,%' OR TC.ZipCode like '%,L6M3R3,%' OR TC.ZipCode like '%,L6H1S4,%' OR TC.ZipCode like '%,L6H1R4,%' OR TC.ZipCode like '%,L6H1S3,%' OR TC.ZipCode like '%,L6H1S7,%' OR TC.ZipCode like '%,L6H1S5,%' OR TC.ZipCode like '%,L6L4R6,%' OR TC.ZipCode like '%,L6L4R7,%' OR TC.ZipCode like '%,L6K1R6,%' OR TC.ZipCode like '%,L6L4Y9,%' OR TC.ZipCode like '%,L6K1R5,%' OR TC.ZipCode like '%,L6K2J6,%' OR TC.ZipCode like '%,L6K2J1,%' OR TC.ZipCode like '%,L6M2W4,%' OR TC.ZipCode like '%,L6L2X1,%' ) order by TC.ContentType DESC, ( CASE when ',L6M2V6,' then -1 when ',L6M2V5,' then 0 when ',L6M2E9,' then 1 when ',L6M2G1,' then 2 when ',L6M2E8,' then 3 when ',L6M2E7,' then 4 when ',L6M2E5,' then 5 when ',L6M2E6,' then 6 when ',L6M 4X8,' then 7 when ',L6M4X8,' then 8 when ',L6M1E7,' then 9 when ',L6M1A2,' then 10 when ',L6M1K4,' then 11 when ',L6M1H4,' then 12 when ',L6M0H4,' then 13 when ',L6M1C4,' then 14 when ',L6M2G2,' then 15 when ',L6M1G2,' then 16 when ',L6M1G5,' then 17 when ',L6M1G7,' then 18 when ',L6K2H4,' then 19 when ',L6M1E8,' then 20 when ',L6M1E5,' then 21 when ',L6M1G6,' then 22 when ',L6M1B1,' then 23 when ',L6L5B8,' then 24 when ',L6M1A8,' then 25 when ',L6L6R3,' then 26 when ',L6M1C5,' then 27 when ',L6M1N1,' then 28 when ',L6L6L7,' then 29 when ',L6M1B2,' then 30 when ',L6M1A9,' then 31 when ',L6M2G3,' then 32 when ',L6M1E1,' then 33 when ',L6M1C1,' then 34 when ',L6M1E4,' then 35 when ',L6M1A6,' then 36 when ',L6K2H1,' then 37 when ',L6M1B9,' then 38 when ',L6M1G1,' then 39 when ',L6M1E3,' then 40 when ',L6M1A1,' then 41 when ',L6M1G8,' then 42 when ',L6L5T7,' then 43 when ',L6M1E2,' then 44 when ',L6M1A5,' then 45 when ',L6M1M2,' then 46 when ',L6M1B4,' then 47 when ',L6M1B3,' then 48 when ',L6M3E3,' then 49 when ',L6M1A7,' then 50 when ',L6M3B6,' then 51 when ',L6M1M7,' then 52 when ',L6M1M8,' then 53 when ',L6L6K3,' then 54 when ',L6L6X7,' then 55 when ',L6L6R6,' then 56 when ',L6M1C2,' then 57 when ',L6M1C3,' then 58 when ',L6M1G3,' then 59 when ',L6M1S4,' then 60 when ',L6M3B5,' then 61 when ',L6M1G9,' then 62 when ',L6M1G4,' then 63 when ',L6M1E9,' then 64 when ',L6M1E6,' then 65 when ',L6M2V9,' then 66 when ',L6M2R7,' then 67 when ',L6M2E1,' then 68 when ',L6M1A4,' then 69 when ',L6M1C6,' then 70 when ',L6M2S1,' then 71 when ',L6M2S2,' then 72 when ',L6M2W1,' then 73 when ',L6L6J7,' then 74 when ',L6K2G7,' then 75 when ',L6M2R9,' then 76 when ',L6M1H1,' then 77 when ',L6M1C7,' then 78 when ',L6M1A3,' then 79 when ',L6L5B7,' then 80 when ',L6M1H3,' then 81 when ',L6M1K1,' then 82 when ',L6M1B6,' then 83 when ',L6M3B4,' then 84 when ',L6M1M9,' then 85 when ',L6M1J4,' then 86 when ',L6M1H8,' then 87 when ',L6M1B7,' then 88 when ',L6M1B5,' then 89 when ',L6L6N3,' then 90 when ',L6M2V8,' then 91 when ',L6M1H2,' then 92 when ',L6M2E2,' then 93 when ',L6M1P1,' then 94 when ',L6M2R8,' then 95 when ',L6M1C8,' then 96 when ',L6M1M6,' then 97 when ',L6M1H5,' then 98 when ',L6M1H6,' then 99 when ',L6M3Y4,' then 100 when ',L6M1C9,' then 101 when ',L6M1K5,' then 102 when ',L6M2E3,' then 103 when ',L6M1H7,' then 104 when ',L6M1B8,' then 105 when ',L6K3S1,' then 106 when ',L6L6K4,' then 107 when ',L6M1M5,' then 108 when ',L6L5B5,' then 109 when ',L6M2E4,' then 110 when ',L6M1R4,' then 111 when ',L6M3B7,' then 112 when ',L6M3B8,' then 113 when ',L6L5B4,' then 114 when ',L6M2C9,' then 115 when ',L6M3B3,' then 116 when ',L6M5C6,' then 117 when ',L6M 5C6,' then 118 when ',L6M3B9,' then 119 when ',L6M1R8,' then 120 when ',L6M2C7,' then 121 when ',L6M2C8,' then 122 when ',L6M1J3,' then 123 when ',L6M3E7,' then 124 when ',L6K2G4,' then 125 when ',L6M2C6,' then 126 when ',L6M1J2,' then 127 when ',L6L5B3,' then 128 when ',L6K2G3,' then 129 when ',L6L2X4,' then 130 when ',L6M3E4,' then 131 when ',L6M1J1,' then 132 when ',L6K2G2,' then 133 when ',L6L5B2,' then 134 when ',L6M1K2,' then 135 when ',L6M3H9,' then 136 when ',L6K3X5,' then 137 when ',L6M2C5,' then 138 when ',L6K3S9,' then 139 when ',L6M4V9,' then 140 when ',L6M3E6,' then 141 when ',L6M 4V8,' then 142 when ',L6M4V8,' then 143 when ',L6M 4V9,' then 144 when ',L6M1J5,' then 145 when ',L6L5W4,' then 146 when ',L6M3E5,' then 147 when ',L6M1J6,' then 148 when ',L6M3E8,' then 149 when ',L6M3Z5,' then 150 when ',L6M1J7,' then 151 when ',L6M 4X7,' then 152 when ',L6M4X7,' then 153 when ',L6K2H2,' then 154 when ',L6K3T2,' then 155 when ',L6M2Y5,' then 156 when ',L6M2L6,' then 157 when ',L6L0B1,' then 158 when ',L6M2C1,' then 159 when ',L6K3Y5,' then 160 when ',L6M1K3,' then 161 when ',L6K3W9,' then 162 when ',L6M1H9,' then 163 when ',L6M3G4,' then 164 when ',L6M3M3,' then 165 when ',L6M4G2,' then 166 when ',L6M1L2,' then 167 when ',L6M3E9,' then 168 when ',L6M 4X6,' then 169 when ',L6M2C2,' then 170 when ',L6M4X6,' then 171 when ',L6M1K9,' then 172 when ',L6M3G1,' then 173 when ',L6M1J8,' then 174 when ',L6M2N1,' then 175 when ',L6K3W7,' then 176 when ',L6M2B8,' then 177 when ',L6M3G5,' then 178 when ',L6M3H7,' then 179 when ',L6M1J9,' then 180 when ',L6K2C5,' then 181 when ',L6K3Y1,' then 182 when ',L6M1K6,' then 183 when ',L6K2C6,' then 184 when ',L6K3V3,' then 185 when ',L6M3Z4,' then 186 when ',L6M3R2,' then 187 when ',L6M 4V7,' then 188 when ',L6L2W3,' then 189 when ',L6L2W2,' then 190 when ',L6M4V7,' then 191 when ',L6M2M9,' then 192 when ',L6L5A7,' then 193 when ',L6K3V7,' then 194 when ',L6M2Y4,' then 195 when ',L6M2C4,' then 196 when ',L6K2C4,' then 197 when ',L6L2W4,' then 198 when ',L6M3G6,' then 199 when ',L6L5B1,' then 200 when ',L6M2C3,' then 201 when ',L6K3S4,' then 202 when ',L6K2L9,' then 203 when ',L6K2C2,' then 204 when ',L6K2C3,' then 205 when ',L6K3T7,' then 206 when ',L6K2C1,' then 207 when ',L6K2M1,' then 208 when ',L6K3W4,' then 209 when ',L6M2L7,' then 210 when ',L6K3S8,' then 211 when ',L6M2L9,' then 212 when ',L6M2Y3,' then 213 when ',L6K3S7,' then 214 when ',L6K2L4,' then 215 when ',L6M2A9,' then 216 when ',L6K2N1,' then 217 when ',L6M1V7,' then 218 when ',L6K1Y3,' then 219 when ',L6K2M7,' then 220 when ',L6M2B1,' then 221 when ',L6K3T5,' then 222 when ',L6K2B9,' then 223 when ',L6K3X9,' then 224 when ',L6K2M9,' then 225 when ',L6M1V8,' then 226 when ',L6M2M1,' then 227 when ',L6M2N6,' then 228 when ',L6K2B6,' then 229 when ',L6M2Y2,' then 230 when ',L6M2L8,' then 231 when ',L6L5A9,' then 232 when ',L6L2W5,' then 233 when ',L6M1L1,' then 234 when ',L6M2B9,' then 235 when ',L6K1Z9,' then 236 when ',L6K3W6,' then 237 when ',L6K2A1,' then 238 when ',L6K2B8,' then 239 when ',L6K2H3,' then 240 when ',L6K2M8,' then 241 when ',L6K1Y2,' then 242 when ',L6L2W6,' then 243 when ',L6M2B6,' then 244 when ',L6M1V3,' then 245 when ',L6M2W2,' then 246 when ',L6L4X8,' then 247 when ',L6M1V6,' then 248 when ',L6K2L3,' then 249 when ',L6M2Y1,' then 250 when ',L6K2T4,' then 251 when ',L6K2Y1,' then 252 when ',L6K3S3,' then 253 when ',L6K2T3,' then 254 when ',L6K1V5,' then 255 when ',L6K1V3,' then 256 when ',L6M1K8,' then 257 when ',L6K2L2,' then 258 when ',L6K2R7,' then 259 when ',L6M2N2,' then 260 when ',L6K3Y6,' then 261 when ',L6K1Z6,' then 262 when ',L6M2B7,' then 263 when ',L6M1K7,' then 264 when ',L6K1Z8,' then 265 when ',L6K1V4,' then 266 when ',L6M1V4,' then 267 when ',L6K2P8,' then 268 when ',L6K2M6,' then 269 when ',L6L5A8,' then 270 when ',L6K1V2,' then 271 when ',L6K1Z7,' then 272 when ',L6M2B2,' then 273 when ',L6M2B3,' then 274 when ',L6M2B4,' then 275 when ',L6M1V5,' then 276 when ',L6H0B4,' then 277 when ',L6M2B5,' then 278 when ',L6L2W7,' then 279 when ',L6K2P7,' then 280 when ',L6L5B6,' then 281 when ',L6K2M5,' then 282 when ',L6K3X7,' then 283 when ',L6K1V1,' then 284 when ',L6M2W8,' then 285 when ',L6K1T9,' then 286 when ',L6K2L1,' then 287 when ',L6M2Y6,' then 288 when ',L6K1T8,' then 289 when ',L6M2N3,' then 290 when ',L6M2A5,' then 291 when ',L6K2N8,' then 292 when ',L6K2N7,' then 293 when ',L6M2A4,' then 294 when ',L6L2W8,' then 295 when ',L6K2K8,' then 296 when ',L6L4W3,' then 297 when ',L6L4W2,' then 298 when ',L6M2N4,' then 299 when ',L6M2N5,' then 300 when ',L6L4W4,' then 301 when ',L6L4T8,' then 302 when ',L6L5N9,' then 303 when ',L6K1S9,' then 304 when ',L6H1E8,' then 305 when ',L6K1T1,' then 306 when ',L6H1R5,' then 307 when ',L6L2X5,' then 308 when ',L6K2M4,' then 309 when ',L6M2X9,' then 310 when ',L6M3B2,' then 311 when ',L6H1S2,' then 312 when ',L6K1P7,' then 313 when ',L6K1P6,' then 314 when ',L6L5T9,' then 315 when ',L6H1E9,' then 316 when ',L6L2W9,' then 317 when ',L6L4X5,' then 318 when ',L6L4X4,' then 319 when ',L6L4X3,' then 320 when ',L6M5C8,' then 321 when ',L6M 5C7,' then 322 when ',L6M 5C8,' then 323 when ',L6M 5C9,' then 324 when ',L6M 5E1,' then 325 when ',L6L0A6,' then 326 when ',L6H0B8,' then 327 when ',L6M5C7,' then 328 when ',L6L4X6,' then 329 when ',L6M5C9,' then 330 when ',L6M5E1,' then 331 when ',L6L4W1,' then 332 when ',L6M0B8,' then 333 when ',L6H1R3,' then 334 when ',L6H1S1,' then 335 when ',L6H7V8,' then 336 when ',L6H7V4,' then 337 when ',L6H7V3,' then 338 when ',L6M0B6,' then 339 when ',L6M2N9,' then 340 when ',L6K3V1,' then 341 when ',L6M3G7,' then 342 when ',L6L4Z1,' then 343 when ',L6L6K1,' then 344 when ',L6K2K9,' then 345 when ',L6K1P8,' then 346 when ',L6L4X7,' then 347 when ',L6L4T7,' then 348 when ',L6M3R3,' then 349 when ',L6H1S4,' then 350 when ',L6H1R4,' then 351 when ',L6H1S3,' then 352 when ',L6H1S7,' then 353 when ',L6H1S5,' then 354 when ',L6L4R6,' then 355 when ',L6L4R7,' then 356 when ',L6K1R6,' then 357 when ',L6L4Y9,' then 358 when ',L6K1R5,' then 359 when ',L6K2J6,' then 360 when ',L6K2J1,' then 361 when ',L6M2W4,' then 362 when ',L6L2X1,' then 363 END ) DESC limit 0,5 ``` Explain Plan![enter image description here](https://i.stack.imgur.com/spA8T.jpg) Now i have attached the full query Here is the table structure. ![enter image description here](https://i.stack.imgur.com/cqlkU.jpg) Here is what i already did: I have the code to get zipcodes around 50 miles from zip_code table. Then i display the results from tutor_user_content in the order of nearest zipcode first. I hope i explained it clearly now. Please help. Thanks
Mysql Query Optimization
CC BY-SA 3.0
null
2011-05-27T04:48:15.830
2011-05-27T09:09:19.633
2011-05-27T08:07:59.510
297,408
741,073
[ "mysql", "sql", "query-optimization", "zipcode" ]
6,148,110
1
null
null
0
1,403
I'm getting a problem is launching eclipse 3.6 in Ubuntu 11.04. I'm dragging the file eclipse from folder to terminal but nothing. can someone help?? ![enter image description here](https://i.stack.imgur.com/pVYgy.png)
Launching Eclipse 3.6 in Ubuntu 11.04
CC BY-SA 3.0
null
2011-05-27T05:18:06.443
2011-12-26T21:36:41.003
null
null
484,290
[ "eclipse", "ubuntu" ]
6,148,200
1
6,148,225
null
0
776
I have a table view controller like this, and when a row is clicked its colour will turn to blue, but I don't want it to, because I have a text field and a label in each row. How can I stop it from becoming blue like this? ![screen shot of app](https://i.stack.imgur.com/SWOOJ.png) This is my code for cell construction: ``` - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; CustomCellStudentData *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { // cell = [[[CustomCellStudentData alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; cell = [[[CustomCellStudentData alloc] initWithFrame:CGRectZero reuseIdentifier:nil] autorelease]; } switch(indexPath.section) { case 0: switch (indexPath.row) { case 0: { tfText[0] = [[UITextField alloc] initWithFrame:CGRectMake(125,15, 170, 40)]; cell.accessoryView = tfText[0]; tfText[0].delegate=self; tfText[0].text =@""; tfText[0].placeholder =@"<Student Name>"; cell.primaryLabel.text =@"Student Name: "; } break; case 1: { tfText[1] = [[UITextField alloc] initWithFrame:CGRectMake(125,15, 170, 40)]; cell.accessoryView = tfText[1]; tfText[1].delegate=self; tfText[1].placeholder =@"<Student Age>"; cell.primaryLabel.text =@"Student Age: "; } break; case 2: { cell.primaryLabel.text =@"Gender: "; segmentedControl = [[UISegmentedControl alloc] initWithItems:nil]; segmentedControl.segmentedControlStyle = UISegmentedControlStyleBezeled; segmentedControl.frame = CGRectMake(100,10,200,30); [segmentedControl insertSegmentWithTitle:@"Male" atIndex:0 animated:YES]; [segmentedControl insertSegmentWithTitle:@"Female" atIndex:1 animated:YES]; segmentedControl.selectedSegmentIndex = 1; segmentedControl.tintColor = [UIColor purpleColor]; segmentedControl.backgroundColor = [UIColor whiteColor]; [segmentedControl setMomentary:YES]; [segmentedControl addTarget:self action:@selector(segmentSwitch:) forControlEvents:UIControlEventValueChanged]; cell.accessoryView =segmentedControl; //[self.view addSubview:segmentedControl]; /* segmentedControl = [[UISegmentedControl alloc] initWithItems:nil]; [segmentedControl insertSegmentWithTitle:@"Male" atIndex:0 animated:YES]; [segmentedControl insertSegmentWithTitle:@"Female" atIndex:1 animated:YES]; segmentedControl.segmentedControlStyle = UISegmentedControlStylePlain; segmentedControl.frame = CGRectMake(100,10,200,30); [segmentedControl setMomentary:YES]; [segmentedControl addTarget:self action:@selector(segmentSwitch:) forControlEvents:UIControlEventValueChanged]; */ } break; case 3: { tfText[3] = [[UITextField alloc] initWithFrame:CGRectMake(125,15, 170, 40)]; cell.accessoryView = tfText[3]; tfText[3].delegate=self; tfText[3].placeholder =@"<DD/MM/YYYY>"; cell.primaryLabel.text =@"Date Of Birth: "; } break; case 4: { tfText[5] = [[UITextField alloc] initWithFrame:CGRectMake(125,15, 170, 40)]; cell.accessoryView = tfText[5]; tfText[5].delegate=self; tfText[5].placeholder =@"<Blood Group>"; cell.primaryLabel.text =@"Blood Group: "; } break; case 5: { tfText[6] = [[UITextField alloc] initWithFrame:CGRectMake(125,15, 170, 40)]; cell.accessoryView = tfText[6]; tfText[6].delegate=self; tfText[6].placeholder =@"<Address>"; cell.primaryLabel.text =@"Address: "; } break; default: break; } ```
how can i set the table view cell property in an iphone app
CC BY-SA 3.0
null
2011-05-27T05:31:17.327
2011-05-27T06:07:32.123
2011-05-27T05:39:36.260
603,977
760,838
[ "objective-c", "cocoa-touch", "ios", "uitableview" ]
6,148,247
1
6,162,650
null
2
517
![Selected tab](https://i.stack.imgur.com/OUXEw.png) ![edit field](https://i.stack.imgur.com/Gec7A.png) As you can see in the picture that if i click the selected tab "Navigation" then only the rename option is appearing (pic 2). I want to make this via key board. ``` _makeEditable: function() { var instance = this; if (instance._isModifiable) { var currentItem = instance._navBlock.find('li.selected'); var currentLink = currentItem.find('a'); var currentSpan = currentLink.find('span'); currentLink.click( function(event) { if (event.shiftKey) { return false; } } ); ```
how to Rename a tab using Javascript Key events?
CC BY-SA 3.0
null
2011-05-27T05:37:55.723
2011-05-28T15:49:27.303
2011-05-27T09:15:40.243
741,558
632,074
[ "javascript", "html", "css" ]
6,148,309
1
6,148,368
null
1
250
I linked my application with the following options and saved a file from the application to the location `'C:\Program Files\ICEHost\Projects'`. The file saved without any issues. But when I open the folder the file is not there.![enter image description here](https://i.stack.imgur.com/En6Bf.jpg) I don't want to execute the application as run as administrator. How can I solve the issue?
File saved to Program files folder is not there
CC BY-SA 3.0
null
2011-05-27T05:46:52.210
2011-05-27T05:55:31.347
null
null
382,485
[ "c++", "visual-studio-2008", "windows-7" ]
6,148,458
1
null
null
0
376
- - `SerialPort` My problem is: After starting my PC when starting my application for the first time it is hanging up or stuck up or going into not responding mode when it tries to sending a string to the serial port. To come out of it I just remove the USB cable from the USB port of my PC. As soon as I remove the cable I getting below error message: ![enter image description here](https://i.stack.imgur.com/aiThY.png) If I press the Continue button plug the removed USB cable back in my application working fine. : I am getting this error only when I start my app first time after starting or restarting my PC. Afterwards it's working fine as I wanted. : Another thing to consider is that if I put my code in `try` and `catch` I catch the exception only when I remove the USB cable from my PC. : After restarting my PC, if I do 1. plug out and then plug in the USB cable from the USB Port of the PC, and then 2. I start my App then it's working fine It seems to me that the control is going inside an infinite loop when i try sending a string to the serial port at the very first time after starting of the PC. See the details of my code over [here](https://docs.google.com/document/d/1PWiVul1he88b-glJi7F5B0s7ySaFjgnkmVHVyMGviLA/edit?hl=en_US&authkey=CPmhr9wL#)
Getting error only first time I communicate with my SerialPort later on its working fine
CC BY-SA 3.0
null
2011-05-27T06:07:49.157
2012-03-24T23:02:51.047
2012-03-24T22:42:03.803
220,986
468,968
[ "c#", ".net", "visual-studio", "serial-port" ]
6,148,588
1
6,148,748
null
-1
1,558
I've downloaded the wamp server and it's online. I'm trying to install Joomla. ![description](https://i.stack.imgur.com/AXKwE.jpg) At page 4 I'm told `Unable to connect to the database` ![description](https://i.stack.imgur.com/nww8E.jpg) > An error has occurred:The database details provided are incorrect and/or empty. Can anyone help me in fixing this error? This problem has been fixed by Ocaso Protal, finaly this page ocurs ![description](https://i.stack.imgur.com/LctGD.png) what should I put here ?Site Name? nd finaly why should i use joomla any specific properties of this product ?
Unable to connect to the database mysql?
CC BY-SA 3.0
0
2011-05-27T06:24:33.137
2012-12-20T19:42:11.717
2012-12-20T19:42:11.717
367,456
739,560
[ "php", "mysql", "joomla" ]
6,148,657
1
6,148,702
null
1
3,369
Hii everyone! I have some text fields in each cell of the table view, like this ![enter image description here](https://i.stack.imgur.com/rOccs.png) If I enter some data into the text field and scroll the view up and down again, the data in the text field is set to null. Why does this happen, how can I avoid this? Following is my code for cell construction ``` static NSString *CellIdentifier = @"Cell"; CustomCellStudentData *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { // cell = [[[CustomCellStudentData alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; cell = [[[CustomCellStudentData alloc] initWithFrame:CGRectZero reuseIdentifier:nil] autorelease]; } [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; switch(indexPath.section) { case 0: switch (indexPath.row) { case 0: { tfText[0] = [[UITextField alloc] initWithFrame:CGRectMake(125,15, 170, 40)]; cell.accessoryView = tfText[0]; tfText[0].delegate = self; tfText[0].text = @""; tfText[0].placeholder = @"<Student Name>"; cell.primaryLabel.text = @"Student Name: "; } break; case 1: { tfText[1] = [[UITextField alloc] initWithFrame:CGRectMake(125,15, 170, 40)]; cell.accessoryView = tfText[1]; tfText[1].delegate=self; tfText[1].placeholder = @"<Student Age>"; cell.primaryLabel.text = @"Student Age: "; } break; } ``` Thanx in advance
Data in the text field is set to null when I scroll the table view
CC BY-SA 3.0
null
2011-05-27T06:33:52.537
2011-05-28T11:13:03.593
2011-05-27T06:51:33.573
370,421
760,838
[ "iphone", "objective-c", "uitableview" ]
6,148,812
1
null
null
23
12,326
I've integrated AdMob v4.1.0 into my application and it seems to have caused a huge memory leak (pretty sure that it already happened on 4.0.4). In order to isolate the problem I created a new project with a blank linear layout and added the AdView to it (this is actually a copy&paste from the sample code provided by AdMob). See my main.xml, MainActivity.java and manifest content: main.xml: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/linearLayout"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> ``` MainActivity.java: ``` package AdsTry.main; import com.google.ads.AdRequest; import com.google.ads.AdSize; import com.google.ads.AdView; import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; public class MainActivity extends Activity { private final int AD_VIEW_ID = 1000000; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Lookup R.layout.main LinearLayout layout = (LinearLayout)findViewById(R.id.linearLayout); // Create the adView // Please replace MY_BANNER_UNIT_ID with your AdMob Publisher ID AdView adView = new AdView(this, AdSize.BANNER, "MY_BANNER_UNIT_ID"); adView.setId(AD_VIEW_ID); // Add the adView to it layout.addView(adView); // Initiate a generic request to load it with an ad AdRequest request = new AdRequest(); adView.loadAd(request); } @Override protected void onPause() { Log.i("AdsTry", "onPause"); getAdView().stopLoading(); super.onPause(); } @Override protected void onDestroy() { Log.i("AdsTry", "onDestroy"); getAdView().destroy(); super.onDestroy(); } private AdView getAdView() { return (AdView) findViewById(AD_VIEW_ID); } } ``` manifest: ``` <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <!-- AdMobActivity definition --> <activity android:name="com.google.ads.AdActivity" android:configChanges="orientation|keyboard|keyboardHidden" /> </application> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> ``` And that's all the code I have. Now, when running this application, I can see that both onPause and onDestory are called and the Activity is terminated, BUT the problem is that it will never be available for the GC since it causes the InputMethodManager to hold a reference to the Activity (See image taken from HPROF output after the activity was destroyed): ![MainActivity Merge shortest path to GC Roots](https://i.stack.imgur.com/AoSQN.jpg) Once I remove the AdView-related code (and again, this is the ONLY code of this application) the problem goes away: ![Same HPROF output without using AdView](https://i.stack.imgur.com/ynZ3N.jpg) EDIT: Also tried removing ALL the code from onCreate and updated the main.xml to contain the following (still get the same result): ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/linearLayout"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <com.google.ads.AdView android:id="@+id/Ad" android:layout_width="match_parent" android:layout_height="wrap_content" ads:adUnitId="MY_ID" ads:adSize="BANNER" ads:loadAdOnCreate="true"/> </LinearLayout> ``` Any ideas ????
Android AdMob causes memory leak?
CC BY-SA 3.0
0
2011-05-27T06:52:47.913
2021-08-13T03:47:06.147
2016-11-27T12:46:43.327
2,693,743
624,109
[ "android", "memory", "memory-leaks", "admob" ]
6,149,009
1
6,149,377
null
1
347
How to create such cool presentation screenshots like this: ![enter image description here](https://i.stack.imgur.com/9uf1m.jpg) or this ![enter image description here](https://i.stack.imgur.com/GbtIF.jpg) I've seen this many times. Seems to be a standard application to create such wide screenshots.
WindowsPhone 7 Screenshots
CC BY-SA 3.0
null
2011-05-27T07:14:01.427
2011-05-27T14:13:32.907
null
null
375,368
[ "windows-phone-7", "screenshot" ]
6,149,304
1
6,149,654
null
3
901
When setting the background color of a select element, Opera 11.11 on Windows 7 hides some of the text. This does not happen in other browsers. ![Before setting background color](https://i.stack.imgur.com/Laqy4.png) ![enter image description here](https://i.stack.imgur.com/zxrjh.png) The only difference between these two dropdowns is the following CSS: ``` background-color: #fff; ``` The HTML is as follows: ``` <select size="1"> <option>Foo</option> <option>Bar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> <option>Foobar foobar foobar foobar</option> </select> ``` [Here's a page](http://roeim.net/tmp/opera/test.html) that includes the HTML and the screenshots. I can't imagine any reason for why Opera should behave like this. Is there something wrong with my HTML and CSS, or is there a workaround for this? - -
Opera hides text in dropdown when setting background color on select element
CC BY-SA 3.0
null
2011-05-27T07:45:51.203
2011-05-27T08:33:23.913
2011-05-27T08:33:23.913
2,935
2,935
[ "html", "css", "opera" ]
6,149,694
1
6,149,763
null
1
4,221
This my jqGrid search toolbar script: ``` <link rel="stylesheet" type="text/css" media="screen" href="jqGrid/css/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="jqGrid/plugins/ui.multiselect.css" /> <script src="jqGrid/js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="jqGrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="jqGrid/js/jquery.jqGrid.src.js" type="text/javascript"></script> <script src="jqGrid/src/jquery.fmatter.js" type="text/javascript"></script> <script src="jqGrid/src/jqModal.js" type="text/javascript"></script> jQuery("#list").jqGrid({ url:'dounfinish.php', datatype: 'json', mtype: 'POST', colNames:['id','Date', 'Line'], colModel :[ {name:'def_id', index:'def_id', hidden:true, width:55}, {name:'Problem_date', index:'Problem_date', width:90, editable:true}, {name:'Line', index:'Line', width:80, align:'right', editable:true,search:true,stype:'text',searchoptions:{sopt:['cn']}}], pager: jQuery('#pager'), rowNum:10, rowList:[10,20,30], sortname: 'Problem_date', sortorder: "desc", viewrecords: true, imgpath: 'themes/basic/images', caption: 'OQC DEFECT DATA' }); jQuery("#list").jqGrid('navGrid','#pager',{edit:true,add:false,del:false,search:false}); jQuery("#list").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: true, groupOp:'AND'}); ``` And in console: ``` _search:true nd:1306513344121 rows:10 page:1 sidx:Problem_date sord:desc filters:{"groupOp":"AND","rules":[{"field":"Line","op":"cn","data":"7"}]} ``` how should I do to post the "data" value? so, I can search data use toolbar search. --- ![grid](https://i.stack.imgur.com/EPWA2.png)
jquery-jqgrid:How to post value in toolbar search?
CC BY-SA 3.0
null
2011-05-27T08:29:12.970
2011-05-30T05:53:04.183
2011-05-27T10:22:16.667
751,947
751,947
[ "jquery", "search", "jqgrid", "toolbar" ]
6,149,820
1
6,150,935
null
9
2,629
This is one of those "what the bloody hell" problems that I don't even know how to approach. I have this website: [http://www.mojalbum.com](http://www.mojalbum.com) and if you open it in IE8 it loads fine, and after half a second the layout gets messed up. If you then resize the window it gets back to normal. Also if you open developer tools and disable and re-enable a CSS property (does not matter which one) the layout gets fixed too. Unfortunately I can't remember when this started happening so I don't know what I did that caused this. And I really have no idea what to do. I've spent 3 hours searching for a solution on google without any luck (to be honest I'm not really sure what to search for). Here is the messed-up screenshot: ![enter image description here](https://i.stack.imgur.com/UZalB.png) And this is how it should look: ![enter image description here](https://i.stack.imgur.com/dXSH7.png) I'm using Internet Explorer 8 (v 8.0.7601.17514) on Windows 7. Edit: I've now managed to (kinda) isolate the problem. If jQuery (v1.6.1) is included on the page then this thing happens. Including jQuery v1.3.2 does not cause this problem.
Weird IE8 layout glitch - why does the body background disappear?
CC BY-SA 3.0
0
2011-05-27T08:44:36.617
2011-09-15T14:54:23.860
2011-09-15T14:54:23.860
405,015
185,527
[ "jquery", "css", "internet-explorer" ]
6,150,113
1
null
null
1
614
How can I properly edit a a ScrollView that is a child of a View in Xcode 4. I have a really long ScrollView (over two pages with lots of controls) and XCode does not let me see the entire scrollview when it is embedded in a View xib. How am I supposed to be able to edit the ScrollView in interface builder? ![xcode scrollview inside a view](https://i.stack.imgur.com/Dv6hz.png)
How to edit a ScrollView from inside a View in Xcode4?
CC BY-SA 3.0
null
2011-05-27T09:10:03.917
2011-11-04T10:24:32.157
2011-05-27T09:33:28.753
99,834
99,834
[ "view", "interface-builder", "uiscrollview", "xcode4", "scrollview" ]
6,150,335
1
null
null
2
1,353
System.Linq doesn't seem to be referenced in any of my views, even though . Any LINQ code in any of my views appears as it does in this image, and Intellisense doesn't work ![enter image description here](https://i.stack.imgur.com/T6yWF.png) However, the LINQ code work in all of my .cs files, and the code in the views still when I run the solution. when I hit Alt+Enter I get a little message "Failed to import method".
LINQ not working in Views. Any ideas how to fix this?
CC BY-SA 3.0
null
2011-05-27T09:30:32.643
2013-11-05T08:13:11.630
null
null
181,771
[ "c#", "asp.net-mvc", "linq", "view" ]
6,150,341
1
6,150,395
null
1
163
Here is the layout: ![enter image description here](https://i.stack.imgur.com/GjPjK.png) Here is the code: ``` #base.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{% block title %}{% endblock %}</title> </head> <body> <div id="content"> <div id="l_col"> {% block left %}{% endblock %} </div> <div id="r_col"> {% block right %}{% endblock %} </div> </div> </body> </html> #views.py def list( request ): vars = RequestContext( request, { 'news': News.objects.all(), 'top_news': News.news_manager.get_top_news() } ) return render_to_response( 'news/list.html', vars ) def view( request, id ): vars = RequestContext( request, { 'news': News.objects.filter( id = id ), 'top_news': News.news_manager.get_top_news() } ) return render_to_response( 'news/view.html', vars ) #news/list.html and news/view.html {% extends 'base.html' %} {% block left %} <!-- loop for news --> {% endblock %} {% block right %} <!-- loop for top news --> {% endblock %} ``` As you see variable 'top_news' repeats in methods: 'list', 'view' and in 2 templates same loop for top news How to eliminate this duplication of code ?
code duplication
CC BY-SA 3.0
null
2011-05-27T09:30:55.183
2012-03-13T19:52:21.943
2012-03-13T19:52:21.943
294,313
642,096
[ "django", "code-duplication" ]
6,150,456
1
6,151,374
null
1
1,604
For each (Name, Age, City, E-mail) in the . I need to have `stack panel` (see in image below `stack-panel` with sky blue color). And add such list of `stack panel` in to `dock panel` (see image below `dock-panel` with color). How could it be implementing in WPF? Does `user control` can help me? Then how could I add inside `dockpanel` ? Is there any other and ? i needs to going with , so giving your answer by considering this point..... ![enter image description here](https://i.stack.imgur.com/kavHr.png) Thanks……
One stack panel for each record inside table
CC BY-SA 3.0
0
2011-05-27T09:42:40.203
2011-05-27T16:11:29.583
null
null
468,968
[ "c#", ".net", "wpf", "mvvm" ]
6,150,951
1
6,151,156
null
5
3,231
In my Microsoft SQL Server 2005 database I have data in column `WorkingDays` like : ``` <WorkingDays> <Day>2011-05-05</Day> <Day>2011-05-06</Day> </WorkingDays> ``` How to deserialize them within T-SQL query to `DateTime` format? ![enter image description here](https://i.stack.imgur.com/BUng2.jpg)
How to deserialize data records serialized with FOR XML AUTO in T-SQL?
CC BY-SA 3.0
0
2011-05-27T10:26:53.360
2011-05-27T10:45:22.983
2011-05-27T10:33:01.037
621,023
621,023
[ "sql", "sql-server", "xml", "tsql", "serialization" ]
6,150,997
1
6,152,324
null
2
693
I am trying to build a model to compare the input for a particular bit pattern. For example, if I have to check for input pattern 1110, I build a model with 3 delay elements get the input and Concatenate it and then use a comparator to compare with 14(Hex E). Currently, I need to do a pattern matching for 128 bits. Going by previous instance, I can ideally build the similar model of using 127 Delay elements and compare Blocks. But I would like to know if there is a optimal and "better" way to do it. Looking forward to some suggestion in this regard. If you are interested, here is the small model I built to extract 8 bits: ![Extact 8 Bits](https://i.stack.imgur.com/OuaJF.png) ![Concat 8 bits](https://i.stack.imgur.com/PBVDe.png)
Pattern Matching in Simulink
CC BY-SA 3.0
null
2011-05-27T10:31:37.510
2011-05-27T12:37:41.660
null
null
276,859
[ "binary", "pattern-matching", "fpga", "simulink", "xilinx" ]
6,151,023
1
6,151,719
null
1
57
![enter image description here](https://i.stack.imgur.com/jd56v.png) Is there any way to know by javascript that textbox has changed its valid state, in this situation as in the image. If all the validation in a rows is valid, we will hide that row but if any validation in that row is not valid, we will show that row. What i will do now is to use onblur on each textbox but i doubt that is there is a better way or not.
Javascript event to indicate the time validators has changed its valid state
CC BY-SA 3.0
null
2011-05-27T10:34:57.397
2011-05-27T11:39:01.643
null
null
495,670
[ "javascript", "asp.net", "validation" ]
6,151,107
1
null
null
4
620
I'm having an issue with Blend not rendering items in a DataTemplate styled implicity. I've setup a basic project to replicate the issue. Below is the Xaml + ResourceDictionary for those with Eagle eyes to see what I'm doing wrong (if anything) and if you're really keen theres a link to the Zipped project below. This is what renders when the application is run: ![Expected Output](https://i.stack.imgur.com/k9U8u.jpg) and this is what Blend presents: ![Blend Rendered](https://i.stack.imgur.com/z8jaX.jpg) ``` <Color x:Key="TextColor1">#FF3631C4</Color> <Style TargetType="{x:Type TextBlock}"> <Setter Property="TextWrapping" Value="NoWrap"/> <Setter Property="TextTrimming" Value="None"/> <Setter Property="Foreground"> <Setter.Value> <SolidColorBrush Color="{DynamicResource TextColor1}"/> </Setter.Value> </Setter> </Style> ``` ``` <Canvas x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource SampleDataSource}}"> <TextBlock Text="Textblock" Canvas.Left="44.954" Canvas.Top="49.305" /> <TextBlock Text="Textblock 2" Canvas.Left="44.954" Canvas.Top="86.284" /> <ListBox ItemsSource="{Binding Collection}" Canvas.Left="134.016" Canvas.Top="29.026" Height="154.275" Width="384.575"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Property1}" /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Canvas> ``` [Complete Example Project (65kb) - WpfApplication2.zip](http://dl.dropbox.com/u/2728693/WpfApplication2.zip) The problem can of course be solved by explictly setting the style, but in my main project this will cause a bit of a headache. I've seen some comments on other posts around that Blend may have issues but nothing concrete. Any thoughts / suggestions? Thanks! Edit: I discovered that if I give my style an Explicit Key, I can then create an Implicit Style based on the Explicit like so: ``` <Style x:Key="TextBlockStyle1" TargetType="{x:Type TextBlock}"> <Setter Property="TextWrapping" Value="NoWrap"/> <Setter Property="TextTrimming" Value="None"/> <Setter Property="Foreground"> <Setter.Value> <SolidColorBrush Color="{DynamicResource TextColor1}"/> </Setter.Value> </Setter> </Style> <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlockStyle1}" /> ``` This then gives me the ability to add another Implicit Style as a Resource in my DataTemplate: ``` <DataTemplate> <DataTemplate.Resources> <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlockStyle1}"></Style> </DataTemplate.Resources> <TextBlock Text="{Binding Property1}" /> </DataTemplate> ``` This will then give me the blendability I'll need in my main Project but still doesn't quite answer my original question.
Expression Blend, an ItemTemplate and an Implicit Style
CC BY-SA 3.0
null
2011-05-27T10:41:35.510
2011-11-10T01:01:34.970
2011-05-27T16:18:47.663
222,063
222,063
[ "wpf", "xaml", "expression-blend", "implicit-style" ]
6,151,138
1
6,151,343
null
0
1,596
copied following code from [http://jqueryui.com/demos/resizable/#default](http://jqueryui.com/demos/resizable/#default) ``` <meta charset="utf-8"> <style>#resizable { width: 150px; height: 150px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } </style> <script> $(function() { $( "#resizable" ).resizable(); }); </script> <div class="demo"> <div id="resizable" class="ui-widget-content"> <h3 class="ui-widget-header">Resizable</h3> </div> </div> ``` It outputs this. ![enter image description here](https://i.stack.imgur.com/8Qgb6.png) I want to capture the double click event for each of cursor position so that if 1. Double click by horizontal re-size cursor, i can toggle width of current resizable between original and maximun available width. 2. Double click by vertical re-size cursor, i can toggle height of current resizable between original and maximun available height. 3. Double click by diagonal re-size cursor, i can toggle width and height of current resizable between original and maximun available width and height.
jQuery UI : Resizable Coustom Duoble-Click Event
CC BY-SA 3.0
0
2011-05-27T10:43:28.053
2011-05-27T11:11:02.550
null
null
295,463
[ "javascript", "jquery", "jquery-ui" ]
6,151,296
1
6,159,599
null
4
4,491
Is there any way to prevent xss attacks in magento? in my localhost i am just trying to check how to prevent xss attacks for example i am inserting a script when user register in magento, i am just shocked when inserting a whole script in the name field i am successfully registered my dashboard screenshot ![enter image description here](https://i.stack.imgur.com/Xbf6G.jpg) after refreshing the page i got another screen![enter image description here](https://i.stack.imgur.com/qTvHB.jpg) I just want to prevent the user that no one can do like that. Please help me prevent that types of attacks.
Magento Xss Prevention
CC BY-SA 3.0
0
2011-05-27T10:57:44.627
2011-05-28T04:14:49.177
2011-05-27T12:11:28.243
717,841
717,841
[ "magento" ]
6,151,385
1
6,151,406
null
27
37,734
Is there any well known established framework for C or Java or PHP to do speech recognition applications? Microphone audio input and it will recognize English words. Such as pseudo code: ``` Speech s = new Speech(); s.input(micStream); result = s.recognise("Hello"); if (result) { printf("Matched hello"); } else { printf("No match found"); } ``` Download this: [sphinx4/1.0%20beta6/](http://sourceforge.net/projects/cmusphinx/files/sphinx4/1.0%20beta6/) ![enter image description here](https://i.stack.imgur.com/Sx4HP.png) 1. Add the libraries 2. Copy & paste code: a) xml file put somewhere, which can be loaded from the code: https://gist.github.com/2551321 b) use this: package edu.cmu.sphinx.demo.hellowrld; import edu.cmu.sphinx.frontend.util.Microphone; import edu.cmu.sphinx.recognizer.Recognizer; import edu.cmu.sphinx.result.Result; import edu.cmu.sphinx.util.props.ConfigurationManager; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import models.Tts; public class Speech { public static void main(String[] args) { ConfigurationManager cm; if (args.length > 0) { cm = new ConfigurationManager(args[0]); } else { ///tmp/helloworld.config.xml cm = new ConfigurationManager(Speech.class.getResource("speech.config.xml")); } Recognizer recognizer = (Recognizer) cm.lookup("recognizer"); recognizer.allocate(); Microphone microphone = (Microphone) cm.lookup("microphone"); if (!microphone.startRecording()) { System.out.println("Cannot start microphone."); recognizer.deallocate(); System.exit(1); } System.out.println("Say: (Hello | call) ( Naam | Baam | Caam | Some )"); while (true) { System.out.println("Start speaking. Press Ctrl-C to quit.\n"); Result result = recognizer.recognize(); if (result != null) { String resultText = result.getBestFinalResultNoFiller(); System.out.println("You said: " + resultText + '\n'); Tts ts = new Tts(); try { ts.load(); ts.say("Did you said: " + resultText); } catch (IOException ex) { } } else { System.out.println("I can't hear what you said.\n"); } } } }
Speech recognition in C or Java or PHP?
CC BY-SA 3.0
0
2011-05-27T11:08:46.320
2016-08-27T06:48:19.647
2013-05-23T19:37:00.737
1,937,270
null
[ "java", "php", "c", "speech-recognition" ]
6,151,426
1
null
null
31
18,439
So tired to search solution.. I use PHPStorm IDE for my php projects and one trouble just makes me crazy. Editor fonts (, don't care about interface) looks horrible. I've tried on different distributions and different DE but result is always the same :( There are screenshots to compare Kate and PHPStorm fonts. I know that PHPStorm is an JAVA application and it uses different font hitting engine, but.. Eclipse is an JAVA app too, but has pretty nice fonts. PHPStorm fonts on both Windows and OSX looks like other system fonts. Smooth and readable. ![PHPStorm](https://i.stack.imgur.com/ivZoQ.png) ![Kate](https://i.stack.imgur.com/VkOIn.png) Is there way to fix this font issue before my eyes will explode..? Thanks.
Phpstorm Editor fonts on linux systems
CC BY-SA 3.0
0
2011-05-27T11:12:57.677
2014-02-20T23:20:18.947
null
null
758,992
[ "phpstorm" ]
6,151,537
1
6,151,564
null
2
124
Ok, so im starting a new project and decided to use a ORM tool (as im so bored with writing it manually) So im starting new with Castle AR, So in my domain object ive the following ``` [ActiveRecord] public class Account : ActiveRecordBase<Account> { private string companyName; private Guid accountId; [PrimaryKey(Access = PropertyAccess.FieldCamelcase)] public Guid AccountId { get { return accountId; } } [Property(Access = PropertyAccess.FieldCamelcase)] public string CompanyName { get { return companyName; } // set { companyName= value; } } } ``` And this works and pulls out my records. But if I uncomment the set I get the following ![enter image description here](https://i.stack.imgur.com/JuGg5.png) Obviosuly im going to need the set soon (normally I would also remove this on `CompanyName "Access=PropertyAccess.FieldCamelCase")` Any ideas what im doing wrong?
Castle ActiveRecord - Issue With Setter
CC BY-SA 3.0
null
2011-05-27T11:22:30.357
2011-05-27T11:26:31.293
2011-05-27T11:26:31.293
628,273
220,454
[ "c#", "castle-activerecord" ]
6,151,746
1
6,151,791
null
1
3,899
I am facing a problem in poitioning the window: When I resize the window my CSS falied; I mean look of the page is changed: Here is the code: Webpage: ``` <!-- Begin Wrapper --> <div id="wrapper"> <!-- Begin Header --> <div id="header"> <h1> Header </h1> </div> <!-- End Header --> <!-- Begin Navigation --> <div id="navigation"> <div class="menu"> <ul> <li><a href="#" >Home</a></li> <li><a href="#" id="current">One</a> <ul> <li><a href="#">asd</a></li> <li><a href="#">fdasdasd</a></li> <li><a href="#">asdasdasd</a></li> <li><a href="#">fsadfsd</a></li> </ul> </li> <li><a href="/faq.php">Two</a> <ul> <li><a href="#">sdfsdfasdf</a></li> <li><a href="#">sdfsdf</a></li> <li><a href="#">sdfsdaf</a></li> <li><a href="#">werqwer</a></li> </ul> </li> <li><a href="/faq.php">Three</a> <ul> <li><a href="#">safdfwe</a></li> <li><a href="#">sdafdf</a></li> </ul> </li> <li><a href="/contact/contact.php">My Account</a> </li> <li> <input type="text" style="width:200px;" id="search" /> <asp:Button ID="btnSearch" runat="server" Text="Search" /> </li> </ul> </div> </div> <!-- End Navigation --> <!-- Begin Left Column --> <div id="leftcolumn"> </div> <!-- End Left Column --> <!-- Begin Content Column --> <div id="content"> </div> <!-- End Content Column --> <!-- Begin Right Column --> <div id="rightcolumn"> </div> <!-- End Right Column --> <!-- Begin Footer --> <div id="footer"> </div> <!-- End Footer --> </div> <!-- End Wrapper --> </div> ``` CSS: ``` menu{ border:none; border:0px; margin:0px; padding:0px; font: 67.5% "Tahoma", "Verdana", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif; font-size:12px; font-weight:bold; } .menu ul{ background:#333333; height:35px; list-style:none; display:block; margin:0; padding:0; } .menu li{ float:left; padding:0px; } .menu li a{ background:#333333 url("images/seperator.gif") bottom right no-repeat; color:#cccccc; display:block; font-weight:normal; line-height:35px; margin:0px; padding:0px 25px; text-align:center; text-decoration:none; } .menu li a:hover, .menu ul li:hover a{ background: #2580a2 url("images/hover.gif") bottom center no-repeat; color:#FFFFFF; text-decoration:none; } .menu li ul{ background:#333333; display:none; height:auto; padding:0px; margin:0px; border:0px; position:absolute; width:225px; z-index:200; /*top:1em; /*left:0;*/ } .menu li:hover ul{ display:block; } .menu li li { background:url('images/sub_sep.gif') bottom left no-repeat; display:block; float:none; margin:0px; padding:0px; width:225px; } .menu li:hover li a{ background:none; } .menu li ul a{ display:block; height:35px; font-size:12px; font-style:normal; margin:0px; padding:0px 10px 0px 15px; text-align:left; } .menu li ul a:hover, .menu li ul li:hover a{ background:#2580a2 url('images/hover_sub.gif') center left no-repeat; border:0px; color:#ffffff; text-decoration:none; } .menu p{ clear:left; } ``` Full screen mode: ![enter image description here](https://i.stack.imgur.com/Us293U.jpg) Resize browser: ![enter image description here](https://i.stack.imgur.com/IsvWks.jpg) Please help
CSS issue when resizing browser
CC BY-SA 3.0
null
2011-05-27T11:42:01.143
2011-05-28T19:02:27.450
2011-05-28T19:02:27.450
609,582
609,582
[ "css", "browser" ]
6,151,867
1
6,152,665
null
4
1,878
I' currently debugging a big Winforms application that's got some memory leak issues. I use the .NET memory profiler and so far I've been able to find some of those leaks and solve them. But now I am faced with a problem which I am not sure is a problem, and if it is one I don't know how to solve it. After running my application for like 1 min (which is not a lot considering normal users could use it for hours),.NET memory profiler shows me around 100-200 instances of different controls from the Krypton Toolkit, and this number is increasing if I keep going (they are never garbage collected, because it appears they are still being referenced somewhere). Now if I check the root path of those instances and they all look like: ![Root path for Krypton ViewManager](https://i.stack.imgur.com/k9lyA.png) I don't know where to look in my code to make these instances be de-referenced correctly when they are not needed anymore, since I don't know what is still referencing the control. I know the place where the KryptonButtonEx gets created, and from what I understand the ViewManager is created by this button, but still I don't see what I can do about it. For those who are interested, the code to create the button is this: ``` KryptonButton newControlButton = new KryptonButton(); newControlButton.Tag = mtActivityControl; newControlButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); newControlButton.AutoSize = true; newControlButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; newControlButton.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.ListItem; newControlButton.Location = new System.Drawing.Point(3, 3); newControlButton.Name = string.Format("controlButton{0}", mtActivityControl.SymbolicName); newControlButton.Size = new System.Drawing.Size(96, 23); newControlButton.StateCommon.Content.Image.ImageH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near; newControlButton.StateCommon.Content.ShortText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near; newControlButton.TabIndex = 5; StringBuilder buttonText = new StringBuilder(); buttonText.Append(Path.GetFileName(mtActivityControl.ControlName)); /*if (mtActivityControl.SymbolicName.Length != 0) { buttonText.Append(" ("); buttonText.Append(mtActivityControl.SymbolicName); buttonText.Append(")"); }*/ newControlButton.Text = buttonText.ToString(); newControlButton.Values.ExtraText = ""; newControlButton.Values.Image = null; newControlButton.Values.ImageStates.ImageCheckedNormal = null; newControlButton.Values.ImageStates.ImageCheckedPressed = null; newControlButton.Values.ImageStates.ImageCheckedTracking = null; newControlButton.Values.Text = buttonText.ToString(); newControlButton.Click += new System.EventHandler(this.controlsButton_Click); ``` and even though it is not necessary from what my research told me, I unhook the event like this in the Dispose function: ``` newControlButton.Click -= new System.EventHandler(this.controlsButton_Click); ``` So my question is: Is it possible that Krypton itself keeps a reference to my controls which leads to some memory not being freed (which could be ok if it is a limited amount of memory used for keeping an object pool or something like that, but could be a problem if it is an uncontrolled memory leak)? If it doesn't come from Krypton, do you have an idea where to look to destroy those instances correctly? Many thanks! EDIT: I just noticed that the class KryptonButtonEx doesn't come from Krypton but from my app. But I don't think it changes anything to the question since the only thing it does is override the GetPreferredSize function: ``` /// <summary> /// An extended/fixed KryptonButton which handles resizing correctly. /// </summary> public class KryptonButtonEx : ComponentFactory.Krypton.Toolkit.KryptonButton { /// <summary> /// Gets the size of the preferred. /// </summary> /// <param name="proposedSize">Size of the proposed.</param> /// <returns></returns> public override Size GetPreferredSize(Size proposedSize) { // Do we have a manager to ask for a preferred size? if (ViewManager != null) { // Ask the view to peform a layout Size retSize = ViewManager.GetPreferredSize(Renderer, proposedSize); // Apply the maximum sizing if (MaximumSize.Width > 0) retSize.Width = Math.Min(MaximumSize.Width, retSize.Width); if (MaximumSize.Height > 0) retSize.Height = Math.Min(MaximumSize.Height, retSize.Width); // Apply the minimum sizing if (MinimumSize.Width > 0) retSize.Width = Math.Max(MinimumSize.Width, retSize.Width); if (MinimumSize.Height > 0) retSize.Height = Math.Max(MinimumSize.Height, retSize.Height); return retSize; } else { // Fall back on default control processing return base.GetPreferredSize(proposedSize); } } } ```
Is it possible that Krypton (Winforms library) has memory leak issues
CC BY-SA 3.0
0
2011-05-27T11:53:47.813
2011-05-27T14:43:00.603
2011-05-27T12:17:43.943
404,751
404,751
[ "c#", "winforms", "memory-leaks", "krypton" ]
6,152,058
1
6,152,203
null
0
70
See image below: ![Example](https://i.stack.imgur.com/x1l0k.gif) Right now, I have `.tweet_list` on the left and `#tweets_right` on the right, however I would like `#tweets_right` to sit at the top inline with `#tweet_list`. The CSS is as follows for the both: ``` #tweet_list{ width: 500px; height: 187px; background: url(../images/tweet_bg.gif) no-repeat; margin: 30px 0 0 0; padding: 5px 0 0 60px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; float: left; } #tweets_right{ width: 200px; float: right; color: #818179; border: 1px solid #333; margin-right: 60px; } ``` I could use `margin-top: -100px;` but surely this isn't the best way. I'm new to this, could someone please help? Thanks Thanks
Incorrectly positioned CSS
CC BY-SA 3.0
null
2011-05-27T12:11:04.983
2011-05-27T12:36:24.537
2011-05-27T12:26:47.340
418,878
418,878
[ "css" ]
6,152,468
1
6,152,534
null
1
1,007
I have created a CustomControl to show information labels and that can be minimized/restored with an arrow button: ![enter image description here](https://i.stack.imgur.com/koaBh.png) It should be docked to the top of a form. Then in the same form usually I have a center panel with all the normal controls, here it is showm in yellow just to highlight it. ![enter image description here](https://i.stack.imgur.com/wZJAd.png) Finally I have a bottom panel containing all the commands/buttons available on the form. This is docked to the bottom. The problem is that I don't know how to set the center panel to automatically consume the available space when I collapse the top panel. That is, there's no a "Center" Docking style. If I dock the middle panel to the top, then when I collapse the top one I get: ![enter image description here](https://i.stack.imgur.com/JgFpI.png) If I anchor the middle panel to all the edges, I get: ![enter image description here](https://i.stack.imgur.com/gvJcn.png) If I dock the middle panel to fill the area, then it fills all the client area of the form, regardless the existence of the other panels. Yes I could create an event in the top control to notify who is interested about the size change but.. It's an ugly solution because it's not automatic: in every form I'll have to listen to the event and resize the middle panel accordingly. Is there an elegant solution to this problem?
.net docking controls
CC BY-SA 3.0
null
2011-05-27T12:50:33.480
2012-08-01T14:47:55.357
null
null
403,335
[ ".net", "winforms", "docking" ]
6,152,624
1
6,240,241
null
8
2,267
Feature explained below is available in Microsoft Dynamics AX (formerly known as Axapta), an ERP application. However, my question is related to Visual Studio 2010 and MVC 3 application. Please find my questions after this feature explanation. 1. Screenshot #1 shows a method written in X++ (language used in Microsoft Dynamics AX) using the MorphX editor. If I select a text within double quotes and right-click on them, I will get the options as shown in the screenshot. This is true if the text begins with an @ character and is a valid id found in the label file. 2. If I click on the option Lookup Properties/Methods, a tool tip will appear showing the actual text associated with the selected label id. Here in this case the label id is @SYS67 and its associated label text is Transaction date. Refer screenshot #2. 3. If I click on the option Lookup Label/Text, the label editor will appear with the label id pre-filtered along with other languages of choice at the bottom section of the editor. I can change the translation text in different languages using the editor. Refer screenshot #3. 4. In Dynamics AX, the label texts are stored in text files with label id and separated by a tab. Label ids always begin with @ symbol. Here in the example shown @SYS is the group prefix and the given number is a sequential index. Refer screenshot #4 that displays text found in an en-us label file. I understand that this is similar to Resource editor in Visual Studio where the translation text are stored in .resx files for each language. I would like to do something similar for an ASP.NET MVC 3 application using SQL Server database as the data store for the translation text. 1. What would I need to create in Visual Studio 2010 to achieve this functionality so I can invoke the translation editor in the IDE? Would that be a plugin or extension? 2. Would a similar resource provider be possible to do in an ASP.NET MVC application, where I can just specify the label id within double quotes and have provider model fetch the data from database during runtime? Is the syntax Resources.MyResource.GetLabel("@SYS67"); the only available option in ASP.NET? Sorry, if the resources syntax is wrong. 3. Are there any similar tool set (plugin/extension) already available for Visual Studio? 4. I believe that one of the terms to do translation in ASP.NET application is making use of Resource Provider Model. Are there any other terms? I am interested to know the term of what I am trying to achieve so I can search on the web to read more about it. Any inputs will be really appreciated. Thanks in advance. ![1](https://i.stack.imgur.com/bUEzu.png) ![2](https://i.stack.imgur.com/r6cks.png) ![3](https://i.stack.imgur.com/eC2EA.png) ![4](https://i.stack.imgur.com/9IaMD.png)
How should I go about creating a multilingual text translation editor in VS 2010?
CC BY-SA 3.0
0
2011-05-27T13:05:26.520
2011-06-05T01:13:24.470
2011-06-01T19:05:42.297
null
null
[ "c#", "visual-studio-2010", "asp.net-mvc-3", "globalization", "dynamics-ax-2009" ]
6,152,627
1
6,159,852
null
-1
5,424
Here is the my code for the Dialog With ListView and here i also maintain the state when the user click on list it background will be fill with green as you can see in my image below But problem that i have is below 1>I want to increase my row height .How can do? 2>and i also want to put image beside in all row is this possible? ![Here is my image in which i want to put image beside all list items](https://i.stack.imgur.com/c4JiC.png) Here is my code for all this stuff. ``` package com.android.listselector; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; import android.widget.TextView; import android.widget.AdapterView.OnItemClickListener; public class ListSelector extends Activity { private SelectedAdapter selectedAdapter; private ArrayList<String> list; private Context mContext = ListSelector.this; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.selected_example); String[] items = { "lorem", "ipsum", "dolor", "sit", "amet", "consectetuer", "adipiscing", "elit", "morbi", "vel", "ligula", "vitae", "arcu", "aliquet", "mollis", "etiam", "vel", "erat", "placerat", "ante", "porttitor", "sodales", "pellentesque", "augue", "purus" }; // populate the model - a simple a list list = new ArrayList<String>(); for (int i = 0; i < items.length; i++) { list.add(items[i]); } // create our SelectedAdapter selectedAdapter = new SelectedAdapter(this, 0, list); selectedAdapter.setNotifyOnChange(true); Dialog dialog = new Dialog(mContext); dialog.setContentView(R.layout.selected_example); dialog.setTitle("Custom Dialog"); ListView listview = (ListView) dialog.findViewById(R.id.listExample); listview.setAdapter(selectedAdapter); dialog.show(); listview.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View view, int position, long id) { // user clicked a list item, make it "selected" selectedAdapter.setSelectedPosition(position); } }); } // move up event handler // move down event handler // Move selected item "up" in the ViewList. private void moveUp() { int selectedPos = selectedAdapter.getSelectedPosition(); if (selectedPos > 0) { String str = list.remove(selectedPos); list.add(selectedPos - 1, str); // set selected position in the adapter selectedAdapter.setSelectedPosition(selectedPos - 1); } } // Move selected item "down" in the ViewList. private void moveDown() { int selectedPos = selectedAdapter.getSelectedPosition(); if (selectedPos < list.size() - 1) { String str = list.remove(selectedPos); list.add(selectedPos + 1, str); // set selected position in the adapter selectedAdapter.setSelectedPosition(selectedPos + 1); } } public class SelectedAdapter extends ArrayAdapter<String> { // used to keep selected position in ListView private int selectedPos = -1; // init value for not-selected public SelectedAdapter(Context context, int textViewResourceId, List<String> objects) { super(context, textViewResourceId, objects); } public void setSelectedPosition(int pos) { selectedPos = pos; // inform the view of this change notifyDataSetChanged(); } public int getSelectedPosition() { return selectedPos; } @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; // only inflate the view if it's null if (v == null) { LayoutInflater vi = (LayoutInflater) this.getContext() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.selected_row, null); } // get text view TextView label = (TextView) v.findViewById(R.id.txtExample); // change the row color based on selected state if (selectedPos == position) { label.setBackgroundColor(Color.GREEN); } else { label.setBackgroundColor(Color.WHITE); } label.setText(this.getItem(position).toString()); /* * // to use something other than .toString() MyClass myobj = * (MyClass)this.getItem(position); * label.setText(myobj.myReturnsString()); */ return (v); } } ``` } and here are the layout used in my code ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <ListView android:id="@+id/listExample" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#CCCCCC" android:choiceMode="singleChoice" /> <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" > <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:id="@+id/btnMoveUp" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:id="@+id/btnMoveDown" /> </LinearLayout> ``` here is other one ``` <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/txtExample" android:textSize="18sp" android:textColor="#000000" android:background="#FF0000"> </TextView> ```
Problem in Dialog With ListVIew
CC BY-SA 3.0
0
2011-05-27T13:05:47.517
2011-05-28T10:41:39.757
2011-05-28T10:41:39.757
596,725
596,725
[ "android", "listview", "dialog" ]
6,152,691
1
6,153,268
null
0
143
i have doubt about how can i iterate into a group of div, my problem it's that i have this selector ``` $('.imagePanel') ``` this selector give a group of div that belong's to that class. Also i know that with the method `length` i can know how divs are. the problem it's that i wanna know if i can storage in a array each div to know what's it's the div which it's clicking by the user in other words to this ``` $(".imagePanel").click(setElement); function setElement() { for (var i = 0; i < $('.imagePanel').length; i++) { //validate in the loop if it's in the div that click the user if (this.id == $("#"i).id) { if (!$(this).data('selected')) { $(this).css('border', '2px solid black').data('selected', true); } else { $(this).stop(true, true).data('selected', false); } } } } ``` To be more specific, in the group of div i need that only one have the style, if you click in one an then in other, the last div that you make the click it's the one with the style the other div's need's to clear the style ![enter image description here](https://i.stack.imgur.com/6zhTZ.png)
how iterate between divs jquery
CC BY-SA 3.0
null
2011-05-27T13:11:38.633
2014-01-13T22:40:57.003
2014-01-13T22:40:57.003
382,307
382,307
[ "jquery" ]
6,152,969
1
6,153,024
null
0
157
I am developing one application which contains one . OnTouch of a tab bar item I am loading a different nib. This nib contains a navigation bar + tableview. I am connecting the datasource and delegates of the table to the File's Owner and getting the following error. ![enter image description here](https://i.stack.imgur.com/HZxGl.png) When I am disconnecting the dataSource with the file's owner then it is responding but the Table Functions are not working. Any suggestions how can I make the TableView functions working ? EDIT : My .h file : ![enter image description here](https://i.stack.imgur.com/0jDtX.png) .m file : ![enter image description here](https://i.stack.imgur.com/Ltzrk.png) Xib Connections ![enter image description here](https://i.stack.imgur.com/Tvfr8.png) Still the same error. :(
UITabBar with TableView using Nib
CC BY-SA 3.0
0
2011-05-27T13:33:15.793
2011-05-30T07:59:42.487
2011-05-30T05:10:45.823
380,277
380,277
[ "iphone", "ios", "ipad", "uitableview" ]
6,153,111
1
6,153,148
null
0
152
I have just started working on WCF and I need to run a service on IIS. The problem is this; I have started my IIS server and almost every extra program that can be activated from the control panel, but when I open a new web site and choose WCF service as type and press enter I get the following image: ![ASP.NET 4.0 has not been registered on the Web server](https://i.stack.imgur.com/BdNIp.png)
WCF on IIS error on start ASP.NET
CC BY-SA 3.0
null
2011-05-27T13:46:35.943
2011-05-27T13:53:18.957
2011-05-27T13:53:18.957
298,053
567,245
[ "asp.net", "wcf", "iis" ]
6,153,453
1
6,153,501
null
26
1,004
After 15 years doing UI development, there's very little I look at and think, "how on earth do I do that." This is one of those times. A graphic designer has sold my clients on a very complex graph in the shape of a pentagon, made up of 5 individual triangles. The designer has specified that each triangle should be a specific color to match the branding, and each should "fill" based on the percentage of the process that each color represents. You almost have to see the image to understand: ![enter image description here](https://i.stack.imgur.com/65BOu.jpg) I've been racking my brain for a day trying to figure out how to accomplish this task. The client has specified that it must be compatible in all major browsers, which I'm going to tell him will be IE7+ for sanity's sake. That heavily limits CSS3 techniques, though I'd certainly entertain CSS3 methods for lack of other ideas. I'd prefer not to be up late nights beating on Action Script, so Flash is at the very bottom of my wish list. I've actually brainstormed how to do it using Sprites, but the idea of producing 250 or 500 triangles and the associated CSS ranks right up there with trading Chrome for IE6. The site is built on PHP/MySQL, and we heavily use Jquery. We have a full version of FusionCharts and HighCharts at our disposal as well if necessary. If there's a commercial product out there that can achieve this, I'm certainly willing to purchase it to make this work. What is the best method to achieve this difficult task?
What method would be best to build this complex graph
CC BY-SA 3.0
0
2011-05-27T14:10:04.187
2011-05-27T20:51:05.657
null
null
364,708
[ "php", "javascript", "css", "user-interface", "charts" ]
6,153,947
1
6,154,963
null
13
4,579
In Xcode 4's Build Settings, there are 2 places to enter a provisioning profile for each build type. The first is "Ad Hoc", "Debug" and "Release". Each of these has another place to put in a provisioning profile called "Any iOS SDK". Do I need fill in both? What's the difference between these? ![enter image description here](https://i.stack.imgur.com/hk1o4.jpg)
What's the difference between "Any iOS SDK" and "Debug" in Xcode 4 Code Signing?
CC BY-SA 3.0
0
2011-05-27T14:50:11.267
2013-07-30T15:17:53.457
2011-05-27T15:27:14.493
74,118
74,118
[ "iphone", "xcode", "build", "xcode4", "provisioning" ]
6,154,073
1
6,154,380
null
1
336
Suppose I draw the following plot composed of two polygons : ``` library(ggplot2) polys <- data.frame( id = rep(factor(c("1","2")),each=4), x = c(1,2,2,1,2,3,3,2), y = c(1,1,2,2,1,1,2,2), value = rep(c(3, 4), each=4) ) (p <- ggplot(polys, aes(x=x, y=y)) + geom_polygon(aes(fill=value, group=id))) ``` Which gives : ![enter image description here](https://i.stack.imgur.com/zImSC.png) Is there a way to determine the color given to each polygon from the `p` ggplot object ? I've played a bit with `str(p)` but didn't find anything useful for this. Thanks in advance for any hint !
Get a polygon color back from a ggplot2 object
CC BY-SA 3.0
0
2011-05-27T15:00:03.600
2011-05-27T15:24:31.160
2011-05-27T15:11:00.527
249,691
249,691
[ "r", "ggplot2" ]
6,154,092
1
6,154,253
null
3
5,442
I've been trying to pull a copy of my sqlite database from my android app for dev. My first attempt was to call: ``` ./adb shell cd data/data cd com.example.app cd databases ``` But then I get stuck here as I do not have permission to do a `pull` or even view the files in that dir! So I thought I'd try out the DDMS File Explorer which gives me this: ![File explorer](https://i.stack.imgur.com/9BPnn.png) But when I try and pull files from here (I would expect them to be in the data folder) it just pulls the directory and nothing else. How can I do this to pull a copy of the database my app is creating/using? I have tried this when the phone is on the SD card and on phone memory. I guess I could copy to SD card and then plug the SD card to pc rather than the phone and do it that way? Not sure if it would work and would be rather annoying to dev like that! Thanks
Reading database file from android device
CC BY-SA 3.0
0
2011-05-27T15:01:39.683
2011-05-27T15:18:44.720
null
null
143,979
[ "android", "sqlite", "terminal", "pull", "ddms" ]
6,154,211
1
6,154,255
null
1
3,966
Every time I open `Team Explorer` pane in Visual Studio 2010 SP1, it automatically log in with some certain remembered account which I don't want to. I'm looking for way to remove the remembered stuff. Please help! Nam. ![enter image description here](https://i.stack.imgur.com/CBEgJ.png)
Clear remembered passwords in `Team Explorer` pane in Visual Studio 2010 SP1
CC BY-SA 3.0
null
2011-05-27T15:10:52.910
2011-05-27T15:16:19.693
2011-05-27T15:16:19.693
248,616
248,616
[ "visual-studio-2010", "passwords", "remember-me", "team-explorer" ]
6,154,391
1
6,154,521
null
5
2,280
Working on a WPF application using the MVVM structure. My Window displays a menu and the current ViewModel. On one of the Menu's MenuItems, I want to list some Commands found in the current ViewModel. The commands listed in the Menu will change depending on the ViewModel. I got this to work just fine, but the style is messed up - the Command MenuItems are inside another menu box or something. I'll attach a screenshot. I wrapped the ViewModel's ICommand objects (RelayCommands, in this instance) in CommandViewModel, which expose the Command and the Display string I want on the menu. These CommandViewModels are in a list: `CurrentWorkspace.AdditionalOptionsCommands`. Here is the XAML for the Menu. Like I said, it works, it shows the right items and the commands are executed. The display is just incorrect - can anybody tell me why and how to fix it? See the screenshot. ``` <Menu> <MenuItem Header="_Additional Options..." ItemsSource="{Binding Path=CurrentWorkspace.AdditionalOptionsCommands}"> <MenuItem.ItemTemplate> <DataTemplate DataType="{x:Type vm:CommandViewModel}"> <MenuItem Header="{Binding Path=DisplayText}" Command="{Binding Path=Command}"/> </DataTemplate> </MenuItem.ItemTemplate> </MenuItem> <MenuItem Header="_Testing"> <MenuItem Header="This looks right" /> <MenuItem Header="This looks right" /> </MenuItem> </Menu> ``` Current Appearance: ![Current Appearance](https://i.stack.imgur.com/sMFTo.png) Desired Appearance: ![Desired Appearance](https://i.stack.imgur.com/wqs5U.png)
Dynamically binding to ViewModel commands on Window's MenuItem
CC BY-SA 3.0
0
2011-05-27T15:25:05.217
2011-05-27T16:10:07.633
2011-05-27T15:52:15.110
546,730
593,677
[ "wpf", "mvvm", "command", "datatemplate", "menuitem" ]
6,154,414
1
7,248,313
null
0
226
I am using nXhtml, flymake and the solarized color theme in emacs 23. Everything works fine but I am not particularly happy with the colors that are being used for displaying constants in php. Bright red and doesn't go well with the solarized dark theme and flymake errors. (see attached image)! ![enter image description here](https://i.stack.imgur.com/K0HZH.png) Although I have changed the flymake errline background to underline now but still the constants look ugly on their own. I have tried customizing Mumamo but dont quite understand what exactly to change. Kindly help. Thanks
changing Mumamo custom face settings in emacs
CC BY-SA 3.0
null
2011-05-27T15:26:42.287
2011-08-30T18:55:46.993
null
null
234,606
[ "emacs23" ]
6,154,714
1
6,154,826
null
1
1,491
I'm working on localizing my iPhone app, and my translators are doing an excellent job. The problem is that the accent marks and "non-standard" characters keep on getting ruined by Xcode. I'm not quite sure what the issue is, but it's just not working correctly. I've tried changing the encoding, and some are better than others, but in the end, I'm getting some pretty interesting results. I've tried the default, UTF-8, which my translator said he had sent me. (He also sent me ANSI BOM, but, I'm not sure what that would be equal to in Xcodese.) ![Default Xcode encoding](https://i.stack.imgur.com/I8DRJ.png) I tried to change the encoding... ![changing the character encoding](https://i.stack.imgur.com/EqOXi.png) but I got this instead: ![wrong character encoding](https://i.stack.imgur.com/aznlp.png) How would you suggest fixing this? I want my French, Spanish, etc.
Load localized .strings files with accent marks in Xcode 4?
CC BY-SA 3.0
null
2011-05-27T15:51:52.197
2011-09-29T15:55:27.637
2011-05-27T16:04:19.990
224,988
224,988
[ "iphone", "xcode", "localization", "character-encoding" ]
6,154,998
1
6,173,447
null
2
1,226
I created an `AlertDialog` which is longer than the actual screen size. Within my `AlertDialog` I have a `ListView` which I can scroll down to see all items. My problem is with my `Button`: it is half displayed in the bottom of the screen. Here is what it looks like : ![Button out of bound](https://i.stack.imgur.com/FwCKc.png) It seems that the button is not considered to be within the `View`. What should I do to keep the everything inbound? Thank you. Leo --- As you said I might do something weird, I took a closer look at my code before posting you it. I found that I didn't remove the `builder.setMessage()` that I used at the beginning. So after removing that line, it worked fine. Now the entire `ListView` is displayed!
Android - Button in Dialog out of screen
CC BY-SA 3.0
null
2011-05-27T16:14:41.270
2011-05-30T07:32:17.150
2011-05-30T07:30:56.433
320,358
320,358
[ "android", "listview", "dialog", "android-alertdialog" ]
6,155,221
1
6,160,024
null
2
253
I've got some code for stitching images together, but as you can see from my results ![enter image description here](https://i.stack.imgur.com/AkhKp.png) my colours and lighting are different between the two pictures. Is there some well known technique for doing this?
Technique for correcting colour/brightness/exposure levels between two images?
CC BY-SA 3.0
null
2011-05-27T16:35:24.560
2011-05-28T08:49:12.293
2011-05-28T08:49:12.293
21,234
2,086
[ "image-processing", "brightness" ]
6,155,458
1
null
null
2
1,496
I've written this code: interface: ``` public interface IService1 { [OperationContract] string Welcome(string fullName); [OperationContract] string Goodbye(); [OperationContract] string GetSessionID(); [OperationContract] CompositeType GetDataUsingDataContract(CompositeType composite); } ``` service: ``` [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerSession)] public class Service1 : IService1 { private string UserFullName { get; set; } public string GetSessionID() { var sessionId = OperationContext.Current.SessionId; return sessionId.ToString(); } public string Welcome(string fullName) { UserFullName = fullName ?? "Guest"; return string.Format("Welcome back, {0}!", UserFullName); } public string Goodbye() { return string.Format("Come back soon, {0}!", UserFullName ?? "Guest"); } public CompositeType GetDataUsingDataContract(CompositeType composite) { if (composite == null) { throw new ArgumentNullException("composite"); } if (composite.BoolValue) { composite.StringValue += "Suffix"; } return composite; } } ``` webconfig: ![enter image description here](https://i.stack.imgur.com/mO0OQ.jpg) Why is UserFullName always null?
Enable session with wsHttpBinding in wcf
CC BY-SA 3.0
null
2011-05-27T17:00:18.770
2013-06-12T13:15:47.647
2013-06-12T13:15:47.647
271,200
648,723
[ "c#", "wcf", "wshttpbinding" ]
6,155,588
1
6,156,706
null
6
2,059
I would like to add a parabola line denoting 95% confidence limits to this coin toss plot using R: ``` x <- sample(c(-1,1), 60000, replace = TRUE) plot.ts(cumsum(x), ylim=c(-250,250)) ``` Here is an example of what I'm looking for:![graph](https://i.stack.imgur.com/Tvvp5.png) @bill_080's answer is excellent. However I have already calculated 100,000 coin tosses: ``` str(100ktoss) num [1:100000] -1 1 1 1 -1 -1 1 -1 -1 -1 ... ``` and I really want to just add the 95% limit to that plot:![toss](https://i.stack.imgur.com/IdvW4.png) ``` plot.ts(cumsum(100ktoss)) ``` It took several hours to calculate my 100K coin tosses and when I try and replicate with @bill_080's code I run out of memory (for 100,000). Okay. Last problem. I have a plot of several rounds of cummulative hits, on a single graph with the start of each round clamped at zero (actually 1 or -1 depending on if it was a win or lose). ``` >str(1.ts) Time-Series [1:35] from 1 to 35: 1 2 1 2 3 4 5 4 5 6 ... >str(2.ts) Time-Series [1:150] from 36 to 185: -1 0 1 0 -1 -2 -1 0 1 2 ... ``` I would like to add the same 95% limit to each segment, like thus. : @bill_080 Many thanks. This is the the end product: ![cum](https://i.stack.imgur.com/7Do73.png)
Add 95% confidence limits to cumulative plot
CC BY-SA 3.0
0
2011-05-27T17:13:17.087
2011-06-01T08:17:09.830
2011-06-01T08:17:09.830
180,239
471,431
[ "r", "plot", "sum" ]
6,155,688
1
6,155,900
null
2
5,063
I am trying to have an UIImageView bordered like the following: ![enter image description here](https://i.stack.imgur.com/ULqIc.png) I have tried using: ``` [imageView.layer setBorderColor: [[UIColor whiteColor] CGColor]]; [imageView.layer setBorderWidth: 2.0]; ``` but then you can't see that gray border on the outside. It has that gray shadow effect on the outside. How do I do this?
border in UIImageView
CC BY-SA 3.0
0
2011-05-27T17:24:49.093
2012-04-26T20:28:02.180
null
null
95,265
[ "iphone", "uiimageview", "objective-c++" ]
6,155,705
1
6,156,057
null
1
1,085
Just a main widget with a tabs widget in it. The problem is - when I run it, only part of tabs are shown (as shown on attached picture). So, you need to resize, or scroll tabs to get for the last. ![enter image description here](https://i.stack.imgur.com/NMial.jpg) How can I set it so that window shows all tabs from the start? ``` import sys from PyQt4.QtGui import * class MainWindow(QWidget): def __init__(self, parent=None): QWidget.__init__(self, parent) # making tabs tabs = QTabWidget() tabs.addTab(QWidget(), '111111') tabs.addTab(QWidget(), '222222') tabs.addTab(QWidget(), '333333') tabs.addTab(QWidget(), '444444') # inserting in vbox vbox = QVBoxLayout(self) vbox.addWidget(tabs) app = QApplication(sys.argv) myapp = MainWindow() myapp.show() sys.exit(app.exec_()) ``` How can I get it resized for all tabs? And where the problem is - is it parent widget, or tabs, or vbox?
PyQt - resize parent widget to its child
CC BY-SA 3.0
null
2011-05-27T17:26:52.480
2011-05-27T18:02:55.377
null
null
159,982
[ "python", "pyqt" ]
6,156,116
1
null
null
8
1,866
The default style for the Android TabHost works fine for straight Android systems. However, on HTC Sense, they use dark text on a dark background, which is unreadable. ![TabHost from HTC Sense UI](https://i.stack.imgur.com/pkKel.png) What's the easiest way to have a TabHost that has visible text across all the various flavors of android skins? I would prefer to not have to make a completely custom look-and-feel if possible. My targetSDK is 10 and my minSDK is 7.
Looking for a universal TabHost style that will work on Android, HTC Sense, Samsung, etc. skins
CC BY-SA 3.0
0
2011-05-27T18:09:22.067
2011-09-03T15:03:12.803
2011-05-27T21:10:53.477
82,156
82,156
[ "android", "android-tabhost", "htcsense" ]
6,156,164
1
6,156,283
null
8
4,827
I am unclear on the structure of abstract syntax trees. To go "down (forward)" in the source of the program that the AST represents, do you go right on the very top node, or do you go down? For instance, would the example program ``` a = 1 b = 2 c = 3 d = 4 e = 5 ``` Result in an AST that looks like this: ![enter image description here](https://i.stack.imgur.com/8rfXx.png) or this: ![enter image description here](https://i.stack.imgur.com/Dm0uH.png) Where in the first one, going "right" on the `main node` will advance you through the program, but in the second one simply following the `next` pointer on each node will do the same. It seems like the second one would be more correct since you don't need something like a special node type with a potentially extremely long array of pointers for the very first node. Although, I can see the second one becoming more complicated than the first when you get into `for` loops and `if` branches and more complicated things.
Abstract syntax tree construction and traversal
CC BY-SA 3.0
0
2011-05-27T18:15:26.023
2011-05-27T18:44:17.277
null
null
726,361
[ "language-agnostic", "traversal", "abstract-syntax-tree", "construction" ]
6,156,291
1
8,465,552
null
11
2,893
I'm trying to implement a MediaPlayer on an Android app, but now I have two problems, which are not THE BIG SHOWSTOPPER but they are more then annoying and i have to fix it, just for me. I implemented a async MediaPlayer+Controller to a Activity, which works fine. My plan was to show also the percentage of the buffering on the MediaControl. This also works. But now, after I can see the percentage, I saw a strange behaviour: if I seek to a position which is already in the buffer, the buffering will start from this position again. Is this a known and/or normal behavior/problem/feature ? Here are more details: I'm using the 2.2 SDK This is how I implement it ``` public class Details extends Activity implements MediaPlayer.OnPreparedListener, MediaController.MediaPlayerControl { [...] private void setPosition(int currentPos ){ position = currentPos; } [...] public void onCreate(Bundle savedInstanceState) { [...] mediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() { @Override public void onBufferingUpdate(MediaPlayer mp, int progress) { setPosition(progress); } }); [...] public int getBufferPercentage() { return position; } [...] public void seekTo(int i) { General.mediaPlayer.seekTo(i); } } ``` ![enter image description here](https://i.stack.imgur.com/iYTA3.png) What I expected after clicking on the seekbar ![enter image description here](https://i.stack.imgur.com/yPVC5.png) What I got ![enter image description here](https://i.stack.imgur.com/jxHZ5.png) Is this normal?
Buffering problems with android.media.MediaPlayer
CC BY-SA 3.0
null
2011-05-27T18:31:07.347
2011-12-11T16:31:59.430
2011-06-01T13:36:02.400
1,288
773,480
[ "android", "asynchronous", "media-player" ]
6,156,315
1
6,156,431
null
5
2,481
I have a DataGridView filled with productinformation. The datagridview has totally 50 columns but the users don't always need all the columns, I want to help them to be able to choose which columns to show and which ones not to show. One solution that I would like to programm is that when the user right clicks on the columns they can choose from a list that pops up choose which columns to show and which ones not to shos. Just like the image below. ![enter image description here](https://i.stack.imgur.com/opnFl.png) How can I do that. I would really appreciate any help.
Adding DataGridView columns programmatically
CC BY-SA 3.0
null
2011-05-27T18:33:58.143
2011-05-27T19:15:11.963
2011-05-27T18:44:58.807
7,116
734,626
[ "c#", "winforms", "datagridview", "contextmenu" ]
6,156,356
1
6,161,061
null
1
1,917
I have a script that is searching a directory tree for music files, extracting the relevant information from the full path name of music files according to specific attributes (Genre, Artist, Track, Album), storing the formatted substrings as elements in an array, then sorting the elements of the array based on the option which was passed on the command line (e.g. sort by album). Everything seems to be working nicely, except the resulting output of the last iteration of the for loop doesn't seem to be getting stored as a new element in the array. After looking up information on Bash arrays, I found that there is no limitation on the array size. So I am left scratching my head as to why every output of every other iteration up until the last is getting stored in the array. If you look at the output below, you can see that the last element should be the track "Tundra". ``` (more output above ...) -->./Hip-Hop/OutKast/Stankonia/Toilet Tisha.aif<-- GENRE: Hip-Hop ARTIST: OutKast ALBUM: Stankonia TITLE: Toilet Tisha -->./Electronic/Squarepusher/Hard Normal Daddy/Cooper's World.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Hard Normal Daddy TITLE: Cooper's World -->./Electronic/Squarepusher/Hard Normal Daddy/Papalon.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Hard Normal Daddy TITLE: Papalon -->./Electronic/Squarepusher/Hard Normal Daddy/Vic Acid.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Hard Normal Daddy TITLE: Vic Acid -->./Electronic/Squarepusher/Go Plastic/Go! Spastic.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Go Plastic TITLE: Go! Spastic -->./Electronic/Squarepusher/Go Plastic/Greenways Trajectory.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Go Plastic TITLE: Greenways Trajectory -->./Electronic/Squarepusher/Go Plastic/My Red Hot Car.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Go Plastic TITLE: My Red Hot Car -->./Electronic/Squarepusher/Feed Me Weird Things/Kodack.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Feed Me Weird Things TITLE: Kodack -->./Electronic/Squarepusher/Feed Me Weird Things/North Circular.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Feed Me Weird Things TITLE: North Circular -->./Electronic/Squarepusher/Feed Me Weird Things/Tundra.aif<-- GENRE: Electronic ARTIST: Squarepusher ALBUM: Feed Me Weird Things TITLE: Tundra ``` As you can see, the last iteration in the DEBUG section should be the title "Tundra". However, when I display the contents for array "track_list" every track is printed in the desired format except for "Tundra" (look at attached .png file). Does anyone have any idea as to why this might be? Here is a portion of my script:![enter image description here](https://i.stack.imgur.com/v4g2n.png) ``` #more code above ... #create arrays declare -a track_list declare -a directory_contents #populate directory with files cd $directory directory_contents=$(find . -mindepth 1 -type f) cd .. IFS=$'\n' #store each file of directory in track_list for music_file in ${directory_contents[*]}; do if [ -n "$DEBUG" ] ; then echo "-->$music_file<--"; fi this_genre=$(echo $music_file | awk -F"/" '{print $2}') this_artist=$(echo $music_file | awk -F"/" '{print $3}') this_album=$(echo $music_file | awk -F"/" '{print $4}') this_title=$(echo $music_file | awk -F"/" '{print $5}' |\ awk -F".aif" '{print $1}' || awk -F".mp3" '{print $1}' ||\ awk -F".wav" '{print $1}' || awk -F".flac" '{print $1}' \ || awk -F".m4a" '{print $1}') function artist_list { track=$(printf "%-20s\t\t%-30s\t\t%-30s\t\t%-10s\n"\ "$this_artist" "$this_title" "$this_album" "$this_genre") track_list=("${track_list[*]}" $track) } if [[ $genre = "true" ]] ; then track=$(printf "%-10s\t\t%-20s\t\t%-30s\t\t%-30s\n"\ "$this_genre" "$this_artist" "$this_title" "$this_album") track_list=("${track_list[*]}" $track) elif [[ $artist = "true" ]] ; then artist_list elif [[ $album = "true" ]] ; then track=$(printf "%-30s\t\t%-20s\t\t%-30s\t\t%-10s\n"\ "$this_album" "$this_artist" "$this_title" "$this_genre") track_list=("${track_list[*]}" $track) elif [[ $title = "true" ]] ; then track=$(printf "%-30s\t\t%-20s\t\t%-30s\t\t%-10s\n"\ "$this_title" "$this_artist" "$this_album" "$this_genre") track_list=("${track_list[*]}" $track) else artist_list fi if [ -n "$DEBUG" ]; then echo "GENRE:" echo $this_genre echo "ARTIST:" echo $this_artist echo "ALBUM:" echo $this_album echo "TITLE:" echo $this_title echo "" fi done unset IFS if [[ $genre = "true" ]] ; then ./mulib g elif [[ $artist = "true" ]] ; then ./mulib a elif [[ $album = "true" ]] ; then ./mulib m elif [[ $title = "true" ]] ; then ./mulib t else ./mulib fi echo "$track_list" | sort echo "" ```
Bash: only last iteration of loop index not being stored as new element of array
CC BY-SA 3.0
0
2011-05-27T18:36:14.497
2011-05-28T10:26:31.510
2011-05-27T18:50:17.367
768,446
768,446
[ "arrays", "bash", "sorting", "string", "for-loop" ]
6,156,357
1
null
null
4
4,341
My is an Entity Framework entity. These are bound to a WPF TreeView. I want to order all the shown in the TreeView on the property. ## Code ![Entity Framework EDMX entity](https://i.stack.imgur.com/8yNLh.gif) Its property returns a collection of zero or more . ``` <TreeView Name="TreeViewWebpages"> <TreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type local:Webpage}" ItemsSource="{Binding Subordinates}"> <TextBlock Text="{Binding Path=Title}" /> </HierarchicalDataTemplate> </TreeView.Resources> </TreeView> ``` ``` TreeViewWebpages.ItemsSource = from Webpage root in db.Webpages.Include("Subordinates") where root.Dominant == null select root; ``` ## Result are unordered within the TreeView. ## Problem How do I change this to order all the shown in the TreeView on the property? --- # Update This ValueConverter seems to work (Thank you @KP Adrian and @IVerzin). Is there a better way? ``` ItemsSource="{Binding Path=Subordinates, Converter={local:SortConverter}}" ``` ``` [ValueConversion(typeof(EntityCollection<Webpage>), typeof(EntityCollection<Webpage>))] public class SortConverter : MarkupExtension, IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return ((EntityCollection<Webpage>)value).OrderBy(o => o.Sort); } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return null; } public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } ```
How do I sort a WPF TreeView using the HierarchicalDataTemplate for EntityCollection objects?
CC BY-SA 3.0
0
2011-05-27T18:36:15.460
2011-05-27T19:42:07.060
2011-05-27T19:42:07.060
83
83
[ "wpf", "entity-framework", "sorting", "treeview", "hierarchicaldatatemplate" ]
6,156,524
1
6,156,933
null
3
1,153
I have 2 different lists. Each of them holds x and y value pairs(they have both positive and negative values). How can I draw them on a 2D axis? I want to put `points` for every value and they will blue for first list and red for second list. My lists' type: ``` List<List<Double>> List<Double> inside of List<...> has 2 variables, first of it for x value and the second one is for y value. ``` However just I need to how to draw a two dimensional graphic at Java(desktop application) and put points wherever I want, improving code for my variables is less important. I want the `more and more simple` of that kind of graphic: ![enter image description here](https://i.stack.imgur.com/1ycRr.jpg) Something like: ![enter image description here](https://i.stack.imgur.com/u4Iq0.jpg)
How to draw a two dimensional graphic at Java?
CC BY-SA 3.0
0
2011-05-27T18:52:31.050
2011-05-27T20:59:10.927
2011-05-27T19:55:02.213
453,596
453,596
[ "java", "graphics", "2d", "java-2d" ]
6,156,663
1
6,156,677
null
0
2,000
![enter image description here](https://i.stack.imgur.com/IRsk3.png) How to build custom layout for controls like above pictures ? by Microsoft Expression Blend ? How ? Please Direct me to the right article or discuss what you have
WPF : Custom Controls
CC BY-SA 3.0
null
2011-05-27T19:09:52.287
2011-09-27T16:36:21.813
null
null
713,777
[ "wpf", "custom-controls" ]
6,156,674
1
6,156,898
null
11
14,181
Okay so i've been trying to do this for a couple of days and i am getting no where. So i have the following two images: The First is a RPM Gauge ![RPM Gauge](https://i.stack.imgur.com/T46nQ.png) The Second image is a full white graphic representing rpm gauge being full: ![Full Gauge](https://i.stack.imgur.com/4pk84.png) I want to do the following: 1. ask the user for an RPM input, if for example they enter 1.2 the gauge will fill up as follows: ![output](https://i.stack.imgur.com/U6yZS.png) I have the user input working i need help with the animation. Here is what i have tried: 1. I have tried using PorterDuff but it also clips the gauge in the background not just the white bar 2. I've tried splitting the image into little bitmaps and store them into arrays so that i can recall parts but this was slow and often crashed 3. I made some progress by applying the Gauge first to the canvas then saving the canvas: canvas.save(); then clipping a path on the white image then restoring the canvas. However i do not know how to clip in a circular fashion starting from bottom left to a 180 degress to the bottom right (CW). Is this the best way? I know there is probably an easier or more efficient way of doing this i just don't have a clue. Anyone with any good ideas? *Note all images are PNG's Thanks in advance!
Android Gauge Animation Question
CC BY-SA 3.0
0
2011-05-27T19:11:37.647
2011-05-27T23:07:12.267
2011-05-27T19:27:29.627
769,870
769,870
[ "android", "animation", "bitmap", "gauge", "porter-duff" ]
6,156,802
1
6,156,944
null
1
563
I'm using a Facade to access the methods and classes inside package, but and inside the package? I must access the methods of other class directly or by a facade or something similar? Example: `Package 1(Class Foo, Class Bar, Facade FooBar)` `Outside Class -> FooBar --> Foo method` but inside: `Foo --> Bar` or `Foo --> FooBar --> Bar`![Facade](https://i.stack.imgur.com/NuuVt.png)
Inside the package, I must use the Facade Pattern (or something similar)?
CC BY-SA 3.0
null
2011-05-27T19:26:24.620
2011-05-27T19:49:18.750
2011-05-27T19:49:18.750
734,984
734,984
[ "java", "package", "facade" ]
6,156,912
1
6,157,141
null
0
789
If I use this as my Controller Action...FAIL. ``` [HttpPost] public ActionResult Index(HttpPostedFileBase FileData) { var saveLocation = Path.Combine(Server.MapPath("\\"),"returns"); System.IO.Directory.CreateDirectory(saveLocation); FileData.SaveAs(Path.Combine(saveLocation, FileData.FileName)); ViewBag.Message = String.Format("File name: {0}, {1}Kb Uploaded Successfully.", FileData.FileName, (int)FileData.ContentLength / 1024); return View(); } ``` When I run my web app and try to upload a file I get a progress bar that works, gets to a random percentage, then returns a generic error. ![enter image description here](https://i.stack.imgur.com/iJkE7.png) # However!! This Controller Action works perfect. ``` [HttpPost] public String Upload(HttpPostedFileBase FileData) { var saveLocation = Path.Combine(Server.MapPath("\\"),"returns"); System.IO.Directory.CreateDirectory(saveLocation); FileData.SaveAs(Path.Combine(saveLocation,FileData.FileName)); ViewBag.Message = String.Format("File name: {0}, {1}Kb Uploaded Successfully.", FileData.FileName, (int)FileData.ContentLength / 1024); return ViewBag.Message; } ``` --- ``` <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> Home Page </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <h2><%: ViewBag.Message %></h2> <%= this.Profile.TaxPayerID %> <p>Please upload your return</p> <script type="text/javascript"> $(document).ready( function () { $("#fileuploader").fileUpload({ 'uploader': '/Scripts/uploader.swf', 'cancelImg': '/Images/cancel.png', 'buttonText': 'Select DR405', 'script': 'Home/Upload', 'folder': '/returns', 'fileDesc': 'Image Files', 'fileExt': '*.csv;*.txt;*.xls;*.xlsx', 'auto': true }); } ); </script> <div id="fileuploader"></div> </asp:Content> ``` Why can't I return ActionResult?
Can not return ActionResult from method when using Uploadify MVC3 application
CC BY-SA 3.0
null
2011-05-27T19:36:40.407
2013-09-23T10:47:56.470
2020-06-20T09:12:55.060
-1
564,083
[ "jquery", "debugging", "asp.net-mvc-3", "uploadify" ]
6,156,973
1
6,157,202
null
-1
294
[20 screencasts](http://vimeo.com/12636777) But, Most of them are very basic. They are good to know but not sufficient to know. There is not a single application in examples which stores data on remote server, authenticate from remove server or anything like that. I am looking for some blogging tutorials or anything like that. Isn't there anything. I checked alot of questions on stackoveflow, Nothing. Nothing on sencha forum. Not even anything about MVC structure apart from a video. All I have is there API docs with tons of functions. What I am supposed to do that. API docs are always for reference not digging each and every things from scratch. I am trying from past 3 days and this is what i have right now in my hand.I am stuck. Something like rails guide will be awesome. Is there any book? Apart from that Manning's which is in alpha phase.. ![enter image description here](https://i.stack.imgur.com/3tqgn.png)
Sample blogging application (or any other same kind of application) tutorials using sencha touch, getting started kit
CC BY-SA 3.0
0
2011-05-27T19:45:06.317
2013-08-12T17:13:10.280
2013-08-12T17:13:10.280
null
179,855
[ "extjs", "sencha-touch" ]
6,157,248
1
6,157,265
null
1
102
I don't know whats combination of keys I performed, but now my code looks like this, with a bunch of dots! ![Code with Dots!](https://i.stack.imgur.com/Kd7NT.png) How do I disable this? Been looking for some time and can't find it.
How do I disable this code view setting in VS2010?
CC BY-SA 3.0
null
2011-05-27T20:12:48.407
2011-05-27T20:27:26.293
null
null
570,191
[ "c#", "visual-studio-2010" ]
6,157,313
1
6,179,806
null
0
2,326
I have a strange issue in my Web Page, specifically with a text area element that obtains the clipboard from the user. The user perform a CTRL+V; and I created a event to get the data with the event KeyUp. ...this works fine... But, when I try to divide by each "row" of this textarea; start the problems... The input can be like this example: ![excel](https://i.stack.imgur.com/Ge9W3.png) The data reads something like that: Row1[0][HT]Row1[1][LF]"Row2[0] Comment line 1[LF]Row2[0] Comment line 2"[HT]Row2[1] Where: [HT] means {Tab} [LF] means {New line} I use: ``` var myData = document.getElementById("TextAreaElement").value; var vArray = myData.split(/\n/); ``` But this array return me 3 lines... ![debug](https://i.stack.imgur.com/CNcMR.png) --- Somebody knows any solution or alternative way?
Javascript text divide by tabs problem (multiline-cells)
CC BY-SA 3.0
null
2011-05-27T20:20:55.283
2011-05-30T18:53:59.767
2011-05-27T20:25:11.003
139,010
582,614
[ "javascript", "regex", "arrays", "split", "clipboard" ]
6,157,376
1
6,168,412
null
5
5,540
Can anyone explain to me where the margins you see in this screen shot below are coming from? I want the red, green and blue rectangles to all fit next to each other in both screen layouts, landscape and portrait. Instead I see inexplicable margins between the views. ``` // Setup Left Bar Button item UIBlankToolbar* tools = [[[UIBlankToolbar alloc] initWithFrame:CGRectMake(0, 0, 115, 44)] autorelease]; tools.autoresizingMask = UIViewAutoresizingFlexibleWidth; [tools setBackgroundColor:[UIColor greenColor]]; self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:tools] autorelease]; ... // Setup Right Bar Button Item UIBlankToolbar* tools = [[[UIBlankToolbar alloc] initWithFrame:CGRectMake(0, 0, 100, 44)] autorelease]; [tools setAutoresizingMask:UIViewAutoresizingFlexibleWidth]; [tools setBackgroundColor:[UIColor redColor]]; self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:tools] autorelease]; ... // Setup Title View self.navigationItem.titleView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 50, 44)] autorelease]; self.navigationItem.titleView.autoresizingMask = UIViewAutoresizingFlexibleWidth; [self.navigationItem.titleView setBackgroundColor:[UIColor blueColor]]; ``` What I see with this code: ![enter image description here](https://i.stack.imgur.com/F8nFh.png) ![enter image description here](https://i.stack.imgur.com/vGTTM.png) What really perplexes me is that the margins between views become BIGGER as the space available becomes smaller? I don't understand why they are there, nor why they behave counter to what I expect from margins. Thanks!
Explain this margin logic for leftBarButtonItem, rightBarButtonItem, titleView
CC BY-SA 3.0
0
2011-05-27T20:28:58.380
2011-05-29T14:55:04.983
null
null
61,072
[ "iphone", "layout", "uibarbuttonitem", "uibarbuttonitemstyle" ]
6,157,509
1
6,193,078
null
3
559
I am trying to debug an index problem I am having on my CUDA machine ``` Cuda Machine Info: ``` > {1->{Name->Tesla C2050,Clock Rate->1147000,Compute Capabilities->2.,GPU Overlap->1,Maximum Block Dimensions->{1024,1024,64},Maximum Grid Dimensions->{65535,65535,65535},Maximum Threads Per Block->1024,Maximum Shared Memory Per Block->49152,Total Constant Memory->65536,Warp Size->32,Maximum Pitch->2147483647,Maximum Registers Per Block->32768,Texture Alignment->512,Multiprocessor Count->14,Core Count->448,Execution Timeout->0,Integrated->False,Can Map Host Memory->True,Compute Mode->Default,Texture1D Width->65536,Texture2D Width->65536,Texture2D Height->65535,Texture3D Width->2048,Texture3D Height->2048,Texture3D Depth->2048,Texture2D Array Width->16384,Texture2D Array Height->16384,Texture2D Array Slices->2048,Surface Alignment->512,Concurrent Kernels->True,ECC Enabled->True,Total Memory->2817982462}, All this code does is set the values of a 3D array equal to the index that CUDA is using: ``` __global __ void cudaMatExp( float *matrix1, float *matrixStore, int lengthx, int lengthy, int lengthz){ long UniqueBlockIndex = blockIdx.y * gridDim.x + blockIdx.x; long index = UniqueBlockIndex * blockDim.z * blockDim.y * blockDim.x + threadIdx.z * blockDim.y * blockDim.x + threadIdx.y * blockDim.x + threadIdx.x; if (index < lengthx*lengthy*lengthz) { matrixStore[index] = index; } } ``` For some reason, once the dimension of my 3D array becomes too large, the indexing stops. I have tried different block dimensions (blockDim.x by blockDim.y by blockDim.z): 8x8x8 only gives correct indexing up to array dimension 12x12x12 9x9x9 only gives correct indexing up to array dimension 14x14x14 10x10x10 only gives correct indexing up to array dimension 15x15x15 For dimensions larger than these all of the different block sizes eventually start to increase again, but they never reach a value of dim^3-1 (which is the maximum index that the cuda thread should reach) Here are some plots that illustrate this behavior: For example: This is plotting on the x axis the dimension of the 3D array (which is xx), and on the y axis the maximum index number that is processed during the cuda execution. This particular plot is for block dimensions of 10x10x10. ![enter image description here](https://i.stack.imgur.com/Q0zyc.png) Here is the (Mathematica) code to generate that plot, but when I ran this one, I used block dimensions of 1024x1x1: ``` CUDAExp = CUDAFunctionLoad[codeexp, "cudaMatExp", {{"Float", _,"Input"}, {"Float", _,"Output"}, _Integer, _Integer, _Integer}, {1024, 1, 1}]; (*These last three numbers are the block dimensions*) max = 100; (* the maximum dimension of the 3D array *) hold = Table[1, {i, 1, max}]; compare = Table[i^3, {i, 1, max}]; Do[ dim = ii; AA = CUDAMemoryLoad[ConstantArray[1.0, {dim, dim, dim}], Real, "TargetPrecision" -> "Single"]; BB = CUDAMemoryLoad[ConstantArray[1.0, {dim, dim, dim}], Real, "TargetPrecision" -> "Single"]; hold[[ii]] = Max[Flatten[ CUDAMemoryGet[CUDAExp[AA, BB, dim, dim, dim][[1]]]]]; , {ii, 1, max}] ListLinePlot[{compare, Flatten[hold]}, PlotRange -> All] ``` This is the same plot, but now plotting x^3 to compare to where it should be. Notice that it diverges after the dimension of the array is >32 ![enter image description here](https://i.stack.imgur.com/N7fBZ.png) I test the dimensions of the 3D array and look at how far the indexing goes and compare it with dim^3-1. E.g. for dim=32, the cuda max index is 32767 (which is 32^3 -1), but for dim=33 the cuda output is 33791 when it should be 35936 (33^3 -1). Notice that 33791-32767 = 1024 = blockDim.x Question: Is there a way to correctly index an array with dimensions larger than the block dimensions in Mathematica? Now, I know that some people use __mul24(threadIdx.y,blockDim.x) in their index equation to prevent errors in bit multiplication, but it doesn't seem to help in my case. Also, I have seen someone mention that you should compile your code with -arch=sm_11 because by default it's compiled for compute capability 1.0. I don't know if this is the case in Mathematica though. I would assume that CUDAFunctionLoad[] knows to compile with 2.0 capability. Any one know? Any suggestions would be extremely helpful!
CUDAFunctionLoad in Mathematica - Indexing problem
CC BY-SA 3.0
null
2011-05-27T20:43:58.527
2016-07-10T23:33:45.460
2011-05-28T13:13:13.523
618,728
773,697
[ "indexing", "cuda", "wolfram-mathematica", "mathematica-8" ]
6,157,596
1
6,157,607
null
1
1,036
``` <input type="submit" value="Go!"/> ``` gives a button like this: ![enter image description here](https://i.stack.imgur.com/cXJ2O.png) I want the button to span the entire width of the page. How can I do that?
How to create a button that spans the entire width of the page in HTML?
CC BY-SA 3.0
null
2011-05-27T20:54:42.753
2015-02-05T21:58:14.553
null
null
113,124
[ "html", "button" ]
6,157,791
1
6,157,997
null
17
38,383
I have two datasets listing the average voltage outputs of two assemblies of neural networks at times t, that look something like this: ``` A = [-80.0, -80.0, -80.0, -80.0, -80.0, -80.0, -79.58, -79.55, -79.08, -78.95, -78.77, -78.45,-77.75, -77.18, -77.08, -77.18, -77.16, -76.6, -76.34, -76.35] B = [-80.0, -80.0, -80.0, -80.0, -80.0, -80.0, -78.74, -78.65, -78.08, -77.75, -77.31, -76.55, -75.55, -75.18, -75.34, -75.32, -75.43, -74.94, -74.7, -74.68] ``` When two neural assemblies are "in phase" to a reasonable extent, that means that they are interrelated. What I want to do is calculate the phase difference between A and B, preferably over the whole time of the simulation. Since two assemblies are unlikely to be totally in phase, I want to compare that phase difference to a certain threshold. These are inharmonic oscillators and I don't know their functions, only these values, so I have no idea how to determine the phase or the respective phase difference. I am doing this project in Python, using numpy and scipy (the two assemblies are numpy arrays). Any suggestions would be greatly appreciated! [Example datafile for assembly 1](http://server1.brainstormit.nl/vb-sync-XReport.txt) [Example datafile for assembly 2](http://server1.brainstormit.nl/vb-sync-YReport.txt) Here is a plot of what the two datasets look like: ![Plot of two neural assemblies overlapping](https://i.stack.imgur.com/l3fbP.png) ![Plot of two neural assemblies seperate](https://i.stack.imgur.com/mrjIh.png)
Find phase difference between two (inharmonic) waves
CC BY-SA 3.0
0
2011-05-27T21:17:33.407
2011-06-08T02:49:55.503
2011-05-29T23:05:55.857
773,761
773,761
[ "python", "numpy", "neural-network", "physics", "scipy" ]
6,157,945
1
6,165,545
null
0
1,488
I am trying to connect Coldfusion 9 to a MYSQL Database that was installed by MAMP () with the following parameters: MyDatasource MyDatabase localhost 8889 root root In the coldfusion Administrator I can successfully connect to this database. However, when I try to display a .cfm page that has a connection to that datasource, this error is thrown: ``` Error Executing Database Query. Could not create connection to database server. Attempted reconnect 3 times. Giving up. ``` Any ideas?? Any help would be immensely appreciated!! this is what MAMP wants me to use and it did create a successful connection in CF Admin. ![enter image description here](https://i.stack.imgur.com/H27l9.png)
Trying to connect Coldfusion 9 to a MYSQL Datasource that was installed via MAMP (free) is throwing an error
CC BY-SA 3.0
null
2011-05-27T21:35:55.710
2011-05-29T02:07:54.943
2011-05-28T16:33:46.523
630,996
630,996
[ "mysql", "coldfusion", "mamp", "coldfusion-9" ]
6,157,966
1
6,158,770
null
3
119
I am creating a small form where the user 1. Enters some text in an input box 2. Chooses from a bunch of options regarding the actions that need to be taken with the data 3. Clicks a submit button [Disconnect](https://chrome.google.com/webstore/detail/jeoacafpbcihiomhlakheieifhpjdfeo) does something similar in a better way: ![enter image description here](https://i.stack.imgur.com/6MCR6.png) you can click on any of the five divisions here. This is wonderful because it makes it easier for users to perform the same task and simplifies `choose and click` to `click`. What technology is used to display such a menu?
What technology is used to display these elegant clickable options?
CC BY-SA 3.0
null
2011-05-27T21:38:23.810
2011-05-28T07:22:49.087
null
null
113,124
[ "html", "css", "google-chrome" ]
6,158,313
1
null
null
0
1,474
I am using JChart2D for my Java desktop application and followed that example: [http://jchart2d.sourceforge.net/usage.shtml](http://jchart2d.sourceforge.net/usage.shtml) That example makes connections between points however I need individual points. I mean I get something like: ![enter image description here](https://i.stack.imgur.com/sBezN.jpg) But I want something like: ![enter image description here](https://i.stack.imgur.com/kpwCA.jpg) Graphic examples are different just I wanted to show difference between individual points and line between points.
How to make individual points at JChart2D?
CC BY-SA 3.0
null
2011-05-27T22:35:25.817
2015-03-24T11:55:07.990
null
null
453,596
[ "java", "java-2d", "graphic" ]
6,158,578
1
null
null
6
4,629
I am trying to add a dependent project in XCode 4. The link to the project is this: [https://github.com/jverkoey/ObjQREncoder](https://github.com/jverkoey/ObjQREncoder) The author described a way to add this but it's for XCode 3. I am trying to add it to XCode 4. I dragged the project inmy frameworks, then went to Targets and QREncoder in Target Dependencies. Then I added libQREncoder.a in "Link Binary with Libraries". Then I added this for header search path "src/Classes". When I include "QREncoder/QREncoder.h", it gives me this error: `file://somePath/FINALQRAppDelegate.m: error: Lexical or Preprocessor Issue: 'QREncoder/QREncoder.h' file not found` This is how my project is set up: ![enter image description here](https://i.stack.imgur.com/jFCSo.png) FINALQR is my project to which I am trying to add the dependency and the dependency project is in src. Thanks. The problem is it doesn't recognize the QREncoder class.
Adding dependent project in XCode 4
CC BY-SA 3.0
null
2011-05-27T23:22:09.080
2011-11-10T21:43:20.247
2011-05-27T23:55:02.323
635,064
635,064
[ "objective-c", "cocoa-touch", "ios", "xcode4", "dependencies" ]
6,158,598
1
null
null
23
23,263
I'm a complete and utter noob, so be gentle! I'm using git gui, and never touching the command line interface. I'm a noob, and some of the people i'm working with are even noob-ey-er... Current state: - I have a repository on git hub which contains a handful of scripts (henceforth 'code') - I'm using git gui (mysysgit) - I have made commits and push's and have a vague understanding of CVS - I don't believe we will need to branch I feel that I should be able to use tags to create versions of the code. I also 'feel' like there should be an equivelant structure in the filesystem where the snapshots (or links to...) are stored. eg: .\EdsLittleThing\v1.0 .\EdsLittleThing\v1.1 .\EdsLittleThing\v1.2 etc However, I can not work out how to create a tag within git gui. The only tag reference i can find seems to be tied to merging branches, and that doesn't help me. I have scoured the web, and can not find a single reference on how to create and manage versions using Git Gui. I want to be able to create a slightly more simple version of this: ![branch and tag structure](https://i.stack.imgur.com/O0shC.png) Final note: Whilst I'm led to believe that my answer is found in 'tags', I dont really care if its really answered by using revisions / branches / whatever.
How to use tags for versioning in git gui
CC BY-SA 3.0
0
2011-05-27T23:26:17.030
2020-05-12T21:11:50.673
2011-05-27T23:32:08.730
377,270
773,858
[ "git", "user-interface", "tags", "version", "revision" ]