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
5,943,013
1
5,943,046
null
2
117
I have a webpage where there are several forms. It looks like ![this](https://i.stack.imgur.com/5a5ko.png). When "Create" is clicked an ajax script checks the fields for illegal values in the first form, where the Create button belongs to. That's fine. But when the "Save" button is clicked, it still checks fields from the first form, and not the form where the Save button belongs to. My Ajax looks like this ``` $(document).ready(function(){ // $('form').submit(function() { $('form').live('submit', function(){ var title = $('#title').val(); ... ``` Is it here the problem could be? I have tried with the commented code, but that doesn't work either. Any ideas where the problem could be?
Always getting values from first form. What's wrong?
CC BY-SA 3.0
null
2011-05-09T22:00:42.033
2011-05-09T22:17:14.630
null
null
256,439
[ "javascript", "jquery", "ajax" ]
5,943,142
1
5,943,196
null
0
335
I am not sure why I am getting the following error: ![enter image description here](https://i.stack.imgur.com/DA0MG.png) the height doesn't complain anything, it's just the width... why? Here's my code: ``` @interface Embed : RKObject { NSString * _url; NSString * _original; NSNumber * _width; NSNumber * _height; } @property (nonatomic, retain) NSString * url; @property (nonatomic, retain) NSString * original; @property (nonatomic, retain) NSNumber * width; @property (nonatomic, retain) NSNumber * height; @end @implementation Embed @synthesize url = _url; @synthesize original = _original; @synthesize width = _width; @synthesize height = _height; + (NSDictionary*) elementToPropertyMappings { return [NSDictionary dictionaryWithKeysAndObjects: @"url", @"url", @"original", @"original", @"width", @"width", @"height", @"height", nil]; } - (void)dealloc { [_url release]; [_original release]; [_width release]; [_height release]; [super dealloc]; } @end ``` not sure why it's a CGFloat, never convert it to CGFloat anywhere else
NSNumber to float error
CC BY-SA 3.0
null
2011-05-09T22:15:55.787
2011-05-09T22:22:19.273
2011-05-09T22:22:19.273
721,937
721,937
[ "iphone", "objective-c", "ipad" ]
5,943,166
1
5,943,197
null
89
237,584
Here's a portion of my table (it's a form): ![](https://i.stack.imgur.com/vRfCU.png) Those are just two `<td>`'s in a `<tr>`. I'm trying to get up top, to the top of the table cell, rather than resting on the bottom. How can I do that?
Vertical Alignment of text in a table cell
CC BY-SA 3.0
0
2011-05-09T22:18:52.663
2020-07-02T11:26:21.493
2013-04-16T17:38:44.477
1,813,817
361,883
[ "html", "css" ]
5,943,339
1
5,943,400
null
0
225
I am learning php. I am learning through by looking at structure of existing web site. I can configure it correctly. I dont how to set the virtuall directory for web site. Like ASP.NET you have either host the site on IIS or you can use local ISS. Is there any such thing with PHP. I am using eclipse for development. ![enter image description here](https://i.stack.imgur.com/t7mL5.jpg)
How to set virtual directory for php
CC BY-SA 3.0
null
2011-05-09T22:42:57.670
2011-05-09T22:53:31.433
null
null
389,288
[ "php", "eclipse", "apache" ]
5,943,392
1
6,090,278
null
0
1,219
I'm using Fluent NHibernate to map my entities and I've come to a set that I'm having probelsm gettting mapped. I've tried different variations of SubclassMap but I can't seem to get Cart, Project or Order mapped correctly. Item, CartItem, OrderItem and ProjectItem map fine. I'm fairly new to NHibernate and I just can't figure out how to tell it to do what I want. This is the schema I'm going for with this inheritance structure:![enter image description here](https://i.stack.imgur.com/QhCVF.png) ``` public abstract class Item { public virtual int Id {get;set;} public virtual decimal Price {get;set;} } public class CartItem : Item { public virtual string ProjectName {get;set;} } public class OrderItem : Item { public virtual IList<Payment> Payments {get;set;} } public class ProjectItem : Item { public virtual string ProjectName {get;set;} } public abstract class ItemCollection<T> where T: Item { public virutal IList<T> Items {get;set;} } public abstract class CommerceCollection<T> : ItemCollection<T> where T : Item { public virtual decimal Total {get;set;} } public class Project : ItemCollection<ProjectItem> { public virtual string ProjectName {get;set;} } public class Cart : CommerceCollection<CartItem> {} public class Order : CommerceCollection<OrderItem> { public virtual string OrderTrackingNumber {get;set;} } /*------- MAPS -------*/ public class ItemMap: ClassMap<Item> { public ItemMap() { MapId(); Map(x=> x.Price); } } public class OrderItemMap : SubclassMap<OrderItem> { public OrderItemMap() { Map(x => x.OrderItemProperty); } } public class CartItemMap : SubclassMap<CartItem> { public CartItemMap() { Map(x => x.CartItemProperty); } } public class ProjectItemMap : SubclassMap<ProjectItem> { public ProjectItemMap() { Map(x => x.ProjectItemProperty); } } public class CartMap : ClassMap<Cart> { public CartMap() { Map(x => x.Total); HasMany(x => x.Items); } } public class OrderMap : ClassMap<Order> { public OrderMap() { Map(x => x.Total); HasMany(x => x.Items); } } ```
NHibernate mappings with generic base classes
CC BY-SA 3.0
null
2011-05-09T22:51:37.727
2011-05-22T19:41:25.737
2011-05-10T20:03:13.613
53,007
53,007
[ "c#", "nhibernate", "fluent-nhibernate", "nhibernate-mapping" ]
5,943,403
1
5,945,977
null
4
2,901
What is the snippet of code to make a block just show in pages generated by a certain View? ![enter image description here](https://i.stack.imgur.com/xez3D.png) Using Drupal 6 with Views 2.
How to display a block only on certain page view display
CC BY-SA 3.0
0
2011-05-09T22:54:01.933
2013-05-30T23:37:38.810
2013-05-30T23:37:38.810
225,647
357,452
[ "drupal", "drupal-6", "drupal-views", "drupal-blocks" ]
5,943,933
1
5,943,946
null
0
64
this is the screenshot from reddit. how can i make connection with the topic and answers in a pecking order? ![enter image description here](https://i.stack.imgur.com/6J5TH.gif)
how should my mysql database structure be in this case?
CC BY-SA 3.0
null
2011-05-10T00:31:45.323
2011-05-10T01:03:01.577
null
null
489,260
[ "php", "mysql" ]
5,943,929
1
null
null
9
3,633
In Visual Studio 2010, if you hover your mouse over the little [-] minus sign, it will highlight that block of code for you. My question is, is there a way for this block to always be highlighted while you are coding inside of it? That way, as I'm hopping between methods and classes, whatever block I'm currently working on would be highlighted to help my eyes quickly focus. Is there an option within Visual Studio for this? If not, are there any plugins that do this? ![enter image description here](https://i.stack.imgur.com/omS0y.png)
Is there a way to highlight the currently active code block in Visual Studio 2010?
CC BY-SA 3.0
0
2011-05-10T00:30:56.430
2017-04-13T12:58:40.223
2011-05-10T00:51:41.837
500,104
218,125
[ "c#", "c++", "visual-studio", "visual-studio-2010", "highlight" ]
5,943,955
1
5,952,948
null
0
4,601
I'm having problem in my datagridview. I'm using vb 2008 and an access database. When I create a new record for my item the `No` column (primary key and autonumber in access) always shows a negative number. How can I make that a positive number and it should follow the numbering in the datagridview. Here's a screen shot of that: ![enter image description here](https://i.stack.imgur.com/pEVKR.png)
negative number in my datagridview
CC BY-SA 3.0
0
2011-05-10T00:35:24.887
2012-06-18T19:30:57.453
2012-06-18T19:30:57.453
142,637
625,301
[ "database", "vb.net", "ms-access", "datagridview" ]
5,944,067
1
9,626,658
null
2
6,171
I'm new to PHP. After lots of search I managed to somehow use my web service that is created by Java with PHP but the problem is the constructor of SoapClient class is very slow. Here's my PHP code: ``` <? require_once('SOAP/Client.php'); $url = "http://127.0.0.1:8024/_RS?wsdl"; $sc = new SoapClient($url); ?> ``` This takes up to 3 minutes some times. I don't know what the problem is. After creating the constructor I could use it in a `for` loop for 50 times in 1 second so I'm pretty sure that the constructor is the part that is slowing down my code. What do you think is causing the problem? Thank you in advance. PS: More information in my other question: [https://stackoverflow.com/questions/5929669/call-a-wsdl-web-service-created-by-java-from-nushphere-phped](https://stackoverflow.com/questions/5929669/call-a-wsdl-web-service-created-by-java-from-nushphere-phped) PPS: As suggested by AJ, I used XDebug and kcachegrind to analyze the problem. As you can see, I was right. Here's the picture: ![XDebug result in kcachegrind both in % (up) and time(down).](https://i.stack.imgur.com/n8b6b.png)
PHP: SoapClient constructor is very slow (takes 3 minutes)
CC BY-SA 3.0
0
2011-05-10T00:55:14.487
2012-03-19T06:16:14.523
2017-05-23T10:28:53.857
-1
603,200
[ "java", "php", "web-services" ]
5,944,109
1
5,944,402
null
10
5,145
I'm writing a ray tracer (mostly for fun) and whilst I've written one in the past, and spent a decent amount of time searching, no tutorials seem to shed light on the way to calculate the eye rays in a perspective projection, without using matrices. I believe the last time I did it was by (potentially) inefficiently rotating the eye vectors `x/y` degrees from the camera direction vector using a `Quaternion` class. This was in C++, and I'm doing this one in C#, though that's not so important. Pseudocode (assuming V * Q = transform operation) ``` yDiv = fovy / height xDiv = fovx / width for x = 0 to width for y = 0 to height xAng = (x / 2 - width) * xDiv yAng = (y / 2 - height) * yDiv Q1 = up vector, xAng Q2 = camera right vector, yAng Q3 = mult(Q1, Q2) pixelRay = transform(Q3, camera direction) raytrace pixelRay next next ``` I think the actual problem with this is that it's simulating a spherical screen surface, not a flat screen surface. Mind you, whilst I know how and why to use cross products, dot products, matrices and such, my actual 3D mathematics problem solving skills aren't fantastic. So given: - - - What is the actual method to produce an eye ray for x/y pixel coordinates for a raytracer? I exactly what I'm trying to calculate, I'm just not great at coming up with the 3D math to compute it, and no ray tracer code I find seems to have the code I need to compute the eye ray for an individual pixel. ![enter image description here](https://i.stack.imgur.com/oviVU.png)
Raytracer - Computing Eye Rays
CC BY-SA 3.0
0
2011-05-10T01:01:47.577
2011-05-27T00:40:41.580
2011-05-10T01:55:26.727
151,429
151,429
[ "3d", "raytracing" ]
5,944,373
1
5,944,792
null
2
876
The following code produces the image that follows. The image I am using for the background is 640 x 480, as is the displayMode. The texture is a .bmp and is loaded with the Slick texture loader. I am confuse to why it is not filling the Quad and why it is reflected. EDIT: The background of my OpenGL scene is pink, the black you see is from the Quad created. The background image is the green block with a 2px light blue border with "test" plastered on it. ``` private void renderBackground(){ float w = displayMode.getHeight()/2; float h = displayMode.getWidth()/2; GL11.glMatrixMode(GL11.GL_PROJECTION); GL11.glPushMatrix(); GL11.glLoadIdentity(); GLU.gluOrtho2D(-w, w, -h, h); GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glPushMatrix(); GL11.glLoadIdentity(); GL11.glDisable(GL11.GL_DEPTH_TEST); if(useTextures)background.bind(); GL11.glBegin(GL11.GL_QUADS); GL11.glTexCoord2f(0.0f, 0.0f); GL11.glVertex2f(-w,-h); GL11.glTexCoord2f(1.0f, 0.0f); GL11.glVertex2f(w,-h); GL11.glTexCoord2f(1.0f, 1.0f); GL11.glVertex2f(w, h); GL11.glTexCoord2f(0.0f, 1.0f); GL11.glVertex2f(-w, h); GL11.glEnd(); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glMatrixMode(GL11.GL_PROJECTION); GL11.glPopMatrix(); GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glPopMatrix(); } ``` ![OpenGL Texture mismapping](https://i.stack.imgur.com/5oMNL.png) Now when I add `GL11.glTranslatef(20.0f, 20.0f, 0.0f);` you will notice that the pink appears, which is the colour created int my "initGL" method:`GL11.glClearColor(1.0f, 0.75f, 0.796f, 0.0f);`![enter image description here](https://i.stack.imgur.com/tARBH.png) My GL_PROJECTION contains the following before pushing it, my GL_MODELVIEW is unmodified when renderBackground() is called. ``` GL11.glMatrixMode(GL11.GL_PROJECTION); // Select The Projection Matrix GL11.glLoadIdentity(); // Reset The Projection Matrix // Calculate The Aspect Ratio Of The Window GLU.gluPerspective(45.0f, (float) displayMode.getWidth() / (float) displayMode.getHeight(), 0.1f, 25.0f); //position camera GLU.gluLookAt(5.0f, 3.0f, -5.0f, 0.0f, 0.0f, -10.0f, 0.0f, 1.0f, 0.0f); GL11.glMatrixMode(GL11.GL_MODELVIEW); // Select The Modelview Matrix ```
Problem texture mapping a quad in OpenGL with Ortho2D
CC BY-SA 3.0
0
2011-05-10T01:54:41.717
2011-05-10T06:43:39.767
2011-05-10T03:19:46.410
668,594
668,594
[ "java", "opengl", "texture-mapping", "lwjgl" ]
5,944,404
1
9,952,535
null
1
1,295
While getting our WCF Data Service ready for production we encountered an issue with the behaviour of the expand operator when paging is enabled. With paging disabled, expand works as expected. But when I enable paging on any of the expanded entity sets, no matter what the page sizes, the expanded entities appear to page with a size of 1. In the absence of any further input from here or the MSDN forums I've created a [bug on Connect](https://connect.microsoft.com/VisualStudio/feedback/details/670313/wcf-data-services-expand-behaves-unexpectedly-when-entity-page-sizes-are-set-on-child-collections). Maybe someone over the wall will get to the bottom of it! For example, supposed I have the following simple model: ![Example Model](https://i.stack.imgur.com/QO3je.png) It's running on a generated SQL database with some sample data: ``` INSERT INTO [dbo].[Towns] (Name) VALUES ('Berlin'); INSERT INTO [dbo].[Towns] (Name) VALUES ('Rome'); INSERT INTO [dbo].[Towns] (Name) VALUES ('Paris'); INSERT INTO [dbo].[Gentlemen] (Id, Name) VALUES (1, 'Johnny'); INSERT INTO [dbo].[Ladies] (Name, Town_Name, Gentleman_Id) VALUES ('Frieda', 'Berlin', 1); INSERT INTO [dbo].[Ladies] (Name, Town_Name, Gentleman_Id) VALUES ('Adelita', 'Berlin', 1); INSERT INTO [dbo].[Ladies] (Name, Town_Name, Gentleman_Id) VALUES ('Milla', 'Berlin', 1); INSERT INTO [dbo].[Ladies] (Name, Town_Name, Gentleman_Id) VALUES ('Georgine', 'Paris', 1); INSERT INTO [dbo].[Ladies] (Name, Town_Name, Gentleman_Id) VALUES ('Nannette', 'Paris', 1); INSERT INTO [dbo].[Ladies] (Name, Town_Name, Gentleman_Id) VALUES ('Verona', 'Rome', 1); INSERT INTO [dbo].[Ladies] (Name, Town_Name, Gentleman_Id) VALUES ('Gavriella', 'Rome', 1); ``` The Data Service is straightforward (note that here paging is disabled): ``` namespace TestWCFDataService { public class TestWCFDataService : DataService<TestModel.TestModelContainer> { // This method is called only once to initialize service-wide policies. public static void InitializeService(DataServiceConfiguration config) { config.SetEntitySetAccessRule("Ladies", EntitySetRights.AllRead); config.SetEntitySetAccessRule("Gentlemen", EntitySetRights.AllRead); config.SetEntitySetAccessRule("Towns", EntitySetRights.AllRead); //config.SetEntitySetPageSize("Ladies", 10); //config.SetEntitySetPageSize("Gentlemen", 10); //config.SetEntitySetPageSize("Towns", 10); config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2; } } } ``` Now, my user wants to find every `Lady` whose `Town` is "Berlin" and also who their `Gentleman` is. The query in question is: ``` http://localhost:62946/TestWCFDataService.svc/Towns('Berlin')?$expand=Ladies/Gentleman ``` When I run this query (JSON because the Atom version is gigantic) I get the expected output; a town with three ladies, all of whom have Johnny as their gentleman. ``` var result = { "d": { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Towns('Berlin')", "type": "TestModel.Town" }, "Name": "Berlin", "Ladies": [ { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(1)", "type": "TestModel.Lady" }, "Id": 1, "Name": "Frieda", "Gentleman": { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)", "type": "TestModel.Gentleman" }, "Id": 1, "Name": "Johnny", "Ladies": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)/Ladies" } } }, "Town": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(1)/Town" } } }, { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(2)", "type": "TestModel.Lady" }, "Id": 2, "Name": "Adelita", "Gentleman": { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)", "type": "TestModel.Gentleman" }, "Id": 1, "Name": "Johnny", "Ladies": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)/Ladies" } } }, "Town": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(2)/Town" } } }, { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(3)", "type": "TestModel.Lady" }, "Id": 3, "Name": "Milla", "Gentleman": { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)", "type": "TestModel.Gentleman" }, "Id": 1, "Name": "Johnny", "Ladies": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)/Ladies" } } }, "Town": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(3)/Town" } } } ] } } ``` There are going to be many `Towns` eventually so I enable paging for Town. ``` ... config.SetEntitySetPageSize("Towns", 10); ... ``` The query continues to function as expected. But there are also going to be a lot of `Ladies` and `Gentlemen` so I want to be able to limit the number of results that are returned: ``` ... config.SetEntitySetPageSize("Ladies", 10); config.SetEntitySetPageSize("Gentlemen", 10); ... ``` But when I set a page size on either the Ladies entity set or the Gentlemen entity set (or both) the results of my query change unexpectedly: ``` var result = { "d": { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Towns('Berlin')", "type": "TestModel.Town" }, "Name": "Berlin", "Ladies": { "results": [ { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(1)", "type": "TestModel.Lady" }, "Id": 1, "Name": "Frieda", "Gentleman": { "__metadata": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)", "type": "TestModel.Gentleman" }, "Id": 1, "Name": "Johnny", "Ladies": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Gentlemen(1)/Ladies" } } }, "Town": { "__deferred": { "uri": "http://localhost:62946/TestWCFDataService.svc/Ladies(1)/Town" } } } ] } } } ``` The expand only includes one of the Lady objects (although at least her Gentleman is included). It doesn't matter how large the page size is set to, the query still only returns one object in the expanded collection. It also does not matter whether or not the page size is set on one or both of the expanded entities, as long as one of them has a page size set then only one of the `Lady` objects will be eagerly loaded. This behaviour smells buggy to me, as according to the [OData Specification](http://www.odata.org/developers/protocols/uri-conventions#ExpandSystemQueryOption): > "A URI with a $expand System Query Option indicates that Entries associated with the Entry or Collection of Entries identified by the Resource Path section of the URI must be represented inline (i.e. eagerly loaded)." Am I misreading the spec? Should I have expected this behaviour? I just want to be able to limit the page size of the entity sets when accessed directly but also have them eagerly loadable. Is it a bug in WCF Data Services? (or my code? or my brain?) More info: the [documentation for WCF Data Services](http://msdn.microsoft.com/en-us/library/ee358709.aspx) states that: > "Also, when paging is enabled in the data service, you must explicitly load subsequent data pages from the service." But I can't find an explanation of why the page size for the related entity sets seems to default to 1 no matter what page size is specified. Yet more info: the version in question is on .NET 4 version `4.0.30319` with `System.Data.Services` version `4.0.0.0`. It's the version that comes in the box with Visual Studio 2010 (with SP1 installed). A sample solution showing the behaviour is now up in a [github repository](http://github.com/coldie/TestWCFDataServices). It's got paging turned on in the `InitializeService` method and a DB creation script that also adds some sample data so that we're on the same page.
WCF Data Services Expand behaves unexpectedly when certain entity page sizes are set
CC BY-SA 3.0
0
2011-05-10T02:00:38.157
2012-03-31T02:40:28.380
2011-06-07T01:09:16.700
596,305
596,305
[ "c#", "entity-framework", "odata", "wcf-data-services" ]
5,944,692
1
5,944,723
null
2
2,054
I would like to pass some parameters to a customized Linux init via the boot options configured in the bootloader at boot. I've written test init's in both Python and C. The Python version is able to see anything in the kernel boot options that doesn't have a '=' or '.' in it. The values are found in sys.argv. However, the C program doesn't seem to get passed the values. I would have thought the sys.argv list in Python was generated by parsing the **argv array. Below are the test scripts and screen shots that will hopefully help clarify. the kernel boot line is: `kernel /grub/linux-2.6.38.4 root=/dev/vda1 init=/argv-{p|c} one two three four five` Python version: ``` #!/usr/bin/python import sys i = 0 print("Printing argv[] (Python) ...") for each in range(i, len(sys.argv)): print("argv[%d] - %s" % (i, sys.argv[i])) i += 1 print("...finished printing argv[]") ``` ![Python init argv test](https://i.stack.imgur.com/DGXbB.png) C version: ``` #include <stdio.h> int main(int argc, char **argv) { int i; printf("Printing argv[] (C) ...\n"); for(i; i < argc; i++) { printf("argv[%d] - %s\n", i, argv[i]); } printf("...finished printing argv[]\n"); } ``` ![C init argv test](https://i.stack.imgur.com/bWwKS.png) You can see just before the test programs exit (and causes panic) the python version spits out the boot options the kernel didn't digest while the C version didn't. I've looked at the sysvinit source code and it looks to me (not being a C dev) that it works the same way? How do I get the boot options passed to my C init program? (oh, and the C program works as expected when not being run as init)
Passing Linux boot opts to Init
CC BY-SA 3.0
0
2011-05-10T03:01:35.347
2011-05-10T04:22:53.377
2011-05-10T03:10:26.307
592,851
592,851
[ "python", "c", "linux", "boot", "init" ]
5,944,987
1
5,945,332
null
73
351,980
To create a simple working PopupWindow, we need to do the following: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:padding="10dip" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dip" android:text="Test Pop-Up" /> </LinearLayout> ``` ``` LayoutInflater inflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); PopupWindow pw = new PopupWindow(inflater.inflate(R.layout.popup_example, null, false),100,100, true); pw.showAtLocation(this.findViewById(R.id.main), Gravity.CENTER, 0, 0); ``` My requirement is that I need a ``` <TEXTVIEW android:layout_height="wrap_content" android:layout_width="fill_parent" /> ``` and a ``` <BUTTON android:id="@+id/end_data_send_button" android:text="Cancel"/> ``` in my `popup_example.xml`. How can I handle these two components in my Java code? ![screenshot](https://i.stack.imgur.com/F49MYm.png)
How to create a popup window (PopupWindow) in Android
CC BY-SA 4.0
0
2011-05-10T03:55:06.767
2021-03-26T08:04:22.020
2018-05-05T11:08:53.413
3,681,880
548,218
[ "android", "popupwindow", "android-popupwindow" ]
5,944,994
1
6,973,424
null
1
1,085
I would like to add a video of a moving object to a background that can be changed, what format should I use? How should I implement this? EDIT: I would like to make an effect like this:![Sample image](https://i.stack.imgur.com/zulxP.gif)
How do I add a video layer with alpha channel (transparency) to an iphone app?
CC BY-SA 3.0
0
2011-05-10T03:56:16.873
2011-08-08T01:03:56.283
null
null
262,296
[ "iphone", "ipad", "video", "transparency", "alpha" ]
5,945,156
1
5,945,866
null
17
25,844
I'm looking to detect and get a array of Rects, one for each rectangle, in the image below. How might I do this in c#? Basically I'm trying to scan the image taken of the screen and parse the array of windows. Rect being some form of (xloc,yloc,xsize,ysize) Returned array: rectangles = ParseRects(image); ![Image](https://i.stack.imgur.com/YfXPD.png)
c# Detect Rectangles in Image
CC BY-SA 3.0
0
2011-05-10T04:25:20.000
2018-08-05T22:36:09.977
2012-08-21T19:15:22.050
698,590
431,369
[ "c#", "image", "image-processing" ]
5,945,278
1
5,946,277
null
0
1,630
i'm using this layout xml to show both my activity and the admob: first i thought it will shift the upper layout when the admob is available, but it is not... do you guys have any idea? ``` <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="@drawable/wonder" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" android:textColor="#000" /> <ListView android:id="@+id/auto" android:layout_width="fill_parent" android:layout_height="wrap_content" android:headerDividersEnabled="false" android:footerDividersEnabled="false"/> <LinearLayout xmlns:myapp="http://schemas.android.com/apk/res/com.anim.list" android:layout_width="fill_parent" android:layout_height="wrap_content"> <com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF" myapp:secondaryTextColor="#CCCCCC" /> </LinearLayout> </LinearLayout> ``` Update: here's my RelativeLayout ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:myapp="http://schemas.android.com/apk/res/com.anim.list" android:id="@+id/master" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/wonder" > <TextView android:id="@+id/inf" android:layout_alignParentTop="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" android:textColor="#000" /> <ListView android:id="@+id/auto" android:layout_above="@+id/ad" android:layout_below="@+id/inf" android:layout_width="fill_parent" android:layout_height="wrap_content" android:headerDividersEnabled="false" android:footerDividersEnabled="false"/> <com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF" myapp:secondaryTextColor="#CCCCCC" android:layout_alignParentBottom="true" /> </RelativeLayout> ``` ![updated screenshot](https://i.stack.imgur.com/bL368.png) Sorry buddies, I use this layout to solve my problem ``` <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/wonder"> <LinearLayout android:layout_width="fill_parent" android:id="@+id/home_layout" android:orientation="vertical" android:layout_above="@+id/ad_layout" android:layout_height="wrap_content"> <!-- Put all your application views here, such as buttons, textviews, edittexts and so on --> <TextView android:id="@+id/inf" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" android:textColor="#000" /> <ListView android:id="@+id/auto" android:layout_width="fill_parent" android:layout_height="wrap_content" android:headerDividersEnabled="false" android:footerDividersEnabled="false" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:id="@+id/ad_layout" android:layout_height="wrap_content" android:gravity="bottom" android:layout_alignParentBottom="true"> <com.google.ads.AdView xmlns:ads="http://schemas.android.com/apk/res/com.anim.list" android:id="@+id/adView" android:layout_width="fill_parent" android:layout_height="wrap_content" ads:adSize="BANNER" ads:adUnitId="a14db7f475a6f8d" /> </LinearLayout> </RelativeLayout> ``` Now, I got it works! thanks!
how to shift the android layout when admob is available?
CC BY-SA 3.0
null
2011-05-10T04:46:15.707
2011-05-10T09:01:27.650
2011-05-10T09:01:27.650
656,607
656,607
[ "android", "xml", "layout", "admob" ]
5,945,312
1
null
null
0
3,643
I am getting this error while execution of my application. I am using VS 2008 version '9.0.30729.1 SP' on Windows Server 2008. ![enter image description here](https://i.stack.imgur.com/VRd9z.png) Here is my manifest file description ``` <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel> </requestedPrivileges> </security> </trustInfo> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity> </dependentAssembly> </dependency> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC90.DebugMFC" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity> </dependentAssembly> </dependency> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.30729.4148" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity> </dependentAssembly> </dependency> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.30729.1" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity> </dependentAssembly> </dependency> </assembly> ``` Can anybody explain why it requires both version of 'Microsoft.VC90.DebugCRT' as you can see in manifest file. version '9.0.21022.8' and '9.0.30729.4148'. I have seen in my folder 'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\ Microsoft.VC90.CRT' the 'msvcm90.dll' version are '9.0.30729.1' Are the error is because of this? I have seen under system event showing 3 errors are as follows. 1. Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system. 2. Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The referenced assembly is not installed on your system. 3. Generate Activation Context failed for d:\Barriergates\Debug\Barriergates.exe.Manifest. Reference error message: The operation completed successfully. Please help in these issue. Thanks.
The application has failed to start because the application is incorrect
CC BY-SA 3.0
null
2011-05-10T04:52:11.177
2011-05-10T17:38:58.990
2011-05-10T06:31:06.750
79,368
79,368
[ "visual-studio", "visual-studio-2008", "visual-c++" ]
5,945,325
1
5,952,950
null
2
3,782
I have created a UISplitViewApplication as my new project. In the potrait mode I have a button that when clicked will drop down a UITableView. It looks something as the following: ![enter image description here](https://i.stack.imgur.com/ZiEgb.png) When I clicked on one of the rows, this UITableView is dismissed. Then when I click again on the Groups button, the layout of the UITableView presented is now all messy: ![enter image description here](https://i.stack.imgur.com/to9cR.png) However, when I scroll the TableView so that some of the rows are reloaded again, those that are reloaded are then formatted fine. Why is this and how do I fix this? Here's my cell for row at index path: ``` - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"MyCell"; MyCell *cell = (ConvoreCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; //if (cell == nil) { NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"MyCell" owner:nil options:nil]; for (id currentObject in topLevelObjects){ if ([currentObject isKindOfClass:[UITableViewCell class]]){ cell = (MyCell *) currentObject; break; } } cell.delegate = self; // } if ([posts count] > 0){ cell.star.hidden = YES; [lazyImages addLazyImageForCell:cell withIndexPath:indexPath]; cell.title.text = [[posts objectAtIndex:indexPath.row] message]; cell.detailed.autoresizesSubviews = YES; cell.detailed.text = [NSString stringWithFormat:@"%@", [[[posts objectAtIndex:indexPath.row] creator] username]]; if ([[[posts objectAtIndex:indexPath.row] embeds] count] != 0){ NSString * URL = [[[[posts objectAtIndex:indexPath.row] embeds] objectAtIndex:0] url]; float height = [[(Embed * )[[[posts objectAtIndex:indexPath.row] embeds] objectAtIndex:0] height] floatValue]; float width = [[(Embed * )[[[posts objectAtIndex:indexPath.row] embeds] objectAtIndex:0] width] floatValue]; [cell.embed setFrame:CGRectMake(cell.detailed.frame.origin.x, cell.detailed.frame.origin.y + 15, width, height)]; cell.embed.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:URL]]]; } if ([[[posts objectAtIndex:indexPath.row] stars] count] != 0){ cell.star.hidden = NO; cell.star_creator.text = [(Login *)[[[[posts objectAtIndex:indexPath.row] stars] objectAtIndex:0] user] username]; } } return cell; } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { NSString *cellText =[[posts objectAtIndex:indexPath.row] message]; UIFont *cellFont = [UIFont fontWithName:@"Arial" size:14.0]; CGSize constraintSize = CGSizeMake(600.0f, MAXFLOAT); CGSize labelSize = [cellText sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:UILineBreakModeWordWrap]; float height = 0.0; if ([[[posts objectAtIndex:indexPath.row] embeds] count] != 0) height = [[[[[posts objectAtIndex:indexPath.row] embeds] objectAtIndex:0] height] floatValue]; if (labelSize.height + 20 + height < 48) return 55; else return labelSize.height + height + 48; } ```
UITableView layout not refreshing until scrolled
CC BY-SA 3.0
null
2011-05-10T04:55:02.850
2011-05-10T16:01:12.953
2011-05-10T13:55:36.927
95,265
95,265
[ "iphone", "objective-c", "ipad", "uitableview" ]
5,945,340
1
null
null
1
1,275
Can anyone suggest me some jquery tutorial or a demo where something like the below figure has been made ![enter image description here](https://i.stack.imgur.com/BvI5p.png) The arrow would point to some result value which would be between a and d. Is there any other method to do this else jquery. Using google chart api can i get the arrow somehow??
Jquery horizontal bar with arrow
CC BY-SA 3.0
null
2011-05-10T04:57:10.493
2011-05-10T20:22:18.293
2020-06-20T09:12:55.060
-1
455,257
[ "jquery", "google-visualization" ]
5,945,460
1
5,990,367
null
1
1,056
![enter image description here](https://i.stack.imgur.com/3B6d9.png) 2 records in above image are from Db, in above table Constraint are (SID and LINE_ITEM_ID), SID and LINE_ITEM_ID both column are used to find a unique record. My issues : I am looking for a query it should fetch the recored from DB depending on conditions if i search for PART_NUMBER = 'PAU43-IMB-P6' 1. it should fetch one record from DB if search for PART_NUMBER = 'PAU43-IMB-P6', no mater to which SID that item belong to if there is only one recored either under SID =1 or SID = 2. 2. it should fetch one record which is under SID = 2 only, from DB on search for PART_NUMBER = 'PAU43-IMB-P6', if there are 2 items one in SID=1 and other in SID=2. i am looking for a query which will search for a given part_number depending on Both SID 1 and 2, and it should return value under SID =2 and it can return value under SID=1 only if the there are no records under SID=2 (query has to withstand a load of Million record search). Thank you
How to get one common value from Database using UNION
CC BY-SA 3.0
null
2011-05-10T05:14:24.323
2011-05-13T10:09:31.770
null
null
659,952
[ "sql", "unions" ]
5,945,548
1
5,945,563
null
3
9,518
I tried to make the button go down with margin, padding, top to be on the same level as other input and label, but it won't budge. html code: see image![enter image description here](https://i.stack.imgur.com/nAnci.png) ``` input[type="image"] .button-update-cart{ top:100px; } ``` On the form, image is out of the place for example: see this image ![enter image description here](https://i.stack.imgur.com/wD73a.png) ``` .page-cart .cart-totals .promo-code .field .button-update-cart{ position:relative; } .page-cart .cart-totals .promo-code .field input[type="image"] { top:100px; } ``` it doesnt work :( Any insight will be appreciated!
Input[type="image"] won't budge
CC BY-SA 3.0
null
2011-05-10T05:25:51.420
2011-05-10T05:41:52.900
2011-05-10T05:41:52.900
524,666
524,666
[ "css", "input" ]
5,945,627
1
5,945,697
null
1
663
I am trying to design a UI as like in an iPhone app. The image of the design is as follows ![enter image description here](https://i.stack.imgur.com/RD1K7.png) In the above image all the white boxes are of a list view. In those list view i am placing an image View and two set of text view. I have placed a overall custom list view and in that custom list view using relative layout i have place the image view and two text view. now i want to draw a line between the two text view and when i click on the second text view i am moving to a new activity. At that time i want to show that only the second text view is been clicked.
how to design this UI
CC BY-SA 3.0
null
2011-05-10T05:34:51.800
2013-06-23T20:11:15.820
null
null
679,860
[ "android", "user-interface" ]
5,945,815
1
6,002,268
null
1
721
I have hosted .NET 4.0 / ASP.NET MVC 3 app on IIS 6 on Windows SErver 2003 machine. When I browse the app i get below error: > Access to the path 'C:\Program Files\Reference Assemblies\Microsoft\Framework\' is denied. ![http://i.stack.imgur.com/xAtbd.png](https://i.stack.imgur.com/xAtbd.png) I have installed .net 4.0 on machine and when I checked the path referred in error I don't see .net 4.0 folder there. So it's very confusing and not able to figure out where is the problem? I would appreciate if anyone can help on this.
ASP.NET MVC 3 app on IIS6
CC BY-SA 3.0
null
2011-05-10T05:58:03.120
2011-05-14T13:55:39.667
2011-05-10T06:01:52.820
41,956
287,100
[ ".net", "asp.net", "asp.net-mvc-3", ".net-4.0", "iis-6" ]
5,945,880
1
5,946,935
null
1
640
I would like to find out if anyone can give me a hand on this problem that i am currently having. Basically, I have a legacy db that I have to deal with. I have created some domain classes to represent our db model. However, the domain classes are not a straight one to one mapping with the database tables. This is a snapshot of legacy db model: ![enter image description here](https://i.stack.imgur.com/kQV2B.png) and one of my domain classes is like this: ``` public class Reading { public Location Location {get; set;} } public class Location { public string Name { get; set;} } ``` Given the above model and domain class, how can I map them? Most of the articles that I found out there have straight one to one mapping. If any of you can give some help on this, that would be much appreciated. Thanks in advance.
Map DDD classes to database model generated from Entity Framework 4.0
CC BY-SA 3.0
null
2011-05-10T06:05:57.877
2011-05-10T07:57:48.360
null
null
687,052
[ "database-design", "entity-framework-4", "domain-driven-design" ]
5,945,953
1
5,948,122
null
13
10,702
Hai all, I want to know how to disable row header in `Devexpress xtragrid` (grid control ) . In normal we are disabling the property of DataGrid by `row header visbile` into `false`.But how to disable in Devexpress. Please Help ![enter image description here](https://i.stack.imgur.com/u2uiY.png)
How to disable row header in devexpress xtragrid
CC BY-SA 3.0
0
2011-05-10T06:15:04.260
2011-05-10T09:41:15.277
2011-05-10T09:11:21.053
434,910
434,910
[ "devexpress", "xtragrid" ]
5,945,983
1
5,975,897
null
6
9,171
In my application I am displaying a list of tables with huge data. All of the tables may not fit in the window, we need to scroll to see the bottom tables. Here I need expand/collapse nature to the tables. User may select which tables he would like to see among all of the tables. This is my sample screen shot of the application. ![enter image description here](https://i.stack.imgur.com/rKdEm.png) How can I do it?
How to implement expand/collapse nature to JTables in Java swing application
CC BY-SA 4.0
0
2011-05-10T06:19:15.167
2022-11-20T00:11:18.993
2022-11-20T00:11:18.993
1,161,484
701,571
[ "java", "swing", "jtable", "expand" ]
5,946,276
1
null
null
2
6,598
Hai, i faced alignment problem in IE browser . Scenario: 1. make group column as hidden ( groupColumnShow : [false]) 2. make any column hidden, (hidden:true) Screen shot attached.![enter image description here](https://i.stack.imgur.com/atgW1.png) [Screenshot] [http://uatdemo.sify.net:4080/jqgrid.png](http://uatdemo.sify.net:4080/jqgrid.png) Please help to resolve. ``` jQuery("#list48").jqGrid({ data: mydata, datatype: "local", height: 'auto', rowNum: 30, rowList: [10,20,30], colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'], colModel:[ {name:'id',index:'id', width:60, sorttype:"int"}, {name:'invdate',index:'invdate', width:90, sorttype:"date", formatter:"date"}, {name:'name',index:'name', width:100, editable:true}, {name:'amount',index:'amount', width:80, align:"right",sorttype:"float", formatter:"number", editable:true}, {name:'tax',index:'tax', width:80, align:"right",sorttype:"float", editable:true}, {name:'total',index:'total', width:80,align:"right",sorttype:"float"}, {name:'note',index:'note', width:150, sortable:false} ], pager: "#plist48", viewrecords: true, sortname: 'name', grouping:true, groupingView : { groupField : ['name'], groupColumnShow : [false] }, caption: "Hide Grouping Column" }); ```
jqgrid Hide Grouping column - Alignment Problem IE browser
CC BY-SA 3.0
0
2011-05-10T06:55:21.913
2015-07-31T06:45:56.753
2011-05-10T09:52:23.640
315,935
746,304
[ "jquery", "jqgrid" ]
5,946,317
1
5,947,426
null
0
863
I have this jQuery carousel going: [http://dougie.thewestharbour.com/wp-content/themes/dougie/slider.html](http://dougie.thewestharbour.com/wp-content/themes/dougie/slider.html) It works pretty well right now but there are 2 things I am trying to fix in the css and jQuery: [http://dougie.thewestharbour.com/wp-content/themes/dougie/carousel/css.css](http://dougie.thewestharbour.com/wp-content/themes/dougie/carousel/css.css) [http://dougie.thewestharbour.com/wp-content/themes/dougie/carousel/js.js](http://dougie.thewestharbour.com/wp-content/themes/dougie/carousel/js.js) How would I get it to start with the 2nd frame in the center of the screen, with the 1st still on the left and 3rd still on the right? It must be in the center so that the 1st and 3rd are evenly spaced on either side. I've attached an image of what it should look like on a 1280 wide screen. Then on a larger screen size, you would just see more of the left and right images and everything would still be centered. ![enter image description here](https://i.stack.imgur.com/eIms1.jpg) Also, you can see it adds the next loop when it moves from 1 to 2. How would I get it so it adds it when it moves from the end back to 1 so that you don't actually see it add? Thanks, Wade
Start jQuery Carousel On 2nd Frame
CC BY-SA 3.0
null
2011-05-10T06:59:53.933
2011-05-10T08:49:56.657
2011-05-10T07:31:40.940
233,592
233,592
[ "jquery", "css", "screen", "carousel", "infinite-carousel" ]
5,946,304
1
5,961,069
null
7
7,680
I am trying to draw a continuous curved line in flash. There are many methods but none of the ones I have found so far quite fit my requirements. First of all, [simulate a curve with hundreds of calls to lineTo() per curved line segment](http://www.cartogrammar.com/blog/actionscript-curves-update/) It is my experience and understanding that line segments are processor heavy. Flash's quadratic bezier curve should take less CPU power. Please challenge this assumption if you think I am wrong. I also do not want to use a pre-made method that takes the entire line as an argument (eg mx.charts.chartClasses.GraphicsUtilities.drawPolyline()). The reason is that I will need to modify the logic eventually to add decorations to the line I am drawing, so I need something I understand at its lowest level. I have currently created a method that will draw a curve given 3 points, [using the mid-point method found here](http://gskinner.com/blog/archives/2008/05/drawing_curved_.html). Here is a picture: ![A continuous curved line using the actual points as control points](https://i.stack.imgur.com/JFZSW.png) The problem is that the lines do not actually curve through the "real" points of the line (the gray circles). Is there a way using the power of math that I can adjust the control point so that the curve will actually pass through the "real" point? Given only the current point and its prev/next point as arguments? The code to duplicate the above picture follows. It would be great if I could modify it to meet this requirement (note the exception for first and last point). ``` package { import flash.display.Shape; import flash.display.Sprite; import flash.display.Stage; import flash.geom.Point; [SWF(width="200",height="200")] public class TestCurves extends Sprite { public function TestCurves() { stage.scaleMode = "noScale"; var points:Array = [ new Point(10, 10), new Point(80, 80), new Point(80, 160), new Point(20, 160), new Point(20, 200), new Point(200, 100) ]; graphics.lineStyle(2, 0xFF0000); var point:Point = points[0]; var nextPoint:Point = points[1]; SplineMethod.drawSpline(graphics, point, null, nextPoint); var prevPoint:Point = point; var n:int = points.length; var i:int; for (i = 2; i < n + 1; i++) { point = nextPoint; nextPoint = points[i]; //will eval to null when i == n SplineMethod.drawSpline(graphics, point, prevPoint, nextPoint); prevPoint = point; } //straight lines and vertices for comparison graphics.lineStyle(2, 0xC0C0C0, 0.5); graphics.drawCircle(points[0].x, points[0].y, 4); for (i = 1; i < n; i++) { graphics.moveTo(points[i - 1].x, points[i - 1].y); graphics.lineTo(points[i].x, points[i].y); graphics.drawCircle(points[i].x, points[i].y, 4); } } } } import flash.display.Graphics; import flash.geom.Point; internal class SplineMethod { public static function drawSpline(target:Graphics, p:Point, prev:Point=null, next:Point=null):void { if (!prev && !next) { return; //cannot draw a 1-dimensional line, ie a line requires at least two points } var mPrev:Point; //mid-point of the previous point and the target point var mNext:Point; //mid-point of the next point and the target point if (prev) { mPrev = new Point((p.x + prev.x) / 2, (p.y + prev.y) / 2); } if (next) { mNext = new Point((p.x + next.x) / 2, (p.y + next.y) / 2); if (!prev) { //This is the first line point, only draw to the next point's mid-point target.moveTo(p.x, p.y); target.lineTo(mNext.x, mNext.y); return; } } else { //This is the last line point, finish drawing from the previous mid-point target.moveTo(mPrev.x, mPrev.y); target.lineTo(p.x, p.y); return; } //draw from mid-point to mid-point with the target point being the control point. //Note, the line will unfortunately not pass through the actual vertex... I want to solve this target.moveTo(mPrev.x, mPrev.y); target.curveTo(p.x, p.y, mNext.x, mNext.y); } } ``` Later I will be adding arrows and things to the draw method.
How to draw a continuous curved line from 3 given points at a time
CC BY-SA 3.0
0
2011-05-10T06:58:42.650
2011-05-12T00:58:15.820
2011-05-11T00:58:41.620
602,680
602,680
[ "apache-flex", "actionscript-3", "bezier", "continuous", "spline" ]
5,946,373
1
5,946,593
null
2
14,255
In .net grid view Control Column we have a Property called "ColumnType" where we can specify column type which you want ![enter image description here](https://i.stack.imgur.com/jzlA9.png) Any body please help me how to do this in DevExpress Extra Grid Control Thanks in advance
How to change column type of a devExpress xtra Grid Control to CheckBox type column?
CC BY-SA 3.0
null
2011-05-10T07:05:00.610
2011-06-23T14:11:41.913
null
null
558,217
[ "c#", "devexpress", "xtragrid" ]
5,946,672
1
5,958,690
null
0
2,006
I have an IIS7.5 intranet website which I have secured using Windows Authentication. I want to allow access to a file in a sub-folder of the website without prompting for Windows credentials. My web.config is shown below. When I browse to [http://myserver:9876/SomeFolder/test.html](http://myserver:9876/SomeFolder/test.html) I am still prompted for Windows credentials : ![enter image description here](https://i.stack.imgur.com/9SN5l.png)
Allow access to folder in IIS website when using Windows Authentication
CC BY-SA 3.0
null
2011-05-10T07:33:23.060
2011-05-11T02:47:22.540
2011-05-10T07:43:30.547
381,624
381,624
[ "iis-7", "web-config" ]
5,946,785
1
5,947,837
null
-1
105
![enter image description here](https://i.stack.imgur.com/NWvwu.png) see the example..the footer won't stay at bottom/ ![enter image description here](https://i.stack.imgur.com/jo3tC.png) Tried to remove clearfix but it is not pushing the footer to the bottom or eliminates the white gap below the footer. Clearfix: display block is done via the Pinnaclecart itself. Even if I tried to remove display:block, the footer will be in mess. For an example, it will move footer items to the left outside of the page where the products are laid out. any insight will be appreciated!
Footer won't budge
CC BY-SA 3.0
null
2011-05-10T07:44:01.273
2011-05-11T05:24:39.890
2011-05-11T05:24:39.890
524,666
524,666
[ "css", "footer" ]
5,946,946
1
null
null
0
410
I have a gridview that is dynamically filling by youtube iframe embed objects. Everything is going well be when i am opening a modalpopup on the page, its getting overlapped by youtube iframe. Please check the image - ![modalpopupextendar overlapped by youtube embed iframe](https://i.stack.imgur.com/I7WS8.png) Here is the embed code- ``` <iframe style="z-index:0;" width="300" height="200" src='http://<%# DataBinder.Eval(Container.DataItem,"URL") %>'> frameborder="0" allowfullscreen="false"> </iframe> ``` can anybody help me out?
modalpopupextendar overlapped by youtube embed iframe
CC BY-SA 3.0
null
2011-05-10T07:59:20.350
2012-01-28T12:03:39.523
null
null
362,310
[ "c#", "gridview", "iframe", "youtube", "embed" ]
5,947,388
1
5,989,080
null
3
7,033
I've been following this guide for the HandleError attribute: [blogs.msdn.com](http://blogs.msdn.com/b/gduthie/archive/2011/03/17/get-to-know-action-filters-in-asp-net-mvc-3-using-handleerror.aspx) which I use like this (AccountController): ``` [HandleError(View="ErasErrorPage")] public ActionResult Index() { ViewBag.admins = _accountMapper.GetAdmins(false); ViewBag.members = _accountMapper.GetMembers(false); ViewBag.Countries = _countryMapper.GetCountries(); return View(); } ``` This code throws an exception because `_accountMapper.GetAdmins(false)` fails because of a System.Data.EntityException. I've put the ErasErrorPage view in my Shared folder and I've added `<customErrors mode="On"/>` but the ErasErrorPage does not show up. All I get when the error occurs is a yellow screen of death saying: ![Error](https://i.stack.imgur.com/NDcyL.jpg) Obviously, setting the mode to "Off" or "RemoteOnly" doesn't solve the problem. Anyone has an idea why this doesn't work? If I surf directly to [http://localhost:3527/Account/Index](http://localhost:3527/Account/Index), I do get the correct ErasErrorPage, but I don't want that. I want the website to automaticly redirect to that page when an exception is thrown somewhere. Is this possible? I've put the `[HandleError(View="ErasErrorPage")]` attribute right before every single `Public ActionResult methodName() { ... }` method, and I still get the Yellow Screen of Death saying I need to change the mode to "Off" or "RemoteOnly"...
MVC3 HandleError doesn't show error page
CC BY-SA 3.0
null
2011-05-10T08:35:48.157
2012-11-26T18:12:37.213
2011-05-10T09:34:21.270
710,149
710,149
[ "c#", "asp.net", "asp.net-mvc-3" ]
5,947,416
1
5,947,517
null
1
468
I am using Windows 7 and XAMMP 1.7.4. I am confused on how to enable Xdebug. Googling suggested to download xDebug dll , but there are different version of dll on Xdebug site , which confusing me. Moreover there is Zend debugging and then there Xdebug which one to use ?? How can i enable debugging in Xdebug. ![enter image description here](https://i.stack.imgur.com/9PVbl.jpg)
enabling Xdebug on windows 7 XAMMP 1.7.4
CC BY-SA 3.0
null
2011-05-10T08:38:07.490
2011-05-10T08:46:56.850
null
null
389,288
[ "php", "zend-framework", "xdebug" ]
5,947,609
1
null
null
1
1,998
> [Progress unit in ProgressDialog](https://stackoverflow.com/questions/3492001/progress-unit-in-progressdialog) ![enter image description here](https://i.stack.imgur.com/rCu7e.png) How to Override progress bar progress message i.e.. 61/100 to a custom message as 10 remaining out of 100
How to Override progress bar progress message i.e.. 61/100 to a custom message as 0 remaining out of 100
CC BY-SA 3.0
0
2011-05-10T08:55:43.280
2011-05-10T09:22:46.737
2017-05-23T12:13:29.403
-1
478,700
[ "android", "progress-bar", "progressdialog" ]
5,948,103
1
null
null
0
1,632
I want to bind DataPager to DataGrid here is xaml ``` <UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="NorthWindSilver.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:NorthWindSilver.ViewModel" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <UserControl.Resources> <mv:ViewModel x:Key="ViewModel"/> </UserControl.Resources> <Grid x:Name="LayoutRoot" Background="White"> <data:DataGrid Name="dgCustomer" AutoGenerateColumns="True" ItemsSource="{Binding Items, Mode=TwoWay, Source={StaticResource ViewModel}}"> </data:DataGrid> <sdk:DataPager HorizontalContentAlignment="Center" x:Name="myPager" Grid.Row="2" Source="{Binding Path=ItemsSource, ElementName=dgCustomer}" PageSize="10"/> </Grid> ``` and ViewModel ``` public class ViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public ObservableCollection<Customer> _items; public ViewModel() { if (!IsDesignTime) this.Customer(); } public void ChangeProperty(string propertyName) { if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } public ObservableCollection<Customer> Items { get { return this._items; } set { this._items = value; ChangeProperty("Items"); } } public bool IsDesignTime { get { return (Application.Current == null) || (Application.Current.GetType() == typeof(Application)); } } public void Customer() { DataServiceClient webService = new DataServiceClient(); webService.GetCustomersCompleted += new EventHandler<GetCustomersCompletedEventArgs>(webService_GetCustomersCompleted); webService.GetCustomersAsync(); } void webService_GetCustomersCompleted(object sender, GetCustomersCompletedEventArgs e) { Items = e.Result; PagedCollectionView pageView = new PagedCollectionView(Items); MainPage ma = new MainPage(); ma.dgCustomer.ItemsSource = pageView; } } ``` [Here is the result](http://img98.imageshack.us/img98/1672/unledko.jpg)![enter image description here](https://i.stack.imgur.com/l3GtL.jpg) As you see DataPager does not work what the problem?
Problem SilverLight 4 DataPager control
CC BY-SA 3.0
null
2011-05-10T09:39:04.200
2011-05-10T13:18:16.540
2011-05-10T09:43:09.523
222,159
746,499
[ "c#", "asp.net", "silverlight", "silverlight-4.0" ]
5,948,475
1
5,950,118
null
3
4,633
Any body please help me how to do remove menu option when right clicking on DevExpress Xtra Grid Control Column header ![enter image description here](https://i.stack.imgur.com/4wrDd.png)
How to remove menu option when right clicking on DevExpress Xtra GridControl Column Header?
CC BY-SA 3.0
null
2011-05-10T10:10:19.480
2014-10-04T14:36:39.740
2014-10-04T14:36:39.740
759,866
558,217
[ "c#", "devexpress", "xtragrid" ]
5,948,499
1
5,948,687
null
2
505
I encounter this exception when I try to updating a record with following statement. ``` UPDATE GroupTable SET groupId=100 WHERE groupId=101 ``` I tested the statement under SQLite Manager of Firefox plug-in, and it works. The error message is as following image. It crashed at the `os_win_c.cs`, the method named `getTempname()`. ![enter image description here](https://i.stack.imgur.com/OHF6h.png)
MethodAccessException when updating a record in sqlite db
CC BY-SA 3.0
null
2011-05-10T10:12:43.630
2013-06-14T04:30:17.473
2013-06-14T04:30:17.473
419,348
419,348
[ "sqlite", "windows-phone-7" ]
5,948,753
1
6,754,392
null
0
1,049
I'm trying to implement the Star Rating Widget with 5 stars split in half, but all I'm getting is 2 and a half stars where there should be 5. ![2 stars and a half](https://i.stack.imgur.com/2nfGi.jpg) I'm following the demo on the official site: [http://orkans-tmp.22web.net/star_rating/index.html#main-menu=2&demo-tabs=4](http://orkans-tmp.22web.net/star_rating/index.html#main-menu=2&demo-tabs=4) As explained there, all I've done is > $(this).stars({ split: 2 }); If I set split: 1 everything works ok. I guess there's a problem with the width, but my css/js skills are really low. I've found a similar question ( [wrong rendering of star rating jquery star rating widget and split stars](https://stackoverflow.com/questions/3459358/wrong-rendering-of-star-rating-jquery-star-rating-widget-and-split-stars) ) but it doesn't help me that much. Thanks! Edit: link to fiddle: [http://jsfiddle.net/Xu9pM/1/](http://jsfiddle.net/Xu9pM/1/) It doesn't load the star, I hope it serves you anyway Edit: update with a general view of the output along with the HTML and CSS ![enter image description here](https://i.stack.imgur.com/I0GWo.jpg)
Star Rating Widget problem with split stars
CC BY-SA 3.0
null
2011-05-10T10:37:41.783
2011-07-20T02:52:29.293
2017-05-23T12:19:48.617
-1
218,473
[ "jquery", "css" ]
5,948,780
1
5,954,326
null
3
7,878
I am having a problem with scrolling for my WPF application. Here is the deal. My UI is the following: ![ScrollViewer](https://i.stack.imgur.com/RVy6x.jpg) The role of my application is to act as a central hub for many applications and launch them. An admin can launch a dump recorded by another user. Therefore, I have a `ListView`, showing the application list, which is scrollable if needed. I defined a `GroupStyle` in order to show expanders and emulate a Windows Explorer view. Everything works fine, I just have a problem: when scrolling with the mouse wheel, the component in clear blue ("Launch mode") seems to be catching the focus and stop scrolling. This means especially that if my mouse is anywhere out of this control, the scrolling is okay. But whenever the mouse enters this control, I can't scroll anymore. I tried to modify the property `Focusable` and set it to `False` everywhere I could but nothing changed. I'd guess that it is finally not a focus problem. Anybody has an idea on how to avoid the scrolling to be caught by the element? Here is some (simplified, removed some useless properties so as to make it as clear as possible) XAML for the expander's content: ``` <StackPanel Orientation="Vertical" VerticalAlignment="Top" > <ToggleButton> <!-- ToggleButton Content... --> </ToggleButton> <!-- This is the custom component in which you can see "Launch mode" --> <my:UcReleaseChooser > <!-- Properties there. I tried to set Focusable to False, no impact... --> </my:UcReleaseChooser> </StackPanel> ``` And the code for `UcReleaseChooser`: ``` <StackPanel HorizontalAlignment="Stretch" Focusable="False" ScrollViewer.CanContentScroll="False"> <ListBox ItemsSource="{Binding ListChosenReleases}" BorderBrush="LightGray" Background="AliceBlue" HorizontalAlignment="Stretch" Focusable="False" ScrollViewer.CanContentScroll="False"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical" Focusable="False" ScrollViewer.CanContentScroll="False"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <DockPanel LastChildFill="True" HorizontalAlignment="Stretch" Focusable="False" ScrollViewer.CanContentScroll="False"> <TextBlock DockPanel.Dock="Top" HorizontalAlignment="Left" Text="{Binding Key}" FontStyle="Italic"/> <ListBox DockPanel.Dock="Bottom" HorizontalAlignment="Right" ItemsSource="{Binding Value}" BorderBrush="{x:Null}" Background="AliceBlue" Focusable="False" ScrollViewer.CanContentScroll="False"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <UniformGrid Focusable="False"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> <-- Blah blah about style --> </Style> </ListBox.ItemContainerStyle> <ListBox.ItemTemplate> <DataTemplate> <RadioButton Content="{Binding Key}" Margin="3" IsChecked="{Binding Path=IsSelected, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" Focusable="False" ScrollViewer.CanContentScroll="False"/> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </DockPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </StackPanel> ``` As you can see, the `UcReleaseChooser` contains a list of `RadioButton` lists. I tried to set `Focusable` & `CanContentScroll` to `False` everywhere it seemed appropriate, but the control keeps preventing the main UI to scroll... I guess I should change another property... Any idea? Thanks!
WPF Scroll & focus changing problem
CC BY-SA 3.0
0
2011-05-10T10:40:19.757
2014-10-22T08:38:18.257
null
null
664,237
[ "wpf", "wpf-controls", "scroll", "focus" ]
5,948,866
1
null
null
5
11,679
Here's a default jqPlot axis with ticks: ![with ticks](https://i.stack.imgur.com/CNwPq.png) Setting "showTicks: false" on the x-axis removes everything: ![without ticks](https://i.stack.imgur.com/nD3dO.png) I want to display the numbers and hide the ticks - the little dashes between the numbers and the thick axis line. Is this possible?
jqPlot: hide axis ticks?
CC BY-SA 3.0
null
2011-05-10T10:48:39.257
2018-02-23T22:24:50.670
2016-02-13T15:42:40.127
1,946,501
160,406
[ "javascript", "jquery", "jqplot" ]
5,949,214
1
5,967,106
null
6
11,576
I understand I can get/set parameters on a rendering (specifically sublayout) when it is added to the presentation details of an item, just as described here ([Sitecore 6 - using parameters](http://vapok.blogspot.com/2008/12/sitecore-6-using-parameters-in-web.html)). ![layout instance parameters](https://i.stack.imgur.com/yrOHm.png) However I would like to use the parameters field from the layout definition item. In the codebehind of the file belonging to to layout definition I can cast the parent to a sublayout and that object also has a `.Parameters` property, however this doesn't contain the values I'd expect. ![layout definition parameters](https://i.stack.imgur.com/gMSuM.png) This is the `Page_Load` method in the control code-behind: ``` protected void Page_Load(object sender, EventArgs e) { var sublayout = ((Sublayout)this.Parent); string rawParameters = Attributes["sc_parameters"]; NameValueCollection parameters = Sitecore.Web.WebUtil.ParseUrlParameters(rawParameters); //parameters contains values from "Additional parameters (first screenshot) //I do not know the sublayout item id or sublayout path, so how do I get //the values from the second screenshot? } ``` # Doublecheck still doesn't work, only additional parameters are shown: ![Step 1 - Enter parameters](https://i.stack.imgur.com/Xqasn.png) ![Step 2 - Add sublayout + parameters to presentation](https://i.stack.imgur.com/Pw7Nf.png) ![Step 3 - Display parameters on sublayout](https://i.stack.imgur.com/sGDRW.png) ![Step 4 - Validate result](https://i.stack.imgur.com/cCjBR.png)
Sitecore: How to use sublayout parameters from codebehind?
CC BY-SA 3.0
0
2011-05-10T11:20:53.353
2018-03-05T14:59:35.537
2011-05-11T11:46:04.900
611,379
611,379
[ "layout", "parameters", "sitecore", "sitecore6" ]
5,949,446
1
5,953,395
null
1
1,060
I want to insert a .jpg image into SQL server using simple INSERT query. I tried the following query in which was posted as an answer to the following question [Insert Picture into SQL Server 2005 Image Field using only SQL](https://stackoverflow.com/questions/416881/insert-picture-into-sql-server-2005-image-field-using-only-sql) In my case I modified the query as follows ``` INSERT INTO iffcar (name, address, idno, barcode, Photo) SELECT 'ishan', 'hohn', 100, 'barcodedmessage', BulkColumn FROM OPENROWSET(BULK 'c:\use.jpg', Single_Blob) AS iffcarPicture ``` now I am getting the error as ![enter image description here](https://i.stack.imgur.com/kXsLM.jpg) My table structure is as follows ![enter image description here](https://i.stack.imgur.com/o6Z5A.jpg) Please help me to resolve the error.
Insert an image in SQL Server 2000 without a frontend?
CC BY-SA 3.0
null
2011-05-10T11:40:31.650
2011-05-10T16:39:19.740
2017-05-23T12:19:48.617
-1
243,680
[ "sql", "image", "insert", "sql-server-2000" ]
5,949,743
1
null
null
1
1,491
One of the DAO classes I implemented in a Java EE web project is under ``` @Repository("ClientsimpleDAO") public class ClientsimpleDAOImp implements ClientsimpleDAO { private static final Log log = LogFactory.getLog(ClientsimpleDAOImp.class); @PersistenceContext EntityManager em; @Override public void delete(Clientsimple clientsimple) { // TODO Auto-generated method stub log.debug("removing clientsimple"); try{ em.remove(clientsimple); log.debug("clientsimple removed"); } catch(RuntimeException re){ log.error("clientsimple remove failure"+re); } } @SuppressWarnings("unchecked") @Override public List<Clientsimple> findByEntreprise(String entreprise) { // TODO Auto-generated method stub log.debug("list Cli By entreprise"); try{ Query q =em.createQuery("SELECT cli from Clientsimple cli where cli.entreprise= :entreprise"); q.setParameter(entreprise,entreprise); List<Clientsimple> cli= (List<Clientsimple>) q.getSingleResult(); return cli; }catch(RuntimeException re){ log.error(re); return null; } } @SuppressWarnings("unchecked") @Override public List<Clientsimple> findByNom(String nom) { // TODO Auto-generated method stub log.debug("list Cli By nom"); try{ Query q =em.createQuery("SELECT cli from Clientsimple cli where cli.nom= :nom"); q.setParameter(nom,nom); List<Clientsimple> cli= (List<Clientsimple>) q.getSingleResult(); return cli; }catch(RuntimeException re){ log.error(re); return null; } } @SuppressWarnings("unchecked") @Override public List<Clientsimple> findByPrenom(String prenom) { // TODO Auto-generated method stub log.debug("list Cli By prenom"); try{ Query q =em.createQuery("SELECT cli from Clientsimple cli where cli.prenom= :prenom"); q.setParameter(prenom,prenom); List<Clientsimple> cli= (List<Clientsimple>) q.getSingleResult(); return cli; }catch(RuntimeException re){ log.error(re); return null; } } @SuppressWarnings("unchecked") @Override public List<Clientsimple> findByRegion(String region) { // TODO Auto-generated method stub log.debug("list Cli By region"); try{ Query q =em.createQuery("SELECT cli from Clientsimple cli where cli.regioncli= :region"); q.setParameter(region,region); List<Clientsimple> cli= (List<Clientsimple>) q.getSingleResult(); return cli; }catch(RuntimeException re){ log.error(re); return null; } } @SuppressWarnings("unchecked") @Override public List<Clientsimple> getALL() { // TODO Auto-generated method stub log.debug("list ALL Cli"); try{ Query q =em.createQuery("SELECT cli from Clientsimple cli"); List<Clientsimple> cli= (List<Clientsimple>) q.getSingleResult(); return cli; }catch(RuntimeException re){ log.error(re); return null; } } @Override public void save(Clientsimple clientsimple) { // TODO Auto-generated method stub log.debug("save clientsimple"); try{ em.persist(clientsimple); log.debug("clientsimple saved"); } catch(RuntimeException re){ log.error("clientsimple saving failure"+re); } } @Override public void update(Clientsimple clientsimple) { // TODO Auto-generated method stub log.debug("update clientsimple"); try{ em.merge(clientsimple); log.debug("clientsimple merged"); } catch(RuntimeException re){ log.error("clientsimple merging failure"+re); } } } ``` so, i don't know how can i test this dao or other ones? i have created a main class to test it but it gives me an error(see the image under it contains code and the error in the console). ![enter image description here](https://i.stack.imgur.com/WeaFQ.png) the following image show my project hierarchy(technologies used flex, spring, jpa, hibernate);![enter image description here](https://i.stack.imgur.com/8GCpk.png)
Test DAO classes implemented with JPA
CC BY-SA 3.0
0
2011-05-10T12:05:31.477
2013-08-17T15:11:55.573
2013-08-17T15:11:55.573
472,792
604,019
[ "java", "hibernate", "spring", "jpa", "dao" ]
5,949,884
1
5,951,625
null
0
172
I am using ms access 2010. I have a view (C) created by joining two other views (A,B). Column X (`LONGTEXT`) from view A is properly displayed in View A but in View C a strange character appears instead of the value. View C has a GROUP BY clause by Column X Here is a snapshot: ![enter image description here](https://i.stack.imgur.com/zBEK3.jpg) Any ideas what causes this ? Thanks If I remove the `GROUP BY` section everything is ok. I do not understand why this problem appears when using `GROUP BY`.
MS Access "?" character in Datasheet View
CC BY-SA 3.0
null
2011-05-10T12:18:08.653
2015-05-15T19:44:14.620
2015-05-15T19:44:14.620
640,595
481,594
[ "database", "ms-access" ]
5,949,979
1
null
null
1
830
I am trying to figure out how to create an image border around an image as well as adding text to the border (as shown below) from a mySQL database using PHP i have looked around but cant find anything like what i want to do. Thanks in advance [http://tinypic.com/r/10h6s8p/7](http://tinypic.com/r/10h6s8p/7) (pic of what i am trying to do) ![enter image description here](https://i.stack.imgur.com/g7BUe.png)
Image border around image php
CC BY-SA 3.0
null
2011-05-10T12:26:00.297
2011-05-10T12:43:43.317
2011-05-10T12:27:05.623
222,159
595,239
[ "php", "html", "css", "image", "border" ]
5,950,055
1
null
null
0
238
Have empty record in Django Admin Monitor in Tasks section. It appears once per few hours. Everything works good, but looks like sometimes data is missed. Backend is custom for Amazon SQS. I am almost sure that problem is here, but I can't reproduce this. Maybe some one have proposition what can cause such behavior or how can I get more information? Now have CELERY_IGNORE_RESULT = True, can turning this on give more information? ![enter image description here](https://i.stack.imgur.com/FPpuG.png) ![enter image description here](https://i.stack.imgur.com/RdLyH.png)
Empty STARTED task in Django Admin Monitor
CC BY-SA 3.0
null
2011-05-10T12:32:03.720
2011-06-02T07:56:30.353
null
null
540,212
[ "python", "celery" ]
5,950,186
1
null
null
0
1,976
Is there any example of `xml` for the activity which consists of four buttons (two in a row) and a text under them? Somethings like this, but less buttons. ![enter image description here](https://i.stack.imgur.com/Rorr3.png)
Example of layouts for 4 buttons and text under them
CC BY-SA 3.0
null
2011-05-10T12:43:07.530
2011-05-10T13:09:58.977
2011-05-10T13:09:58.977
209,574
397,991
[ "android", "android-layout" ]
5,950,792
1
9,373,681
null
6
9,158
I'm having a strange problem in Visual Studio. Today it's decided to add green wiggly underlines to my code in the aspx files: ![enter image description here](https://i.stack.imgur.com/HotFt.jpg) I've tried to remove some of the code I've written today in the hope of finding what is tripping up the IDE but I can't work it out. Everything compiles and runs fine. When I hover my mouse over any of the underlines I get the following message "This name contains uppercase characters, which is not allowed". I've got this on all of my content pages. Has anyone seen this before or can suggest how to work out what might be wrong?
Visual Studio Green Warning Underlines
CC BY-SA 3.0
null
2011-05-10T13:27:19.007
2012-02-21T07:23:37.357
2012-02-21T07:23:12.147
642,774
642,774
[ "c#", "visual-studio-2010" ]
5,951,196
1
5,954,705
null
8
2,422
What are my options to recreate the box at the top of iTunes in Cocoa, or like Apple uses in XCode 4? ![itunes](https://i.stack.imgur.com/olhdX.png) Is this just a plain image, with control on top? Or is it an `NSBox` with some custom style magic?
iTunes or Xcode style information box at top of window
CC BY-SA 3.0
0
2011-05-10T13:57:48.570
2012-02-20T18:53:41.873
2012-02-20T18:53:41.873
603,977
5,798
[ "cocoa", "user-interface", "graphics" ]
5,951,429
1
5,951,595
null
0
1,030
Yet another fb login question: By the time my user has something to share, they've already logged into my app server. I give them the option to use their FB creds for my app. So if they share, I want to pre-populate the FB login page with the creds they've already supplied to me. Does anyone know if this is possible, and if so, how to do it? Here's what I'm talking about: ![enter image description here](https://i.stack.imgur.com/PQxOL.png)
YAFBLQ: How to pre-populate FB login and password fields?
CC BY-SA 3.0
null
2011-05-10T14:14:44.497
2019-08-04T10:48:27.737
null
null
165,050
[ "iphone", "facebook" ]
5,951,696
1
5,953,300
null
4
3,242
I have a website that looks like ![this](https://i.stack.imgur.com/RPF9D.png) where "Begin Date" and "End Date" are [datepicker](http://jqueryui.com/demos/datepicker/). When generating the webpage I can fill in values in those fields, but adding datepicker to them as well, clears the values. I initialize datepicker like so ``` $(function() { var dates = $("#from, #to").datepicker({ defaultDate: "+1w", changeMonth: true, numberOfMonths: 3, onSelect: function(selectedDate) { var option = this.id == "from" ? "minDate" : "maxDate", instance = $(this).data("datepicker"), date = $.datepicker.parseDate( instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings); dates.not(this).datepicker("option", option, date); } }); $("#from, #to").datepicker("option", "dateFormat", "dd/mm-yy"); }); ``` and the HTML looks like ``` <input class="new" type="text" id="from" name="from"/> ``` How do I get datepicker to not clear the form field values when the webpage is loaded?
How to not get datepicker to clear text field values?
CC BY-SA 3.0
null
2011-05-10T14:33:53.073
2011-05-10T16:32:19.590
null
null
256,439
[ "javascript", "jquery", "datepicker" ]
5,951,754
1
5,951,864
null
2
256
Hey, I've been trying to fix this problem for a long time, The problem is that some characters in the text are out of the screen, here is a screenshot of what I mean: ![enter image description here](https://i.stack.imgur.com/DUWU1.png) xml: ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@drawable/list" android:orientation="vertical" android:padding="15dip" android:layout_width="fill_parent" android:id="@+id/relativeLayout1" android:layout_height="fill_parent"> <TextView android:textSize="20sp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000" android:id="@+id/Munawwat_Text_TextView_text" android:layout_alignParentRight="true" /> </RelativeLayout> ``` Can anyone suggest a way/workaround to fix this problem? A workaround for this is to put it into an EditText. If I put the text into the EditText, the EditText gets horizontally scrollable (scrollable for ~3px) which is good so you can see the characters that are out of the screen but i dont want to let the users mess with the text.. So: 1. Is it possible to not allow the users to edit in the EditText and in the same time let the EditText get scrollable? 2. Is there any other view that i can put the TextView into it, so it can get scrollable a bit so I can see the characters? (limit the scroll of the view) 3. Is there a way to limit the number of characters in each line in the TextView? I know I asked a lot though this is one of the last problem I have so I would really appreciate any comment/suggestion! Thanks.
Characters appear out of the screen in the TextView!
CC BY-SA 3.0
null
2011-05-10T14:36:59.830
2011-05-10T15:38:37.990
2011-05-10T14:41:05.737
592,182
668,082
[ "android", "textview", "android-edittext", "android-relativelayout" ]
5,952,421
1
null
null
0
2,589
I'm writing the windows form program to monitor our in-house windows services. The screenshot is provided for the draft version of that program. ![enter image description here](https://i.stack.imgur.com/kD05k.jpg) What I want to do is... I want to pass UserName & Password to run the services from my program. I don't know which class or components to use. I tried to use the following codes, as we used in Installing the services. However, it does not still work. Perhaps, I don't know how to bind the user credential with service controller. ``` ServiceProcessInstaller serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller(); serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.User; serviceProcessInstaller1.Password = txtPassword.Text; serviceProcessInstaller1.Username = txtUserName.Text; ``` So, Please advise me how could I achieve my requirements? Thanks.
Run the Windows Service with User Name & Password
CC BY-SA 3.0
null
2011-05-10T15:20:46.703
2011-05-10T15:32:12.357
null
null
296,074
[ "c#", "windows-services" ]
5,952,691
1
5,953,523
null
26
8,858
I am interested on how tweetbot does the following: ![Enter image description here](https://i.stack.imgur.com/uMA97.jpg) I would like to create the same thing with my app, where if you click on a row, it pops an additional UIToolBar and pressing on any other row will dismiss this view with animations. The logic I think is simple, you just need to add a subView to the UITableViewCell when pressed and shift the rest of the content up, but how do you actually dismiss it when I press the other row?
How to create a toolbar between UITableView rows
CC BY-SA 3.0
0
2011-05-10T15:40:32.490
2013-03-06T18:54:26.603
2013-03-06T18:26:39.427
63,550
95,265
[ "iphone", "objective-c", "user-interface", "uitableview" ]
5,952,989
1
5,974,945
null
2
2,461
I've successfully set up Sonar against a large Java project that is built using Ant. I've finally hooked up the JUnit test results and the Cobertura code coverage report. I now see all the packages in the design view but there are no values for dependencies between any of the packages or classes (see example below). ![No dependencies](https://i.stack.imgur.com/xJlNf.png) Does anyone have any idea what I have missed here? Looking at the output of the Sonar Ant task I also notice that the package design task is completing very quickly for what is a fairly large and complicated project. From the Ant output: ``` [sonar:sonar] [INFO] Package design analysis... [sonar:sonar] [INFO] Package design analysis done: 66 ms ``` The Ant task is as follows: ``` <target name="sonar" depends="collate-xml-reports"> <sonar:sonar workDir="src/build/sonarTemp" key="myProjectKeyWhichHasBeenChangedToHideMyClient" version="1.0" xmlns:sonar="antlib:org.sonar.ant"> <!-- source directories (required) --> <sources> <path location="src/common/src" /> <path location="src/commonWidgets/src" /> <path location="src/compositionWidget/src" /> <path location="src/nativeLib/src" /> <path location="src/services/src" /> </sources> <!-- list of properties (optional) --> <property key="sonar.projectName" value="RPS Nightly" /> <property key="sonar.dynamicAnalysis" value="reuseReports" /> <property key="sonar.surefire.reportsPath" value="src/reports/junit" /> <property key="sonar.cobertura.reportPath" value="src/reports/cobertura/coverage.xml" /> <!-- test source directories (optional) --> <tests> <path location="src/common/test" /> <path location="src/commonWidgets/test" /> <path location="src/compositionWidget/test" /> <path location="src/services/test" /> </tests> <!-- binaries directories, which contain for example the compiled Java bytecode (optional) --> <binaries> <path location="src/common/build" /> <path location="src/commonWidgets/build" /> <path location="src/compositionWidget/build" /> <path location="src/services/build" /> </binaries> <!-- path to libraries (optional). These libraries are for example used by the Java Findbugs plugin --> <libraries> <path location="src/common/lib/**/" /> <path location="src/commonWidgets/lib/**/" /> <path location="src/compositionWidget/lib/**/" /> <path location="src/services/lib/" /> </libraries> </sonar:sonar> </target> ```
Why is Sonar design view not showing any dependencies for my project?
CC BY-SA 3.0
null
2011-05-10T16:05:31.767
2011-05-12T07:50:23.880
2011-05-11T13:29:25.713
137,969
137,969
[ "java", "dependencies", "sonarqube" ]
5,953,142
1
null
null
2
4,792
I have an xsl stylesheet giving just about what is needed, except there are values outputted outside the tags, . Is there a way to remove them? The scenario is that the desired output is a total invoice amount for invoices that appear more than once. Each time the xslt is executed the parameter p1 contains the InvoiceNumber to total. The code below shows that parameter, p1, hardcoded to '351510'. ``` <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="/Invoices/Invoice[InvoiceNumber=351510][1]/InvoiceNumber"> <xsl:copy> <xsl:apply-templates select="/Invoices/Invoice[InvoiceNumber=351510][1]/InvoiceAmount"/> </xsl:copy> </xsl:template> <xsl:param name="tempvar"/> <xsl:template name="InvTotal" match="/Invoices/Invoice[InvoiceNumber=351510][1]/InvoiceNumber"> <xsl:variable name="p1" select="351510" /> <xsl:if test="/Invoices/Invoice/InvoiceNumber[. = $p1]"> <!--<xsl:if test="$test = $p1" >--> <InvoiceAmount> <xsl:value-of select="sum(../../Invoice[InvoiceNumber=351510]/InvoiceAmount)"/> </InvoiceAmount> </xsl:if> </xsl:template> </xsl:stylesheet> ``` Here is the input: ``` <Invoices> - <Invoice> <InvoiceNumber>351510</InvoiceNumber> <InvoiceAmount>137.00</InvoiceAmount> </Invoice> - <Invoice> <InvoiceNumber>351510</InvoiceNumber> <InvoiceAmount>363.00</InvoiceAmount> </Invoice> - <Invoice> <InvoiceNumber>351511</InvoiceNumber> <InvoiceAmount>239.50</InvoiceAmount> </Invoice> </Invoices> ``` Here is the output: ``` <InvoiceAmount>500</InvoiceAmount>137.00351510363.00351511239.50 ``` Here is desired output: ``` <InvoiceAmount>500</InvoiceAmount> ``` Also, thank you goes to lwburk who got me this far. ![Problem is that the select statement xpath is not picking out the 'CarrierInvoiceAmount'. This might work though if I can get the path correct.](https://i.stack.imgur.com/07Llp.jpg)
XSLT how to remove unwanted output
CC BY-SA 3.0
null
2011-05-10T16:18:07.837
2011-05-11T03:25:11.953
2011-05-10T20:40:29.630
745,798
745,798
[ "xslt" ]
5,953,263
1
5,953,378
null
5
43,633
I've got a list here for my page's footer, that I want displayed horizontally. But because I've turned it into an inline list to go horizontally, the background images get cut off vertically. The biggest one is 27px high. So I'm stuck.. I know why the following is doing what it's doing. But how do I get around it? Here's the html: ``` <div id="footer"> <ul> <li id="footer-tmdb"><a href="">Film data courtesy of TMDB</a></li> <li id="footer-email"><a href="">Contact Us</a></li> <li id="footer-twitter"><a href="">Follow Us</a></li> </ul> </div> ``` and the CSS: ``` #footer ul { height: 27px; } #footer ul li { display: inline; list-style: none; margin-right: 20px; } #footer-tmdb { background: url('../images/logo-tmdb.png') no-repeat 0 0; padding-left: 140px; } #footer-email { background: url('../images/icon-email.png') no-repeat 0 3px; padding-left: 40px; } #footer-twitter { background: url('../images/icon-twitter.png') no-repeat 0 0; padding-left: 49px; } ``` Here's what it looks like: ![footer](https://i.stack.imgur.com/uXVVH.jpg) As you can see, half of the images are cut off. The simpler the solution, the better, please.
Setting a height in CSS for an unordered list?
CC BY-SA 3.0
null
2011-05-10T16:29:26.047
2011-05-10T16:37:46.887
2011-05-10T16:34:31.320
311,941
2,089,192
[ "css" ]
5,953,982
1
5,954,056
null
2
389
If I don't know what is the depth of a jTree what logic I can employ to construct the JTree. I have a category table in my database with parent category and child within child and so on. I want to construct the JTree with that data. Can you give me some ideas of how to do this? Following is my database structure. ![enter image description here](https://i.stack.imgur.com/Ezam9.jpg)
Constructing a JTree with infinite depth
CC BY-SA 3.0
null
2011-05-10T17:31:05.047
2011-05-10T19:19:42.090
2011-05-10T17:47:12.360
513,838
402,610
[ "java", "swing", "data-structures", "jtree" ]
5,954,159
1
6,019,217
null
7
2,808
I've managed to change the navBar tint, the background color and labels' color using [this](https://stackoverflow.com/questions/438381/customizing-the-more-menu-on-a-tab-bar). (those left to tableview's labels) Thanks! ![My half-done work](https://i.stack.imgur.com/A7q3c.png)
Change the color of moreNavigationController's icons
CC BY-SA 3.0
0
2011-05-10T17:47:04.310
2015-12-03T01:18:09.180
2017-05-23T12:02:13.080
-1
396,133
[ "iphone", "uitabbarcontroller" ]
5,954,322
1
6,105,623
null
1
260
Kotaku has launched a new design without hashbangs. Their site still clearly uses ajax requests, but somehow it is still found through Google . How do they do it? Their text seems to be contained inside a script type=text/javascript, but I don't understand what effect that has, or why they would do that. (of course, the first page request may just trigger a static, serverside constructed response. But check other articles, it does load json through an ajax request. No page refresh) Have a look at this site for example: [http://kotaku.com/5800326/read-some-of-new-tomb-raider-game-right-now](http://kotaku.com/5800326/read-some-of-new-tomb-raider-game-right-now) No hashes, a very well formed URL and it appears in Google. I have read the Google Ajax guide, and as far as I understand it, Google only requests an html snapshot iff you use #! inside your url. For your convenience, I have made a screenshot that shows how the text looks inside the Chrome debugger: (what does "ganjaAjaxContent" mean?) ![enter image description here](https://i.stack.imgur.com/4rB0f.png) If you search for this article, it is the first match in Google: [Google search for Kotaku article](http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=kotaku+read+some+of+the+new+tomb+raider+game+right+now) Being able to do ajax without having to worry about Google search would be excellent.
Ajax magic: How is Kotaku achieving Ajax *and* Google accessability?
CC BY-SA 3.0
null
2011-05-10T18:00:01.810
2011-05-24T04:16:00.700
null
null
335,355
[ "ajax", "seo" ]
5,955,107
1
5,957,752
null
3
7,682
What kind of approch could be an easy way to find the given words on a puzzle like this? I'm using Java. Thanks for help. ![enter image description here](https://i.stack.imgur.com/dwlJg.jpg)
Finding a word on a two dimensional char array
CC BY-SA 3.0
0
2011-05-10T19:06:05.887
2011-05-11T18:07:42.407
2011-05-10T19:11:06.043
50,476
747,441
[ "java", "algorithm", "string" ]
5,955,264
1
null
null
2
670
I'm trying to upload my first app to App Store. I'm following the instructions in the . The problem is that all the instructions and screen shots are still relevant to XCode previous version... I'm stuck in tab in the section called in instruction #4 (see screen shot attached). ![Building your Application with XCode for Distribution - #4](https://i.stack.imgur.com/DaJER.png) It says "". Where do I find this field in ?
Uploading App - Where is the Configuration Field in XCode 4?
CC BY-SA 3.0
null
2011-05-10T19:18:42.770
2011-05-11T11:48:14.490
null
null
1,143,060
[ "iphone", "configuration", "distribution", "provisioning", "uploading" ]
5,955,331
1
7,332,450
null
0
764
I am using [print module](http://drupal.org/project/print) for generating pdf on my websites. Most of the part seems to work fine except when i try to use an image in my node.tpl.php file. Even though the node page seems to show the image the print pdf page gives an error. And this only happens when there is an image in node.tpl file. TCPDF ERROR : Can't open image file : /.../print/tcpdf/cache/...![enter image description here](https://i.stack.imgur.com/V5DXX.png) please help
TCPDF error with Drupal-6 print module
CC BY-SA 3.0
null
2011-05-10T19:23:37.153
2012-03-22T08:42:27.750
null
null
455,257
[ "image", "drupal-6", "tcpdf", "print-module" ]
5,955,365
1
5,955,701
null
114
66,257
What is the difference between "Flush Magento Cache" and "Flush Cache Storage" in magento's cache management? ![enter image description here](https://i.stack.imgur.com/UHmHJ.png)
What is the difference between "Flush Magento Cache" and "Flush Cache Storage" in magento's cache management?
CC BY-SA 3.0
0
2011-05-10T19:26:38.620
2021-11-01T09:35:22.330
2013-03-08T22:32:00.107
361,689
361,689
[ "magento" ]
5,955,601
1
5,955,727
null
0
735
I am trying to create a photo viewer in Ruby on Rails using [jquery-lightbox](https://github.com/krewenki/jquery-lightbox). You can see the design of it in the image below. You click on the smaller images to have the selected image appear in the large space above. If you click the large image, you can view a lightbox slideshow of all the images at their originally uploaded resolution. I have all of this working so far, but . I've tried calling the changeImage function (returns TypeError) and changing the activeImage property (does nothing). How can this be done? Here is the code I'm using, which is currently all in my show.html.erb: ``` <a href="<%= @actor.avatar.url(:large) %>" onclick="javascript:setActiveImage();" class="lightbox" title="<%= @actor.name %>" rel="actor"><%= image_tag @actor.avatar.url(:slide), :id => "actor_headshot", :alt => @actor.name %></a> <% @actor.photos.each do |photo| %> <a href="<%= photo.photo.url(:large) %>" class="lightbox" rel="actor"></a> <% end %> <div id="actor_photos"> <div id="actor_photo_list"> <% @photos.each_with_index.map do |photo, index| %> <a href="#" onclick="javascript:swapHeadshot('<%= photo.url(:slide) %>', <%= index %>);"><%= image_tag photo.url(:thumb), :class => "actor_photo_list_item" %></a> <% end %> </div> </div> <script language="JavaScript"> $('.lightbox').lightbox(); var _am = 0; function swapHeadshot(source, index) { $('#actor_headshot').attr('src', source); _am = index; } function setActiveImage() { $('.lightbox').lightbox.activeImage = _am; // has no effect //$('.lightbox').lightbox({activeImage:_am}); // has no effect //$('.lightbox').lightbox.changeImage(_am); // returns TypeError } </script> ``` ![Photo viewer](https://i.stack.imgur.com/LDTFH.jpg)
How do I manually set the active image for jquery-lightbox?
CC BY-SA 3.0
null
2011-05-10T19:47:01.417
2011-05-10T20:04:08.557
2011-05-10T20:04:04.363
2,715
2,715
[ "jquery", "ruby-on-rails-3", "lightbox" ]
5,955,715
1
5,956,863
null
6
8,704
I have an `ASPxGridview` like this: ![enter image description here](https://i.stack.imgur.com/9NZBa.png) Is there any way calculate Total of `GroupSummary` to `TotalSummary` . ``` GroupSummary's SummeryType="AVERAGE" ``` For Example: ``` MUS_K_ISIM GroupSummary[RISK_EUR] 2M LOJİSTİK 123.456 ABA LOJİSTIK 234.567 ``` Then I want `TotalSummary` of `RISK_EUR` column is 123.456 + 234.567 = `358023`. : I only want this calculation with normal Gridview. Not doing with Grouping. Another example: ``` Customer_No Customer_Name Price 123 aaa 50 123 aaa 100 123 aaa 60 124 bbb 60 125 ccc 20 125 ccc 40 ``` I want with that grid: ``` What is avarage of 123 number customer = 50 + 100 + 60 = 210/3= 70 What is avarage of 124 number customer = 60/1=60 What is avarage of 125 number customer = 20 + 40 = 60/2= 30 ``` And then TotalSummary of Price is = 70 + 60 + 30 = 160 How can I do that? Or what is this code about? Which function should I use?
TotalSummary of GroupSummaries in Devexpress
CC BY-SA 3.0
null
2011-05-10T19:57:18.680
2013-01-04T14:37:30.480
2013-01-04T14:37:30.480
29,995
447,156
[ "c#", ".net", "asp.net", "devexpress", "aspxgridview" ]
5,955,960
1
5,955,977
null
1
6,436
how to draw next image with labels in rectangles? thanks for help: ![enter image description here](https://i.stack.imgur.com/o3Kiq.png)
how to draw in asp.net(c#)?
CC BY-SA 3.0
0
2011-05-10T20:19:41.710
2011-05-10T20:29:08.287
null
null
648,137
[ "asp.net", "system.drawing", "system.drawing.imaging" ]
5,956,157
1
5,957,646
null
3
5,199
I want to make a primitive movie player in Labview. I want the user to be able to load in a movie and have a slider to select frames. As such, I want the range of the slider to go from zero to N where N is the number of frames in the movie. How do I set the scale of the slider programmatically? I don't see any inputs to the slider, only one output. Here is an example of a "Horizontal Pointer Slide" bar taken from the NI Website. The slide bar is in the upper right hand corner of the image. ![enter image description here](https://i.stack.imgur.com/I29va.jpg)
Dynamically set maximum scale of horizontal pointer slide in labview?
CC BY-SA 3.0
null
2011-05-10T20:36:54.650
2011-05-14T12:32:20.807
2011-05-14T12:32:20.807
200,688
200,688
[ "labview" ]
5,956,661
1
5,956,690
null
17
37,722
So I have this file that has an exclamation mark over it, so I guess there must be something wrong. At first I tried to commit it, but Subversion is telling me there's nothing to commit, so I guess that isn't a problem. Maybe it has something to do with some modification in other branch of this same file? Isn't there a command over the file I can run that tells me what might be wrong with it? I've run "svn info " but that doesn't seem to contain any relevant info to solve this issue. Here is a screen shot of the file: ![enter image description here](https://i.stack.imgur.com/yRpca.png)
TortoiseSVN has an exclamation mark(!) on a file committed under Subversion. I don't know what might be wrong with it. How to check it?
CC BY-SA 3.0
0
2011-05-10T21:24:30.500
2017-12-23T07:49:31.087
2017-04-30T09:09:51.727
1,033,581
130,758
[ "svn", "version-control" ]
5,956,707
1
5,956,741
null
0
1,591
Does anyone know why my 'container' `div` isn't showing the white bg-color from it's parent `div`s? I'm getting the black (Lime in my example for better description) bg-color from the CSS body setting. Please excuse the sloppy styling. I did my best to reduce the code and show relative stuff. BTW, I've tried making the 'container' div and it's child divs' style bg-color white; and it still doesn't work. When I give the highest div a large `height` attribute (say 1000px), it shows white to that point, but I thought I didn't have to do that. It should be dynamic: as the controls within the div expand, the divs height should expand as well. I have many pages like that, but don't have this problem.. this is the only pg where I attempt column divs. And it happens right when my 'container' div for the columns start (see pic). and yea, this happens in FF and chrome. it works fine in IE ``` <head runat="server"> <title>Loaner Transfer</title> <link rel="stylesheet" type="text/css" href="../styles/BodyLayout.css" /> <link rel="stylesheet" type="text/css" href="../styles/columns.css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <script language="javascript" type="text/javascript"> .... </script> </head> <body> <center> <div style="text-align:left; width:1160px; background-color:White; border-bottom-width:25px;"> <div id="divBody"> <form id="form1" runat="server"> <ajx:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </ajx:ToolkitScriptManager> <img src="../images/_Logo.gif" alt="Logo" /><br /> <UI:Header ID="UIHeader" runat="server" /> <UI:Menu ID="UIMenu" runat="server" /> <center> <h1>Transfer Loaned Items</h1> <asp:Label ID="lblStatus" runat="server" ForeColor="red"></asp:Label> <br /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="ISO" /> <asp:ValidationSummary ID="ValidationSummary3" runat="server" ValidationGroup="add" /> <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="header" /> </center> <br /> <div id="container" style="width:1140px;"> <div id="col1" style="width:400px;"> <h2 style="text-decoration:underline; text-align:center;">Search and select items to transfer</h2> <div style="margin-left:25px;"> <asp:Label ID="Label1" runat="server" Font-Bold="true" Text="Pull ISO"></asp:Label> <asp:CustomValidator ID="CVSearch" runat="server" ErrorMessage="Invalid ISO entry." ControlToValidate="txtSearchISO" ValidationGroup="ISO" ValidateEmptyText="true" ClientValidationFunction="CheckMyText">*</asp:CustomValidator> <asp:TextBox ID="txtSearchISO" runat="server" Width="50px"></asp:TextBox> <asp:Button ID="btnSearchISO" runat="server" Text="Go!" ValidationGroup="ISO" OnClick="btnSearchISO_Click" /> <asp:Label ID="lblHidISO" runat="server" Text="-1" Visible="false"></asp:Label> <br /> <br /> <table> ..... </table> <br /> <center> <asp:DataGrid.............................</asp:DataGrid> </center> </div> <div id="col2outer" style="width:710px;"> <center> <!--tables, controls, etc--> </center> </center> </div> </div> </form> </div> </div> </center> </body> ``` Here is my CSS: ``` body { background-color:Black; } body.comp { background-color:#F5FCFF; } #divBody { margin-left:25px; } #divTrans { margin:15px; } #container #col1 { float: left; } #container #col2outer { float: right; } #container #footer { text-align:center; float: left; width: 870px; } ``` Here is a ss: ![enter image description here](https://i.stack.imgur.com/RqSi2.jpg)
Background-color style in FF/chrome
CC BY-SA 3.0
null
2011-05-10T21:30:43.417
2011-11-10T06:46:14.750
2011-11-10T06:46:14.750
550,309
550,309
[ "asp.net", "html", "coding-style" ]
5,956,752
1
5,957,074
null
0
1,710
I'm using three images side-by-side, and adding a Url.Action to each one of them. The code works fine, but the images are being displayed w/ some sort of line between them. Here is my code: ``` <a href="@Url.Action("Subcribe", new { id = item.ID })"> <img src="images\subscribe.png" style="border:0" alt="Subscribe" /> </a> <a href="@Url.Action("Edit", new { id = item.ID })"> <img src="images\edit.png" style="border:0" alt="Edit" /> </a> <a href="@Url.Action("Delete", new { id = item.ID })"> <img src="images\delete.png" style="border:0" alt="Delete" /> </a> ``` Edit - This is also happening when I tried an alternate, non-Url.Action method: ``` <a href="Subcribe\@item.ID"> <img src="images\subscribe.png" style="border:0" alt="Subscribe" /> </a> ``` Here is how the images are displaying: ![snapshot](https://i.stack.imgur.com/LWKsp.jpg)
Unnecessary lines appearing between image-links
CC BY-SA 3.0
null
2011-05-10T21:34:33.497
2012-06-17T11:54:19.557
2012-06-17T11:54:19.557
727,208
590,719
[ "html", "asp.net-mvc", "hyperlink", "image" ]
5,956,774
1
5,956,886
null
2
1,547
I am trying to fetch data from the following database data: ![enter image description here](https://i.stack.imgur.com/8bmOS.png) And display the data with this CSS & HTML code: ``` <div class="event"> <img src="http://dummyimage.com/80x70/f00/fff.png" alt="picture" /> <p>Room 2</p> <p class="patient-name">Jon Harris</p> <p class="event-text">This is a pixel. A flying pixel!</p> <p class="event-timestamp">feb 2 2011 - 23:01</p> </div> .event { display:block; background: #ececec; width:380px; padding:10px; margin:10px; overflow:hidden; text-align: left; } .event img { display:block; float:left; margin-right:10px; } .event p { font-weight: bold; } .event img + p { display:inline; } .patient-name { display:inline; color: #999999; font-size: 9px; line-height:inherit; padding-left: 5px; } .event-text{ color: #999999; font-size: 12px; padding-left: 5px; } .event-timestamp{ color: #000; padding-left: 5px; font-size: 9px; } ``` Here is my PHP code: ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DASHBOARD - Arduino 3</title> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <?php $con = mysql_connect("localhost","*****","***"); if(!con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("arduino_db",$con); $result = mysql_query("SELECT * FROM events"); //Start container echo " <div id='background_container'> "; while($row = mysql_fetch_array($result)) { echo "<div class='event'>"; echo "<img src='img/ev_img/red.jpg' alt='picture' />"; echo "<p>" . $row['inneboende'] . "</p>"; echo "<p class='patient-name'>" . "$row['overvakare']" . "</p>"; echo "<p class='event-text'>" . "$row['handelse']" . "</p>"; echo "<p class='event-timestamp'>" . "$row['tid']" . "</p>"; echo "</div>"; } //end container echo "</div>" mysql_close($con); ?> </body> </html> ``` All I get is a blank page, and I cant understand why.
can´t fetch data from db and print it within css and html
CC BY-SA 3.0
null
2011-05-10T21:36:26.277
2011-05-10T21:53:50.613
2011-05-10T21:44:49.463
514,049
null
[ "php", "mysql", "html", "css" ]
5,957,080
1
5,957,140
null
1
2,506
I am building a dynamic listview and I am trying to achieve the same thing as in the picture bellow. ![enter image description here](https://i.stack.imgur.com/e5pSg.png) How can I do that programmatically. I have tried: ![enter image description here](https://i.stack.imgur.com/x1aGr.png)
How can I add a listView column header a click event programmatically
CC BY-SA 3.0
null
2011-05-10T22:06:24.023
2011-05-10T22:14:56.627
null
null
637,142
[ "c#", "wpf" ]
5,957,202
1
null
null
0
1,097
I am currently making a custom UITableView cell as shown below. The custom UITableViewCell is in its own nib file that I am calling from another ViewController. (like so) // RegistrationViewController.m ``` //Sets number of sections in the table - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 2; } // Sets the number of rows in each section. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 1; } //Loads both Custom cells into each section - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { //Registration Cell static NSString *CellIdentifier = @"CustomRegCell"; static NSString *CellNib = @"LogInCustomCell"; UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { NSArray *nib = [[NSBundle mainBundle] loadNibNamed:CellNib owner:self options:nil]; cell = (UITableViewCell *)[nib objectAtIndex:0]; } //Registration Button static NSString *CellButtonIdentifier = @"CustomSubmitCell"; static NSString *CellButtonNib = @"LogInSubmitButton"; UITableViewCell *cellButton = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellButtonIdentifier]; if (cellButton == nil) { NSArray *nibButton = [[NSBundle mainBundle] loadNibNamed:CellButtonNib owner:self options:nil]; cellButton = (UITableViewCell *)[nibButton objectAtIndex:0]; } if (indexPath.section == 0) { cell.selectionStyle = UITableViewCellSelectionStyleNone; //Stops the UITableViewCell from being selectable [self registrationControll]; //TODO: call method that controls this cell return cell; } if (indexPath.section == 1) { cellButton.selectionStyle = UITableViewCellSelectionStyleNone; //Stops the UITableViewCell from being selectable return cellButton; } return nil; } ``` It has four text fields that I am wanting to limit the size of the string that can be entered to five. (I'm only trying it with the first text field so far but its not even entering the textField:shouldChangeCharactersInRange:replacementString: delegate method (found this out while debugging the app) here is the code for the part I am trying to restrict the amount of characters that can be entered. // RegistrationViewController.m ``` //textField:shouldChangeCharactersInRange:replacementString: - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { int length = [regFieldOne.text length] ; if (length >= MAXLENGTH && ![string isEqualToString:@""]) { regFieldOne.text = [regFieldOne.text substringToIndex:MAXLENGTH]; return NO; } return YES; } ``` ![Formatted as a registration field](https://i.stack.imgur.com/mYZD1.png) I think I have limited my error to one of two things. Maybe I haven't set everything up in interface builder correctly.![Interfacebuilder](https://i.stack.imgur.com/hrDX6.jpg) OR it has something to so with delegation... which I have a general understanding of and is why I think the issue might be here, but with such a complex file structure I'm not sure how or if this is right. Any help, explanations, suggestions etc would be greatly appreciated.
How do you use custom UITableViewCell's effectively?
CC BY-SA 3.0
null
2011-05-10T22:23:37.670
2011-05-10T23:02:33.677
2011-05-10T22:34:48.200
724,746
724,746
[ "iphone", "uitableview", "nsstring", "delegation", "custom-cell" ]
5,957,287
1
5,957,317
null
0
693
I am developing monodroid application and everything seems to be working fine [I was able to run the android project before] till one fine day and suddenly I got this error message while running the android application from VS2010. ![enter image description here](https://i.stack.imgur.com/Wl2IK.jpg) Than I downloaded the monodroid installer from here [http://go-mono.com/monodroid-download/](http://go-mono.com/monodroid-download/) and when I tried to run it I am getting the below error![enter image description here](https://i.stack.imgur.com/HidoA.jpg) I am confused. How to resolve this error?
This beta version has expired
CC BY-SA 3.0
null
2011-05-10T22:36:49.260
2011-05-10T22:40:45.433
null
null
609,582
[ "visual-studio-2010", "windows-installer", "xamarin.android" ]
5,957,870
1
5,958,084
null
0
711
I need to space UIButtons out on a UIScrollView. The code I have works, however depending on the amount of `dataItems` I have, the spacing is not even. ## Snippet in Question ``` CGRectMake(10, ((120 / (count + 1)) * (i + 1) * 3) ,300,50) ``` ## Specifically ``` ((120 / (count + 1)) * (i + 1) * 3) ``` ## Working code ``` int count = [dataItems count]; /* not a specific value, can grow */ for (int i = 0; i < count; i++) { UIButton* aButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [aButton setTag:i]; [aButton setFrame: CGRectMake(10,((120 / (count + 1)) * (i + 1) * 3) ,300,50) ]; [aButton setTitle:[[dataItems objectAtIndex:i] objectForKey:@"Feed"] forState:UIControlStateNormal]; [aButton addTarget:self action:@selector(viewCategories:) forControlEvents:UIControlEventTouchUpInside]; [scroller addSubview:aButton]; } ``` ## Screenshot The example on the right should look like the example on the left as far as spacing goes. The `UIButtons` are sitting on a `UIScrollView`, so the `UIScrollView`'s `contentSize` should also grow if there are more `dataItems` so the buttons can scroll offscreen if there are say, 30+ `dataItems`.          ![enter image description here](https://i.stack.imgur.com/rtuyS.png)
Dynamic UIButtons with vertical spacing on a UIScrollView
CC BY-SA 3.0
0
2011-05-11T00:15:09.650
2011-05-11T00:56:24.050
null
null
171,206
[ "iphone", "ios", "uiscrollview", "for-loop", "spacing" ]
5,957,947
1
5,958,007
null
19
57,792
I am working on windows 7. IIS 7 and XAMPP are installed on the same computer. I have been playing with win host file and apache configuration files into to understand Server Root and directory. I dont know where i messed up, that know when i type localhost it shows me IIS 7 screen and when localhost/xampp then apache screen. How can IIS and apache run together at port 80 ? confused. ![enter image description here](https://i.stack.imgur.com/5o31C.jpg) ![enter image description here](https://i.stack.imgur.com/To3w8.jpg) ![enter image description here](https://i.stack.imgur.com/kmlS5.jpg)
Apache and IIS 7 running together
CC BY-SA 3.0
0
2011-05-11T00:33:35.197
2017-11-24T06:29:13.493
2017-01-15T15:01:13.337
1,033,581
389,288
[ "php", "apache", "iis", "iis-7" ]
5,958,075
1
5,960,936
null
2
134
I have a pop up button that is triggered by deleting an object. How can I click the button if I can seem to find it. I have used xpath like so: ``` $browser.button(:xpath, "/html/body/div/div/div/div/div/div/button").click ``` Here is a code snippet: ![The text is Highlighted.](https://i.stack.imgur.com/PlZRg.png) Thanks in advance.
How would I access a pop ui button?
CC BY-SA 3.0
null
2011-05-11T00:55:06.190
2011-05-11T07:51:48.297
null
null
571,722
[ "ruby", "xpath", "watir", "firewatir", "watir-webdriver" ]
5,958,164
1
5,958,536
null
5
5,567
First note: mathematically, I'm not that skilled at all. I played a game on iPhone a while back where you press a point, and an arrow fires from your castle which will always intersect the point you pressed. I wanted to make a similar game, thinking it would be an easy quick make; then I ran into the realization that the mathematics for this is actually beyond my skill level. I'm assuming they're using a parabola formula or something which would determine the velocity and angle needed when the arrow is launched for the arrow to always intersect the clicked point. I only vaguely remember how parabolas work from school and have no chance of working out any formulas. Any mathematical help or ideas that might be easier to implement would be great. I want to end up with a function in my castle like so: ``` package { import avian.framework.objects.AvElement; public class Castle extends AvElement { /** * Fires an arrow from this * @param ix The x intersection point * @param iy The y intersection point */ public function fire(ix:Number, iy:Number):void { var ar:Arrow = new Arrow(); ar.x = x; ar.y = y; // define angle and velocity based on ix, iy // ar.fireAngle = ?? // ar.fireVelocity = ?? parent.addChild(ar); } } } ``` as per questions in comments: There will be no forces applied to the arrow such as wind, friction, etc. Also, the starting point of the arrow is fixed throughout the game (at the castle). Here is an example image for slightly more clarity: ![Arrow path](https://i.stack.imgur.com/Uu0Ml.gif) To be as clear as possible: 1. Arrow always begins its journey from a fixed point (say: 40, 120). 2. The arrow must always intercept a given coordinate. 3. A realistic as possible path is something I'd like to achieve (obviously I can just fire an arrow straight to intercept any point, but the goal is to have the arrow first rise, then descend; passing through the desired coordinate at the most realistic point in its journey). To avoid the issue of there being infinite possible parabolas - the velocity of the arrow can be fixed - just look at defining the angle the arrow can leave at.
How to use a parabola formula in AS3 for firing an arrow that will always intercept a given point
CC BY-SA 3.0
0
2011-05-11T01:12:38.083
2011-05-11T08:06:55.033
2011-05-11T08:06:55.033
699,632
699,632
[ "flash", "actionscript-3", "math", "physics" ]
5,958,254
1
5,958,272
null
3
158
Please forgive the extreme-beginner style of coding. I'm working with PHP and JSON strings from an API for the first time. What I'm trying to do here, which obviously doesn't work if you look through it, is print out multiple movie results that the user is searching for. This is a search results page - with a movie poster and some key details next to each item. One of the things I want next to each result is a list of the first 5 actors listed in the movie, as "Starring" and then any directors listed in the movie as "Director". The problem is no doubt the fact that I've nested foreach statements. But I don't know any other way of doing this. Please please the simplest answer would be the best for me. I don't mind if it's bad practice, just whatever solves it quickest would be perfect! Here's the code: ``` // Check if there were any results if ($films_result == '["Nothing found."]' || $films_result == null) { } else { // Loop through each film returned foreach ($films as $film) { // Set default poster image to use if film doesn't have one $backdrop_url = 'images/placeholder-film.gif'; // Loop through each poster for current film foreach($film->backdrops as $backdrop) { if ($backdrop->image->size == 'thumb') { $backdrop_url = $backdrop->image->url; } } echo '<div class="view-films-film"> <a href="film.php?id=' . $film->id . '"><img src="' . $backdrop_url . '" alt="' . strtolower($film->name) . '" /></a> <div class="view-films-film-snippet"> <h2><a href="film.php?id=' . $film->id . '">' . strtolower($film->name) . '</a></h2> <img src="images/bbfc-' . strtolower($film->certification) . '.png" alt="" /> <h3>Starring</h3> <p>'; $num_actors = 0; foreach ($films[0]->cast as $cast) { if ($cast->job == 'Actor') { echo '<a href="person.php?id=' . $cast->id . '">' . $cast->name . '</a> '; $num_actors++; if ($num_actors == 5) break; } } echo ' </p> <h3>Director</h3> <p>'; foreach ($films[0]->cast as $cast) { if ($cast->job == 'Director') { echo '<a href="person.php?id=' . $cast->id . '">' . $cast->name . '</a> '; } } echo ' </p> </div> </div>'; // End films } } ``` An example of the result would be this: ![in situ](https://i.stack.imgur.com/S8Bgm.jpg) with line 120 being `foreach ($films[0]->cast as $cast) {` and line 131 being `foreach ($films[0]->cast as $cast) {`
Nested foreach statements are invalid. Help?
CC BY-SA 3.0
null
2011-05-11T01:28:50.760
2012-12-20T20:37:39.120
2012-12-20T20:37:39.120
367,456
2,089,192
[ "php", "json" ]
5,958,410
1
5,958,439
null
7
14,119
I'd like to show new page per a group in crystal report. Please check my images below report design![report design](https://i.stack.imgur.com/Me86i.jpg) report review![report review](https://i.stack.imgur.com/tKkmW.jpg) How to set to show one group box per page?
New page per a group in crystal report
CC BY-SA 3.0
0
2011-05-11T01:56:56.770
2018-03-21T05:55:15.693
2011-05-15T14:27:23.180
305,732
305,732
[ "vb.net", "visual-studio-2005", "crystal-reports" ]
5,958,663
1
null
null
0
4,685
Every so often when I'm visiting my website, I notice that there is a large white space at the bottom of the site. If I refresh the page, the white space disappears and everything is normal. This is happening quite frequently now, at least once a day when I visit my site. I have noticed this on Google Chrome (for mac). This problem may happen on other browsers, but I don't use other browsers often. Here is a screenshot: ![enter image description here](https://i.stack.imgur.com/T7Kc3.png) note the scroll bar ^ My site is [http://www.animefushigi.com](http://www.animefushigi.com)
Large White Space at bottom of website
CC BY-SA 3.0
null
2011-05-11T02:43:41.177
2014-05-23T10:24:59.683
2011-12-25T01:14:17.940
106,224
428,142
[ "css", "wordpress" ]
5,958,803
1
5,958,854
null
4
6,075
Sometimes I want to know if an object has a property that I am looking for but sometimes an object has a lot of properties and it may take some time to find it debugging it. It will be nice if I could write a function that will find all the properties and its values in a a string then I can paste that string in notepad for instance and look for the value that I am looking for with the find feature that notepad has. So far I have something like this: ``` public void getAllPropertiesAndSubProperties(System.Reflection.PropertyInfo[] properties) { foreach (var a in properties) { //MessageBox.Show(a.ToString()); // do something here to test if property a is the one // I am looking for System.Reflection.PropertyInfo[] temp = a.GetType().GetProperties(); // if property a has properties then call the function again if (temp.Length > 0) getAllPropertiesAndSubProperties(temp); } } ``` Editing the question I have worked: so far I have added the following code. I can pass whatever object I want to the following method and I can see all the properties. I am having trouble viewing the values of the properties ``` ![public void stackOverex(dynamic obj) { // this is the string where I am apending all properties string stringProperties = ""; Type t = obj.GetType(); List<PropertyInfo> l = new List<PropertyInfo>(); while (t != typeof(object)) { l.AddRange(t.GetProperties()); t = t.BaseType; var properites = t.GetType().GetProperties(); foreach (var p in properites) { string val = ""; try { val = obj.GetType().GetProperty(p.Name).GetValue(obj, null).ToString(); } catch { } stringProperties += p.Name + " - " + val + "\r\n"; } } MessageBox.Show(stringProperties); } ``` ![enter image description here](https://i.stack.imgur.com/8SQjf.png) Yeah visual studio debugger is great but look how many properties an object can have. I am actually looking for the indexSomething property of a gridViewColumnHeader I don't remember the exact name I just remember I have used it before. I have an event that fires when a column gets clicked and I would like to know the index not the name "column number 2? or 3 was clicked". I know I can get it with the name but it will be nice if I can implement this debugger function. See how complex it can get in the picture below. ![enter image description here](https://i.stack.imgur.com/LpEgT.png)
Finding all properties and subproperties of an object
CC BY-SA 3.0
0
2011-05-11T03:09:44.277
2011-05-13T02:49:44.897
2011-05-11T04:16:46.097
637,142
637,142
[ "c#", "reflection" ]
5,959,024
1
5,960,647
null
1
2,318
I'd like to add Auto Number per group box in crystal report. Here I use Record Number but it increases by group box. Report View ![Report View](https://i.stack.imgur.com/7XuHQ.jpg) The AutoNumber will be at the front of Barcode Column. How to set it per group box?
AutoNumber per group box in crystal report
CC BY-SA 3.0
null
2011-05-11T03:50:34.090
2011-05-11T07:23:14.557
null
null
305,732
[ "vb.net", "visual-studio-2005", "crystal-reports" ]
5,959,031
1
5,959,046
null
2
8,416
Here is my CSS ``` .FrontSlideShow { display:block; overflow: none; height: 323px; margin-bottom: 12px; background-color:#005596; background-image: url(/*edited*/); background-repeat: repeat-x; width:754px; font-family: verdana; font-size:large; color:#FFFFFF; clear:both; } .FrontSlideShow .SlideShowImage { float: left; vertical-align:text-bottom; padding-right: 24px; } .FrontSlideShow .SlideShowSubTitle { vertical-align: text-bottom; margin-bottom: 10px; } ``` Here is the markup ``` <div class="FrontSlideShow"> <div class="SlideShowMainTitle"> <asp:Label ID="lblSlideTitle" runat="server"></asp:Label> </div> <div class="SlideShowImage"> <asp:Image ID="imgSlide" runat="server" /> </div> <div class="SlideShowSubTitle"> <asp:Label ID="lblSlideDescription" runat="server"></asp:Label> </div> <asp:Button ID="btnPrev" runat="server" Text="Prev" /><asp:Button ID="btnNext" runat="server" Text="Next" /> <asp:SlideShowExtender ID="slExtender" runat="server" AutoPlay="true" Loop="true" PlayInterval="3000" TargetControlID="imgSlide" NextButtonID="btnNext" PreviousButtonID="btnPrev" ImageTitleLabelID="lblSlideTitle" ImageDescriptionLabelID="lblSlideDescription" SlideShowServiceMethod="GetSlides" SlideShowServicePath="~/WebServices/SlideShowService.asmx"> </asp:SlideShowExtender> <asp:Literal ID="liMarkup" runat="server"></asp:Literal> </div> ``` The subtitle div needs to be positioned at the bottom right of the parent container. Any ideas? But all I can get is: ![enter image description here](https://i.stack.imgur.com/8dxSF.jpg) But I want:![enter image description here](https://i.stack.imgur.com/ph90i.jpg)
Align text at bottom of div
CC BY-SA 3.0
null
2011-05-11T03:52:11.953
2012-07-23T19:28:02.937
null
null
734,691
[ "asp.net", "html", "css" ]
5,959,203
1
5,959,253
null
0
93
Here's my fiddle: [http://jsfiddle.net/6yU6N/](http://jsfiddle.net/6yU6N/) Here's a mockup of what I want to accomplish: ![enter image description here](https://i.stack.imgur.com/f2gJl.png) As you can see, I want to add a tiny space between the header and the first "pick container." And to add a space between each pick container. What's the best what to do this? ``
Adding Some "Spacers" to a Table
CC BY-SA 3.0
null
2011-05-11T04:19:28.367
2017-07-20T16:55:49.317
2017-07-20T16:55:49.317
4,370,109
251,257
[ "html", "css", "html-table" ]
5,959,282
1
5,959,924
null
0
1,396
![enter image description here](https://i.stack.imgur.com/uDAGG.jpg) Requirement: 1) I want to populate a textbox with data (e.g. Amount: 600.0) when a row in the above jqGrid is clicked. Can someone direct me to a tutorial for this ? Resources looked at: - [Demos -- Trirand jqGrid for ASP.NET](http://www.trirand.net/demoaspnet.aspx)- [jqGrid Demos](http://www.trirand.com/blog/jqgrid/jqgrid.html) Thanks
How to populate a textbox by clicked a row in a jqGrid?
CC BY-SA 3.0
null
2011-05-11T04:29:52.367
2011-05-11T06:02:40.427
null
null
350,648
[ "jquery", "asp.net-mvc-2", "jqgrid-asp.net" ]
5,959,608
1
6,874,204
null
5
19,614
I am trying to make a selection ListActivity, similar to the one used to add shortcuts to the launcher screens. I have rolled my own header and footers, which I would like to be "sticky" at the top and bottom of the view when on screen. In order to do this, I am using a RelativeLayout with the header set to dock to top, footer set to dock to bottom, and the list set to go below the header and above the footer. In terms of the overall layout of the activity, this is rendering as I would expect. The header is sticky to the top, the footer is sticky to the bottom, and the list scrolls in between them. One odd thing though happened when I switched to the RelativeLayout as my root. Please see the following screenshot: ![enter image description here](https://i.stack.imgur.com/bUCAb.png) I want my Activity's height to be `wrap_content`, so that the form is only as high as the content displayed in it, but once i switched to RelativeLayout, it seems to render the Activity effectively as `fill_parent`, taking up the whole screen, even though the content doesn't warrant it. Notice that there are not enough list items to fill the screen, which with the `fill_parent` style, is leaving a bunch of whitespace between the end of the list, and the footer. I was setting my height's via styles - which worked fine with LinearLayout, but seems to be ignored now. So I tried hard-coding the height directly on the RelativeLayout, but it still doesn't work and still renders as `fill_parent`. Here is my layout code: ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/GroupsList" android:layout_height="wrap_content"> <FrameLayout android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/hdrGroups" android:layout_alignParentTop="true"> <include layout="@layout/title" android:layout_width="fill_parent" android:layout_height="wrap_content"> </include> </FrameLayout> <FrameLayout style="@style/MyFooter" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_alignParentBottom="true" android:id="@+id/ftrGroups"> <ImageView style="@style/CloseButton" android:layout_height="wrap_content" android:layout_width="wrap_content" android:src="@drawable/add" android:id="@+id/imgGroupsAdd" android:clickable="true"> </ImageView> </FrameLayout> <ListView android:divider="#9f9f9f" android:id="@+id/android:list" android:choiceMode="singleChoice" android:dividerHeight="1dp" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_below="@id/hdrGroups" android:layout_above="@id/ftrGroups"> </ListView> <TextView android:text="@string/browser_no_groups" style="@style/ListedItemB" android:id="@+id/android:empty" android:layout_height="wrap_content" android:layout_above="@id/ftrGroups" android:layout_below="@id/hdrGroups" android:layout_width="fill_parent"> </TextView> </RelativeLayout> ``` All layout is done via XML, ... I am not doing any layout in code. How can I get the sticky header and footer while also having the activity as a whole behave in a `wrap_content` mode for its height? Is there some other way I should be going about this instead of a RelativeLayout?
Android RelativeLayout and height of wrap_content?
CC BY-SA 3.0
0
2011-05-11T05:21:15.243
2019-11-08T08:59:51.907
2015-09-18T11:53:59.960
3,290,339
80,209
[ "android", "android-layout", "listactivity", "sticky-footer", "android-relativelayout" ]
5,959,643
1
5,959,690
null
0
636
I'm trying to create a Django project in Eclipse but it says I have no Django installed, Although I've run a script which imports django and print its version and everything works fine, but in Eclipse not. ![The script I've run in Eclipse](https://i.stack.imgur.com/18ust.png) See that it prints Django version correctly and every module I have. Now see what Eclipse says:![enter image description here](https://i.stack.imgur.com/TLxaj.jpg)
Django not found in Eclipse IDE on Windows
CC BY-SA 3.0
null
2011-05-11T05:25:17.887
2011-05-11T05:30:55.967
null
null
336,945
[ "python", "windows", "django", "eclipse" ]
5,959,983
1
5,960,047
null
5
7,339
How to read the logical and physical file size using C# api. ![enter image description here](https://i.stack.imgur.com/RgH6v.png)
How to check logical and physical file size on disk using C# file API
CC BY-SA 3.0
0
2011-05-11T06:09:14.280
2011-05-11T06:17:59.303
null
null
237,743
[ "c#" ]
5,959,989
1
6,072,875
null
2
738
I am using a windows based program, coded in Delphi, to generated HTML (and can restrict the browser to MSIE 7 +). I need absolute, pixel perfect WYSIWYG. However, I am having text-wrap problems. What looks like this in Delphi ``` -- ----------------- | aaaa bbb ccc ddd | -------------------- ``` looks like this in the browser (both MS IE and FF. Although I am targeting MSIE only, I am using FF to have access to FireDebug) ``` -------------------- | aaaa bbb ccc | -------------------- ddd ``` Now, Delphi has an Object Inspector ![enter image description here](https://i.stack.imgur.com/vGUo2.gif) which allows me to precisely set a control's top/left/width/height and when generating the HTML, I use those for CSS positioning of each control on the form. e.g. ``` <fieldset style="position: absolute; top: 56px; left: 32px; width: 185px; height: 13px; "> <legend> </legend> <div style="position: absolute; top: 0px; left: 0px; width: 179px; height: 13px;"> Label1 000 111 222 aaa bbb cccc dd </div> </fieldset> ``` But since I am getting text wrap I guess that I am overlooking something, like setting of margin/border/padding. Any ideas what? Btw, I use Arial 10 as my font for windows/browser comparability, so it shouldn't be a font size problem. I think that Delphi must have something akin to the box model, insomuchas it draws the control with a margin (a control starting at 0 left has a visible gap from the left of the form; if I give it width 100 and position another with left =100 there is a visible gap between them). Any idea how I am going to achieve WYSIWYG? The HTMl must reflect the control layout in the Delphi form.
Delphi & CSS - box model question
CC BY-SA 3.0
null
2011-05-11T06:10:13.473
2011-05-20T13:49:21.807
2011-05-12T00:29:53.057
192,910
192,910
[ "html", "css", "delphi", "wysiwyg", "css-position" ]
5,960,068
1
5,961,917
null
2
693
My application consist of an MVC3 website that contains a silverlight control. In the MVC3 application I host a WCF service. I use that service in the silverlight control to get data from the DB. In the MVC web.config the service is defined as: ``` <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="OnlineCustomersTracker.Services.CustomersTrackerServiceAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> <services> <service name="OnlineCustomersTracker.Services.CustomersTrackerService"> <endpoint address="" behaviorConfiguration="OnlineCustomersTracker.Services.CustomersTrackerServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="OnlineCustomersTracker.Services.CustomersTrackerService" /> </service> </services> ``` The method that I call is: ``` [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Xml)] public string DoWork() { // Add your operation implementation here return "Work done"; } ``` In Silverlight I call the service: ``` CustomersTrackerServiceClient client = new CustomersTrackerServiceClient(new BasicHttpBinding(), new EndpointAddress( "http://localhost:62535/Services/CustomersTrackerService.svc")); client.DoWorkCompleted += new System.EventHandler<DoWorkCompletedEventArgs>(client_DoWorkCompleted); client.DoWorkAsync(); ``` When I access the service from silverlight I get the exception: The remote server returned an error: NotFound. The strange part is that the service is working from the web browser. Am I doing something wrong in silverlight? ![application request](https://i.stack.imgur.com/mF3lv.png) I traced the call from firefox and the silverlight control is doing a post to the service address: [http://localhost:62535/Services/CustomersTrackerService.svc](http://localhost:62535/Services/CustomersTrackerService.svc). It seems that my service is listening only for get requests. Is there any way to allow post request ... or to configure the service in silverlight to make get requests?
WCF service accessed from silverlight
CC BY-SA 3.0
null
2011-05-11T06:21:32.597
2011-05-11T09:18:38.527
2011-05-11T07:23:08.253
334,207
334,207
[ "silverlight", "wcf" ]
5,960,615
1
5,960,639
null
1
1,203
hi all i have a lil problem in android edit text actually i made an app in which i m using two text fields for user name and password and set EditText size manually like in 200dip format. now when there is no text in the Edit Text it is in perfect size like in the image below but when we start typing text and the text exceeds the size of editText Field then it Expand downwards like in second image below. ![EditText Before](https://i.stack.imgur.com/XazPR.png) ![EditText After in Expanded shape](https://i.stack.imgur.com/MTMMh.png) What I want is that when text exceeds the size of EditText, it should not Change its size. please help
help in android Edit Text
CC BY-SA 3.0
0
2011-05-11T07:18:35.303
2011-05-11T08:26:57.593
null
null
521,015
[ "android", "android-edittext" ]
5,960,765
1
5,962,109
null
3
172
I have enabled Xdbug from php.ini. How do i enable debugging from eclipse. I set the debugger in eclipse but they are never hit, each time when ever it try to debug a new configuration is created. ![enter image description here](https://i.stack.imgur.com/uV912.jpg) ![enter image description here](https://i.stack.imgur.com/vES2P.jpg) debugger setting: ![enter image description here](https://i.stack.imgur.com/H3rYA.jpg)
Debugger is not hitting, though Xdebug is installed
CC BY-SA 3.0
null
2011-05-11T07:34:21.137
2017-04-15T17:32:17.577
2017-04-15T17:32:17.577
1,033,581
389,288
[ "php", "eclipse", "xdebug" ]
5,961,034
1
5,966,117
null
14
55,368
I have a problem with precision loss. I imported a set of values from a CSV file into MATLAB 7 using the following code: ``` function importfile(fileToRead1) %#IMPORTFILE(FILETOREAD1) %# Imports data from the specified file %# FILETOREAD1: file to read DELIMITER = ','; HEADERLINES = 0; %# Import the file rawData1 = importdata(fileToRead1, DELIMITER, HEADERLINES); %# For some simple files (such as a CSV or JPEG files), IMPORTDATA might %# return a simple array. If so, generate a structure so that the output %# matches that from the Import Wizard. [~,name] = fileparts(fileToRead1); newData1.(genvarname(name)) = rawData1; %# Create new variables in the base workspace from those fields. vars = fieldnames(newData1); for i = 1:length(vars) assignin('base', vars{i}, newData1.(vars{i})); end ``` This very basic script just takes the specified file: ``` > 14,-0.15893555 > 15,-0.24221802 > 16,0.18478394 ``` And converts the second column to: ``` 14 -0,158935550000000 15 -0,242218020000000 16 0,184783940000000 ``` However, if I select a point with the Data Cursor it only displays 3 or 4 digits of precision: ![imprecise labels](https://i.stack.imgur.com/WbsxL.png) Is there a way to program a higher precision to get more exact data points?
How can I display numbers with higher precision in a MATLAB data cursor?
CC BY-SA 3.0
0
2011-05-11T08:01:12.933
2020-05-21T08:50:22.227
2011-05-18T05:25:07.737
52,738
59,300
[ "matlab", "plot", "precision", "datatip" ]
5,961,067
1
5,961,624
null
0
9,632
I have a class for which I have implemented a custom hashCode() and equals(Object) method using the Eclipse method generator. Each object of the class has a String field called `mUid` which should be unique and is enough to determine equality. The overridden methods look like this: ``` @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((mUid == null) ? 0 : mUid.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DataSource other = (DataSource) obj; if (mUid == null) { if (other.mUid != null) return false; } else if (!mUid.equals(other.mUid)) return false; return true; } ``` But for some reason, when I compare two objects of my class, it always returns false. I've stepped through the code with a debugger and can determine that the mUid strings are the same. But my `equals(Object)` method always returns false at the line `if (!mUid.equals(other.mUid)) {return false;}`. This means the String equals() method is saying the strings are not equal. But, in the debugger I can see that even their hashcodes are equal. Here is a debugging screenshot: ![Debugging screenshot](https://i.stack.imgur.com/t0TU5.png) Can anyone please explain what is happening? Thanks. ## Update: It works! I should point out that I am not calling the equals(...) method directly, but rather from `List<DataSource> list.contains(DataSource)`. It turns out that if I step through the `equals(Object)` code, it shows me that it returns false for comparing every object in the list (even if there is a match). But it seems the `List.contains()` method returns the right value (true or false) anyway. Don't know why this is, but it works. I had an extra semicolon after the `if(list.contains(dataSource));` so I could not rightly see that `contains()` was working fine. .
Why does this String.equals() method always return false?
CC BY-SA 3.0
0
2011-05-11T08:03:35.937
2011-05-11T09:29:58.083
2011-05-11T09:28:56.393
332,738
332,738
[ "java", "android", "string" ]