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,274,074
1
null
null
3
278
So I have a simple small PNG file with a transparency on it. I have it setup as a ImageButton and it will not display the image at all. I'll swap it with a different one with the exact same size and dimensions (different name) and it displays normally. I then tried changing the name of this PNG, no luck. I resaved the PNG as a PNG, still no luck. I tried using the PNG in a ImageView in a different activity. For whatever reason, Eclipse will display it fine but not in the emulator or handset. Just some quick info: The pngs are in Photoshop, I use the Save for Web and Devices to save the PNG-24 with transparency on both images. Question is, why? Here are the files: add.png does not work, but the search.png does. ![enter image description here](https://i.stack.imgur.com/eGU3Z.png) ![enter image description here](https://i.stack.imgur.com/P88AC.png)
What the heck is wrong with this png file?
CC BY-SA 3.0
0
2011-06-08T04:01:43.430
2011-06-28T07:30:49.220
null
null
700,414
[ "android", "png", "imagebutton" ]
6,274,121
1
null
null
0
1,356
I have implemented Spell checker functionality in my .NET application as per given link below: [Speller page](http://spellerpages.sourceforge.net/) I copied the speller page in my application but i am getting error: > The HTTP verb POST used to access path '/WebAppUI/speller/speller/server-scripts/spellchecker.php' is not allowed Does anyone know how to resolve it. Thanks. ![enter image description here](https://i.stack.imgur.com/Lrlvk.png)
How to resolve error[The HTTP verb POST used to access path is not allowed] while implementing Speller page in .net application
CC BY-SA 3.0
null
2011-06-08T04:09:58.237
2013-07-31T14:37:56.387
2013-07-31T14:37:56.387
430,828
503,125
[ "php", "asp.net", "spell-checking" ]
6,274,285
1
6,274,389
null
17
19,909
I just reinstalled IIS7.5 after a lot of ugly messing around. I admittedly had no idea what I was doing. I finally was able to renamed my windows\system32\inetsrv folder so that when I reinstalled IIS, I would get the default settings. I took a wild guess at running this and it got my site running: aspnet_regiis.exe -i Now I just can't Publish from Visual studio to any site under wwwroot. for example, I get the error: Unable to create the Web site location 'c:\inetpub\wwwroot\WebApplication5'. Access is denied. My work around is to Publish elsewhere and then copy the code there--and that works. Goodness knows what else I broke in the process, but my web site appears to work except that I can't use the Publish functionality in VS2010 because of the Access Denied error. Do I have to grant some ASPNET built in user rights to this folder? Here's a snapshot of the rights on my wwwroot folder: ![enter image description here](https://i.stack.imgur.com/O6qOb.png)
visual studio 2010 unable to Publish to local web site. access denied
CC BY-SA 3.0
0
2011-06-08T04:42:03.233
2019-01-08T11:36:14.180
2011-06-10T15:56:30.497
4,228
109,676
[ "visual-studio-2010", "iis-7.5" ]
6,274,297
1
6,274,552
null
2
616
I have an ASP.NET MVC 3 app. It is working fine in both IE8 & FF when we run VS2010. I have deployed this code in IIS 7.5. Now, the deployed app is working fine in FF, but not in IE8. I am getting error: See following screen-shot: ![enter image description here](https://i.stack.imgur.com/fpuvG.jpg) I tested the published code in IIS6, It's working fine in both FF and IE8. Any help is appreciated.
ASP.NET MVC 3.0 deployed code not working in IE8 in IIS 7.5
CC BY-SA 3.0
null
2011-06-08T04:45:06.537
2011-06-08T05:37:20.710
null
null
194,345
[ "asp.net", "asp.net-mvc-3", "internet-explorer-8", "cross-browser", "iis-7.5" ]
6,274,440
1
6,282,773
null
6
18,419
How do you position a text outside a plot in mathematica? A quick google search will lead you to [http://reference.wolfram.com/mathematica/howto/AddTextOutsideThePlotArea.html](http://reference.wolfram.com/mathematica/howto/AddTextOutsideThePlotArea.html) This is not enough since you want to achieve this with code. A simple example of placing text in mathematica is the following: ``` Show[ Plot[x^3, {x, -1, 1}, Frame -> True, ImageSize -> Medium, FrameLabel -> {"x", "y"}, PlotRange -> {{-1, 1}, {-1, 1}} ], Graphics[ Text[Style["A", Bold, 14, Red], {.5, .5}]] ] ``` This places the letter A at the point (.5, .5) relative to the plot. Is there a way of placing text relative to the size of image? Everything is done in the plot coordinates as far as I know. The temporary solution I have is to set the option `PlotRangeClipping` to `False` and set the text by giving the right coordinates. ``` Show[ Plot[ x^3, {x, -1, 1}, Frame -> True, ImageSize -> Medium, FrameLabel -> {"x", "y"}, PlotRange -> {{-1, 1}, {-1, 1}} ], Graphics[ Text[ Style["A", Bold, 14, Red], {-1.2, 1} ] ], PlotRangeClipping -> False ] ``` ![currentsolution](https://i.stack.imgur.com/twaeL.png) A disadvantage of this method is that if we change the range of the plot then we need to recalculate the coordinates of the text in order to keep it where we want it (relative to the whole image). ## EDIT: Try to position the `Text` A outside the plot. ``` Framed[ Show[ Graphics[ {Orange, Disk[{0, 0}, 3.5]}, Frame -> True, PlotRange -> {{-3, 3}, {-3, 3}}, PlotRangeClipping -> True, FrameLabel -> {"x", "y"} ], Graphics[ Text[ Style["A", Bold, 14], ImageScaled[{.1, .95}] ] ] ] ] ``` ![enter image description here](https://i.stack.imgur.com/aXq0a.png) ## EDIT: In order to find another solution to this problem I started another post which gave me ideas to overcome a problem that belisarius solution had: Exporting the final figure to pdf was a rasterized version of the figure. Check my other post [here](https://stackoverflow.com/questions/6303500/mathematica-matlab-like-figure-plot) for the solution. ## FINAL EDIT? Since the image links are gone and the link in the previous edit has been modified I decided to update the images and include a modified solution of Simon's [answer](https://mathematica.stackexchange.com/a/2271/877). The idea is to create a mask and include the mask before drawing the labels. In this way we are creating our own `plotRangeClipping`. ``` mask2D = Graphics[{Gray, Polygon[{ ImageScaled[{-0.5, -0.5}], ImageScaled[{-0.5, 1.5}], ImageScaled[{1.5, 1.5}], ImageScaled[{1.5, -0.5}], ImageScaled[{-0.5, -0.5}], Scaled[{0, 0}], Scaled[{1, 0}], Scaled[{1, 1}], Scaled[{0, 1}], Scaled[{0, 0}], ImageScaled[{-0.5, -0.5}] }] }]; ``` In some cases using `ImageScaled` of `{1,1}` is not enough to clip the main image. For this reason I have given more coverage by using `1.5` and `-0.5`. Now we can draw the image with label as follows: ``` Framed@Show[ Graphics[ { Orange, Disk[{0, 0}, 3.5] }, Frame -> True, PlotRange -> {{-3, 3}, {-3, 3}}, FrameLabel -> {"x", "y"} ], mask2D, Graphics[ Text[ Style["A", Bold, 14], ImageScaled[{0, 1}], {-1, 1} ] ], Background -> Red ] ``` Here is the desired image: ![enter image description here](https://i.stack.imgur.com/l1djq.png) Notice that I have changed the background of the image to red. This can easily be modified by changing the `Background` property and for the mask simply change `Gray` to whatever color you prefer (White) for instance.
Mathematica: Labels and absolute positioning
CC BY-SA 3.0
0
2011-06-08T05:08:33.647
2012-08-06T16:17:41.763
2020-06-20T09:12:55.060
-1
788,553
[ "wolfram-mathematica" ]
6,274,544
1
6,274,844
null
1
2,984
![enter image description here](https://i.stack.imgur.com/x0hJ0.png) hi buddy! I want to create multiple treeviews in single treeview as it is shown in above figure. i can create only one treeview but cannot create another one with no links. can anyone wake me up from this nightmare???
How to create multiple tree view in single treeview in winforms?
CC BY-SA 3.0
null
2011-06-08T05:25:46.560
2011-06-08T06:11:24.227
null
null
669,187
[ "c#", "treeview" ]
6,274,583
1
6,274,924
null
0
1,561
i have a srollview with textfields and labels as its subview, for two textfields i want to show UIpickerview. For example: when user touches textfield11 i want to show a picker that slides up from the bottom of the screen, at this point i want to change height of my scrollview too, but it is not working. ``` CGRect scrollframe = scrollView.frame; NSLog(@"scrollframe.height=%f, pick height=%f",scrollframe.size.height, pick.frame.size.height); scrollframe.size.height -= pick.frame.size.height; [UIView beginAnimations:@"start" context:NULL]; [UIView setAnimationDuration:0.2]; [UIView setAnimationBeginsFromCurrentState:YES]; [scrollView setFrame:scrollframe]; NSLog(@"scroll height = %f",scrollframe.size.height); NSLog(@"scrollview height = %f", scrollView.frame.size.height); [pick setFrame:CGRectOffset([pick frame], 0, -220)]; [UIView commitAnimations]; ``` This is console log.. 2011-06-08 10:43:31.316 AESDirect[281:207] scrollframe.height=416.000000, pick height=216.000000 2011-06-08 10:43:31.316 AESDirect[281:207] scroll height = 200.000000 2011-06-08 10:43:31.317 AESDirect[281:207] scrollview height = 200.000000 ![before scrolling](https://i.stack.imgur.com/YfthT.png) ![after scrolling](https://i.stack.imgur.com/8unLo.png)
UIscrollview resize problem
CC BY-SA 3.0
null
2011-06-08T05:31:03.883
2011-06-08T07:07:34.380
null
null
712,903
[ "iphone", "objective-c", "ios", "ios4", "uiscrollview" ]
6,274,597
1
6,275,966
null
1
1,495
i need to create tab in my application i've used the following working good... but i need it to display as tabs look into the iphone how it can possible it using android 1.6? thanks in advance.. ``` <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+id/tab" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+id/tab1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"/> <LinearLayout android:id="@+id/tab2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"/> ``` ![here is my tab looks like..](https://i.stack.imgur.com/2i8C0.png) but,i need to remove the space between them i want it look like [this](http://dl.dropbox.com/u/2624328/Android%20Pro/2010/August/Tabs/Tabs6.jpg) Query 2 if i am using intent to switch between 2 activities.. the 2nd activity need oncreate method is it it compulsory?
android tabwidget
CC BY-SA 3.0
null
2011-06-08T05:33:47.667
2015-06-19T21:44:06.633
2015-06-19T21:44:06.633
1,206,052
674,530
[ "android", "tabwidget" ]
6,274,968
1
6,348,951
null
2
1,495
I have a Canvas that i draw text on. (this is quite advanced i think hope you can follow me) See attached image below. The functionality is that I can tap on the screen to change the textsize. Tap left screen = smaller Font. Tap right Screen = bigger Font. I can then also move the text on the screen. When textsize is ok and i have moved the text where i want it, Then I want to save it back to the original Bitmap. I use `options.inSampleSize = 4;` to initially load the `Bitmap` The ImageView that have the Bitmap is of course smaller then the original Image. Some kind of calculation is needed. This tends to be quite difficult to do. I have the `options.inSampleSize = 4` Bitmaps Ratio. It's 0.59, 0.69 something depending on Landscape or portrait. Im playing around with that to somehow change the new Bitmap`setTextSize` to look the same as the ImageView smaller Bitmap. What could i do here? I have a feeling that since one never know what size an image have. I have to somehow scale/constrain the Loaded Bitmap Ratio to a fixed Ratio. Then i need to using percentage or something to transfer the text location to the bigger image. I can kind of do that when it comes to initial (red small ball on picture) location. Hence, the starting point of the text. But i dont know how long the text is so im stuck so so speak and asking for advice One way i tried was to divide `paint.getTextSize()` with the Ratio something like 0.59. That looked like a solution at first. But the image ratio is not fixed and the Font size is not fixed something else is needed. Here are two pictures showing the problem. On phone Bitmap: ![enter image description here](https://i.stack.imgur.com/XY22J.jpg) The saved new Bitmap: ![enter image description here](https://i.stack.imgur.com/yDqsB.jpg)
android (Advanced)Saving a Bitmap Canvas with DrawText but textsize calculation needed
CC BY-SA 3.0
0
2011-06-08T06:28:10.947
2011-06-14T19:29:10.850
2011-06-08T06:36:59.633
538,837
538,837
[ "android", "canvas", "drawtext" ]
6,275,206
1
6,319,830
null
6
3,381
I'm suppressing the low DC frequencies of several (unequal) blocks in an image in the Dicrete Cosine Transform (DCT) domain. After that doing an inverse DCT to get back the image with only the high frequency portions remaining. ``` cvConvertScale( img , img_32 ); //8bit to 32bit conversion cvMinMaxLoc( img_32, &Min, &Max ); cvScale( img_32 , img_32 , 1.0/Max ); //quantization for 32bit cvDCT( img_32 , img_dct , CV_DXT_FORWARD ); //DCT //display( img_dct, "DCT"); cvSet2D(img_dct, 0, 0, cvScalar(0)); //suppress constant background //cvConvertScale( img_dct, img_dct, -1, 255 ); //invert colors cvDCT( img_dct , img_out , CV_DXT_INVERSE ); //IDCT //display(img_out, "IDCT"); ``` ![enter image description here](https://i.stack.imgur.com/mshzb.png) ![enter image description here](https://i.stack.imgur.com/UGI3F.png) ![enter image description here](https://i.stack.imgur.com/WXWEe.png) The objective is to identify and isolate elements which is present in high frequencies from previously detected regions in the image. However in several cases the text is very thin and faint (low contrast). In these cases the IDCT yeilds images which are so dark that even the high frequency portions become too faint for further analysis to work. What manipulations are there so that we can obtain a clearer picture from the IDCT after background suppression? `CvEqualizeHist()` gives too much noise. [Whole picture](https://imgur.com/hYwx8) uploaded here as belisarius asked. The low frequency suppression is not being done on the entire image, but on small ROI set to the smallest bounding rectangle around text/low frequency portions.
How to get clear image after low frequency suppression of image?
CC BY-SA 3.0
0
2011-06-08T06:54:16.953
2011-06-13T12:01:20.977
2011-06-12T01:00:48.553
297,353
297,353
[ "image-processing", "opencv", "computer-vision" ]
6,275,302
1
6,277,533
null
5
5,682
I was able to create a fragment shader to convert a color image to greyscale, by: ``` float luminance = pixelColor.r * 0.299 + pixelColor.g * 0.587 + pixelColor.b * 0.114; gl_FragColor = vec4(luminance, luminance, luminance, 1.0); ``` Now I'd like to mimic a Photoshop channel mixer effect: ![Black & White Infrared](https://i.stack.imgur.com/ZU6jQ.png) How can I translate the `%` percentage values (-70%, +200%, -30%) into `r g b` floating point numbers (e.g. 0.299, 0.587, 0.114)?
OpenGL ES shader to convert color image to black-and-white infrared?
CC BY-SA 3.0
0
2011-06-08T07:05:34.540
2012-03-23T21:58:37.750
null
null
88,597
[ "image-processing", "opengl-es", "shader" ]
6,275,361
1
6,276,560
null
0
1,510
I have a html/javascript web page that I need to run unmodified on APEX 4.0, I can't seem to figure out to achieve this. In older version of APEX you could put header and body html in page attributes, I can't see something similar in 4.0 Appreciate your inputs, I am sure I am missing out something very stupid. I don't see the page attributes, I just see this: ![](https://farm6.static.flickr.com/5239/5811319645_4cb20ec5de.jpg)
Host plain html web page in APEX 4.0
CC BY-SA 3.0
null
2011-06-08T07:14:42.693
2011-06-09T10:00:42.073
2017-02-08T14:32:25.500
-1
177,758
[ "html", "oracle", "web-hosting", "oracle-apex" ]
6,275,550
1
6,276,397
null
0
200
Hi all I want to add the cell in the table view as one touches on the row or section.I tried this by taking the sections and then clicking on the section will change the height of cell.But thats not working fine. Here are the images ,that i want to accomplish![First Images show the cells or the sections](https://i.stack.imgur.com/zXlPe.png) ![This is the how 2nd image will show after selecting in the first image](https://i.stack.imgur.com/RKGxF.png) Thanks in advance for everyone......
How to add the cells in the table view like this in the image?
CC BY-SA 3.0
null
2011-06-08T07:33:56.970
2011-06-08T08:58:12.887
null
null
479,201
[ "iphone", "uitableview" ]
6,276,005
1
null
null
11
32,259
Can i know how can i make a popup bubble message in my application coded in C#. Like example, when i start my application, it'll popup saying "Welcome to UbuntuSE App". And yea, The popup is not the message box popup, it's the popup in the traymenu. Something similar to this: ![enter image description here](https://i.stack.imgur.com/uRDPB.png) PS, If i'm not wrong, this is called Balloon Tooltips. But how can i use this in my codes.
Creating balloon tooltip in C#
CC BY-SA 3.0
null
2011-06-08T08:19:38.400
2019-07-09T01:15:17.013
2014-12-15T08:59:43.457
482,682
742,092
[ "c#", ".net", "popup-balloons" ]
6,276,131
1
6,583,895
null
3
1,771
I am looking for a control that allows users to zoom and scroll at the same time. It basically needs to be something like Sony Sound Forge has, see bottom of this screenshot: ![enter image description here](https://i.stack.imgur.com/CIfGn.png) It looks and behaves like a normal scroll bar, with the addition that you can drag the edges to the left and right making the chart zoom in/out. Even if the user would be offered alternative ways to zoom in and scroll (e.g. by dragging an area on the chart itself) I still think such a component is useful because it gives the user a direct visual feedback of the position in the data and the amount of zooming that has been applied. Does such a component exist or do I need to create it myself? Any help is welcome.
c# .NET 2.0 zoom-scroll bar
CC BY-SA 3.0
0
2011-06-08T08:30:30.950
2011-07-08T16:24:11.110
2011-06-09T11:14:51.240
769,570
769,570
[ "c#", "scroll", "c#-2.0", "zooming", "charts" ]
6,276,430
1
null
null
0
108
In my search form I let the user specify which columns and what word to search for in that specific column. What I get is a key-value mapping where `key = column` and `value = search words`. I loop through these keys and values and create a string () that I want to use in my query. Something like: ``` var query = db.Persons. Where(searchPhrase); ``` But I don't know how to use my as a where condition? Here's how I loop through my form collection ``` public ActionResult Search(FormCollection collection) { List<string> conditions = new List<string>(); for (int i = 1; i <= 4; i++) { if (!String.IsNullOrEmpty(collection["columnName" + i])) { string s = String.Empty; s += collection["Attributes" + i].ToString(); s += " = '"; s += collection["searchWord" + i].ToString(); s += "'"; conditions.Add(s); } } searchPhrase = string.Join(" AND ", conditions.ToArray()); } ``` I then want to use the searchPhrase in the above query which might look like `surname LIKE 'adam' AND surname LIKE 'bob'` This is the only way I can think of since I'm letting the user specify the columns. Here's the search form: ![enter image description here](https://i.stack.imgur.com/mKxFC.png)
Query db with supplied where condition
CC BY-SA 3.0
null
2011-06-08T09:00:57.120
2011-07-11T12:20:35.107
2011-07-11T12:20:35.107
536,610
536,610
[ "asp.net-mvc" ]
6,276,484
1
6,276,541
null
0
609
I am using a datepicker for one of my form elements in my Drupal page. The problem i have is that in IE6 (testing in IE7 and Firefox, it looks fine), there is a box below the calendar with the word false in it. When the first date picker is clicked, the box is the same size as the calendar. When another date picker is clicked on the same page the false box is twice as big. The box continues to grow in size every time a date picker is clicked. ![enter image description here](https://i.stack.imgur.com/eZDl8.jpg) Included the screenshot of the issue.... i see that an iframe is being added. Dont understand what could be the issue and how to fix it.
Undesirable popup in datepicker in IE6
CC BY-SA 3.0
null
2011-06-08T09:05:39.273
2011-06-08T09:34:40.750
null
null
386,579
[ "jquery", "date", "internet-explorer-6", "jquery-ui-datepicker" ]
6,276,557
1
6,277,221
null
7
4,048
I am currently migrating a number of attached behaviours I have created to Blend Behaviours so that they support drag and drop within Expression Blend. I have noticed that authors of Blend behaviours tend to define the behaviour properties as dependency properties. I have created a behaviour, `TiltBehaviour`, which exposes a public dependency property, `TiltFactor`, of type double. Within Expression Blend I can set the value of this property, however, the option to add a "Data Binding ..." is grayed out: ![cannot bind to behaviour property](https://i.stack.imgur.com/g9ooq.png) I have also noticed that Behaviors extend `DependencyObject`, therefore they do not have a `DataContext` and therefore cannot inherit the `DataContext` of the element to which they are attached. This feels like a real weakness to me! So, the bottom-line is, if I cannot set a binding to my behaviors dependency property in Blend, and it does not inherit a `DataContext`, why bother using dependency properties at all? I could just use CLR properties instead.
Blend Behaviours - can you bind to their properties?
CC BY-SA 3.0
0
2011-06-08T09:13:50.617
2011-06-14T05:54:42.717
null
null
249,933
[ "wpf", "silverlight", "expression-blend", "attachedbehaviors" ]
6,276,625
1
6,276,706
null
0
1,597
I have a strange error with Visual Studio 2010 in that Entity Framework doesn't work for me. In the toolbox down the side the icon for the EntityDataSource (and several other components) shows a text snippet icon: ![EntityDataSource as text snippet](https://i.stack.imgur.com/tA6gP.jpg) Then when I try to insert it via double clicking I just get a massive bunch of text inserted instead of the control: ![EntityDataSource inserts soap-env](https://i.stack.imgur.com/rtgqZ.jpg) I have tried installing the latest Entity Framework 4.1 standalone installer. I have also installed the Visual Studio 2010 SP1. I did have the SP1 RC installed before but the install notes for SP1 state clearly that you don't need to uninstall the RC before installing the final SP1. I have been using Linq to SQL for a long time now and finally wanted to start learning EF so I am not sure how long this has been broken and I just haven't noticed. It seems that the issue has occurred for others: - [http://connect.microsoft.com/VisualStudio/feedback/details/622189/entitydatasource-control-is-missing-from-my-visual-studio-2010-ultimate-toolbox](http://connect.microsoft.com/VisualStudio/feedback/details/622189/entitydatasource-control-is-missing-from-my-visual-studio-2010-ultimate-toolbox) But Microsoft closed the bug as not-reproducible. I commented on there about a month ago but nothing has been responded to. As I stated in that thread I did try the fix suggested but it didn't work. Does anybody have any idea what steps I can take to get this working?
entity framework not available in Visual Studio 2010
CC BY-SA 3.0
null
2011-06-08T09:21:06.447
2011-06-08T09:29:43.000
null
null
156,388
[ "visual-studio-2010", "entity-framework" ]
6,276,681
1
6,286,204
null
16
5,250
I have heard that some characters are not present in the Unicode standard despite being written in everyday life by populations of some areas. Especially I have heard about recent Chinese first names fabricated by assembling existing characters parts, but I can't find any reference for this. For instance, the character below is very common for 50 million people, yet it was [not in Unicode](http://en.wikipedia.org/wiki/Hokkien#Computing) until [October 2009](https://www.unicode.org/Public/UCD/latest/ucd/DerivedAge.txt): ![enter image description here](https://i.stack.imgur.com/4yi3y.png) Is there a list of such characters? (images, or website listing such characters as images)
What characters are NOT present in Unicode?
CC BY-SA 4.0
0
2011-06-08T09:27:39.953
2021-11-11T13:39:46.473
2021-11-11T13:39:46.473
4,453,460
226,958
[ "unicode", "localization", "character-encoding" ]
6,276,849
1
6,276,990
null
1
552
How to change the developer name in the appstore. see attached image![enter image description here](https://i.stack.imgur.com/4JGei.png)
Change the name of the editor itunes app store
CC BY-SA 3.0
null
2011-06-08T09:43:25.220
2011-06-08T09:53:44.917
null
null
267,980
[ "iphone", "app-store", "app-store-connect" ]
6,276,898
1
6,277,263
null
0
133
I am using open flow library in my project.When I scroll the image it does get in center. Can anybody tell me which method to modify in open flow files to do it correct or some another approach. Attached the screen shot describing what the exactly problem is:-It is shifting towards left(not in center). ![enter image description here](https://i.stack.imgur.com/uCo1s.png)
Image not locking at center in open flow
CC BY-SA 3.0
null
2011-06-08T09:46:58.127
2011-06-08T10:16:38.923
null
null
633,676
[ "iphone", "objective-c", "coverflow" ]
6,276,958
1
6,278,633
null
3
1,374
I was looking at [MeVisLab](http://www.mevislab.de/) and I wondered if anyone knows a good framework for making a user interface similar to the one they use. I like the designing flow with boxes and arrows thing. What I would really like is to able to integrate with C++ using Qt, and perhaps export the graph to xml of something like that. There is another example of the interface here: ![enter image description here](https://i.stack.imgur.com/wdB6i.png) I hope someone knows something
Graph edit framework
CC BY-SA 3.0
0
2011-06-08T09:50:52.850
2011-06-08T12:23:41.833
2011-06-08T09:56:00.510
750,186
750,186
[ "c++", "qt", "user-interface", "vector-graphics" ]
6,277,065
1
6,277,775
null
0
90
I am making a restaurant directory for IPhone. I am using the map view frame work in iPhone. Well the pins got cluttered together. That's especially true when a bunch of restaurants are in a mall, for example. Now my friend suggested that I do something like: ![enter image description here](https://i.stack.imgur.com/nC4bw.png) That looks awesomely cool if only it's possible. Is it? How to do so? I can recoqnize cluttering. That's easy. But then how do I add number to that logo? Create a bunch of pictures? Then how can I pop a table within map view? Also I suppose people would expect seeing restaurant detail when pressing the bar and call somebody when pressing the call button. How would I differentiate it? What would be the best way to do all that.
How to Create Something Like This
CC BY-SA 3.0
null
2011-06-08T10:00:43.070
2011-06-08T11:07:00.410
null
null
700,663
[ "objective-c", "xcode4", "mkmapview" ]
6,277,214
1
6,277,366
null
3
476
![enter image description here](https://i.stack.imgur.com/Jle4s.png)
what's this red line in firebug's layout panel?
CC BY-SA 3.0
null
2011-06-08T10:12:31.903
2011-06-08T10:29:02.833
2011-06-08T10:18:42.460
405,015
209,336
[ "css", "firefox", "layout", "firebug" ]
6,277,779
1
6,278,730
null
0
339
I am writing simple page with `autocomplete` text box feature.I have set `widht:87%` for input box and its working fine in mozilla but in IE first the text box expands while page is loaded and shrinks while suggestions are displayed. Here is my code ``` <td valign="middle"> <input id="myInput" name="ontFindNameMatch" type="text" maxlength="100" style="border:1px solid #7c9cba;width:87%;font-size:11px;" /> <br/> <div id="myContainer" style="z-index:10;width:87%"> </div> </td> ``` `myInput` is input text box and in `myContainer` autocomplete suggestions are displayed.I am using `YUI autocomplete`. Image when page is loaded. ![enter image description here](https://i.stack.imgur.com/D8gVS.jpg) After suggestions are displayed ![enter image description here](https://i.stack.imgur.com/U6WP9.jpg) In mozilla the width remains same. Got the solution. Thanks amadeus ``` <td valign="middle" > <div id="autocomplete" class="yui-ac"> <input id="myInput" class="yui-ac-input" name="ontFindNameMatch" type="text" style="border:1px solid #7c9cba;font-size:11px;" /> <br/> <div id="myContainer" class="yui-ac-container" style="z-index:100;"> </div> </div> </td> ``` ~Ajinkya.
Is "width" treated differently in IE and Mozilla?
CC BY-SA 3.0
null
2011-06-08T11:07:28.307
2011-06-08T14:06:59.077
2011-06-08T14:06:59.077
705,773
705,773
[ "html", "css", "autocomplete", "yui" ]
6,277,828
1
null
null
2
384
I was just trying the CDF player on linux and was comparing how the [same demo](http://demonstrations.wolfram.com/RigidBodyPendulumOnAFlywheel/) looks using the CDF plugin on windows. I noticed something strange. Same demo, same initial values, but on windows, the same value shows as zero, while on linux it shows as 3.598 * 10^-19 This is a bit annoying, I hope that one does not have to test a Mathematica CDF on windows and mac and linux to make sure they work the same. I assumed things ought to be the same, other than appearance which might be different due to different OS styles and such. But shouldn't the numerical values be the same? Here is a screen shot. ![enter image description here](https://i.stack.imgur.com/EKhvt.png)
Why does the same Mathematica demonstration running on Windows/CDF plugin return different values when run on linux CDF player?
CC BY-SA 3.0
null
2011-06-08T11:11:52.953
2011-06-09T13:37:56.187
2011-06-08T13:20:06.843
615,464
765,271
[ "wolfram-mathematica" ]
6,278,445
1
6,279,938
null
7
404
I have found what appears to be a bug related to `TTreeView`. - `TTreeView``HideSelection``True`- - - The result looks like this: ![enter image description here](https://i.stack.imgur.com/lVEHU.png) But in fact there should be no items highlighted. Interestingly, the last item is selected and it is no longer highlighted, as indeed should all the other items. It appears that the most recently clicked item is the one that gets the special treatment. If instead you click in the edit box (or indeed any other control that takes focus) then all items are correctly hidden. So it's fine for the focus to transfer to another control on the form—the problem seems to be limited to deactivating the form. I have discovered by trial and error that I can fix this by calling `Invalidate` on the tree view whenever the form is deactivated and activated (need to prevent mirror image of the bug). However, I'm looking for a better understanding of what the bug is and how to fix it in a less invasive manner, i.e. at the tree view level rather than the containing form level. So, to summarise, my questions are: 1. What exactly is causing the problem? 2. How can I fix it without writing code that hooks TForm events? --- Submitted the issue as [QC#94908](http://qc.embarcadero.com/wc/qcmain.aspx?d=94908).
TTreeView drawing error when deactivating a form
CC BY-SA 3.0
0
2011-06-08T12:08:10.290
2011-06-08T16:21:23.527
2011-06-08T15:37:02.023
null
505,088
[ "delphi", "delphi-2010" ]
6,278,562
1
9,214,585
null
6
1,083
I'm developing an ASP.Net project. I have an `<asp:Table>` control on my page, to which columns and cells are added from codebehind. Many of the cells span across more than one column. Here is the chart as it looks currently. I need the faint grid lines which run vertically to go over the top of the pink and green bars. ![enter image description here](https://i.stack.imgur.com/8qVgt.png) I've tried a simple CSS approach of setting the cells `z-index` property to 0 and then the the tables `z-index` to 1, but this doesn't work (I'm assuming the tables' CSS overrides the cells' CSS). I am using [jQuery.corner](http://jquery.malsup.com/corner/) for the rounded corners of the cells so this may be adding further complexity. Currently those grid lines are actually empty table cells with a CSS dotted border on the left hand side. The reason for this is that I had to get the GridLines appearing over the top, but I couldn't do it, so actually my code makes no attempt to do it currently. So my question should be, is there a way to do it? I couldn't get the rounded corners and styles to apply properly on JSFiddle so I used pastebin, please copy the text [here](http://pastebin.com/8mSQ2MxD) into a plain html file and you should get the correct output similar to the picture above - please let me know if it looks different / the corners are square. Note: if you use IE to view the file and use the IE developer tools, there is an option to outline table cells which is really helpful for this.
Making vertical GridLines appear over the top of spanned table cells
CC BY-SA 3.0
0
2011-06-08T12:17:22.380
2015-03-30T15:40:47.133
2015-03-30T15:40:47.133
737,641
737,641
[ "javascript", "jquery", "asp.net", "css", "html-table" ]
6,278,658
1
13,556,121
null
6
1,823
This is my 2nd Question on 3D cubes in iphone using CALayer, Core Animation framework, written in Objective-c. For my first question please visit here [3D Cube Problem! Part 1](https://stackoverflow.com/questions/6275672/3d-cube-problem-part-1). I am using Brad Larsons code to rotate my 3D cube from this link [http://www.sunsetlakesoftware.com/2008/10/22/3-d-rotation-without-trackball](http://www.sunsetlakesoftware.com/2008/10/22/3-d-rotation-without-trackball) The problem is my cube is rotating in x axis along the pink line shown in the figure. ![enter image description here](https://i.stack.imgur.com/YC38J.png) But I want to rotate it around x axis along the black line shown in the figure. Now in my code I dont have any pink line or black line drawn on my view so can some one please help me with this. If it helps here is the code for rotating my cube in `touchesMoved:` method ``` - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { CGPoint location = [[touches anyObject] locationInView:self]; CATransform3D currentTransform = currentLayer.sublayerTransform; CGFloat displacementInX = location.x - previousLocation.x; CGFloat displacementInY = previousLocation.y - location.y; CGFloat totalRotation = sqrt(displacementInX * displacementInX + displacementInY * displacementInY); CGFloat x = (displacementInX/totalRotation) * currentTransform.m12 + (displacementInY/totalRotation) * currentTransform.m11; CATransform3D rotationalTransform = CATransform3DRotate(currentTransform, totalRotation * M_PI / 180.0, x, y, 0); currentLayer.sublayerTransform = rotationalTransform; } ``` previousLocation is a `CGPoint` initialized in `touchesBegan:` method, and currentLayer is `CALayer` where I have created this cube. Thanks for your help. PS. If you want to know how I created this cube then let me know
3D Cube problem, Part 2
CC BY-SA 3.0
null
2011-06-08T12:25:22.680
2012-11-25T22:16:02.463
2020-06-20T09:12:55.060
-1
567,929
[ "iphone", "objective-c", "core-animation", "calayer", "cube" ]
6,278,848
1
6,278,956
null
3
738
This should be an easy one for someone. I am creating tabs with CSS (please, I don't need suggestions for how to make them look better, this is what my customer wants). As you can see in the image below, my tabs and my "tab bar" don't line up. I do not know why. ![enter image description here](https://i.stack.imgur.com/dFvuE.png) The HTML: ``` <html> <head> <link rel="stylesheet" href="prototype.css" type="text/css" /> </head> <body> <div id="container"> <div id="content"> <div id="tabs"> <span id="tab0" class="tab"> No Circuit </span> <span id="tab1" class="tab"> Digital Inputs </span> </div> </div> </div> </body> <html> ``` The CSS: ``` #container { margin-left: auto; margin-right: auto; margin-top: 15px; position: float; width: 900px; } #content { border: 1px solid black; margin-top: 15px; padding: 15px; position: relative; width: 868px; } #tabs { border-top: 1px solid black; width: 100%; } .tab { border: 1px solid black; margin-left: 5px; margin-top: 2px; padding: 3px; } ``` I appreciate any help.
How do I get my tabs to line up properly using CSS?
CC BY-SA 3.0
null
2011-06-08T12:42:30.193
2012-01-19T21:42:44.330
2012-01-19T21:42:44.330
102,937
539,211
[ "html", "css" ]
6,279,126
1
null
null
0
1,467
I have a FlowDocument, that I want to display in a readonly RichTextBox. This has to happen via DataBinding, since it is displayed in each of my DataGrid's rows. That's why I ended up with the RichTextBox that comes with the Extended WPF Toolkit. Text text I intend to display has the following simple markup: ``` <Section xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <Paragraph> <TextBlock Text="it" Background="#FF90EE90" /> <TextBlock Text="'" FontWeight="Bold" Background="#FFE9967A" /> <TextBlock Text="s a snake" Background="#FF90EE90" /> </Paragraph> </Section> ``` What the RTB displays is the following: ![messed up encoding](https://i.stack.imgur.com/dA2yb.jpg) I have made sure to use a unicode-compatible font, so this is not the issue. Furthermore, I have cross-checked with the regular RichTextBox - All gets displayed fine, although I have to set the document programmatically (lack of binding support).Also, the regular RTB has a Document property, so I had to replace the section tag with a flowdocument tag. If I set ReadOnly to false, I can paste the unicode stuff in without any trouble, so I guess it's not a lack of support I'm facing here...Does anybody know how I can get the Extended Toolkit RichTextBox to display it's content in the right way? TIA, Seb
.Net 4.0 WPF RichTextBox vs. Extended WPF Toolkit RichTextBox and unicode
CC BY-SA 3.0
null
2011-06-08T13:04:04.627
2011-06-17T14:48:42.293
null
null
249,686
[ "wpf", "encoding", "wpf-controls", "binding", "richtextbox" ]
6,279,496
1
6,279,595
null
-2
1,865
I have write below code ``` String strId = "1,2" try { myDB = myDbHelper.openDataBase(); } catch (SQLException sqle) { throw sqle; } myDB = myDbHelper.getWritableDatabase(); String strQuery = "delete from table1 where Id in (" + strId + ")"; Log.w("strQuery", strQuery); myDB.execSQL(strQuery, null); myDbHelper.close(); ``` But getting run time Error. ![enter image description here](https://i.stack.imgur.com/FBD30.png) Please help me.
delete multiple row sqlite android Error
CC BY-SA 3.0
null
2011-06-08T13:30:21.123
2012-10-25T05:28:06.997
2012-10-25T05:28:06.997
750,613
750,613
[ "java", "android", "sql", "sqlite" ]
6,279,529
1
6,279,591
null
5
2,770
I am using the following code to display splash screen, but it is showing a margin at the bottom. Can anyone guide me what mistake am I making here? My image resolution is 480 x 800. ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" > <ImageView android:src="@drawable/splash" android:layout_width="wrap_content" android:id="@+id/imageView1" android:layout_height="wrap_content"></ImageView> </RelativeLayout> ``` Manifest: ``` <application android:name="MyApplication" android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".SplashScreen" android:configChanges="locale" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> ``` ![enter image description here](https://i.stack.imgur.com/UPvAa.png)
splash screen margin problems?
CC BY-SA 3.0
0
2011-06-08T13:33:08.340
2021-11-20T02:51:11.023
2021-11-20T02:51:11.023
16,439,658
249,991
[ "android", "imageview", "splash-screen" ]
6,279,603
1
null
null
0
2,938
I have a problem with my iPhone app. I will try my best to describe it. 1. I have an iPhone app that can display a web page. 2. This webpage has a link to a 3GP video. 3. Clicking on this link will open the video and play it. This was working for a long time, but after a recent Apple Update, i got the message: > "Can't play this file" Here is a Firefox screenshot from the file. ![MIME-Type](https://i.stack.imgur.com/OBH2G.jpg) Does anyone have a suggestion as to what could have changed? Thanks!
iPhone-App Doesn't play 3GP Video After Apple Update
CC BY-SA 3.0
null
2011-06-08T13:39:37.730
2011-06-14T01:15:20.073
2011-06-14T01:15:20.073
709,202
639,596
[ "iphone", "video", "3gp" ]
6,279,611
1
6,279,698
null
2
6,210
My main working tool is IntelliJ. So I use it to create XML files and layouts for Android activities. However, if I open such XML file in Eclipse, it does not recognize it as layout file and does not load its GUI designer (I open XML file via Eclipse Layout Editor). If I create an XML file in Eclipse, the GUI designer loads properly. The very content of Eclipse layout XML filet and IntelliJ layout XML file is 100% identical. What am I doing wrong? ////////////////////////////////////////////////////////////// EDIT: I have created new project in IntelliJ. Added some test elements into Main.xml. Exported project to Eclipse format (File->Export to Eclipse...). Closed IntelliJ, opened Eclipse, Imported the newly created project, opened Main.xml with Layout Editor and NOTHING again. This is structure of 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" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello World, MyActivity" /> <TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="just testing text"/> <ImageView android:layout_height="wrap_content" android:layout_width="wrap_content" android:src="@drawable/icon"/> <LinearLayout android:layout_height="wrap_content" android:layout_width="wrap_content"> <TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="test inside of layout"/> </LinearLayout> </LinearLayout> ``` And this is how Eclipse Layout Editor sees this XML file. ![](https://i.stack.imgur.com/mPP7j.png)
Android Layout designer doesn't open XML file created in IntelliJ
CC BY-SA 3.0
null
2011-06-08T13:39:56.207
2013-09-19T19:30:53.030
2013-09-19T19:30:53.030
27,905
437,039
[ "android", "eclipse", "intellij-idea" ]
6,279,657
1
6,279,905
null
3
3,657
Example jscript: ``` var aGlobalVar = 1; function aFunction(){ aGlobalVar = 2; } function anotherFunction(){ var aLocalVar = 3; //insertion point here } ``` If I'm typing in anotherFunction() as indicated, and I press Ctrl+SPACE, the content assist box contains neither aGlobalVar nor aFunction(), but it does give me aLocalVar. Any ideas why this happens? I've tried many javascript editors, and Netbeans is my favorite, except for this one issue. I'm using Netbeans IDE 7.0 Edit: interestingly enough, everything does show up properly in the Navigator panel. some screenshots: ![enter image description here](https://i.stack.imgur.com/vmMNi.png) ![enter image description here](https://i.stack.imgur.com/w8uMT.png) ![enter image description here](https://i.stack.imgur.com/GKFXa.png)
Netbeans code completion doesn't see javascript functions or global variables
CC BY-SA 3.0
null
2011-06-08T13:42:49.423
2011-08-16T04:59:20.310
2011-06-08T14:15:19.127
342,188
342,188
[ "javascript", "netbeans", "code-completion", "content-assist" ]
6,279,999
1
6,280,032
null
9
5,139
Let's say we have a 100x100 coordinate system, like the one below. 0,0 is its left-top corner, 50,50 is its center point, 100,100 is its bottom right corner, etc. Now we need to draw a line from the center outwards. We know the angle of the line, but need to calculate the coordinates of its end point. For example, if the angle of the line is 45 degrees, its end point coordinates would be roughly 75,15. ![enter image description here](https://i.stack.imgur.com/yD9D1.png)
finding a dot on a circle by degree?
CC BY-SA 3.0
0
2011-06-08T14:06:15.767
2016-03-24T11:02:10.670
null
null
651,418
[ "math", "geometry" ]
6,280,114
1
6,280,212
null
0
476
I want to set image into UIScrollView, but there is a problem. Image is outside of UIScrollView. I use [self.scrollView addSubview:view]; ![enter image description here](https://i.stack.imgur.com/g3PkH.png) ``` enter code here ``` scrollView = [[UIScrollView alloc] initWithFrame:scrollViewRect]; ``` -(void)scrollViewDidScroll:(UIScrollView *)sv { int page = [self currentPage]; // Load the visible and neighbouring pages [self loadPage:page-1]; [self loadPage:page]; [self loadPage:page+1]; } -(void)loadPage:(int)page { // Sanity checks if (page < 0) return; if (page >= [scrollViewPages count]) return; // Check if the page is already loaded UIView *view = [scrollViewPages objectAtIndex:page]; // if the view is null we request the view from our delegate if ((NSNull *)view == [NSNull null]) { view = [delegate viewForItemAtIndex:self index:page]; [scrollViewPages replaceObjectAtIndex:page withObject:view]; } // add the controller's view to the scroll view if it's not already added if (view.superview == nil) { // Position the view in our scrollview CGRect viewFrame = view.frame; viewFrame.origin.x = viewFrame.size.width * page; viewFrame.origin.y = 0; view.frame = viewFrame; [self.scrollView addSubview:view]; } ``` } ``` enter code here ``` I've attached my project at [my project](https://rapidshare.com/files/3211591559/ScrollView_new.zip)
I want to set image into UIScrollView, but there is a problem. Image is outside of UIScrollView
CC BY-SA 3.0
null
2011-06-08T14:13:31.040
2011-06-08T14:58:42.513
2011-06-08T14:58:42.513
696,134
499,825
[ "iphone", "uiscrollview" ]
6,280,182
1
6,280,311
null
1
1,302
How can I create a stepped seek bar for an android interface, one that functions like the seek bar in the menu below. ![enter image description here](https://i.stack.imgur.com/UR0F2.gif)
Creating a stepped seek bar
CC BY-SA 3.0
null
2011-06-08T14:17:02.210
2011-06-08T14:24:13.307
null
null
754,087
[ "android", "user-interface" ]
6,280,242
1
6,280,383
null
3
2,827
When I'm using `JFileChooser` application in my program on Windows 7 it display such window: ![Metal JFileChooser](https://i.stack.imgur.com/1rPmi.png) But when I run the [JWS File Chooser Demo](http://download.oracle.com/javase/tutorialJWS/uiswing/components/ex6/JWSFileChooserDemo.jnlp) it displays much better window: ![JWS File Chooser Demo](https://i.stack.imgur.com/o4x1R.png) Why?
jfilechooser better look?
CC BY-SA 3.0
0
2011-06-08T14:20:03.947
2013-05-09T06:33:42.850
2011-06-08T15:39:08.863
418,556
93,647
[ "java", "swing", "jfilechooser" ]
6,280,384
1
6,280,650
null
2
509
Is it possible to change the options of a Graphics object? Say you are working with a graphics object `G2D` as in the following picture ![Sample](https://i.stack.imgur.com/3mNDu.png) You can see from the `InputForm` of `G2D` that the `PlotRange` option is set to `{{-0.025,1.025},{0,1.05}}`. But later on on the code I decided to change the `PlotRange` option to a different one. What happens with the `InputForm`? The new option simply gets appended. You can obtain the options set by a graphics object by using `Options` and `AbsoluteOptions` but I haven't found a way to change those options. The function [SetOptions](http://reference.wolfram.com/mathematica/ref/SetOptions.html) seemed like a likely candidate but it turns out that this function only works with streams and functions. That is, it only allows to set the default behavior as they show in the examples.
Mathematica: Changing the options of a Graphics object
CC BY-SA 3.0
0
2011-06-08T14:28:15.713
2011-06-08T16:18:23.813
2011-06-08T16:18:23.813
788,553
788,553
[ "wolfram-mathematica" ]
6,280,486
1
6,280,830
null
5
3,095
I've created a basic website using the Orchard CMS, and attempted to deploy it to my shared host, Softsys, using Web Matrix (via FTP). Currently, the site technically "works", however it looks like all styling has been removed (even from the dashboard). Is there a step or files that I missed while deploying the site? I know "Web Deploy" is probably the preferred method of deploying, but I'm pretty new to this, and was not sure what the login specifics were, or how to obtain them for web deploy. Here is a screenshot of what the site currently looks like deployed: ![deployed website](https://i.stack.imgur.com/BVjGT.jpg) Edit: it turns out that the problem was on my host's side, for some reason the virtual directory was not being created properly - I still am curious what the proper/best practice method to deploying is however.
What is the proper way to deploy Orchard CMS to shared hosting?
CC BY-SA 3.0
0
2011-06-08T14:34:02.403
2013-03-22T03:56:07.657
2011-06-14T19:40:17.463
629,335
538,086
[ "asp.net-mvc", "asp.net-mvc-3", "deployment", "shared-hosting", "orchardcms" ]
6,280,568
1
6,281,803
null
2
158
I use the following function to perform a conditional operation on a List: ``` consider[data_, conditionCOL_, conditionVAL_, listOfCol_] := Select[data, (#[[conditionCOL]] == conditionVAL) &][[All, listOfCol]] ``` Considering the following example : ``` dalist = Join[Tuples[Range[4], 2]\[Transpose], {Range[16], Range[17, 32, 1]} ]\[Transpose]; ``` ![enter image description here](https://i.stack.imgur.com/aaIUP.png) I use the following to obtain the means of specific columns defined by the function. This will output the means of entries of column 3 & 4 for which the corresponding entry in column 1 equals 2 ``` Mean@consider[dalist, 1, 2, {3, 4}] ``` ![enter image description here](https://i.stack.imgur.com/wRdvY.png) Now, I would like to add constraints/thresholds on the values to be averaged : - - Below, an example is given of values the average value of which should be calculated under the above mentioned constraints. ![enter image description here](https://i.stack.imgur.com/97fFi.png)
Add Constraints in a Conditional Query/Operation in Mathematica
CC BY-SA 3.0
null
2011-06-08T14:39:21.463
2016-12-29T14:10:40.910
2016-12-29T14:10:40.910
1,033,581
769,551
[ "wolfram-mathematica", "conditional-statements", "average", "threshold" ]
6,280,566
1
6,280,623
null
5
14,362
I am trying to pass credentials to a website so I can use file_get_contents on it to extract some data but it is not working, I am getting a blank page so any idea what is wrong here? ``` <?php $username="[email protected]"; $password="Koin"; $url="confluence.rogersdigitalmedia.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); $output = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); $str= file_get_contents("confluence.rogersdigitalmedia.com/display/prodsupport/Team+Calendar"); echo $str; ?> ``` Here is the new code it is still not working stuck at login screen when I do get contents....![screenshot](https://i.stack.imgur.com/e9INr.png) ``` <?php $username="[email protected]"; $password="Koin"; $url="confluence.rogersdigitalmedia.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //Replaced due to special chars in url for username and pass //curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_USERPWD, urlencode($username) . ':' . urlencode($password)); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); $output = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); echo file_get_contents('http://confluence.rogersdigitalmedia.com/exportword?pageId=1114407'); ?> ``` New code: I know `$url` is the URL for which I have to login, but what do I put in `$data`? I know it's my login info, but how do I put it (e.g., <username> space <password>)? ``` <?php function do_post_request($url, $data, $optional_headers = null) { $params = array('http' => array( 'method' => 'POST', 'content' => $data )); if ($optional_headers !== null) { $params['http']['header'] = $optional_headers; } $ctx = stream_context_create($params); $fp = @fopen($url, 'rb', false, $ctx); if (!$fp) { throw new Exception("Problem with $url, $php_errormsg"); } $response = @stream_get_contents($fp); if ($response === false) { throw new Exception("Problem reading data from $url, $php_errormsg"); } return $response; } ```
passing credentials in PHP cURL help
CC BY-SA 3.0
0
2011-06-08T14:39:19.993
2011-06-08T17:10:29.020
2011-06-08T17:10:29.020
null
761,669
[ "php", "curl", "libcurl" ]
6,280,791
1
6,368,583
null
4
565
I'm looking for a JQuery-style javascript/CSS control that will allow the user to drill down into the workings of an expression. For example, imagine we have the following expression: ``` (2+3) × (4+5) + Max(22, 31, 16, 62, 40) ``` This would evaluate as follows: I'd like to present these intermediate steps in such a way that the user can drill down a particular evaluation branch to discover the inputs which produced a particular value. I've toyed with the idea of manipulating the expression's workings into a tree structure, perhaps with intermediate evaluations inserted (shown in blue in the example). However, I'm concerned that the audience to which I'm aiming this software may find this a little intimidating. e.g. ![Expression Tree](https://i.stack.imgur.com/RvMUJ.png) An alternative, friendlier representation could be to allow in-place drill down as shown in this example: ![Expression's initial state](https://i.stack.imgur.com/elnmV.png) ![View after the '107' button has been pressed](https://i.stack.imgur.com/eLARf.png) ![View after the '62' button has been pressed](https://i.stack.imgur.com/OOKso.png) Before I write my own control I thought there may be an existing control available that could be used for this purpose. Alternatively, I'd really appreciate any alternative suggestions for representing this data in a way that may be more intuitive.
Looking for JQuery style web control to drill down a tree data structure
CC BY-SA 3.0
null
2011-06-08T14:53:15.437
2015-04-30T20:32:55.847
null
null
1,131
[ "jquery", "user-interface" ]
6,280,873
1
null
null
0
319
An is converting an image so that the properties change from those on the to those on the . ![enter image description here](https://i.stack.imgur.com/KFi8e.png) I am trying to replicate these same changes with . When I apply , I get the number of colors and disk size correct: ``` convert CMYK_jpg.jpg -strip -colorspace CMYK CMYK_jpg_stripped_cmyk.jpg ``` ![enter image description here](https://i.stack.imgur.com/L8LdV.png) But when I try to then change the resolution to as well like this: ``` convert CMYK_jpg.jpg -strip -colorspace CMYK -resample 300x300 CMYK_jpg_stripped_cmyk.jpg ``` then it changes the , but all the are incorrect: ![enter image description here](https://i.stack.imgur.com/2bFII.png)
What are the correct ImageMagick parameters to create an image with these properties?
CC BY-SA 3.0
null
2011-06-08T14:58:35.637
2011-06-10T08:12:20.040
null
null
4,639
[ "imagemagick" ]
6,281,002
1
6,282,446
null
1
525
i am trying to get an image border sliced for use in css. ## Here is the Box borders i want to use: ![Featured box Image Border](https://i.stack.imgur.com/dDvro.png) ## Here is part of the code for the Box: ``` <div class="wrapper"> <div id="featured_box1"> <div class="Content1"> <h2>Heading</h2> <p>Content for Featured Box</p> </div> </div> </div> ``` How should i slice the images, should i slive a small area and then repeat-y for each side. and then create 4 new divs to insert the corners of the border ? So how to handle the corners of the borders ? Which is the best way to get the box displayed with fasting loading speed?
How to slice an Image Border for use in CSS?
CC BY-SA 3.0
null
2011-06-08T15:05:43.797
2011-06-08T16:58:32.023
null
null
103,132
[ "html", "css", "border" ]
6,281,011
1
6,282,116
null
0
566
I was looking to implement something like the image below, and really have no idea how it's done and was wondering if someone had a quick design idea (no code is necessary or anything). Is it a footer view for the table view? is it some unknown footer view for a popover controller? Is it some way to integrate a toolbar from the UINavigationController 'into' the popover? I guess I could always create a custom view and display it 'like' a popover. Thanks for any help. ![enter image description here](https://i.stack.imgur.com/B2CBb.png)
UIPopoverController buttons beneath a table view
CC BY-SA 3.0
null
2011-06-08T15:06:10.477
2011-06-08T16:29:32.567
2011-06-08T15:13:21.077
106,435
372,617
[ "cocoa-touch", "ipad", "uitableview", "uipopovercontroller" ]
6,281,118
1
6,281,161
null
2
441
I'm trying to create a scrollable menu with item in them I want to be able to draw a custom background to the scroll and have it be fixed when I scroll among the items to do the draw of the background I use ``` @Override protected void paintComponent(Graphics g) { super.paintComponent(g); if(background != null){ background.paintIcon(this,g); } } ``` my problem when I try to set the JScrollBar container opacity to false I get a white background ![enter image description here](https://i.stack.imgur.com/Z1zfo.png) as you can I see I want the background to be the same "surface" as the other parts. any idea what is causing this problem? Jason
JScrollPanel with custom background
CC BY-SA 3.0
null
2011-06-08T15:13:34.347
2011-06-08T15:33:20.770
null
null
440,336
[ "java", "swing", "applet", "jscrollpane" ]
6,281,344
1
null
null
0
56
How add new property to WorkSpace which will show the name room? ![enter image description here](https://i.stack.imgur.com/Cyx0Q.jpg)
How add property to EF4
CC BY-SA 3.0
null
2011-06-08T15:29:59.693
2011-06-08T15:42:40.097
null
null
450,466
[ "entity-framework-4" ]
6,281,414
1
6,281,467
null
2
141
I want to create a ListActivity that has both checkboxs and single selection groups. Like in the Sound Settins in the "Settings" application of android. Anyone has link to a sample ? ![enter image description here](https://i.stack.imgur.com/tHVwa.png)
Mixed ListActivity
CC BY-SA 3.0
null
2011-06-08T15:35:38.073
2011-06-08T15:39:37.530
null
null
583,683
[ "android" ]
6,281,662
1
6,281,779
null
0
90
I am a new comer in android. I've tried to make a layout like picture below but I can't make it. ![enter image description here](https://i.stack.imgur.com/ZQv0Y.jpg) That rectangle is an image and two others are text view. I've tried to make it but it always wrong. Looking forward to hearing from you guys, thanks for advance.
How can I make this layout?
CC BY-SA 3.0
null
2011-06-08T15:53:43.630
2011-06-08T16:34:49.987
2011-06-08T16:03:13.033
411,023
789,499
[ "android", "layout", "imageview" ]
6,281,783
1
6,303,921
null
31
16,869
I want to draw line with glow effect like this ![glow line](https://i.stack.imgur.com/U82aJ.jpg) The problem - i must generate this line in program in dependence on user's interaction ( the form of line will be generated in `onTouchEvent` - `ACTION_MOVE` ). Can i generate this effect without xml files or drawing premaid bitmap ?
Dynamically generated line with glow effective
CC BY-SA 3.0
0
2011-06-08T16:02:09.453
2017-02-15T18:42:54.300
2013-03-22T14:10:42.303
760,489
706,211
[ "android", "paint", "touch-event" ]
6,281,837
1
6,920,721
null
2
6,714
I want to develop an application like biteSMS (for jailbroken iPhone). I have tried to compile an open source application [iPhone-Delivery-Report](http://code.google.com/p/iphone-delivery-report/) but unable to compile it. Does some one knows anything related to core-telephony sms sending for jailbroken iPhone? A sample code would be very helpful. Thanks to joshua Son for the great help. Here is the screenshot of the warnings. ![enter image description here](https://i.stack.imgur.com/hki1E.png)
Send sms using core telophony?
CC BY-SA 3.0
0
2011-06-08T16:06:12.780
2013-07-03T13:35:46.707
2011-08-05T10:46:50.323
83,905
83,905
[ "ios4", "sms", "jailbreak" ]
6,281,884
1
null
null
0
125
I would like to create a similar look to t the below application. Now if you look at the top of the image. The map seems to roll under the list of buttons at the top. The list of buttons seems to protude over the map. How would i go about applying this style programmitcally in my application. i would consider it to be similar to the bevel on a listview ![Activity view](https://i.stack.imgur.com/3tuPF.jpg)
How to apply a similar style to my android application
CC BY-SA 3.0
null
2011-06-08T16:10:14.260
2011-06-08T18:27:20.593
2011-06-08T16:45:07.677
286,630
286,630
[ "java", "android" ]
6,282,349
1
6,282,505
null
0
426
This is more of a requirement than a problem. There is a tab bar controller, in one of the controllers of the tab bar controller there is a nav controller. Below it there is a segment control, I have to display some data(which I'll get thru URL connections) in table view. On changing of segment from the segment control the content of the table will change. And the segment control changes the type of data being displayed in the table and even there UITableViewCells are different. All the three segments will display data in the table. ![This is how design will be](https://i.stack.imgur.com/rWoF5.jpg) One possible solution is to change the data and reload the table when the segment is changed. Other solution is to change the views (will have three different view controllers) on changing the segments and these view controllers will implement there own table delegates and will have independent table views. First one is more efficient I suppose. Second one will keep everything(code) separate of the different segments. There are some issues though, the navigation controller is not accessible in the inner view controllers. Can any one suggest me the best possible solution for the same? Thanks in adv.
Design Issue with tab bar, nav bar & segment control
CC BY-SA 3.0
null
2011-06-08T16:50:37.223
2011-06-08T17:05:17.607
null
null
431,764
[ "iphone", "ios", "uitableview", "uinavigationcontroller", "uitabbarcontroller" ]
6,282,451
1
6,295,111
null
0
351
I'm having a problem that I really can't comprehend… I'm not sure if backbone is doing some voodoo to these objects but I can't seem to get even raw access to them. My basic problem is, sometimes when I load the page, fetch the models and render the views one collection will only show/render 50% of the time. I assumed this was an issue with the model not being populated but after some investigation, I could see the model was populated but not accessable. Does anyone have any ideas? I have attached a few screenshots of working and not working to illustrate my point(sanity). ![Page loading fine - model accessed](https://i.stack.imgur.com/Wzq1D.png) ![Page not loading correctly - model inaccessible](https://i.stack.imgur.com/OwuAo.png) ![The object when is loading correctly](https://i.stack.imgur.com/E1kml.png) ![The object when not loading correctly](https://i.stack.imgur.com/KARnC.png)
Backbone.js inaccessible object attributes
CC BY-SA 3.0
null
2011-06-08T16:59:03.183
2011-06-09T15:12:24.057
null
null
199,617
[ "javascript", "javascript-framework", "backbone.js" ]
6,282,485
1
6,282,514
null
0
1,715
I have a modal which pops out a form, allowing an admin to edit/update a news story. It works just fine, updating the database and everything, only the 'Story' piece appears outside of the textarea box when in the modal window. A few pictures will illustrate my point and confusion. ![Look YAY is the story text from the database](https://i.stack.imgur.com/uhCy9.png) 'Look YAY' is the current story, being pulled into the area underneath the textarea ![Prior to hitting the enter button](https://i.stack.imgur.com/345Aw.png) adding in a new story ![New story gets slapped into the bottom but...](https://i.stack.imgur.com/qBrzo.png) the new story is now in the database, but underneath the textarea box in the modal ![on the actual form page (where the modal loads from), it is diplayed properly](https://i.stack.imgur.com/rmZP4.png) yet on the actual form page it is where it is suppose to be I've checked and rechecked my code, but my only thought is that jquery-UI is somehow interfering with the textarea since, by definition, the code within the modal is equivalent to that of the Edit News form. Here is the form code for the story element ``` Story<br/> <textarea name="edit_story"/><?php print $row['story'];?></textarea> ``` and the jquery which pops it open ``` $('.edit').click(function(event){ //don't follow the link event.preventDefault(); var $link = $(this).parent(); //load in the html from the form at edit_news var formDOM = $("<div />").load($link.attr('href')+' #edit_form', function() { //clear the dialog box $('#dialog-edit').empty(); // Append to the page $('#dialog-edit').append(formDOM); //make the dialog $('#dialog-edit').dialog({ autoOpen:false, title:$link.attr('title'), width:530, height:465 }) //open it up $('#dialog-edit').dialog('open'); $('#edit_form').submit(function(event){ //knock out its form processing event.preventDefault(); $.ajax({ type : "post", url : $link.attr('href'), data : $(this).serialize(), success : function() { //close dialog $('#dialog-edit').dialog('close'); } }) }) }) }); ``` What is going on here? if anyone has any ideas please toss them my way. It may very well be a n00bish programming error, which I will gracefully accept.
Textarea value outside of textarea in modal : weird
CC BY-SA 3.0
null
2011-06-08T17:02:47.747
2011-06-08T17:07:30.043
2011-06-08T17:07:30.043
null
599,326
[ "jquery", "html", "jquery-ui", "textarea" ]
6,282,655
1
6,282,692
null
3
8,099
How can I generate a plot like the following in R. ![enter image description here](https://i.stack.imgur.com/1CoSS.jpg) It shows the percent of transactions (x) for a given response time (y), see my own answer below for my own go at it.
plot of an empirical cumulative distribution function (was Percentile plot)
CC BY-SA 3.0
0
2011-06-08T17:18:03.197
2012-09-20T16:00:38.400
2011-06-09T15:29:37.877
203,968
203,968
[ "r" ]
6,282,661
1
null
null
0
1,804
``` private int ScoreCount; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.score); final TextView TotalScore = (TextView) findViewById(R.id.TotalScore); final TextView One = (TextView) findViewById(R.id.Score1); One.setOnClickListener(new OnClickListener() { public void onClick(View v) { ScoreCount++; Front9.setText("" + ScoreCount); } }); ``` If i fill a random number in both textviews, i want a sum of the 2 numbers in the totalscore. how do i do that. is the code i added the right way to do this. i know that the onclicklistener is not the right way but what to use instead. ![enter image description here](https://i.stack.imgur.com/8M4zi.png)
a total sum of 2 textviews
CC BY-SA 3.0
null
2011-06-08T17:18:43.197
2012-07-26T13:33:35.450
2020-06-20T09:12:55.060
-1
752,358
[ "android" ]
6,282,697
1
6,282,822
null
10
4,354
I have Visual Studio 2010 with SP1 installed. I want to create a simple Win32 console application in C++. I click New Project \ Win32 Console Application There I click Console Application, no for "Empty project", no for "Precompiled header", no for "ATL" and "MFC". The wizard looks like this: ![dialog](https://i.stack.imgur.com/LzwtS.png) Now, if I click finish, I end up with a project like this: ![project](https://i.stack.imgur.com/K7QHr.png) But why? I don't want precompiled headers, all I want is a very basic Win32 console application to practise learning C++.
Why does Visual Studio 2010 create precompiled header files even if I don't ask for it?
CC BY-SA 3.0
0
2011-06-08T17:21:38.813
2011-06-08T17:39:48.887
null
null
518,169
[ "c++", "visual-studio", "visual-studio-2010", "visual-c++" ]
6,282,948
1
6,283,027
null
0
484
I need to create an app that contains something like this image: ![enter image description here](https://i.stack.imgur.com/sYzh0.png) When the user changes the label it should change an image above.. There is more option after the number "24", like a picker. I have the idea to implement an picker in horizontal mode, but I don t now how to change the design of it to be like the image (without the effect well). Any one have an idea how to do that, or something that works like this??? Thanks
How to create an Custom picker?? Or
CC BY-SA 3.0
null
2011-06-08T17:41:03.127
2011-06-08T18:03:48.933
null
null
745,459
[ "iphone", "ios" ]
6,283,061
1
6,284,031
null
7
7,315
When plotting surfaces using `mpl_toolkits.mplot3d.Axes3D.plot_surface()`, lines appear that seem to follow the curve of the surfaces being plotted. For example: ``` X, Y = numpy.meshgrid(numpy.arange(some_range), numpy.arange(some_other_range)) Z1, Z2 = numpy.array(getRate()) #getRate is a function that returns an array of shape (len(some_range), len(some_other_range) fig = pyplot.figure() ax = mplot3d.Axes3D(fig) ax.plot_surface(X, Y, Z1, color='w', alpha=0.2) ax.plot_surface(X, Y, Z2, color='b', alpha=0.2) pyplot.show() ``` Is there any way to get rid of the bloody things so you just have a smooth surface? I've attached an image to show what I mean. ![enter image description here](https://i.stack.imgur.com/bSmoU.png)
Getting rid of artifacts/grid-lines when plotting 3d surfaces
CC BY-SA 3.0
0
2011-06-08T17:51:02.653
2011-06-08T19:21:12.097
null
null
148,765
[ "python", "matplotlib", "mplot3d" ]
6,283,099
1
6,504,942
null
5
596
Attached is the screenshot of the UI that I would like to have in my app. When I click on the listitems on the fragment on the left side I see a arrow pointing(question mark in red) on the list item which was clicked, I would like to know how can we achieve this in UI layout. Any special settings to be set? ![enter image description here](https://i.stack.imgur.com/32wo1.png)
How do create this gmail app effect on Honeycomb
CC BY-SA 3.0
0
2011-06-08T17:54:32.917
2011-06-28T10:19:18.243
null
null
402,637
[ "android-fragments", "android" ]
6,283,665
1
6,284,008
null
2
7,260
In my ASP.NET MVC 3 app I have the pager enabled on my jqGrid, as shown in the picture below: ![jqgrid pager](https://i.stack.imgur.com/pwGIj.png) The textbox for Page (center of image with the number 1 in it) is really wide - way wider than it needs to be. Does anyone know how to adjust the size of this box? This is particularly an issue when my grid is narrower than this one, at that point the textbox for the Page pushes (or is placed) too far to the left and ends up squashing the buttons, as seen in the picture below: ![jqgrid pager, narrower](https://i.stack.imgur.com/gFAt1.png) Here, the two buttons to the left of "Page" (previous page, first page) are under the "Edit" label that is part of my custom Edit button. Notice that the page box is still really wide. Also, the "View 1-10 of 1005" on the right side, visible in the first image, is truncated in the narrower grid. Perhaps there is a setting for this or someone has a workaround. I'd rather the second grid not have to be wider than it needs to (my workaround is to set the `width` to a value rather than `'auto'` or `'inherit'`, but that makes the grid columns wide. A properly sized textbox for Page would leave plenty of room for the pager buttons plus my own button. The pager/custom button for my grid look something like this: ``` .jqGrid('navGrid', '#icecreamPager', { search: true, edit: false, add: false, del: false, searchText: "Search" }, {}, // default settings for edit {}, // default settings for add {}, // default settings for delete {closeOnEscape: true, closeAfterSearch: true, multipleSearch: true }, // settings for search {} ) .jqGrid('navButtonAdd', '#icecreamPager', { caption: "Edit", buttonicon: "ui-icon-pencil", onClickButton: function () { var grid = $("#icecreamGrid"); var rowid = grid.jqGrid('getGridParam', 'selrow'); var cellID = grid.jqGrid('getCell', rowid, 'icecreamID'); var src = '@Url.Action("Edit", "Icecream", new { id = "PLACEHOLDER" })'; document.location = src.replace('PLACEHOLDER', cellID); }, position: "last" }); ``` I've been looking through the jqGrid documentation and examples but haven't happened upon how to set this. Ideas? This is the 4.0 jqGrid.
Resize the jqGrid page edit box
CC BY-SA 3.0
0
2011-06-08T18:46:36.563
2013-02-19T15:01:28.410
2012-11-21T22:56:02.563
315,935
7,862
[ "javascript", "asp.net-mvc-3", "jqgrid" ]
6,283,644
1
6,314,914
null
5
1,111
Please help me with this one, I've been writing a console applicaiton using the AsyncCtpLibrary and the C#5 ctp compiler. First time I got to actually running a code which awaits, I got this: ``` System.BadImageFormatException was unhandled Message=An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) Source=AsyncCtpLibrary StackTrace: Server stack trace: at [...].<Execute>d__1c.MoveNext() at [...].Execute() at [...].<Move>d__1d.MoveNext() in[..]:line 266 Exception rethrown at [0]: at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.<SetException>b__1(Object state) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() InnerException: ``` Am I missing a dll to be referenced? My failing method looks like this: ``` public async override Task<bool> Execute() { //do stuff await stuff; //do other stuff await base.Execute() //do other stuff return true; } ``` I've followed Jon Skeet's advice trying to recreate the mistake little by little, and now I can tell that the await base.Execute() line is the killer! If I comment that line out, everything runs, if I leave it in, calling my method fails IMMEDIATELY (not when reaching the base.Execute()). So I assume the ctp compiler does something freaky. Why? What should I never do? How big is the bug? EDIT: As for 32bit/64bit issue, my system is 32bit (inside a virtual machine, mind you), and as far as I know AsyncCtpLibrary.dll doesn't contain unmanaged code. All my projects (class libraries and single console app) all have build tabs like this:![screenshot](https://i.stack.imgur.com/2hPUF.png) --- EDIT: I also checked the viewer, the AsyncCtpLibrary is loaded without any error: ``` *** Assembly Binder Log Entry (6/10/2011 @ 9:04:11 PM) *** The operation was successful. Bind result: hr = 0x0. The operation completed successfully. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Users\Daver\Documents\Visual Studio 2010\Projects\[...]\bin\Debug\MyApp.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = WIN-N74LV38NLV3\Daver LOG: DisplayName = AsyncCtpLibrary, Version=1.0.4107.18181, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase = file:///C:/Users/Daver/Documents/Visual Studio 2010/Projects/[...]/bin/Debug/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = MyApp.exe Calling assembly : MyLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Users\Daver\Documents\Visual Studio 2010\Projects\[...]\bin\Debug\MyApp.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: AsyncCtpLibrary, Version=1.0.4107.18181, Culture=neutral, PublicKeyToken=31bf3856ad364e35 LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Users/Daver/Documents/Visual Studio 2010/Projects/[...]/bin/Debug/AsyncCtpLibrary.DLL. LOG: Assembly download was successful. Attempting setup of file: C:\Users\Daver\Documents\Visual Studio 2010\Projects\[...]\bin\Debug\AsyncCtpLibrary.dll LOG: Entering run-from-source setup phase. LOG: Assembly Name is: AsyncCtpLibrary, Version=1.0.4107.18181, Culture=neutral, PublicKeyToken=31bf3856ad364e35 LOG: Binding succeeds. Returns assembly from C:\Users\Daver\Documents\Visual Studio 2010\Projects\[...]\bin\Debug\AsyncCtpLibrary.dll. LOG: Assembly is loaded in default load context. ``` I also checked the of the `<Execute>d__1c` compiler-generated class' MoveNext() method, and the only assemblies it references ([assemblyName]) are mscorlib, System.Core, and AsyncCtpLibrary. --- I checked the of both my dll and AsyncCtpLibrary, mine said `.corflags 0x00000003 // ILONLY 32BITREQUIRED`, AsyncCtpLibrary said `.corflags 0x00000009 // ILONLY`, I'm unsure if this can be the problem.
C#5 AsyncCtp BadImageFormatException
CC BY-SA 3.0
0
2011-06-08T18:44:41.540
2011-06-14T15:01:47.433
2011-06-11T09:03:37.117
571,536
571,536
[ "async-await", "c#-5.0" ]
6,283,918
1
6,284,789
null
6
1,984
I'm working on an image processing project in [MATLAB](http://en.wikipedia.org/wiki/MATLAB). In order to preprocess the image more easily, I've divided it in rows and columns, so from a original image (a 2D uint8 matrix), now I have a 3D matrix, like a stack. ![Image decomposition](https://i.stack.imgur.com/ZlTE6.png) After processing each block, I want to recompose the image again. The problem is that the number of rows and columns is dynamic, so I can't use (or don't know how to use it here) the `cat` command or the `[firstsubmatrix secondsubmatrix]` syntax. By the way, I do the division like this: ``` numRows = 3 numCols = 3 blockHeight = originalHeight / numRows; blockWidth = originalWidth / numCols; blocks = uint8(zeros(numCols * numRows, blockHeight, blockWidth)); ``` So for each block, I fill its content using ``` y0 = (row - 1) * rowHeight + 1; y1 = row * rowHeight; x0 = (col - 1) * rowWidth + 1; x1 = col * rowWidth; blocks(numBlock, :, :) = originalImage(y0:y1, x0:x1); ``` Is there a better way of doing it, and way of having the blocks joined?
MATLAB - Merge submatrices
CC BY-SA 3.0
0
2011-06-08T19:11:32.950
2017-08-09T04:56:17.177
2017-08-09T04:56:17.177
52,738
276,451
[ "matlab", "image-processing", "matrix" ]
6,283,949
1
6,286,328
null
2
870
I have asked a question over a the [App Hub](http://forums.create.msdn.com/forums/t/84213.aspx), but not had any responses so I thought I'd ask the gurus here. Is it possible to get the model to display its texture rather than the greyscale that this project outputs? The code can be found on this [site](http://mynameismjp.wordpress.com/samples-tutorials-tools/deferred-shadow-maps-sample/). ![Image render](https://i.stack.imgur.com/KSaB8.png) I have uploaded the source code [here](http://cid-641cd5a494d0369d.office.live.com/self.aspx/.Documents/RenderProblem.rar), because I still can't get this to work correctly. Can someone please help?
Display a models texture
CC BY-SA 3.0
0
2011-06-08T19:13:44.517
2011-06-14T03:32:26.947
2011-06-09T12:17:59.127
410,636
410,636
[ "xna" ]
6,283,941
1
6,284,367
null
12
1,647
I'm trying to paint a full RGB color map that eventually will allow a user to select a color by tapping that visual map at any point. My current code is the following: ``` - (void)drawRect:(CGRect)rect { CGContextRef c = UIGraphicsGetCurrentContext(); for (float x=0; x<320; x++) { for (float y=0; y<416; y++) { float r = x / 320; float g = y / 416; float b = (y < 208) ? y / 208 : (416 - y) / 208; CGContextSetRGBFillColor(c, r, g, b, 1.0); CGContextFillRect(c, CGRectMake(x, y, 1, 1)); } } } ``` The result is not too bad but I'm not satisfied yet. The spectrum misses bright colors including white. The reason is clear: red, green and blue will never reach 1.0 at the same time. ![Screenshot of the resulting color map](https://i.stack.imgur.com/LEZ2f.png) Thanks for all your input! As suggested by I've used the HSB color space and the following code: ``` - (void)drawRect:(CGRect)rect { CGContextRef c = UIGraphicsGetCurrentContext(); int size = 20; for (float x=0; x<320; x+=size) { float s = x < 160 ? 1 : (320 - x) / 160; float b = x < 160 ? x / 160 : 1; for (float y=0; y<416; y+=size) { float h = y / 416; [[UIColor colorWithHue:h saturation:s brightness:b alpha:1.0] setFill]; CGContextFillRect(c, CGRectMake(x, y, size, size)); } } } ``` This results in the following output which is perfect for my needs. ![Result using HSB color space](https://i.stack.imgur.com/0pCgl.png) Thanks for all input!
How to paint a good RGB color map?
CC BY-SA 3.0
0
2011-06-08T19:13:11.430
2011-06-08T22:11:16.307
2011-06-08T22:11:16.307
173,689
173,689
[ "iphone", "objective-c", "ios", "core-graphics" ]
6,284,238
1
6,332,674
null
1
943
Im trying to create a seesaw with ball on its shape, that based on the shapes angle, the ball rolls. Here is the screenshot of it. ![enter image description here](https://i.stack.imgur.com/JONHg.png) So, the shape of the seesaw moves based on the angle generatated by a trackbar value. Here are the variables declared: ``` private const float ONE_DEGREE = 0.0174532924f; private ID3DMesh tab; private ID3DMesh ball; ``` The 'tab' variable is the shape. This method sets the angle of the shape: ``` public void setShapeAngle(float degree) { tabTargetAngle = Util.DegreeToRadian(degree); } ``` And here is the method that updates it: ``` public void Update(int elapsedTime) { if (tab.Pitch != tabTargetAngle) { if (tabTargetAngle > tab.Pitch) { if (tab.Pitch >= (tabTargetAngle - ONE_DEGREE)) { tab.Pitch = tabTargetAngle; } else { tab.Pitch += tabuaSpeed * elapsedTime; } } else if (tabTargetAngle < tab.Pitch) { if (tab.Pitch <= (tabTargetAngle + ONE_DEGREE)) { tab.Pitch = tabTargetAngle; } else { tab.Pitch -= tabuaSpeed * elapsedTime; } } } } ``` All of the objects, are ID3DMesh objects. Here is the code of the ID3DMesh class. ``` public interface ID3DMesh : IDisposable { Color Ambient { get; set; } CollisionTestMethod CollisionDetectionMethod { get; set; } Mesh D3DXMesh { get; } Color Diffuse { get; set; } Color Emissive { get; set; } Material[] Materials { get; set; } ID3DMesh Parent { get; set; } float Pitch { get; set; } Vector3 PivotOffset { get; set; } float PivotOffsetX { get; set; } float PivotOffsetY { get; set; } float PivotOffsetZ { get; set; } Vector3 Position { get; set; } RenderOptions RenderSettings { get; set; } float Roll { get; set; } Vector3 Scale { get; set; } float ScaleX { get; set; } float ScaleY { get; set; } float ScaleZ { get; set; } Color Specular { get; set; } float SpecularSharpness { get; set; } Texture[] Textures { get; set; } Color WireColor { get; set; } float X { get; set; } float Y { get; set; } float Yaw { get; set; } float Z { get; set; } MeshBoundingBox GetBoundingBox(); MeshBoundingSphere GetBoundingSphere(); float GetDepth(); float GetHeight(); float GetWidth(); Matrix GetWorldMatrix(); bool Intersects(ID3DMesh mesh); void Link(ID3DMesh parentMesh, Vector3 linkPosition); void Move(float xAmount, float yAmount, float zAmount); void Render(); void RenderPlanarShadow(Plane groundPlane, Light light, bool allowDoubleBlending); void SetDepth(float depth); void SetDepth(float depth, bool uniformScale); void SetHeight(float height); void SetHeight(float height, bool uniformScale); void SetPlanarShadowOpacity(float shadowOpacity); void SetScale(float amount); void SetScale(float xAmount, float yAmount, float zAmount); void SetSize(float width, float height, float depth); void SetWidth(float width); void SetWidth(float width, bool uniformScale); } ``` I tried to use the Move(float, float, float) method. But it didnt moved as it should. If you could help me with that. Thank you.
Ball Rolling in DirectX with C#
CC BY-SA 3.0
0
2011-06-08T19:39:04.323
2011-06-13T17:25:36.203
null
null
399,459
[ "c#", "directx", "3d", "direct3d" ]
6,284,299
1
6,284,717
null
2
697
Logcat output [http://pastie.org/2039452](http://pastie.org/2039452) My application is stopping in the debugger, and then crashing on this line, but it is strange because it has no error information just a green arrow like so... Any insight on what this arrow means in general would be appreciated... ![enter image description here](https://i.stack.imgur.com/iOWQj.png) Here is LayoutStudentList ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/studentHeader" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="10dp" android:textSize="16sp" android:text="@string/StudentListHeader" android:layout_alignParentTop="true" /> <EditText android:id="@+id/studentSearch" android:layout_width="fill_parent" android:layout_below="@id/studentHeader" android:padding="10dp" android:textSize="12sp" android:editable="true" android:hint="@string/StudentFilterPlaceholder" /> <ListView android:id="@+id/studentListView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/studentSearch" android:padding="10dp" /> </RelativeLayout> ``` The problem is almost definitely in my XML somewhere, as when I replace the layout contents with a single textview and set the text it works fine.
Android Layout issues.. Not sure how to debug
CC BY-SA 3.0
0
2011-06-08T19:44:03.863
2011-06-08T20:37:17.097
2011-06-08T20:37:17.097
555,384
555,384
[ "c#", "android", "visual-studio-2010", "android-layout", "xamarin.android" ]
6,284,640
1
11,267,909
null
1
3,763
I have a PDF that customers can fill out. When they press the "Submit" button, I want to automatically send an email with the completed PDF attached. This should happen server-side with no further interaction from the customer. Currently I have the PDF set to post the data to the server as html form data. My PHP script then processes this data and sends a plain text email with the data. The people receiving the email would prefer to have a copy of the actual PDF, not just plain text. So, in Adobe Acrobat 9 Pro, I set the Submit button to submit as "PDF The complete document" (as seen below). ![enter image description here](https://i.stack.imgur.com/guk1u.png) The problem is, I don't know what to do in PHP to handle this. I assumed it would upload to the server as part of the `$_FILES` array, but `print_r($_FILES)` shows an empty array, and the `count` of both `$_FILES` and `$_POST` is `0`. So my question is, what's happening to the uploaded pdf? and is there anything I can do with PHP to turn that pdf into an email attachment? I don't think I'm running into issues with the file size; the `post_max_size` is 2MB, and the PDF is only about ~725kb. --- I actually ended up sending the FDF data to the server instead of the whole PDF. This meant I had to write a whole bunch of gibberish into my PHP to handle the FDF, but all-in-all it's a smaller upload and it meets the customer's requirements. If you really need to upload the whole PDF, [Patrick's answer below](https://stackoverflow.com/a/11267909/388639) should be correct -- you should be able to find the uploaded pdf in `$GLOBALS['HTTP_RAW_POST_DATA']`.
Can PHP handle a PDF form submitted as a complete PDF document
CC BY-SA 3.0
null
2011-06-08T20:11:17.003
2014-05-14T19:00:50.567
2017-05-23T12:12:05.437
-1
388,639
[ "php", "pdf", "file-upload" ]
6,284,714
1
6,288,609
null
4
3,983
I have a situation where I want to load some html ``` <html><body style="margin: 0; padding: 0;"><img src="/++video?cameraNum=15&width=640&height=480&noScaleUp=1&auth=cmhiOkJpZ01hYw==&7427" width=341 height=256></body></html> ``` When I set the scalesPageToFit = YES in (checked in IB) I can pinch to zoom the webview but the initial load of the image is too small for the webview: ![enter image description here](https://i.stack.imgur.com/axCON.png) If I set scalesPageToFit = NO in (unchecked in IB) then the video feed scales properly upon loading, but now the user can not pinch to zoom the picture. ![enter image description here](https://i.stack.imgur.com/2i9QA.png) Of course, what I need is for the webpage to load up properly sized AND then allow the user to pinch to zoom, double tap to reset gestures. Anyone know of a way to do this in either code or javascript etc... ? Thanks, Rob
UIWebView toggling scalespagetofit
CC BY-SA 3.0
0
2011-06-08T20:16:34.067
2012-06-26T11:48:36.427
2011-06-08T20:22:37.417
334,781
334,781
[ "iphone", "ios", "ipad", "uiwebview" ]
6,284,738
1
6,286,530
null
1
991
I have created a small app having navigation UI similar to [jQuery Mobile](http://jquerymobile.com/demos/1.0a4.1/) site. I have a small issue with making clickable buttons. When you look at the main page of above link, you will see small arrows at the right-most section of each list item, the problem is these arrows are not clickable. How can I make them clickable. ![](https://farm6.static.flickr.com/5105/5812474899_e9a4802efa.jpg) My code looks like this: ``` <div data-role="content"> <ul data-role="listview" data-inset="true" > <li data-role="list-divider" style="background: #969696">Stuffs</li> <li> <a href="#link1"> <img src="someImageURL" align="middle" /> <h3>Stuff1</h3> <p>Stuff1 description</p> </a> </li> --- some <li> tags ```
jQuery Mobile doc and demos site: arrows are not clickable
CC BY-SA 3.0
0
2011-06-08T20:18:26.070
2011-06-30T08:07:36.920
2017-02-08T14:32:25.843
-1
177,758
[ "hyperlink", "jquery-mobile", "html-lists" ]
6,284,852
1
6,284,915
null
1
130
Sorry, I feel like making someone else to do my job but I feel really lost here, here's an image of what I got now: ![Curretn layout](https://i.stack.imgur.com/2xkHV.gif) Where the two "Anonomymos" are is ment to be the place for tha active users in the chat, however, the more people I add to the chat the `<div>` tag where the message is posted goes under the `<div>` tag for the active users and obviously I want to be shown next to each other.I use a premade CSS style sheet for this, and hope that it could be changed in way to work for my needs, but I have poor knowledge about CSS so I'm not even sure if it is usable in my case, anyways, here is the CSS style that I use at the moment: ``` #ActiveUsers { clear:both; border: 1px solid #cccccc; width: 356px; background: #E9ECEF; font-family: Arial, Helvetica, sans-serif; font-weight:bold; font-size : 12px; padding:2px; margin-bottom:10px; margin-top:10px; margin-left: 60px; } #chat { margin: auto; border: 1px solid #cccccc; width: 356px; background: #E9ECEF; text-align:left; font-family: Arial, Helvetica, sans-serif; font-weight:bold; font-size : 12px; padding:2px; height:400px; overflow:auto; } #main { margin: auto; border: 1px solid #cccccc; width: 600px; min-height:150px; background: #F1F3F5; font-family: Arial, Helvetica, sans-serif; font-weight:bold; font-size : 12px; border-collapse:collapse; } #sender { margin-left: 125px; } ``` And here is the structure in the .php file : ``` <div id="main"> <div id="ActiveUsers"></div> <div id="chat"></div> <div id="sender"> Your message: <input type="text" name="msg" size="30" id="msg" /> <button onclick="doWork(document.getElementById('msg').value);">Send</button> </div> <span id="logOut"> <form action="logout.php"> <input type="submit" value="Logout"/> </form> </span> </div> ``` P.S Just to mention, now the `#ActiveUsers width` is more than the free space but even if I make it 30px, the `#chat <div>` still goes under and under with every new user that is logged.
Just lost with a CSS style
CC BY-SA 3.0
null
2011-06-08T20:29:10.683
2011-06-08T20:34:46.757
null
null
649,737
[ "html", "css" ]
6,284,864
1
6,285,200
null
0
364
This is the data in my database table: ![enter image description here](https://i.stack.imgur.com/To1cY.png) That's my business object: ``` public class Unit { public Unit() { MemberIdList = new List<String>(); } public String UnitType { get; set; } public String UnitZoom { get; set; } public String MemberZoom { get; set; } public List<String> MemberIdList { get; set; } } ``` The whole data from database is fetched and put into a DataTable. After I return a List with 3 Unit objects holding this data: ![enter image description here](https://i.stack.imgur.com/JNDwP.png) Now guess how I got the data into the 3 business objects... that's the way I would like to know. A hint might be Distinct and IEqualityComparer for the 3 properties... just an assumption... Question updated: Please read the comment in the code :) ``` var groupedCollection = table.AsEnumerable() .GroupBy(row => new { UType = row.Field<string>("UnitType"), UZoom = row.Field<string>("UnitZoom"), MZoom = row.Field<string>("MemberZoom"), MOrder = row.Field<int>("MemberOrder"), ``` // I DO NOT WANT the MemberOrder to be in the Group Key, but later on I use this Property to order by it... }); ``` var unitCollection = groupedCollection .Select(g => new Unit { UnitType = g.Key.UType, UnitZoom = g.Key.UZoom, MemberZoom = g.Key.MZoom, MemberIdList = g.Select(r => r.Field<string>("MemberId")).OrderBy(b => g.Key.MOrder).ToList(), }); List<Unit> units = unitCollection.ToList(); ```
Read duplicate datarows from database into business objects and distinct them using LINQ
CC BY-SA 3.0
0
2011-06-08T20:30:21.107
2015-12-19T22:26:12.393
2015-12-19T22:26:12.393
4,370,109
252,289
[ "c#", "linq", "duplicates", "reshape" ]
6,285,139
1
6,285,299
null
0
1,057
I've created this view using XCode4, dropping a UILabel onto the top part of a UITableView. The Label is connected to an IBOutlet of the File's owner but I can't change it programmaticaly. ![enter image description here](https://i.stack.imgur.com/2jlCv.png) That part of text doesn't seem to be into a header. Where is it ?
iPhone - Changing label text into a TableView "header"
CC BY-SA 3.0
null
2011-06-08T20:55:17.837
2011-06-08T21:08:51.747
null
null
499,417
[ "iphone", "uitableview", "text", "uilabel" ]
6,285,534
1
null
null
0
141
I have just freshly installed Fedora 15 and installed eclipse via the "Add/Remove Software".I proceeded to install the Helios plugins via `http://download.eclipse.org/releases/helios` then followed the directions in installing the Android SDK. I am now stuck when trying to download a package from the `Android AVD and SDK Manager`, the progress bar just stops on "Validate XML" and doesn't budge. I tried leaving it overnight hoping that at least it might throw an error but it remained the same. Here is a screenshot: ![enter image description here](https://i.stack.imgur.com/ggQAD.png) I noticed since I installed Helios the following error pops up when starting up eclipse, I am unsure if it is contributing towards the problem : ![enter image description here](https://i.stack.imgur.com/wBnPa.png)
Problem with setting up Android SDK
CC BY-SA 3.0
null
2011-06-08T21:31:22.453
2011-06-08T21:40:42.703
null
null
45,471
[ "android" ]
6,285,749
1
6,285,803
null
0
80
i have an array of some values that i use in a mathematical formula, and i want to know which is the better data structure(NSArray or NSDictionary or ...) to use? Thanks. ![enter image description here](https://i.stack.imgur.com/7QgmD.png)
Which type of data structure use to store this data on iphone
CC BY-SA 3.0
null
2011-06-08T21:56:21.290
2011-06-08T22:35:18.697
null
null
764,316
[ "iphone", "data-structures", "nsarray", "nsdictionary" ]
6,286,091
1
null
null
0
1,362
The code below echoes out a Twitter API tweet link and the Facebook Like and Send buttons. They function correctly. I want them to display horizontally with the Tweet link on the left and the Facebook buttons on the right, and they do in Chrome, Firefox, and Safari. But in Internet Explorer 8, they're not quite horizontal. The order is still the same, but the Tweet link is submerged lower than the level of the Facebook buttons. Screenshots are below. Chrome: ![enter image description here](https://i.stack.imgur.com/vsrC7.jpg) Internet Explorer 8: ![enter image description here](https://i.stack.imgur.com/nh97l.png) How could I make them appear horizontally in IE 8 like they do in Chrome? Thanks in advance, John The code: ``` echo "<div class='commenttweet'>"; echo "<a href='$url'>Tweet this</a>"; echo "</div>"; echo "<div class='commenttweet'>"; echo " "; echo "</div>"; echo '<table class="like">'; echo '<tr>'; echo '<td>'; echo '</td>'; echo '<td>'; echo '<div id="fb-root"></div>'; echo "<script> window.fbAsyncInit = function() { FB.init({appId: 'your app id', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); echo '</script>"; echo '</td>'; echo '</tr>'; echo '</table>'; echo '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">'; echo '<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" send="true" layout="button_count" width="450" show_faces="false" font="arial"></fb:like>'; ``` The CSS: ``` .commenttweet { float: left; margin-left:20px; margin-top:15px; color: #004993; font-family: Georgia, "Times New Roman", Times, serif; font-size: 10px; font-weight: normal; height: 15px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; padding-top: 2px; } .commenttweet a{ margin-left:0px; margin-top:15px; color: #004284; width:150px; border:2px solid #004284; font-family:Georgia, "Times New Roman", Times, serif; font-size: 15px; font-weight: normal; height: 15px; padding-bottom: 2px; text-decoration:none; padding-left: 5px; padding-right: 5px; padding-top: 2px; } .commenttweet a:hover{ margin-left:0px; margin-top:15px; width:150px; background-color: #CAE1FF; color: #004284; border:2px solid #004284; font-family:Georgia, "Times New Roman", Times, serif; font-size: 15px; font-weight: normal; height: 15px; padding-bottom: 2px; text-decoration:none; padding-left: 5px; padding-right: 5px; padding-top: 2px; } table.like { float: left; margin-top: 5px; margin-left: 250px !important; text-align: left; font-family: Arial, Helvetica, sans-serif; font-weight: normal; font-size: 14px; color: #000000; width: 550px; table-layout: inherit; background-color: #FFFFFF; border: 2px #FFFFFF; border-collapse: collapse; border-spacing: 100px; padding-left: 200px !important; padding-bottom: 0px; text-decoration: none; vertical-align: text-bottom; } table.like td { border: 0px solid #fff; text-align: left; height: 10px; width:100px; } ```
Tweet Link and Facebook Like & Send Buttons Horizontal in Chrome, Safari, and Firefox, but not in Internet Explorer 8
CC BY-SA 3.0
null
2011-06-08T22:32:52.523
2011-06-08T23:02:36.700
2011-06-08T22:45:50.313
364,708
158,865
[ "html", "css", "internet-explorer-8", "cross-browser" ]
6,286,128
1
6,286,186
null
45
132,357
I want to make a div fit the initial height and width of a users screen. I think the following crudely drawn diagram explain this better: ![enter image description here](https://i.stack.imgur.com/ayGZM.png) ``` #div { width: 100%; height: 100%; } ``` does not seem to work
Making a div fit the initial screen
CC BY-SA 3.0
0
2011-06-08T22:38:35.640
2022-09-13T15:56:50.933
null
null
496,669
[ "html", "css" ]
6,286,115
1
6,286,164
null
2
1,006
I have a settings view with 3 sections. Some cells have different styles: Default or Value1. When I swipe fast up or down, or change view and come back, the text supposed to be in a cell (for example the detailTextLabel in my cell with StyleValue1) is either not here anymore, or sometimes in a cell above or below... Here is the screenshots: the first is the normal state, the second the detailTextLabel from Version went to the cell above, and in the third the Measurement System detailTextLabel disappeared... ![Normal behavior of cells](https://i.stack.imgur.com/AUtfZ.png) ![enter image description here](https://i.stack.imgur.com/SOsFL.png) ![enter image description here](https://i.stack.imgur.com/LqJmJ.png) And here is my code: ``` - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { if (indexPath.section == 1 && indexPath.row == 0) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; } else if (indexPath.section == 2 && indexPath.row == 2) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; } else { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } } // Selection style. cell.selectionStyle = UITableViewCellSelectionStyleGray; // Vehicles cells. if (indexPath.section == 0 && indexPath.row < [self.userCarsArray count]) { cell.textLabel.textColor = [UIColor darkGrayColor]; cell.textLabel.text = [[NSString stringWithFormat:@"%@ %@ %@", [[self.userCarsArray objectAtIndex:indexPath.row] year], [[self.userCarsArray objectAtIndex:indexPath.row] make], [[self.userCarsArray objectAtIndex:indexPath.row] model]] uppercaseString]; // Checkmark if current car. if ([[EcoAppAppDelegate userCar] idCar] == [[self.userCarsArray objectAtIndex:indexPath.row] idCar]) { cell.accessoryType = UITableViewCellAccessoryCheckmark; selectedCarPath = indexPath; } else { cell.accessoryType = UITableViewCellAccessoryNone; } } // Add car cell. if (indexPath.section == 0 && indexPath.row == [self.userCarsArray count]) { cell.accessoryType = UITableViewCellAccessoryNone; cell.textLabel.textAlignment = UITextAlignmentCenter; cell.textLabel.textColor = [UIColor blackColor]; cell.textLabel.text = @"Add Vehicle"; } // General cells. if (indexPath.section == 1 && indexPath.row == 0) { cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; cell.textLabel.text = @"Measurement System"; cell.textLabel.textColor = [UIColor darkGrayColor]; if ([EcoAppAppDelegate measurement] == MeasurementTypeMile) cell.detailTextLabel.text = @"Miles"; else cell.detailTextLabel.text = @"Meters"; } // Information cells. if (indexPath.section == 2 && indexPath.row == 0) { cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; cell.textLabel.text = @"About"; cell.textLabel.textColor = [UIColor darkGrayColor]; } if (indexPath.section == 2 && indexPath.row == 1) { cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; cell.textLabel.text = @"License"; cell.textLabel.textColor = [UIColor darkGrayColor]; } if (indexPath.section == 2 && indexPath.row == 2) { cell.accessoryType = UITableViewCellAccessoryNone; cell.textLabel.text = @"Version"; cell.textLabel.textColor = [UIColor darkGrayColor]; cell.detailTextLabel.text = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]; cell.selectionStyle = UITableViewCellSelectionStyleNone; } return cell; } ``` Do you know how I can fix this issue? Thanks!
iPhone Weird behavior UITableView cells
CC BY-SA 3.0
null
2011-06-08T22:37:19.947
2011-06-08T22:43:27.740
null
null
318,830
[ "iphone", "ios", "uitableview", "detailtextlabel" ]
6,286,331
1
6,286,359
null
0
297
I've written a small sample AIR application in Flex to be deployed on iOS and Android, but I'm wondering how to go about setting up a way to publish it as Flash as well. I'm using Flash Builder 4.5. Any tips for this AIR noob? EDIT: I should add that I've tried to add a new Run Configuration, but did not see a Flash app option listed there. I'm sure I'm missing something fundamental. After all, this is FLASH Builder. UPDATE: So this partially did the trick... I went to Run Configurations again and created a new launch configuration called "Flash_configuration" and pointed it at my project like so... ![New launch configuration in Run Configurations](https://i.stack.imgur.com/vIht5.png) However, upon hitting "Run," the app launches in Adobe Flash Player, but is completely blank. The mobile flex contains buttons and UI elements in the View, but these do not show up in Flash Player. Perhaps the Mobile Flex framework elements are not directly translated to elements understood by Flash? If so, will I have to use some actionscipt to detect the platform and replace those mobile elements with flash-friendly ones? I would sure hate to rewrite/draw.
How to (re)package Mobile AIR app for Flash?
CC BY-SA 3.0
null
2011-06-08T23:05:05.590
2014-08-28T07:08:21.677
2011-06-08T23:47:49.737
205,926
205,926
[ "flash", "air", "flash-builder" ]
6,286,391
1
6,286,775
null
3
810
The question is below the solution. Going off of what Scott Bruns suggested that branching by version might be our problem, I decided to thoroughly read through the Team Foundation Server 2010 documentation, as well as the Microsoft Patterns and Practices. The resources used are as follows: Chapter 5 - Defining Your Branching and Merging Strategy [http://msdn.microsoft.com/en-us/library/bb668955.aspx](http://msdn.microsoft.com/en-us/library/bb668955.aspx) ![Branching Strategy](https://i.stack.imgur.com/pllqa.png) I have chosen to utilize the following structure. ``` TeamCollection TeamProject Development Feature A Feature B Main TeamApplication Code Project1 Project2 Project3 MyClassLibrary Documents Releases 1.0 2.0 2.1 ``` The understanding of this is quite simple. The main code base is in Main and contains the code base in its entirety, but not multiple copies or multiple versions. Furthermore, if a feature needs developed a single project can be branched into the Development branch, instead of branching the entire solution. The result is that the change would be merged back into the main repository. This provides isolation so that when a feature is being developed, it does not break the main code base. So, how this solves my issue of maintaining different builds, is that when a new build is released, this is the scenario when the solution in its entirety would be branched into Releases. So, essentially, releases contains a full copy of the source code for each release, which makes sense. So hotfixes, bugs, and maintenance can be provided for specific releases, and merged back into the Main repository once the fixes and changes are stable. So in the end, the Main code base would essentially always be the latest stable build of the software, while development isolates features and untested code, and releases isolates your builds and allows post-release maintenance. The other part of the problem that lead to the solution was thinking we needed to branch for just any type of change that is not a 'fix'. Understanding you should only branch when absolutely necessary, we would now be applying fixes, changes, and the like to existing code bases and merge, instead of creating entire new branches. I hope I explained this well. I am still getting a feel for Team Foundation Server 2010 and learning this well. A lot of answers can be aquired by thoroughly reading through the MSDN docs, Patterns and Practices, and the like. Some of it is a bit hard to understand at first, but eventually you catch on. Hope this helps anyone with a similar scenario. I am still sketchy about a good method of branching features, whether the entire code base from main should be branched or just single projects. Like if just a new section of a WinForm needed added, should be able to just branch the form file, but without a project you don't have a designer, so small things like this seem like an issue. I did some searching on version control branching here on SO in regards to branching structures, and strategies, but none of those questions or answers fit my specific scenario, so here we go. My source control structure is as follows: ``` TeamCollection TeamProject Code 1.0 Project1 Project2 Project3 MyClassLibrary 1.1 Project1 Project2 Project3 MyClassLibrary 2.0 Project1 Project2 Project3 MyClassLibrary ... ``` The usual method I use for branching is to just branch the entire version directory. Say I want to make a new feature from version 2.0, I would branch the entire 2.0 folder to 2.1. The problem I have encountered with this approach now, is that this project is 444mb in size, so with my current method of branching each version is 444mb and utilizes a lot of disk space. The other issue is its not necessary to create duplicates of all the files that do not need changed. In the project, I have a single Class Library that I would like to branch from 2.0 to 2.1. I need to make just a small change to the library, but would like to separate this change from the 2.0 code base. The issue I am having is understanding how I should proceed to branch this. If I branch as follows: ``` TeamCollection TeamProject Code 2.0 Project1 Project2 Project3 MyClassLibrary 2.1 MyClassLibrary ``` I am trying to understand how I would then build a release of the entire product, but that would include version 2.1 of the class library if it is isolated from the other projects. I don't necessarily want the 2.0 code base to be changed to reference the 2.1 Class Library, because 2.1 should not be part of 2.0. My other approach thought was to do: ``` TeamCollection TeamProject Code 2.0 Project1 Project2 Project3 MyClassLibrary MyClassLibrary-2.1 (following the default suggestion of TFS Explorer) ``` This, makes some sense as the 2.1 branch is a subset of the code base 2.0 because it is a minor feature change, but this also creates an extremely messy file system hierarchy for large projects, and again, I am trying to understand how I would build version 2.1 of the entire project, without changing references in version 2.0. Again, 2.1 should be a separate build from 2.0. My only solution is again to just branch the entire project, but I am trying to find professional help for this since the project is becoming large in size and branching all 444mb should not be necessary. I would like to use the first option I suggested where I have 2.1/MyClassLibrary, but I would really need help understanding how I would be creating a build of the whole product with only the single project in the 2.1 directory.
How to branch a single Class Library for a minor change (2.0 to 2.1) without branching the entire solution
CC BY-SA 3.0
0
2011-06-08T23:15:29.757
2011-06-09T14:49:27.510
2011-06-09T14:49:27.510
52,589
52,589
[ "version-control", "tfs", "branching-and-merging" ]
6,286,733
1
6,286,779
null
15
10,254
Im using the js SyntaxHighlighter 3.0.83 from [http://alexgorbatchev.com/SyntaxHighlighter/](http://alexgorbatchev.com/SyntaxHighlighter/) I've been googling the entire world now it seem but cant really find how to enable line breaks. Instad i get a horizontal scrollbar, which is good sometimes but not in my scenario. In example ![Horizontal scrollbar](https://i.stack.imgur.com/I0yAm.png) Anyone out there who know the way around this?
Automatic line break in js SyntaxHighlighter
CC BY-SA 3.0
0
2011-06-09T00:13:32.043
2013-05-05T08:35:18.697
2012-05-06T16:17:30.247
111,575
296,568
[ "javascript", "syntaxhighlighter" ]
6,287,002
1
6,293,144
null
4
1,277
Before I start I should say I know this seems like a long shot, however I figured it was worth a try. One app I am working on right now is a Mac Statusbar App. It has a NSStatusItem in the menubar and when clicked it will display a custom window with a popover appearance (like on iPad or like Fantastical has on the mac.) Anyway I started testing this by inserting a single nsmenu item in the status items menu. The view has set clear color for the background color on its window. However this still doesn't quite work as you can see in the pic below ![enter image description here](https://i.stack.imgur.com/b0JXb.png) 1. There is still a small white thin line above and below the item 2. The clear area isn't clear, its like it has a blur filter on it Other than that, it works fantastically great. I just didn't know if anybody else has ever attempted anything like this before and figured out how to overcome these 2 issues which seem to be the only thing preventing this from working. If there is no way to do this I may have to resort to using a custom view for the NSStatusItem so I can get the coordinates on screen to position my own window below the NSStatusItem.
Fake NSWindow with a NSView inside a NSMenuItem
CC BY-SA 3.0
0
2011-06-09T00:58:36.783
2011-06-09T13:00:05.643
null
null
2,750
[ "objective-c", "cocoa", "nsmenuitem", "nsstatusitem" ]
6,287,212
1
6,287,249
null
0
110
I'm using this code... ``` <div id="app"> <div id="app-actionbar"> topbar </div> <div id="app-userinfo"> sidebar </div> <div id="app-content"> content </div> </div> /** Styling **/ #app { border:1px solid #666; } #app-actionbar { color: #333; width: 900px; float: left; height: 45px; background: #D9D9DC; margin-top:10px; } #app-content { float: left; color: #333; background: #FFFFFF; height: 350px; width: 725px; display: inline; } #app-userinfo { color: #333; background:#F2F2F2; height: 350px; width: 175px; float: left; } ``` However, it's not working like I want it to. I want to add a border around it, but its not working (and its moving the content down). ![enter image description here](https://i.stack.imgur.com/DwRb2.png)
CSS/HTML Layout Help
CC BY-SA 3.0
null
2011-06-09T01:46:22.673
2011-06-09T02:16:32.993
null
null
464,901
[ "html", "css" ]
6,287,256
1
6,287,941
null
3
2,586
In my ASP.NET 4.0 website, which uses master pages, I've disabled viewstate sitewide in web.config: ``` <pages enableViewState="false" /> ``` and am trying to enable it only when absolutely necessary. I've run into an issue with a DropDownList control (no databinding going on, just hardcoded items): ``` <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="150px" ViewStateMode="Enabled" EnableViewState="True"> <asp:ListItem>Chocolate</asp:ListItem> <asp:ListItem>Strawberry</asp:ListItem> <asp:ListItem>Vanilla</asp:ListItem> </asp:DropDownList> ``` Even though I've enabled view state for this particular control, there's a problem with selecting the first item: ![enter image description here](https://i.stack.imgur.com/Eh9ta.png) ``` protected void DropDownList1_SelectedIndexChanged (object sender, EventArgs e) { TextBox1.Text = (sender as DropDownList).SelectedValue; } ``` The expected result is that whenever "Chocolate" is selected TextBox1 will display "Chocolate". But what I'm seeing is that TextBox1 only changes when Strawberry or Vanilla is selected. In the example above I selected Strawberry and then Chocolate. In other words, the DropDownList SelectedIndexChanged isn't firing when the first item is selected, but is firing when the second or third is selected. Here are the property settings for the DropDownList: ![enter image description here](https://i.stack.imgur.com/DLqCQ.png) I tried the same code starting from a blank project and the page works as expected. (Selecting the first item does fire the event). Thanks in advance for any suggestions.
Viewstate issue with first dropdownlist item selection
CC BY-SA 3.0
0
2011-06-09T01:55:15.967
2011-06-09T04:14:52.647
2011-06-09T04:14:52.647
90,837
90,837
[ "asp.net", "drop-down-menu", "viewstate", "selectedindexchanged" ]
6,287,481
1
6,287,555
null
2
857
What would be the best way to do the following "speech bubbles" in html/css? ![enter image description here](https://i.stack.imgur.com/OOw0a.png) Thanks!
CSS/HTML Speech Bubbles
CC BY-SA 3.0
null
2011-06-09T02:33:41.360
2011-06-09T02:42:58.117
null
null
464,901
[ "html", "css" ]
6,287,617
1
6,287,653
null
5
47,407
I'm trying to "combine" the textbox and dropdown box. I can't seem to get them lined up though. ![enter image description here](https://i.stack.imgur.com/Agf0D.png) My code: ``` <input name="" type="text" maxlength="50" style="width: 665px; padding:0px; z-index: 2; position: absolute;" /> <select name="" style="z-index: 1; width: 695px; padding:0px; position:absolute;"> <option value="Value for Item 1" title="Title for Item 1">Item 1</option> <option value="Value for Item 2" title="Title for Item 2">Item 2</option> <option value="Value for Item 3" title="Title for Item 3">Item 3</option> </select> ```
Textbox/Dropdown Combination
CC BY-SA 3.0
0
2011-06-09T02:54:20.173
2019-02-20T05:06:48.633
null
null
464,901
[ "html", "css" ]
6,287,643
1
6,311,406
null
4
1,807
Im creating an RSS reader app...but I have noticed that UIWebView renders the RSS feed very differently than Safari does. This is the RSS feed... [http://www.sigmapi2.org/index.php?option=com_ninjarsssyndicator&feed_id=2&format=raw](http://www.sigmapi2.org/index.php?option=com_ninjarsssyndicator&feed_id=2&format=raw) This is what I want my UIWebView to look like...this is a screenshot from iOS' Mobile Safari ![enter image description here](https://i.stack.imgur.com/QHOsu.jpg) ``` NSURL *url = [NSURL URLWithString:@"http://www.sigmapi2.org/index.php?option=com_ninjarsssyndicator&feed_id=1&format=raw"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView1 loadRequest:request];} ``` produces a blank page in the UIWebView And this code below...(Address taken from mobile safari when it loaded the RSS feed like I wanted it to)... ``` NSURL *url = [NSURL URLWithString:@"http://reader.mac.com/mobile/v1/www.sigmapi2.org/index.php?option=com_ninjarsssyndicator&feed_id=1&format=raw"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView1 loadRequest:request];} ``` shows this... ![enter image description here](https://i.stack.imgur.com/QV4GL.jpg) any help would greatly be appreciated.
iOS UIWebView of RSS to look more like Safari and stay inside app
CC BY-SA 3.0
0
2011-06-09T02:58:02.093
2012-02-15T22:06:50.833
null
null
225,266
[ "ios4", "rss", "uiwebview", "mobile-safari" ]
6,287,690
1
null
null
2
708
I am using `imagemagick/php` to make a jpeg file from a PDF. Input PDF file: [PDF-file](http://keysymmetrics.com.au/floor-plan.pdf) Output Jpeg file: ![output jpeg](https://i.stack.imgur.com/yykIs.jpg) [Jpeg-file](http://keysymmetrics.com.au/floor-plan.jpg) The textures on the output file look wrong near the bottom. This is the same result if I make a PNG also. I have tired different floor plans, other textures play up also in a similar way. ``` $im = new Imagick(); $im->setResolution( 300, 300 ); $im->readImage( $input_path ); $im->setImageFileName($output_path); $im->writeImage(); ``` ``` PHP Version 5.3.5 ImageMagick 6.4.8 ``` Thank you.
Imagemagick - PDF to Jpeg/Raster texture issue
CC BY-SA 3.0
null
2011-06-09T03:06:00.287
2011-12-01T07:52:44.627
2011-12-01T07:52:44.627
234,976
790,188
[ "php", "pdf", "imagemagick", "raster", "image-conversion" ]
6,287,759
1
6,590,115
null
0
892
Yesterday, I was having trouble trying to publish a Visual Studio web app to the wwwroot folder. I could publish it to other folders. The [suggested solution](https://stackoverflow.com/questions/6274285/visual-studio-2010-unable-to-publish-to-local-web-site-access-denied) to fix the issue was to give the logged on user full rights to the folder. That worked, but I was puzzled because the active user, BESI-CHAD/CHAD, was an Admin user (see image at the bottom of the linked page.) Now, I am trying to uninstall and re-install TFS and I get the following error suggesting that the user Chad is not in the ServerAdmin role-but I am in that role! ![enter image description here](https://i.stack.imgur.com/Vh0QC.png) What is going on here? Error [ Configuration Database ] TF255286: An error occurred while verifying you have the SQL server permission or role membership: serveradmin. You may not even have enough permissions to check. Consider adding your account to the sysadmin server role. The server hosting the databases is BESI-CHAD. The error was: TF30040: The database is not correctly configured. Contact your Team Foundation Server administrator.. See the log for more details. I ended up using another SQL instance for my TFS db server, an express instance. That worked. I didnt really want another instance. Now, I want to know what happened. If there is a good theory, I might blow away Express and reinstall TFS again.
Security Error installing TFS 2010
CC BY-SA 3.0
null
2011-06-09T03:19:28.500
2011-07-05T23:47:00.573
2017-05-23T12:26:59.697
-1
109,676
[ "security" ]
6,287,937
1
6,288,488
null
1
243
I have submission web page, after submission i am sending the data to workflow to save it to the database this also stores the instance created by the workflow in workflow database. my expection is to have instance in DB as IDLE. and whenever i required i can reload the instance. but currently it creates record in instance table of workflow database with executionstatus = closed and iscompleted = 1. Please let me know how to set it to IDLE(or relevant status) ![enter image description here](https://i.stack.imgur.com/c9PsC.jpg)
workflow 4.0 persistence status change
CC BY-SA 3.0
null
2011-06-09T03:59:10.647
2011-06-09T05:34:44.863
null
null
532,384
[ ".net-4.0", "workflow", "workflow-foundation-4", "sqlworkflowpersistencese" ]
6,288,064
1
null
null
0
341
I'm making a Unicode translator in Java. I did all hard parts, but now I want to add a resizable, relocatable image to the textpane. The user must be able to resize image with its corners and drag & drop the image within the textpane where he likes. (like Microsoft Word or Photoshop) Something like this: ![screen shot of desired resize handles](https://i.stack.imgur.com/3sV1n.png) I tried the Styled Document properties. But I couldn't find way except inserting only an `ImageIcon`.
how to make java run time sizable image box
CC BY-SA 3.0
null
2011-06-09T04:22:58.943
2015-06-25T17:53:32.507
2015-06-25T17:53:32.507
95,674
593,837
[ "java", "imageicon" ]
6,288,179
1
6,309,285
null
-2
396
``` import java.awt.Color; import java.awt.Point; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Random; import javax.imageio.ImageIO; public class Voronoi { public static void main(String args[]) { Random r = new Random(); BufferedImage buf = new BufferedImage(500, 500, BufferedImage.TYPE_3BYTE_BGR); Point[] points = new Point[50]; for(int i = 0; i < points.length; i++) { points[i] = new Point(r.nextInt(500), r.nextInt(500)); } int b = Color.BLUE.getRGB(); int w = Color.WHITE.getRGB(); int g = Color.GREEN.getRGB(); for(int i = 0; i < points.length; i++) { buf.setRGB(points[i].x, points[i].y, b); } ArrayList<Point> dis = new ArrayList<Point>(); int min = 5000; for(int i = 0; i < buf.getWidth(); i++) { for(int j = 0; j < buf.getHeight(); j++) { for(int k = 0; k < points.length; k++) { if(buf.getRGB(i, j) == b) continue; int d = distance(i, points[k].x, j, points[k].y); if(d == min) { dis.add(points[k]); } else if(d < min) { dis.clear(); dis.add(points[k]); min = d; } } if(dis.size() == 1) { buf.setRGB(i, j, w); } else if(dis.size() > 1) { Point m = midPoint(dis); buf.setRGB(m.x, m.y, g); } dis.clear(); min = 5000; } } try { ImageIO.write(buf, "png", new File("this.png")); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public static int distance(int x1, int y1, int x2, int y2) { return (int)Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2)); } public static Point midPoint(ArrayList<Point> p) { int totX = 0; int totY = 0; for(Point a: p) { totX += a.x; totY += a.y; } totX /= p.size(); totY /= p.size(); return new Point(totX, totY); } } ``` All it generates is something like this: ![enter image description here](https://i.stack.imgur.com/JuiKN.png) What the code is supposed to be doing: Go through each pixel, one by one, and find the point(s) [The blue dots] closest to each pixel. If there is only one point, color that pixel white. However if there are multiple points, color that green.
What is incorrect with my Voronoi generator?
CC BY-SA 3.0
0
2011-06-09T04:40:15.070
2011-06-10T16:30:33.863
2011-06-10T16:30:33.863
50,476
215,515
[ "java", "algorithm", "voronoi" ]
6,288,404
1
6,288,413
null
4
243
Please see this image for what I'm referring to as a static box: ![enter image description here](https://i.stack.imgur.com/0NLC5.gif) I'm not sure if that is it's proper name. The box should be able to hold an arbitrary child control (panel etc.) inside.
Does WPF have a "static box" control?
CC BY-SA 3.0
null
2011-06-09T05:18:43.697
2011-06-09T05:31:55.883
2011-06-09T05:25:26.800
751,090
141,719
[ "c#", "wpf", "user-interface", "wpf-controls" ]
6,288,531
1
6,301,891
null
3
654
I am running a nant task to package all the source files into a zip and in the same task, I want to run a svn diff command on one particular folder to notify changes made within that source. The command that I want to execute, in its simplest form, from the command prompt is : ``` svn diff $Special_Folder$ > Changes_In_$Special_Folder$.patch ``` I have the following xml in a nant target ``` <svn command="diff" destination="..\build\Database\Scripts" uri ="http://SVN-server/PATH/To/Src"> </svn> ``` However, I am getting an error from svn that says ![error from svn](https://i.stack.imgur.com/YU8bm.png). What am I doing wrong?
executing svn diff from a nant task
CC BY-SA 3.0
null
2011-06-09T05:41:14.767
2011-06-10T12:56:07.673
2011-06-10T12:56:07.673
223,656
223,656
[ "svn", "nant" ]
6,288,811
1
6,295,806
null
4
5,380
I would like to achieve a popup/overlay screen like Places (i`m more interested how can i place that screen for example in the right/left side of the screen ) in the android maps application (image below). I can create an activity and use the Dialog theme, this mostly resolve my problem, but it placed center in the screen. Somebody have any better idea how i can create a popup/overlay screen like the places in a non-map application and place to top/right of the screen ?. My guess they did it with map overlays. ![Places in map](https://i.stack.imgur.com/fQjEv.png)
Popup/Overlay screen in android honeycomb
CC BY-SA 3.0
0
2011-06-09T06:18:46.923
2013-01-29T02:47:19.753
2013-01-29T02:47:19.753
3,947
199,498
[ "android", "google-maps", "popup", "overlay", "android-3.0-honeycomb" ]