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,217,075
1
6,318,968
null
8
5,639
What tools can be used to convey concepts like JavaScript variable scoping and closures clearly in something similar to UML sequence diagrams? For example, how can code like the following: ([the Infamous Loop Problem](http://robertnyman.com/2008/10/09/explaining-javascript-scope-and-closures/#highlighter_892783)) ``` var arr = []; for(var i=0; i<10; i++) { arr.push(function() { alert(i); }); } for(var j=arr.length;j--;) { arr[j](); } ``` ... be clearly explained in a diagram similar to this one: ![A blank UML sequence diagram](https://i.stack.imgur.com/w0PpG.png)
Diagrams for JavaScript functions
CC BY-SA 3.0
0
2011-06-02T16:04:27.350
2017-01-05T17:20:35.243
2011-11-25T15:58:13.350
248,129
248,129
[ "javascript", "uml", "closures", "sequence-diagram", "diagrams" ]
6,217,322
1
6,217,360
null
2
191
I am updating an IE6-era website so that cosmetic differences in modern (IE8, Firefox 4 in this scenario) browsers are eliminated, or at least reduced. We've ran into an issue with buttons, which are styled using `background-color: #EFEFEF;` and `border: 1px`. In IE6 this `border` setting neatly reduces the border on buttons. ![IE6 button with default border](https://i.stack.imgur.com/K0emO.png) ![IE6 button with 1px border](https://i.stack.imgur.com/oo9vR.png) However, in IE8 and Firefox 4 setting a CSS style of `border: 1px` completely the border. ![enter image description here](https://i.stack.imgur.com/xeYEX.png) I've tried using `border_SIDE_color` to set the color of the relevant sides of the button appropriately but this has no impact. What approach should I use instead? This is a large legacy website, containing many buttons so I am looking for a CSS-only solution, if one exists. Forcing IE8 into compatibility mode is also not an option.
Button border colors in non-IE6 browsers
CC BY-SA 3.0
null
2011-06-02T16:26:57.497
2011-06-02T16:30:33.767
null
null
39,709
[ "html", "css", "button", "border" ]
6,217,328
1
6,342,870
null
0
532
The ModalWindow does not work properly in Opera. Window content is not displayed but the browser's error page is displayed The browser says "Internal communication error: Check that the address is spelled correctly, or try searching for the site." an a text "[http:///](http:///)" is in the search bar of the error page. Is there any solution available? I am using wicket 1.3.6. Thanks and regards. Edit: This is a screenshot from wicket example of the modal window error in opera 11. "Show modal dialog with a page" gave this error, but for "Show modal dialog with a panel" it's working: ![screenshot](https://i.stack.imgur.com/ATDE8.png)
ModalWindow does not work properly in Opera
CC BY-SA 3.0
null
2011-06-02T16:27:39.903
2011-06-15T11:54:38.730
2011-06-15T04:56:27.820
576,758
576,758
[ "java", "wicket", "opera" ]
6,217,538
1
null
null
0
238
I have a rather complex challenge. My new content type called MeetingVenue needs to save multiple occurances of mutiple categories of information. An example is: - - - I am trying to find/create a CCK field that will allow me to to pair each one of the room types i.e (Lecture Theatre, Classroom, Boardroom and Dance Hall) to their capacity value. Much like an array. On top of that, I need to associate each one of the arrays I create to a unique name. Does a module which is the partial/full solution already exist? If not, can I create a custom module to do it? Visual: ![enter image description here](https://i.stack.imgur.com/9Nz8e.gif)
Complex CCK field
CC BY-SA 4.0
null
2011-06-02T16:47:18.237
2020-01-04T12:25:46.240
2020-01-04T12:25:46.240
472,495
504,612
[ "drupal", "cck" ]
6,217,649
1
null
null
4
4,940
I have a local instance of Apache on my computer for development purposes, I'm trying to add a site directory, to Apache's httpconf file, that contains some sample web applications I'm trying to debug using Eclipse. The directory I'm trying to add is as follows: After adding the path, I restarted Apache and tried to enter a URL as : ``` http://localhost/Eclipse_Workspace/dummyWeb/enterGreeting.php ``` But I get the 404 error page. I'm not sure what I have to do to to get the page to open properly. I'm new to Apache server configuration and am using ApacheConf Lite as a GUI-based server settings editor. The new directory I added in the httpconf file looks like this: ``` <Directory "C:\Eclipse_Workspace\dummyWeb"> Options All Allow from All Order Allow,Deny AllowOverride None </Directory> ``` I also tried making the last slash a forward slash like the default root directory: ``` <Directory "C:\Eclipse_Workspace/dummyWeb"> Options All Allow from All Order Allow,Deny AllowOverride None </Directory> ``` Compared to the default root: ``` <Directory "C:\Program Files\Zend\Apache2/htdocs"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. Options FollowSymLinks Indexes # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit Allow from all # # Controls who can get stuff from this server. Order allow,deny AllowOverride None # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. </Directory> ``` But I still get 404, what am I missing? Any help is appreciated. Some other details, I'm using the Zend Server Community Edition for PHP web development and Eclipse with PDT. My goal is to be able to debug PHP web applications through Eclipse. UPDATE: Looks like adding an alias might be what I'm looking for. Not sure how they work though, currently reading through Apache documentation. UPDATE 2: Bingo! Looks like adding an alias did the trick. The relevant lines of configuration are as follows: ``` # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. DocumentRoot "C:\Program Files\Zend\Apache2/htdocs" . . . . <IfModule alias_module> # # Redirect: Allows you to tell clients about documents that used to # exist in your server's namespace, but do not anymore. The client # will make a new request for the document at its new location. # Example: # Redirect permanent /foo http://www.example.com/bar # # Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example: Alias /webpath "C:/Eclipse_Workspace/dummyWeb/" <Directory "C:/Eclipse_Workspace/dummyWeb/"> Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> # # If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a <Directory> section to allow access to # the filesystem path. # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. ScriptAlias /cgi-bin/ "C:\Program Files\Zend\Apache2/cgi-bin/" </IfModule> ``` So if I punch in the following URL: `http://localhost/webpath/`, I'll get a directory listing as follows: ![enter image description here](https://i.stack.imgur.com/6DaKT.png) Brandon, thanks for the suggestion. I want to keep the document root intact, I'm going to modify the alias to move up one directory, i.e. so that I have access to debug all my web applications in the eclipse workspace. This [link](http://www.nodans.com/index.cfm/2006/10/10/Apache-Directory-Aliases-and-Virtual-Directories) also provided a good tip on a potential Gotcha when adding an alias. Last, but not least, for anyone interested in setting up a simple PHP Development environment, [this](http://www.eclipse.org/pdt/articles/debugger/os-php-eclipse-pdt-debug-pdf.pdf) PDF document proved a very valuable resource, make sure to follow the instructions. I used the all-in-one package tools provided on [Zend's website](http://www.zend.com/en/community/pdt), they pretty much come with everything out of the box.
Windows XP: Add site directory to Apache config
CC BY-SA 3.0
0
2011-06-02T16:58:43.710
2013-03-03T15:08:53.077
2011-06-02T17:54:36.170
94,541
94,541
[ "php", "apache", "zend-framework", "webserver", "apache-config" ]
6,217,805
1
6,217,884
null
3
23,029
hello master around the world, im here again with a problem :D now i wanna ask something simple for you but really I'm new on programming and sql, so need more learn. ok, lets to the problem. I have some sql query like this ``` SELECT eu_product.*, eu_shop_display.display_name as dname, eu_product_img.image_url as img FROM eu_product INNER JOIN eu_product_img on eu_product_img.product_id = eu_product.product_id INNER JOIN eu_shop_display on eu_shop_display.display_id = eu_product.product_display where eu_product.publish=1 and eu_product.shop_id=1 and eu_product.product_display IN (select display_id from eu_shop_display where parent_id=1) or eu_product.product_display = 1 GROUP BY eu_product.product_id ORDER BY eu_product.product_id DESC LIMIT 0, 10 ``` The problem is in > INNER JOIN eu_product_img on eu_product_img.product_id = eu_product.product_id the table seen like this ![enter image description here](https://i.stack.imgur.com/oARIa.png) I need to using Order ASC on field "listing". is SQL query can use two order by, or can adding order by in inner join ? i try adding ``` ORDER BY eu_product.product_id DESC, eu_product_img.listing ASC ``` but its not working :( maybe someone can explain how its work. --- > .< maybe i'll make simple query this product table ![enter image description here](https://i.stack.imgur.com/zRESg.png) this product_img table ![enter image description here](https://i.stack.imgur.com/oARIa.png) and this a result ![enter image description here](https://i.stack.imgur.com/6F9Sa.png) but the " eu_product_img.listing ASC " not run correctly :( see the table product_img i need run the product_img.listing order ASC first before joined it. the correct query is like this ``` SELECT eu_product.product_id, (select img.listing from eu_product_img as img where img.product_id = eu_product.product_id order by img.listing ASC limit 1 ) as listing FROM eu_product where eu_product.shop_id=1 or eu_product.product_display = 2 GROUP BY eu_product.product_id ORDER BY eu_product.product_id DESC LIMIT 0, 20 ``` so it cannot using inner join ? thanks before. Regard, Stecy
using "order by" on inner join MySql?
CC BY-SA 3.0
0
2011-06-02T17:15:34.807
2011-06-02T17:53:29.673
2011-06-02T17:53:29.673
677,840
677,840
[ "php", "mysql" ]
6,217,907
1
6,218,515
null
8
15,561
I know it's easy enough to wrap text around images by floating the image right or left & then putting your text after it, but what I am wanting to do is wrap other elements around it as well, such as div's. I tried to set my div to inline & this worked fine, however once I added other divs inside that div it still fine, but when looking at it in Firebug the little blue line that shows the element you are hovering over in the code extended over the image as well & when I attempted to add padding to the container div it didn't work & you could see that was because the padding was added right at the end. I ended up getting it to look ok but adding padding to the image, however it still doesn't seem the right way to go about it seeing as Firebug doesn't like it & I am worried about compatibility issues. Here is an image of what I am trying to do.. the gray area is where I want the text/elements to wrap & the brown is the image. ![example](https://i.stack.imgur.com/WGbj2.png) Here is some example code: (This example is the not wrapping version) ``` <div class="main"> <img src="../images/work/example.png" width="275" height="233" class="screenshot" alt="Example" /> <div class="details"> <div class="about"> <div class="title"> About: </div> <div class="info"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </div> <!-- Info Ends --> </div> <!-- About Ends --> </div> <!-- Details Ends --> <div class="contentClear"></div> </div> <!-- Main Ends --> ``` Example CSS: ``` #content .wrapper .left .main { padding-top: 20px; width: 550px; } #content .wrapper .left .main .screenshot { float: right; border: 1px solid #c0c0c0; width: 275px; } #content .wrapper .left .main .details { width: 263px; padding-right: 10px; } #content .wrapper .left .main .details .title { color: #0F5688; font-size: 1.8em; font-family: arial; font-weight: bold; } #content .wrapper .left .main .details .info { margin-top: 6px; font-size: 1.3em; font-family: Arial; color: #636363; line-height: 1.6; } ``` Here is an image showing the issue FireBug has with it (from the JSFiddle example), as I say it fine on the browser, but seeing as the firebug bar extends all the way over the image I was worried that may cause problems.. ![jsfiddle example](https://i.stack.imgur.com/E2yop.png)
Wrapping text & block elements around images
CC BY-SA 3.0
0
2011-06-02T17:23:43.207
2015-07-17T05:09:34.653
2012-08-28T19:15:08.850
5,640
472,501
[ "css", "xhtml", "word-wrap" ]
6,217,941
1
6,218,201
null
0
755
I wanted to do the same design as the clock app on iOS for my UITableView, but don't really know the different steps. So in my app I have a UITabBarController, my second tab contains a UINavigationController that loads a UITableViewController (exactly like on the screenshot below). So for example, if I have 3 cells only, I just want to have 3 cells and not others under, and see a custom image in background (like this blue stripes or the world map in the Clock App). ![UITableviewController Clock App](https://i.stack.imgur.com/Zi9bV.png) I have the background for the cells already (gray background on the Clock app above). Thanks!
UITableViewCell like Clock App on iPhone
CC BY-SA 3.0
null
2011-06-02T17:27:13.413
2013-01-14T18:04:14.850
2020-06-20T09:12:55.060
-1
318,830
[ "iphone", "uitableview" ]
6,217,978
1
6,218,049
null
2
412
I've got a problem with my SQL. I have a table (named "Regions") looking like this : ![SQL table : Regions](https://i.stack.imgur.com/GRs9R.png) What I want to do is sorting this table with the sub_region "next" to the region. In this exemple, Québec (9) and Ontario (10) are sub region of Canada (7) so I want to get them right after Canada. I don't know if it's stupid or my SQL is too rusty but I don't find a way to do that.... By the way, the website that will use this DB is with CakePHP, if that can be of any help!(Behavior or other built-in module, I don't know).
SQL - Regroup by subfield
CC BY-SA 3.0
null
2011-06-02T17:29:41.960
2012-12-21T03:43:56.903
2012-12-21T03:43:56.903
367,456
532,446
[ "php", "mysql", "sql", "cakephp" ]
6,218,147
1
6,218,176
null
0
220
![enter image description here](https://i.stack.imgur.com/wyfZw.png)I Made an application. The Main form Name is Form1. And the other Form is called PoP. ``` public partial class pops : Form { public pops() { InitializeComponent(); CenterToScreen(); } private void pops_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { Close(); } private void lblAdminNo_Click(object sender, EventArgs e) { } } ```
Enter Data to main form
CC BY-SA 3.0
null
2011-06-02T17:42:37.373
2011-06-06T10:14:50.340
2011-06-02T22:48:46.600
22,437
778,047
[ "c#", "windows", "winforms", "label" ]
6,218,182
1
6,235,774
null
0
105
I have a big UITableViewCell which has a text from an NSString from internet. Then that string is shown ok on an NSLog, but when shown on the cell shows strange characters at the start of the text, like this: ![enter image description here](https://i.stack.imgur.com/JpsTr.png) And it randomizes the characters every launch. I'm not formatting the string in any way, so I can't understand why it shows fine on NSLog but on on the celL. Thanks in advance! This is the code I use to get the NSString: ``` for(NSDictionary *d in userInfo) { description = [d objectForKey:@"description"]; } ``` And I load it on the cell using this: ``` cell.textLabel.text = description; ```
Problem with an NSString and UITableViewCell
CC BY-SA 3.0
null
2011-06-02T17:45:27.053
2011-06-04T09:01:08.500
2011-06-02T17:50:56.537
601,909
601,909
[ "cocoa-touch", "ios4" ]
6,218,434
1
6,218,526
null
54
26,210
There are no other way, I search a lot. In XCode 3 this is easy, but now.. In the screen above, I have the , so I can chose if I want: - - ![the screen](https://i.stack.imgur.com/m6Wof.png) This 2 kind of config, have their own config in "Build Settings" tabs (in targets config). To create I third one, the , reading [here,](http://developer.apple.com/ios/manage/distribution/index.action) it show this image in XCode 3 ![boring xcode 3](https://i.stack.imgur.com/NuM5E.jpg) edit-> Only create a new Schema didn't work, like this is a config in "Build Settings" tag of Targets. I can chose a config for "Debug" and "Release", but, and for I third one? ![enter image description here](https://i.stack.imgur.com/omuIm.png)
How to add configurations to Xcode?
CC BY-SA 3.0
0
2011-06-02T18:06:29.023
2013-09-22T23:14:48.917
2013-09-22T23:14:48.917
41,116
632,472
[ "xcode", "configuration" ]
6,218,456
1
6,218,545
null
0
122
When I open a xamlx file the designer shows this: ![enter image description here](https://i.stack.imgur.com/uHOHJ.png) I am having trouble fixing this. Here's the xaml: ``` <WorkflowService mc:Ignorable="sap" ConfigurationName="ExemptPAService" sap:VirtualizedContainerService.HintSize="516,1183" Type="Exempt" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" ``` Any suggestions?
Problem with Workflow Designer
CC BY-SA 3.0
null
2011-06-02T18:08:35.853
2011-06-02T18:29:30.187
2011-06-02T18:29:30.187
64,334
64,334
[ ".net", "xaml", "workflow", "workflow-foundation" ]
6,218,600
1
6,218,669
null
0
234
I'm currently designing a website that is supposed to be divided into three main sections. To do that, I'd like to use a big menu like the one on the image below. When the user hovers over one of the three boxes, it should expand to reveal some more information about the section and so on. I think I've already seen something like this on some website but I can't remember where. Do you think there is any jQuery plugin I could use for this? ![enter image description here](https://i.stack.imgur.com/6sSs2.png)
jQuery slider menu
CC BY-SA 3.0
null
2011-06-02T18:20:10.080
2011-06-04T05:46:49.423
2011-06-04T05:46:49.423
230,550
781,636
[ "jquery" ]
6,218,853
1
6,218,906
null
4
279
I have an HTML list, like millions of others I have made ...and the way it is behaving is just really confounding me. Basically there is just this invisible padding on the right side of each element. I can't tell if it is on the hyperlink, the list item, or what... but this is everything I have, for your evaluation. # Screenshots ### Behavior ![Actual Behavior](https://i.stack.imgur.com/8JcBT.jpg) ![Chrome Inspection](https://i.stack.imgur.com/KoWvi.jpg) # HTML ``` <body> <br class="space" /> <div class="container"> <nav id="menu"> <ul> <li><a href="#">First</a></li> <li><a href="#">Second</a></li> <li><a href="#">Third</a></li> </ul> </nav> <div id="main"> @RenderBody() </div> </div> </body> </html> ``` # CSS ``` body { background-color: #5C87B2; font-family: Arial; font-size: 80%; } #menu { background-color: #E0E0E0; border: solid 1px #000; text-align: right; } #menu ul { margin: 0; padding: 0; display: block; } #menu ul li { display: inline-block; position: relative; vertical-align: top; } #menu ul li a { padding: 5px 20px; font-weight: bold; text-decoration: none; line-height: 1.8em; display: block; border: 0px solid #000; border-width: 0 0 0 1px; } #menu ul li a:hover{ background-color: #fff; } #main { background: white; padding: 15px; border-left: solid 1px #000; border-right: solid 1px #000; border-bottom: solid 1px #000; overflow: auto; } /* -------------------------------------------------------- the content positioning and styling containers -----------------------------------------------------------*/ #content { padding: 10px 0 0 0; clear: both; } ``` # Reset CSS ``` body { margin: 0; padding: 0; border: 0; } /* -------------------------------------------------------- remove the floating dots on list elements within navigation containers -----------------------------------------------------------*/ nav ol, nav ul { list-style:none; } /* -------------------------------------------------------- clear floating styles and make sure that certain things fit within appropriate bounding boxes. -----------------------------------------------------------*/ .clear { clear: both; } .clearfix { overflow: auto; margin: 0; padding: 0; } .space { position: relative; top: 5px; } .padded { padding: 10px; } /* -------------------------------------------------------- allow class level placement of floating styles. -----------------------------------------------------------*/ .right { float: right; } .left { float: left; } /* -------------------------------------------------------- some default layout elements. -----------------------------------------------------------*/ hr { display:block; height:1px; border:0; border-top: 1px solid #2A2A2A; padding:0; } /* -------------------------------------------------------- the default content container -----------------------------------------------------------*/ .container { width: 1024px; min-width: 990px; margin: 0 auto; position: relative; } code { font-size: 1.2em; } a:link, a:visited, a:active { color: inherit; text-decoration: none; } ```
Nonsensical Padding in HTML List
CC BY-SA 3.0
null
2011-06-02T18:40:43.010
2011-06-02T18:56:02.540
null
null
84,685
[ "css", "html" ]
6,219,017
1
6,613,741
null
3
1,832
I made a little function that opens a WordDocument at a given file location. I'd like to enable the balloons when the document shows up. Here's the code so far: ``` public static Document OpenWordDocument(object fileName) { ApplicationClass application = new ApplicationClass(); object readOnly = false; object isVisible = true; object missing = Missing.Value; application.Visible = true; Document wordDocument = application.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing); wordDocument.TrackRevisions = true; //Do something here the enable balloons wordDocument.Activate(); return wordDocument; } ``` ![enter image description here](https://i.stack.imgur.com/jaWjL.jpg) TO ![enter image description here](https://i.stack.imgur.com/HapyO.jpg)
Show revision balloons when opening a Word document in C#
CC BY-SA 3.0
0
2011-06-02T18:55:17.117
2014-03-26T16:18:42.863
2014-03-26T16:18:42.863
881,229
613,568
[ "c#", "ms-word", "ms-office" ]
6,219,117
1
null
null
1
856
I know that there are php functions that allow a user to download or you to download file using PHP BUT I have not seen a single one that allows your php file to navigate and download a file and store it in a specific directory.. So here is what I want to do. I have a web host which runs php applications. Then I have a website with a calendar. The calendar has options on the side... Tools--->export as doc I want to write a PHP code that EVERYDAY automatically goes to calendar's Tool options, then downloads the calendar called Team Calendar into the webhost where the script can use it. For experimental purposes lets assume the calendar URL is at [http://webdesign.about.com/od/php/ht](http://webdesign.about.com/od/php/ht) How do I go about this? Thanks a bunch EDIT: I TRIED WGET THIS IS WHAT I GOT, HOW CAN I MAKE IT DOWNLOAD THE FILE IN DOC FROM TOOLS? ``` [/cygdrive/c/documents and settings/omar.khawaja]$ wget http://confluence.com/display/prodsupport/Team+Calendar --2011-06-02 16:33:43-- http://confluence.rogersdigitalmedia.com/display/prodsupport/Team+Calendar Resolving confluence.com... 204.225.248.160 Connecting to confluence.com|204.225.248.160|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://confluence.com/login.action;jsessionid=2F13926CF763FE4F3862FAFC24AB81D7?os_destinati on=%2Fdisplay%2Fprodsupport%2FTeam%2BCalendar [following] --2011-06-02 16:33:43-- http://confluence.com/login.action;jsessionid=2F13926CF763FE4F3862FAFC24AB81 D7?os_destination=%2Fdisplay%2Fprodsupport%2FTeam%2BCalendar Connecting to confluence.com|204.225.248.160|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 7865 (7.7K) [text/html] Saving to: `login.action;jsessionid=2F13926CF763FE4F3862FAFC24AB81D7@os_destination=%2Fdisplay%2Fprodsupport%2FTeam+Cale ndar' 100%[==============================================================================>] 7,865 --.-K/s in 0.04s 2011-06-02 16:33:43 (207 KB/s) - `login.action;jsessionid=2F13926CF763FE4F3862FAFC24AB81D7@os_destination=%2Fdisplay%2Fp rodsupport%2FTeam+Calendar' saved [7865/7865] ``` ![enter image description here](https://i.stack.imgur.com/6qL0v.png)
How do I use PHP to download a doc file?
CC BY-SA 3.0
null
2011-06-02T19:04:26.877
2015-07-16T11:03:33.030
2015-07-16T11:03:33.030
1,091,386
761,669
[ "php", "file", "calendar", "download" ]
6,219,253
1
6,219,515
null
18
47,403
I have the following HTML and CSS that creates a list, where the list items have a min-height set. I would like for the contents of the list items to be vertically aligned in the middle instead of the top if there is not enough content to fill the entire height. How the heck do I pull this off? ``` <html> <head> <style type="text/css"> ul { width : 300px; list-style-type: none; } li { min-height : 45px; vertical-align : middle; border-bottom : 1px black solid; } </style> <head> <body> <ul> <li>Testing testing 1234</li> <li>Testing testing 1234 Testing testing 1234</li> <li>Testing testing 1234 Testing testing 1234 Testing testing 1234</li> <li>Testing testing 1234 Testing testing 1234 Testing testing 1234 Testing testing 1234</li> <li>Testing testing 1234 Testing testing 1234 Testing testing 1234 Testing testing 1234 Testing testing 1234</li> </ul> </body> ``` Which gives me the following: ![enter image description here](https://i.stack.imgur.com/bUnne.png)
List Items Middle Vertically Aligned
CC BY-SA 3.0
0
2011-06-02T19:16:30.630
2011-06-02T21:18:01.530
2011-06-02T21:18:01.530
706,691
131,640
[ "html", "css", "vertical-alignment" ]
6,219,335
1
8,133,084
null
7
2,447
Alright, I'm at my wits end with this one. I am using an open-source piece of code for segmented radio buttons ([https://github.com/makeramen/android-segmentedradiobutton](https://github.com/makeramen/android-segmentedradiobutton)) and it's working great, except for the few devices where it won't draw the radio buttons correctly. This is how it should look like: ![enter image description here](https://i.stack.imgur.com/l4Qt1.png) And this is what it's looking like on the Xperia X10 and Acer Liquid E: ![enter image description here](https://i.stack.imgur.com/c5q0t.png) I have been Googling for an answer and still have no luck so I thought I would come here and see if anyone had any idea what could be causing it. I'm basically using the same code as the examples but here part of the layout for reference: ``` <com.makeramen.segmented.SegmentedRadioGroup android:id="@+id/jfl_calendar_tabselect" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:checkedButton="@+id/all_button"> <RadioButton android:id="@id/all_button" android:minWidth="80dip" android:minHeight="50dip" android:text="@string/calendar_all" android:button="@null" android:textSize="13dip" android:gravity="center" android:textColor="@color/radio_colors" /> <RadioButton android:id="@+id/mine_button" android:minWidth="80dip" android:minHeight="50dip" android:text="@string/calendar_mine" android:button="@null" android:textSize="13dip" android:gravity="center" android:textColor="@color/radio_colors" android:padding="3dip" /> <RadioButton android:id="@+id/friends_button" android:minWidth="80dip" android:minHeight="50dip" android:text="@string/calendar_friends" android:button="@null" android:textSize="13dip" android:gravity="center" android:textColor="@color/radio_colors" android:padding="3dip" /> </com.makeramen.segmented.SegmentedRadioGroup> ``` Any help would be greatly appreciated!
RadioButton not drawing background correctly
CC BY-SA 3.0
0
2011-06-02T19:22:55.457
2012-02-15T02:14:51.157
2011-06-02T19:30:01.463
523,156
523,156
[ "android", "android-layout", "radio-button" ]
6,219,389
1
6,224,131
null
0
43
I made a UITableViewController and tried loading it the previous view ``` [self.view addSubview: poll_ridingController.view]; ``` but when i run it, it display me a blank kid of thing where the footer was supposed to be. See the attached Picture. ![](https://i.stack.imgur.com/WkErn.png)
Loading view from UITableViewController
CC BY-SA 3.0
null
2011-06-02T19:29:14.023
2017-08-14T15:23:48.043
2017-08-14T15:23:48.043
1,033,581
671,247
[ "ios", "uitableview" ]
6,219,430
1
6,219,495
null
3
2,146
I have a ExtJs(v3.1) `Ext.grid.GridPanel that loads some records from its store and allows editing. If i select multiple records, and I click the delete it sends multiple DELETE requests, overwhelms the server, which eventually deletes some of them , returns 404 for the rest. I don't understand why it sends a second or third request before the first has failed, it just has not returned. this is the handler for the delete button ``` function onDelete() { var recs = userGrid.getSelectionModel().getSelections(); userGrid.store.remove(recs); //delete multiple selections one at a time ``` } and the store its based on ``` // Typical Store collecting the Proxy, Reader and Writer together var store = new Ext.data.GroupingStore({ proxy: proxy, reader: reader, writer: writer, sortInfo: { // Default sort by day decsending grouped by week field: 'day', direction: "DSC" }, groupField: 'week', batch: false, // update each record with an individual XHR request, the server doesnt process batch requests }); ``` this is a screenshot of firebug after i highlighted 5 records and clicked delete ![Screenshot of firebug after highlighting 5 records and clicking delete ](https://i.stack.imgur.com/Zjiaw.png)
ExtJs sends multiple XHR requests for every item when i hit delete
CC BY-SA 3.0
null
2011-06-02T19:33:04.493
2015-06-10T18:29:54.090
null
null
427,447
[ "javascript", "ajax", "extjs" ]
6,219,475
1
null
null
0
491
I'm using the [WPF Media Kit](http://wpfmediakit.codeplex.com/), but when I try and play a DVD, its all garbled. ![Garbled :(](https://i.stack.imgur.com/5KkHr.png) How do I fix this? Do I need to install a codec or something? Some extra info that be helpful - - -
WPF Media Kit Plays DVD Garbled
CC BY-SA 3.0
null
2011-06-02T19:37:18.033
2017-08-24T19:31:26.627
2017-08-24T19:31:26.627
254,109
481,702
[ "wpf", "media-player", "wpf-mediakit" ]
6,219,526
1
6,219,553
null
10
18,118
How could I do the opposite of: ![example](https://i.stack.imgur.com/DGIkB.png) In other words select all the people whose last name is NOT Hansen or Pettersen.
Opposite of IN operator in SQL
CC BY-SA 3.0
null
2011-06-02T19:43:13.677
2012-10-17T21:57:05.980
2012-10-17T21:57:05.980
864,358
637,142
[ "sql", "sqlite" ]
6,219,813
1
6,298,360
null
30
36,197
I would like to modify the "name" attribute of an amazon instance. See attached screenshot. I need to do it programmatically, but can't find anywhere in the EC2 API how to set that. If it matters, I'm launching these via a spot request through their API. I would like to set the field that I tagged, "set this name" in the image below. ![screen shot of field to set](https://i.stack.imgur.com/tWxbJ.png)
How can I modify the instance name for an ec2 instance
CC BY-SA 3.0
0
2011-06-02T20:11:35.373
2021-03-30T10:38:14.733
null
null
40,707
[ "amazon-ec2", "ec2-api-tools" ]
6,219,933
1
6,219,948
null
34
11,530
How can edges and nodes be styled using [graphviz](http://www.graphviz.org/) [dot](http://www.graphviz.org/content/dot-language) with doubled lines as shown the in the "LEGAL" and "TAX DISC" nodes of the following diagram? ![ER Diagram](https://i.stack.imgur.com/QUbgf.gif)
How does one define double-lines for edge and node shapes in graphviz dot?
CC BY-SA 3.0
0
2011-06-02T20:22:48.420
2019-09-09T04:04:29.583
null
null
1,491
[ "diagram", "graphviz", "dot", "entity-relationship" ]
6,220,218
1
6,220,452
null
27
20,855
See the attached photo. Twitter does it well. They have a layout, which I will call a toolbar for lack of a better term, right above the onscreen keyboard. How can I do this with my code? ![enter image description here](https://i.stack.imgur.com/IpZWC.png) UPDATE: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff"> <RelativeLayout android:id="@+id/actionbarRelativeLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/actionbar_gradient"> <ImageButton android:id="@+id/imageButton" android:layout_width="wrap_content" android:background="@drawable/stocktwits" android:layout_height="wrap_content"></ImageButton> <TextView android:layout_width="wrap_content" android:id="@+id/charCountTextView" android:text="140" android:layout_alignParentRight="true" android:layout_height="wrap_content" android:textColor="#ffffff" android:textStyle="bold" android:textSize="18sp" android:gravity="center_vertical" android:layout_centerVertical="true"></TextView> </RelativeLayout> <EditText android:layout_width="match_parent" android:id="@+id/composeEditText" android:focusable="true" android:hint="Share an idea with the community" android:gravity="left|top" android:layout_height="fill_parent" android:layout_weight="1"></EditText> <LinearLayout android:layout_width="match_parent" android:id="@+id/border" android:background="#c4c4c4" android:baselineAligned="false" android:layout_height="1dp"></LinearLayout> <LinearLayout android:layout_height="wrap_content" android:id="@+id/toolbarLinearLayout" android:orientation="horizontal" android:padding="5dip" android:layout_width="fill_parent" android:background="@drawable/gray_toolbar_gradient"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/shortenButton" android:background="@drawable/shortenbutton" android:layout_weight="0"></Button> <LinearLayout android:layout_height="match_parent" android:layout_width="wrap_content" android:id="@+id/linearLayout1" android:layout_weight="1"></LinearLayout> <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/twitterCheckBox" android:textColor="#000000" android:layout_weight="0" android:background="@drawable/twittergraybutton"></CheckBox> <Button android:layout_height="wrap_content" android:layout_weight="0" android:id="@+id/sendButton" android:layout_width="wrap_content" android:background="@drawable/sharebutton"></Button> </LinearLayout> </LinearLayout> ``` ``` <activity android:name="ShareActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustResize"> </activity> ```
How can I position a layout right above the android on-screen keyboard?
CC BY-SA 3.0
0
2011-06-02T20:49:07.793
2016-12-09T21:39:15.263
2011-06-02T21:46:54.437
210,774
19,875
[ "java", "android", "keyboard", "android-linearlayout" ]
6,220,265
1
6,220,969
null
0
8,808
I am totally new to this kind of challenges and not sure any thing available ( not sure even on what base I have to search ) In the below excel sheet image the column 'A' has headings in two places ( row numbers 2,3 and 9,10) . The actual excel sheet has more than six thousand rows and too many sub headings like this ( If it is small file I can do it manually.. but more than 6 thousand rows) The challenge :- I want to populate E column with "Make" value and F column with " Model" from sub headings . Can I write any rule or macro to populate these columns ? could some one help me ? Thanks for your help [Image Link](http://imageshack.us/photo/my-images/850/81362269.png/) or below ![enter image description here](https://i.stack.imgur.com/MiFdo.png) ![enter image description here](https://i.stack.imgur.com/WC2Ud.png) Regards Kiran
excel sheet sub headings as columns
CC BY-SA 3.0
null
2011-06-02T20:53:31.177
2011-06-03T12:27:53.377
2011-06-03T11:37:30.987
274,715
274,715
[ "excel", "spreadsheet", "heading" ]
6,220,324
1
6,332,677
null
1
2,437
![My problem](https://i.stack.imgur.com/HAAPn.jpg) My goal is to create a solid line between certain columns of a Grid. To accomplish this, I've done the following to the appropriate column: ``` ColumnConfig colConfig = new ColumnConfig("myID", "My Col Title", 50); colConfig.setStyle("border-right:solid medium black;"); ``` As you can see from the attached picture, the rows seem to have spaces between them that is preventing my column border from being a solid line going down. Can anyone help with either eliminating these lines between rows, or some alternative to accomplish my goal? I see there is a method provided on the Grid type itself to turn on/off column lines: ``` grid.setColumnLines(false); ``` But I don't see anything for rows. I also don't know whether even for columns that method is hiding the lines or actually removing them - I suspect the former. Thanks in advance for any and all answers.
Remove spaces/lines between rows in GXT Grid
CC BY-SA 3.0
null
2011-06-02T20:59:39.067
2011-06-13T15:38:55.323
null
null
327,025
[ "gxt" ]
6,220,354
1
6,220,860
null
5
19,518
I am trying to create an Activity for an Android app with two imageViews aligned side-by-side. my current layout config is as follows: ``` <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="15dip" android:paddingBottom="15dip" android:background="@drawable/dark_bg"> <ImageView android:id="@+id/numberDays" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="fitStart" android:src="@drawable/counter_01" /> <ImageView android:src="@drawable/counter_days" android:layout_height="wrap_content" android:layout_width="wrap_content" android:scaleType="fitStart" android:id="@+id/daysText"></ImageView> </LinearLayout> ``` The first image will be a square (lets say 100x100) and the second image will be rectangular (300x100) - and I want them to be aligned next to each other but always be scaled to fit within the width of the device - is this possible just with layout config? The current config just shows the first image the entire width (and almost height) of the screen and the second image is not shown at all. I have tried changing wrap_content with fill_parent and hardocding widths but that has just resulted in the both images being shown but the first image on top of the second image (both anchored left). Thanks --- UPDATED AGAIN: I have updated my layout to look like this now including the ScrollView as recommended but no joy: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:gravity="top" android:layout_width="fill_parent" android:layout_height="fill_parent" > <!-- Header for activity - this has the countdown in it --> <ScrollView android:id="@+id/ScrollView01" android:layout_height="wrap_content" android:layout_width="fill_parent"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="right" android:background="@drawable/dark_bg" android:orientation="horizontal"> <ImageView android:id="@+id/numberDays" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="2" android:src="@drawable/counter_01" /> <ImageView android:src="@drawable/counter_days" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:id="@+id/daysText"/> </LinearLayout> </ScrollView> <!-- main body for the rest of the info --> <LinearLayout android:orientation="horizontal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/light_bg"> </LinearLayout> </LinearLayout> ``` Using the layout_weight as suggested has given both the images the right ratios and appear to be scaled perfectly, however, I am still having the problem whereby they are both anchored to the far left of the screen, so the first image is actually overlaid on top of the second image, rather than having them side by side. Below is a screenshot of the Eclipse display: ![enter image description here](https://i.stack.imgur.com/W5Cwb.png)
Android - Two ImageViews side-by-side
CC BY-SA 3.0
null
2011-06-02T21:02:27.613
2011-06-03T19:58:02.147
2011-06-03T19:58:02.147
258,813
258,813
[ "android", "imageview" ]
6,220,405
1
6,222,995
null
1
737
I have a gridview that is databound to a XmlDataSource. I also want to add a `<columns>` section with a buttonfield at the of the gridview. When I add a columns section it prepends it (before xml columns). How could I order ``` <asp:XmlDataSource ID="xmlDataSource1" runat="server" datafile="some.xml" TransformFile="some.xslt" /> <asp:GridView ID="linksGrid" runat="server" DataSourceID="xmlDataSource1" CssClass="adminGrid" AllowPaging="True" AlternatingRowStyle-BackColor="WhiteSmoke"> <Columns> <asp:ButtonField runat="server" ButtonType="Button" Text="details" /> </Columns> </asp:GridView> ``` this produces a table like this: ![enter image description here](https://i.stack.imgur.com/V6sGA.png) I want the order to be reversed: Title, Url, Button column bones question, how could I space the columns so the modify button has no weight (fits to column) and the remaining cells to get even space?
Asp.Net GridView order data bound columns before declarative ones
CC BY-SA 4.0
0
2011-06-02T21:06:41.780
2018-10-06T08:47:46.163
2018-10-06T08:47:46.163
1,033,581
457,577
[ "asp.net", "gridview", "xmldatasource" ]
6,221,277
1
6,240,477
null
1
419
When attempting to setup a Job Title the "add job title" buttons are hidden until text is entered. Using the following code to add a job title the disabled button does not become enabled. `browser.text_field(:name, "addJobTitleValue").set firstJobTitle` ![script referring to disabled button](https://i.stack.imgur.com/daGvR.png) ![the actual button that stays hidden](https://i.stack.imgur.com/jptob.png) Is there a way to set the text_field and have the button become enabled?
How can I make a text_field that is disabled until typed into enabled using firewatir?
CC BY-SA 3.0
null
2011-06-02T22:52:38.463
2011-07-08T15:47:32.667
2011-06-03T09:36:40.693
17,469
571,722
[ "ruby", "watir", "firewatir", "automated-tests", "browser-automation" ]
6,221,351
1
7,231,163
null
16
6,735
I have a number of machines, all of which have Visual Studio installed, where something (presumably visual studio) is overriding the proxy settings: setting up localhost and some random port for both HTTP and HTTPS. In the "Do not use proxy server" box, it puts `<vsts-proxy-installed-indicator>` which is presumably a tag so it know it's done it. ![VSTS proxy settings](https://i.stack.imgur.com/nUWxK.png) This occasionally prevents browsers from working on my desktop, and more recently, changed it on our build server which caused the code signing step (which connects to an external timestamp server) to fail all day until I finally found this proxy issue. What is changing these settings? Why is it changing them? How do I turn it off? --- Note, there is a serverfault question about this as well: [What is inserting “vsts-proxy-installed-indicator”?](https://serverfault.com/questions/253231/what-is-inserting-vsts-proxy-installed-indicator) but since this is a Visual Studio-specific question, I thought it might be better to ask here.
What is overriding Windows proxy settings (inserting "vsts-proxy-installed-indicator") and how do I turn it off?
CC BY-SA 3.0
0
2011-06-02T23:03:16.607
2016-12-29T18:34:12.977
2017-04-13T12:13:48.287
-1
7,913
[ "visual-studio" ]
6,221,467
1
6,221,649
null
3
9,884
I have the following xUnit unit test that is throwing nullReferenceException. So I decided to debug. However, when I debug my test fails before even it hits the first break point. How do I fix this? ![enter image description here](https://i.stack.imgur.com/XqqfD.png)
Not able to debug unit tests in visual studio
CC BY-SA 3.0
null
2011-06-02T23:22:01.743
2018-11-01T20:20:12.107
2011-06-02T23:51:49.523
214,071
737,057
[ "c#", ".net", "unit-testing", "tdd", "xunit.net" ]
6,221,941
1
6,522,376
null
2
1,230
They definitely looked OK a couple days ago, not sure what changed. Please check [http://www.totaltab.com](http://www.totaltab.com) - the header text looks all messed up in my Chrome for some reason. Firefox is just fine. I read the grainy look can be attributed to hardware acceleration being turned on in about:flags but I don't even see that option available any more. I'm wondering if Chrome released a new version that updated that by default includes the acceleration? A link mentioning hardware acceleration: [http://groups.google.com/group/cufon/browse_thread/thread/dd58651c79323482?pli=1](http://groups.google.com/group/cufon/browse_thread/thread/dd58651c79323482?pli=1) ![enter image description here](https://i.stack.imgur.com/xzV5U.jpg)
Cufon fonts messed up on site in Chrome
CC BY-SA 3.0
null
2011-06-03T00:52:40.750
2011-06-29T14:30:12.507
2011-06-03T01:21:44.590
697,780
697,780
[ "google-chrome", "fonts", "cufon" ]
6,222,276
1
6,222,418
null
1
2,398
what is this "QuartzCore... CA::Transaction::observer_callback.." in my Instruments Leaked Blocks History table? Note that I was creating some hardware memory warnings using the simulator when I was profiling this. ``` QuartzCore CA::Transaction::observer_callback(__CFRunLoopObserver", unsigned long, void") from main:14 => "int retVal = UIApplicationMain(argc, argv, nil, nil);" ``` Image Below: ![enter image description here](https://i.stack.imgur.com/XIS1h.jpg)
what is this "QuartzCore... CA::Transaction::observer_callback.." in my Instruments Leaked Blocks History table?
CC BY-SA 3.0
0
2011-06-03T02:00:21.163
2011-06-03T02:30:05.300
null
null
173,520
[ "iphone", "xcode", "memory-leaks", "xcode4", "instruments" ]
6,222,328
1
null
null
0
1,084
Why is modernizer genrating a smily face ... ![enter image description here](https://i.stack.imgur.com/rkf4P.jpg) Its from the generated content div. I cant seem to replicate the effect on a fresh empty HTML file I think the smily face comes from ![enter image description here](https://i.stack.imgur.com/DZ1X1.jpg) ``` @font-face {font-family:"font";src:url("//:")}@media (touch-enabled),(-webkit-touch-enabled),(-moz-touch-enabled),(-o-touch-enabled),(-ms-touch-enabled),(-khtml-touch-enabled),(modernizr){#touch{top:9px;position:absolute}}@media (transform-3d),(-webkit-transform-3d),(-moz-transform-3d),(-o-transform-3d),(-ms-transform-3d),(-khtml-transform-3d),(modernizr){#csstransforms3d{left:9px;position:absolute}}#generatedcontent:after{content:":)"} ```
Modernizr Generated content (Smily Face)
CC BY-SA 3.0
null
2011-06-03T02:11:00.100
2011-07-04T01:10:07.427
2011-06-03T04:43:16.263
637,041
637,041
[ "javascript", "css", "modernizr" ]
6,222,705
1
6,222,919
null
3
1,213
I have a function that will overlay images over another image and return as a UIImage. However, a white line-ish thing comes up on it. Here's what I have ``` - (UIImage * ) romanticFilterImage: (UIImage *) imageA { UIImage *vintageOne = [UIImage imageNamed:@"filter_vintage_1.png"]; UIImage *vintageTwo= [UIImage imageNamed:@"filter_vintage_2.png"]; UIImage *vintageThree = [UIImage imageNamed:@"filter_vintage_3.png"]; UIGraphicsBeginImageContextWithOptions(CGSizeMake(imageA.size.width, imageA.size.height), YES, 0.0); [imageA drawAtPoint: CGPointMake(0,0)]; [vintageThree drawInRect:CGRectMake(0, 0, imageA.size.width, imageA.size.height) blendMode: kCGBlendModeMultiply alpha: 1.0]; [vintageTwo drawInRect:CGRectMake(0, 0, imageA.size.width + 2, imageA.size.height + 2) blendMode: kCGBlendModeColorBurn alpha: 1.0]; [vintageOne drawInRect:CGRectMake(0, 0, imageA.size.width, imageA.size.height) blendMode: kCGBlendModeMultiply alpha: 1.0]; UIImage *source = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); CGSize size = [source size]; UIGraphicsBeginImageContext(size); CGRect rect = CGRectMake(0, 0, size.width, size.height); [source drawInRect:rect blendMode:kCGBlendModeNormal alpha:1.0]; CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor(context, 5.0, 5.0, 5.0, 5.0); CGContextStrokeRect(context, rect); UIImage *testImg = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return testImg; } ``` Here is a screenshot: (I have added a black background to enhance the slighly transparent border. ![White border!](https://i.stack.imgur.com/huRQC.jpg)
Slightly-transparent white line around UIImage after adding overlays?
CC BY-SA 3.0
null
2011-06-03T03:34:26.333
2011-11-15T05:19:33.237
null
null
613,860
[ "objective-c", "uiimage" ]
6,222,718
1
6,222,751
null
1
2,351
I am trying to make my layout a bit more uniform. I have a linear layout that looks like this: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"> <TextView android:id="@+id/lblQuote" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"/> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"> <TextView android:id="@+id/lblLikes" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt" android:text="27"/> <ImageView android:id="@+id/imgUp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:src="@drawable/thumbsup"/> <TextView android:id="@+id/lblBuzzedTitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt" android:text="Buzz Level:"/> <TextView android:id="@+id/lblShared" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt"/> <TextView android:id="@+id/lblSaid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt"/> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"> <TextView android:id="@+id/lblHates" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt" android:text="14"/> <ImageView android:id="@+id/imgDown" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:src="@drawable/thumbsdn"/> <TextView android:id="@+id/lblBuzzed" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt"/> <TextView android:id="@+id/lblDate" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt"/> <TextView android:id="@+id/lblLocation" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt"/> </LinearLayout> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"> <TextView android:text=" " android:textSize="1pt" android:background="#6F7285" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"/> </LinearLayout> </LinearLayout> ``` So I've switched to this: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1"> <TextView android:id="@+id/lblQuote" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1"/> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="8"> <TextView android:id="@+id/lblLikes" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="1" android:textSize="4pt" android:text="27"/> <ImageView android:id="@+id/imgUp" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="1" android:src="@drawable/thumbsup"/> <TextView android:id="@+id/lblBuzzedTitle" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="2" android:textSize="4pt" android:text="Buzz Level:"/> <TextView android:id="@+id/lblShared" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="2" android:textSize="4pt"/> <TextView android:id="@+id/lblSaid" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="2" android:textSize="4pt"/> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="8"> <TextView android:id="@+id/lblHates" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="1" android:textSize="4pt" android:text="14"/> <ImageView android:id="@+id/imgDown" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="1" android:src="@drawable/thumbsdn"/> <TextView android:id="@+id/lblBuzzed" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="2" android:textSize="4pt"/> <TextView android:id="@+id/lblDate" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="2" android:textSize="4pt"/> <TextView android:id="@+id/lblLocation" android:layout_width="0dp" android:layout_height="wrap_content" android:gravity="center_horizontal" android:layout_weight="2" android:textSize="4pt"/> </LinearLayout> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1"> <TextView android:text=" " android:textSize="1pt" android:background="#6F7285" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1"/> </LinearLayout> </LinearLayout> ``` Upon doing that my layout goes blank in the emulator. Please advise. I do not want to switch to Relative layout I just want to know what I'm doing wrong with this bit of code. Thanks. # Edit 6/3/2011: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/lblQuote" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Filler Text"/> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="left"> <ImageView android:id="@+id/imgUp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:src="@drawable/thumbsup" android:layout_gravity="left"/> <TextView android:id="@+id/lblLikes" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt" android:text="10" android:layout_gravity="left"/> <TextView android:id="@+id/lblBuzzedTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="2" android:textSize="4pt" android:text="Buzz Level:"/> <TextView android:id="@+id/lblShared" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="2" android:text="Shared By: Filler Name" android:textSize="4pt"/> <TextView android:id="@+id/lblSaid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="2" android:text="Said By: Filler Name" android:textSize="4pt"/> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="left"> <ImageView android:id="@+id/imgDown" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:src="@drawable/thumbsdn" android:layout_gravity="left"/> <TextView android:id="@+id/lblHates" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="4pt" android:text="2" android:layout_gravity="left"/> <TextView android:id="@+id/lblBuzzed" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="2" android:text="High" android:textSize="4pt"/> <TextView android:id="@+id/lblDate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="2" android:textSize="4pt" android:text="04/04/1987 4:32 PM"/> <TextView android:id="@+id/lblLocation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="2" android:textSize="4pt" android:text="Broomfield, CO"/> </LinearLayout> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="1"> <TextView android:text=" " android:textSize="1pt" android:background="#6F7285" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"/> </LinearLayout> </LinearLayout> ``` ![enter image description here](https://i.stack.imgur.com/6VGzk.png)
Android: LinearLayout Weight
CC BY-SA 3.0
null
2011-06-03T03:37:17.703
2012-01-21T03:16:50.280
2011-06-03T16:12:46.013
765,119
765,119
[ "java", "android", "android-layout" ]
6,223,092
1
6,223,130
null
5
226
I want to fetch some data from the following database table 'article'. ![enter image description here](https://i.stack.imgur.com/Ayr1E.jpg) i want to fetch an article information whose category_id is 4. But the result should contain all the records of its parent categories. for example : 'article1' has parent 'Sub Category1' and its parent is 'Main Category'. So the result should have the rows 1,2,4 from the table. Is it possible to write one SQL query for this? what will be the query which can fetch data according to above condition? Please guide me..!! thanks..
What will be the SQL query for this problem?
CC BY-SA 3.0
null
2011-06-03T04:53:58.153
2011-10-30T20:53:20.453
null
null
547,573
[ "sql" ]
6,223,388
1
null
null
0
863
I am trying to create a popup window like facebook notification. In which when i click it should popup and come normal position when click again.My Screen shot shows below ![enter image description here](https://i.stack.imgur.com/YMFK9.jpg)Regards Augustine Please Help me
android:popup window like facebook?
CC BY-SA 3.0
0
2011-06-03T05:40:56.653
2011-06-03T07:17:32.003
2011-06-03T07:17:32.003
593,523
593,523
[ "android" ]
6,223,499
1
null
null
2
2,309
I'm using a JDialog inside which I have added a JPanel. Layout of Jpanel is BorderLayout. Now I have some information and an image to be shown in that panel. So I have added all information in Border.Center and add image in Border.south. But the image is not properly positioned. The following may help to understand: ![enter image description here](https://i.stack.imgur.com/9wdTi.png) The image is displayed at bottom and at horizontal center. But what I want is that image should be displayed at Top-Left corder of Border.south. How can I do this? Is it possible ? ``` public static void main(String[] args) { JDialog dialog = new JDialog(); dialog.setSize(350, 350); JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); JScrollPane scroll = new JScrollPane(panel); JEditorPane textPane = new JEditorPane(); textPane.setContentType("text/html"); StringBuffer buffer = new StringBuffer(); buffer.append(String.format("<div><b>Name:</b>%s</div>", "Harry")); buffer.append(String.format("<div><b>Id:</b>%s</div>", "Joy")); textPane.setText(buffer.toString()); panel.setBackground(Color.white); panel.add(textPane,BorderLayout.CENTER); JPanel jPanel = new JPanel(new FlowLayout(FlowLayout.LEADING)); JLabel lbl = new JLabel("Image will be here."); lbl.setFont(new Font(Font.SANS_SERIF,0,40)); jPanel.add(lbl); panel.add(jPanel,BorderLayout.SOUTH); dialog.add(scroll); dialog.setVisible(true); } ``` In this code I have added a JLabel ("Image will be here.") instead of image to represent the situation.
Set image at proper position in Border layout in java swing
CC BY-SA 3.0
null
2011-06-03T05:58:04.213
2013-03-04T09:31:56.810
2011-06-03T10:49:34.543
559,070
559,070
[ "image", "swing", "border-layout" ]
6,223,580
1
6,224,724
null
2
900
I have a puzzle game where the board is a rectangle and the border is made up of piece that are one grid unit long. I have a method that randomizes the images and wraps them around the level, but... it's really terrible. And it has the strangest bug: Depending on what version of Android is running it behaves differently. On 2.1, the borders aren't aligned properly when the activity starts, but they fix themselves as soon as a piece is moved. Not when a piece moves, but when it is moved to a different position (if I were to drag it across the screen and drop it back in the same spot, nothing would happen). When the piece is actually dropped (MotionEvent.ACTION_UP) is when the border corrects itself. In 2.2 it starts of correctly, but when I load a new level (which doesn't start a new activity but calls createBorder again) it acts the same way. Here's what it looks like: ![enter image description here](https://i.stack.imgur.com/9n8oK.gif) Here is my createBorder method: ``` private void createBorder(int h, int w, int levelWidthUnits, int levelHeightUnits){ //This method could definitely use some work (understatement), but it's all right for the moment. //int blankPiece = 0; int bored = board.getId(); int lastBorder = 0; int borderWidth = 0; Matrix m90 = new Matrix(); m90.setRotate(90); Matrix m180 = new Matrix(); m180.setRotate(180); Matrix m270 = new Matrix(); m270.setRotate(270); Bitmap bm1 = BitmapFactory.decodeResource(getResources(), getRandomBorderBitmap()); borderWidth = (int)(bm1.getHeight()/(bm1.getWidth()/((float)(w/levelWidthUnits)))); //Log.i(TAG, "borderWidth = "+borderWidth); for(int counter=0;counter<levelWidthUnits;counter++){ Bitmap bm = BitmapFactory.decodeResource(getResources(), getRandomBorderBitmap()); Bitmap borderbm = Bitmap.createScaledBitmap(bm, (w/levelWidthUnits), borderWidth, true); ImageView border = new ImageView(this); border.setImageBitmap(borderbm); border.setId(0x90000000+counter); //border.setImageResource(R.drawable.border_tiki1); //border.setAdjustViewBounds(true); //border.setImageMatrix(matrixTop); //border.setScaleType(ImageView.ScaleType.MATRIX); LayoutParams params = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); if(counter==0){ params.addRule(RelativeLayout.ALIGN_LEFT, bored); params.addRule(RelativeLayout.ABOVE, bored); }else{ //Log.i(TAG, "lastBorder before added rule = "+lastBorder);//TODO Why does this only work for the 3rd through 6th pieces?! params.addRule(RelativeLayout.RIGHT_OF, lastBorder); //This method works just fine for everything but the 2nd piece! params.addRule(RelativeLayout.ABOVE, bored); //And even for the 2nd piece, this line works! Just not the one above. } border.setLayoutParams(params); game_view.addView(border); lastBorder = border.getId(); //Log.i(TAG, "lastBorder set to: "+lastBorder); } Bitmap cbm = BitmapFactory.decodeResource(getResources(), Theme.getBorderCorner()); Bitmap cornerbm1 = Bitmap.createScaledBitmap(cbm, borderWidth, borderWidth, true); Bitmap cornerbm = Bitmap.createBitmap(cornerbm1, 0, 0, borderWidth, borderWidth, m90, true); ImageView border1 = new ImageView(this); border1.setImageBitmap(cornerbm); border1.setId(lastBorder+1); LayoutParams params = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); params.addRule(RelativeLayout.RIGHT_OF, lastBorder); params.addRule(RelativeLayout.ABOVE, bored); border1.setLayoutParams(params); game_view.addView(border1); lastBorder = border1.getId(); for(int counter=0;counter<levelHeightUnits;counter++){ Bitmap bm2 = BitmapFactory.decodeResource(getResources(), getRandomBorderBitmap()); Bitmap borderbm2 = Bitmap.createScaledBitmap(bm2, (h/levelHeightUnits), borderWidth, true); Bitmap borderbm1 = Bitmap.createBitmap(borderbm2, 0, 0, (h/levelHeightUnits), borderWidth, m90, true); ImageView border = new ImageView(this); border.setImageBitmap(borderbm1); border.setId(lastBorder+1); LayoutParams params2 = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); params2.addRule(RelativeLayout.RIGHT_OF, bored); params2.addRule(RelativeLayout.BELOW, lastBorder); border.setLayoutParams(params2); ((ViewGroup) findViewById(R.id.game_view)).addView(border); lastBorder = border.getId(); /*if(counter==2){ blankPiece = border.getId(); }*/ //Log.i(TAG, "lastBorder set to: "+lastBorder); } Bitmap cbm2 = BitmapFactory.decodeResource(getResources(), Theme.getBorderCorner()); Bitmap cornerbm21 = Bitmap.createScaledBitmap(cbm2, borderWidth, borderWidth, true); Bitmap cornerbm2 = Bitmap.createBitmap(cornerbm21, 0, 0, borderWidth, borderWidth, m180, true); ImageView border2 = new ImageView(this); border2.setImageBitmap(cornerbm2); border2.setId(lastBorder+1); LayoutParams params1 = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); params1.addRule(RelativeLayout.ALIGN_LEFT, lastBorder); params1.addRule(RelativeLayout.BELOW, lastBorder); border2.setLayoutParams(params1); ((ViewGroup) findViewById(R.id.game_view)).addView(border2); lastBorder = border2.getId(); for(int counter=0;counter<levelWidthUnits;counter++){ Bitmap bm2 = BitmapFactory.decodeResource(getResources(), getRandomBorderBitmap()); Bitmap borderbm2 = Bitmap.createScaledBitmap(bm2, (h/levelHeightUnits), borderWidth, true); Bitmap borderbm1 = Bitmap.createBitmap(borderbm2, 0, 0, (h/levelHeightUnits), borderWidth, m180, true); ImageView border = new ImageView(this); border.setImageBitmap(borderbm1); border.setId(lastBorder+1); LayoutParams params2 = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); params2.addRule(RelativeLayout.ALIGN_TOP, lastBorder); params2.addRule(RelativeLayout.LEFT_OF, lastBorder); border.setLayoutParams(params2); ((ViewGroup) findViewById(R.id.game_view)).addView(border); lastBorder = border.getId(); //Log.i(TAG, "lastBorder set to: "+lastBorder); } Bitmap cbm3 = BitmapFactory.decodeResource(getResources(), Theme.getBorderCorner()); Bitmap cornerbm31 = Bitmap.createScaledBitmap(cbm3, borderWidth, borderWidth, true); Bitmap cornerbm3 = Bitmap.createBitmap(cornerbm31, 0, 0, borderWidth, borderWidth, m270, true); ImageView border3 = new ImageView(this); border3.setImageBitmap(cornerbm3); border3.setId(lastBorder+1); LayoutParams params2 = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); params2.addRule(RelativeLayout.ALIGN_TOP, lastBorder); params2.addRule(RelativeLayout.LEFT_OF, lastBorder); border3.setLayoutParams(params2); ((ViewGroup) findViewById(R.id.game_view)).addView(border3); lastBorder = border3.getId(); for(int counter=0;counter<levelHeightUnits;counter++){ Bitmap bm2 = BitmapFactory.decodeResource(getResources(), getRandomBorderBitmap()); Bitmap borderbm2 = Bitmap.createScaledBitmap(bm2, (h/levelHeightUnits), borderWidth, true); Bitmap borderbm1 = Bitmap.createBitmap(borderbm2, 0, 0, (h/levelHeightUnits), borderWidth, m270, true); ImageView border = new ImageView(this); border.setImageBitmap(borderbm1); border.setId(lastBorder+1); LayoutParams params3 = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); params3.addRule(RelativeLayout.LEFT_OF, bored); params3.addRule(RelativeLayout.ABOVE, lastBorder); border.setLayoutParams(params3); ((ViewGroup) findViewById(R.id.game_view)).addView(border); lastBorder = border.getId(); //Log.i(TAG, "lastBorder set to: "+lastBorder); } Bitmap cbm4 = BitmapFactory.decodeResource(getResources(), Theme.getBorderCorner()); Bitmap cornerbm41 = Bitmap.createScaledBitmap(cbm4, borderWidth, borderWidth, true); Bitmap cornerbm4 = Bitmap.createBitmap(cornerbm41, 0, 0, borderWidth, borderWidth, null, true); ImageView border4 = new ImageView(this); border4.setImageBitmap(cornerbm4); border4.setId(lastBorder+1); LayoutParams params3 = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.WRAP_CONTENT); params3.addRule(RelativeLayout.ALIGN_LEFT, lastBorder); params3.addRule(RelativeLayout.ABOVE, lastBorder); border4.setLayoutParams(params3); ((ViewGroup) findViewById(R.id.game_view)).addView(border4); lastBorder = border4.getId(); } ``` When a piece is dropped, it test whether or not it has moved. If it has, it calls ``` counter.setText("Total moves: " + moves); //counter is a TextView ``` This is what I believe is somehow causing the layout to fix itself (maybe by asking the screen to redraw itself?). I'm looking for a fix to the strange glitch I'm getting, but if you have a better suggestion on how to wrap these random border pieces, I'd be glad to hear it! (Note: in the future, I want to have level that aren't rectangles but still only have 90 degree angles). Thanks for the help! This is the last bug standing between me and releasing my game!
RelativeLayout changes at run time
CC BY-SA 3.0
null
2011-06-03T06:07:54.697
2011-06-03T08:28:04.320
null
null
431,327
[ "java", "android", "android-layout" ]
6,223,666
1
null
null
0
284
I need this kind of component to my iPhone Application. How could I Added to this to my project. ![enter image description here](https://i.stack.imgur.com/l6Bbz.jpg) after i click that black color I need to animated it to left side and show next one.. like that
Image Slider to my iPhone application
CC BY-SA 3.0
null
2011-06-03T06:22:03.977
2011-06-03T06:25:17.827
2011-06-03T06:25:17.827
544,050
368,924
[ "iphone", "cocoa-touch", "xcode4", "uiimage" ]
6,223,686
1
null
null
4
12,544
![my configurationa](https://i.stack.imgur.com/TR9Cp.png) What is wrong here? If a user clicks on the login button he is redirected to [http://www.facebook.com/plugins/login.php?action=like&api_key=211295588901671&channel=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df207fe8ecd56db2%26origin%3Dhttp%253A%252F%252F188.24.5.134%252Ff3dedfc22a9c9ac%26relation%3Dparent.parent%26transport%3Dflash&locale=en_US&login_text=&max_rows=1&sdk=joey&show_faces=true&width=200](http://www.facebook.com/plugins/login.php?action=like&api_key=211295588901671&channel=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df207fe8ecd56db2%26origin%3Dhttp%253A%252F%252F188.24.5.134%252Ff3dedfc22a9c9ac%26relation%3Dparent.parent%26transport%3Dflash&locale=en_US&login_text=&max_rows=1&sdk=joey&show_faces=true&width=200) which gets me to the facebook error Given URL is not allowed by the Application configuration.
Facebook : Given URL is not allowed by the Application configuration
CC BY-SA 3.0
0
2011-06-03T06:23:59.603
2015-09-14T08:41:43.053
2011-06-03T08:27:11.243
645,924
645,924
[ "facebook" ]
6,223,745
1
6,223,823
null
4
2,462
I am developing an application which generates barcodes, I want to print them but the barcode div is getting cutted in some pages. ![enter image description here](https://i.stack.imgur.com/AcU17.png) CSS: ``` <style type="text/css"> * { margin:0px; } #cod { width: 180px; height: 150px; padding: 10px; margin: 10px; float: left; border: solid black 1px; text-align: center; display: block; } </style> ``` Code: ``` <? foreach ($this->ouvintes as $ouvinte): ?> <div id="cod"> <p><?= $ouvinte->nome ?></p> <p><?= $ouvinte->instituicao ?></p> <p>Cod. Barras: <?= $ouvinte->codigo_barras ?></p> <p style="margin-top:5px;"><img src="<?= $this->baseUrl('/index/codigo-barras/code/' . $ouvinte->codigo_barras) ?>" alt="<?= $ouvinte->codigo_barras ?>" /></p> </div> <? endforeach; ?> ``` Does anyone know how could i avoid this cut? Thanks
Print CSS - Avoid cutting DIV's
CC BY-SA 3.0
null
2011-06-03T06:32:06.763
2016-03-14T16:34:38.377
null
null
531,466
[ "html", "css", "printing" ]
6,224,014
1
6,224,033
null
0
957
I m trying to create an image gallery where the images are stored in resource bundle. I'm storing my images in NSMutable array what i want is an image gallery ....but the output is pretty different from wat i expected.the below code works perfectly fine.to be more specific cud u guys help me out below is the code... ![enter image description here](https://i.stack.imgur.com/3G2DE.png) ``` _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo1.png"]]; [_images addObject:[UIImage imageNamed:@"logo2.png"]]; [_images addObject:[UIImage imageNamed:@"logo3.png"]]; [_images addObject:[UIImage imageNamed:@"logo4.png"]]; [_images addObject:[UIImage imageNamed:@"logo5.png"]]; [_images addObject:[UIImage imageNamed:@"logo6.png"]]; [_images addObject:[UIImage imageNamed:@"logo7.png"]]; [_images addObject:[UIImage imageNamed:@"logo8.png"]]; [_images addObject:[UIImage imageNamed:@"logo9.png"]]; [_images addObject:[UIImage imageNamed:@"logo10.png"]]; [_images addObject:[UIImage imageNamed:@"logo11.png"]]; [_images addObject:[UIImage imageNamed:@"logo12.png"]]; [_images addObject:[UIImage imageNamed:@"logo13.png"]]; [_images addObject:[UIImage imageNamed:@"logo14.png"]]; [_images addObject:[UIImage imageNamed:@"logo15.png"]]; [_images addObject:[UIImage imageNamed:@"logo16.png"]]; NSLog(@"ha ha ha:%d",_images.count); UIScrollView *view = [[UIScrollView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; int row=0; int coloumn=0; for (int i=0; i< _images.count; i++) { UIImage *thumb=[_images objectAtIndex:i]; UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom]; button.frame=CGRectMake(coloumn*100+24, row*80+30, 64, 64); [button setImage:thumb forState:UIControlStateNormal]; [button addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside]; button.tag=i; [view addSubview:button]; if (coloumn==2) { coloumn==0; row++; }else { coloumn++; } } [view setContentSize:CGSizeMake(320, (row+1)*80+10)]; self.view=view; [view release]; ```
creating an images gallery
CC BY-SA 3.0
0
2011-06-03T07:01:59.690
2017-02-17T15:50:22.583
2017-02-17T15:50:22.583
4,284,627
652,878
[ "objective-c", "xcode" ]
6,224,570
1
6,225,116
null
0
7,353
At last i try Encryption and Compression Functions in mysql for secure password and username. DES_ENCRYPT function is perfectly work for encrypt. I give the code which i use to encrypt and save in database. ``` MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); command.CommandText = "insert into user (User_Id, Password, Branch, Upto_Date) values (DES_ENCRYPT('" + textBox1.Text + "'),DES_ENCRYPT('" + textBox2.Text + "'),'" + comboBox1.SelectedItem.ToString() + "','" + textBox4.Text + "') "; connection.Open(); command.ExecuteNonQuery(); MessageBox.Show("Record Succesfully Added", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); connection.Close(); ``` But i have trouble to retrieve data in DES_DECRYPT function. I try `"select DES_DECRYPT(User_Id),DES_DECRYPT(Password),Branch,Upto_Date from user"` code to retrieve but no use,. What i do for get the data from mysql datatable?. ![My sql datable](https://i.stack.imgur.com/1bqpO.png) the last record is inserted using DES_ENCRYPT() function.
how to use DES_DECRYPT() function to get data from mysql?
CC BY-SA 4.0
null
2011-06-03T08:10:49.047
2019-05-10T14:20:49.193
2019-05-10T14:20:49.193
2,310,830
776,226
[ "mysql", "encryption" ]
6,224,807
1
6,366,115
null
3
336
I am trying to get the emails I send through Gmail from my Ruby on Rails app to be from `Ben`. Currently when the email arrives in a (seperate, non-related) Gmail account, in the Inbox it has `ben` in the from section. Here are my settings: setup_mail.rb ``` # my domain is my_example.com, and the email address I am sending from is ben@my_example.com ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "my_example.com", :user_name => "ben@my_example.com", :password => "my_password", :authentication => "plain", :enable_starttls_auto => true } if Rails.env.development? ActionMailer::Base.default_url_options[:host] = "localhost:3000" else ActionMailer::Base.default_url_options[:host] = "my_example.com" end ``` report_mailer.rb ``` def send_notification_email(notification_details) subject = "testing_email" mail(:to => notification_details[:email], :subject => subject, :from => "Ben") end ``` And here are the email settings in Gmail: ![enter image description here](https://i.stack.imgur.com/nfzxq.png)
Why can't I set the FROM name correctly using Gmail in my Rails app?
CC BY-SA 3.0
null
2011-06-03T08:37:44.303
2011-06-16T01:12:36.200
2011-06-03T08:52:06.597
173,634
173,634
[ "ruby-on-rails", "ruby-on-rails-3", "gmail" ]
6,224,746
1
6,224,993
null
2
1,320
UPDATE: I have updated my HTML. Now it works in all browsers except IE7. Any ideas? Check out my updated HTML and jsFiddle link. --- Alright. I have a table which shows my company's cars and time intervals during which they have been reserved. Each hour is divided into four parts - each 15 minutes interval. The problem is that I want the table to be 100% wide but the cells representing 15 minutes intervals should be of the same width. A picture showing what I mean: ![enter image description here](https://i.stack.imgur.com/RZUQr.png) Complimentary jsfiddle link: [http://jsfiddle.net/77PqN/](http://jsfiddle.net/77PqN/) Just copy and past this HTML to index.html file and look at it in your browser, hopefully you will understand what I want to achieve (numbers from 0 to 23 repsresent hours, each has colspan of 4 and bellow them are four 15 minutes intervals): ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="sk"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="Content-Style-Type" content="text/css" > <meta http-equiv="Content-Language" content="sk" > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > <title>Test 2</title> <style> table{ border-collapse: collapse; width: 100%; border: 1px solid black; background: #ddd; } table th{ border: 1px solid black; } table td.borderLeft{ border-left: 1px solid black; } table td.odd{ background: #eee; } table td.highlighted{ background: yellow; } </style> </head> <body> <table class="CalendarReservationsBodyTable"> <thead><tr><th colspan="97">Reserved cars</th></tr> <tr> <th class="corner" style="width: 28%;">Car</th><th class="odd" colspan="4" style="width: 3%;">0</th><th class="" colspan="4" style="width: 3%;">1</th><th class="odd" colspan="4" style="width: 3%;">2</th><th class="" colspan="4" style="width: 3%;">3</th><th class="odd" colspan="4" style="width: 3%;">4</th><th class="" colspan="4" style="width: 3%;">5</th><th class="odd" colspan="4" style="width: 3%;">6</th><th class="" colspan="4" style="width: 3%;">7</th><th class="odd" colspan="4" style="width: 3%;">8</th><th class="" colspan="4" style="width: 3%;">9</th><th class="odd" colspan="4" style="width: 3%;">10</th><th class="" colspan="4" style="width: 3%;">11</th><th class="odd" colspan="4" style="width: 3%;">12</th><th class="" colspan="4" style="width: 3%;">13</th><th class="odd" colspan="4" style="width: 3%;">14</th><th class="" colspan="4" style="width: 3%;">15</th><th class="odd" colspan="4" style="width: 3%;">16</th><th class="" colspan="4" style="width: 3%;">17</th><th class="odd" colspan="4" style="width: 3%;">18</th><th class="" colspan="4" style="width: 3%;">19</th><th class="odd" colspan="4" style="width: 3%;">20</th><th class="" colspan="4" style="width: 3%;">21</th><th class="odd" colspan="4" style="width: 3%;">22</th><th class="" colspan="4" style="width: 3%;">23</th> </tr> </thead> <tbody> <tr> <td style="width: 28%;" class="alignRight">KE-832 BL - VW Golf</td><td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td colspan="34" class="highlighted" style="width: 25.5%;">Richard Knop</td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> </tr> </tbody> </table> <br><table class="CalendarReservationsBodyTable"> <thead><tr><th colspan="97">Conference room</th></tr> <tr> <th class="corner" style="width: 28%;"></th><th class="odd" colspan="4" style="width: 3%;">0</th><th class="" colspan="4" style="width: 3%;">1</th><th class="odd" colspan="4" style="width: 3%;">2</th><th class="" colspan="4" style="width: 3%;">3</th><th class="odd" colspan="4" style="width: 3%;">4</th><th class="" colspan="4" style="width: 3%;">5</th><th class="odd" colspan="4" style="width: 3%;">6</th><th class="" colspan="4" style="width: 3%;">7</th><th class="odd" colspan="4" style="width: 3%;">8</th><th class="" colspan="4" style="width: 3%;">9</th><th class="odd" colspan="4" style="width: 3%;">10</th><th class="" colspan="4" style="width: 3%;">11</th><th class="odd" colspan="4" style="width: 3%;">12</th><th class="" colspan="4" style="width: 3%;">13</th><th class="odd" colspan="4" style="width: 3%;">14</th><th class="" colspan="4" style="width: 3%;">15</th><th class="odd" colspan="4" style="width: 3%;">16</th><th class="" colspan="4" style="width: 3%;">17</th><th class="odd" colspan="4" style="width: 3%;">18</th><th class="" colspan="4" style="width: 3%;">19</th><th class="odd" colspan="4" style="width: 3%;">20</th><th class="" colspan="4" style="width: 3%;">21</th><th class="odd" colspan="4" style="width: 3%;">22</th><th class="" colspan="4" style="width: 3%;">23</th> </tr> </thead> <tbody> <tr> <td style="width: 28%;" class="alignRight"></td><td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td colspan="12" class="highlighted borderLeft" style="width: 9%;">Richard Knop</td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class=" borderLeft" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> <td class="" style="width: 0.75%;"></td> <td class="odd" style="width: 0.75%;"></td> </tr> </tbody></table> </body> </html> ``` Complimentary jsfiddle link: [http://jsfiddle.net/77PqN/](http://jsfiddle.net/77PqN/) This means that I have reserved a car for 16*15 minutes (that is 4 hours but the width is not correct): ``` <td colspan="16" class="highlighted">Richard Knop</td> ```
Help me style this day schedule table
CC BY-SA 3.0
null
2011-06-03T08:30:39.510
2011-06-03T10:11:05.813
2011-06-03T10:11:05.813
95,944
95,944
[ "html", "css", "xhtml", "css-tables" ]
6,224,889
1
6,262,836
null
4
1,136
Given the following sample form code and CSS stylesheet ``` <div class="Center_300 "> <button id="KeaneDelegate" runat="server" class="button_red2" causesvalidation="false"><span>Keane's delegate view</span></button> <br /> <br /> <a class="button_red2"> <span>Keane's delegate view</span></a> </div> ``` ``` .button_red2 { background:url('../../images/button_red_left.gif') no-repeat left top; display:inline; float:left; font-size:12px; font-weight:bold; line-height:16px; height:21px; padding-left:9px; text-decoration:none; border-style:none; color:White; } .button_red2 span { background:transparent url('../../images/button_red.gif') no-repeat top right; padding:3px 10px 2px 0px; border-style:none; display:block; } .Center_300 { width:300px; margin:0 auto } ``` When viewing this in IE8's compatibility mode (IE6), the button is rendering correctly but i get 'blank' spaces to the left and right of my text. the hyperlink renders correctly ![enter image description here](https://i.stack.imgur.com/8ahX9.jpg) When i switch back to native IE8 mode, the button renders correctly, as lenghty as the a hyperlink but there's a slight misalignment in the sliding door, the right part seems to be shunted 1 pixel down ![enter image description here](https://i.stack.imgur.com/bPDMm.jpg) If i then remove the block alignment and adjust the padding , it renders perfectly (but no longer the hyperlink) ``` .button_red2 span { background:transparent url('../../images/button_red.gif') no-repeat top right; padding:3px 10px 3px 0px; border-style:none; } ``` ![enter image description here](https://i.stack.imgur.com/Sufum.jpg) But switching that back to IE6 mode makes it even more uglier ![enter image description here](https://i.stack.imgur.com/8UfTo.jpg) I'm trying to use a button, not a hyperlink for my forms but from the CSS style I got delivered, only the hyperlink renders perfectly between various IE versions. Why is there that extra space in the IE6 rendering on the button? Why does it appear a pixel out of line when back to IE8 mode and how can that be sorted? Or is it not solvable? Below the 2 gifs for the sliding doors. ![button_red_left](https://i.stack.imgur.com/FxfAy.gif) ![enter image description here](https://i.stack.imgur.com/iVq5c.gif)
IE6 vs IE8, button vs hyperlink, CSS rendering issue
CC BY-SA 4.0
0
2011-06-03T08:46:50.970
2021-04-06T03:41:46.127
2021-04-06T03:41:46.127
12,892,553
761,334
[ "asp.net", "css", "internet-explorer-8", "internet-explorer-6", "sliding-doors" ]
6,225,093
1
6,888,463
null
17
24,294
I have a configurable product with 3 options, see below: ![enter image description here](https://i.stack.imgur.com/YRNjd.png) I want to replace the +£24.00 and the +£75.00 with the actual prices of the products. So instead it would say: £69.00 and £120.00 I have located the code being in I've spent a bit of time chopping and changing the code, but can't quite decipher what needs to change. Line 240 downwards in this file handles the JavaScript events for configurable products.
Replace Price Difference with Actual Price
CC BY-SA 4.0
0
2011-06-03T09:07:41.197
2022-07-18T02:49:27.557
2022-07-18T02:49:27.557
1,161,484
750,537
[ "magento", "product", "configurable" ]
6,225,284
1
6,225,443
null
16
6,029
I'm trying to create a pure CSS triangle for a tooltip. All browsers looks fine except for the latest Firefox 4. Here's the code: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Untitled Document</title> <style> .arrow { border:50px solid; border-color:#eee transparent transparent transparent; display:block; height:0; width:0; top:50%; right:50%; position:absolute; } </style> </head> <body> <div style="border:1px solid #000; height:400px; width:400px; margin:50px auto; position:relative;"> <span class="arrow"></span> </div> </body> </html> ``` ![Firefox 4 screenshot](https://i.stack.imgur.com/dTdyH.png) ![enter image description here](https://i.stack.imgur.com/oMk8y.png) As you can see in Firefox 4, it has something like a border. Is it a Firefox bug or this is really the behavior? How can I achieve a pure CSS triangle without that visible border in FF4? Also, I need the other 3 colors to be transparent because this triangle will overlap some elements.
CSS Transparent Border Problem In Firefox 4?
CC BY-SA 3.0
0
2011-06-03T09:29:38.100
2012-07-10T15:15:05.480
null
null
292,087
[ "css", "transparent", "firefox4" ]
6,225,575
1
6,234,821
null
0
570
I'm working on a Text Addition feature for my App. This text is going to be added with CGContext and Quartz 2D. The variable `text` is pulled from a UITextField's text property. Here is the code I have so far: ``` CGRect textBox = CGRectMake(0, 0, 300, 200); UIView *textView = [[UIView alloc] initWithFrame:textBox]; const char *textChar = [text UTF8String]; NSInteger xLocation = (contentOffset.x + 100); CGContextSelectFont (UIGraphicsGetCurrentContext(), "Helvetica", 14.0f, kCGEncodingMacRoman); CGContextSetShouldSmoothFonts(UIGraphicsGetCurrentContext(), YES); CGContextSetCharacterSpacing (UIGraphicsGetCurrentContext(), 10); CGContextSetTextDrawingMode (UIGraphicsGetCurrentContext(), kCGTextFill); CGContextSetRGBFillColor (UIGraphicsGetCurrentContext(), 255, 255, 255, 1.0); CGContextShowTextAtPoint (UIGraphicsGetCurrentContext(), xLocation, 110, textChar, 9); [drawGallery addSubview:textView]; ``` I have a few problems with this: 1. The text is rendering flipped - (this is easily rectified with a transform, but the tutorial I followed didn't have this issue so I'm confused a little LINK). 2. The text is rendering with strange characters - I think this is an encoding issue, but how do i adjust this? 3. The text doesn't get added to the view at the addSubview line, it only gets added when the CGContext is updated, i.e. I have a draw lines function too and if I draw on the view then the text magically pops up. 4. The text is horribly jagged and badly rendered, is there something I can do for this? I've added a CGContextSetShouldSmoothFonts but it doesn't seem to be doing anything. See below for an example: ![strange characters](https://i.stack.imgur.com/CaozJ.png) Thanks for any help you can give.
Quartz 2D Text Drawing Errors in Encoding and Transformation?
CC BY-SA 3.0
null
2011-06-03T09:57:54.317
2013-08-07T17:06:00.190
2013-08-07T17:06:00.190
60,724
418,146
[ "objective-c", "quartz-graphics", "cgcontext" ]
6,225,633
1
6,225,820
null
0
2,304
I am trying to create a little 3d raised "panel" or "box" on my site. I found a similar example [on this page](http://www.onechosen.org/default.asp) where they have this page with windows that are "raised" off the page with a title box. In this case, they are using an image for the whole box and just the text in the middle is actual text on the page. I wanted to see if this can be replicated using CSS or I should really move over to photoshop for this sort of thing and do it all as images. (if i have to) does anyone have any suggestions on if this can be replicated using pure html and css, javascript. As a second question, if it has to be done using photoshop and images is there are any good place to get photoshop "templates" where you wouldn't have to put this together from scratch. ![enter image description here](https://i.stack.imgur.com/LhZyA.png)
can you create a 3d raised box using CSS or do you need to use images?
CC BY-SA 3.0
null
2011-06-03T10:04:46.827
2011-06-03T10:27:30.237
2011-06-03T10:09:41.220
405,015
4,653
[ "javascript", "html", "css", "3d" ]
6,225,787
1
6,233,621
null
7
5,220
Anyone knows of a On/off Delphi component similar to the slider control found on the iPad? TAdvSmoothSlider ([http://www.tmssoftware.com/site/advsmoothslider.asp](http://www.tmssoftware.com/site/advsmoothslider.asp)) is the only one I found so far, but I would prefer not to have to purchase/install the entire TMS Smooth Controls Pack. Anyone knows of a similar component? I already have On/Off images in png format so a component based on png images would also work. Thanks in advance for any replies/ideas. ![enter image description here](https://i.stack.imgur.com/iHqWu.png)
Slider (on/off) style component similar to iPad
CC BY-SA 3.0
0
2011-06-03T10:18:31.053
2018-12-19T00:11:43.003
2011-06-03T11:03:05.260
36,544
36,544
[ "delphi" ]
6,225,865
1
null
null
0
723
I'm coding an ASP.NET website that works with facebook. To make my own life easier, I've decided to work with the facebook C# SDK. At this point, I've already obtained a valid access token, thus I've authorised correctly. (I have done this through server-side C# code, not via the JavaScript SDK)![enter image description here](https://i.stack.imgur.com/J4mGQ.png) I now want to store this access token in the current `FacebookWebContext`, so that I can use it through the whole website. However, when I try to write the value in `FacebookWebContext.Current.AccessToken`, I get the following error: `Property or indexer FacebookWebContext.Current.AccessToken cannot be assigned to -- it is read only` Now, I could try to create a new FacebookWebContext, and set this one as the current one, but the constructor doesn't accept an access token.
Setting / Editting the current FacebookWebContext AccessToken
CC BY-SA 3.0
null
2011-06-03T10:25:57.633
2011-06-03T15:46:00.987
null
null
237,739
[ "asp.net", "facebook-c#-sdk", "facebook-authentication" ]
6,225,938
1
null
null
2
1,697
I am trying to implement a custom tabbarcontroller using a UIViewController and a UITabBar. Everything is working fine so far, except when I rotate the device to landscape, the UIViewController shifts the entire view down 20pixels, creating a black bar between the status bar and the view. Even when the view is rotated back to portrait orientation, the view is still shifted down 20pixels. What do I need to do to remove the black bar? Do I have to perform custom rotations? If so, where should I insert these rotations? Before rotation: ![enter image description here](https://i.stack.imgur.com/M0sf1.png) After rotation: ![enter image description here](https://i.stack.imgur.com/ZxJr2.png)
iPhone view controller view shifted down 20 pixels when rotating to landscape
CC BY-SA 3.0
0
2011-06-03T10:32:28.533
2013-11-22T12:31:16.663
null
null
69,783
[ "objective-c", "uiviewcontroller", "screen-rotation", "rotatetransform" ]
6,225,991
1
6,227,019
null
2
3,041
I want to make the default page of my Tomcat7 server private, i. e. accessible only after `.htaccess` password has been entered. I mean this page: ![Tomcat default page](https://i.stack.imgur.com/qQ1xDm.png) For that purpose, I added: ``` <user username="admin" password="admin" roles="manager-gui"/> ``` to `tomcat-users.xml`. Then I added: ``` <security-constraint> <web-resource-collection> <web-resource-name>Entire Application</web-resource-name> <url-pattern>/references/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> </security-constraint> <!-- Define the Login Configuration for this Application --> <login-config> <auth-method>BASIC</auth-method> <realm-name>Application</realm-name> </login-config> <!-- Security roles referenced by this web application --> <security-role> <description> The role that is required to log in to the Manager Application </description> <role-name>admin</role-name> </security-role> ``` to `webapps/ROOT/WEB-INF/web.xml`. But when I open the default page, htaccess dialog box still doesn't appear. What am I doing wrong?
How to secure the default page of Tomcat?
CC BY-SA 3.0
null
2011-06-03T10:37:22.200
2015-04-09T16:18:24.130
2015-04-09T16:18:24.130
55,075
399,457
[ "tomcat", "security-constraint" ]
6,226,026
1
6,253,061
null
22
13,478
I'm using JUnit Categories and ClassPathSuite in a setup similar to that described in [this answer](https://stackoverflow.com/questions/2176570/how-to-run-all-tests-belonging-to-a-certain-category-in-junit-4/2176791#2176791). To recap: ``` public interface FastTests { } @RunWith(Categories.class) @Categories.IncludeCategory(FastTests.class) @Suite.SuiteClasses(AllTests.class) public class FastTestSuite { } @RunWith(ClasspathSuite.class) public class AllTests { } ``` ...where AllTests makes use of the [ClasspathSuite](http://www.johanneslink.net/projects/cpsuite.jsp) library. A test class that's part of the FastTests category would look like this: ``` @Category(FastTests.class) public class StringUtilsTest { // ... } ``` When I run "FastTestSuite" in my IDE, all tests with the FastTests annotation are executed, nice & smooth: ![enter image description here](https://i.stack.imgur.com/tNhkk.png) Now, . (To my surprise, I couldn't easily find instructions for this on SO.) In other words, I need an Ant target that runs all tests with the FastTests annotation. I've tried some simplistic approaches using `<test>` or `<batchtest>`... ``` <junit showoutput="true" printsummary="yes"> <test name="fi.foobar.FastTestSuite"/> <formatter type="xml"/> <classpath refid="test.classpath"/> </junit> ``` ... but no luck, so far. : Besides the IDE, it works fine with JUnitCore on the command line: ``` $ java -classpath "classes:WebContent/WEB-INF/lib/*" org.junit.runner.JUnitCore fi.foobar.FastTestSuite ............. Time: 0.189 OK (13 tests) ```
How to run all JUnit tests in a category/suite with Ant?
CC BY-SA 3.0
0
2011-06-03T10:40:46.843
2017-02-03T09:39:21.167
2017-05-23T12:00:06.737
-1
56,285
[ "java", "ant", "junit", "junit4" ]
6,226,231
1
6,312,175
null
2
803
I'm using imagettftext to generate a image (I've tried imagefttext as well) but I cannot display the EURO Sign. Look at how it makes it! The font is Myriad and in Photoshop the sign looks fine. ![Problem with Euro SIGN](https://i.stack.imgur.com/r71vA.png)
imagettftext and the euro sign
CC BY-SA 3.0
null
2011-06-03T11:01:10.767
2011-06-10T21:18:13.303
null
null
625,627
[ "php", "utf-8", "gd", "imagettftext" ]
6,226,256
1
6,226,316
null
0
2,294
![enter image description here](https://i.stack.imgur.com/qkC6l.png) If you open adobe photo shop, one small window is suddenly open. In that you can saw the running text Initilizing... Reading Fonts.. like that. I like to do this type of running text in my project also.. I try to in for loop. but it not show!. ``` for (int j = 1; j <= 3; j++) { label1.Text = "Please Wait."; label1.Text = "Please Wait.."; label1.Text = "Please Wait..."; label1.Text = "Please Wait."; label1.Text = "Please Wait.."; label1.Text = "Please Wait..."; label1.Text = "Please Wait."; label1.Text = "Please Wait.."; label1.Text = "Please Wait..."; label1.Text = "Please Wait."; label1.Text = "Please Wait.."; label1.Text = "Please Wait..."; label1.Text = "Please Wait."; label1.Text = "Please Wait.."; label1.Text = "Please Wait..."; } ``` pls give a suggestion.,
How to create runing text in WinForm Label? (like photoshop loading page)
CC BY-SA 3.0
0
2011-06-03T11:03:14.337
2011-06-03T11:51:35.470
null
null
776,226
[ "c#", "winforms" ]
6,226,364
1
6,226,460
null
3
229
- ``` list = {{z, x, c, d}, {1, 2, 3, 4}} ``` ``` (#3/2 + #1/3) &[list[[1]]] ``` ![enter image description here](https://i.stack.imgur.com/QFUC2.png) ![enter image description here](https://i.stack.imgur.com/z9CqP.png) ``` (#3/2 + #1/3) &[z, x, c, d] ``` - Trying to do this : ``` Select[list[[2]], # > 2 &] ``` How could I specify the sublist with # if possible ? , courtesy of (detailed in a comment below) : ``` Select[#[[2]], # > 2 &] &[list] ```
Access & Select specific sub-list elements with a Pure Function
CC BY-SA 3.0
null
2011-06-03T11:12:22.013
2011-06-03T17:34:16.567
2011-06-03T13:26:43.077
769,551
769,551
[ "list", "function", "wolfram-mathematica" ]
6,226,395
1
6,226,610
null
6
3,305
I'm writing an Android app, I have a EditText on top, several bottoms on bottom. I implemented this using Relative layout. In the middle I have a TextView. But the problem is that it occupies all the space under the EditText including the space where the buttons are. I want it to end right before the buttons. How can I do that? ![enter image description here](https://i.stack.imgur.com/MCvoL.png)
How to make a TextView occupy all free space in the middle?
CC BY-SA 3.0
0
2011-06-03T11:15:17.267
2011-06-03T11:36:47.393
2011-06-03T11:20:22.867
69,802
279,776
[ "android", "layout" ]
6,226,538
1
6,226,653
null
11
20,813
How to increase the size of the title bar attached to the top of any screen in android ![](https://i.stack.imgur.com/0EuC5.png)
How to increase the size of the title bar in an Android application?
CC BY-SA 3.0
0
2011-06-03T11:28:29.973
2013-11-08T15:03:42.760
2011-06-03T13:52:58.220
752,497
707,942
[ "android" ]
6,226,597
1
6,227,355
null
6
2,629
I am doing Sobel edge detection in openCV using the with following parameters: ``` cv.Sobel(mat, edgemat, 1, 1) # mat -> source image # edgemat -> taget output image # 1 -> xorder (int) – Order of the derivative x # 1 -> yorder (int) – Order of the derivative y # apertureSize (int) – Size of the extended Sobel kernel -> its by default set to 3 ``` I also did the Sobel edge detection on the image using GIMP. The source image is: ![Source image](https://i.stack.imgur.com/ugN6W.png) The output by openCV is ![openCV output](https://i.stack.imgur.com/QlVZk.png) The output by GIMP is ![GIMP output](https://i.stack.imgur.com/QU41s.png) Why such a big difference between the outputs by openCV and GIMP. The quality of output by GIMP surpasses openCV by light years.
openCV vs GIMP, edge detection fails in openCV
CC BY-SA 3.0
0
2011-06-03T11:35:18.877
2011-06-03T12:55:03.240
null
null
69,746
[ "python", "opencv", "gimp", "edge-detection" ]
6,226,942
1
6,227,341
null
0
760
hii every one i have created a data entry screen like this in which each row contains a text field ![enter image description here](https://i.stack.imgur.com/FWfbi.png) here after entering data into the text field if we scroll the page which are all the text fields goesup(beyond the view) will set to null when it come back to the original position,, this is my code for each cell where `CustomCellStudentData` is a cell class where i have created frames for lables ``` - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { //static NSString *CellIdentifier = @"Cell"; CustomCellStudentData *cell = (CustomCellStudentData*)[tableView dequeueReusableCellWithIdentifier:nil]; if (cell == nil) { cell = [[[CustomCellStudentData alloc] initWithFrame:CGRectZero reuseIdentifier:nil] autorelease]; } [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; switch(indexPath.section) { case 0: switch (indexPath.row) { case 0: { tfText[0] = [[UITextField alloc] initWithFrame:CGRectMake(125,22, 170, 25)]; cell.accessoryView = tfText[0]; tfText[0].delegate=self; tfText[0].font = [UIFont systemFontOfSize:14]; tfText[0].placeholder =@"<Student Name>"; cell.primaryLabel.text =@"Student Name: "; } break; case 1: { tfText[1] = [[UITextField alloc] initWithFrame:CGRectMake(125,22, 170, 25)]; cell.accessoryView = tfText[1]; tfText[1].delegate=self; tfText[1].font = [UIFont systemFontOfSize:14]; tfText[1].placeholder =@"<Student Age>"; tfText[1].keyboardType = UIKeyboardTypeNumbersAndPunctuation; cell.primaryLabel.text =@"Student Age: "; } break; case 2: { cell.primaryLabel.text =@"Gender: "; segmentedControl = [[UISegmentedControl alloc] initWithItems:nil]; segmentedControl.segmentedControlStyle = UISegmentedControlStylePlain; segmentedControl.frame = CGRectMake(125,22, 170, 25); [segmentedControl insertSegmentWithTitle:@"Male" atIndex:0 animated:YES]; [segmentedControl insertSegmentWithTitle:@"Female" atIndex:1 animated:YES]; segmentedControl.selectedSegmentIndex = 1; [segmentedControl setMomentary:NO]; [segmentedControl addTarget:self action:@selector(segmentSwitch:) forControlEvents:UIControlEventValueChanged]; cell.accessoryView =segmentedControl; } break; case 3: { tfText[3] = [[UITextField alloc] initWithFrame:CGRectMake(125,22, 170, 25)]; cell.accessoryView = tfText[3]; tfText[3].delegate=self; tfText[3].font = [UIFont systemFontOfSize:14]; tfText[3].placeholder =@"<dd/mm/yyyy>"; tfText[3].keyboardType = UIKeyboardTypeNumbersAndPunctuation; cell.primaryLabel.text =@"Date Of Birth: "; } } } ``` y that data becoming null, how can i resolve this ,, can any one help me,, thanx in advance
values in the text field are becoming null when we scroll the page in table view
CC BY-SA 3.0
null
2011-06-03T12:13:26.020
2011-06-03T12:53:52.927
2011-06-03T12:45:40.530
13,000
760,838
[ "iphone", "objective-c" ]
6,227,138
1
6,227,213
null
0
640
How do you create a variable of scope EnvVariable as shown in this screenshot ![Screenshot 2](https://i.stack.imgur.com/R5EWo.png) of [this](https://stackoverflow.com/questions/6180378/ssis-best-practices-when-handling-files-can-i-go-configless) StackOverflow Answer?
How do you create a variable of scope EnvVariable?
CC BY-SA 3.0
null
2011-06-03T12:33:13.750
2011-06-03T13:07:26.373
2017-05-23T12:19:48.617
-1
109,676
[ "ssis", "bids" ]
6,227,212
1
null
null
0
1,458
I make a report with the help of [http://helpcentral.componentone.com/CS/winforms_31/b/windev/archive/2011/03/03/using-c1barcode-in-crystal-reports.aspx](http://helpcentral.componentone.com/CS/winforms_31/b/windev/archive/2011/03/03/using-c1barcode-in-crystal-reports.aspx) site. Until drag drop the filed from Field Explorer is nicely work. But at runtime Loin form cross the way. My connection string is > connectionString="server=192.168.1.100;User Id=root;database=cms;Persist Security Info=True" How to close this login? ![enter image description here](https://i.stack.imgur.com/lT6Uq.png) If any more information is needed, comment here! I will explain step by step!
Crystal Reports login error?
CC BY-SA 3.0
null
2011-06-03T12:42:04.390
2011-08-30T19:56:41.500
2011-08-22T12:58:56.530
63,550
776,226
[ "c#", "winforms", "crystal-reports" ]
6,227,329
1
6,228,397
null
3
1,383
I have a symmetric matrix like shown in the image attached below. ![Example matrix](https://i.stack.imgur.com/wNxK9.png) I've made up the notation which represents the value at grid point Furthermore, writing gives me the minimum grid point value like so: As another example gives me My goal is to find the minimum values for ALL combinations of letters (not repeating) for one row at a time e.g for this example I need to find min values with respect to row A which are given by the calculations: I realize that certain calculations can be reused which becomes increasingly important as the matrix size increases, but the problem is finding the most efficient way to implement this reuse. Can point me in the right direction to finding an efficient algorithm/data structure I can use for this problem?
Algorithm/Data Structure for finding combinations of minimum values easily
CC BY-SA 3.0
null
2011-06-03T12:52:24.320
2011-06-03T14:29:58.717
2011-06-03T13:39:03.220
159,950
159,950
[ "algorithm", "data-structures" ]
6,227,494
1
6,227,529
null
2
245
Like this from oh-my-zsh: ![oh my zsh](https://i.stack.imgur.com/u1Fpu.png) Is there an easy way to replicate this?
In the terminal How are block letters created, and is there any easy way to generate them yourself?
CC BY-SA 3.0
null
2011-06-03T13:09:37.977
2011-06-03T13:17:52.603
null
null
552,620
[ "shell", "unix", "command-line", "terminal" ]
6,227,574
1
null
null
0
2,116
I am creating a document set programatically on buttom click event ``` public void btnCreateDocumentSet_Click(object sender, EventArgs e) { try { lblError.Text = string.Empty; SPSecurity.RunWithElevatedPrivileges(() => { using (web = SPControl.GetContextSite(Context).RootWeb) { web.AllowUnsafeUpdates = true; String url = web.Lists[" Tracker"].RootFolder.ServerRelativeUrl.ToString(); SPList list = web.Lists["Tracker"]; Hashtable props = new Hashtable(); props.Add("Number", "item1"); props.Add("Type", "item2"); DocumentSet ds = DocumentSet.Create(list.RootFolder, "NewDocumentSet3", web.ContentTypes["MydocumentSet2"].Id, props, true); //test //web.Dispose(); } } ); } catch (SPException ex) { lblError.Text = ex.Message; } } ``` I am not getting any exceptions.On button click i am redirected to an error like the following ![enter image description here](https://i.stack.imgur.com/2VoWO.png) However the document set named NewDocumentSet3 is created in document library but it looks like a folder(the icon i mean) . when i go to document library->documents tab->New Document I am not getting the document set type .Kindly advise me on this issue. Thanks in advance
Creating Document set programatically in sharepoint 2010
CC BY-SA 3.0
null
2011-06-03T13:17:20.413
2012-11-15T10:12:07.373
2011-06-03T17:41:49.087
65,164
747,336
[ "sharepoint", "sharepoint-2010" ]
6,227,630
1
6,227,867
null
0
3,267
I would like to align my container div to center vertically just like it is aligning himself horizontally because of `margin: auto;`. I've searched some time on google on how to do that but it does not seem to be working for me. Maybe there is some kind of universal way to do that, as easy as `margin: auto;` method for horizontal centering? Because it seems for me very strange that we live in 2011 year and there is still no simple css command for doing this task... ``` #container { margin: auto; width: 960px; height: 640px; background-color: brown; } ``` ![screenshot](https://i.stack.imgur.com/KxOGd.png)
Align container vertically
CC BY-SA 3.0
0
2011-06-03T13:22:05.030
2011-06-03T13:44:06.020
2011-06-03T13:28:43.300
755,645
440,611
[ "html", "css", "vertical-alignment" ]
6,227,636
1
6,227,853
null
5
1,387
I'm converting a tree view from the standard TTreeView to use TVirtualStringTree. My final challenge is to implement a feature where I need to draw a 'pass/fail' status indicator on top of the known node icon. With TTreeView I used: ``` var R : TRect; begin R := Node.DisplayRect( True ); StatusIconList.Draw( TreeView1.Canvas, R.Left - StatusIconList.Width - 14, R.Top, 3 {MyOverlayImageIndex} ); ``` The result is the red cross over the basic icon as shown below: ![enter image description here](https://i.stack.imgur.com/oCkhB.jpg) With TVirtualStringTree I hoped to find either a better way, or to get better known positions for the required overlay icon position. I'm doing: ``` procedure DrawFailed; var R : TRect; begin R := CellRect; StatusIconList.Draw( TargetCanvas, R.Left - StatusIconList.Width + 49 + Sender.GetNodeLevel( Node ) * 16, R.Top, siiFailed ); end; ``` Is this the best solution? Is there a better way of getting the top/left corner of the basic icon without the horrible node level call?
How best to render an overlay icon on top of basic Delphi TVirtualTreeView node icon
CC BY-SA 3.0
0
2011-06-03T13:22:35.527
2018-07-18T21:01:20.750
2018-07-18T21:01:20.750
12,597
47,012
[ "delphi", "icons", "overlay", "virtualtreeview", "tvirtualstringtree" ]
6,227,846
1
null
null
5
1,227
i been stressed with this thing all day. so i made a invitation apps on my facebook fans page, to get people suggest or invite to their fans about my fan page. my xfbml code are like this ``` <div id="fb-root" style="overflow:auto;"> <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script> <script type="text/javascript"> FB.init({ appId : '2071839326xxxxx', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); </script> <fb:serverFbml width="520"> <script type="text/fbml"> <fb:request-form action="http://www.facebook.com/pages/Nikolius-Web-Development-Tutorial/190882787595987" method="POST" invite="true" type="Nikolius-Web" content="Undang Temen bergabung di Nikolius-Web <fb:req-choice url='http://www.facebook.com/pages/Nikolius-Web-Development-Tutorial/190882787595987' label='Go' />" > <fb:multi-friend-selector actiontext="Undang Temen bergabung di Nikolius-Web" rows="3" cols="3" showborder="true" /> </fb:request-form> </script> </fb:serverFbml> </div> ``` the problem is when i click the send invitation button, and a dialog confirmation comes up. the dialog box got cut off in the right side like in this picture ![enter image description here](https://i.stack.imgur.com/vsfSF.jpg) any ideas how to resolved this problem. when i see the [manchester united fan page](http://www.facebook.com/manchesterunited?sk=app_10442206389) that have the same apps, the dialog box just show normaly. already tried this whole day but still struggle to get this right. :( sorry for my english. hope you guys know what i mean.
XFBML Send Invitation Preview Dialog Box got cut off by iframe size
CC BY-SA 3.0
null
2011-06-03T13:42:39.050
2012-10-27T20:47:28.877
2011-06-06T15:49:03.707
300,132
300,132
[ "facebook", "popup", "xfbml", "invitation" ]
6,227,892
1
null
null
3
8,236
Is it possible to read the sharing permissions assigned to a shared folder? I'm able to read in the local security settings programmaticaly (the ones found under Right Click > Properties > Security) no problem. But, I'm wondering how I can read the permissions under Right Click > Sharing and Security... > Permissions Here is an image of the Permissions I want to read: ![Share Permissions](https://i.stack.imgur.com/9yLiK.jpg) Is this possible? I'm running an XP Pro machine if it helps. Edit: As per my answer I was able to iterate through all the shares, and get the access (ie the person running the program) has on that share, but have not found a way to read the permissions have on that share. This was done using [Win32_Share](http://msdn.microsoft.com/en-us/library/aa394435%28v=VS.85%29.aspx) class, however it does not have an option for getting the share permissions of other users. If anyone has any helpful hints that would be a huge help.
Reading Share Permissions in C#
CC BY-SA 3.0
0
2011-06-03T13:46:23.657
2020-04-13T11:12:36.470
2011-06-06T16:31:42.750
104,998
104,998
[ "c#", "permissions", "share", "folder-permissions" ]
6,227,916
1
6,228,140
null
1
463
Basically this is my situation and don't want to use splitview. I've a viewbased app, on a side of the main view i've to show a viewcontroller subclass but i don't know how to do it. Something like this: ![enter image description here](https://i.stack.imgur.com/7nwab.png)
iPad app, how to show a uiviewcontroller on top of an uiviewcontroller
CC BY-SA 3.0
null
2011-06-03T13:48:25.040
2011-06-03T14:09:49.537
2011-06-03T13:54:02.137
564,786
564,786
[ "ios", "ipad", "uiviewcontroller" ]
6,228,072
1
null
null
0
703
I'm having a problem where my program cannot read most of the characters on the input stream with StreamReader. It loads only first 16b of each character and if character is 32b, it trashes the remaining 16b(making all of them 0's). I need to manipulate the content of file (encrypt & decrypt later). It works fine with ASCII, UTF-8, UTF-7. Here is an example of the chosen image and the image after being encrypted and decrypted: ![Before and After](https://i.stack.imgur.com/es2sa.png) Already tried with `Encoding.Default` or setting an encoding & nothing works. The code I wrote IS WORKING correctly with .txt file in english only, thats not the problem. Got problem with loading the file with `StreamReader`s encryption, cause by dataloss. The chosen and the result files are with same size, it just nulls some data.
Problem with copying JPG file content StreamReader and StreamWriter
CC BY-SA 3.0
null
2011-06-03T14:01:44.803
2011-06-03T14:27:44.427
2011-06-03T14:19:16.537
7,116
782,777
[ ".net", "character-encoding", "io" ]
6,228,190
1
null
null
21
13,573
I've got a control that is mainly comprised of an image and a button. I want to display the image meta data on the back of the image and have the control flip horizontally when the button is pressed: i.e. ![enter image description here](https://i.stack.imgur.com/uG6V2.png) Click the "info" button... ![enter image description here](https://i.stack.imgur.com/aidnL.png) Rotate the image 180 degs around the axis... ![enter image description here](https://i.stack.imgur.com/XyD0b.png) Show "back" of image with meta data (or whatever really). Obviously when the red "close" button is clicked, the image rotates around the final 180 degs so that the image is showing again. I've not done any 3D really in XAML, but I can't see why this would be too complex...
WPF Control Flip
CC BY-SA 3.0
0
2011-06-03T14:14:05.363
2011-06-08T22:14:00.183
null
null
128,837
[ "wpf", "controls", "flip" ]
6,228,384
1
6,251,382
null
4
4,140
I am using ASP.NET to create a small web app. One of my pages includes some LinkButton controls, which used to work fine until I added a reference to [Google Analytics](http://www.google.com/analytics/) code to it. Now, when I click on a link button, I get the error message: > Microsoft JScript runtime error: The value of the property '__doPostBack' is null or undefined, not a Function or object The other links and controls on the page work fine. If I remove the reference to the Google Analytics script from the page, everything works fine as well. It seems that the problem arises from the interaction between the Google Analytics script the LinkButton controls trying to postback the page. . I have further observed the following. When no Google Analytics script reference is present, the HTML that ASP.NET generates looks fine: ![HTML structure with no Google Analytics code](https://i.stack.imgur.com/MkAHP.png) However, as soon as I add Google Analytics code, the HTML gets screwed: ![HTML structure with Google Analytics code](https://i.stack.imgur.com/f3dEl.png) Check out that form tag! I imagine now that the postback error arises from the fact that the linkbutton controls get placed the ASP.NET form. But why? . Any ideas on how to solve this? Thanks. . After much experimenting, I have been able to solve this by myself. I have added an answer below showing my conclusions. Thanks to all who have posted answers here. .
Postback fails on ASP.NET page when using Google Analytics
CC BY-SA 3.0
0
2011-06-03T14:28:55.930
2012-06-19T11:54:12.000
2011-06-06T11:52:31.983
210,818
210,818
[ "javascript", "asp.net", "google-analytics", "postback", "linkbutton" ]
6,228,966
1
6,229,082
null
7
22,411
i have a window that i want to minimize (to the taskbar), so i call `ShowWindow`: ``` ShowWindow(Handle, SW_MINIMIZE); ``` Except that rather than minimizing itself (to the taskbar), the window is : ![enter image description here](https://i.stack.imgur.com/5OZqE.png) The window is unparented: ![enter image description here](https://i.stack.imgur.com/CtRJE.png) How do i minimize a window to the taskbar? --- Update: [Following some advice from 2002](http://www.delphipages.com/forum/showthread.php?t=190283), i try setting the `WS_EX_APPWINDOW` window style and/or ensuring the window has no owner: ![enter image description here](https://i.stack.imgur.com/REZIZ.png) Unfortunately, that changes the behavior of my (Delphi) application because there is now taskbar icons for my application, rather than one: ![enter image description here](https://i.stack.imgur.com/idLdz.png) This, of course, is an artifact of Delphi (5); and because i was [trying to solve another issue](https://stackoverflow.com/questions/3988151/how-to-not-have-a-mainform-in-delphi). But that shouldn't affect this question. i'm calling the `ShowWindow(..., SW_MINIMIZE)` API, and rather than minimize the window Windows is the application. How do i minimize a window to the taskbar?
How to minimize a window to the taskbar? (i.e. not iconify)
CC BY-SA 3.0
0
2011-06-03T15:14:33.507
2020-03-19T09:37:41.280
2017-05-23T12:07:06.850
-1
12,597
[ "windows", "delphi", "windows-7", "delphi-5", "windows-95" ]
6,229,062
1
6,229,352
null
2
730
Just to begin, I've read [Read text file in a folder](https://stackoverflow.com/questions/6034113/read-text-file-in-a-folder) and other troubleshooting things on here, and I've followed the advice previously given. However, my program still can't find my .txt file. I've checked the name, the bundle resources, and the file itself, and everything seems to be in order. My code runs fine, and I get my own error message when it can't find the file. No crashes or anything out of the ordinary. I've also changed the Preferences/Locations/Build Location to "Place Build Products in locations specified by targets." which was an issue before. Any additional help? Thanks in advance! ``` #import "FileArrayControl.h" @implementation FileArrayControl @synthesize partArray, arrayContent; - (NSArray *) setFileToArray { NSString *stemFile = [[NSBundle mainBundle] pathForResource:@"stemList.txt" ofType:@"txt" inDirectory:@"stemIDv0"]; if (stemFile != nil) { // ...stuff... } else { NSLog(@"Error, file not found!"); } NSLog(@"%@",partArray); return partArray; } @end ``` ![enter image description here](https://i.stack.imgur.com/kVs01.png)
Finding a Resource Text File
CC BY-SA 3.0
null
2011-06-03T15:23:07.460
2011-06-03T16:20:27.190
2017-05-23T10:30:21.980
-1
700,510
[ "objective-c", "resources", "xcode4" ]
6,229,083
1
6,428,656
null
0
1,261
I am using the Content Organizer feature to move documents of a specific content type into a specific folder in a document library in the same site. I created a content organizaer rule with a property setting that uses the property testcolumn. Testcolumn is a site column defined as a lookup to column on a custom List, testlist, and then added to a site content type. The items in this list are displayed in the Value dropdown list and I can select the specific value I want to use for this rule. ![property settings](https://i.stack.imgur.com/90ovq.png) The problem is that I can create and save rules provided that there are no more than 19 items in the testlist list. When I have 20 items in the testlist, it looks like the rule was saved by the UI. If I open the rule and go to edit it, the Value for the testcolumn property is (None). If I look at the item in powershell, the Value property is equal to '0' and not the ID of the item I saved in the UI. If I delete a record in the testlist so that the total number of items drops below 20, I can save the rule without issue. I have tried different combinaitions of items in the list in case it was a text issue, but when I have 20 items or more in the list, the rule is not saved. I have looked at the ULS logs and it states the "Routing Engine: UpdateRule() has successfully updated the rule, rule.Name=TestRule1" when I save the rule. Thanks for your help.
Content Organizer Rule Creation Issue
CC BY-SA 3.0
null
2011-06-03T15:24:05.167
2012-08-23T18:59:38.647
null
null
268,148
[ "sharepoint-2010" ]
6,229,187
1
6,229,300
null
20
3,767
Why is the [following LINQ syntax](http://rthumati.wordpress.com/category/net/02-data-access/linq/) (sometimes called "query" syntax) called "comprehension" syntax? What's being comprehended (surely that's wrong)? Or, what is represented (maybe I'm on the right track, now)? ![](https://i.stack.imgur.com/XOVmG.jpg)
LINQ: Why is it called "Comprehension Syntax"
CC BY-SA 3.0
0
2011-06-03T15:32:14.863
2017-04-09T18:24:34.490
null
null
116,895
[ "c#", "linq", "syntax", "naming" ]
6,229,419
1
6,252,809
null
6
3,226
I know PHP+GD Transparency issues have been beat to death on this and many other sites, but I've followed all the recommendations and I can't seem to fix my issue. First, the explanation: I am trying to overlay one image on top of another one. They both have areas that are transparent. As a demo that I know should look a particular way, I am trying to overlay a checkmark on top of a blue arrow shape that I created. Here are the two images: ![check mark](https://i.imgur.com/bDl7K.png) ![blue arrow](https://i.imgur.com/tfvej.png) Now to my code: I am using a library/API that I built to take a TINY bit of the pain away from editing images with PHP+GD. It's still in it's infancy, but the pertinent files are: [The Base Class](https://github.com/rockerest/nox/tree/master/classes/backbone/ImageBase.php) [The Main Loader](https://github.com/rockerest/nox/tree/master/classes/backbone/Image.php) [The (poorly named) Combine Class](https://github.com/rockerest/nox/tree/master/classes/backbone/ImageCombine.php) I am running the code using the following script: ``` <?php require_once('Image.php'); header("Content-Type: image/png"); $img = new Image(); $over = new Image(); $img->source = "arrow.png"; $over->source = "chk-done_24.png"; $img->Combine->Overlay($over, 20, 20, 0, 0, $over->width, $over->height); $img->output(); $img->clean(); unset($img); ?> ``` I expect the output to be something like this: ![Combined images](https://i.imgur.com/pQqc8.png) But instead I get this: ![Square bottom](https://i.imgur.com/XdUaZ.png) I would totally understand the issue , but filling with the just doesn't make any sense to me. In the Combine Class I linked above, I have also tried [imagecopy](http://php.net/manual/en/function.imagecopy.php), [imagecopyresampled](http://php.net/manual/en/function.imagecopyresampled.php), and the vanilla [imagecopymerge](http://php.net/manual/en/function.imagecopymerge.php), both with similar results. I'm at a total loss. ## Edit: To be clear, my question is this: What part of my code is incorrect? Why is it filling the transparent area with a color (instead of black or white) and how can I fix it while still maintaining the ability to merge images with transparency? ## Update: Please note, when a new Image object is created, it calls `newImage` which contains the following code: ``` $this->handle = imagecreatetruecolor($this->width, $this->height); imagealphablending($this->handle, false); imagesavealpha($this->handle, true); ``` I feel like that might be easy to miss.
PHP & GD - transparent background being filled with nearby color
CC BY-SA 3.0
0
2011-06-03T15:47:45.167
2015-10-25T02:54:43.473
2015-10-25T02:54:43.473
597,122
597,122
[ "php", "image-processing", "transparency", "gd" ]
6,229,594
1
6,265,629
null
3
678
I'm playing around with the [iosched](http://code.google.com/p/iosched) app from Google I/O 2011. Looking at the ScheduleFragment, I'm testing a different view on the [Workspace](http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/Workspace.java) children for flinging the pages back and forth. However, I'm having trouble getting my child views to fill the parent. I added several background colors and some padding to show where everything is laying out. Here's my test... I added a red background color to the "Workspace" item in fragment_schedule.xml like this... ``` android:background="#cc0000" ``` Then, instead of using blocks_content.xml for the child view, I created my own pending_content.xml that is simply a green-background LinearLayout (with fill_parent for height) and a blue-background TextView (also with fill_parent for height) with a simple text line. ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#00cc00" android:padding="5dip" xmlns:android="http://schemas.android.com/apk/res/android"> <TextView android:id="@+id/text_view" android:background="#0000cc" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Pending Content" android:textColor="#ffffff" /> </LinearLayout> ``` I add my view just like the I/O app has "days"... ``` ViewGroup root = (ViewGroup) inflater.inflate(R.layout.fragment_schedule, null); mWorkspace = (Workspace) root.findViewById(R.id.workspace); ShootView view = new ShootView(); view.index = mViews.size(); view.rootView = (ViewGroup) inflater.inflate(R.layout.pending_content, null); view.label = "Pending"; mWorkspace.addView(view.rootView); mViews.add(view); ``` And here's what I see when I view it on the device: ![http://www.milescrew.com/images/workspace.png](https://i.stack.imgur.com/o2exb.png) You'll see that the red Workspace fills the available parent space, but the green LinearLayout does not. What am I missing?
"Workspace" child views not filling height on Google "iosched" app
CC BY-SA 3.0
null
2011-06-03T15:59:23.003
2011-06-08T08:41:26.483
2011-06-03T18:10:50.193
102,703
762,834
[ "android", "workspace", "fill-parent" ]
6,229,621
1
6,229,788
null
0
1,254
i'm trying to create a table into a accordion but although i set into the table the width, i could make it fit into the section of accordion resulting of this ![enter image description here](https://i.stack.imgur.com/Fyl8j.jpg) ![enter image description here](https://i.stack.imgur.com/8PDRj.jpg) ``` <div id="accordion" style="display: block; " class="ui-accordion ui-widget ui-helper-reset ui-accordion-icons" role="tablist"> <h3 class="ui-accordion-header ui-helper-reset ui-state-active ui-corner-top" role="tab" aria-expanded="true" aria-selected="true" tabindex="0"><span class="ui-icon ui-icon-triangle-1-s"></span><a href="#">algo</a></h3> <div id="indicator-65" class="indicatorLayer ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active" style="display: block; height: 323px; " role="tabpanel"> <table border="1" style="width:400px;float:left"> <tbody><tr><td><p> <span class="formatText">Nombre de la capa: </span><label class="accordLblName">algo</label> </p><p> <span class="formatText">Imagen de los marcadores: </span></p><div id="5" class="accordImage" style="height:60px;background:url(assets/banderadepaz2.gif);background-repeat:no-repeat;margin-left:300px;margin-right:300px;"></div><p> <span class="formatText">Descripcion de la capa: </span><label class="accordLblDescrip">sklñasfjaslfñd </label></p><p><span class="formatText">Mensaje a mostrar: </span></p><div class="undefined"><p> <span class="fieldText">cantidad de fallas</span> asdfasdfasdf</p></div></td><td> <label for="parameters" class="formatText">Elige el parametro que rige el indicador</label> <select name="parameters" id="sltParameters"><option value="1">Distrito Capital</option> </select> </td></tr></tbody></table> </div> </div> ``` thanks and i hope an answer
problem with table into section of accordion jquery ui
CC BY-SA 3.0
null
2011-06-03T16:01:10.390
2011-06-03T16:14:47.363
2011-06-03T16:13:51.123
382,307
382,307
[ "jquery", "jquery-ui" ]
6,229,737
1
6,230,327
null
1
2,086
I am trying to implement a popover view in a tableview controller. My intention is for the user to select an option from the table list as shown below. ![enter image description here](https://i.stack.imgur.com/xrF0X.png) Note that my popover view actually displays the data from a separate table view controller. I am creating the popover view controller via the following initialization method ``` self.popOverViewController = [[UIPopoverController alloc]initWithContentViewController:optionsTableViewController]; ``` After the user selects an option for example "Hottest All Time", the control should be passed from the tableview Controller (in the popover view) back to the MAIN table view controller (parent view) so as to trigger a table reloadData method. Query: Is there a way to return the control from the tableview controller in the popover controller back to the MAIN tableview controller? Do I have to use a delegate method to do this?
Access Parent View Controller from tableViewController in popover view
CC BY-SA 3.0
0
2011-06-03T16:09:37.403
2011-06-05T07:13:17.817
2011-06-05T07:13:17.817
603,977
683,898
[ "objective-c", "cocoa-touch", "ios", "uitableview", "uipopovercontroller" ]
6,229,763
1
6,230,166
null
3
128
I have this Model ``` public class SalesModelView { [Key] public int SaleId { get; set; } public int ShopId { get; set; } public string ShopName { get; set; } [Display(Name = "Date")] public DateTime SaleDate { get; set; } [Required] [Display(Name = "Timer")] [Range(0, 24)] public int Hours { get; set; } [Required] [Display(Name = "Salg")] public Decimal Sales { get; set; } [Required] [Display(Name = "Behandlinger")] public Decimal Treatments { get; set; } [Display(Name = "Omsætning")] public Decimal Turnover { get; set; } [Display(Name = "Oms./Timer")] public Decimal TurnoverHour { get; set; } [Display(Name = "Effektivitet")] public Decimal Efficiency { get; set; } } ``` and in Danish locale a decimal normally shows as `280.800,00`, so `.` as thousands and `,`as decimal place. My view shows the correct stuff ![enter image description here](https://i.stack.imgur.com/cOqwl.png) But when saving back to my model, I get the `.` as a decimal separator, passing all the values to: ![enter image description here](https://i.stack.imgur.com/dF1Le.png) ([original image for better visualization](https://i.stack.imgur.com/dF1Le.png)) So the number `546.400` is converted to `546,4` I already tried to hook up the form submit and replace all `.` with nothing, like ``` $("form").bind("submit", function() { $(".number").each(function(){ var v = $(this).val(v).replace('.',''); $(this).val(v); }); }); ``` > P.S. I did read [Hanselman's article](http://www.hanselman.com/blog/GlobalizationInternationalizationAndLocalizationInASPNETMVC3JavaScriptAndJQueryPart1.aspx) but I still got the exact same problems, it's when I pass it to the `Controller` that goes wrong, all is well in the `View`
Update decimal numbers when using other local
CC BY-SA 3.0
null
2011-06-03T16:12:18.417
2011-06-03T16:52:43.850
2011-06-03T16:47:00.050
28,004
28,004
[ "validation", "asp.net-mvc-3", "localization" ]
6,229,857
1
6,229,938
null
0
329
I am trying to fill the screen with divs, and I'm thinking about using php to dynamically resize the divs based on the screen resoultion, so, for example, 16 divs always appear in each row. ![Example of DIV spacing](https://i.stack.imgur.com/oZPVz.png) Example A is the problem, in Example B I resize the divs to fit the screen. So, is this efficient? I would have something like this for each background image of each div: ``` /bgimage.php?id=123456&resize=125 ``` Where resize is calculated by dividing the browser width by 16, or the # of divs I want in each row. I'm not sure about using this method, because I don't want the divs to appear to small if the resolution is very low. Any other suggestions? Could this be done better using just CSS or javascript? The
CSS/PHP Fill Screen with divs
CC BY-SA 3.0
null
2011-06-03T16:22:33.423
2011-06-03T16:30:24.650
2011-06-03T16:25:25.020
298,053
445,157
[ "php", "javascript", "jquery", "html", "css" ]
6,230,132
1
null
null
1
257
I have a listview with item specified by RelativeLayout There is an image (gray arrow, this is png, with transparent padding). In first case text with blue back overlaps this image, in second - it is aligned. The only difference between these cases is that left photo is invisible in first case. I do not understand why in second case the blue text does not overlap gray arrow? (it is desirable behavior) ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="@dimen/padding_content"> <ru.ip_news.ui.views.RationalImage android:id="@+id/picture" android:layout_width="@dimen/article_short_image_width" android:layout_height="fill_parent"/> <View android:id="@+id/separator" android:layout_width="@dimen/padding_content" android:layout_height="fill_parent" android:layout_toRightOf="@id/picture"/> <ImageView android:id="@+id/dis_ind" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:src="@drawable/dis_ind"/> <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/separator" android:layout_toLeftOf="@id/dis_ind" android:layout_gravity="left" android:textStyle="bold" android:textColor="@color/article_text_main" android:maxLines="2" android:ellipsize="end" android:background="#F0F0"/> <TextView android:id="@+id/description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/separator" android:layout_below="@id/title" android:layout_alignParentBottom="true" android:textColor="@color/article_text_secondary" android:maxLines="4" android:background="#F00F"/> </RelativeLayout> ``` ![enter image description here](https://i.stack.imgur.com/4Pq67.png)
Why two items in the same relative layout are differently layouted?
CC BY-SA 3.0
null
2011-06-03T16:48:01.347
2011-06-04T10:37:27.077
null
null
120,574
[ "android", "android-relativelayout" ]
6,230,135
1
6,230,157
null
0
1,420
I was trying some C++, but I'm too new to this and you can say that this is my first day at C++. So I was trying to create a function but I was stuck with arrays! When I create a Character based array like this : ``` char x[7][7] = {"sec","min","hr","day","week","month","year"}; ``` And when I try to fetch the data from it like this : ``` for (i=0;i<=7;i++){ cout << x[i] << "\n"; } ``` I get some strange results! Like this : ![enter image description here](https://i.stack.imgur.com/EfVwi.jpg) Can anyone tell me where I'm going totally wrong! And please I'm new to C++ so can you provide me a good explanation.
How to create Character based arrays in Turbo C++?
CC BY-SA 3.0
0
2011-06-03T16:48:46.973
2011-06-03T16:55:08.703
2011-06-03T16:55:08.703
4,023
637,378
[ "c++", "c", "arrays", "multidimensional-array" ]
6,230,159
1
null
null
33
20,101
> [How to remove “Server name” items from history of SQL Server Management Studio](https://stackoverflow.com/questions/1059105/how-to-remove-server-name-items-from-history-of-sql-server-management-studio) In the "Connect to Server" screen, SQL Server Management Studio stores all entries you have ever entered for Server Name, login and password. This is very helpful, but from time to time things change, servers addresses change, databases are no longer available. How can I delete server entries from this screen? Also, when you select a server, past logins are available in the list. Once again, these change. How can I delete user entries? ![Connect to Server screen](https://i.stack.imgur.com/1N07h.png)
How to delete server entries in SQL Server Management Studio's "Connect to Server" Screen?
CC BY-SA 3.0
0
2011-06-03T16:51:49.877
2012-08-01T14:34:56.923
2017-05-23T11:46:53.447
-1
570,191
[ "sql-server", "sql-server-2008", "ssms" ]
6,230,116
1
6,230,151
null
0
1,568
I installed xampp and it works great with my symfony. I even made few excercises on projects. However I cannot setup my latest project which was coppied from another PC. How it looks: well the site opening in [http://localhost/ppz/chujwiecotobedzie/web/frontend_dev.php](http://localhost/ppz/chujwiecotobedzie/web/frontend_dev.php) looks good, but when i make symfony cc (in case) and then open in [http://localhost/ppz/chujwiecotobedzie/web/](http://localhost/ppz/chujwiecotobedzie/web/) the page is redirecting to xampp homepage. I use symfony 1.4 There are frontend and backend folders. I was working only in frontend folder. I think that any file can make this mess but i dont know. Please help. xamp-apache: ``` # # Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.2/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # ##NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any <VirtualHost> block. # ##<VirtualHost *:80> ##ServerAdmin [email protected] ##DocumentRoot "C:/xampp/htdocs/dummy-host.localhost" ##ServerName dummy-host.localhost ##ServerAlias www.dummy-host.localhost ##ErrorLog "logs/dummy-host.localhost-error.log" ##CustomLog "logs/dummy-host.localhost-access.log" combined ##</VirtualHost> ##<VirtualHost *:80> ##ServerAdmin [email protected] ##DocumentRoot "C:/xampp/htdocs/dummy-host2.localhost" ##ServerName dummy-host2.localhost ##ServerAlias www.dummy-host2.localhost ##ErrorLog "logs/dummy-host2.localhost-error.log" ##CustomLog "logs/dummy-host2.localhost-access.log" combined ##</VirtualHost> ``` windows hosts: ``` # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 127.0.0.1 localhost ``` I am working with netbeans 7 with installed plugins: php + symfony --- ## edit1: i changed path from myproject to real my path chu... ![enter image description here](https://i.stack.imgur.com/P4UCP.png)![enter image description here](https://i.stack.imgur.com/uU0Xa.png) In front page opened by frontend_dev i can see text from indexSuccess: ![enter image description here](https://i.stack.imgur.com/j3ucl.jpg) But if i click any link it shows: ![enter image description here](https://i.stack.imgur.com/YQhDe.jpg) --- how i solved: 1 chnaged this directory to shorter and put in another. C:\www 2 in this folder i put all files from project: apps, cache, etc (if you dont have file 'symfony' you ought make it, this way symfony will know this is symfony directory project) 3 c:\Windows\System32\drivers\etc\hosts i put only one sign: 127.0.0.1 localhost.tld 4 in apache: C:\xampp\apache\conf\extra\ httpd vhost i put: NameVirtualHost 127.0.0.1:80 ``` <VirtualHost 127.0.0.1:80> ServerName localhost.tld DocumentRoot "C:\www\web" DirectoryIndex index.php <Directory "C:\www\web"> AllowOverride All Allow from All </Directory> </VirtualHost> ``` 5 in netbeans> properities of my project > run configuration > project url > i wrote: [http://localhost.ltd/](http://localhost.ltd/)
symfony wrong index and auto redirect to xampp webpage
CC BY-SA 3.0
null
2011-06-03T16:45:51.830
2011-06-04T07:19:30.400
2011-06-04T07:19:30.400
619,673
619,673
[ "symfony1", "xampp", "redirect" ]
6,230,222
1
6,230,483
null
0
1,073
![enter image description here](https://i.stack.imgur.com/mz6wp.png) hi, I'm trying to implement something similar to the image attached. I have two textviews one on top of the other and i want their borders to look like the one in the image. I was able to draw rounded corners by setting the cornerradii of the GradientDrawable but i have no clue as in how to draw the slope on the right side of the first textview. Any help on how to do this is much appreciated!! thanks.
android - draw slope / slant line on a textview
CC BY-SA 3.0
0
2011-06-03T16:58:37.570
2011-06-03T17:23:16.390
null
null
678,229
[ "android" ]
6,230,216
1
6,232,308
null
4
2,434
I have a WPF application I am developing, that allows the user to switch the current theme. I figured out how to [switch themes](https://stackoverflow.com/questions/6229724/wpf-change-theme-at-runtime)... but it appears that the background of the application isn't affected by the theme: ![enter image description here](https://i.stack.imgur.com/bAS7j.png) (I blended three pictures together to conserve space) How can I fix this? It clearly shows [here](http://wpf.codeplex.com/wikipage?title=WPF%20Themes&referringTitle=Home&ProjectName=wpf) that the background is supposed to change... Here's the code I'm using: `MainWindow.xaml`: ``` <Window x:Class="GDE.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" MinWidth="525" MinHeight="350"> <Grid> .... </Grid> </Window> ``` `App.xaml`: ``` <Application x:Class="GDE.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary x:Name="ThemeDictionary"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Themes/ExpressionDark.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application> ```
WPF Themes not applying to background
CC BY-SA 3.0
0
2011-06-03T16:57:45.737
2011-06-03T20:27:18.617
2017-05-23T12:30:37.427
-1
481,702
[ "wpf" ]
6,230,211
1
null
null
0
3,480
As you can see in image below, under the ListView appear a black line before the TextView (footer). ![enter image description here](https://i.stack.imgur.com/3A28n.png) I'm not able to understand if it's due a bottom padding of the listview or a top padding of the textview, so I've tried manipulating the xml layout adding android:layout_marginBottom="0px" and android:paddingBottom="0px" into the listview and android:paddingTop="0px" and android:layout_marginTop="0px" into the textview but nothing works! Please help me because I've no idea how to solve the problem!!! Here the xmls of the layout... ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/header" android:id="@+id/header" android:gravity="center" android:textSize="22sp" android:background="#777777" /> <ListView android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/items_list" android:divider="#00000000" android:dividerHeight="0px" android:footerDividersEnabled="false" android:layout_marginBottom="0px" android:paddingBottom="0px" /> <TextView android:paddingTop="0px" android:layout_marginTop="0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/footer" android:gravity="center" android:textSize="22sp" android:background="#777777/> </LinearLayout> ``` And here the layout of the item into the listview ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingBottom="0px" android:layout_marginBottom="0px" android:background="#777777"> <TextView android:layout_width="fill_parent" android:text="Item List" android:layout_height="wrap_content" android:id="@+id/item" android:textSize="22sp" /> <TextView android:layout_width="fill_parent" android:text="List Item bottom" android:layout_height="wrap_content" android:id="@+id/item2" android:textSize="14sp" android:layout_below="@id/item" android:layout_alignParentBottom="true" /> <TextView android:layout_width="wrap_content" android:text="List Item right" android:layout_height="wrap_content" android:id="@+id/item3" android:textSize="16sp" android:layout_alignParentRight="true" android:layout_centerVertical="true" /> </RelativeLayout> ```
Separator between ListView and TextView on Android
CC BY-SA 3.0
null
2011-06-03T16:57:38.280
2011-06-03T17:53:25.300
2011-06-03T17:28:10.467
69,802
783,058
[ "android", "listview", "layout", "textview" ]
6,230,494
1
6,230,561
null
27
6,918
I often have text in columns and need to replace some things without clobbering similar stuff on the same line... a simple example follows: ![vim visual block-mode screenshot](https://i.stack.imgur.com/zUcpq.png) Suppose I have highlighted the text in grey with vim visual block mode, and want to replace `80` with `81`; however, I only want replacements within the highlighted visual block. I have already tried `: s/80/81/g`; however, that replaces text inside and the visual block. (based on Randy's feedback, it's because `: s` is a line-wise command). I know I use a line-wise visual block replace in this particular instance ( `: s/80\.1/81.1/g` ); however, I'm trying to find a general solution for the problem of having no easy means to replace within a non line-wise visual block (isn't this the kind problem that visual block mode is supposed to help solve?). Answers requiring confirmation like `: s/80/81/gc`, are not what I am looking for. I will restate the question for clarity: How can I replace `80` with `81` by using vim's visual block mode highlight?
vim search and replace limited to the highlight in visual block mode
CC BY-SA 3.0
0
2011-06-03T17:24:29.700
2016-05-09T20:53:26.857
2016-05-09T20:53:26.857
3,524,982
667,301
[ "search", "vim", "replace" ]
6,230,627
1
6,230,993
null
4
2,033
I have some data plotted which includes some limits on each subplot: ![aerodynamic angles with limits](https://i.stack.imgur.com/mRdW1.png) Both axes have the limits, but since the data fits so nicely within the limits on the second plot, the limits themselves set the boudaries for the y-axis, making them invisible. To make them visible, I could do something like this: `axes.set_ylim(1.1*lowerLimit,1.1*upperLimit)` where `lowerLimit` and `upperLimit` are the data used to generate the limits in the first place, but I am wondering if matplotlib has a mechanism to tell it to not be so zealous in it's automatic setting of the limits. The solution I have now also has the limitation that if the data deviates from the boundaries, it risks going outside the lines, so I searched for a complement to `set_ylim()` which would tell me what the limits are, somehting like `get_ylim()` but it does not seem to exist in [the documentation](http://matplotlib.sourceforge.net/api/axis_api.html). Thanks for your help.
Is there a way to tell matplotlib to loosen the zoom on the plotted data?
CC BY-SA 3.0
0
2011-06-03T17:37:48.040
2012-03-11T01:43:37.100
2011-06-03T17:43:02.343
747,544
747,544
[ "python", "matplotlib" ]
6,230,867
1
6,231,242
null
0
614
I am using a segmented control as suggested by Marc M here: [How do I use a UISegmentedControl to switch views?](https://stackoverflow.com/questions/1047114/how-do-i-use-a-uisegmentedcontrol-to-switch-views) I also have a tabbar on the bottom that I would still need to use regardless of what segment I am on. ![a busy cat](https://i360.photobucket.com/albums/oo48/Bookmark1414/Tabbar.png) How to I get the segmented control to switch XIB files?
UISegmented Control with a UITabBar on the bottom
CC BY-SA 3.0
null
2011-06-03T18:00:26.033
2011-06-03T18:37:59.980
2017-05-23T12:01:33.300
-1
616,454
[ "iphone", "xcode", "ios4", "uitabbarcontroller", "uisegmentedcontrol" ]
6,231,152
1
6,231,184
null
2
997
I have a ObjectDataProvider of check boxes: ``` <UserControl.Resources> <ObjectDataProvider x:Key="checkboxes" ObjectType="{x:Type Models:Items}" /> <DataTemplate x:Key="Item" DataType="Models:Item" > <CheckBox Content="{Binding Path=Name}" IsChecked="{Binding Path=Include}" /> </DataTemplate> <ItemsPanelTemplate x:Key="HorizontalList" > <StackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </UserControl.Resources> ``` When I tab through the controls and get to the datatemplate, it looks selects the it before going to the controls inside, like this - ![tabstop selecting objectdataprovider](https://i.stack.imgur.com/bZcOd.png) Is there any way to turn this off? It isn't the ObjectDataProvider, but rather the ItemsControl that needs to be turned off - ``` <ItemsControl ItemsSource="{Binding ElementName=container,Path=ViewModel.Items}" ItemTemplate="{StaticResource Item}" ItemsPanel="{StaticResource HorizontalList}" IsTabStop="False"/> ``` Thanks!
WPF Disabling TabStop for ObjectDataProvider
CC BY-SA 3.0
null
2011-06-03T18:27:39.027
2011-06-03T18:46:03.173
2011-06-03T18:43:20.913
466,321
466,321
[ "wpf", "itemscontrol", "tabstop" ]