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,317,542 | 1 | 6,317,606 | null | 0 | 513 |
So, currently i'm programming my own website. The design is way not finished yet, so don't blame me for that xD Well, I've got a very small problem with a gap which is not supposed to be where it is (red square in the picture below). Do you know how it comes/came there?
Thanks in advance!

My Code:
(the while loop is there the pictures are displayed)
JustBasti's website
Home
```
<a href='index.php?mod=news'>News</a>
<a href='index.php?mod=allnews'>All News</a>
<a href='index.php?mod=gallery'>Gallery</a>
<a href='index.php?mod=guestbook'>Guestbook</a>
<a href='index.php?mod=admin'>Administrator</a><table>
<tr>
<td>Nam liber tempor</td>
</tr>
<tr>
<td>Saturday, 11th Jun 2011, 7:00 pm</td>
</tr>
<tr>
<td><a href='albums/110611190045 - Nam liber tempor/aus.png' rel='lightbox[testalbum]'
title='aus.png'><img src='albums/110611190045 - Nam liber tempor/thumbs/aus.png' /> </a>
</td>
<td><a href='albums/110611190045 - Nam liber tempor/airport.png' rel='lightbox[testalbum]'
title='airport.png'><img src='albums/110611190045 - Nam liber tempor/thumbs/airport.png' /> </a>
</td>
<td><a href='albums/110611190045 - Nam liber tempor/fam.png' rel='lightbox[testalbum]'
title='fam.png'><img src='albums/110611190045 - Nam liber tempor/thumbs/fam.png' /> </a>
</td>
<td><a href='albums/110611190045 - Nam liber tempor/way.png' rel='lightbox[testalbum]'
title='way.png'><img src='albums/110611190045 - Nam liber tempor/thumbs/way.png' /> </a>
</td>
</tr>
```
```
while ($photos = mysql_fetch_array($photo)){
$url_thumb = $photos['url_thumb'];
$url = $photos['url'];
$title = $photos['title'];
?>
<td><a href='<? echo $url; ?>' rel='lightbox[testalbum]'
title='<? echo $title; ?>'><img src='<? echo $url_thumb; ?>' /> </a>
</td>
<?
}
```
The website is not online yet. I didnt use any CSS. I just coded in php and html.
|
What's going on with this space between my images? PHP/HTML
|
CC BY-SA 3.0
| null |
2011-06-11T17:46:05.933
|
2011-06-11T17:58:19.097
|
2011-06-11T17:48:49.160
| 715,888 | 715,888 |
[
"php",
"html",
"image"
] |
6,317,578 | 1 | 6,323,636 | null | 0 | 1,856 |
I imported a third party CA issued PFX certificate using `PFXImportCertStore`. Upon successful importing, the `PCERT_KEY_PROV_INFO_PROP_ID` is set to the following values by by the same call, `PFXImportCertStore`

1. Why is the dwKeySpec recognised as AT_KEYEXCHANGEkey type rather than AT_SIGNATURE?
2. Why is the pwszProvName set to Microsoft Base Cryptographic Provider v1.0?
3. The certificate in the first place was issued ONLY for Digital signing. But the key usage field indicates that the certificate can be used for Digital Signature, Non-Repudiation, Key Encipherment, Data Encipherment (f0). Enhanced key usage indicates, Client Authentication and Secure Email? Has the CA has issued the certificate correctly? The front of the certificate shows the following message(screen shot below) which makes me to suspect that this certificate was not issued for digital singing? Am i thinking correctly or not?

4.Because of these issue, i am unable to sign data using `CryptSignMessage`. The internal call fails to acquire context to the private key for signing. Any suggestions on how i can get around this issue?
I am able to sign with a selfsigned PFX cert which i generated. Do you think that i could export the private key in to new container and set it property to `AT_SIGNATURE` and the csp provider Type to `PROV_RSA_AES`, as i require SHA256.
I am working with XP sp3.
Thanks
|
PFXImportCertStore- issue - cryptoapi
|
CC BY-SA 3.0
| null |
2011-06-11T17:52:55.457
|
2011-06-15T09:57:34.293
|
2020-06-20T09:12:55.060
| -1 | 119,535 |
[
"security",
"cryptography",
"digital-signature",
"cryptoapi",
"pfx"
] |
6,317,902 | 1 | 6,344,592 | null | 0 | 3,688 |
I have a standard file upload script using [this](http://valums.com/ajax-upload/) script. When the upload is completed, I send back a JSON telling the client that the upload went OK, something like this:
```
{done: true, error: "No error"}
```
When I do the upload on Firefox, everything works out smoothly, but on IE9 / Chrome it breaks. IE tells me that I need to download the file, something like this image:

I thought that the issue was the headers submitted to the client and I tried setting the content type to:
- -
The files are stored properly and the answer is coming back without any corruption, nor in the encoding, or gzipped or anything like it.
Forgot to add the link on the and also, it's an older version of the plugin, not the current one.
|
Ajax upload not working on IE9/Chrome
|
CC BY-SA 3.0
| 0 |
2011-06-11T18:57:58.263
|
2011-06-14T13:52:25.747
|
2011-06-11T19:12:38.793
| 420,447 | 420,447 |
[
"javascript",
"file-upload",
"internet-explorer-9"
] |
6,318,125 | 1 | 6,319,045 | null | 3 | 10,353 |
I have a problem with rendering `@results` from `show.js.erb`. Output looks like:
```
$('#results').empty();
$('#results').html("<ul><%= escape_javascript(render(@results)).html_safe %></ul>");
```
```
<li>
<%= link_to(result.title, result.uri) %><br>
<span class="urls"><%= result.uri %></span>
</li>
```
Using `_result.html.erb` in `show.html.erb`:
```
<ul>
<%= render @results %>
</ul>
```
produces correct output.
The suspected culprit is `<%= escape_javascript(render(@results)).html_safe %>`.
I've tried `<%= raw(escape_javascript(render@results)) %>` but with no luck.
App is created with Rails 3.0.8.
Longer version of :
```
$('#results').empty();
$('#results').html("<ul><%= escape_javascript(render(:partial => "results/result", :collection => @results)).html_safe %></ul>");
```
output stays the same as on the image with `a>`, `li>` and whatnot.
HTML rendered by `show.js.erb`:

```
<a href="http://jasonseifer.com/2010/04/06/rake-tutorial">Rake Tutorial | Jason Seifera><br> <span class="urls">http://jasonseifer.com/2010/04/06/rake-tutorialspan>li></span></a>
```
without `html_safe`:
```
$('#results').empty();
$('#results').html('<ul><%= escape_javascript render(@results) %></ul>');
```
Output:

The `</` are already eaten by `escape_javascript`.
```
$('#results').html('<%= escape_javascript("<ul>#{render(@results)}</ul>").html_safe %>');
```
It is Dogbert's answer with `.html('')` quotes and `.html_safe`.
|
Rendering partial from js.erb template produces content with html tags' remnants
|
CC BY-SA 3.0
| 0 |
2011-06-11T19:40:20.817
|
2011-06-12T19:54:29.657
|
2011-06-12T19:54:29.657
| 209,520 | 209,520 |
[
"jquery",
"ajax",
"ruby-on-rails-3"
] |
6,318,388 | 1 | 6,319,294 | null | 8 | 8,187 |
I want to perform a .NET CF 2.0 build using VS2010. I know it's not supported "normnally," but I've seen this answer: ( [.NET Compact Framework with Visual Studio 2010?](https://stackoverflow.com/questions/2646027/net-compact-framework-with-visual-studio-2010/2648527#2648527) ) ...and I want to use that approach.
The [blog post cited there](http://joel.fjorden.se/index.php?entry=entry091228-170025) says I need to modify the .csproj files for the .NET CF projects, to point to a particular Microsoft.CompactFramework.Common.targets . But I don't have that file.
I figured I needed to install the [Windows Mobile 6 Standard SDK](http://www.microsoft.com/downloads/details.aspx?FamilyID=06111A3A-A651-4745-88EF-3D48091A390B&displaylang=en) to get it.
I tried installing it and get this:

I have seen this question:
[Windows Mobile 6 Standard SDK Refresh install issue on Visual Studio 2010 Professional Beta 2](https://stackoverflow.com/questions/1779874/windows-mobile-6-standard-sdk-refresh-install-issue-on-visual-studio-2010-profess)
I don't think the solution proposed there is workable for me. I do not have VS2008. I do not have VS2005. I have only VS2010, and I have no installable media for those other products.
I have also tried the administrative install (`msiexec /a`), but the resulting directory structure doesn't contain any files like Microsoft.CompactFramework.Common.targets .??
:
Is there a way for me to install WM6 Standard SDK?
: Anyone know the reg key that it looks for to determine if I have the appropriate pre-reqs?
Is this going to work if I just fiddle with my registry?
: Is my assumption wrong? Really I want the Microsoft.CompactFramework.Common.targets file and its friends. Where can I get this? (I have no existing VS2008 machine to suck from)
: Another approach I can think of is getting an eval version of VS2008, installing that into a VM, then installing the WM6 Std SDK there, then grabbing the Microsoft.CompactFramework.Common.targets file from that. Long way round. Is this gonna work and is it worth the trouble?
---
Here's the answer.
It is possible to build CF apps with VS2010, as outlined in [Joel Fjorden's blog post](http://joel.fjorden.se/index.php?entry=entry091228-170025). There are pre-requisites you need, in order to make this happen.
I believe the only way to get the required files, including Microsoft.CompactFramework.Common.targets , Microsoft.CompactFramework.CSharp.targets , Microsoft.CompactFramework.VisualBasic.targets and Microsoft.CompactFramework.Build.Tasks.dll , is to install the related version of Visual Studio. These files are all , so to get the files for building for .NET CF 2.0, you need to install VS2005, and for .NET CF 3.5 you need to install VS2008. Installing VS2010 gives you neither. It works to use eval versions of the tools. It worked for me anyway.
If you are willing to go custom, you can simply copy these files from a working installation of VS2005 or VS2008 (or both), into the appropriate .NET directory, usually something like `C:\Windows\Microsoft.NET\Framework\v2.0.50727` (change the version as appropriate). Chris Tacke has helpfully posted a link to [the files you need](http://blog.opennetcf.com/ctacke/2011/06/12/msbuildTargetsFilesForCFProjects.aspx). I don't know if copying these files violates the license for VS20?? , I am not a licensing expert.
You cannot get these files from the Windows Mobile SDK, as far as I can tell. Even so, you might still want a version-specific mobile SDK to get the emulators and skins and so on.
This is a basic "build" capability. It works but it doesn't give you designer support, debugging capability, built-in project templates, and so on. My advice to anyone who wants to do forward development on .NET CF is to use the tools that are geared toward those tasks - VS2005 or VS2008.
Thanks to [Chris Tacke](https://stackoverflow.com/users/13154/ctacke) for posting a link for the files.
|
Building Compact Framework applications with VS2010 (without VS2005)
|
CC BY-SA 3.0
| 0 |
2011-06-11T20:33:48.083
|
2015-06-03T14:23:50.500
|
2017-05-23T12:24:58.297
| -1 | 48,082 |
[
"visual-studio-2010",
"windows-mobile",
"compact-framework"
] |
6,319,000 | 1 | 6,324,231 | null | 1 | 1,225 |
I am trying to generate some sun 'rays' which I can best describe as looking like the blade of a krisknife, such as the blade portion of this picture. 
This is just an example. I only need a triangular shape with two or three waves that I can close and fill.
Better yet, is there some HTML5 app with which I can draw a complex figure and then export the javascript (moveTo, arcTo, bezierCurveTo, quadraticCurveTo, ...). Something similar to [HTML5 Bezier Sketcher](http://www.html5code.com/gallery/html5-bezier-sketcher/) but which saves the javascript. Trying to draw complex figures blind is very difficult and I don't want to switch to SVG if it is not necessary.
Thanks 1,000,000
Edit: I have now also looked at all the options at [this site](http://javascript.open-libraries.com/utilities/drawing/10-best-javascript-drawing-and-canvas-libraries/). None will allow me to draw and fill simple curves and then see/save canvs commands. All that show commands show them in new libraries like fabric or jsDraw2D.
|
How can I draw a diminishing wavy ray or complex figures in HTML5 / Canvas
|
CC BY-SA 3.0
| null |
2011-06-11T22:52:05.840
|
2012-04-30T08:37:48.347
|
2012-04-30T08:37:48.347
| 41,761 | 761,596 |
[
"html",
"bezier",
"curve"
] |
6,319,004 | 1 | 6,319,098 | null | 5 | 16,366 |
I wanna make a dropdown-menu like the one in the attached picture in android I searched a lot but I Couldn't find anything?
Could you tell me how to start?

|
Dropdown menu in android
|
CC BY-SA 3.0
| null |
2011-06-11T22:53:11.847
|
2012-11-18T00:11:22.440
|
2011-06-11T23:08:21.457
| 760,538 | 760,538 |
[
"android",
"drop-down-menu"
] |
6,319,020 | 1 | 6,319,165 | null | 8 | 1,711 |
I'm developing a query against a table that contains a bunch of points in a time series. The table can grow quite large, and so I want the query to effectively downsample the output by averaging points over fixed time intervals. After writing the query, I'm surprised by how SQL Server (2008) has opted to execute the query. The execution plan reveals an unnecessary sorting operation that would become expensive as the time series grows. Here is the problem, reduced to a simple example:
```
CREATE TABLE [dbo].[Example]
(
[x] FLOAT NOT NULL,
[y] FLOAT NOT NULL,
PRIMARY KEY CLUSTERED
(
[x] ASC
)
);
SELECT FLOOR([x]), AVG([y])
FROM [dbo].[Example]
GROUP BY FLOOR([x]);
```
Here I have (x,y) pairs that are already sorted by x (because of the clustered primary key), and I'm averaging y for each whole number x (by truncating with the `FLOOR` function). I would expect that the table is already suitably sorted for the aggregate since `FLOOR` is a monotonic function. Unfortunately, SQL Server decides that this data needs to be re-sorted, and here is the execution plan:

Shouldn't SQL Server be able to perform a streaming aggregation over data grouped by a monotonic function of columns that are already suitably sorted?
Is there a general way to rewrite such queries so that SQL Server will see that the order is preserved?
I've found an article on the subject [Things SQL needs: sargability of monotonic functions](http://explainextended.com/2010/02/19/things-sql-needs-sargability-of-monotonic-functions/) and, as the title suggests, it seems like this is an optimization that SQL Server doesn't yet do (in most cases).
Here are even simpler queries over `[dbo].[Example]` that demonstrate the point:
```
SELECT [x], [y]
FROM [dbo].[Example]
ORDER BY FLOOR([x]) --sort performed in execution plan
SELECT [x], [y]
FROM [dbo].[Example]
ORDER BY 2*[x] --NO sort performed in execution plan
SELECT [x], [y]
FROM [dbo].[Example]
ORDER BY 2*[x]+1 --sort performed in execution plan
```
In any single addition or multiplication, the query optimizer understands that the data already has the same order (and this is seen when you group by such expressions too). So it seems like the concept of monotonic functions is understood by the optimizer, just not generally applied.
I'm testing the computed column / index solution now, but it seems like this will dramatically increase the size of the persisted data since I will need several indices to cover the range of possible intervals.
|
Redundant Sorting for Aggregate Grouped-By Monotonic Function
|
CC BY-SA 3.0
| 0 |
2011-06-11T22:57:48.470
|
2011-06-12T20:42:43.193
|
2011-06-12T16:10:26.957
| 185,200 | 185,200 |
[
"sql-server",
"tsql",
"sql-server-2008",
"aggregate-functions"
] |
6,319,155 | 1 | 6,320,364 | null | 7 | 16,492 |
I'm drawing a graph with some lines using matplotlib and I want to display the final `y` value next to where each line ends on the right hand side like this:

Any solutions or pointers to the relevant parts of the API? I'm quite stumped.
I'm using matplotlib 1.0.0 and the pyplot interface, e.g. `pyplot.plot(xs, ys, f, xs_, ys_, f_)`.
|
Show the final y-axis value of each line with matplotlib
|
CC BY-SA 3.0
| 0 |
2011-06-11T23:33:30.133
|
2017-06-10T14:58:16.460
|
2011-06-12T00:05:12.137
| null | 96,079 |
[
"python",
"matplotlib"
] |
6,319,160 | 1 | 6,440,828 | null | 1 | 502 |
We get very blurry text rendering when using HyperLinkButton. I think its most clearly seen when it has mouse on top. Also maybe issue becomes more transparent when TextWeight is set to bold for hyperlink.
I believe we dont have that many options in Silverlight to control text rendering, default TextHinting is Fixed, if we set it to Animated for HyperLinkButton it doesn't really fix the issue, instead it seems to me that it creates a little different issue, but in the end text is still blurry.
So I am wondering how to get a good looking HyperLinkButton in Silverlight 4.0?
Strange that noone notices that, try to move mouse over control youll see it gets blurry/darker. Anything, but just underscored.

|
Silverlight 4.0 HyperLinkButton text is blurry
|
CC BY-SA 3.0
| null |
2011-06-11T23:34:36.810
|
2011-06-22T13:41:05.013
|
2011-06-22T02:33:35.137
| 514,382 | 514,382 |
[
"silverlight",
"silverlight-4.0"
] |
6,319,690 | 1 | 6,319,806 | null | 1 | 10,969 |
See where that ugly yellow is? I need that color to be changing... a lot. Kind of like a trippy kalidascope thing, but with one color the entire time. A lot like the default OS X Spectrum screensaver. How should I go about doing this? Objective-C would seem like a huge CPU hog. Would it be possible for me to put an OpenGL background into something like this? Would love a push in the right direction.

|
Changing Background Color of UIView
|
CC BY-SA 3.0
| null |
2011-06-12T02:07:18.873
|
2011-06-12T05:18:37.200
|
2011-06-12T05:18:37.200
| 44,729 | 516,833 |
[
"objective-c",
"opengl-es",
"background"
] |
6,319,869 | 1 | 6,319,934 | null | 6 | 2,798 |
I am trying to follow the procedure [Downloading the Google USB Driver](http://developer.android.com/sdk/win-usb.html#WinUsbDriver) but see the following error in Android SDK and AVD Manager:
> Some packages were found but are not
compatible updates.
I am unable to [Download the Google USB Driver](http://developer.android.com/sdk/win-usb.html#WinUsbDriver) without the Google Add-ons.
Specifically, I need Google Usb Driver package revision 4 for the Nexus S.
I ran Eclipse > Help > Check for updates but this did not resolve the issue.
Does the Android SDK and AVD Manager need to be updated another way? If so, how?
Is there some other way to fix this?
Does Google Usb Driver package revision 4 work in Windows XP?

|
Android SDK and AVD Manager issue
|
CC BY-SA 3.0
| 0 |
2011-06-12T03:03:30.250
|
2017-11-10T17:31:58.537
|
2011-06-12T12:25:23.463
| 398,460 | 398,460 |
[
"android"
] |
6,320,094 | 1 | 6,320,563 | null | 1 | 387 |
I have a PNG image and I want to get that rectangle to fit visible image on it.
Here my image example:

I have image dimension bigger than image inside it.
Outer rectangle is the real width and height of my image. And I want make rectangle depend on visible image like inner rectangle.
I'm using Java . How could I do that?
|
Get fit rectangle on PNG image
|
CC BY-SA 3.0
| null |
2011-06-12T04:17:01.367
|
2011-06-12T07:37:23.043
|
2011-06-12T07:37:23.043
| 418,556 | 623,107 |
[
"java",
"image-processing",
"png"
] |
6,320,078 | 1 | null | null | 4 | 96 |
Consider the following example: [http://jsfiddle.net/j6SpZ/](http://jsfiddle.net/j6SpZ/)
## HTML:
```
<div class="container">
<a>Foobar</a>
<a class="pink">Pink</a>
<a class="gray">Gray</a>
</div>
```
## CSS:
```
a {
border: 1px solid black;
padding: 20px;
display: block;
}
a.gray { background-color: gray; }
a:hover { background-color: teal; }
.container a { background-color: transparent; }
a.pink { background-color: pink; }
```
## Result:

---
So, everything happens according to the spec.
The style precedence values on the last four selectors are all (0,0,1,1): 1 class + 1 element. You get the expected transparent background for the first and third boxes (even on hover) because `.container a` comes after `a.gray` and `a:hover`. You get pink on the second one because `a.pink` comes after `.container a`. Cool (if I've misinterpreted the spec, let me know, but I think I'm on the money).
But my question revolves around the semanticity of allowing selectors on parent elements have the same impact on specificity as selectors on the modified element. I feel that the `gray` class selector is definitely "closer" and more specific to the element than the `container` class selector on the parent, and that the `a.gray` style declaration "should" have more precedence.
Is there a way to actually make this so, or a philosophy I can follow to resolve the dissonance in my thinking?
## The actual application:
I have option button styling that amounts to the following:
```
.options a { background-color: gray; }
.options a:hover { background-color: blue; }
```
Basically, the option buttons are gray and blue on hover. Now, I want to put these in a special area where I want the default behavior to have a transparent background:
```
.env1 .subenv1 .options a { background-color: transparent; }
```
But now, this declaration takes precedence even over the `:hover`, and I don't want it to. I still want its hover behavior to be the same; I just want the default background to be transparent. Of course, I can re-declare the hover styles, but this repeats that information, which is unideal. I have no problem sucking it up and just re-declaring it, which is what I'm doing now, but surely, there must be a way to get this to make sense in my head.
|
Is there a way of allowing selectors on the selected element take precedence over selectors on parent elements?
|
CC BY-SA 3.0
| null |
2011-06-12T04:12:10.923
|
2011-07-25T16:41:01.877
|
2011-06-12T04:30:09.670
| 106,224 | 203,137 |
[
"css"
] |
6,320,683 | 1 | 6,321,008 | null | 0 | 871 |
I have the below script. It is not rendering the 2006 data. Is there a problem with my script? (Data: UN's Millenium Development Goals, not all values have data)
```
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", { packages: ["corechart"] });
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Year');
data.addColumn('number', 'Afghanistan');
data.addColumn('number', 'India');
data.addRow(["1993", null, 61.9]);
data.addRow(["1999", null, 65.1]);
data.addRow(["2000", 36.9, 61.8]);
data.addRow(["2003", 16.1, null]);
data.addRow(["2006", null, 74.2]);
new google.visualization.AreaChart(document.getElementById('chart_div')).draw(data, {
curveType: "function"
, width: 768, height: 908
, title: 'Target 5.B: Achieve, by 2015, universal access to reproductive health. Antenatal care coverage, at least 1 visit.'
, vAxis: { title: 'Percent' }
});
}
</script>
</head>
<body>
<div id='chart_div'></div>
</body>
</html>
```

|
Google Charts - Failing to render a Row
|
CC BY-SA 3.0
| null |
2011-06-12T07:18:22.593
|
2012-01-23T07:32:55.517
|
2011-06-12T16:03:53.673
| 62,288 | 172,861 |
[
"charts",
"google-visualization"
] |
6,320,992 | 1 | 6,321,252 | null | 1 | 2,179 |
Consider the database schema in the picture.

I need a linq-to-entities statement that will retrieve authors and their respective books grouped by author. For example, I want to display something as follows:
An additional constraint is the oject of grouped items has to be returnable by a method.
Can anybody formulate join and group-by statement (a) ordered by author name, (b) ordered by author name and book title?
|
linq-to-entities join 3 tables and group-by statement
|
CC BY-SA 3.0
| 0 |
2011-06-12T08:40:20.290
|
2011-06-12T09:37:39.223
|
2017-02-08T14:32:27.527
| -1 | 669,226 |
[
"linq",
"entity-framework",
"join",
"linq-to-entities",
"group-by"
] |
6,321,086 | 1 | 6,321,103 | null | 0 | 43 |
Please look at the image.

What are the three elements at the bottom of the screen (about, help, settings)? Are these Buttons inside tabview?
|
What element is on this image?
|
CC BY-SA 3.0
| null |
2011-06-12T09:02:11.093
|
2011-06-12T09:06:44.707
| null | null | 437,039 |
[
"android"
] |
6,321,080 | 1 | 6,321,369 | null | 2 | 546 |
I'm trying to swap the ItemsPanel in a ListBox for a WrapPanel but the ItemsPanelTemplate on the style doesn't seem to be having an effect. The style is found and applied because the border and background colours change, but inspecting with snoop shows no WrapPanel.
```
<Style x:Key="CocktailGrid" TargetType="ListBox" BasedOn="{StaticResource {x:Type ListBox}}">
<Setter Property="SnapsToDevicePixels" Value="true"/>
<Setter Property="Background" Value="White" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="SelectionMode" Value="Single" />
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<WrapPanel
IsItemsHost="True"
Width="{Binding
Path=ActualWidth,
RelativeSource={RelativeSource
Mode=FindAncestor,
AncestorType=
{x:Type ScrollContentPresenter}}}" />
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="80" />
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image Grid.Row="0" Source="{Binding ImageName}" Height="80" Stretch="Uniform"/>
<TextBlock Grid.Row="1" Text="{Binding Name}" TextWrapping="Wrap" TextTrimming="CharacterEllipsis"/>
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
```
The ListBox is declared as:
```
<ListBox x:Name="lstCocktails" PreviewKeyDown="dg_PreviewKeyDown" ItemsSource="{Binding Source={StaticResource drinksSource}}" SelectedItem="{Binding SelectedItem,ElementName=root,Mode=TwoWay}" Style="{StaticResource CocktailGrid}"
SelectionMode="Single" MouseDoubleClick="lstCocktails_MouseDoubleClick">
```
Snoop visual tree:

I've overridden ItemsPanels in other parts of the app but for some reason this one is eluding me
|
ItemsPanel Template has no effect
|
CC BY-SA 3.0
| null |
2011-06-12T09:00:35.680
|
2011-06-12T10:02:26.787
| null | null | 30,512 |
[
"c#",
".net",
"wpf",
"itemspanel",
"itemspaneltemplate"
] |
6,321,139 | 1 | null | null | 0 | 199 |
I designed a uitable view like in the image below , I want to hide the part under the second section , which I write on it (<- I want to remove this part ->)

any suggestion to do that
|
How to hide this part of uitableview
|
CC BY-SA 3.0
| null |
2011-06-12T09:13:17.723
|
2011-06-12T12:37:00.143
| null | null | 712,104 |
[
"iphone",
"ipad",
"uitableview"
] |
6,321,212 | 1 | 6,321,466 | null | 0 | 533 |
I need to implement a keyboard for my language. For example, I want that if you type `"a"` then in the textbox or input box will show: [ka http://cl.cooltext.com/rendered/cooltext530153213.png](http://cl.cooltext.com/rendered/cooltext530153213.png).....If i press "m" it will show: 
Now, this is not possible in current webbrowsers because there is no hooking functionality here. For this,I have decided that this algorithm:
1. Detect keycode of the typed letter (in this case "a")
2. Maintain a keymap and found from the keycode (in step1) which key will be replaced by "a"
3. Replace the textarea/textInput as: "string before --a--"+ replaced key from step2 + "rest of the portion after --a--"
4. return false so that "a" is not written into the textarea/textInput by the browser.
---
I am searching for a better idea than running method after keystroke...Please help.
|
How to implement this keyboard hooking function in javascript/jquery?
|
CC BY-SA 3.0
| null |
2011-06-12T09:29:35.973
|
2011-06-12T10:30:02.657
|
2020-06-20T09:12:55.060
| -1 | 385,205 |
[
"javascript",
"jquery"
] |
6,321,259 | 1 | 6,324,204 | null | 7 | 6,497 |
When ComboBox's DropDownStyle is DropDownList and DrawMode is Normal - it looks good, but when I change DrawMode to OwnerDrawFixed - it looks very bad (similar to TextBox with arrow to drop down). Is there any solution to make it look good when DrawMode isn't Normal?
looks like that:

I want it to look like that:

|
My ComboBox looks bad when its DrawMode isn't Normal
|
CC BY-SA 3.0
| null |
2011-06-12T09:39:03.043
|
2011-06-12T19:53:26.653
|
2011-06-12T19:39:34.500
| 774,211 | 774,211 |
[
"c#",
"winforms",
"combobox",
"drop-down-menu"
] |
6,321,516 | 1 | 6,321,744 | null | 0 | 110 |
I've had three users of an app I've published say that it crashes. I've run it in Instruments and there are no leaks and no over released objects either. I've been using the app myself quite a bit for at least 2 weeks and it doesn't crash for me.
I was wondering if anyone had any tips on how to problem solve an issue like this.
One thing that I'm suspicious of is the Millenial Media ads that I have running in some of the views. A Build and Analyze reveals 13 issues and they all pertain to the ad API

thanks for any help
|
iPhone app crashing
|
CC BY-SA 3.0
| null |
2011-06-12T10:45:29.527
|
2011-06-12T11:44:33.597
| null | null | 388,458 |
[
"iphone",
"ios",
"memory-leaks",
"instruments"
] |
6,321,587 | 1 | 6,321,608 | null | 1 | 1,893 |
opcode caching talk.I have WAMP server 2.1 running PHP 5.3.3.I'm using apache benchmark to test the improvement APC adds when applied to my php scripts.
```
ab -n 10 -c 5 http://localhost/mysite/index/index/
```
I installed [APC 3.1.6 for PHP 5.3 vc6](http://dev.freshsite.pl/download.html) with the following settings in php.ini:
```
extension= c:\wamp\bin\php\php5.3.3\ext\php_apc_316_php53_vc6.dll
apc.enabled=1
apc.stat=0
apc.optimization=9
apc.shm_size=30
apc.max_file_size=2
```
this is what I get:

I need to comment out the extension line to have this test run properly
Why?
[here](http://imageshack.us/f/707/apcsettings.jpg/) my phpinfo() Apc settings
thanks
Luca
|
Apc extension not working on php 5.3.3
|
CC BY-SA 3.0
| null |
2011-06-12T11:05:54.027
|
2011-06-12T11:10:38.903
| null | null | 505,762 |
[
"php",
"apc",
"wampserver",
"apachebench",
"opcode-cache"
] |
6,321,838 | 1 | null | null | 3 | 371 |
I'm load testing my page with Apache Benchmark:
```
ab -n 20 -c 5 http://localhost/mysite/index/index
```

I know that stands for the sum of all HTML images,CSS,JS and anything within the response in bytes.
If I go over Firefox and I run YSlow I see that:
```
The page has a total of 22 HTTP requests and a TOTAL WEIGHT of 202.7K bytes
with empty cache
```
-
I'd love to know where these definitions (AB/YSlow) differ so that (maybe) I can understand why my AB document length is so high (up to 14000 bytes) compared to other websites (with similar contents, e.g. grubwithus.com) that have a document length not exceeding 91 bytes! However, I also noticed that the YSlow size of my webpage is a way less than the compared size of grubwithus.com (202k against 1124k).
|
Apache Benchmark Document Length vs YSlow Page's Total Weight
|
CC BY-SA 3.0
| null |
2011-06-12T12:07:30.987
|
2015-12-16T07:07:50.697
|
2015-12-16T07:07:50.697
| 3,399,252 | 505,762 |
[
"php",
"yslow",
"apachebench",
"page-size"
] |
6,321,878 | 1 | 6,322,178 | null | 5 | 14,021 |
lately have i had this idea in my head about using events in a ASP.NET MVC application.
For an example When a user created a comment, will this on the server side trigger an event, that for an example the account controller can be hooked on to, and thus triggering account specified code on a event.
Have any 1 tried this or is it even possible, to use events as such on a web application?
Here is an example.

A uses created a comment on my website, though the comments controller, this will make the Comments controller trigger an event in my static event manager. This will execute all the methods that have been tied to this event. In this example is "OnCommentCreate()" in the AccountController attached.
Now all this should happen on another thread then the users, so the page for the user will continues as there were no events, while the events are handling behind.
My thought where to use this with a persistent connection on a timeline, or it can be used to decentralize code. I could for an example have an event that would be called when a username changes, there will go through the log files and change the name of the user to the new username.
I hope this clarifies better
|
ASP.NET MVC Events
|
CC BY-SA 3.0
| 0 |
2011-06-12T12:16:51.780
|
2019-01-02T22:05:54.257
|
2011-06-12T12:56:04.973
| 313,237 | 313,237 |
[
"c#",
"events",
"asp.net-mvc-3"
] |
6,321,938 | 1 | null | null | 5 | 4,740 |
I am looking to make something like IPhone Listbox !
I found someone who provided a download url for this project: but I was to late and the download url does not work anymore.
So I'm asking if killercode the same member on experts-exchange to upload it again if possible and if there is someone who can help me find the right component for this kind of listbox to use in Delphi.

|
Delphi Custom Listview Draw
|
CC BY-SA 3.0
| 0 |
2011-06-12T12:30:20.043
|
2011-09-17T19:41:34.430
|
2011-06-12T19:27:56.883
| 650,492 | 794,737 |
[
"delphi",
"listview",
"treeview",
"listbox",
"components"
] |
6,322,117 | 1 | null | null | 15 | 10,994 |
I'm writing small application for shape detections. What I need to do in a first place is to find the most significant shape on an image. I started from some preprocessing including converting image to grayscale, thresholding and edge detection. Image before and after these operations is presented below
Before

After

So as You can see the main shape is visible (however it is a bit scattered) and there are also some noises (small trees etc). What I need to do is to extract somehow only the most significant shape (the biggest one) - in this case it is a tower.
What I wanted to do is use contour finding function in opencv and then somehow aproximate found conturs with polygon. Then I would (somehow) calculate area of countours and select only the biggest one.
So far I manged (only) to find contours using
```
cvFindContours(crated,g_storage,&contours);
```
I know that there is a
```
cvApproxPoly
```
function , however I am not able to get any usefull information for the result of this function.
Could somebody tell me if it is possible to calculate area of contour or to approximate the contur with polygon. Maybe You have a better idea how to extract only the most significant shape ?
|
shapes detection - contour approximation with OpenCV
|
CC BY-SA 3.0
| 0 |
2011-06-12T13:11:16.610
|
2011-06-27T19:54:36.897
|
2011-06-12T13:28:02.820
| 549,007 | 794,769 |
[
"c++",
"image-processing",
"opencv"
] |
6,322,391 | 1 | 6,322,723 | null | 1 | 70 |

How can I correct the result of a statement if the login script is setting the "created" date 1 month too early. How would you correct the existing data?
|
Change SQL Structure in a correct Date
|
CC BY-SA 3.0
| 0 |
2011-06-12T14:10:46.400
|
2011-06-12T15:28:21.073
|
2011-06-12T14:12:57.497
| 300,863 | 261,002 |
[
"mysql",
"ddl"
] |
6,322,526 | 1 | 6,327,998 | null | 5 | 675 |
I have now seen different elegant ways to layout code on this forum.
As a beginner, I would like to have your advises on the best way to layout code like the one below.
It is ugly,not optimal, probably even stupid, but may the expert programmers pardon me, I use it as a "worst case scenario".
The purpose for the novice I am is clarity.
```
rejection[disp_, fixationNOtoConsiderForDuration_, durationLimit_,
minDistance_] :=
With[{fakedata = consider[t4dataLAEH10, 9, disp, {17, 18, 11}]},
With[{num =
Flatten[Position[
Take[fakedata[[All, 3]], fixationNOtoConsiderForDuration],
x_ /; (x > durationLimit)]]},
If[num =!= {},
With[{fakedata1 = Drop[fakedata[[All, {1, 2}]], Last@num]},
With[{num1 =
Flatten[Position[
Table[
Sqrt[((fakedata1[[fixation1, 1]] -
centerX)^2 + (fakedata1[[fixation1, 2]] -
centerY)^2)],
{fixation1, 1, Length@fakedata1}],
x_ /; (x < minDistance)]]},
If[num1 =!= {},
Delete[fakedata1[[All, {1, 2}]], List /@ num1],
fakedata[[All, {1, 2}]]]]],
With[{fakedata2 = fakedata[[All, {1, 2}]]},
With[{num2 =
Flatten[Position[
Table[
Sqrt[((fakedata2[[fixation2, 1]] -
centerX)^2 + (fakedata2[[fixation2, 2]] -
centerY)^2)],
{fixation2, 1, Length@fakedata2}],
x_ /; (x < minDistance)]]},
If[num2 =!= {},
Delete[fakedata2[[All, {1, 2}]], List /@ num2],
fakedata[[All, {1, 2}]]]]]]]]
```

|
Optimal Code Layout in Mathematica?
|
CC BY-SA 3.0
| 0 |
2011-06-12T14:39:18.940
|
2011-06-13T08:08:54.863
| null | null | 769,551 |
[
"layout",
"wolfram-mathematica"
] |
6,322,603 | 1 | 6,322,628 | null | 6 | 915 |
I'm trying to draw some circles and I was sort of hoping they would intersect with some points, alas...
```
library(maptools)
library(plotrix)
xy <- matrix(runif(20, min = -100, max = 100), ncol = 2)
distance <- spDistsN1(xy, xy[1, ])
plot(0,0, xlim = c(-100, 100), ylim = c(-100, 100), type = "n")
points(data.frame(xy))
points(xy[1, 1], xy[1, 2], pch = 16)
draw.circle(xy[1, 1], xy[1, 2], radius = distance)
```
The above code does the following:
- - - - 
|
trying to draw circles based on distance between points
|
CC BY-SA 3.0
| null |
2011-06-12T14:57:03.273
|
2011-06-12T19:27:32.543
| null | null | 322,912 |
[
"r",
"geometry",
"euclidean-distance"
] |
6,322,678 | 1 | 6,323,038 | null | 3 | 592 |
Is it possible to use some "Previous-Next" Buttons instead of a slider as in the example Below when the controlled value is discrete ?
I found the Manipulator one quite ugly and would like some Setter type ones if it is possible.
```
Manipulate[
Graphics[
{
Rectangle[{1, 1}, {3, 3}],
Circle[{where, 2}, 1]
},
PlotRange -> {{0, 11}, {0, 3}}, ImageSize -> {300, 60}
],
{where, 1, 10, 1, Slider}
]
```

|
"Previous-Next" Button instead of Slider in Mathematica?
|
CC BY-SA 3.0
| 0 |
2011-06-12T15:15:13.163
|
2015-08-06T11:13:14.317
|
2015-08-06T11:13:14.317
| 1,743,957 | 769,551 |
[
"slider",
"controls",
"wolfram-mathematica"
] |
6,323,052 | 1 | 6,323,366 | null | 0 | 331 |
branching out -
```
[default]$ hg branch talks
[talks]$ <... some commits ...>
[talks]$ hg update default
```
merging back -
```
[default]$ hg merge talks
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
```
pushing to remote repo -
```
[default]$ hg commit -m "merging talks to default"
[default]$ $ hg push
abort: push creates new remote branches: talks!
(use 'hg push --new-branch' to create new remote branches)
```
Further investigation revealed that remote repo doesn't want me to have multiple heads at the remote end. But I just did a merge to merge the two heads into one, isn't it?
The graph from `hg serve` also seems to agree with me (I hope)

However, I also see two heads from `hg heads`
```
[default]$ hg branches
default 9:85752ecd6326
talks 8:2b00714d76d5 (inactive)
```
|
cannot push to remote repo after merge
|
CC BY-SA 3.0
| null |
2011-06-12T16:23:11.007
|
2011-06-12T17:18:37.833
| null | null | 1,140,524 |
[
"mercurial",
"merge",
"push"
] |
6,323,080 | 1 | 6,710,298 | null | 0 | 360 |
While parsing page no. 22 of [http://sfdoccentral.symantec.com/sf/5.1/linux/pdf/vxfs_admin.pdf](http://sfdoccentral.symantec.com/sf/5.1/linux/pdf/vxfs_admin.pdf), I am able to parse all the words except `mount_vxfs` as its encoding style and/or font is different than normal plain text.
Please find attached PDF Page for details.

Please find my code :-
```
`#!/usr/bin/perl
use CAM::PDF;
my $file_name="vxfs_admin_51sp1_lin.pdf";
my $pdf = CAM::PDF ->new($file_name);
my $no_pages=$pdf->numPages();
print "$no_pages\n";
for(my $i=1;$i<$no_pages;$i++){
my $page = $pdf->getPageText($i);
//for page no. 22
//if($i==22){
print $page;
//}
}`
```
|
Why am I unable to parse non-proportional text using CAM::PDF?
|
CC BY-SA 3.0
| null |
2011-06-12T16:28:59.733
|
2011-07-15T16:36:30.537
|
2011-06-13T06:50:20.330
| 673,018 | 673,018 |
[
"perl",
"pdf"
] |
6,323,199 | 1 | 6,323,272 | null | 1 | 14,770 |
I use Eclipse IDE and Window Builder Pro for create window.
When I go to the source code I see a big indent text. How to delete ?

|
remove indentation in source code
|
CC BY-SA 3.0
| 0 |
2011-06-12T16:53:12.157
|
2013-07-23T15:21:51.593
| null | null | 494,657 |
[
"java",
"eclipse",
"windowbuilder"
] |
6,323,316 | 1 | 6,323,359 | null | 1 | 4,066 |
So what I need is simple: user presses something, user sees Vignette effect on new div on top of all page (with page size) alike 
Is it possible with some html5 canvas art? And how to do such thing?
|
JavaScript, html5: how to dynamically create a Vignette effect?
|
CC BY-SA 3.0
| null |
2011-06-12T17:12:41.660
|
2011-06-12T17:18:28.603
| null | null | 434,051 |
[
"javascript",
"html",
"canvas",
"effects",
"vignette"
] |
6,323,331 | 1 | 6,323,427 | null | 1 | 1,605 |
I had the idea to subclass UIViewController as a base class for my subsequent controllers with the purpose of adding a "logout" button to the UINavigationController in my app delegate.
```
//MyAppDelegate.m
@synthesize navigationController; //UINavigationController
//-didFinishLaunchingWithOptions...
[self.window addSubview:navigationController.view];
...
```
In my MainWindow.xib I have a NavigationController attached to.. navigationController with as its root view controller.
```
//BaseLogoutViewController.m
- (void)loadView {
UIBarButtonItem *addButton = [[UIBarButtonItem alloc]
initWithTitle:NSLocalizedString(@"Logout", @"")
style:UIBarButtonItemStyleBordered
target:self
action:@selector(logoutPressed)];
self.navigationItem.rightBarButtonItem = addButton;
[addButton release];
[super loadView];
}
// -(void)logoutPressed callback implemented
// viewDidLoad, didRecieveMemoryWarning, dealloc implemented
//DashboardViewController.h
@interface DashboardViewController : BaseLogoutViewController { }
```


The good news is it does show the logout button, but the dashboard does not show it's own view.
does not have a Nib of its own.
My question is, how come when I subclass BaseLogoutViewController it no longer shows my view?
|
iphone UIViewController base subclass not showing view in UINavigationController
|
CC BY-SA 3.0
| null |
2011-06-12T17:14:01.903
|
2011-06-12T17:30:15.247
| null | null | 457,577 |
[
"iphone",
"ios",
"cocoa-touch",
"ios4"
] |
6,323,451 | 1 | 6,323,496 | null | 0 | 848 |
So what I need is simple: user presses something, user sees a shadow effect on new div (div centered window) on top of all page (with 1/4 size for example) alike 
Is it possible with some pure web-kit css art? Or javascript+images combination is needed? And how to do such thing?
|
Web-kit css div shadow: is it possible to put it onto div with pure css or images are needed?
|
CC BY-SA 3.0
| null |
2011-06-12T17:34:27.203
|
2011-06-12T17:58:04.007
| null | null | 434,051 |
[
"javascript",
"css",
"html",
"webkit"
] |
6,323,802 | 1 | 7,477,436 | null | 6 | 1,776 |
Working example: [http://jsfiddle.net/JVVcA/](http://jsfiddle.net/JVVcA/)
## HTML:
```
<fieldset id="data-page">
<legend>data-page</legend>
<button rel="page1">Highlight page one</button>
<button rel="page2">Highlight page two</button>
<div data-page="page1">
<h1 id="page1">Page one</h1>
<h1 id="page2">Page two</h1>
</div>
</fieldset>
<fieldset id="class">
<legend>class</legend>
<button rel="page3">Highlight page three</button>
<button rel="page4">Highlight page four</button>
<div class="page3">
<h1 id="page3">Page three</h1>
<h1 id="page4">Page four</h1>
</div>
</fieldset>
```
## CSS:
```
fieldset { border: 1px solid #aaa; padding: 5px; }
h1 { background-color: white; }
div[data-page="page1"] h1#page1 { background-color: pink; }
div[data-page="page2"] h1#page2 { background-color: pink; }
div.page3 h1#page3 { background-color: cyan; }
div.page4 h1#page4 { background-color: cyan; }
```
## JS:
```
$('#data-page button').click(function(){
var rel = $(this).attr('rel');
$(this).siblings("div").attr('data-page', rel);
});
$('#class button').click(function(){
var rel = $(this).attr('rel');
$(this).siblings("div").attr('class', rel);
});
```
## Initial load:

## After clicking "Highlight page two" and "Highlight page four" in Webkit (specifically, Google Chrome stable Windows 7):

## After doing the same in Firefox:

As you can see, the `data-page` selector works fine on the initial rendering of the of the page, but when the DOM is manipulated on the fly, styles defined by the `[data-page="???"]` CSS selector are not affected accordingly. Compare this to the situation with the class selectors. When classes are changed on the fly, the styles change as expected.
A possibly related note is that I've encountered cases while using this attribute selector in conjunction with CSS transitions where a similar lack of responsiveness happens, but on those cases, clicking elsewhere on the page, waving your mouse around, or just waiting for a bit eventually results in the expected change going through.
So is there a way around this other than to just throw up your hands and not use `data-page`-style attributes?
|
Webkit (Chrome/Safari) does not update display when custom attribute selected is changed
|
CC BY-SA 3.0
| 0 |
2011-06-12T18:36:39.687
|
2012-11-12T21:49:40.813
|
2011-11-28T23:06:55.483
| 214,668 | 203,137 |
[
"html",
"css"
] |
6,323,885 | 1 | 6,323,912 | null | 1 | 275 |
```
int main()
{
clrscr();
int x[3];
int n;
cout<<"Enter the array size= ";
cin>>n;
cout<<"Enter the elements for array= ";
for(int i=0;i<n;i++)
{
cin>>x[i] ;
}
for(i=0;i<n;i++)
{
cout<<"x["<<i<<"]="<<x[i]<<"\n";
}
getch();
return 0;
}
```
When m trying the same logic in c# then I got the right output as if I enter the size of array more than I initialize it gives the exception. But in c++ m not getting any type of error neither on compilation time nor at run time. But according to rule it should be give some error at run time in output if i give array size more than I initialize. And one thing more why it determine the 09 as two numbrs not single as 90 it shows it 0 and 9 at differect index as in output.


|
Array initialization in c++?
|
CC BY-SA 3.0
| null |
2011-06-12T18:47:08.357
|
2011-06-14T13:03:26.080
|
2011-06-14T12:40:54.877
| 709,458 | 709,458 |
[
"c++"
] |
6,323,971 | 1 | 6,324,179 | null | 0 | 308 |
I want to display only part of image using the GWT Image widget;
for e.g. for an image of 400X400, I want to use an image widget to display only the top left 100x100 px.

|
GWT Image Widget: Displaying only part of an image
|
CC BY-SA 3.0
| null |
2011-06-12T19:00:41.410
|
2011-06-12T19:37:34.563
| null | null | 484,290 |
[
"html",
"image",
"gwt"
] |
6,324,062 | 1 | 6,324,216 | null | 5 | 10,713 |
Could you please help me understand this [Tabu search page 7](https://www.ads.tuwien.ac.at/teaching/ss05/ak5/Metaheuristics.pdf) example:
> TS is a mathematical optimization method,
belonging to the class of trajectory
based techniques. Tabu search enhances
the performance of a local search
method by using memory structures that
describe the visited solutions: once a
potential solution has been
determined, it is marked as "taboo"
("tabu" being a different spelling of
the same word) so that the algorithm
does not visit that possibility
repeatedly. Tabu search is attributed
to Fred W. Glover







I do not understand why an upper triangle is used, and why is this :
> The tabu structure now shows that
swapping the positions of modules 4
and 5 is forbidden for 3 iterations.
The most improving move at this step
is to swap 3 and 1 for a gain of 2.
Could you please explain why the triangle and why is it the above statement?
???
|
Tabu search example question
|
CC BY-SA 3.0
| 0 |
2011-06-12T19:15:13.997
|
2013-01-27T14:04:10.990
| null | null | 265,519 |
[
"algorithm",
"optimization",
"tabu-search"
] |
6,324,456 | 1 | 6,325,110 | null | 0 | 352 |
I need to model an electric rectifier and to plot both in and out signals with MATLAB. The rectifier is made of a RC circuit which charge as fast as the voltage increases but discharges way slower so the out signal is more or less flat. It's supposed to look like that:
.
I tried to code it on MATLAB and I got this (my circuit rectifies negative voltage but same principle):
.
To get the same figure as the one from wikipedia I tried to compute the intersection between the downing exp curve (red) and the rising sinus curve (blue) so I just had to add a sin curve and a downing exp curve at right intervals to get the out signal.
Here is my code:
```
f=@(x)sin(2*pi*250000*x+pi/2);%oscillateur de référence
f1=@(x)sin(2*pi*250000*x);
g=@(x)exp(-x*10^4);%décharge du détecteur de crête
h=@(x)f(x)-g(x);%intersection des deux fonctions
format long;
inter=fzero(h,[3.82*10^-6,3.90*10^-6]);
y1=g(0:10^-12:inter);
y2=f(inter:10^-12:4*10^-6);
y3=sin(2*pi*250000*(0:10^-12:1*10^-6));
y=-[y3 y1 y2 y1 y2];
y4=-f1(linspace(0,8*10^-6,length(y)));
x=linspace(0,10*10^-6,length(y));%abscisse
plot(x,y,x,y4);
```
|
Imprecise plotting with MATLAB
|
CC BY-SA 3.0
| null |
2011-06-12T20:28:47.583
|
2011-06-12T22:24:19.337
|
2011-06-12T20:34:51.923
| null | 795,078 |
[
"matlab",
"plot"
] |
6,324,515 | 1 | 6,324,616 | null | 2 | 2,538 |
I was following some instructions here: [http://saigeethamn.blogspot.com/2010/04/custom-listview-android-developer.html](http://saigeethamn.blogspot.com/2010/04/custom-listview-android-developer.html)
The example I'm following shows the list fullscreen. That's what I want mine to do. What am I doing wrong?
examples result: 
My result:

The example I followed used 2 xml layouts. 1 for the page. 1 for the list.
The page:
```
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000fff"
android:layout_weight="2"
android:drawSelectorOnTop="false">
</ListView>
<TextView android:id="@id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFff00"
android:text="No data"
/>
</LinearLayout>
</ScrollView>
```
And here's the xml for the list:
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView android:id="@+id/tvAccountName"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="#FFFF00"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
<TextView android:id="@+id/tvAccountType"
android:typeface="sans"
android:textSize="14sp"
android:textStyle="italic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/tvAccountBalance"
android:textSize="12sp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="fill_parent"/>
</LinearLayout>
```
And here's the entry from the manifest:
```
<activity android:name=".listAccountsPage"
android:label="@string/app_name"
>
<intent-filter>
<action android:name="com.ourcreditunion.ourcumobile.LISTACCOUNTS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
```
So what did I do to cause it to not be full screen?
|
Why isn't this list/scrollview filling the parent?
|
CC BY-SA 3.0
| null |
2011-06-12T20:39:18.127
|
2011-06-12T20:56:06.257
|
2017-02-08T14:32:27.867
| -1 | 763,472 |
[
"android",
"listview",
"fullscreen"
] |
6,324,607 | 1 | 6,324,931 | null | 0 | 922 |
I'm getting inverse perspective in OpenGL ES application. Objects that are further from camera appear to be larger, and objects that are closer appear to be smaller. This is absolutely inverse to normal perspective.
Here is screenshot:

In this screenshot, cube is actually closer than sphere but due to incorrect perspective it looks smaller.
Object in 3ds max, cube and sphere have the same size:

Please explain what can be a cause of this.
|
Inverse perspective in OpenGL ES 2.0
|
CC BY-SA 3.0
| null |
2011-06-12T20:54:41.787
|
2011-12-07T22:45:08.733
|
2011-12-07T22:45:08.733
| 84,042 | 405,681 |
[
"android",
"opengl-es-2.0"
] |
6,324,801 | 1 | 6,328,351 | null | 12 | 21,705 |
I am receiving a Server Error on an ASP Classic site running on IIS 7.5.
I have "Send Errors To Browser" set to `True`, however I still receive the following error screen:

|
What is required for an IIS site to send error details to the browser?
|
CC BY-SA 3.0
| 0 |
2011-06-12T21:29:17.483
|
2014-09-10T16:33:44.527
| null | null | 344,211 |
[
"iis",
"iis-7",
"asp-classic",
"iis-7.5",
"windows-server-2008-r2"
] |
6,325,066 | 1 | 6,325,143 | null | 1 | 1,843 |
I am building a line graph application using Raphael.js and need to draw a line that passes through two points and reach the viewport.
I have uploaded a mockup that shows what I need to achieve:

Any help is appreciated.
Thanks
|
How to draw a "infinite" line using Raphael.js?
|
CC BY-SA 3.0
| 0 |
2011-06-12T22:17:34.433
|
2011-06-13T08:16:46.947
|
2011-06-12T22:22:24.667
| 157,247 | 102,836 |
[
"javascript",
"svg",
"raphael"
] |
6,325,070 | 1 | 6,326,368 | null | 0 | 711 |
Trying to draw a solid cylinder doesn't do what I want it to. Here's my code:
```
public static void solidCylinder(GL10 gl, float radius, float height, int slices, int steps)
{
float zStep = height/steps;
float alphaStep = (float)((2*Math.PI) / slices);
float crtZ = -height/2;
float[] vdata = new float[6 * steps * (slices+1)];
for(int iStep = 0; iStep < steps; iStep++)
{
float crtAlpha = 0;
int iAlpha;
for (iAlpha = 0; iAlpha <= slices; iAlpha++)
{
vdata[iStep * (iAlpha*6)+0] = (float)(radius * -Math.sin(crtAlpha));
vdata[iStep * (iAlpha*6)+1] = crtZ;
vdata[iStep * (iAlpha*6)+2] = (float)(radius * Math.cos(crtAlpha));
vdata[iStep * (iAlpha*6)+3] = (float)(radius * -Math.sin(crtAlpha));
vdata[iStep * (iAlpha*6)+4] = crtZ + zStep;
vdata[iStep * (iAlpha*6)+5] = (float)(radius * Math.cos(crtAlpha));
crtAlpha += alphaStep;
}
gl.glShadeModel(GL10.GL_SMOOTH);
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, FloatBuffer.wrap(vdata));
gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 2*(slices+1) );
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
crtZ += zStep;
}
}
```
Here's where I call the method:
```
@Override
public void onDrawFrame(GL10 gl) {
// IN MY DRAWING FUNCTION:
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glColor4f(1.0f,1.0f,1.0f, 1.0f);
gl.glPushMatrix();
Primitives.solidCylinder(gl, 2.0f, 2.0f, 8, 3);
gl.glPopMatrix();
```
}
When I had the same in C/C++ (though directly with `glVertex*()`-
functions) it worked.
: On the emulator it stays all black as without calling `solidCylinder(..)`
:

What am I doing wrong?
Thanks and best regards
Tobias
|
Android / OpenGL ES: Draw primitive doesn't do anything
|
CC BY-SA 3.0
| 0 |
2011-06-12T22:18:28.793
|
2011-06-13T09:41:39.217
|
2011-06-13T09:41:39.217
| 146,003 | 146,003 |
[
"android",
"opengl-es"
] |
6,325,359 | 1 | 6,325,842 | null | 2 | 2,484 |
I'm sure this is dead simple, but I can't seem to figure it out.
I have a ListBox to display items, and these are displayed with a DataTemplate. I now want to group these items, so have added a group based on the manufacturer property. This is done in code behind.
```
ICollectionView view = CollectionViewSource.GetDefaultView(Items);
PropertyGroupDescription groups = new PropertyGroupDescription("Manufacturer");
view.GroupDescriptions.Add(groups);
```
I wanted to have each group in an expander, so they can be hidden. I have got this working by looking at GroupTemplates at MSDN This involves, having an expander, textblock and then a seperator to rule off the extra space like in Windows Vista/7 Groups. As Below.

The problem I am having is I cannot get the separator to fill up the remaining space correctly. If I use a MinWidth value, all my expanders have the same width. If I use the {binding ActualWidth, ElementName=MyListBox}, then the separator is too wide, as its as wide as the control that contains it. So it sets the scroll bars to be visible, (see screenshot below). If i leave width blank, then the seperator is not drawn at all.
My gut feeling is the stackpanel should have expanded the seperator to use the remaining space but it didn't. So i tried a DockPanel as in the XamlCode below, yet this also fails. I have a few other problems with getting controls to fill up the remaining space, by using a suitable width so if you can help me resolve this, it would be great.

My current WPF Xaml Markup. You will need to add elements to get this to display something.
```
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel x:Name="myStackPanel">
<ListBox x:Name="MyListBox">
<ListBox.GroupStyle>
<GroupStyle>
<GroupStyle.ContainerStyle>
<Style TargetType="{x:Type GroupItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupItem}">
<Expander IsExpanded="True">
<Expander.Header>
<DockPanel HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Height="Auto"
Width="{Binding ActualWidth, ElementName=MyListBox}"
Margin="10">
<TextBlock DockPanel.Dock="Left" Margin="0" FontSize="14" FontWeight="Bold" Foreground="Black" Text="{Binding Path=Name}"/>
<Separator DockPanel.Dock="Right" Margin="4,0,4,0"></Separator>
</DockPanel>
</Expander.Header>
<ItemsPresenter Margin="5,0,0,0" />
</Expander>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</GroupStyle.ContainerStyle>
</GroupStyle>
</ListBox.GroupStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<!-- Data Template Here -->
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</ScrollViewer>
```
|
Getting a separator to fill up the remaining space
|
CC BY-SA 3.0
| null |
2011-06-12T23:15:38.287
|
2011-11-18T19:56:48.933
|
2011-11-18T19:56:48.933
| 546,730 | 432,997 |
[
"c#",
".net",
"wpf",
"wpf-controls",
"styles"
] |
6,325,384 | 1 | 6,325,435 | null | 14 | 74,992 |
I want to add two jPanels to a JFrame side by side. the two boxes are jpanels and the outer box is a jframe 
I have these lines of code. I have one class called seatinPanel that extends JPanel and inside this class I have a constructor and one method called utilityButtons that return a JPanel object. I want the utilityButtons JPanel to be on the right side. the code I have here only displays the utillityButtons JPanel when it runs.
```
public guiCreator()
{
setTitle("Passenger Seats");
//setSize(500, 600);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container contentPane = getContentPane();
seatingPanel seatingPanel1 = new seatingPanel();//need to declare it here separately so we can add the utilityButtons
contentPane.add(seatingPanel1); //adding the seats
contentPane.add(seatingPanel1.utilityButtons());//adding the utility buttons
pack();//Causes this Window to be sized to fit the preferred size and layouts of its subcomponents
setVisible(true);
}
```
|
adding multiple jPanels to jFrame
|
CC BY-SA 3.0
| 0 |
2011-06-12T23:21:22.517
|
2011-06-12T23:57:46.610
|
2011-06-12T23:39:41.087
| 714,968 | 754,212 |
[
"java",
"swing",
"jpanel",
"layout-manager"
] |
6,325,647 | 1 | 6,334,170 | null | 4 | 1,216 |
I'm getting this error when I attempt to deploy my python project for the first time. I could have sworn that I set everything up correctly. Is there something I need to set in the configuration? I have not idea where to start looking, any help would be appreciated.

This is my `app.yaml` file. It resides in the `src` folder:
```
application: bsl-dm
version: 1
runtime: python
api_version: 1
```
After looking into this, I think the solution is that you cannot do this for python through eclipse (only java). You instead have to use the separate "Google App Engine Launcher" application.
|
<project name> is not an App Engine project when attempting to deploy
|
CC BY-SA 3.0
| 0 |
2011-06-13T00:25:35.883
|
2013-05-11T18:59:33.753
|
2013-05-11T18:59:33.753
| 1,014,938 | 84,131 |
[
"python",
"google-app-engine",
"setup-project"
] |
6,325,739 | 1 | 6,429,206 | null | 0 | 86 |
I would like to present the user of my iPhone app with 3 icons. They should touch one and the other two will become shaded. If they then touch one of the other ones, that one becomes illuminated normally and the other two darken.
What is the best way to do this in Interface Builder/ Cocoa-Touch?
Thanks :)

|
Choose icon options in Interface Builder
|
CC BY-SA 3.0
| null |
2011-06-13T00:52:42.890
|
2011-06-21T17:09:09.557
| null | null | 385,559 |
[
"iphone",
"objective-c",
"xcode",
"cocoa-touch",
"interface-builder"
] |
6,325,873 | 1 | 6,326,876 | null | 2 | 6,690 |
I have a URL where some images are exists. I want to retrieve all the images from that URL and display these images in the `GridView`. Now when I click any of thumb preview like in grid view then it should enlarge or load to full screen.
putting the snap shots for better understanding
|
Downloads images from URL and display it in a GridView
|
CC BY-SA 3.0
| 0 |
2011-06-13T01:27:59.270
|
2012-07-02T12:23:00.237
|
2011-06-13T02:43:57.227
| 190,309 | 705,474 |
[
"android",
"gridview"
] |
6,326,153 | 1 | 6,326,165 | null | 1 | 583 |
I want to merge two rows and add a column to show the count of similar rows.
I don't want to update the table, I just want this as part of select statement which would further be used in Java. I think it would be more efficient to do this in SQL then doing things after retrieving the records. It would be great if you could give me some idea how to do this in SQL: ![I want to merge these two tables as shown in picture]](https://i.stack.imgur.com/SfScq.png)
|
mySQL query, merge two rows and add another column as output result
|
CC BY-SA 3.0
| 0 |
2011-06-13T02:25:15.870
|
2012-05-27T06:07:19.957
|
2012-05-27T06:07:19.957
| 275,567 | 750,965 |
[
"mysql",
"sql",
"jdbc"
] |
6,326,180 | 1 | 6,326,210 | null | 1 | 1,445 |
I've tried many things, but cannot fix this dot fading in with odd edges.
The jQuery is `fadeIn()` here is a [video](http://see.weareinto.com/7ZD8) of the animation.

---
## Updated
I turned the `div` css backgrounds that I was fading in into actual `img` images and it works great now !
Note: [PNG Transparency Problems in IE8](https://stackoverflow.com/questions/1251416/png-transparency-problems-in-ie8) is also required .
|
PNG animation translucency in IE8
|
CC BY-SA 3.0
| null |
2011-06-13T02:31:07.440
|
2011-06-13T02:43:00.033
|
2017-05-23T10:32:36.017
| -1 | 537,998 |
[
"jquery"
] |
6,326,266 | 1 | 6,326,401 | null | 8 | 9,700 |
Here's my fiddle:
[http://jsfiddle.net/gFA4p/84/](http://jsfiddle.net/gFA4p/84/) ``
In this screenshot, the green lines represent where I'm trying to apply dotted lines.

I am able to get the left-right borders to appear as dotted lines, but not the bottom borders.
How can I resolve this?
|
Issue with applying dotted border to cells in table design
|
CC BY-SA 3.0
| 0 |
2011-06-13T02:58:59.043
|
2018-02-06T10:18:08.740
|
2018-02-06T10:18:08.740
| 4,370,109 | 251,257 |
[
"html",
"css",
"border",
"css-tables"
] |
6,326,272 | 1 | 6,344,035 | null | 14 | 6,630 |
This is most likely a bug in Mathematica 8.0.1 and maybe other versions too. Lets try the following:
```
Table[
Export[
"Res_" <> ToString[r] <> ".png", Rasterize[
Style[x^2 + y^2, 40],
Background -> None,
ImageResolution -> r
],
Background -> None],
{r, {20, 40, 100, 300, 400, 500, 600}}
]
```
This is a screen shot of what I obtain:

First thing to notice is that the last two pictures are the wrong size. This is fine to some extent since I'm satisfied with a resolution of 300 or above. Now look at this:
```
in = 72;
G3D = Graphics3D[AspectRatio -> 0.925, Axes -> {True, True, True},
AxesEdge -> {{-1, -1}, {1, -1}, {-1, -1}}, AxesStyle -> Directive[10, Black],
BaseStyle -> {FontFamily -> "Arial", FontSize -> 12}, Boxed -> False,
BoxRatios -> {1, 1, 1}, LabelStyle -> Directive[Black],
ImagePadding -> All, ImageSize -> 5 in, PlotRange -> All,
PlotRangePadding -> None, TicksStyle -> Directive[10],
ViewPoint -> {2, -2, 2}, ViewVertical -> {0, 0, 1}, Background -> None
];
surf = Show[
Graphics3D[Sphere[{0, 0, 0}, 1], Background -> None,
AxesLabel -> {"x", "y", "z"}], Options[G3D]
];
fig = Show[surf, AxesStyle -> Directive[Opacity[0]],
Background -> None
];
```
I wish to `Export` fig as a png file with transparent background with a high resolution. Here goes my lame attempt with the always buggy Mathematica.
```
Table[
Export[
"Res_" <> ToString[r] <> ".png",
Rasterize[fig, ImageResolution -> r, Background -> None],
Background -> None
], {r, {20, 40, 100, 300, 400, 500}}
]
```
Here is a screenshow of a few png files.

All of them came out with the expected resolution :). But what happened to my transparent background? I have specified many times through my code `Background -> None` and yet this doesn't want to work. I looked around the web and I found this:
[http://forums.wolfram.com/mathgroup/archive/2009/Feb/msg00943.html](http://forums.wolfram.com/mathgroup/archive/2009/Feb/msg00943.html)
Lets use this idea.
```
bgImage = Image[ConstantArray[{0, 0, 0, 0}, Reverse[ImageDimensions[fig]]],
ColorSpace -> "RGB"];
compImage = ImageCompose[bgImage, fig];
Table[Export["Res_" <> ToString[r] <> ".png",
Rasterize[compImage, ImageResolution -> r, Background -> None],
Background -> None], {r, {20, 40, 100, 300, 400, 500}}]
```

No backgrounds!!! :) Great. But what happened to the sizes of my images? The resolution is increasing but the image size started to decrease. I have really been messing around with this problem for too long now. I hope one of you can shed some light into this Mathematica bug and can find a hack in order to achieve a transparent background PNG with high resolution. Please mention the Mathematica version you guys are using if you find an answer.
|
Mathematica: Transparent background with PNG
|
CC BY-SA 3.0
| 0 |
2011-06-13T03:01:05.463
|
2011-10-10T21:20:02.037
|
2011-10-10T21:20:02.037
| 309,308 | 788,553 |
[
"image",
"wolfram-mathematica",
"plot",
"mathematica-8"
] |
6,326,360 | 1 | 6,339,311 | null | 4 | 11,298 |
I have several data sets (distribution) as follows:
```
set1 = [1,2,3,4,5]
set2 = [3,4,5,6,7]
set3 = [1,3,4,5,8]
```
How do I plot a scatter plot with the data sets above with the y-axis being the probability (i.e. the percentile of the distribution in set: 0%-100% ) and the x-axis being the data set names?
in JMP, it is called 'Quantile Plot'.
Something like image attached:

Please educate. Thanks.
My data is in csv as such:

Using JMP analysis tool, I'm able to plot the probability distribution plot (QQ-plot/Normal Quantile Plot as figure far below):

I believe Joe Kington almost has my problem solved but, I'm wondering how to process the raw csv data into arrays of probalility or percentiles.
I doing this to automate some stats analysis in Python rather than depending on JMP for plotting.
|
Python: Matplotlib - probability plot for several data set
|
CC BY-SA 3.0
| 0 |
2011-06-13T03:21:28.137
|
2011-06-15T03:30:17.113
|
2020-06-20T09:12:55.060
| -1 | 628,103 |
[
"python",
"numpy",
"matplotlib",
"probability",
"percentile"
] |
6,326,412 | 1 | 6,407,129 | null | 1 | 786 |
I'm trying to have an image scale to a certain size depending on the horizontal size sent to an update function, but the following code doesnt seem to size the image correctly.
EDIT: The code:
```
public class GlassesView extends View {
private Paint paint;
private BitmapFactory.Options options;
private Bitmap bitmapOrg;
private Bitmap target;
private Bitmap bitmapRev;
private Bitmap resizedBitmap;
private int currY;
public int glassesX;
public int glassesY;
public float glassesSizeX;
public float glassesSizeY;
private boolean drawGlasses;
private boolean glassesMirrored;
public GlassesView(Context context) {
super(context);
paint = new Paint();
paint.setDither(false);
paint.setAntiAlias(false);
options = new BitmapFactory.Options();
options.inDither = false;
options.inScaled = false;
bitmapOrg = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),
R.drawable.micro_glasses, options), 32, 5, false);
bitmapRev = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),
R.drawable.glasses_reverse, options), 32, 5, false);
drawGlasses = false;
}
@Override
protected void onDraw(Canvas canvas) {
canvas.drawBitmap(target, 0, 0, paint);
boolean moving = currY < glassesY;
if (moving) {
currY++;
}
if (drawGlasses) {
int newWidth = resizedBitmap.getWidth();
int newHeight = resizedBitmap.getHeight();
Paint bluey = new Paint();
bluey.setColor(Color.argb(64, 0, 0, 255));
canvas.drawRect(new Rect(glassesX, currY, glassesX + newWidth,
currY + newHeight), bluey);
canvas.drawBitmap(resizedBitmap, glassesX, currY, paint);
}
if (moving) {
invalidate();
}
}
public void drawGlasses(int x1, int x2, int y, boolean mirror) {
drawGlasses = true;
glassesMirrored = mirror;
if (!mirror) {
glassesSizeX = (float) (x2 - x1) / (float) (25 - 16);
glassesSizeY = glassesSizeX;
glassesY = y - (int)(1*glassesSizeX);
glassesX = (int) (x1 - (glassesSizeX * 16));
} else {
glassesSizeX = (float) (x1 - x2) / (float) (25 - 16);
glassesSizeY = glassesSizeX;
glassesY = y - (int)(1*glassesSizeX);
glassesX = (int) (x1 - (glassesSizeX * 16));
}
currY = -1;
if (!glassesMirrored) {
resizedBitmap = Bitmap.createScaledBitmap(bitmapOrg,
(int) (bitmapOrg.getWidth() * glassesSizeX),
(int) (bitmapOrg.getHeight() * glassesSizeY), false);
} else {
resizedBitmap = Bitmap.createScaledBitmap(bitmapRev,
(int) (bitmapRev.getWidth() * glassesSizeX),
(int) (bitmapRev.getHeight() * glassesSizeY), false);
}
}
public void setTargetPic(Bitmap targetPic) {
target = targetPic;
}
}
```
[The result.](https://i.stack.imgur.com/ttK7a.png) (The blue rectangle being the bounding box of the image's intended size)
Which part am I going wrong at?
EDIT 2:
Here are the glasses: 
EDIT 3:
Out of curiousity, I ran it on my actual phone, and got a [much different result](https://i.stack.imgur.com/EdX5x.png), the image was stretched passed the intended blue box.
EDIT 4:
I tried running the app on a few emulators to see if it was an Android version incompatibility thing, but they all seemed to work perfectly. The scaling issue only occurs on my phone (Vibrant, rooted, CM7) and my cousin's (Droid, also rooted). These are the only physical devices I have tested on, but they both seem to have the same issue.
I'd really appreciate if someone could help me out here, this is a huge roadblock in my project and no other forums or message groups are responding.
EDIT 5:
I should mention that in update 4, the code changed a bit, which fixed the problem in the emulators as I stated, but doesn't work on physical devices. Changes are updated in the code above. :P
EDIT 6:
Yet another update, I tested the same code on my old G1, and it works perfectly as expected. I have absolutely no clue now.
|
Why isn't my image scaling correctly?
|
CC BY-SA 3.0
| null |
2011-06-13T03:32:16.663
|
2011-06-20T05:28:02.770
|
2011-06-20T00:10:06.500
| 495,388 | 495,388 |
[
"java",
"android",
"android-layout",
"android-canvas"
] |
6,326,815 | 1 | 6,326,860 | null | 1 | 11,474 |
>
[How to create notification icon badge on Android apps (like iPhone)](https://stackoverflow.com/questions/2587294/how-to-create-notification-icon-badge-on-android-apps-like-iphone)
Friends in Android Possible badge notification any body know then plz help me.
thanks for advance.

|
How to use badge notification in android?
|
CC BY-SA 3.0
| 0 |
2011-06-13T04:58:56.297
|
2011-09-02T04:53:48.853
|
2017-05-23T12:07:06.850
| -1 | 729,405 |
[
"android"
] |
6,326,925 | 1 | 14,275,295 | null | 2 | 437 |
Is there any way to make this text selection effect easily with a library in Javascript? It is very well done and I'd like to mirror this look.
Wondering if anyone had done something similar or seen it done before and if they could provide any guidance. Thanks!

|
Create Safari's Find Function Style Text Selector in Javascript
|
CC BY-SA 3.0
| 0 |
2011-06-13T05:20:23.397
|
2013-01-11T09:38:56.530
|
2011-06-13T19:36:46.737
| -1 | 216,314 |
[
"javascript",
"selection",
"highlighting",
"highlight",
"textselection"
] |
6,326,938 | 1 | null | null | 0 | 852 |
From last few days I'm trying to create an application that can adjust screen according to emulator's size change.. I found the solution that uses multiple screen.
but i am not able to do this
i've taken help from [this](http://developer.android.com/guide/practices/screens_support.html) but not able to understand how can i `setContentView(R.layout.main);` ? because when i am pressing .(dot) after `R` it doesn't show me this below folders..:(
i've created 3 folders named `layout-large`, `layout-small` and `layout-large-land` under the `res` folder in my android application
i've added this into my manifest file..
```
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true" />
```

what thing i am missing over here? i am using android 1.6 thanks in advance
question is whether i've to provide this `main.xml` file to default `layout folder` also? yes then no affect on chage in screen size no then it close my application forcefully i've tried using `API level 7` also but problem remain same
this is my xml file
```
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:id="@+id/rl"
android:layout_height="360dip">
<!--
<WebView android:id="@+id/webviewHelp"
android:layout_width="fill_parent"
-->
<!-- android:layout_height="fill_parent" />-->
<WebView android:id="@+id/webviewHelp" android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<Button android:id="@+id/My_btn"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" android:gravity="center"
android:textSize="8px" android:text="Download this mp3 file"
android:textColor="@color/white" android:layout_width="fill_parent"
android:layout_height="28dip" android:visibility="invisible" />
<Button android:id="@+id/My_btn1"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" android:text="this is button !"
android:layout_width="0dip" android:layout_height="0dip"
android:visibility="invisible" />
</RelativeLayout>
```
|
Multiple screen support on Android
|
CC BY-SA 3.0
| 0 |
2011-06-13T05:24:32.747
|
2014-03-23T20:28:30.283
|
2014-03-23T20:25:06.970
| 321,731 | 674,530 |
[
"android",
"screen"
] |
6,327,048 | 1 | null | null | 2 | 907 |
I have
```
jQuery(document).ready(function () {
jQuery("#list").jqGrid({
url: '/TabMaster/GetGridData',
datatype: 'json',
mtype: 'GET',
colNames: ['col ID', 'First Name', 'Last Name', '', '', '', ''],
colModel: [
{ name: 'colID', index: 'colID', width: 100, align: 'left' },
{ name: 'FirstName', index: 'FirstName', width: 150, align: 'left' },
{ name: 'LastName', index: 'LastName', width: 300, align: 'left' },
{ name: 'add', width: 18, sortable: false, search: false,
formatter: function () {
return "<span class='ui-icon ui-icon-plus'></span>"
}
},
{ name: 'edit', width: 18, sortable: false, search: false,
formatter: function () {
return "<span class='ui-icon ui-icon-pencil'></span>"
}
},
{ name: 'del', width: 18, sortable: false, search: false,
formatter: function () {
return "<span class='ui-icon ui-icon-trash'></span>"
}
},
{ name: 'details', width: 18, sortable: false, search: false,
formatter: function () {
return "<span class='ui-icon ui-icon-document'></span>"
}
}
],
onSelectRow: function (rowJsonId)
{ handleSelectedRow(rowJsonId); },
pager: jQuery('#pager'),
rowNum: 4,
rowList: [1, 2, 4, 5, 10],
sortname: 'colID',
sortorder: "asc",
viewrecords: true,
gridview: true,
rownumbers: true,
multiselect: true,
imgpath: '/scripts/themes/steel/images',
caption: 'Tab Master Information'
}).navGrid(pager, { edit: true, add: true, del: true, refresh: true, search: true });
});
function handleSelectedRow(thing) {
}
```
but i could not able to see buttons for i am only able to see for empty column in JQGrid.
for your reference

Please provide your valuable comments for the same.
|
I could not able to see Add. Edit, Delete and View using JQGrid
|
CC BY-SA 3.0
| 0 |
2011-06-13T05:48:35.787
|
2012-05-18T16:10:37.310
|
2011-07-14T07:33:05.457
| 735,598 | 735,598 |
[
"asp.net",
"asp.net-mvc",
"jqgrid"
] |
6,327,121 | 1 | 6,328,033 | null | 1 | 2,721 |
I have ul with following structure
```
<div class="gal">
<ul>
<li>
<a rel="lightbox[imgs]" href="http://192.168.0.204/CAPW/uploads/materials_pics/5fdc91f1f2e9471ca375d346d3558757.jpg">
<img width="100" height="100" class="imgclass" src="http://192.168.0.204/CAPW/uploads/materials_pics/5fdc91f1f2e9471ca375d346d3558757_thumb.jpg">
</a>
</li>
<li>
<a rel="lightbox[imgs]" href="http://192.168.0.204/CAPW/uploads/materials_pics/d3a43711dee8a4331f14329d40ed6314.jpg">
<img width="100" height="100" class="imgclass" src="http://192.168.0.204/CAPW/uploads/materials_pics/d3a43711dee8a4331f14329d40ed6314_thumb.jpg">
</a>
</li>
<li>
<a rel="lightbox[imgs]" href="http://192.168.0.204/CAPW/uploads/materials_pics/836bdef9b8ec56c0a88386760efb1f90.png">
<img width="100" height="100" class="imgclass" src="http://192.168.0.204/CAPW/uploads/materials_pics/836bdef9b8ec56c0a88386760efb1f90_thumb.png">
</a>
</li>
</ul>
```
because I have different image thumb sizes I can't set width and height to `<li>` . Please refer to the screen-shot. It is not aligned properly
The CSS used
```
<style type="text/css">
.gal ul li {
padding: 5px;
margin: 5px;
position: relative;
float: left;
list-style:none;
}
.imgclass {
float: left;
margin: 0 0 15px 0;
padding: 2px;
vertical-align:middle;
}
.gal {
margin:0 auto;
width: 850px;
text-align:center;
}
</style>
```
My problem is how avoid that overlapping the small-size images
|
<ul> <li> aligning issue, different sized images
|
CC BY-SA 3.0
| null |
2011-06-13T06:01:51.443
|
2012-05-10T14:17:13.537
|
2012-05-10T14:17:13.537
| 44,390 | 171,995 |
[
"html",
"css",
"css-float"
] |
6,327,292 | 1 | 6,327,463 | null | 1 | 425 |
I simply need to get the 'html' from a particular (cross domain) request.
I'm using the JQuery.ajax() function passing `dataType=json` so that JQuery generates a `script` tag and fires off the request.
Here's the code:
> ```
var url="http://www.google.com/callback=?";
$.ajax({
type: 'GET',
url: url,
dataType: 'json',
success: function(data) {$("#out").append("success "+data); },
error: function(data) {$("#out").append("failure "+data); },
complete: function(data) {$("#out").append("complete "+data); },
data: {},
async: false
});
```
Now, the odd bit is that, using firebug, I do see the generated script tag AND the response from the remote server, but none of my callbacks are being called.

How do I get the html returned from the `ajax()` call? Am I using the wrong function in the first place?
|
Using JQuery's ajax to scrape webpage
|
CC BY-SA 3.0
| null |
2011-06-13T06:35:00.053
|
2011-06-13T07:02:07.387
| null | null | 111,991 |
[
"jquery"
] |
6,327,322 | 1 | null | null | 1 | 986 |
Good day!

There are instances of classes QListView and QTreeView.
Both of the instances loads data from model (QStandardItemModel).
QTreeView displays positions (For example: Chief, Manager, Developer, etc).
Clicking on the title of position a list of employees revealed.
QListView displays only positions of staff.
Question:
How can I display a full list of names of employees in QListView not showing their positions?
Which methods I need to override?
What can you advise in this situation?
P.S. Thanks!
|
Problems with displaying data in QListView
|
CC BY-SA 3.0
| null |
2011-06-13T06:40:18.203
|
2012-03-24T23:23:01.310
|
2012-03-24T23:23:01.310
| null | 795,377 |
[
"qt",
"qtreeview",
"qlistview",
"qstandarditemmodel"
] |
6,327,435 | 1 | 6,330,298 | null | 3 | 2,855 |
I've this navbar at the footer
```
<footer data-role="footer">
<div data-role="navbar" data-iconpos="top">
<ul>
<li><a href="a.html" class="ui-btn-active" data-icon="star">Fav</a></li>
<li><a href="b.html" data-icon="back">Recent</a></li>
<li><a href="a.html" data-icon="delete">Contacts</a></li>
<li><a href="b.html" data-icon="grid">Keypad</a></li>
<li><a href="a.html" data-icon="delete">Voicemail</a></li>
</ul>
</div><!-- /navbar -->
</footer>
```
[http://jquerymobile.com/test/#/test/docs/toolbars/docs-navbar.html](http://jquerymobile.com/test/#/test/docs/toolbars/docs-navbar.html) says, the nav bar can take upto 5 items in one line but here, the nav items are assigned with 3 columns layout and the last 2 li items falls down in the second line.
Did I miss something??

|
Navbar in jQuery Mobile
|
CC BY-SA 3.0
| null |
2011-06-13T06:58:56.253
|
2012-07-31T07:51:18.543
|
2011-06-13T09:02:31.403
| 383,393 | 383,393 |
[
"jquery-mobile"
] |
6,327,707 | 1 | 6,327,739 | null | 0 | 229 |
How to collect data from inputs (inputs are in table which has id=tbl_bbmd and unknown number of rows , like on picture)

I need to collect data from inputs cells and concaneta them. How to iterate through this table and collect ?
|
How to collect data from table cells
|
CC BY-SA 3.0
| null |
2011-06-13T07:31:08.057
|
2011-06-13T07:34:09.867
| null | null | 789,077 |
[
"javascript",
"jquery"
] |
6,327,703 | 1 | 6,327,798 | null | 2 | 8,404 |
i am trying to create an input box like below

These are the rules i have attached
```
input {
height:30px;
width:286px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border-color:#cccccc;
padding:0 10px;
}
```
But i am getting an inner box shawdow like this.

Any idea how to remove that inner shawdow ?
Online Editor: [http://jsfiddle.net/c3JCx/](http://jsfiddle.net/c3JCx/)
|
Input Field Styling - CSS problem
|
CC BY-SA 3.0
| null |
2011-06-13T07:30:43.257
|
2011-12-25T01:04:48.533
|
2011-12-25T01:04:48.533
| 106,224 | 155,196 |
[
"css"
] |
6,327,845 | 1 | 6,329,201 | null | 21 | 17,831 |
Using the standard Delphi TRibbon components I noticed they are not that brilliant.
- Firstly they dont look as nice as the Microsoft ones, for example the glow effects and colors in the TRibbon dont look as impressive as the ones used in Wordpad or Paint in Windows 7.- Secondly if you want to create Ribbon Styled interfaces, I noticed that there is no Ribbon style menus or popup menus independent of the TRibbon. For the actual Ribbon there is, but if say for continuity purposes you wanted the Ribbon style popup menus assigned to a TListbox or TListView for example, there doesnt appear to be one. - Thirdly, sometimes when a Ribbon Action is disabled, it still shows the Hot glow effect as if hovering over the Action, even though it is disabled. - Finally I find it very fiddly trying to place container components such as a TCombobox in a group. It is really awkward sizing the controls and position etc.
I guess my point is that using the standard Delphi TRibbon components appears to be not the best approach both visually and useably. How can I make a Ribbon styled Application look and work as neatly as the Microsoft ones do just like I said before the way that Wordpad and Paint do in Windows 7?
Have a look at this comparison screenshot to get a better idea:

The Delphi Ribbon seems incomplete, unless I am expecting too much. I believed the Ribbon Components are to provide your Application with a better experience for the end user both visually and better workspace etc.
What suggestions could you give to enhance or make the TRibbon work and look like the Microsoft ones?
I dont use Ribbon Style Interfaces all the time so purchasing 3rd Party Components is not something I really want to do. I have looked at the TMS and DevExpress ones but for the price of them, they dont look as good either. The TMS ones look worse than the standard Delphi TRibbon.
|
Creating Ribbon Styled Applications
|
CC BY-SA 3.0
| 0 |
2011-06-13T07:49:26.413
|
2014-09-03T18:51:07.233
| null | null | null |
[
"delphi",
"ribbon"
] |
6,327,882 | 1 | 6,328,269 | null | 0 | 1,777 |
I have a question regarding if it is possible to hide inputs to a web-service method.
Lets say that the fourth parameter takes a password as input, and we want this input only to be used on the client side.
The function has 4 input parameters, and is there any way possible to still have all the input parameters to the function but make the fourth parameter invisible when accessing the .asmx file through the web-browser? This is to eliminate users trying to access the service and trying to input random data.

To place this in an example.
We have an iPhone application, when a user makes use of a function, some parameters are sent to the web-service along with the fourth parameter that should contain a key of some sort to validate that the user is on an actual iPhone using the application and not someone accessing the web-service trying to access data.
```
public someVariable someFunction(someVar parameter1,someVar parameter2,someVar parameter3,someVar parameter4)
{
if (key.isMatch(parameter4))
{
The user is on an iPhone using the app : Proceeding.
}
else
The user is not on an iPhone, cancelling function.
}
```
|
Hide function input parameters in C# web-service?
|
CC BY-SA 3.0
| null |
2011-06-13T07:54:03.200
|
2011-06-13T09:51:20.600
|
2011-06-13T08:24:24.230
| 679,954 | 679,954 |
[
"c#",
"web-services",
"user-input"
] |
6,327,972 | 1 | 6,328,094 | null | 1 | 292 |
I have a scroll view (shown in the picture below). It allows the user to jump/navigate between various sections in my app. The number of sections varies between 20 to 40 (which is pretty large). The speed of the scroll should depend on the speed with which the user swipes/scrolls on the view. I thought of doing this operation by using the `contentOffSet` property of `scrollview`, but didn't do it as it might decrease the usability of this feature.
-------> This is the scroll view
|
Can we control the speed of the Scrollview
|
CC BY-SA 3.0
| null |
2011-06-13T08:05:22.093
|
2012-10-01T16:57:50.777
|
2012-10-01T16:57:50.777
| 1,253,219 | 541,582 |
[
"iphone",
"ipad",
"uiscrollview",
"uiscrollviewdelegate"
] |
6,328,245 | 1 | 6,340,761 | null | 1 | 3,435 |
I am trying to map a relationship between 2 MySQL tables in Doctrine 2. My owning entity is 'Campaign', it joins to 'Channel'.
When a campaign record is saved, it must contain a channel id. When a campaign is retrieved I would like to use this id to join to channel and display the channel name (from the channel table). I believe this is a one-to-one unidirectional relationship, please correct me if I'm wrong.

I have specified the mapping using Doctrine 2 XML as follows:
```
<one-to-one field="channelId" target-entity="Channel" fetch="EAGER">
<join-column name="channel_id" referenced-column-name="id" />
</one-to-one>
```
When populating the campaign entity and attempting to persist it, I am getting the following error.
> > A new entity was found through a relationship that was not configured to cascade persist operations: Mvc\Entity\Channel@0000000034b3dcd500000000cc77faae. Explicitly persist the new entity or configure cascading persist operations on the relationship.
How should this persist be specified, I do not want to modify or save the channel entity. I have studied that Doctrine 2 documentation on 'Association Mapping' but I cannot understand how this is possible.
Thank you.
|
Persisting selected entities in mapped relationships in Doctrine 2
|
CC BY-SA 3.0
| null |
2011-06-13T08:37:59.933
|
2011-06-14T08:10:18.660
|
2011-06-13T10:21:13.083
| 295,588 | 295,588 |
[
"php",
"mysql",
"doctrine",
"doctrine-orm",
"doctrine-query"
] |
6,328,266 | 1 | 6,348,237 | null | 0 | 32 |
so I have a been working on tweaking for IE 6 under Win 98 SE with virtualbox, and have come across this very strange behavior. There is additional text showing up at the footer even though the "View Source" shows nothing out of the `<a>` tag, the last 3 letters is coming up in the browser. Any idea what it could be? This only happens in IE 6.


```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
```
Although it is HTML5, I have used PHP to condition the DOCTYPE xhtml to be applied to IE6.
Also there is nothing to the right of line 209 anywhere. I've even changed the link display name and whatever is the last 3 chars, it will show up below the footer.
|
IE 6 showing strange html output
|
CC BY-SA 3.0
| null |
2011-06-13T08:40:29.137
|
2011-06-14T18:28:37.790
| null | null | 731,636 |
[
"xhtml",
"internet-explorer-6"
] |
6,328,298 | 1 | 6,506,278 | null | 3 | 4,237 |

A can have one or more objects.
I want to select all who's streetname contains a specific keyword.
If I just want to search in I can use the code below. But how do I extend it to also search in ?
```
public IQueryable<Party> SearchParties(List<string> keywords)
{
var predicate = PredicateBuilder.False<Party>();
foreach (string word in keywords)
{
var keyword = word;
predicate = predicate.Or(p => p.surname.Contains(keyword));
predicate = predicate.Or(p => p.lastname.Contains(keyword));
predicate = predicate.Or(p => p.number.Contains(keyword));
}
return db.Parties.Where(predicate);
}
```
Is there anything else you need to know?
I guess I could create another predicate and then join them afterwards. Something like:
```
var predicate2 = PredicateBuilder.False<Contact>();
```
...and in the foreach:
```
predicate2 = predicate2.Or(p => p.streetname.Contains(keyword));
```
But how would I join predicate and predicate2 before returning?
Or, join the and before doing the predicate Builder?
Here are parts of the generated classes:
```
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Contact")]
public partial class Contact : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _id;
// ...more properties
private EntityRef<Party> _Party;
public Contact()
{
this._Party = default(EntityRef<Party>);
OnCreated();
}
}
```
|
predicate builder with two tables
|
CC BY-SA 3.0
| 0 |
2011-06-13T08:44:50.970
|
2011-06-28T13:43:47.397
|
2011-06-13T14:57:27.203
| 536,610 | 536,610 |
[
"c#",
"linq-to-sql",
"predicatebuilder"
] |
6,328,506 | 1 | 6,328,953 | null | 2 | 383 |
Is it possible for me to add a customised upload button, like in below screenshot..
When Clicked on upload and you choose a image, a dropdown appears,
How is it done? I would like add a couple of fields and some check box like in the site
for demo http:/foodspotting.com
Is there a Jquery plugin available for this?

|
Can I create a custom form elements(upload, dropdown, checkbox)?
|
CC BY-SA 3.0
| null |
2011-06-13T09:08:38.560
|
2011-06-13T09:57:39.803
|
2011-06-13T09:44:19.040
| 184,883 | 782,258 |
[
"javascript",
"jquery",
"css",
"forms"
] |
6,328,675 | 1 | 6,328,691 | null | 0 | 301 |
it's ok on my computer but when i posted it online, after clicked like it always shows up a confirm button.
here is my like button code:
```
<iframe src="http://www.facebook.com/plugins/like.php? app_id=231169313564386&href=http%3A%2F%2F{4}&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>
```
here is picture:


|
why when i click like button on my website, it always shows confirm button?
|
CC BY-SA 3.0
| null |
2011-06-13T09:28:55.197
|
2011-06-13T10:00:05.133
|
2011-06-13T10:00:05.133
| 728,724 | 728,724 |
[
"html"
] |
6,328,809 | 1 | null | null | 2 | 3,998 |
I need to show a view that is not full screen and has a button and pickerView under it.
I tried using this code:
```
UIView *container = [[UIView alloc] initWithFrame:CGRectMake(20,20,200,200)];
container.backgroundColor=[UIColor whiteColor];
UIButton *myButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
myButton.frame = CGRectMake(container.frame.origin.x, container.frame.origin.y+5, 170, 20); // position in the parent view and set the size of the button
myButton.titleLabel.textColor=[UIColor redColor];
myButton.titleLabel.text=@"click me";
//myButton.backgroundColor=[UIColor blueColor];
//[myButton backgroundImageForState:<#(UIControlState)#>[UIImage imageNamed:@"iPhone_mainbutton_green.png"];
// add targets and actions
[myButton addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
// add a buttonview
[container addSubview:myButton];
UIPickerView *piker=[[UIPickerView alloc] initWithFrame:CGRectMake(container.frame.origin.x, container.frame.origin.y +30, 100, 100)];
//piker.numberOfComponents=1;
piker.showsSelectionIndicator=YES;
//piker.delegate=self;
//piker.dataSource=self;
[container addSubview:piker];
[myButton release];
[piker release];
[self.view addSubview:container];
```
and i get this (picker out of the screen and very large, not 100x100):

|
Size of UIPickerView is not set correctly
|
CC BY-SA 3.0
| null |
2011-06-13T09:42:56.250
|
2018-04-16T12:04:49.117
|
2011-06-13T09:51:13.660
| 324,417 | 324,417 |
[
"iphone",
"objective-c",
"uipickerview",
"frame"
] |
6,328,869 | 1 | 6,462,342 | null | 0 | 463 |
i want to integrate itunes file sharing into my app. I know that i just need to set true UIFileSharingEnabled in info.plist. But it make all files and directories in /Documents from my app is show in itunes file sharing. I just want to share a directory tree listing in itunes file sharing.
This is a screenshoot of my /Documents (i got it from iphone simulator directory but it is same for the device)

from that pictures, i just want to share the all files in Project directory without showing Project directory itself.
Can i do that? Please help me to solve this.
Thank you, Risma
|
how to share a certain directory tree list from <Application_Home>/Documents using UIFileSharingEnabled
|
CC BY-SA 3.0
| null |
2011-06-13T09:48:48.573
|
2011-06-24T01:17:50.767
| null | null | 515,986 |
[
"ipad",
"ios4",
"itunes",
"file-sharing"
] |
6,329,068 | 1 | 6,330,112 | null | 1 | 1,400 |
Can this be done ?
Below are snippets of what is not working, failing with exception:

```
function SendBytesJS() {
var control1 = document.getElementById('sl1');
bytes = new Array(1, 2, 3);
control1.Content.MainPage.SendBytesSL(bytes);
}
```
and
```
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
System.Windows.Browser.HtmlPage.RegisterScriptableObject("MainPage", this);
}
[System.Windows.Browser.ScriptableMember]
public void SendBytesSL(byte[] bytes)
{
// never gets here
}
}
```
|
Send byte array from javascript to silverlight
|
CC BY-SA 3.0
| null |
2011-06-13T10:09:09.027
|
2011-06-13T12:01:44.427
|
2011-06-13T12:01:44.427
| 258,127 | 185,945 |
[
"javascript",
"silverlight"
] |
6,329,470 | 1 | null | null | 0 | 789 |
I customize `UIAlertView` and add `UITextView` and `UITextfield`, but I need to set buttons (I add buttons in a standart `init`) to bottom of `UIAlertView` view. While `init` my `UIAlertView` I add message:`@"\n\n\n\n\n"` this give me 5 strings but when I add another one `UIAlertView` show it's standart textview.
Take a look on image to make it more clear to understand what i have and what i need.

|
UIAlertView customization, how to manage standart buttons?
|
CC BY-SA 3.0
| null |
2011-06-13T10:53:03.747
|
2011-06-13T13:25:35.273
|
2011-06-13T11:03:09.840
| 612,606 | 735,924 |
[
"iphone",
"button",
"uitextfield",
"uitextview",
"uialertview"
] |
6,329,677 | 1 | 6,330,162 | null | 10 | 13,744 |
I've got a layout much like the one below. Currently when the back button is pressed the red linear layout's visibility is set to gone. However, I'd like it to "slide" up off of the page instead. How would I do this?

|
Android: Layouts "slide" off the screen?
|
CC BY-SA 3.0
| 0 |
2011-06-13T11:16:16.673
|
2011-06-13T12:04:23.720
| null | null | 358,438 |
[
"android",
"android-layout"
] |
6,329,822 | 1 | 6,332,656 | null | 1 | 2,183 |
On an ASP.NET web project, I have a stackedbar100 chart like this:

The height of the chart is set to 50px, but like you see there is a grey part showing.
What I would like to do is to make the green bar occupy all 50px and no grey part.
I've seen all the chart properties but haven't found the one that does this.
|
ASP Net Chart control bar height
|
CC BY-SA 3.0
| null |
2011-06-13T11:29:28.457
|
2012-07-23T21:51:35.597
|
2012-07-23T21:51:35.597
| 114,029 | 575,458 |
[
"asp.net",
"charts",
"height",
"bar-chart"
] |
6,330,410 | 1 | 6,330,540 | null | 0 | 254 |
We have used the eclipse memory analyzer and it shows the following things in the heap. The heap snapshot has been attached. Could this cause a memory leak in the future?
I am not able to pin point which file exactly is causing so many objects to be retained on the heap. Can you please provide some insight on this? We are using a Java EE application with the spring framework along with a tomcat 5.5 server. The database used is mysql.
Thanks in advance.


|
Java EE application heap issue
|
CC BY-SA 3.0
| null |
2011-06-13T12:28:51.800
|
2011-06-13T15:01:55.067
|
2011-06-13T13:05:43.123
| 626,773 | 626,773 |
[
"spring",
"jakarta-ee",
"heap-memory"
] |
6,330,518 | 1 | null | null | 5 | 1,955 |
When a user clicks on a Dock icon with the right mouse button (Or a command button + mouse click) on a running application - he can see a Dock menu. Which usually consists of 3 parts:

a list of all opened documents by this application (red), a custom application's part of the menu (yellow) and default items that are added implicitly to all the items (blue).
[Here](http://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/customizing_docktile/concepts/dockconcepts.html#//apple_ref/doc/uid/TP30000986-CH2-SW1) apple explains that we can define these custom items (yellow) by implementing an application delegate's method `‑(NSMenu *)applicationDockMenu:(NSApplication *)sender`, which should return a valid menu (or by defining this Dock menu in Interface Builder).
If you try to open a dock menu for Finder, you can see an unusual menu:

It is unusual because it does not have ordinary items for quitting and "Options" submenu - as any other launched application would have had by default. Instead it has only "Hide".
I am pretty sure an application or a nib file can override this default "system" (blue) part of a Dock menu. Maybe anyone has any idea how that can be achieved?
I am developing a security application that should not be allowed to quit or selected to be launched "at Login", but it should run all the time when the user is logged in (just like Finder, it may be halted only using Force application to Quit or Activity monitor). I have good reasons to want to get rid of it. I am aware that this is not exactly a Mac OS way, but this is not exactly an ordinary application.
Have anyone done anything similar?
Thank you
|
How to make a Finder-like Dock menu?
|
CC BY-SA 3.0
| 0 |
2011-06-13T12:40:07.650
|
2018-04-12T23:50:00.597
|
2011-06-13T13:35:25.433
| 50,122 | 751,735 |
[
"cocoa"
] |
6,330,659 | 1 | null | null | 1 | 3,121 |
i have a jtable with a checkbox in the header and other checkbox in the cell of the column.
like you can see on the picture, there are a problem

boolean is used for the first colum for the DefaultTableModel
right now, i have a tableRenderer for my first column
what option should i use to make header to get deselected if a check box is deselected?
thanks
|
deselect header checkbox when a checkbox is unchecked
|
CC BY-SA 3.0
| null |
2011-06-13T12:53:36.627
|
2011-09-02T09:17:07.453
|
2011-06-13T16:46:31.807
| 660,503 | 660,503 |
[
"jtable",
"jcheckbox"
] |
6,330,806 | 1 | 6,335,447 | null | 6 | 3,532 |
We are working on implementing some custom code on a workflow in a Sitecore 6.2 site. Our workflow currently looks something like the following:

Our goal is simple: email the submitter whether their content revision was approved or rejected in the "Awaiting Approval" step along with the comments that the reviewer made. To accomplish this we are adding an action under the "Approve" and "Reject" steps like so:

We are having two big issues in trying to write this code
1. There doesn't seem to be any easy way to determine which Command was chosen (the workaround would be to pass an argument in the action step but I'd much rather detect which was chosen)
2. I can't seem to get the comments within this workflow state (I can get them is the next state though)
For further context, here is the code that I have so far:
```
var contentItem = args.DataItem;
var contentDatabase = contentItem.Database;
var contentWorkflow = contentDatabase.WorkflowProvider.GetWorkflow(contentItem);
var contentHistory = contentWorkflow.GetHistory(contentItem);
//Get the workflow history so that we can email the last person in that chain.
if (contentHistory.Length > 0)
{
//contentWorkflow.GetCommands
var status = contentWorkflow.GetState(contentHistory[contentHistory.Length - 1].NewState);
//submitting user (string)
string lastUser = contentHistory[contentHistory.Length - 1].User;
//approve/reject comments
var message = contentHistory[contentHistory.Length - 1].Text;
//sitecore user (so we can get email address)
var submittingUser = sc.Security.Accounts.User.FromName(lastUser, false);
}
```
|
Sitecore workflow approval/rejection emails
|
CC BY-SA 3.0
| 0 |
2011-06-13T13:07:21.793
|
2016-10-13T15:47:58.957
| null | null | 285 |
[
"c#",
"asp.net",
"sitecore",
"sitecore6"
] |
6,330,878 | 1 | 6,331,736 | null | 3 | 1,724 |
I have the following JS that produces an alert box:
```
alert("You have selected the maximum number of funds available for comparison. Please ensure only five funds have been selected for your basket");
```
Chrome is rendering the alert box like this:

with the last 2 words wrapping onto separate lines.
Has anyone seen this before? Any ideas how to fix this?!
---
Wanted to add another screenshot since I am able to reproduce this error:
--Jeremy

|
Chrome rendering an alert() box with the last 2 words on 2 separate lines. How to fix?
|
CC BY-SA 3.0
| null |
2011-06-13T13:13:50.780
|
2012-01-11T21:30:58.707
|
2011-06-13T14:02:44.770
| 160,811 | 181,771 |
[
"javascript",
"google-chrome"
] |
6,331,004 | 1 | null | null | 0 | 148 |
The point is this:

I need to move gmap under div main ( it has 3 hole ..) ...
Can anyone suggest some solution?
Thanks!
|
Moving Gmap under Div
|
CC BY-SA 3.0
| null |
2011-06-13T13:21:57.540
|
2012-03-16T16:16:55.057
|
2012-03-16T16:16:55.057
| 21,234 | 495,033 |
[
"javascript",
"css"
] |
6,331,188 | 1 | 6,331,923 | null | 6 | 7,571 |
i'm trying to replicate what you can see in the image here in jquery to make a touch enabled version of an existing application:

I'm using jquery-ui sliders and i'd like to keep using them because i have a lot of business logic tied to them, actually they have this look:

I need help for the css and html part, i don't know how to make the effect where the "slider" gets filled when the user click on the "plus" button and on how i should organize my HTML to achieve that look.
My markup is as follows:
```
<table>
<tr>
<td>
<div id="timeName">
Tempo a disposizione
</div>
<div id="travelTime">
<div class="selectedHandler"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class='paramName'>
Architecture and Heritage
</div>
<div id="Architecture_and_Heritage" class="param" data-id="3">
<div class="selectedHandler"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class='paramName'>
Culture
</div>
<div id="Culture" class="param" data-id="5">
<div class="selectedHandler"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class='paramName'>
Fairs Performances and Special Events
</div>
<div id="Fairs_Performances_and_Special_Events" class="param" data-id="6">
<div class="selectedHandler"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class='paramName'>
Food and Drink
</div>
<div id="Food_and_Drink" class="param" data-id="1">
<div class="selectedHandler"></div>
</div>
</td>
</tr>
</table>
```
|
Create jQuery sliders with plus/minus buttons to add /subtract value from the slider
|
CC BY-SA 3.0
| 0 |
2011-06-13T13:38:28.330
|
2018-11-10T22:59:37.890
|
2011-09-26T00:54:21.510
| 497,356 | 397,861 |
[
"html",
"css",
"jquery-ui",
"slider",
"jquery-ui-slider"
] |
6,332,002 | 1 | null | null | 4 | 976 |
i need to put a google map into a div.
No problem here...the problem is that i need to mask this div.
I need to have a circular google map that i can navigate!
I try
Help pls?
|
How to insert a googlemap in a div with mask
|
CC BY-SA 3.0
| null |
2011-06-13T14:45:38.233
|
2011-06-23T14:16:39.737
|
2011-06-23T14:16:39.737
| 4,167 | 543,619 |
[
"jquery",
"html",
"css",
"google-maps"
] |
6,332,063 | 1 | null | null | 2 | 1,477 |
I'm trying to create a view in Silverlight that can display rounds in a tournament. At the moment I have a set of grid views side by side and each one shows all the people still in that round of the knockout.
What I am trying to achieve is a view that shows clearly who played who and when their next games. Something similar to the below. I'm just wanting some pointers in the direction of what control I could manipulate enough to achieve this as I am very much new to Silverlight.

|
Silverlight 4 - Tournament style view (knockout, tree)
|
CC BY-SA 3.0
| 0 |
2011-06-13T14:51:13.640
|
2011-06-14T16:51:08.063
|
2011-06-14T11:08:05.197
| 73,228 | 73,228 |
[
"silverlight",
"silverlight-4.0",
"uicontrol"
] |
6,332,100 | 1 | 6,332,186 | null | 1 | 507 |
I am using Python's elementtree library to parse an .XML file that I exported from MySQL query browser. When I export the result set to a .XML it includes this really weird character that shows up as the letters "BS" highlighted in a green rounded rectangle in my editor. (see screen shot) Anyway I iterate through the file and try to manually replace the character, but it must not be matching because after I do this:
```
for lines in file:
lines.replace("<Weird Char>", "").strip();
```
I get an error from the parse method. However if I replace the character manually in wordpad/notepad etc... the parse call works correctly. I am looking for a way to parse out the character without having to do it manually.
any help would be great: I included two screen shots, one of how the character appears in my editor, and another how it appears in Chrome.
Thanks


EDIT: You will probably have to zoom in on the images, sorry.
|
error parsing XML file using ElementTree.parse
|
CC BY-SA 3.0
| null |
2011-06-13T14:53:39.527
|
2011-06-13T15:33:19.447
| null | null | 702,638 |
[
"python",
"mysql",
"xml"
] |
6,332,144 | 1 | 6,332,631 | null | 0 | 842 |
ok, i have been trying to find a way to choose and click for entering a folder while trying to pick files for uploading through internet explorer.
i'm currently using ControlListView for selecting a folder and then pressing {ENTER} with ControlSend because of there isn't any working function for "Click"
Everything works fine when working with example in help folder but when i trying to work with that file upload window (SysListView32) starting to close random windows.
Example code:
_GUICtrlListView_ClickItem(1, 1, "left", False, 2)
autoit window info:

|
Why _GUICtrlListView_ClickItem is not working with Internet Explorer File Upload Dialog?
|
CC BY-SA 3.0
| null |
2011-06-13T14:57:19.353
|
2011-06-13T15:36:23.490
| null | null | 1,194,797 |
[
"autoit"
] |
6,332,349 | 1 | 6,357,137 | null | 6 | 3,576 |
Sorry about the bad subject. I couldn't think of a better one and I'm in a hurry.
Say i have the following tables:
- - -
- - - -
There is a One-to-Many relation between parent and child.
Now I want to construct a query that returns all parents and their youngest child. I want the result to be like this:
- - -
There should also be only one row per Parent.Id in the result.
Here is an image that explains what i want

This is where I am right now:
```
SELECT
Parent.Id AS ParentId,
Child.Id AS ChildId,
MIN(Child.Age) AS ChildAge -- OVER (PARTITION BY Parent.Id) AS ChildAge
FROM Parent JOIN Child ON Parent.Id = Child.ParentId
GROUP BY Parent.Id, Child.Id
```
What I would want is an aggregate function to put around Child.Id that would fetch the Child.Id that corresponds to the row that is MIN(Child.Age). I can't find any such thing and i can't seem to emulate the behavior.
Any help is much appreciated!
|
Aggregate function that selects the value of a column that corresponds to another successful aggregate functions match
|
CC BY-SA 3.0
| 0 |
2011-06-13T15:16:16.840
|
2011-06-15T11:40:17.733
|
2011-06-14T09:41:29.560
| 71,059 | 651,631 |
[
"sql",
"sql-server"
] |
6,332,478 | 1 | null | null | 0 | 416 |
I am trying to display set of images in table view cell. All the images are different size. I want to crop or resize images so as to look like in photos app. How can I achieve this.
Thanks,
Shakthi
`cell = [tableView dequeueReusableCellWithIdentifier:@"cell"]; cell.imageView.image = image; UIImageView * view=cell.imageView;``view.frame = CGRectMake(0, 0, 70 , 70);//not working
view.bounds = CGRectMake(0, 0, 70 , 70);//not working```
My result;

expecting

Photo application nicely changed every images to uniform size.
|
How can I curreclty crop/resize image in tableviewcells to fit properly
|
CC BY-SA 3.0
| 0 |
2011-06-13T15:25:18.977
|
2011-06-14T05:01:58.520
|
2011-06-14T05:01:58.520
| 185,398 | 185,398 |
[
"iphone",
"uitableview",
"uiview",
"uiimage"
] |
6,332,485 | 1 | 6,510,821 | null | 30 | 16,885 |
I am working on a catalog which uses css -transform attribute to scale each 'swatch' upon hovering.
Here's my problem: In some browsers and on certain sites, when you hover over the swatches, it causes the page to 'blink' as your roll over them. I cannot nail the problem down either, on one site it may be unique to Safari, on another it may only happen in Chrome, on another it's perfectly fine.
Wish I had more information, but maybe someone else has run into a similar problem.

```
.swatch {
-webkit-box-shadow: #EFEFEF 2px 2px 0px;
-webkit-transform: scale(1);
-webkit-transition-duration: 0.2s;
border: 1px solid white;
position: relative;
z-index: 1;
.swatch:hover {
position:relative;
z-index:10;
transition-duration: 0.2s;
transform:scale(1.8);
-webkit-transition-duration: 0.2s;
-webkit-transform:scale(1.8);
}
```
It also seems that the problem is remedied when removing any z-index attributes, but then the hover swatch is behind the other swatches; which does not work for this project.
Any thoughts are appreciated.
|
-transform:scale causing 'blinking' when hovering
|
CC BY-SA 3.0
| 0 |
2011-06-13T15:25:52.593
|
2019-07-08T15:37:37.663
|
2011-06-24T05:39:32.837
| 519,559 | 634,401 |
[
"html",
"css",
"hover",
"z-index",
"transform"
] |
6,332,732 | 1 | 6,454,934 | null | 11 | 23,717 |
I have a FormPanel with 3 columns. Each column is 33% of the FormPanel width. Looks something like this:
```
searchForm = new Ext.FormPanel({
frame: true,
title: 'Search Criteria',
labelAlign: 'left',
labelStyle: 'font-weight:bold;',
labelWidth: 85,
width: 900,
items: [{
layout: 'column',
items: [{ // column #1
columnWidth: .33,
layout: 'form',
items: [{
xtype: 'textfield',
fieldLabel: 'Banner ID',
name: 'bannerID',
anchor: '95%',
},
new Ext.form.ComboBox({
fieldLabel: 'Advertiser',
typeAhead: true,
triggerAction: 'all',
mode: 'local',
emptyText: 'Advertiser',
store: advertiserList,
valueField: 'id',
displayField: 'name'
})] // close items for first column
}, {
columnWidth: .33,
layout: 'form',
items: [{
xtype: 'textfield',
fieldLabel: 'Banner Name',
name: 'bannerName',
anchor: '95%',
},
new Ext.form.ComboBox({
fieldLabel: 'Art Type',
typeAhead: true,
triggerAction: 'all',
mode: 'local',
emptyText: 'Art Type',
store: artTypesList,
valueField: 'id',
displayField: 'name'
})] // close items for second column
}, {
columnWidth: .33,
layout: 'form',
items: [{
xtype: 'hidden'
},
new Ext.form.ComboBox({
fieldLabel: 'Art Size',
typeAhead: true,
triggerAction: 'all',
mode: 'local',
emptyText: 'Art Size',
store: artSizeList,
valueField: 'id',
displayField: 'name'
})] // close items for third column
}]
}]
}); // close searchForm FormPanel
```
It displayed something that looks like this:

Only problem is I want the "Art Size" field/label to be aligned on the same row as the "Advertiser" and "Art Type" fields. Is there any way to add a "blank" item, such that it forces the entry down to the correct row? Is there another approach to this that I'm missing?
Thanks!
```
{
xtype: 'component',
fieldLabel: ' ',
labelSeparator: ' ',
}
```
|
ExtJS - Lining up form elements in FormPanel column layout
|
CC BY-SA 3.0
| 0 |
2011-06-13T15:43:33.810
|
2014-09-18T09:00:15.313
|
2013-08-21T12:55:17.517
| 688,124 | 396,956 |
[
"forms",
"layout",
"extjs"
] |
6,332,816 | 1 | null | null | 0 | 595 |
A gridview with a buttonadapter. Here's the code of adapter
```
public class ButtonAdapter extends BaseAdapter {
static List<Button> button = new ArrayList<Button>();
private Context mContext;
// Gets the context so it can be used later
public ButtonAdapter(Context c) {
mContext = c;
}
public int getCount() {
return my.package.names.length;
}
public Object getItem(int position) {
return null;
}
public long getItemId(int position) {
return position;
}
public View getView(int position,
View convertView, ViewGroup parent) {
if (convertView == null) {
button.add(new Button(mContext));
button.get(position).setLayoutParams(new GridView.LayoutParams(85, 85));
button.get(position).setPadding(8, 8, 8, 8);
button.get(position).setOnClickListener(new MyOnClickListener(position));
}
else {
}
button.get(position).setText(my.package.names[position]); // names is an array of strings
button.get(position).setTextColor(Color.BLACK);
button.get(position).setBackgroundResource(*Drawable here*);
return button.get(position);
}
}
```
When touching the button on the screen and moving finger to uperright or uperleft or downleft or downright corner my button resizes and becomes as this (imagege below):

OnClickListener class, pretty simple
```
public class MyOnClickListener implements OnClickListener
{
private final int position;
int i;
public MyOnClickListener(int position)
{
this.position = position;
}
public void onClick(View v)
{
// Preform a function based on the position
for(i=0; i<9; i++){
if(this.position == i){
mypackagemyclass.flipper.setDisplayedChild(i); //viewflipper
mypackagemyclass.slider.open(); //sliding drawer
}
}
}}
```
I tried the same with an imageadapter, same problem. In emulator and on real device. I've searched everywhere and it seems noone else had this problem before. What can I do with this?
|
Weird graphical bug with GridView in android
|
CC BY-SA 3.0
| 0 |
2011-06-13T15:49:04.827
|
2011-09-14T12:09:54.423
|
2011-09-14T12:09:54.423
| 256,196 | 383,471 |
[
"android",
"gridview",
"adapter"
] |
6,333,215 | 1 | 6,333,274 | null | 18 | 8,596 |
I recently discovered that Netbeans really likes javascript comments which are formatted like this:
This appears to be Javadoc compatible comments, but is it? Is there a resource somewhere which defines what formatting as acceptible? Also, is this style of commenting common to other IDE's such as Eclipse?
Edit: I have uploaded this screenshot to illustrate how Netbeans interprets @param and @return

Thanks.
|
Netbeans javascript comments
|
CC BY-SA 3.0
| 0 |
2011-06-13T16:21:07.000
|
2019-05-09T14:39:26.350
|
2011-06-13T16:36:05.647
| 177,258 | 177,258 |
[
"javascript",
"netbeans",
"comments"
] |
6,333,247 | 1 | 6,333,468 | null | 2 | 1,106 |
I have a UITableView with several UITableViewcells (UITableViewCellStyleSubtitle). When the user taps on one of cells, I push a detail VC that allows the user to change the text of the cell. When I pop this ViewController, the text on the cell appears abbreviated with an ellipsis:

After changing the text to "Wartyrl" and popping the detail VC.

If I tap on any other cell, the ellipsis disappears and the correct text is displayed. What might be causing this?
This is the code that changes the text of the cell (via a delegate method):
```
#pragma mark - FRREditTaskViewControllerDelegate
-(void) editTaskViewController:(FRREditTaskViewController *)sender
didChangeNameForTask:(FRRFlatTask *)aTask{
NSIndexPath *idx = [NSIndexPath indexPathForRow:[self.pendings indexOfObject:aTask] inSection:0];
[self.tableView cellForRowAtIndexPath:idx].textLabel.text = aTask.name;
}
```
BTW, this code is called . I don't know if this is relevant.
|
UITableViewCell's textLabel.text is being partially substituted by ellipsis
|
CC BY-SA 3.0
| 0 |
2011-06-13T16:24:32.610
|
2011-06-14T10:35:59.143
|
2011-06-13T16:32:27.643
| 567,929 | 74,415 |
[
"iphone",
"objective-c",
"cocoa-touch",
"uitableview"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.