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
sequence
3,617,843
1
3,617,885
null
0
865
I am using YouTube API to perform simple searches on YouTube. Here's my code : ``` import java.net.URL; import com.google.gdata.client.youtube.YouTubeQuery; import com.google.gdata.client.youtube.YouTubeService; /** * */ /** * @author denzilc * */ public class CollectData { public static String clientID = "****"; public static String developer_key = "*****"; public static String YOUTUBE_URL = "http://gdata.youtube.com/feeds/api/videos"; public static String myQuery = "India"; public static int maxResults = 200; public static int timeout = 2000; public static String outputDir = ""; public static String outputFile = ""; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { YouTubeService service = new YouTubeService(clientID); YouTubeQuery query = new YouTubeQuery(new URL(YOUTUBE_URL)); query.setSafeSearch(YouTubeQuery.SafeSearch.NONE); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } } ``` However, I receive the following compilation error: > Description Resource Path Location Type The type com.google.gdata.client.Query cannot be resolved. It is indirectly referenced from required .class files CollectData.java /YouTube/src line 1 Java Problem Here's a pic of my JAVA Build Path and the referenced libraries:![alt text](https://i.stack.imgur.com/7oiBT.png) Am I missing something here?
Issue with YouTube Java API
CC BY-SA 2.5
null
2010-09-01T12:13:24.767
2010-09-01T12:18:12.217
null
null
308,254
[ "java", "youtube-api" ]
3,617,877
1
3,618,075
null
3
2,395
what is the equivalent debug tool to FireFox firebug in Internet Explorer ? thanks EDIT: What is this tool ? ![alt text](https://i.stack.imgur.com/akUoJ.jpg)
equivalent to firebug in IE
CC BY-SA 2.5
0
2010-09-01T12:17:25.853
2010-09-01T12:44:52.107
2010-09-01T12:36:23.593
283,322
283,322
[ "internet-explorer", "debugging" ]
3,618,322
1
null
null
7
1,498
![](https://i.stack.imgur.com/54ZkJ.png) What does [Garbage collection] mean in this pic? And the "20 calls" thing? I mean, how can I figure out why GC took so long? Was it collecting a lot of small objects? A single big one? Any hints as to how to optimize this at all? The code in question is: ``` private void DeserializeFrom(SerializationInfo info) { Width = info.GetInt32("width"); Height = info.GetInt32("height"); var data = (List<byte>)info.GetValue("cells", typeof(List<byte>)); cells = new Cell[physicalSize.Width, physicalSize.Height]; int pos = 0; for (int x = 0; x < physicalSize.Width; x++) { for (int y = 0; y < physicalSize.Height; y++) { cells[x, y] = new Cell(); if (x < Width && y < Height) { cells[x, y].HasCar = data[pos]; pos++; } } } } ``` Nothing too fancy. I suspect the culprit is the big `List<byte>` object, but I thought collecting a object is supposed to be instant (as opposed to collecting a bunch of small objects).
What does dotTrace Performance Profiler mean by [Garbage collection]?
CC BY-SA 2.5
0
2010-09-01T13:09:10.763
2015-02-23T14:27:44.857
null
null
122,687
[ ".net", "optimization", "garbage-collection", "dottrace" ]
3,618,532
1
3,618,807
null
4
1,109
I have a desktop application in C sharp, in which I have to show selected images in thumbnail view ( the view will be some thing like the attached image). The selected image can be deselected using x (cross) button shown on image top. Can someone suggest me how this can be accomplished. I have seen this accomplished in ASP .net. But I have to accomplish this in C#. Any clue will be greatly welcomed. Regards, ![alt text](https://i.stack.imgur.com/y0gzt.png)
Showing thumbnail of selected images in a desktop application using C Sharp
CC BY-SA 2.5
0
2010-09-01T13:27:52.330
2010-09-01T14:01:51.297
null
null
157,861
[ "c#", "image", "thumbnails" ]
3,618,870
1
null
null
2
777
How to open a similar popup like the one that appears when you click on a contact icon in contacts? Is Dialog suitable for that? Or maybe PopupWindow? ![Android screenshot](https://i.stack.imgur.com/TE337.png)
How to create a popup
CC BY-SA 2.5
0
2010-09-01T14:03:53.493
2010-09-01T14:31:39.373
2010-09-01T14:15:20.460
243,225
243,225
[ "android", "popup" ]
3,619,078
1
4,295,818
null
26
8,028
I have some answers! Feel free to contribute your own findings. As far as I know, there are 3 main ways to retrieve a simple list of Team Projects from TFS: - - - The simple tests I conducted compared the three methods when counting the total number of projects returned. ``` public IEnumerable<string> GetTeamProjectNamesUsingCatalog() { ReadOnlyCollection<CatalogNode> projectNodes = new TfsTeamProjectCollection(collectionUri).CatalogNode.QueryChildren( new[] { CatalogResourceTypes.TeamProject }, false, CatalogQueryOptions.None); foreach (var tp in projectNodes) yield return tp.Resource.DisplayName; } ``` ``` public IEnumerable<string> GetTeamProjectNamesUsingVCS() { TfsTeamProjectCollection tp = new TfsTeamProjectCollection(collectionUri); foreach (var p in tp.GetService<VersionControlServer>().GetAllTeamProjects(false)) yield return p.Name; } ``` ``` public IEnumerable<string> GetTeamProjectNamesUsingStructureService() { var structService = new TfsTeamProjectCollection(collectionUri).GetService<ICommonStructureService>(); foreach (var p in structService.ListAllProjects()) yield return p.Name; } ``` The unit tests I ran were super simple. I used the .Count() method to make sure we iterated all the team projects (.Any() is faster as it will stop after the first name is returned). For TFS 2010, running 3 tests 5 times in a row: ![TFS 2010 Chart Average Duration](https://i.stack.imgur.com/ofLoy.png) ![TFS 2010 Duration Results](https://i.stack.imgur.com/F8C89.png) For TFS 2008, running 2 tests (no Catalog service) 5 times in a row: ![TFS 2008 Chart Average Duration](https://i.stack.imgur.com/kXJkS.png) ![TFS 2008 Duration Results](https://i.stack.imgur.com/Lwjvo.png) - - - - `TfsTeamProjectCollections`- `TfsTeamProjectCollection``TfsTeamProjectCollectionFactory.GetTeamProjectCollection()`- As you can see, it seems like the `ICommonStructureService` is fairly fast at finding all the team projects . `ICommonStructureService3` If consistent performance is key, I think I'd recommend `VersionControlServer` to do it. Keep in mind what it is you want to do with the team projects, however. If simply listing them is all you need, the ICSS is probably the way to go. If you want to use the list for navigation, you'll also need the path (`$/TeamProject`) or Uri. In that case, VCS is probably the best way to go as you can use the `ServerItem` property, which holds the path to the item. You might also get away with simple string concatenation using ICSS (`"$/" + p.Name`). Hope this helps some other TFS API developers.
What is the fastest method of retrieving TFS team projects using the TFS SDK API?
CC BY-SA 2.5
0
2010-09-01T14:23:56.683
2011-12-28T01:13:22.423
2010-09-01T15:30:27.187
109,458
109,458
[ ".net", "testing", "tfs" ]
3,619,114
1
3,619,665
null
0
129
Here is a screenshot of the solution explorer: ![alt text](https://i.stack.imgur.com/ObMyF.png) And here is the code I'm using. Note that the RichTextFields do show up, but no picture. I've tried displaying both of the pictures in the res folder but no dice. ![alt text](https://i.stack.imgur.com/VOE8q.png) ``` final class HelloWorldScreen extends MainScreen { BitmapField logoField; public HelloWorldScreen() { super(); LabelField title = new LabelField("Moxxy Email Sender", LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH); setTitle(title); add(new RichTextField("1. Where do you want to send this?")); add(new RichTextField("2. What's your name?")); add(new RichTextField("3. Write down your message:")); Bitmap logoImage = Bitmap.getBitmapResource("res/tip.png"); logoField = new BitmapField(logoImage, Field.FIELD_HCENTER); add(logoField); } public boolean onClose() { Dialog.alert("Goodbye!"); System.exit(0); return true; } } ```
Cannot add image to my UI
CC BY-SA 2.5
null
2010-09-01T14:27:25.280
2010-09-01T15:24:46.237
null
null
null
[ "java", "blackberry" ]
3,619,199
1
3,619,441
null
0
538
Any ideas how can I achieve this as posted in the picture? ![alt text](https://i.stack.imgur.com/y0fKy.png) from the three controls in the picture - ignore labels- , the button is fixed meaning that it does not resize but the other two are resizing when I am resizing their form - the same thing ANCHOR does - Thanks
Help to design this TableLayoutPanel
CC BY-SA 2.5
null
2010-09-01T14:36:11.437
2010-09-09T12:24:50.293
null
null
320,724
[ "c#", "winforms", "tablelayoutpanel" ]
3,619,234
1
3,619,264
null
0
134
``` <html> <head> <style type="text/css"> h1{ background-color: red; margin-top : 10px; } div{ background-color:black; height : 100px; } </style> </head> <body> <div> <h1>Hello World!</h1> </div> </body> ``` Starting from the above code, how can I get the h1(Helloworld) to have a margin with the div, not the body? This is the desired result: [http://img176.imageshack.us/img176/7378/aaawj.png](http://img176.imageshack.us/img176/7378/aaawj.png) ![alt text](https://i.stack.imgur.com/dpyOm.png)
How can I have an H1's margin be 10px from its container?
CC BY-SA 3.0
null
2010-09-01T14:39:20.120
2011-07-25T22:17:23.687
2011-07-25T22:17:23.687
327,466
385,335
[ "html", "css" ]
3,619,533
1
3,622,631
null
8
4,874
I want to check my program code for time consuming operations. I thought DDMS is the best tool to achieve that. However, I cant see Threads, Heaps and so on. It tells my to select a client. But I dont know where other than the Devices Tab, which doesnt take effect. What do I have to do? Is there maybe smth wrong with my ADB setup (But LogCat works fine)? Thanks! ![enter image description here](https://i.stack.imgur.com/ewsxe.png)
Cannot select my Android client in DDMS perspective of eclipse
CC BY-SA 3.0
null
2010-09-01T15:09:50.033
2011-04-29T11:06:04.027
2011-04-29T11:06:04.027
39,648
433,718
[ "android", "android-emulator", "ddms", "performance" ]
3,619,994
1
3,620,221
null
0
726
I have a folder structure like [this](https://i.stack.imgur.com/nbxtQ.jpg) and I'm trying to load the `News` model inside my controller: ``` <?php /** * Login */ class Admin_NewsController extends Zend_Controller_Action { public function preDispatch() { $layout = Zend_Layout::getMvcInstance(); $layout->setLayout('admin'); } public function init() { $this->db = new Application_Admin_Model_DbTable_News(); } public function indexAction() { } public function addAction() { //$this->getHelper('viewRenderer')->setNoRender(); // Calls the Request object $request = $this->getRequest(); if ($request->isPost()) { // Retrieves form data $data = array( "new_title" => $request->getParam('txtTitle'), "new_text" => htmlentities($request->getParam('txtNews')), "new_image" => $request->getParam('upName'), "new_published" => 1 ); // Inserts in the database if ($this->db->addNews($data)) { $this->view->output = 1; } else { $this->view->output = 0; } } else { $this->view->output = 0; } $this->_helper->layout->disableLayout(); } } ``` And my : ``` <?php class Application_Admin_Model_DbTable_News extends Zend_Db_Table_Abstract { protected $_name = 'news'; public function addNews($data) { $this->insert($data); } } ``` Althoug I'm getting this error: ![alt text](https://i.stack.imgur.com/qqFbZ.png)
Problem loading models with modules in Zend Framework
CC BY-SA 2.5
null
2010-09-01T16:04:47.840
2013-08-05T14:47:34.740
2013-08-05T14:47:34.740
727,208
336,945
[ "php", "zend-framework", "zend-db-table" ]
3,620,322
1
3,620,389
null
0
223
I'm checking IE 6 issues of a xhtml css page on locally using VPC image of Microsoft Virtual PC. IE6 showing a JavaScript error. In VPC image i doesn't have MS Visual Studio installed. ![alt text](https://i.stack.imgur.com/CBgAb.png) Web-page has many JavaScript. How to know from Which script and where in script this error is coming?. I can know on My PC with the help of Visual Studio debug function. but not on VPC image. Where will be this Line 22 ? Error is only coming in IE.
IE Javascript error checking on Microsoft virtual PC
CC BY-SA 2.5
null
2010-09-01T16:49:02.870
2010-09-01T16:56:25.983
null
null
84,201
[ "javascript", "xhtml", "internet-explorer-6", "cross-browser" ]
3,620,505
1
3,628,562
null
0
639
I am writing a glassing program, similar to [Glass2k](http://chime.tv/products/glass2k.shtml) (see image below) as I often need to view my pdf tutorials while working on the program in question. I have so far been able to write the program that glasses the windows I want (via a global keyboard shortcut). I now need a way to replicate Glass2k's feature which makes glassed windows stay on top of all windows irrespective of which program I switch to (more like setting a WinForm's `TopMost` property to `True`. Is there any way of doing this in .NET? I'm prepared to get down and dirty with DllImports and all so any suggestion is welcome as long as it is in VB.NET or C#. ![Google Chrome showing Glass2k](https://i.stack.imgur.com/XlKfj.png) --- This is just based on a whim but I could also do with code that allows me to minimize, maximise restore and close any window as is done in [Process Explorer](http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)? (see image) ![Process Explorer](https://i.stack.imgur.com/wFNUA.png)
How Do I Make Any Program's Window TopMost from my Program?
CC BY-SA 2.5
null
2010-09-01T17:12:53.953
2010-09-02T17:27:35.717
null
null
117,870
[ "c#", ".net", "vb.net" ]
3,620,590
1
3,620,698
null
0
292
I've run this code ``` Zend_Loader::loadClass("Admin_Models_DbTable_News"); ``` and my application has this folder structure ![alt text](https://i.stack.imgur.com/JnQwk.jpg) Why do I get this: # An error occurred ## Application error
Why am I getting Application error while trying to load a model?
CC BY-SA 2.5
null
2010-09-01T17:24:28.757
2013-08-05T14:44:17.867
2013-08-05T14:44:17.867
727,208
336,945
[ "php", "zend-framework", "zend-db-table" ]
3,620,663
1
4,353,544
null
26
37,973
I'm looking at at document that describes the standard colors used in dentistry to describe the color of a tooth. They quote , , values, and indicate they are from the 1905 Munsell description of color: > The system of colour notation developed by A. H. Munsell in 1905 identifies colour in terms of three attributes: HUE, VALUE (Brightness) and CHROMA (saturation) [[15](http://www.specialchem4coatings.com/tc/color/index.aspx?id=munsell)]HUE (H): Munsell defined hue as the quality by which we distinguish one colour from another. He selected five principle colours: red, yellow, green, blue, and purple; and five intermediate colours: yellow-red, green-yellow, blue-green, purple-blue, and red-purple. These were placed around a colour circle at equal points and the colours in between these points are a mixture of the two, in favour of the nearer point/colour (see Fig 1.).![alt text](https://i.stack.imgur.com/XCZph.png)VALUE (V): This notation indicates the lightness or darkness of a colour in relation to a neutral grey scale, which extends from absolute black (value symbol 0) to absolute white (value symbol 10). This is essentially how ‘bright’ the colour is.CHROMA (C): This indicates the degree of divergence of a given hue from a neutral grey of the same value. The scale of chroma extends from 0 for a neutral grey to 10, 12, 14 or farther, depending upon the strength (saturation) of the sample to be evaluated.There are various systems for categorising colour, the Vita system is most commonly used in Dentistry. This uses the letters A, B, C and D to notate the hue (colour) of the tooth. The chroma and value are both indicated by a value from 1 to 4. A1 being lighter than A4, but A4 being more saturated than A1. If placed in order of value, i.e. brightness, the order from brightest to darkest would be:A1, B1, B2, A2, A3, D2, C1, B3, D3, D4, A3.5, B4, C2, A4, C3, C4The exact values of Hue, Value and Chroma for each of the shades is shown below ([16](http://www.lib.umich.edu/dentlib/Dental_tables/Colorshadguid.html))![alt text](https://i.stack.imgur.com/8uVbD.png) So my question is, can anyone convert Munsell HVC into RGB, HSB or HSL? ``` Hue Value (Brightness) Chroma(Saturation) === ================== ================== 4.5 7.80 1.7 2.4 7.45 2.6 1.3 7.40 2.9 1.6 7.05 3.2 1.6 6.70 3.1 5.1 7.75 1.6 4.3 7.50 2.2 2.3 7.25 3.2 2.4 7.00 3.2 4.3 7.30 1.6 2.8 6.90 2.3 2.6 6.70 2.3 1.6 6.30 2.9 3.0 7.35 1.8 1.8 7.10 2.3 3.7 7.05 2.4 ``` They say that Value(Brightness) varies from `0..10`, which is fine. So i take 7.05 to mean 70.5%. But what is `Hue` measured in? i'm used to being measured in `degrees` (0..360). But the values i see would all be red - when they should be more yellow, or brown. Finally, it says that Choma/Saturation can range from `0..10` ...or - which makes it sound like an arbitrary scale. So can anyone convert Munsell HVC to HSB or HSL, or better yet, RGB?
Color Theory: How to convert Munsell HVC to RGB/HSB/HSL
CC BY-SA 3.0
0
2010-09-01T17:34:38.937
2021-03-28T19:24:23.237
2011-06-21T23:09:08.137
12,597
12,597
[ "colors", "rgb", "hsl", "hsb", "color-theory" ]
3,621,269
1
3,622,330
null
5
3,367
During some analysis I had this situation on a Windows 7 64-bit machine: I loaded notepad.exe with depends and it shows me dependencies located on System32 as being 64 bit! Is is something buggy in depends or something else like redirection of dependencies? Any idea on how to interpret the output of depencency walker? ![alt text](https://i.stack.imgur.com/SAWJM.png)
why does dependency walker shows 32 bit dll as 64 bit?
CC BY-SA 2.5
null
2010-09-01T19:03:50.457
2010-09-01T21:44:44.983
2010-09-01T19:16:15.227
21,234
408,285
[ "windows", "dll" ]
3,621,432
1
3,622,094
null
1
1,863
I have downloaded and installed [Python 2.5.4](http://www.python.org/download/releases/2.5.4/) on my computer (my OS is ), downloaded [“Goggle App Engine Software Development Kit”](http://code.google.com/intl/en/appengine/downloads.html) and created my first application in Python, which was a directory named that contained a small python file with the same name (). Here are the contents of that small file: --- ``` print 'Content-Type: text/plain' print '' print 'Hello, world!' ``` --- Whenever I ran this application locally on my computer with [“Goggle App Engine Software Development Kit”](http://code.google.com/intl/en/appengine/downloads.html), my browser (FireFox) always showed me a white window with written in it. Then I downloaded [Twill](http://twill.idyll.org/) and unpacked it into directory. [Having installed Twill properly](https://stackoverflow.com/questions/2651334/how-can-i-start-using-twill), I was able to execute some small commands from Twill shell. For example, I could turn to a web page by some link: ![alt text](https://i.stack.imgur.com/lUPXv.jpg) Then I wanted to perform the same operation directly from Python (i.e. by means of using Twill from Python.) Here is what the [Twill documentation page says about it](http://twill.idyll.org/python-api.html): --- Using TwillBrowser Making extensions twill is essentially a thin shell around the mechanize package. All twill commands are implemented in the commands.py file, and pyparsing does the work of parsing the input and converting it into Python commands (see parse.py). Interactive shell work and readline support is implemented via the cmd module (from the standard Python library). There are two fairly simple ways to use twill from Python. (They are compatible with each other, so you don't need to choose between them; just use whichever is appropriate.) The first is to simply import all of the commands in commands.py and use them directly from Python. For example, ``` from twill.commands import * go("http://www.python.org/") showforms() ``` This has the advantage of being very simple, as well as being tied directly to the documented set of commands in the commands reference. --- So I decided to use this way. I deleted the previous contents of and gave it the new contents: --- ``` from twill.commands import * go("http://www.python.org/") showforms() ``` --- But when I tried to run that file on my computer with [“Goggle App Engine Software Development Kit”](http://code.google.com/intl/en/appengine/downloads.html), my browser, instead of depicting the contents of www.python.org web site, gives me an error message: : ![alt text](https://i.stack.imgur.com/NKVGY.jpg) Please, take a look at the whole page [here](http://roundcan.narod.ru/pop-open.html). Here are the last three lines of that page: --- : 'module' object has no attribute 'Popen' ``` args = ("'module' object has no attribute 'Popen'",) message = "'module' object has no attribute 'Popen'" ``` --- Can anybody, please, explain to me what this Popen attribute is all about and what I am doing wrong here? Thank you all in advance. --- (this update is my response to the second answer provided below by ) Hello, leoluk!!! I tried doing it this way: ``` config use_tidy 0 from twill.commands import * go("http://www.python.org/") ``` but it didn't work. I received this error message: ``` <type 'exceptions.SyntaxError'>: invalid syntax (helloworld.py, line 1) args = ('invalid syntax', (r'E:\helloworld\helloworld.py', 1, 15, 'config use_tidy 0\n')) filename = r'E:\helloworld\helloworld.py' lineno = 1 message = '' msg = 'invalid syntax' offset = 15 print_file_and_line = None text = 'config use_tidy 0\n' ``` (You can see the whole page [HERE](http://roundcan.narod.ru/some_pages/tidy_config_problem.html)) Do You have any idea what it means and what went wrong?
Using Twill from Python to open a link: " 'module' object has no attribute 'Popen' " What is it?
CC BY-SA 2.5
null
2010-09-01T19:25:18.140
2010-09-02T09:18:41.743
2017-05-23T12:19:47.753
-1
206,857
[ "python", "google-app-engine", "popen", "twill" ]
3,621,571
1
null
null
1
528
Hi am curious how I would go about implementing a view like (See below) Similar to the one used for the iPhone photo application. My initial idea was a table view with each cell holding 4 images, can anyone point me in the right direction. I am particularly interesting in using APIs from Apple so not too bothered about 3rd party APIs / Controllers at this stage. ![alt text](https://i.stack.imgur.com/UH2cX.jpg)
Thumb Nail Gallery?
CC BY-SA 2.5
0
2010-09-01T19:43:15.147
2010-09-02T03:07:57.387
null
null
164,216
[ "iphone", "objective-c", "cocoa-touch" ]
3,621,890
1
3,621,972
null
2
86
Hey so I have a list, with some of the items containing other lists. The first level of lists needs to be inline, but any list a level down should be normal list-item. It works better if I show you. This is what I have:![alt text](https://i.stack.imgur.com/gsoRc.jpg) However, I want Home Profile Groups Events and Frequencies to all be in one straight line, with any child lists below them. Here is the CSS: ``` #box1, #box2, #box3 { background-color: #FC9; padding:10px; text-align:center; } #box1 li, #box2 li, #box3 li { display:inline; font-size:24px; list-style:none; } #box1 li ul, #box2 li ul, #box3 li ul { display:list-item; list-style:none; } #box1 li ul li { display:list-item; font-size:18px; list-style:none; border:none; } #box1 li ul li ul { display:list-item; list-style:none; } #box1 li ul li ul li { font-size:12px; list-style:none; border:none; } #box2 { background-color:#6F9; } #box3 { background-color:#C9F; } ``` and here is the HTML: ``` <div id="box1"> <ul> <li>Home</li> <li>Profile <ul> <li>Edit Profile</li> <li>Inbox <ul> <li>New Message</li> <li>Sent</li> </ul> </li> <li>Photos</li> <li>Buddies</li> </ul> </li> <li>Groups <ul> <li>Create Group</li> </ul> </li> <li>Events <ul> <li>Plan Event</li> </ul> </li> <li>Frequencies</li> </ul> </div> <div id="box2"> <ul> <li>Sitemap</li> <li>Help</li> </ul> </div> <div id="box3"> <ul> <li>Private Policy</li> <li>Code of Conduct</li> <li>Terms of Use</li> </ul> </div> ``` Thanks for any help you can give.
How can I have a list of lists, with the top-level li's being inline, and the lower-level lists being normal lists?
CC BY-SA 2.5
null
2010-09-01T20:23:49.973
2010-09-01T20:37:09.867
2010-09-01T20:30:58.180
82,548
222,622
[ "html", "css" ]
3,621,893
1
3,627,694
null
0
801
Here is my GridView: ``` <div> <asp:GridView ID="MainGridView" runat="server" AllowPaging="True" DataSourceID="GridViewDataSource" EnableModelValidation="True" CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" onpageindexchanging="MainGridView_PageIndexChanging"> <Columns> <asp:CommandField ButtonType="Image" CancelImageUrl="~/images/icon_cancel.jpg" EditImageUrl="~/images/icon_edit.jpg" ShowEditButton="True" UpdateImageUrl="~/images/icon_update.jpg" /> </Columns> </asp:GridView> <asp:ObjectDataSource ID="GridViewDataSource" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByCategory" TypeName="SEPTA_DSTableAdapters.AgencyTBLTableAdapter"> <SelectParameters> <asp:SessionParameter DefaultValue="" Name="Category" SessionField="Cat" Type="String" /> </SelectParameters> </asp:ObjectDataSource> </div> ``` Here is my code behind: ``` protected void CategoryDDL_SelectedIndexChanged(object sender, EventArgs e) { Session["Cat"] = CategoryDDL.SelectedValue; FileTypeDDL_SelectedIndexChanged(sender,e); } protected void FileTypeDDL_SelectedIndexChanged(object sender, EventArgs e) { //Agency Value if (FileTypeDDL.SelectedValue == "Agency") { AgencyGrid(); } else if (FileTypeDDL.SelectedValue == "Stops") { StopsGrid(); } } public void AgencyGrid () { SEPTA_DS.AgencyTBLDataTable GetAgency = (SEPTA_DS.AgencyTBLDataTable)ata.GetDataByCategory(Session["Cat"].ToString()); string[] arrayOfKeys = new string[] { "AgencyID" }; MainGridView.DataKeyNames = arrayOfKeys; GridViewDataSource.TypeName = "SEPTA_DSTableAdapters.AgencyTBLTableAdapter"; MainGridView.AllowSorting = true; } public void StopsGrid() { SEPTA_DS.StopsTBLDataTable GetStops = (SEPTA_DS.StopsTBLDataTable)stota.GetDataByCategory(Session["Cat"].ToString()); string[] arrayOfKeys = new string[] { "StopsID" }; MainGridView.DataKeyNames = arrayOfKeys; GridViewDataSource.TypeName = "SEPTA_DSTableAdapters.StopsTBLTableAdapter"; MainGridView.AllowSorting = true; } protected void MainGridView_RowEditing(object sender, GridViewEditEventArgs e) { } ``` My GridView changes properties when I select between two seperate DropDownLists ``` <tr><td>File Name<br /><asp:DropDownList ID="FileTypeDDL" runat="server" Width="136" onselectedindexchanged="FileTypeDDL_SelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="Agency" Value="Agency" /> <asp:ListItem Text="Calendar" Value="Calendar" /> <asp:ListItem Text="Calendar Dates" Value="Calendar Dates" /> <asp:ListItem Text="Routes" Value="Routes" /> <asp:ListItem Text="Stop Times" Value="Stop Times" /> <asp:ListItem Text="Stops" Value="Stops" /> <asp:ListItem Text="Transfers" Value="Transfers" /> <asp:ListItem Text="Trips" Value="Trips" /> </asp:DropDownList></td></tr> <tr><td>Category<br /><asp:DropDownList ID="CategoryDDL" runat="server" Width="136" onselectedindexchanged="CategoryDDL_SelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="Select" Value="Select" /> <asp:ListItem Text="Regional Rail" Value="Regional Rail" /> <asp:ListItem Text="Transit" Value="Transit" /> </asp:DropDownList></td></tr> ``` The error lies when under `Stops` in the `FileTypeDDL`. When under `Agency` I can click the edit button and cancel button successfully. When under `Stops` I get the below error: ``` DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'StopsID'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'StopsID'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'StopsID'.] System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +8660309 System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +2178 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57 System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 System.Web.UI.WebControls.GridView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82 System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22 System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e) +17 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 ``` Why doesn't it work under `Stops` but it does under `Agency`? Is there a missing component in the code-behind? Here are my DataTables: ![alt text](https://i.stack.imgur.com/8jWrv.jpg)
C# GridView On Edit Error
CC BY-SA 2.5
null
2010-09-01T20:24:22.723
2010-09-02T13:45:05.170
2010-09-02T13:16:18.810
316,429
316,429
[ "c#", "asp.net", "gridview" ]
3,621,963
1
3,622,255
null
24
23,998
I'm trying to group one variable of my data by another and then plot a line through the means. It works fine when both variables are numbers. However, I'm having a problem when the grouping variable is a factor. I have a mock up below. ``` x <- sample(1:3, 40, replace=T) y <- rnorm(40) df1 <- data.frame(x, y) qplot(x, y, data=df1) + stat_summary(fun.y=mean, colour="red", geom="line") ``` ![alt text](https://i.stack.imgur.com/MvrbB.png) This is looks great. However if the x variable is a factor I don't get the line. ``` df2 <- data.frame(x=as.factor(x), y) qplot(x, y, data=df2) + stat_summary(fun.y=mean, colour="red", geom="line") ``` ![alt text](https://i.stack.imgur.com/Sanw8.png) Is there something I can do to get this line displayed? Ps. geom="point" works but not geom="line" ``` qplot(x, y, data=df2) + stat_summary(fun.y=mean, colour="red", geom="point") ``` ![alt text](https://i.stack.imgur.com/7RoA5.png)
ggplot2: line connecting the means of grouped data
CC BY-SA 4.0
0
2010-09-01T20:35:18.087
2019-12-27T16:53:26.707
2019-12-27T16:53:26.707
5,325,862
342,362
[ "r", "ggplot2" ]
3,622,000
1
3,622,066
null
1
662
Simulating Ocean Water: [http://www.finelightvisualtechnology.com/docs/coursenotes2004.pdf](http://www.finelightvisualtechnology.com/docs/coursenotes2004.pdf) I'm trying to simulate ocean and I need your help. Please be patient, I'm newbie to computer graphics but I know basics of physics and mathematics. As you can see I need to compute the formula: ![formula](https://i.stack.imgur.com/qAdI7.jpg) is a vector, is a coordinate (so I suggest that it could be equal to vector?). So, first question: how to compute to the power of such strange thing? Second, it says that h(,t) is height and also that to get the value it's needed to do FFT. I can't understand it.
Simulating Ocean Water, need to compute complicated values
CC BY-SA 2.5
0
2010-09-01T20:42:28.387
2010-09-01T22:30:22.727
2010-09-01T22:05:02.227
103,959
437,339
[ "c#", "math", "graphics", "matrix", "physics" ]
3,621,991
1
3,622,038
null
0
128
Why does an html element (such as a div) that has been styled with ``` position: relative; top: -50px; ``` Still force the parent element to have the same size as if the relatively positioned element were not shifted? Let me provide an example (live example found at [http://jsbin.com/ohebi4/2/edit](http://jsbin.com/ohebi4/2/edit)) ``` <html> <head> <style> article, aside, figure, footer, header, hgroup, menu, nav, section { display: block; } .parent{ position: relative; background-color: #000000; float: left; border: 1px solid red; } .child1{ float: left; background-color: #888888;} .child2{ float: left; background-color: #CCCCCC; } .subchild{ position: relative; top: -45px; height: 30px; border: 1px solid green;} .subchild2{ height: 30px; border: 1px solid green;} </style> </head> <body> <div style='clear: both; height: 50px;'></div> <div class='parent'> <div class='child1'>regular content</div> <div class='child2'>content of child 2</div> </div> <div>Sample A</div> <div style='clear: both; height: 50px;'></div> <div class='parent'> <div class='child1'><div class='subchild2'>subchild</div></div> <div class='child2'>content of child 2</div> </div> <div>Sample B</div> <div style='clear: both; height: 50px;'></div> <div class='parent'> <div class='child1'><div class='subchild'>subchild</div></div> <div class='child2'>content of child 2</div> </div> <div>Sample C</div> <div style='clear: both; height: 50px;'></div> <div class='parent'> <div class='child1'><span>child 1</span><div class='subchild'>subchild</div></div> <div class='child2'>content of child 2</div> </div> <div>Sample D</div> </body> </html> ``` The above markup creates a page that looks like this: ![alt text](https://i.stack.imgur.com/MZK7E.png) Sample A: Just a couple of divs inside a parent div, with normal content and flow Sample B: Added a subchild div, with a height of 30px. As expected, it changes the height of the parent, thus revealing the black background beneath "content of child b" Sample C: The subchild is repositions with position:relative. Note how even though this element is shifted above everything, it still contributes to the height of the parent, thus keeping the black background revealed Sample D: Problem in sample C excacerbated by added a span before subchild div. The behavior in A and B I understand. What I do not understand is the behavior in C and D. If the element that makes the parent taller is repositioned such that it isn't in that space anymore ... why does it still make the parent taller? I expect (incorrectly, obviously), that example C (and D) would look identical to A, with the addition of the green "subchild" box above it. Can anyone explain to me why this is, and how to have a relatively placed element affect the dimensions of the parent like this?
Why does an element shifted with position: relative still contribute to parent dimensions as if it hadn't been moved?
CC BY-SA 2.5
null
2010-09-01T20:41:14.947
2010-09-01T20:48:21.287
null
null
17,803
[ "html", "css" ]
3,622,407
1
3,625,421
null
3
3,715
I have a data frame with (to simplify) judges, movies, and ratings (ratings are on a 1 star to 5 star scale): ``` d = data.frame(judge=c("alice","bob","alice"), movie=c("toy story", "inception", "inception"), rating=c(1,3,5)) ``` I want to create a bar chart where the x-axis is the number of stars and the height of each bar is the number of ratings with that star. If I do ``` ggplot(d, aes(rating)) + geom_bar() ``` this works fine, except that the bars aren't centered over each rating and the width of each bar isn't ideal. If I do ``` ggplot(d, aes(factor(rating))) + geom_bar() ``` the order of the number of stars gets messed up on the x-axis. (On my Mac, at least; for some reason, the default ordering works on a Windows machine.) Here's what it looks like: ![alt text](https://i.stack.imgur.com/Bi9za.png) I tried ``` ggplot(d, aes(factor(rating, ordered=T, levels=-3:3))) + geom_bar() ``` but this doesn't seem to help. How can I get my bar chart to look like the above picture, but with the correct ordering on the x-axis?
ordered factors in ggplot2 bar chart
CC BY-SA 2.5
0
2010-09-01T21:52:26.483
2010-09-02T08:38:03.093
null
null
231,588
[ "r", "ggplot2" ]
3,622,951
1
3,624,778
null
0
967
I am trying to get the list item's bullets to move up. As you can see in the image below the red is where I would like everything. The bullets and the dropdowns need to move up. These fields are dynamic and come from a db. Pretty much I want it to look centered and nice and can't figure it out. --- ![alt text](https://i.stack.imgur.com/PXHaT.jpg) The CSS I am using is: ``` body { background: #CCCCCC; } li { margin: .5em 0% .5em 0; } #Questionaire { background: #FFF; width: 650px; margin: 10px; padding: 10px; border: solid 2px; } ``` EDIT: Added the html ``` <div id="Questionaire"> <!--<input type="checkbox" id="cbxSurveyEnabled" value="On" />On--> <ul id="QuestionContainer"> <li id='exists_27'><span><textarea rows='5' cols='60' id='exists_text_27'>Please rate the educational value of the reviewer</textarea></span><span><select id='exists_ddl_27'><option value='YesNo'>YesNo</option><option value='Scale1to3'>Scale1to3</option><option value='Scale1to5' selected>Scale1to5</option><option value='Checkbox'>Checkbox</option></select></span><span><a href='#' onclick="DeleteQuestion('exists_27'); return false;"><img src='images/remove.png' alt=x' /></a></span></li><li id='exists_4'><span><textarea rows='5' cols='60' id='exists_text_4'>On a scale of 1 to 3 how helpful did you find this response?</textarea></span><span><select id='exists_ddl_4'><option value='YesNo'>YesNo</option><option value='Scale1to3' selected>Scale1to3</option><option value='Scale1to5'>Scale1to5</option><option value='Checkbox'>Checkbox</option></select></span><span><a href='#' onclick="DeleteQuestion('exists_4'); return false;"><img src='images/remove.png' alt=x' /></a></span></li><li id='exists_1'><span><textarea rows='5' cols='60' id='exists_text_1'>Are you happy?</textarea></span><span><select id='exists_ddl_1'><option value='YesNo' selected>YesNo</option><option value='Scale1to3'>Scale1to3</option><option value='Scale1to5'>Scale1to5</option><option value='Checkbox'>Checkbox</option></select></span><span><a href='#' onclick="DeleteQuestion('exists_1'); return false;"><img src='images/remove.png' alt=x' /></a></span></li><li id='exists_32'><span><textarea rows='5' cols='60' id='exists_text_32'>Check if you are OK.</textarea></span><span><select id='exists_ddl_32'><option value='YesNo'>YesNo</option><option value='Scale1to3'>Scale1to3</option><option value='Scale1to5'>Scale1to5</option><option value='Checkbox' selected>Checkbox</option></select></span><span><a href='#' onclick="DeleteQuestion('exists_32'); return false;"><img src='images/remove.png' alt=x' /></a></span></li> </ul> <input type="button" onclick="submitData(); return false;" value="Submit" /> <input type="button" onclick="addQuestion(); return false;" value="Add question" /> </div> ```
CSS vertical alignment problem with list items and textareas
CC BY-SA 4.0
null
2010-09-01T23:57:18.387
2021-07-15T02:06:30.780
2021-07-15T02:06:30.780
12,892,553
413,401
[ "css", "vertical-alignment" ]
3,623,024
1
null
null
1
1,979
In adding a server on Netbeans 6.9.1 when SJSAPS 8.2 is chosen I receive an error. Something to do with the location. Can I use SJSAPS in Netbeans 6.9.1? Or have to use Java EE 5 which comes with Glassfish v2. 6.9.1 also has a choice for Glassfish v2.x but I get the same error. Reading Sun's tutorial on "Servlet Technology." See links: [App Server Download](http://download.oracle.com/javaee/5/tutorial/doc/bnaan.html) [Servlet Tut](http://download.oracle.com/javaee/5/tutorial/doc/bnafd.html) -----* Tools->Servers->Add Server->Add Server Instance - chose "Sun Java System Application Server 8.2"->Next ERROR: "Server Location is not an "Sun Java System Application Server ..." ![alt text](https://i.stack.imgur.com/SHfRS.gif) ---- How to get to the [NB log file](http://blogs.oracle.com/NetBeansSupport/entry/netbeans_ide_log_file). SERVER->LOG FILE - end of output here: ``` WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/text/x-ant+xml/Factories/ marked with the position attribute: [org- apache-tools-ant-module-loader-AntProjectDataLoader.instance], but some are: [org.apache.tools.ant.module.resources.xml-ergonomics.instance] WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/text/x-ant+xml/Factories/ marked with the position attribute: [org- apache-tools-ant-module-loader-AntProjectDataLoader.instance], but some are: [org.apache.tools.ant.module.resources.xml-ergonomics.instance] WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/text/x-dd-sun-web+xml/Factories/ marked with the position attribute: [org-netbeans-modules-j2ee-sun-ddloaders- SunDescriptorDataLoader.instance], but some are: [org.netbeans.modules.j2ee.sun.share.xml-ergonomics.instance] WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/text/x-dd-servlet2.5/Factories/ marked with the position attribute: [org-netbeans-modules-j2ee-ddloaders-app-EarDataLoader.instance, org- netbeans-modules-j2ee-ddloaders-client-ClientDataLoader.instance, org- netbeans-modules-j2ee-ddloaders-ejb-EjbJar30DataLoader.instance, org- netbeans-modules-j2ee-ddloaders-ejb-EjbJarDataLoader.instance, org-netbeans- modules-j2ee-ddloaders-web-DDDataLoader.instance, org-netbeans-modules-j2ee- ddloaders-web-DDWeb25DataLoader.instance], but some are: [org.netbeans.modules.j2ee.ddloaders.resources.xml-ergonomics.instance] WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/application/x-class-file/Factories/ marked with the position attribute: [org-netbeans-modules-java-ClassDataLoader.instance], but some are: [org.netbeans.modules.java.source.resources.xml-ergonomics.instance] WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/application/x-java-archive/Factories/ marked with the position attribute: [org-netbeans-modules-java-jarloader-JarDataLoader.instance], but some are: [org.netbeans.modules.java.j2seplatform.resources.xml- ergonomics.instance] WARNING [org.openide.text.CloneableEditorSupport]: org.netbeans.modules.properties.PropertiesEditorSupport should override asynchronousOpen(). See http://bits.netbeans.org/dev/javadoc/org-openide- text/apichanges.html#CloneableEditorSupport.asynchronousOpen WARNING [org.openide.text.CloneableEditorSupport]: org.netbeans.modules.xml.text.TextEditorSupport should override asynchronousOpen(). See http://bits.netbeans.org/dev/javadoc/org-openide- text/apichanges.html#CloneableEditorSupport.asynchronousOpen WARNING [org.openide.text.CloneableEditorSupport]: org.apache.tools.ant.module.loader.AntProjectDataEditor should override asynchronousOpen(). See http://bits.netbeans.org/dev/javadoc/org-openide- text/apichanges.html#CloneableEditorSupport.asynchronousOpen ```
Sun Java System App Server on Netbeans 6.9.1
CC BY-SA 3.0
null
2010-09-02T00:21:50.407
2012-08-03T00:09:18.817
2012-08-03T00:09:18.817
1,288
317,926
[ "java", "netbeans", "servlets", "jakarta-ee", "glassfish" ]
3,623,137
1
null
null
4
12,363
I am trying to intercept mailto: links in an embedded webview in my app. What I have is working ok, except when the user presses the link it is blurred upon returning to the app. Here is what I am doing in my WebViewClient ``` @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if(url.startsWith("mailto:")){ url = url.replaceFirst("mailto:", ""); url = url.trim(); Intent i = new Intent(Intent.ACTION_SEND); i.setType("plain/text").putExtra(Intent.EXTRA_EMAIL, new String[]{url}); context.startActivity(i); return true; } context.findViewById(R.id.loadingBar).setVisibility(View.VISIBLE); view.loadUrl(url); return true; } ``` If I do a view.reload() it does fix the problem, but is there a better way to fix it without wasting the bandwidth? I tried invalidate() but it didn't work. here is an example of what I'm talking about ![alt text](https://i.stack.imgur.com/PsqPK.jpg)
howto handle mailto: in android webview
CC BY-SA 2.5
null
2010-09-02T00:57:52.250
2021-03-02T11:02:36.103
2010-09-02T06:54:53.057
384,306
384,306
[ "android", "android-webview" ]
3,623,330
1
4,286,577
null
4
4,880
I am looking for an Android open source Calendar control which displays the full month in a grid, much like a real printed-on-paper calendar. It's for an app to show special days. Like this from my iPhone version we are porting: ![alt text](https://i.stack.imgur.com/CF6GB.jpg)
Android Calendar "Grid of Dates"
CC BY-SA 2.5
null
2010-09-02T01:54:54.557
2011-03-09T19:19:39.963
null
null
172,861
[ "android", "controls", "calendar" ]
3,623,703
1
5,533,807
null
22
22,956
As shown below, ![](https://imgur.com/aJ0vF.png) Is it possible to split a Polygon by a Line? (into two Polygons). If the line doesn't go all the way across the polygon it would fail. Is this possible? If so, how would I do this?
How can I split a Polygon by a Line?
CC BY-SA 2.5
0
2010-09-02T03:50:45.010
2023-02-11T00:56:04.100
2011-04-04T02:07:20.610
105,752
437,550
[ "algorithm", "split", "polygon" ]
3,624,192
1
null
null
0
87
I've a JEditPane "jep" to write in it like a document.. I want to add another JEditPane inside this 'jep'. is it possible to add? if so how? Please help me.. Below is an image showing the requirement. The whole image is JEditPane, on the leftside i need another box(yellow box in image) which i can write someting in it (like EditPane).. please give some hints.. thank you.. ![alt text](https://i.stack.imgur.com/5uLN6.jpg)
JEditPane inside another JEditPane in swings(java)
CC BY-SA 2.5
null
2010-09-02T06:02:09.160
2010-09-03T06:12:06.443
null
null
396,530
[ "java", "swing" ]
3,624,477
1
3,712,530
null
1
2,340
How could I create a macro that would check each cell of column A, find the words that are not in the defined dictionary, and write them (separated by space) in the next cell. In the picture below you can see an example of the worksheet after that macro was completed. ![alt text](https://i.stack.imgur.com/uvBH3.jpg) The complete idea was to get a (varchar) column from a database and use excel to spell check it. The next step would be to send an e-mail to the user in charge, containing the rows that contain at least one word in column B (along with the column id, of course). I think that I could do the rest of the work, except this step of getting the erroneous words. If you can think of another idea to spell check a db column, I would be grateful if you shared it with me. Thanks.
Get in column B the words of column A that are `not in dictionary`
CC BY-SA 2.5
null
2010-09-02T07:03:44.087
2010-09-14T20:19:03.170
2018-07-09T18:41:45.953
-1
170,792
[ "excel", "spell-checking", "vba" ]
3,625,432
1
3,625,724
null
1
471
I'm really stucked and don't know how to implement an idea better. So, we have an XML file: ![alt text](https://i.stack.imgur.com/CxBWh.png) I've got an array by function dom_to_array() ``` function dom2array($node) {$result = array(); if($node->nodeType == XML_TEXT_NODE) { $result = $node->nodeValue; } else { if($node->hasAttributes()) { $attributes = $node->attributes; if(!is_null($attributes)) foreach ($attributes as $index=>$attr) $result[$attr->name] = $attr->value; } if($node->hasChildNodes()){ $children = $node->childNodes; for($i=0;$i<$children->length;$i++) { $child = $children->item($i); if($child->nodeName != '#text') if(!isset($result[$child->nodeName])) $result[$child->nodeName] = $this->dom2array($child); else { $aux = $result[$child->nodeName]; $result[$child->nodeName] = array( $aux ); $result[$child->nodeName][] = $this->dom2array($child); } } } } return $result; ``` } I've got an array with XML element - STRUCTURE. Array --STRUCTURE ----PAGE ----PAGE -- -- --PAGE ----PAGE So the main question is how make array looks like this: Array ----PAGE ----PAGE -- -- --PAGE ----PAGE How to do it better friends - i don't need to include "structure" into array, is it possible to create by DOM functions ?!
PHP DOM array - cut the first element - better way to do it
CC BY-SA 2.5
null
2010-09-02T08:39:47.223
2010-09-02T09:22:08.730
2010-09-02T08:43:52.703
204,777
204,777
[ "php", "arrays", "dom" ]
3,625,624
1
6,455,573
null
20
25,150
I'm having problems inserting a new CA certificate with privatekey in the Root certificate store of the localmachine. This is what happens: ``` //This doesn't help either. new StorePermission (PermissionState.Unrestricted) { Flags = StorePermissionFlags.AddToStore }.Assert(); var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine); privkey.PersistKeyInCsp = true; //This shouldn't be necessary doesn't make a difference what so ever. RSACryptoServiceProvider.UseMachineKeyStore = true; cert.PrivateKey = privkey; store.Open (OpenFlags.MaxAllowed); store.Add (cert); store.Close (); ``` The certificate gets inserted and it all looks dandy: (see!) ![note it says it has a private key](https://i.stack.imgur.com/eOtPT.png) Note: is says it has a privatekey. So you'd say one would be able to find it with [FindPrivateKey](http://msdn.microsoft.com/en-us/library/ms732026.aspx) ``` C:\Users\Administrator\Desktop>FindPrivateKey.exe Root LocalMachine -t "54 11 b1 f4 31 99 19 d3 5a f0 5f 01 95 fc aa 6f 71 12 13 eb" FindPrivateKey failed for the following reason: Unable to obtain private key file name Use /? option for help ``` It's cute .... BUT IT'S WRONG!! (2 stupid dogs reference) And the Certificate export dialog gives me this very fine message: ![alt text](https://i.stack.imgur.com/WiYKn.png) This code is run while impersonating an administrator using this snippet: [click here](http://www.codeproject.com/KB/cs/zetaimpersonator.aspx) I'd just love to know WHY? (tested on Windows Server 2008 R2 & Windows 7) I'll be damned! What to do?
Inserting Certificate (with privatekey) in Root, LocalMachine certificate store fails in .NET 4
CC BY-SA 3.0
0
2010-09-02T09:07:58.423
2017-12-13T13:49:26.760
2017-12-13T13:49:26.760
117,242
117,242
[ "c#", ".net-4.0", "certificate", "x509certificate", "bouncycastle" ]
3,625,664
1
null
null
0
1,153
I have this data that i return with mysql and i add it into a list but it is very long. I want to split data into several columns using php.I am stuck here i need some ideas.One thing i know that there is jquery splitter but i want to use php how can i do it. Thanks in advance for your reply. The data is names of users but each group of users belongs to different group. If anyone need further explanation please ask me. Here is a picture for clarification ![alt text](https://i.stack.imgur.com/AcizT.png)
Split list into multiple columns
CC BY-SA 2.5
null
2010-09-02T09:13:56.237
2010-09-05T09:47:50.440
2010-09-05T09:47:50.440
90,231
90,231
[ "php" ]
3,625,896
1
null
null
0
937
Currently, I can create polygon-based selection box that has only one color on dashed stroke like the following photo. ![alt text](https://i.stack.imgur.com/8dgdC.png) In the other hand, all photo editors has selection box like the following photo. ![alt text](https://i.stack.imgur.com/Q3EDF.png) Is it possible to do this in WPF 4.0 without use double border in same place (two polygon objects place in the same location with different dash offset and stroke color).
Is it possible to define two-different color for dashed stroke like selection box in Photoshop?
CC BY-SA 2.5
null
2010-09-02T09:46:51.587
2010-12-10T18:32:43.997
null
null
null
[ "wpf", "graphics" ]
3,626,008
1
3,626,289
null
4
2,017
How to programmatically configure a proxy server for connectivity on the local network to the internet using a windows application. Please suggest a good example/reference. Screenshot shows the windows application form for setting proxy server ![Proxy Setting](https://i.stack.imgur.com/8iX63.jpg)
How to programmatically configure a proxy server for connectivity on the local network to the internet using a windows application
CC BY-SA 2.5
0
2010-09-02T10:02:22.533
2010-09-02T10:56:34.650
2010-09-02T10:53:42.563
171,985
171,985
[ "c#", ".net", "windows" ]
3,626,247
1
null
null
2
592
I'm trying to position several text elements using `position:absolute`. However, it seems that both on Firefox and on Chrome, the bounding box of the text elements is of a different size in Windows and in Linux. ![alt text](https://i.stack.imgur.com/luYcL.png) I've extracted a simple test case which is available here: [http://share.shmichael.com/html/event.html](http://share.shmichael.com/html/event.html) I've tried all kinds of alignment tricks, and specifying the height manually, but couldn't get it to work nicely. Any help would be appreciated.
FF & Chrome: Text bounding box difference in Windows/Linux
CC BY-SA 3.0
null
2010-09-02T10:35:00.753
2012-03-25T06:27:17.720
2012-01-12T20:06:25.950
106,224
252,348
[ "html", "css", "firefox", "google-chrome", "cross-browser" ]
3,626,374
1
3,626,849
null
0
149
I have a table called `Game`, which holds 4 columns for player id's. And I also have a table called `Player`. When I try to count all the games in which a player has been in, I only get the players from the first column in the `Game` table. ``` player.Games.Count(); ``` I have set up foreign keys for all the tables, and it's showing up correctly in the table designer. From the image below, you can see that it should count from blue1+2 and red1+2, but it only counts from `Blue1`... ![alt text](https://i.stack.imgur.com/ahio3.png) I also tried to create a method to manually select all the games: ``` public int GetPlayerGames(int playerID) { return (from game in db.Games where game.Blue1 == playerID || game.Blue2 == playerID || game.Red1 == playerID || game.Red2 == playerID select game).Count(); } ``` But when I use it inside a linq query ``` return from player in db.Players where GetPlayerGames(player.ID) > 0 select player; ``` I get this error: `Method 'Int32 GetPlayerGames(Int32)' has no supported translation to SQL.`
linq to sql not counting all columns
CC BY-SA 2.5
null
2010-09-02T10:50:36.723
2010-09-02T13:39:30.357
2010-09-02T12:00:04.263
59,242
59,242
[ "linq-to-sql" ]
3,626,407
1
null
null
1
218
I am newbie to drupal , I just created a view called "master" and i wanna manipulate the output pro grammatically for creating widget (javascript widget can embed in other website). ``` $view = views_get_view('master'); $view->set_display('page'); $view->execute(); $viewArray = $view->result; $title = $view->display['default']->display_options['title']; echo "<h2>$title</h2>"; echo("<pre>"); print_r ($viewArray); echo("</pre>"); ``` It prints the result(in object form), But the output contains only 10 result which was mentioned while at the time of views creation.Please guide me, ``` 1.how to get the next 10 result pro grammatically (pagination) ? 2.how to theme a views pro grammatically (since its js widget) ? 3.any live demo tutorial links to play with advanced views? 4.how to do sorting (whether i need to pass through url)? 5.how deal this with handler object? ``` my view preview looks like this below image ![alt text](https://i.stack.imgur.com/CwfoQ.jpg) Thanxs, Nithish.
help me to proceed with drupal views?
CC BY-SA 2.5
0
2010-09-02T10:55:35.340
2010-09-02T23:24:10.037
2010-09-02T11:25:03.270
292,214
292,214
[ "drupal", "drupal-6", "view", "drupal-views" ]
3,626,362
1
3,626,446
null
3
8,530
I have a model object called Problem: ``` [Table(Name = "Problems")] public class Problem { [HiddenInput(DisplayValue = false)] [Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)] public int ProblemId { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TablePersonStudentName")] [Column] public int StudentId { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableCommunicationTypesName")] [Column] public int CommunicationTypeId { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableProblemTypeName")] [Column] public int ProblemTypeId { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableMitigatingCircumstanceLevelName")] [Column] public int MitigatingCircumstanceLevelId { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableProblemDate")] [Column] public DateTime? DateTime { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableProblemOutline")] [Column] public string Outline { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableProblemFile")] [Column] public byte[] MitigatingCircumstanceFile { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableProblemAbsentFrom")] [Column] public DateTime? AbsentFrom { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableProblemAbsentUntil")] [Column] public DateTime? AbsentUntil { get; set; } [Display(ResourceType = typeof(Resources.Resources), Name = "TableProblemRequestedFollowUp")] [Column] public DateTime? RequestedFollowUp { get; set; } public CommunicationType CommunicationType { get; set; } public MitigatingCircumstanceLevel MitigatingCircumstanceLevel { get; set; } public ProblemType ProblemCategory { get; set; } public ICollection<ProblemCommunication> ProblemCommunications { get; set; } public ICollection<AssessmentExtension> AssessmentExtensions { get; set; } public ICollection<User> Users { get; set; } } ``` As this model contains lots of objects from other database tables I am using dropdownlists in my view by using a viewModel: ``` public class ProblemViewModel { public Problem Problem { get; set; } public SelectList Students { get; set; } public SelectList CommunicationType { get; set; } public SelectList MitigatingCircumstanceLevel { get; set; } public SelectList ProblemType { get; set; } public MultiSelectList ProblemUsers { get; set; } public ProblemViewModel(Problem problem, ISqlStudentRepository sqlStudentRepository, ISqlCommunicationTypeRepository sqlCommunicationTypeRepository, ISqlMitigatingCircumstanceLevelRepository sqlMitigatingCircumstanceRepository, ISqlProblemTypeRepository sqlProblemTypeRepository, ISqlUserRepository sqlUserRepository, string username) { this.Problem = problem; this.Students = new SelectList(sqlStudentRepository.Students.ToList(), "StudentId", "FirstName"); this.CommunicationType = new SelectList(sqlCommunicationTypeRepository.CommunicationTypes.ToList(), "CommunicationTypeId", "Name"); this.MitigatingCircumstanceLevel = new SelectList(sqlMitigatingCircumstanceRepository.MitigatingCircumstanceLevels.ToList(), "MitigatingCircumstanceLevelId", "Name"); this.ProblemType = new SelectList(sqlProblemTypeRepository.ProblemTypes.ToList(), "ProblemTypeId", "TypeName"); this.ProblemUsers = new MultiSelectList(sqlUserRepository.Users.Where(s => s.UserName != username).ToList(), "UserId", "UserName"); } } ``` This is generate upon navigation to the Problem/Create controller method: ``` public ViewResult Create() { string username = User.Identity.Name; return View("Edit", new ProblemViewModel(new Problem(), sqlStudentRepository, sqlCommunicationTypeRepository, sqlMitigatingCircumstanceRepository, sqlProblemTypeRepository, sqlUserRepository, username)); } ``` Here is the ascx view: ``` <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BournemouthUniversity.WebUI.Models.ProblemViewModel>" %> ``` ``` <div class="editor-field"> <%: Html.HiddenFor(model => model.Problem.ProblemId)%> <%: Html.ValidationMessageFor(model => model.Problem.ProblemId)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.StudentId) %> </div> <div class="editor-field"> <%: Html.DropDownListFor(model => model.Problem.StudentId, Model.Students)%> <%: Html.ValidationMessageFor(model => model.Problem.StudentId)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.CommunicationTypeId)%> </div> <div class="editor-field"> <%: Html.DropDownListFor(model => model.Problem.CommunicationTypeId, Model.CommunicationType)%> <%: Html.ValidationMessageFor(model => model.Problem.CommunicationTypeId)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.ProblemTypeId)%> </div> <div class="editor-field"> <%: Html.DropDownListFor(model => model.Problem.ProblemTypeId, Model.ProblemType)%> <%: Html.ValidationMessageFor(model => model.Problem.ProblemTypeId)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.MitigatingCircumstanceLevelId)%> </div> <div class="editor-field"> <%: Html.DropDownListFor(model => model.Problem.MitigatingCircumstanceLevelId, Model.MitigatingCircumstanceLevel)%> <%: Html.ValidationMessageFor(model => model.Problem.MitigatingCircumstanceLevelId)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.DateTime)%> </div> <div class="editor-field"> <%: Html.TextBoxFor(model => model.Problem.DateTime, new { @class = "datePicker" })%> <%: Html.ValidationMessageFor(model => model.Problem.DateTime)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.Outline)%> </div> <div class="editor-field"> <%: Html.TextAreaFor(model => model.Problem.Outline, 6, 70, new { maxlength = 255 })%> <%: Html.ValidationMessageFor(model => model.Problem.Outline)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.AbsentFrom)%> </div> <div class="editor-field"> <%: Html.TextBoxFor(model => model.Problem.AbsentFrom, new { @class = "datePicker" })%> <%: Html.ValidationMessageFor(model => model.Problem.AbsentFrom)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.AbsentUntil)%> </div> <div class="editor-field"> <%: Html.TextBoxFor(model => model.Problem.AbsentUntil, new { @class = "datePicker" })%> <%: Html.ValidationMessageFor(model => model.Problem.AbsentUntil)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.RequestedFollowUp)%> </div> <div class="editor-field"> <%: Html.TextBoxFor(model => model.Problem.RequestedFollowUp, new { @class = "dateTimePicker" })%> <%: Html.ValidationMessageFor(model => model.Problem.RequestedFollowUp)%> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Problem.Users)%> </div> <div class="editor-field"> <%: Html.ListBoxFor(model => model.Problem.Users, Model.ProblemUsers, new { @class = "multiselect" })%> <%: Html.ValidationMessageFor(model => model.Problem.Users)%> </div> <p> <input type="submit" class="button" value="Save" /> </p> <% } %> ``` However when I submit the form the [HttpPost] Edit controller action is entered but with null for the majority of values... ``` [HttpPost] public ActionResult Edit(Problem problemValues) { try { MembershipUser myObject = Membership.GetUser(); String UserId = myObject.ProviderUserKey.ToString(); Problem problem = problemValues.ProblemId == 0 ? new Problem() : sqlProblemRepository.Problems(UserId).First(p => p.ProblemId == problemValues.ProblemId); TryUpdateModel(problem); if (ModelState.IsValid) { sqlProblemRepository.SaveProblem(problem); TempData["message"] = problem.ProblemId + " has been saved."; if (Request.IsAjaxRequest()) { return Json(problem); } return RedirectToAction("Details", "Student", new { problem.StudentId }); } else return View(problem); } catch (Exception ex) { if (Request.IsAjaxRequest()) { return Json(null); } else { TempData["message"] = "Record Not Found."; return RedirectToAction("Index"); } } } ``` ![alt text](https://i.stack.imgur.com/PQegP.jpg) Any Ideas on this would be appreciated it appears to happen on most of my forms where I have dropdowns however I don't understand why all the values are null even the non-dropdown fields. Thanks in advance... Jonathan
ASP.NET MVC Form Values not being set on Post
CC BY-SA 2.5
null
2010-09-02T10:49:56.850
2010-09-02T12:33:18.630
null
null
316,619
[ "asp.net", "asp.net-mvc-2" ]
3,626,461
1
null
null
0
123
![alt text](https://i.stack.imgur.com/08Ry7.jpg) See screenshot. When creating a direct link to a file to be downloaded, IE offers a checkbox to remember the setting. When pushing a file to the client using a script, this checkbox never seems be shown. Is there a way to force its visibility? René
File download: show checkbox to remember action if file is not a direct link
CC BY-SA 2.5
null
2010-09-02T11:04:14.027
2010-09-02T11:10:31.743
null
null
304,870
[ "c#", "javascript", "internet-explorer" ]
3,626,790
1
3,626,816
null
0
69
I am thinking of applying a new page to the admin section on my website and I wanted to make one page with three tabs ( picture should be included ) is this possible using jQuery. Thanks a lot. ![alt text](https://i.stack.imgur.com/XWazx.jpg)
Switch information using jQuery
CC BY-SA 2.5
0
2010-09-02T11:49:56.303
2010-09-02T11:54:21.717
2010-09-02T11:52:22.060
313,758
368,975
[ "javascript", "jquery", "html", "css" ]
3,627,265
1
3,630,429
null
2
949
I've been using this method (I think I got it from one of Apple's example code projects): ``` - (void)loadTexture:(NSString *)name intoLocation:(GLuint)location { CGImageRef textureImage = [UIImage imageNamed:name].CGImage; if(textureImage == nil) { NSLog(@"Failed to load texture!"); return; } NSInteger texWidth = CGImageGetWidth(textureImage); NSInteger texHeight = CGImageGetHeight(textureImage); GLubyte *textureData = (GLubyte *)malloc(texWidth * texHeight * 4); CGContextRef textureContext = CGBitmapContextCreate(textureData, texWidth, texHeight, 8, texWidth * 4, CGImageGetColorSpace(textureImage), kCGImageAlphaPremultipliedLast); //The Fix: //CGContextClearRect(textureContext, CGRectMake(0.0f, 0.0f, texWidth, texHeight)); CGContextDrawImage(textureContext, CGRectMake(0, 0, (float)texWidth, (float)texHeight), textureImage); CGContextRelease(textureContext); glBindTexture(GL_TEXTURE_2D, location); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texWidth, texHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, textureData); free(textureData); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); } ``` I then load in my textures like so in the `initWithCoder` method: ``` glGenTextures(NUM_OF_TEXTURES, &textures[0]); [self loadTexture:@"1.png" intoLocation:textures[0]]; [self loadTexture:@"2.png" intoLocation:textures[1]]; [self loadTexture:@"3.png" intoLocation:textures[2]]; [self loadTexture:@"4.png" intoLocation:textures[3]]; [self loadTexture:@"5.png" intoLocation:textures[4]]; ``` Now this works great for me, but when the images loaded contain transparent areas, they will show the previous images behind them. For example, if all five images have transparent areas on them: - - - - I thought this would be in my drawing code, but even when I disable GL_BLEND this still happens. I am drawing using vertex arrays using `GL_TRIANGLE_FAN`. EDIT: Further explanation Here are the 3 textures I'm using in my game: ![alt text](https://i.stack.imgur.com/p7jjQ.png) Using the code to load the textures and after binding them and drawing, this is what happens: ![alt text](https://i.stack.imgur.com/gQqG8.png) Surely this is not transparency functioning as intended. If anyone could help that would be great. Thanks
iPhone OpenGLES texture loading issue with transparency
CC BY-SA 2.5
null
2010-09-02T12:54:43.340
2010-09-03T08:32:12.073
2010-09-03T08:32:12.073
143,979
143,979
[ "iphone", "objective-c", "opengl-es", "textures", "transparent" ]
3,627,272
1
4,533,050
null
7
2,215
I'm interested in adding to some of my sites the official [Tweet button](http://twitter.com/goodies/tweetbutton) which Twitter have recently released. For those unaware, the tweet button is a simple bit of JS which you can drop in to a page and it allows your users to easily tweet about the page in question, much like the facebok "share" button. There are 3 different styles available: ![Tweet button styles](https://i.stack.imgur.com/gXVeW.png) The horizontal count button is the one I'd like to put on my pages. My problem is that roughly half of my pages are likely to have a zero count, and I'd rather not show the count when this is the case. The facebook share button, for example, handles this particular situation well - if there are > 0 shares, then it shows the count. Otherwise the count stays hidden. I've gone through the twitter docs, and can't seem to find a way of specifying this in the JS parameters. I also spent some time trying to capture the count via jquery and hide it, but quickly ran in to cross-domain permission issues - ``` console.log($('.twitter-share-button').contents().html()); ``` returns a `Permission denied` error due to the iframe being loaded from `platform0.twitter.com`. Has anyone yet found a successful way to get this button to conditionally show the tweet counts as described above?
Tweet Button - hiding zero count
CC BY-SA 2.5
0
2010-09-02T12:54:54.837
2010-12-26T07:57:43.467
2020-06-20T09:12:55.060
-1
2,287
[ "twitter", "button", "social-networking" ]
3,627,460
1
null
null
2
11,299
I am a lone developer, and I am now using TFS 2010, having until recently used VSS. I have not found it easy to get any books for beginners to help me use this. So I have now got my project in source control. But when I check in I get references to a number of files that I no longer use. How do I remove files from the TFS Source Control repository? So in the example below, you can see lots of files from different projects that I do not want to see. ![enter image description here](https://i.stack.imgur.com/g40pZ.jpg)
Using TFS source control - how to remove files
CC BY-SA 4.0
null
2010-09-02T13:19:05.320
2020-07-13T10:12:53.590
2020-07-13T10:12:53.590
10,967,889
125,673
[ "tfs", "tfs-2010" ]
3,627,471
1
3,627,668
null
1
1,888
I have a DotNetNuke website that by default people use anonymously. When they want to login they click a link which takes them to `/DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx` and then redirects them back to the front page. On the front page is some jQuery which is designed to change the cookies created during the login process from being permanent to session based (So they'll disappear when the users browser is closed). However although I can create and read my own cookies in jQuery (using the cookies plugin) I'm not able to view the cookies that have been created server side during the login. The image below shows the cookies that exist for the DotNetNuke website. ![Screenshot of IECookiesView](https://i.stack.imgur.com/g4j4K.jpg) `Demo1` and `Demo3` have been created by jQuery with the following code: ``` $.cookie('Demo1', 'Fred', { expires: 0.005, path: '/' } ); $.cookie('Demo3', 'Peter', { expires: 0.005, path: '/', domain: 'internet.nt.avs' } ); ``` These cookies can then be read using the follow code: `alert( $.cookie('Demo3') );` However if I then try and read one of the other cookies, which I haven't set through jQuery I get `null` returned: `alert( $.cookie('.DOTNETNUKE') );`
Can't read cookies (Using jQuery and cookies plugin)
CC BY-SA 2.5
null
2010-09-02T13:20:24.380
2010-09-02T13:42:13.283
null
null
86,218
[ "jquery", "cookies", "dotnetnuke" ]
3,627,477
1
3,628,209
null
3
1,191
The following code gives me a nodeList to itterate over: ``` XPathNavigator thisNavigator = thisXmlDoc.CreateNavigator(); XPathNodeIterator dossierNodes = thisNavigator.Select("changedthisname/dossiers/dossier"); ``` I am processing this nodeList, and i need to grab another nodelist out of this list. I am trying to do this by using this code: ``` XPathNavigator alineanodesNavigator = dossierNodes.Current; XPathNodeIterator alineaNodes = alineanodesNavigator.Select("/dossier/alineas/alinea"); ``` I am using this code inside the while(dossierNodes.MoveNext()) loop and want this nodelist to be filled up with all "allinea's". However i am not getting any results back to my alineaNodes iterator. The document structure is like this: ![alt text](https://i.stack.imgur.com/YlmJC.png) How to get the alinea nodes from the current dossier node?? I debugged and this came out: ![alt text](https://i.stack.imgur.com/9dcKx.jpg) ``` Stream responseStream = response.GetResponseStream(); StreamReader reader = new StreamReader(responseStream, System.Text.Encoding.UTF8); string xml = reader.ReadToEnd(); XmlDocument thisXmlDoc = new XmlDocument(); thisXmlDoc.LoadXml(xml); XPathNavigator thisNavigator = thisXmlDoc.CreateNavigator(); ```
Grabbing a nodelist from a nodelist c# .net
CC BY-SA 2.5
0
2010-09-02T13:21:11.730
2010-09-02T14:41:23.617
2010-09-02T13:51:39.100
81,892
81,892
[ "c#", ".net", "xml", "xpath" ]
3,627,575
1
3,749,526
null
2
3,447
I have a telerik grid, ![alt text](https://i.stack.imgur.com/8bjPz.jpg) when I edit a row: ![alt text](https://i.stack.imgur.com/FMcx1.jpg) but if i pressed the update button or even cancel(watch the mid column): ![alt text](https://i.stack.imgur.com/P5uel.jpg) here is the declaration: ``` <%= Html.Telerik().Grid<AlefTech.HumanResource.WebModule.ViewDto.MaritialStatusItemEditDto>(Model) .Name("Grid") .DataKeys(keys => { keys.Add(c => c.MaritialStatusItemID); keys.Add(k => k.Index); }) .Columns(columns => { //columns.Bound(m => m.MaritialStatusItemID).Visible(false); columns.Bound(m => m.Index).Title("").Sortable(false).Width(0); columns.Bound(m => m.Name); //columns.Bound(m => m.Brithdate).Width(130).Format("{0:d}"); //columns.Bound(m => m.Gender); columns.Bound(m => m.MaritialStatusItemType); //columns.Bound(m => m.Notes); //columns.Bound(m => m.Status); //columns.Bound(m => m.CreationDate); //columns.Bound(m => m.ItemGuid);//.ClientTemplate("<input type='hidden' value='<#ItemGuid#>' name='ItemGuid' id='WorkerID'>"); columns.Command(command => { command.Edit(); command.Delete(); }); }) //.ClientEvents(cfg => cfg.OnDataBound("onRowDataBound")) .ToolBar(t => t.Insert()) .DataBinding(d => d.Ajax() .Select("MartialStatusGridSelect", "Worker") .Insert("MartialStatusGridInsert", "Worker") .Update("MartialStatusGridUpdate", "Worker") .Delete("MartialStatusGridDelete", "Worker")) .Scrollable() .Editable(editing => editing.Enabled(true)) .Sortable() .HtmlAttributes(new { @class = "t-grid-rtl", @hegiht = "450px" }) .Pageable() %> ``` and the Model : ``` public class MaritialStatusItem : BaseEntity { [StringLength(50)] [Required] public virtual string Name { get; set; } [UIHint("MaritialStatusEnum")] public virtual MilitaryStatusEnum MaritialStatusItemType { get; set; } } ``` the Display Template MaritialStatusEnum.ascx ``` <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%=((MilitaryStatusEnum)Model == .MilitaryStatusEnum.Serving)? "Serving" : "Finished" %> ``` the Editor Template ``` <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<AlefTech.HumanResource.Core.MartialStatusEnum>" %> <%=Html.DropDownList("MartialStatus", new SelectListItem[] { new SelectListItem { Text = "Serving", Value = "0" }, new SelectListItem { Text = "Finished", Value = "1" } }) %> ``` any Ideas why this happenning??
ajax editing in Telerik Grid, Display Templates are not rendered when update the row
CC BY-SA 2.5
0
2010-09-02T13:32:39.083
2010-09-20T07:53:03.710
null
null
336,271
[ "asp.net-mvc", "templates", "telerik-grid" ]
3,627,616
1
3,627,644
null
1
482
i have put in a css box colored red and for some reason the very bottom left is cut off is there an explanation (picture below) ``` <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script src="http://cdn.jquerytools.org/1.2.4/full/jquery.tools.min.js"></script> <style type="text/css"> <!-- #test { background-color: #F00; height: 375px; width: 69%; } .imz{ margin-bottom:-1%; } --> </style></head> <body> <!-- the tabs --> <span class="tabs"> <a href="#"><img src="../../images/security_tabs.png" class="imz" style="float: left;" /></a> <a href="#"><img src="../../images/security_tabs.png" class="imz" /></a> <a href="#"><img src="../../images/security_tabs.png" class="imz" /></a> </span> <div id="test"> <!-- tab "panes" --> <div class="panes"> <div>First tab content. Tab contents are called "panes"</div> <div>Second tab content</div> <div>Third tab content</div> </div> <div id="test"> </div> <!-- This JavaScript snippet activates those tabs --> <script> // perform JavaScript after the document is scriptable. $(function() { // setup ul.tabs to work as tabs for each div directly under div.panes $("span.tabs").tabs("div.panes > div"); }); </script> </body> </html> ``` ![alt text](https://i.stack.imgur.com/aJFuD.jpg)
CSS box being cut off?
CC BY-SA 2.5
0
2010-09-02T13:36:46.687
2010-09-02T13:47:45.970
null
null
368,975
[ "jquery", "css" ]
3,627,667
1
3,628,256
null
0
742
![alt text](https://i.stack.imgur.com/utGy4.png) How can I add a textbox so a user can enter numeric values into my form? I need the borders of the textbox control to be visible at all time. Thanks.
How can I show a textbox on my BlackBerry application?
CC BY-SA 2.5
null
2010-09-02T13:42:06.970
2010-09-02T15:55:13.257
null
null
null
[ "blackberry", "textbox" ]
3,627,679
1
3,629,433
null
3
1,639
I dumped some frames of a video and would like to generate a cuboid out of them, like in the following sample image: ![alt text](https://i.stack.imgur.com/sMqZO.png) I was wondering if there exists a MATLAB function to do such a plot?
How can I reproduce this cuboid plot in MATLAB?
CC BY-SA 2.5
null
2010-09-02T13:43:28.607
2010-09-03T16:01:48.633
2010-09-02T17:31:48.433
52,738
324,081
[ "matlab", "3d", "plot" ]
3,627,683
1
3,686,998
null
6
3,135
As a pet project, I've been playing with the concept of integrating Aero Glass effects into my SWT application. [Łukasz Milewski has an excellent blog post](http://www.milewski.ws/2009/02/vista-glass-in-swt-application/) explaining how this can be accomplished, which pretty much boils down to this: ``` final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FormLayout()); final MARGINS margins = new MARGINS(); margins.cyTopHeight = -1; final Composite c = new Composite(shell, SWT.NORMAL); c.setBackground(new Color(shell.getDisplay(), new RGB(0, 0, 0))); final FormData fd = new FormData(); fd.top = new FormAttachment(0, 0); fd.left = new FormAttachment(0, 0); fd.right = new FormAttachment(100, 0); fd.bottom = new FormAttachment(100, 0); c.setLayoutData(fd); OS.DwmExtendFrameIntoClientArea(shell.handle, margins); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } ``` This works beautifully, until you want to add a control. This results in black remaining transparent: ![Transparent shell with control](https://imgur.com/vVgVI.png) [A follow-up post](http://www.milewski.ws/2009/05/vista-glass-in-swt-application-continuation/) demonstrates how to do this, too, but requires modifying the SWT library. (At least, I believe so, because private SWT functions are overridden with `@Override`.) How can I avoid controls becoming transparent? Even better: how can I benefit from transparency (e.g. placing images on it [like so](http://www.milewski.ws/wp-content/uploads/2009/02/vista-glass-swt.png)), but use it in a sensible way?
Combining Aero Glass effects and SWT
CC BY-SA 2.5
0
2010-09-02T13:43:37.903
2012-05-27T11:09:16.433
null
null
154,306
[ "java", "windows", "swt", "aero", "aero-glass" ]
3,628,088
1
null
null
2
157
![enter image description here](https://i.stack.imgur.com/sISN6.gif) This is an animation I made using . As can be seen by highlighting the image, the margins at both the left and right sides are too wide. I don't want to have to submit the image to another program just for the cropping, so what do I do to eliminate the whitespace? Looking at the documentation, `ImageMargins` and `ImageRegion` would have been good except that they only apply to the front end. So, what do I do?
($VersionNumber < 6) Cropping an exported image in Mathematica
CC BY-SA 3.0
0
2010-09-02T14:28:18.620
2012-02-05T14:57:12.123
2012-01-02T22:24:48.863
615,464
null
[ "graphics", "wolfram-mathematica" ]
3,628,311
1
null
null
14
18,356
i am using left floating DIVs to simulate a two column layout (each div contains textfield to edit different data, like name, hobbies,...). So it should look like this ``` 1 2 3 4 5 6 ``` Now my div-boxes aren't always the same, since some DIVs have more elements than the other ones. Now my layout looks likes this ``` 1 2 2 3 4 5 6 ``` You can also see the effect on [this example](http://www.css-technik.de/css-examples/219_9/beispiele/thumbnails2.html) if you scale your so that only four or three colums are shown. E.g. if 4 columns are shown in a row there is much space between Float 1 and Float 6. This doesn't look good on my UI. What I want is to have Float 6 following Float 1 with no space in between (except the margin I define) Edit: My DIVs basically just contain a float:left and a width:40%, so that two fit on a screen Here's a screenshot showing more ![alt text](https://i.stack.imgur.com/uXskg.jpg)
CSS Floating Divs with different height are aligned with space between them
CC BY-SA 2.5
0
2010-09-02T14:53:15.990
2015-01-17T18:30:33.217
2012-05-10T19:50:51.247
44,390
417,177
[ "css", "html", "css-float" ]
3,628,348
1
3,630,675
null
22
39,736
I've recently switched from a Windows XP machine to Windows 7. I use Subversion and TortoiseSVN. I cannot publish my .NET application in Visual Studio. I get over a thousand errors like this: > Unable to delete file "obj\Debug\Package\PackageTmp\Views\ViewName.svn\text-base\ActionName.aspx.svn-base". Access to the path 'C:\Code\SolutionName\ProjectName\obj\Debug\Package\PackageTmp\Views\ViewName.svn\text-base\ActionName.aspx.svn-base' is denied. ![Visual Studio: "Publish failed"](https://i.stack.imgur.com/qE3cB.jpg) Why is Subversion giving me trouble? How do I fix it? --- I disabled the file indexing of my bin and obj folders. But, that didn't work. ![Allow files in this folder to have contents indexed in addition to file properties](https://i.stack.imgur.com/qE3cB.jpg)
Visual Studio Publish Failed: "Unable to delete file ... Access to the path ... is denied."
CC BY-SA 3.0
0
2010-09-02T14:57:20.763
2020-07-02T13:44:55.803
2011-09-15T13:49:58.677
54,680
83
[ "visual-studio", "svn", "tortoisesvn" ]
3,628,449
1
3,631,592
null
1
393
![alt text](https://i.stack.imgur.com/Tuq8T.png)Hi there, I am trying to build a web page and i have the following problem. I tried to upload a photo but I cannot because I don't have enough votes. I have a contacts page and my problem is that there is a huge gap between the contacts (little photos with people) and the grey layer in the bottom (please vote for me so that I can upload a photo to show you what I mean). I am really confused and I don't know where the problem might be. Here I give some information: I have created two lists (divs) with photos and contacts (in this picture you can see 2 photos of the leftlist (as i called it) div and one photo of the rightlist div. The CSS for these two are the following: ``` #leftlist { width:430px; position: relative; left: 0px; top: 0px; bottom: 720px;} #rightlist { width:430px; position: relative; left: 450px; bottom: 720px; top: -670px;} ``` These two divs I placed them inside the white box as you can see from the photo which I named container. The CSS for container is: ``` .container { width:950px; margin-top: 0; margin-right: auto; margin-bottom: 0px; margin-left: auto;} ``` Here I add the whole code of the container including whats inside: ``` <div class="container"> <div class="box"> <div class="border-top"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="left-top-corner"> <div class="right-top-corner"> <div class="right-bot-corner"> <div class="left-bot-corner"> <div class="inner"> <h2>&nbsp;</h2> <h2 align="center">Sales and Customer Service Team</h2> <h2 align="center"><br /> <br /> </h2> <div id="leftlist"> <ul class="list2"> <li> <img alt="" src="images/blabla.jpg" /> <h4><strong>blabla </strong> President<br /> <br /> <span class="style100">Email: <a href="mailto:[email protected]">[email protected]</a></span><br /> <span class="style100">Tel: +39 02 00000001</span><br /> </h4></li> <li></li> <br /> <li> <img alt="" src="images/blabla.jpg" /> <h4><strong>blabla </strong> General Sales Manager<br /> <br /> <span class="style100">Email: <a href="mailto:[email protected]">[email protected]</a></span><br /> <span class="style100">Tel: +39 02 00000023</span><br /> </h4> </li> <li></li> <br /> <li> <img alt="" src="images/blabla.jpg" /> <h4><strong>blabla </strong> Sales Manager<br /> <br /> <span class="style100">Email: <a href="mailto:[email protected]">[email protected]</a></span><br /> Tel: +39 02 00000021<br /> </h4></li> <li></li> <br /> <li> <img alt="" src="images/lara.jpg" /> <h4><strong>Lara blabla</strong> Sales and Logistics<br /> <br /> <span class="style100">Email: <a href="mailto:[email protected]">[email protected]</a></span><br /> Tel: +39 02 00000022<br /> </h4></li> <li></li> <br /> </ul> </div> <div id="rightlist"> <ul class="list2"> <li> <img alt="" src="images/blabla.jpg" /> <h4><strong>blabla</strong> Laboratory Manager and Quality Control<br /> <br /> <span class="style100">Email: <a href="mailto:[email protected]">blabla@blabla</a></span><br /> Tel: +39 02 00000020<br /> </h4></li> <li></li> <br /> <li> <img alt="" src="images/blabla.jpg" /> <h4><strong>blabla</strong>Technical Department<br /> <br /> <span class="style100">Email: <a href="mailto:[email protected]">[email protected]</a></span><br /> Tel: +39 02 00000012<br /> </h4></li> <li></li> <br /> <li> <img alt="" src="images/blabla.jpg" /> <h4><strong>blabla</strong>Safety Manager<br /> <br /> <span class="style100">Email: <a href="mailto:[email protected]">[email protected]</a></span><br /> Tel: +39 02 00000011<br /> </h4></li> <li></li> </ul> </div> </div> <div align="center"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- box end --> </div> ``` Tip: there are more photos and contact details that are not visible in the photo I upload as i wanted to show you the gap between the container div and the next div (grey layer). I am really sorry in advance if I am asking something stupid but I've been working on this for 8 hours now and I can't seem to find a solution. Maybe the solution is really stupid but my brain feels like its frying right now :p
Structure of web page. Huge gap. HTML or CSS issue?
CC BY-SA 2.5
0
2010-09-02T15:07:20.020
2010-09-02T21:54:48.183
2010-09-02T19:36:29.390
206,019
206,019
[ "html", "css" ]
3,628,626
1
3,628,648
null
2
686
I have this table: ![alt text](https://i.stack.imgur.com/5dS2o.png) I need to query the table and ask the following questions: How many rows matching uri 'x' exist with unique IP addresses between 'y' and 'z' dates. I was experimenting with COUNTs but I couldn't seem to get the result I needed...
Getting unique values from a mySQL table between a date range
CC BY-SA 2.5
null
2010-09-02T15:27:32.080
2010-09-02T15:35:28.563
null
null
339,876
[ "php", "mysql" ]
3,628,662
1
3,641,834
null
2
1,688
I'm seeing my app being killed by iOS with an out of memory message, however, while tracing the progress of the app in the Allocations Instrument, I see lots of mallocs that seem to be occurring outside of the code I've written. I'm not seeing any leaks being caught, so I assume these allocations are supposed to be there. Thing is, because I'm not sure about why they have been allocated, I'm not sure what I can do to optimize the app and prevent the OS from jettisoning my app. Does anyone know why the memory is being allocated, or is there any way for me to find out? Here are a couple of shots from Instruments showing the mallocs. In the second shot, all of the allocations have the same stack trace. ![One](https://imgur.com/2PCLz.png) ![Two](https://imgur.com/HrmjZ.png) I' displaying a single large image as the UIView background (1024x768), then overlaying a smaller (600px square) UIView with some custom drawing and a third UIView (550px square) over the top of those that contains two 550px square images overlayed. I'm guessing that this is not appropriate, and there is probably a better way of achieving the composition of views I need for the app to work. Should this be possible on the iPad?
Seeing malloc allocating large chunks of memory - trying to track down why (iPhone)
CC BY-SA 2.5
null
2010-09-02T15:31:24.983
2016-06-17T00:40:14.940
2010-09-03T08:34:07.273
12,037
12,037
[ "iphone", "core-graphics", "ios", "quartz-2d" ]
3,628,853
1
3,629,113
null
1
627
I have a code that fetches a list from DB. . Now, the code is working fine for first time. I can also able to add new entry to the database and show it in the grid. Now the problem is with the combo box. Whenever i add a new entry, by deleting the previous content in the table and fetching again from the DB along with new entry. . See, the image. .![alt text](https://i.stack.imgur.com/YYeMf.jpg) But i dont know to reset or delete existing combo box contents. I know that the solution is a piece of code that makes the combo box null. My question is how to make that combo box null in the starting point.(I dont know what exact term is "null" or "reset", i new to DOM elements). Here my Code. The HTML ELEMENT: ``` <select id="departmentField" >//Both using same data source. <select id="searchDepartments"> ``` Its I think the problem comes below the grid. ``` EmployeeManagement.getDeptList(function(deptRecords) { $("#depts").clearGridData(true); $("#depts").jqGrid('addRowData', "deptID", deptRecords); var deptSearchSelect = document.getElementById('searchDepartments'); var searchOptions = null; searchOptions = document.createElement('option'); searchOptions.value = 0; searchOptions.innerHTML = "ALL"; deptSearchSelect.appendChild(searchOptions); var depFieldSelect = document.getElementById('departmentField'); var deptFieldOpts = null; deptFieldOpts = document.createElement('option'); deptFieldOpts.value = 0; deptFieldOpts.innerHTML = ""; depFieldSelect.appendChild(deptFieldOpts); for(i = 0; i<deptRecords.length; i++) { var dept = deptRecords[i]; searchOptions = document.createElement('option'); searchOptions.value = dept.deptID; searchOptions.innerHTML = dept.deptName; deptSearchSelect.appendChild(searchOptions); deptFieldOpts = document.createElement('option'); deptFieldOpts.value = dept.deptID; deptFieldOpts.innerHTML = dept.deptName; depFieldSelect.appendChild(deptFieldOpts); } deptSearchSelect.selectedIndex = "ALL"; deptSearchSelect.selectedIndex = ""; //var respDiv = document.getElementById("respCheck"); }); ``` How shall i reset? Any suggestions would be more appreciative Thanks in advance!!!
How to make a selection list to null in runtime?
CC BY-SA 2.5
null
2010-09-02T15:54:59.457
2010-09-02T16:26:01.890
null
null
null
[ "javascript", "html" ]
3,628,928
1
3,857,068
null
2
870
I have written a Outlook 2007 Add-In. I added a Setup Project to it, and it built the dependencies itself. When installed on a computer without visual studio, I get the following error message in the "Trust Center COM Add-in Manager": "Load Behavior: Not Loaded. The Managed Add-In Loader Failed to Initialize" ![alt text](https://i.stack.imgur.com/hKjCT.png) ![alt text](https://i.stack.imgur.com/gbHRo.png)
VSTO Deployment not working on Computer without Visual Studio
CC BY-SA 2.5
null
2010-09-02T16:02:11.057
2010-10-04T16:16:20.197
2010-09-02T16:13:40.813
48,943
48,943
[ "c#", "visual-studio", "deployment", "vsto" ]
3,628,955
1
3,629,436
null
1
794
I've come across a weird discrepancy between `BigInteger`s used by .Net 4.0 and Silverlight 4.0; In [.Net](http://msdn.microsoft.com/en-us/library/system.numerics.biginteger_methods(v=VS.100).aspx), `BigInteger` has a `Parse` and `TryParse` method where as in the [Silverlight](http://msdn.microsoft.com/en-us/library/system.numerics.biginteger_methods(v=VS.95).aspx) version, it does not have either of these. If you look at the .Net version of `System.Numerics` in Reflector, you also see that when you disassemble the code, every single method is just empty, and it lacks the `BigIntergerBuilder` and friends of the Silverlight version: ``` public static BigInteger Parse(string value) { } ``` What is going on here? ![alt text](https://i.stack.imgur.com/1CReW.png)
Why does System.Numerics.BigInteger not have a Parse method in Silverlight 4.0, but does in .Net 4.0?
CC BY-SA 2.5
null
2010-09-02T16:05:12.133
2010-09-02T18:23:59.260
2010-09-02T16:27:47.387
139,766
139,766
[ "c#", ".net", "silverlight", "silverlight-4.0", ".net-4.0" ]
3,629,042
1
3,630,916
null
1
1,007
how can I get this exchange rates from a web service using htm and javascript? ![alt text](https://i.stack.imgur.com/6x8zE.png) > Türkiye = Turkey | Dünya = World | Son güncellenme = Last updating date
getting data using javascript
CC BY-SA 2.5
null
2010-09-02T16:15:20.620
2010-09-02T20:22:41.297
null
null
173,718
[ "javascript", "asp.net", "html", "web-services" ]
3,629,181
1
5,254,968
null
3
1,989
I need WPF component (beter if it will be free) for easy drawing such process graphics like on the image. Can you give an advice what to use? Thanks. ![http://img842.imageshack.us/img842/3444/40560107.png](https://i.stack.imgur.com/teujt.png)
.NET WPF Diagrams/Graphs
CC BY-SA 3.0
null
2010-09-02T16:33:48.283
2013-10-01T14:24:37.547
2013-10-01T14:24:37.547
438,180
438,180
[ "wpf", "graph", "components", "diagram" ]
3,629,331
1
3,629,442
null
19
8,590
I'm trying to divide a page in three parts. I'd like to do it in percentage values, however that is not supported by Android. Instead I have to use `android:layout_weight`. But I have a hard time understanding it and getting it right. Especially how the actual size gets calculated. Is there a way to get a percentage value (0..100%) out of `android:layout_weight`? I went through a few cases (see attached screenshot) to describe the problems. The colored fields are all `<LinearLayout>` with `android:layout_height="fill_parent"`, because I want the full screen to be divided between those. ![alt text](https://i.stack.imgur.com/FQwIv.png) Okay, simple. Every `<LinearLayout>` gets 33%. ![alt text](https://i.stack.imgur.com/kF1sR.png) Ups?! The first (yellow) `<LinearLayout>` disappears completely? Why? ![alt text](https://i.stack.imgur.com/rhXxa.png) Confused again. The yellow `<LinearLayout>` is back. However, the two first `<LinearLayout>` with the heavier weight get smaller? What is going on? ![alt text](https://i.stack.imgur.com/AWvuL.png) I have absolutely no idea what the maths behind all this is.
Android: trying to understand android:layout_weight
CC BY-SA 2.5
0
2010-09-02T16:55:44.357
2019-05-16T20:31:11.337
2019-05-16T20:31:11.337
8,366,499
184,367
[ "android", "layout", "android-layout-weight" ]
3,629,744
1
3,631,624
null
1
2,264
Looked at other posts but, haven't seen the answer I'm looking for... I have two layouts: layout-port and layout-land. If I run the app with emulator or device, either vertically or horizontally, the app runs fine with the correct layouts. I have other app's with similarly defined layouts that work fine without any orientation handling in the manifest. I'm not concerned about persisting data. between the one's that work and this one are (this one has): * Menus with sub-menus * Dialog screens (not the android dialog widget) * Tab widget All of the above items work in their respective layouts (port and land), the app just exits when rotating the emulator or device and I need to restart the app. Any recommendations? Thanks ![alt text](https://i.stack.imgur.com/60oPY.png) The Manifest: (deleted)
Android - Orientation Change - exits app but w/o crashing
CC BY-SA 2.5
null
2010-09-02T17:49:20.263
2010-09-14T17:00:43.707
2010-09-14T17:00:43.707
382,200
382,200
[ "android", "orientation", "android-layout" ]
3,629,792
1
null
null
0
202
I am using Three20's TTThumbViewController. Everything works fine except for a padding on top of the thumbnail table which appears to be reserved for the navigation header, except that it takes the place right below the header. How can I get rid of this white space? ![alt text](https://i.stack.imgur.com/vwLSw.png)
Why Extra Padding on top of ThumbnailView?
CC BY-SA 2.5
null
2010-09-02T17:55:21.113
2012-01-19T08:07:26.753
null
null
5,304
[ "iphone", "three20" ]
3,629,783
1
3,686,152
null
1
1,235
Take the following simple source (name it test.cpp): ``` #include <windows.h> void main() { DebugBreak(); } ``` Compile and link this using the following commands: ``` cl /MD /c test.cpp link /debug test.obj ``` If TEST.EXE is now run (on a 64-bit Windows 7 system), you get the following dialog: ![DebugBreak in unmanaged application](https://i.stack.imgur.com/U53n6.png) Now add the following source file (name it test2.cpp): ``` void hello() { } ``` And compile and link this together with the first source, like this: ``` cl /MD /c test.cpp cl /MD /c /clr test2.cpp link test.obj test2.obj ``` Notice that we didn't even call the hello-function, we just linked it in. Now run TEST.EXE again (on the same 64-bit Windows 7 system). Instead of the dialog shown above, you get this: ![DebugBreak in mixed-mode application](https://i.stack.imgur.com/JvwLP.png) Apparently, linking in the .Net framework makes DebugBreak behave differently. Why is this? And how can I get the old DebugBreak behavior back again? Is this possibly a Windows 7 or 64-bit specific behavior? A side-remark to make clear why I want to use DebugBreak: we have a custom assert-framework (something like the SuperAssert from John Robbin's Debugging Windows Applications book), and I use the DebugBreak function so the developer can jump into the debugger (or open a new debugger) if there is a problem. Now there is only the simple popup and no possibility to jump to the debugger anymore. As an alternative solution I could perform a divide-by-zero or a write to invalid address, but I find this a less clean solution. This is the call stack in the second test (the simple dialog): ``` ntdll.dll!_NtRaiseHardError@24() + 0x12 bytes ntdll.dll!_NtRaiseHardError@24() + 0x12 bytes clrjit.dll!Compiler::compCompile() + 0x5987 bytes clr.dll!RaiseFailFastExceptionOnWin7() + 0x6b bytes clr.dll!WatsonLastChance() + 0x1b8 bytes clr.dll!InternalUnhandledExceptionFilter_Worker() + 0x29c bytes clr.dll!InitGSCookie() + 0x70062 bytes clr.dll!__CorExeMain@0() + 0x71111 bytes msvcr100_clr0400.dll!@_EH4_CallFilterFunc@8() + 0x12 bytes msvcr100_clr0400.dll!__except_handler4_common() + 0x7f bytes clr.dll!__except_handler4() + 0x20 bytes ntdll.dll!ExecuteHandler2@20() + 0x26 bytes ntdll.dll!ExecuteHandler@20() + 0x24 bytes ntdll.dll!_KiUserExceptionDispatcher@8() + 0xf bytes KernelBase.dll!_DebugBreak@0() + 0x2 bytes test_mixed.exe!01031009() ``` This is the call stack in the first test (dialog with choices "close" and "debug"): ``` ntdll.dll!_ZwWaitForMultipleObjects@20() + 0x15 bytes ntdll.dll!_ZwWaitForMultipleObjects@20() + 0x15 bytes kernel32.dll!_WaitForMultipleObjectsExImplementation@20() + 0x8e bytes kernel32.dll!_WaitForMultipleObjects@16() + 0x18 bytes kernel32.dll!_WerpReportFaultInternal@8() + 0x124 bytes kernel32.dll!_WerpReportFault@8() + 0x49 bytes kernel32.dll!_BasepReportFault@8() + 0x1f bytes kernel32.dll!_UnhandledExceptionFilter@4() + 0xe0 bytes ntdll.dll!___RtlUserThreadStart@8() + 0x369cc bytes ntdll.dll!@_EH4_CallFilterFunc@8() + 0x12 bytes ntdll.dll!ExecuteHandler2@20() + 0x26 bytes ntdll.dll!ExecuteHandler@20() + 0x24 bytes ntdll.dll!_KiUserExceptionDispatcher@8() + 0xf bytes KernelBase.dll!_DebugBreak@0() + 0x2 bytes test_native.exe!00af1009() ``` The difference starts in ntdll.dll!Executehandler2@20. In a non-.net application it calls `ntdll.dll!@_EH4_CallFilterFunc`. In a .net application is calls `clr.dll!__except_handler4`.
Behavior of DebugBreak differs between unmanaged and mixed (unmanaged+managed) application?
CC BY-SA 2.5
null
2010-09-02T17:53:25.970
2010-09-10T15:53:55.570
2010-09-03T09:29:35.973
17,034
163,551
[ ".net", "debugbreak" ]
3,630,012
1
3,630,060
null
0
123
I'm using [jsvalidate](http://www.jsvalidate.com/docs/) and I want to require some fields only when the user selects a yes (Sí) on my form here: ![alt text](https://i.stack.imgur.com/n6Lf6.png) A required validation field on jsvalidate is implemented writing `class="jsquerired"` on the select element. How can I make `class="jsquerired"` appear if the user clicks "Sí" on my select? Example:`<input class="jsrequired jsvalidate_email texto" name="emailRecomendado" type="text" size="30"/>`
custom validation with jsvalidate
CC BY-SA 2.5
null
2010-09-02T18:24:57.263
2010-09-02T18:32:11.613
null
null
45,963
[ "javascript", "validation" ]
3,630,126
1
3,663,499
null
0
536
I have a UIView subclass that I'm drawing a PDF onto (using a CATiledLayer). I also need to draw on a specific region of that PDF, however the coordinate plane of the CATiledLayer when using CG to draw is way screwy. See image: ![alt text](https://i.stack.imgur.com/aYtJl.png) I have a point (200,200), that I need to convert to the CATiledLayer's coordinate system, which is the 2nd plane shown above. I've tried doing this with some transforms, but nothing seems to work. Thanks!
Convert CGPoint between iPhone & CA planes
CC BY-SA 2.5
null
2010-09-02T18:40:13.830
2010-09-07T23:33:48.000
null
null
114,696
[ "iphone", "core-animation", "core-graphics", "cgaffinetransform", "catiledlayer" ]
3,630,162
1
3,630,219
null
1
844
I absolutely love the Source Code Ouliner power toy that I use in VS2005 but am upgrading to 2010 and it seems they haven't yet released a new version. Is there anything similar that shows you a basic outline of the file you are currently navigating? ![alt text](https://i.stack.imgur.com/jIZS1.png)
Is there something similar to Source Code Outliner Power Toy for VS2010?
CC BY-SA 2.5
null
2010-09-02T18:44:03.167
2011-03-18T23:49:09.140
null
null
176,755
[ "vb.net", "visual-studio-2010", "ide" ]
3,630,720
1
3,630,752
null
1
1,272
I've made gradient images using PHP GD horizontal and vertical but how can you get images like these. ![alt text](https://i.stack.imgur.com/6yxfU.png) ![alt text](https://i.stack.imgur.com/2WBnA.png) These are example images [for the Emulate Gradient Fill PHP class](http://planetozh.com/blog/my-projects/images-php-gd-gradient-fill/) I want to know how to make these from , the website is an example
PHP GD center gradient
CC BY-SA 2.5
null
2010-09-02T19:57:14.040
2010-09-02T20:17:07.933
2010-09-02T20:07:07.083
1,246,275
1,246,275
[ "php", "image", "gd", "center", "gradient" ]
3,630,951
1
3,631,047
null
1
3,620
here is the live link: [http://mrgsp.md:8080/a/Account/SignIn](http://mrgsp.md:8080/a/Account/SignIn) the main div (green one) doesn't take 100% of the screen height you will notice this only if you have a big screen![alt text](https://i.stack.imgur.com/C47Fk.gif) and the code is basically ``` <body> <div class="loginpage"> <div id="loginbox">stuff inside loginbox</div> </div> </body> .loginpage { background:none repeat scroll 0 0 green; padding:200px; } ```
div doesn't take the whole height / is not 100%
CC BY-SA 2.5
null
2010-09-02T20:26:02.483
2022-04-21T03:20:42.877
2010-09-02T20:36:25.173
112,100
112,100
[ "html", "css" ]
3,631,034
1
28,005,601
null
6
1,968
I need same output from Inkscape and Imagick. This is the expected result, exported from Inkscape. ![corect image](https://i.stack.imgur.com/RMTx8.png) However, the PHP code below outputs the following faulty result. ![wrong image](https://i.stack.imgur.com/imNEX.png) ``` <?php $im = new Imagick(); $im->setResolution(400,400); $im->setBackgroundColor(new ImagickPixel('transparent')); $im->readImageBlob(str_replace(array("color1", "color2"), array("yellow", "blue"), file_get_contents("img.svg"))); $im->setImageFormat("png"); header("Content-type: image/png"); echo $im; ?> ``` ``` <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="400" height="400"> <rect width="100%" height="100%" fill="green" /> <path d="M250 150 L150 350 L350 350 Z" opacity="0.9" fill="color1" /> <path d="M150 50 L50 250 L250 250 Z" opacity="0.9" fill="color2" /> </svg> ```
Imagick doesn't render svg opacity properly
CC BY-SA 3.0
0
2010-09-02T20:36:18.387
2015-01-17T23:44:27.570
2013-06-20T05:20:29.340
1,608,072
160,386
[ "php", "svg", "opacity", "imagick" ]
3,631,325
1
3,631,776
null
4
600
I try to recognize pictures of every digit. I have removed everything else than the digit so that there is almost no noise other than the digit is placed differently on the pictures. I use Neuroph's image recognizing gui and have some questions about training. It seems that the larger resolution I use for the pictures the worser the training becomes. Why is this? I have 100 pictures in my training set. 10 of each digit. Is that maybe too little? Why is every training no matter what i do just converging to some number usually between 2-3 in total network error. Hope that you can help. EDIT: Here is a picture of one of the trainings ![alt text](https://i.stack.imgur.com/anaRq.jpg) It doesn't learn much
Neural Network Training
CC BY-SA 2.5
null
2010-09-02T21:13:19.780
2010-09-03T17:11:23.430
2010-09-02T21:52:40.483
407,120
407,120
[ "java", "neural-network", "image-recognition" ]
3,632,016
1
3,637,630
null
0
4,695
We're developing a web application using Tomcat and a number of other libraries, and we're having issues using the "Java EE Module Dependencies" page in Eclipse to assign dependencies to be placed in the lib/ directory of the webapp. (See screenshot) The issue we're having is that while most of our projects show up as available dependencies, a few are missing. We've done our research, and on some machines all of our projects appear properly, but not on others. Is there any rhyme or reason to the missing projects? ![alt text](https://i.stack.imgur.com/VhLz0.png)
Java EE Module Dependencies page in Eclipse missing projects
CC BY-SA 2.5
null
2010-09-02T23:25:49.730
2010-09-03T16:18:30.067
null
null
88,111
[ "java", "eclipse", "tomcat", "jakarta-ee", "dependencies" ]
3,632,253
1
3,635,184
null
1
4,269
I am trying to make an AlertDialog that scales in size to the content. The textual content can be larger than the dialog, so it has to be able to scroll. If I use a RelativeLayout everything renders properly no matter how much info there is, but when there is not enough text to fill up the TextView it leaves a lot of extra space. This is the code: ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="6dip" android:paddingLeft="12dip" android:paddingRight="12dip" android:paddingBottom="2dip" > <CheckBox android:id="@+id/saleListingCheckbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Save sale" android:textColor="#fff" android:layout_alignParentBottom="true" > </CheckBox> <ScrollView android:id="@+id/saleListingLinear" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@id/saleListingCheckbox" android:layout_alignParentTop="true" > <TextView android:id="@+id/saleListingTextView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#fff" android:textSize="7pt" android:paddingBottom="4dip" /> </ScrollView> </RelativeLayout> ``` java code: ``` @Override protected boolean onTap(int index) { if (overlays.isEmpty()) { return false; } final SaleOverlayPushPin saleItem = overlays.get(index); AlertDialog alertDialog = new AlertDialog.Builder(context).create(); alertDialog.setButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); LayoutInflater inflater = context.getLayoutInflater(); dialogView = inflater.inflate(R.layout.sale_listing, null); textView = (TextView) dialogView.findViewById(R.id.saleListingTextView); checkbox = (CheckBox) dialogView.findViewById(R.id.saleListingCheckbox); checkbox.setOnCheckedChangeListener(this); alertDialog.setView(dialogView); alertDialog.setTitle(saleItem.getTitle()); textView.setText(saleItem.getSnippet()); checkbox.setTag(saleItem); checkbox.setChecked(saleItem.isSelected()); alertDialog.show(); return true; } ``` And here is what it looks like with little data and a lot of data: ![alt text](https://i.stack.imgur.com/Yilf3.png)![alt text](https://i.stack.imgur.com/n0gBh.png) I have been able to make it work using a LinearLayout, but then I have a different problem where if the text content is larger than the dialog it cuts off the checkbox. Here is the code and the screenshots: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="6dip" android:paddingLeft="12dip" android:paddingRight="12dip" android:paddingBottom="2dip" android:orientation="vertical" > <ScrollView android:id="@+id/saleListingLinear" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="top" > <TextView android:id="@+id/saleListingTextView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#fff" android:textSize="7pt" android:paddingBottom="4dip" /> </ScrollView> <CheckBox android:id="@+id/saleListingCheckbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Save sale" android:textColor="#fff" android:layout_weight="1" android:layout_gravity="bottom" > </CheckBox> </LinearLayout> ``` ![alt text](https://i.stack.imgur.com/0om7P.png)![alt text](https://i.stack.imgur.com/4Ktmg.png) I would prefer that the "little data" behavior works like the LinearLayout and the "lot of data" work like the RelativeLayout. Is this possible? UPDATE: bart's solution for the LinearLayout works perfectly. Removing the layout_weight from the CheckBox was the key. However the RelativeLayout still does not work as expected. It makes the CheckBox unviewable if the data in the TextView is large enough. I would still love to know the solution for the RelativeLayout if at all possible. See below: ![alt text](https://i.stack.imgur.com/G6bqU.png)
RelativeLayout in dialog has extra space
CC BY-SA 2.5
null
2010-09-03T00:31:55.677
2011-05-26T22:48:13.833
2010-09-03T15:10:16.597
32,965
32,965
[ "android", "android-relativelayout" ]
3,632,338
1
null
null
8
5,593
I have a WCF client/service with net.tcp transport. When I turn on the WCF tracing on client side I am seeing the following errors in trace (see screenshot from service trace viewer). The strange thing is that WCF is handling and recovering this error and my client doesn't receive any exception and it continues to work. This exception happens freqently, randomly but not on every web method call. The client (windows XP) authentication is windows, service is identified by SPN, services are self-hosted on windows service behind an NLB (windows server 2003). Can anyone explain me what is happening here. The exception stacktrace from the trace xml is: ``` <ExceptionString> System.ServiceModel.Security.MessageSecurityException: The server rejected the upgrade request. ---&gt; System.ServiceModel.ProtocolException: Error while reading message framing format at position 0 of stream (state: ReadingUpgradeRecord) ---&gt; System.IO.InvalidDataException: More data was expected, but EOF was reached. --- End of inner exception stack trace --- --- End of inner exception stack trace --- </ExceptionString> ``` ![Screenshot](https://i.stack.imgur.com/VVfGt.png):
Strange WCF net.tcp exception
CC BY-SA 2.5
null
2010-09-03T00:54:35.637
2010-11-04T23:51:32.330
2010-09-03T01:33:16.747
11,711
11,711
[ "wcf", "tcp", "wcf-security" ]
3,632,368
1
3,634,089
null
8
2,993
FIXED by setting near clipping plane to 1, rather than 0 (not sure why it was like that to start with). See the question for skeleton code, and Adrian's answer for how and why this works. I have a few different camera positions, and my scene consists of a single quad. The quad is such that it projects exactly onto the viewport/window in the first frame. I want to project a texture from this camera position onto the quad. The texture also covers the viewport exactly. The first thing I did was ``` // GL_QUADS... glTexCoord2f( /*one corner of s,t space*/); glVertex3f(/* appropriate vertex */);; ``` and ended up with something like (picture not mine) ![alt text](https://i.stack.imgur.com/YSsSa.gif) And then I realised yes, of course, it needs to be a transformation. According to [these notes](http://www.opengl.org/resources/code/samples/sig99/advanced99/notes/node80.html): 1. A modelview transform to orient the projection in the scene. 2. A projective transform (perspective or orthogonal). 3. A scale and bias to map the near clipping plane to texture coordinates. Now that it works, here's a rough implementation of the code: ``` // in init code glEnable(GL_TEXTURE_2D); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); double ratio = width/height; // set up FROM modelview matrix glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluPerspective(pcam._fov/ratio, ratio, 1, far_z); gluLookAt(/* FROM camera's parameters */); glTexGeni(GL_Q, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR); //S, T, R and Q GLfloat Splane[] = {1.f, 0.f, 0.f, 0.f}; //S, T, R and Q, diagonal glTexGenfv(GL_S,GL_EYE_PLANE,Splane); //S, T, R and Q // -- load and bind texture -- glEnable(GL_TEXTURE_GEN_S); //S, T, R and Q // scale and bias glMatrixMode(GL_TEXTURE); glPushMatrix(); glLoadIdentity(); glTranslatef(0.5,0.5,0.0); glScalef(0.5,0.5,1); gluPerspective(cam._fov/ratio, ratio, 1, far_z); gluLookAt(/* TO camera's parameters */); glBegin(GL_QUADS); glVertex3f(/* for each vertex */); glEnd(); glDisable(GL_TEXTURE_GEN_S); //S, T, R and Q ```
Projecting a texture in OpenGL
CC BY-SA 2.5
0
2010-09-03T01:03:01.400
2013-10-16T07:24:15.043
2010-09-04T17:46:13.700
428,481
428,481
[ "c++", "opengl", "3d", "graphics" ]
3,632,751
1
3,632,768
null
2
815
I've got a path that is made up of multiple points - i.e. 0,0 0,50 50,50 70,20 If I just draw this line on the screen it looks quite harsh as it puts a sharp angle at the joining of each point. Hence I was wondering what the bezier curves algorithm/method would look like which I could call that automatically change the sharp angles to "tight" curves? I wouldn't want the curve to be too big or generally effect the fall of main path, just soften the join out. If you have a look at the below here is a quick sample I have put together. The line on the left is what I have now, the one in the middle is the line I want. The image on the right represents what I think I need the algorithm to do. Essentially, I add an additional point to each arc that makes up the join at a point which 10% away from the join, then I remove the join point and adjust the handles so that they are where the point was (not in the diagram they are slightly apart, this is just so that you can see). This is what I need to be able to do. ![alt text](https://i.stack.imgur.com/EKY7U.jpg)
Bezier curves algorithm - maybe Canonical Splines?
CC BY-SA 2.5
0
2010-09-03T02:46:56.237
2010-09-03T15:36:11.350
2010-09-03T14:56:11.520
90,922
90,922
[ ".net", "wpf", "algorithm", "path-finding", "bezier" ]
3,632,928
1
3,654,408
null
1
2,108
i have created a `RibbonGallery/ComboBox` to display a list of installed fonts. ![alt text](https://i.stack.imgur.com/H48Vv.jpg) but sometimes after entering say "V" this is what i get ![alt text](https://i.stack.imgur.com/kUF04.jpg) look at the text in the menu. ``` [Font Family: Name=... ``` why is that happening. ``` // xaml <ribbon:RibbonComboBox Label="Gallery"> <ribbon:RibbonGallery SelectedValue="ABC" SelectedValuePath="Content" MaxColumnCount="1"> <ribbon:RibbonGalleryCategory x:Name="fontsMenu" /> </ribbon:RibbonGallery> </ribbon:RibbonComboBox> // code behind InstalledFontCollection col = new InstalledFontCollection(); fontsMenu.ItemsSource = col.Families; fontsMenu.DisplayMemberPath = "Name"; ```
WPF: Data binding & Display member path
CC BY-SA 2.5
0
2010-09-03T03:45:38.320
2010-09-06T21:29:48.743
null
null
292,291
[ "c#", "wpf", "ribbon" ]
3,633,238
1
3,633,250
null
1
10,710
I may be asking something silly but I don't see any sql*plus or any GUI kind of interface to connect my Oracle server remotely. I tried SQL Plus but it's a command line interface, don't know what to do with that. ![alt text](https://i.stack.imgur.com/seeD3.png)
How to use Oracle 11g client?
CC BY-SA 2.5
null
2010-09-03T05:26:10.223
2010-09-04T13:12:27.053
null
null
263,357
[ "oracle", "oracle11g" ]
3,633,370
1
3,793,561
null
5
9,221
I am a newbie to android development.Now i would like to do gallery view as circular like image as below.The things is that i want to enlarge the center image when user scroll from left to right and right to left. Is there any tutorials for that ? ![enter image description here](https://i.stack.imgur.com/zcYhp.png) what I want is the image that's been swiped need to be enlarged while it's at the center. I thought I could do it with Gallery. but the example from the android developer is not the one I want. :(
android circular gallery?
CC BY-SA 3.0
0
2010-09-03T06:00:12.590
2012-02-07T06:44:47.080
2012-02-07T06:44:47.080
379,693
405,219
[ "android", "android-gallery", "android-image" ]
3,633,558
1
null
null
2
9,267
i got the alert as an error occurred when open the eclipse... that log file contains the following error... ``` !SESSION 2010-09-03 11:59:03.157 ----------------------------------------------- eclipse.buildId=I20090611-1540 java.version=1.6.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product !ENTRY org.eclipse.equinox.p2.reconciler.dropins 4 0 2010-09-03 11:59:05.171 !MESSAGE !STACK 0 org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.provisional.p2.director; version="0.0.0" at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313) at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330) !ENTRY org.eclipse.osgi 4 0 2010-09-03 11:59:05.265 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.wst.server.preview.preview, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.rose.Rose2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.pde.build.Build, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.wst.jsdt.core.JavaCodeFormatter. at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242) at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) !ENTRY org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved: !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE Bundle reference:file:plugins/org.eclipse.wst.server.http.ui_1.0.200.v20090113.jar was not resolved. !SUBENTRY 2 org.eclipse.wst.server.http.ui 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.ui.forms_[3.2.0,4.0.0). !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE Bundle reference:file:plugins/org.eclipse.jst.j2ee.ejb.annotations.ui_1.1.102.v200805140020.jar was not resolved. !SUBENTRY 2 org.eclipse.jst.j2ee.ejb.annotations.ui 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0). !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE Bundle reference:file:plugins/org.eclipse.wst.xml.ui_1.1.2.v201001222130.jar was not resolved. !SUBENTRY 2 org.eclipse.wst.xml.ui 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0). !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE Bundle reference:file:plugins/org.eclipse.mylyn.tasks.search_3.4.0.v20100608-0100-e3x.jar was not resolved. !SUBENTRY 2 org.eclipse.mylyn.tasks.search 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0. !SUBENTRY 2 org.eclipse.mylyn.tasks.search 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.ui.forms_0.0.0. !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE Bundle reference:file:plugins/org.eclipse.datatools.sqltools.db.generic_1.0.0.v200906020900.jar was not resolved. !SUBENTRY 2 org.eclipse.datatools.sqltools.db.generic 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0). !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE Bundle reference:file:plugins/org.eclipse.wst.xsl.debug.ui_1.0.0.v200904240436.jar was not resolved. !SUBENTRY 2 org.eclipse.wst.xsl.debug.ui 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0). !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 !MESSAGE Bundle reference:file:plugins/org.eclipse.jst.server.ui_1.1.0.v20090421.jar was not resolved. !SUBENTRY 2 org.eclipse.jst.server.ui 2 0 2010-09-03 11:59:05.811 !MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0). !SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811 ``` ![alt text](https://i.stack.imgur.com/TF3m2.jpg)
eclipse problem
CC BY-SA 2.5
0
2010-09-03T06:46:32.487
2013-04-12T15:58:40.040
2010-09-03T07:00:11.427
421,645
421,645
[ "eclipse" ]
3,633,580
1
3,635,704
null
1
319
I have developed a cake php application. In this there are tables like students,placements,batches,companies In placements table there is student_id,company_id and in students table there is batch_id column. In placements index page i have applied jq grid. Here is the screen shot. ![alt text](https://i.stack.imgur.com/CJU1w.jpg) I want to give searching on student,company and batch. For this i have used containable behavior inside placements controller index function. ``` if( $this->params['url']['_search'] == 'true' ) /* For Searching*/ { //pr($this->params); $searchconditions = array(); if( isset($this->params['url']['studentname']) && !empty($this->params['url']['studentname']) ) { array_push(&$searchconditions, array('Student.fullname LIKE' => $this->params['url']['studentname'] . '%')); } if( isset($this->params['url']['companyname']) && !empty($this->params['url']['companyname']) ) { array_push(&$searchconditions, array('Company.name LIKE' => $this->params['url']['companyname'] . '%')); } if( isset($this->params['url']['batchname']) && !empty($this->params['url']['batchname']) ) { array_push(&$searchconditions, array('Batch.name LIKE' => $this->params['url']['batchname'] . '%')); } $result = $this->Placement->find('all', array( 'fields' => array('id','student_id','company_id'), 'contain' => array( 'Student' => array( 'fields' => array('id','fullname','batch_id'), 'Batch' => array( 'fields'=> array('id','name') ) ), 'Company' => array( 'fields' => array('id','name') ) ), 'conditions' => $searchconditions, 'order' => $sort_range, 'limit' => $limit_range )); } else /* Default display*/ { $result = $this->Placement->find('all', array( 'fields' => array('id','student_id','company_id'), 'contain' => array( 'Student' => array( 'fields' => array('id','fullname','batch_id'), 'Batch' => array( 'fields'=> array('id','name') ) ), 'Company' => array( 'fields' => array('id','name') ) ), 'order' => $sort_range, 'limit' => $limit_range )); } ``` The grid is populated fine with student name , company name and batch name (if case). Searching is also working fine in case i searched by student name & company name but when i tried to search by batch name i get the following error: ``` Warning (512): SQL Error: 1054: Unknown column 'Batch.name' in 'where clause' [APP\vendors\cakephp\cake\libs\model\datasources\dbo_source.php, line 681] Query: SELECT `Placement`.`id`, `Placement`.`student_id`, `Placement`.`company_id`, `Student`.`id`, `Student`.`fullname`, `Student`.`batch_id`, `Company`.`id`, `Company`.`name` FROM `placements` AS `Placement` LEFT JOIN `students` AS `Student` ON (`Placement`.`student_id` = `Student`.`id`) LEFT JOIN `companies` AS `Company` ON (`Placement`.`company_id` = `Company`.`id`) WHERE `Batch`.`name` LIKE 'df%' ORDER BY `Placement`.`id` asc LIMIT 0,10 ``` I think the relation between student & batch is not working as can be seen from the query. I am unable to figure out why it is behaving as such. Please help me on this. Thanks
How do i implement search on third level using containable behavior
CC BY-SA 2.5
null
2010-09-03T06:51:55.810
2010-09-03T12:48:13.180
2010-09-03T11:15:11.443
104,698
146,192
[ "search", "jqgrid", "cakephp-1.3", "containable" ]
3,633,670
1
null
null
-1
260
I 've installed magento and it seems to work, but if I want to save a new Catalog_product_set with different attributes then I get Internal Error Message with Status Code 500 Does anyone have the same problem? Thanks in advance cheers tabaluga ![alt text](https://i.stack.imgur.com/qAgb2.png)
Magento doesn't save my catalog_product_set, what can I do?
CC BY-SA 2.5
null
2010-09-03T07:06:11.767
2011-05-11T07:33:05.937
2010-09-03T09:27:54.773
383,695
383,695
[ "magento" ]
3,633,797
1
3,633,934
null
0
601
I got this mockup, I need to load dynamically pictures from a db and once loaded I need to click on each picture in order to mark what scholar will be promoted to the next grade, I'm figuring out mark it with a star image when I click on the picture, maybe an overlay div on each image that it is activated when I do click. Any idea how can I make a dynamic selectable list (ordered list) and add an hidden div with an image on each picture? ![alt text](https://i.stack.imgur.com/Y7qmR.png)
Dynamic Ordered list with jquery selectable control
CC BY-SA 3.0
null
2010-09-03T07:31:22.400
2018-04-15T14:04:44.263
2018-04-15T14:04:44.263
1,033,581
114,747
[ "jquery", "jquery-ui", "html-lists", "jquery-ui-selectable" ]
3,633,823
1
6,584,597
null
4
2,571
Im trying to implement an activity that uses ExpandableListView and I have gotten so far but now I have found some strange behavior. My activity is meant to record food intake as specified by the user. they have a choice of menus (breakfast, lunch and dinner - the outer group) which expand to show their contents. when a user clicks on an inner menu item a dialog appears asking them for the qty. once they enter a qty and dismiss the dialog the text on the menu item changes to reflect the quantity of that item that has been consumed ![fig 1](https://i.stack.imgur.com/BWxmm.jpg) The above image shows the list in a closed state. below is the list after I have opened the lunch menu and clicked on 'Potato Chips' and indicating a Quantity of 1. As you can see the 'Potato' itemtext has now been changed to reflect the Qty of 1. ![fig 2](https://i.stack.imgur.com/Nyi6p.jpg) The strange part happens now. if I click on 'Lunch' and close the list and then click on it again re-opening it, the 'Qty X 1' text has jumped to another item (Milk) ![alt text](https://i.stack.imgur.com/MopI2.jpg) each time I open and close the list it jumps back and forth between the two items. Also if I open up other items, such as breakfast, I find that they too have now gotten items with 'Qty X 1' even though I havent clicked them. The bits of code that are relevant are as such: The XML for a child element: ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/childname" android:paddingLeft="50dip" android:textSize="14dip" android:textStyle="italic" android:layout_width="200dip" android:textColor="@color/black" android:layout_height="40dip"/> <TextView android:id="@+id/qty_display" android:text="-" android:textSize="14dip" android:textStyle="italic" android:layout_width="50dip" android:textColor="@color/black" android:layout_height="wrap_content"/> </LinearLayout> ``` The code thats triggered on clicking a child element: ``` public boolean onChildClick( ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { // open the dialog and inflate the buttons myDialog = new Dialog(this); myDialog.setTitle("Food Item Qty"); myDialog.setContentView(R.layout.food_intake_dialog); final Button ok = (Button)myDialog.findViewById(R.id.fi_ok_but); Button cancel = (Button)myDialog.findViewById(R.id.fi_cancel_but); //the id for this item is stored as a hash key in a map (say, item_id01) String key = "item_id"+groupPosition+""+childPosition; current_selected_food_item_id = Integer.parseInt(itemMap.get(key)); // inflate the textview that shows the qty for this item on the expandablelist barQty = (TextView) v.findViewById(R.id.qty_display); // set the ok button to record teh quantity on press ok.setOnClickListener(new OnClickListener() { public void onClick(View viewParam) { //inflate the input box that receives quantity from user EditText fiQty = (EditText) myDialog.findViewById(R.id.fiQty); // get the quantity and append the text on hte list item String qty = fiQty.getText().toString(); barQty.setText("Qty X "+qty); //open the database and save state FoodIntake.this.application.getFoodIntakeHelper().open(); FoodIntake.this.application.getFoodIntakeHelper().storeFoodIntakeLog(current_selected_food_item_id,qty,visit_id,remote_visit_id); String log = FoodIntake.this.application.getFoodIntakeHelper().getFoodIntakeLog(visit_id); FoodIntake.this.application.getFoodIntakeHelper().close(); // append the main food intake list and close the dialog list.setText("Food Intake Log:\n\n"+log); myDialog.cancel(); } }); ``` The above code opens a dialog, accepts a value for quantity, appends the list element to reflect this, also saves to database and sets a textview with the selected item and quantity. Sorry to just dump a whole load of code, but this has me stumped and hopefully someone can help. Thanks Kevin
Strange behaviour in Expandablelistview - Android
CC BY-SA 2.5
0
2010-09-03T07:37:09.010
2019-05-15T12:59:21.230
2010-09-03T07:43:23.630
409,826
409,826
[ "java", "android", "expandablelistview", "expandablelistadapter", "settext" ]
3,634,086
1
3,861,600
null
9
2,643
I've added some buttons to my app with a background image (RESET button below), but the corners are quite as expected. See below: ![alt text](https://i.stack.imgur.com/U4wG4.png) The bottom left and right corners of the RESET button seem to be squared. My original image has rounded corners. Anyone come across this problem before ?
iPhone - Buttons background image
CC BY-SA 2.5
null
2010-09-03T08:24:55.987
2010-10-05T11:10:52.760
null
null
387,552
[ "iphone", "button" ]
3,634,444
1
3,751,585
null
6
4,863
I am drawing some textures with alpha channel, but when they are displayed it looks like the alpha channel is only binary. So a pixel is either transparent or opaque, although in the texture file itself the pixel is half-transparent. The blending is set up like this: ``` gl.glEnable(GL10.GL_BLEND); gl.glBlendFunc(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA); ``` Is there a workaround for this problem? The above shows how it should be like, and the below shows how it is: ![alt text](https://i.stack.imgur.com/ciQBC.png)
android/opengles alpha textures not semitransparent but binary transparent
CC BY-SA 2.5
0
2010-09-03T09:21:22.590
2010-09-20T14:58:51.853
2010-09-12T01:51:18.353
105,170
97,688
[ "android", "opengl-es", "transparency", "textures", "alphablending" ]
3,634,538
1
3,641,853
null
6
2,427
I'm seeing my app being jettisoned due to low memory. In trying to track down the problem, I ran the app through the Allocations instrument. Unfortunately, I couldn't see any problem with the memory usage when it was killed. At the time of ejection, the app was playing a video, and had been for about 45 seconds. There were no touches or other events as far as I can tell that contributed. The crash report and a shot of instruments: ``` Incident Identifier: AF9F802D-F9B9-406D-951F-675AEE9ACCDF CrashReporter Key: 0563d9f62086be9f13ffd2d60b3b0bec7c5d677e OS Version: iPhone OS 3.2.1 (7B405) Date: 2010-09-03 10:28:20 +0100 Free pages: 693 Wired pages: 22014 Purgeable pages: 0 Largest process: Wheel Processes Name UUID Count resident pages Wheel <7c2db04027d9b0c387b2389c64499ebe> 18864 (jettisoned) (active) DTMobileIS <b34df288cd9a07a995933bbd6b66717a> 1697 notification_pro <4c9a7ee0a5bbe160465991228f2d2f2e> 72 notification_pro <4c9a7ee0a5bbe160465991228f2d2f2e> 72 syslog_relay <1c73f841b191556b6911bc6b4736b50f> 71 ptpd <e3f855cfd629600a4812e7e90c77667e> 253 lsd <eb108595d2a932a8d244d1ab7386cd0f> 162 notifyd <74e4a487a89c31f68917b22605baf6c6> 63 BTServer <21dd98c0ab29b910cd51cb703a9cb9b9> 213 CommCenter <e4b9cc04f083f22232c92ee1363fe669> 187 SpringBoard <745085d9a24a8529f0ceb6c33d766873> 4281 (active) accessoryd <59ca0ba146c28bf5c8ab6e3d2e81bbad> 112 configd <36001fe17103f8af6d3b525cb23ac8a0> 356 fairplayd.K48 <2d997ffca1a568f9c5400ac32d8f0782> 81 locationd <60fd4d90fec18a76ffc0b8a45351fe54> 626 mDNSResponder <a6f01dd493e3d2bfe318f5d44f8508e2> 144 mediaserverd <2eda3ce5e1c8a1a4d7b8271cef1f2d12> 1624 lockdownd <378f09833cdc57b1b60e42d79c355938> 283 MobileStorageMou <7f2cd9f90fab302a42a63460b1c4d775> 72 syslogd <6990426209e51a8ee13c91cd1a050a2e> 69 launchd <880e75c2db9c0f670516c58935e89b58> 88 **End** ``` ![Instruments](https://imgur.com/9BOEs.png) Is there anything else I can do to trace the cause of the jettison? Does anyone know what the Count resident pages number in the crash report means? Is there any way of getting the count of resident pages as the app runs?
iPad Application jettisoned while Allocations Instrument shows no unusual memory usage
CC BY-SA 2.5
0
2010-09-03T09:39:46.057
2010-09-04T10:25:20.610
2010-09-03T12:35:09.100
12,037
12,037
[ "iphone", "ipad", "memory-management", "instruments" ]
3,634,634
1
3,658,885
null
0
343
I'm developing a [Struts2](http://struts.apache.org/2.x/index.html) application that uses [Sitemesh](http://www.opensymphony.com/sitemesh/) as template engine. What I need is a list of all the templates (JSP) that are used by request. In other projects I use [Django Framework](http://www.djangoproject.com/), with it I've this amazing [Debug Toolbar](http://robhudson.github.com/django-debug-toolbar/) that, besides many other useful info, provides me with the list of templates the request used for displaying the page. ![Django Debug Toolbar - Template Section](https://i.stack.imgur.com/Er4dQ.png) This list is surprisingly helpful when in have more than 600 templates that forms a intricate template web and I need to change a `<br />` to a `<p></p>` in one of them. Well I don't expect anything as nice as this for Struts2, just a raw list of `LOG.debug(<template>);` will make my work so much easier.
Django debug toolbar template listing feature for Struts2
CC BY-SA 2.5
0
2010-09-03T09:54:22.720
2010-09-07T13:01:28.267
2010-09-06T10:12:30.020
151,918
151,918
[ "java", "debugging", "servlets", "struts2", "sitemesh" ]
3,634,663
1
3,636,303
null
9
4,933
One neat typographic effect often seen headlines in magazines etc, is to select a really bold font and put an image inside of the text. Here's a random example of the effect: ![alt text](https://i.stack.imgur.com/1ieF4.jpg) In web design, there is no way to do this with plain html/css/js. It could be done with flash or with a bitmap image but those techniques obviously have some big drawbacks. I wonder if it is possible to do this with SVG though? I have never ever used SVG, but if this is possible, it might be worth trying to wrap my head around it. For instance, would it be possible to let a javascript go through the page and look for certain elements (h1s or certain classes) and generate, on the fly, an SVG file that contains selectable text in the chosen font with an image clipped to the letter shapes? Does anyone know if this has been done, tutorials, anything else that might be interesting for looking at this problem...
Masking an image with selectable text with SVG - possible?
CC BY-SA 2.5
0
2010-09-03T09:59:49.597
2013-12-24T22:45:32.283
null
null
313,910
[ "svg", "masking" ]
3,634,775
1
3,763,851
null
2
655
Does anybody knows if the TFS 2010 Warehouse database (the one supposed to be used for reporting) keeps any information about the checkin comments for a changeset? I can see the information via the TFS Explorer, like this ![image of tfs comments](https://i.stack.imgur.com/nulWI.gif) But if I try to extract the same information from the Warehouse database, also selecting every data from the changeset and code churn tables, I'm not able to find it (I've also tried to open every single database table!) ``` select * from FactWorkItemChangeset fwics join DimChangeset dcs on fwics.ChangesetSK=dcs.ChangesetSK where dcs.ChangesetID = 145640 ``` Thanks in advance. Regards Massimo
Find checkin comment info in TFS2010 Warehouse
CC BY-SA 2.5
null
2010-09-03T10:14:54.730
2020-07-14T18:17:24.053
2020-07-14T18:17:24.053
3,744,182
11,673
[ "tfs", "tfs-2010" ]
3,634,828
1
3,635,524
null
0
175
someone would have a script idea to place an info bubble from right to left when it has no place in the browser window? thank you for your answers ... ``` // Detection du navigateur ns4 = (document.layers)? true:false; ie4 = (document.all)? true:false; // Decallage de l'infobulle par rapport au pointeur en X et en Y (en pixels) decal_x = 10; decal_y = 0; // Creation d'un raccourci pour manipuler le calque var skn = (ns4) ? document.bulle : bulle.style; // Instruction pour Netscape if (ns4) document.captureEvents(Event.MOUSEMOVE); // Interception des mouvements du pointeur // Celui-ci est activé et désactivé par les fonctions // reactiverMouseMove() et desactiverMouseMove() //document.onmousemove = suivre_souris; function popAccueil(nom,adresse,tel,fax,mail) { var contenu; contenu = "<table border='0' cellspacing='0' cellpadding='5' width='200'><tr><td bgcolor='#CCCCFF'>"; contenu += nom + "</td></tr><tr><td bgcolor='#CCCCFF'><u>Adresse</u>: "; contenu += adresse + "</td></tr><tr><td bgcolor='#CCCCFF'><u>Tel</u>: "; contenu += tel + "</td></tr>"; if (fax != null && fax != '') { contenu += "<tr><td bgcolor='#CCCCFF'><u>Fax</u>: " +fax + "</td></tr>"; } if (mail != null && mail != '') { contenu += "<tr><td bgcolor='#CCCCFF'><u>Mail</u>: " + mail + "</td></tr>"; } contenu +="</table>"; if (ns4)// Instructions pour Netscape { skn.document.write(contenu); skn.document.close(); skn.visibility = "visible"; }// Instructions pour Internet Explorer else if (ie4) { document.all("bulle").innerHTML = contenu; skn.visibility = "visible"; } } function popException(exception) { var contenu; //Si exception n'est pas vide on affiche l'info-bulle if(exception!="") { contenu = "<table border='0' cellspacing='0' cellpadding='5' width='200'><tr><td bgcolor='#CCCCFF'>" + exception + "</td></tr></table>"; if (ns4)// Instructions pour Netscape { skn.document.write(contenu); skn.document.close(); skn.visibility = "visible"; }// Instructions pour Internet Explorer else if (ie4) { document.all("bulle").innerHTML = contenu; skn.visibility = "visible"; } } } function pop(message, image) { // Formatage de l'infobulle (ici un tableau bleu) var contenu; if(image == "/stockage/") { contenu = "<table border='0' cellspacing='0' cellpadding='5' width='200'><tr><td bgcolor='#CCCCFF'>" + message + "</td></tr></table>"; } else { contenu = "<table border='0' cellspacing='0' cellpadding='5' width='200'><tr><td bgcolor='#CCCCFF'>" + message + "</td></tr><tr><td><img src="+ image +" border='0'></td></tr></table>"; } // Instructions pour Netscape if (ns4) { skn.document.write(contenu); skn.document.close(); skn.visibility = "visible"; } // Instructions pour Internet Explorer else if (ie4) { document.all("bulle").innerHTML = contenu; skn.visibility = "visible"; } } // Gestion du pointeur function suivre_souris(e) { // Creation des variables de decallage var x = (ns4) ? e.pageX : event.x + document.body.scrollLeft; var y = (ns4) ? e.pageY : event.y + document.body.scrollTop; // Cas particulier pour Internet Explorer sur Mac (les coordonnees de decallages sont modifiees) if ( (navigator.userAgent.indexOf('Mac') != -1) && (navigator.userAgent.indexOf('MSIE') != -1) ) { skn.left = x + decal_x - 135; skn.top = y + decal_y - 155; } // Pour les autres cas, decallage normal du calque par rapport au pointeur else { skn.left = x + decal_x; skn.top = y + decal_y; } } // Fonction pour masquer le calque function disparaitre() { if (ns4) { skn.document.write(''); skn.document.close(); skn.visibility = "hidden"; } else if (ie4) { document.all("bulle").innerHTML = ''; skn.visibility = "hidden"; } } // Désactive la gestion du suivi de souris function desactiverMouseMove(){ document.onmousemove = null; } // Réactive la gestion du suivi de souris function reactiverMouseMove(){ document.onmousemove = suivre_souris; } ``` ![alt text](https://i.stack.imgur.com/ETDQp.jpg) i want when i have this bubble to place from right to left when it has no place in the browser window,when it is displayed outside window
Place an info bubble from right to left when it has no place in the browser window?
CC BY-SA 2.5
null
2010-09-03T10:24:15.560
2010-09-03T12:07:08.220
2010-09-03T11:54:39.600
296,635
296,635
[ "javascript", "html" ]
3,635,031
1
3,635,093
null
5
2,249
![Breadcrumb trail](https://i.stack.imgur.com/YHEEa.jpg) I have a breadcrumb structure similar to the image above. It displays the progress trail of the forms, the form names and the current page being displayed and it also gives the user a guide to the start and end of the process. This was originally put together in classic ASP. What would be the best approach to recreating this in MVC 2 - C# In reply to one of the answers below: I don't want this to be site-wide, I was looking for a breadcrumb solution for a collection of forms - so for example I might have a set of forms for a complaint or a set for suggestions, etc. So I need to be able to pass the form details into something like a helper or function that will then output a similar result as the image above. This is the original classic ASP code that generates the trail.. ``` Class BreadCrumb Private dicCrumbs Private arrIcons() Private arrColours() Public Sub Crumb(Text, Icon) dicCrumbs(Text) = Icon End Sub Private Sub Class_Initialize() Set dicCrumbs = Server.CreateObject("Scripting.Dictionary") ReDim arrIcons(2) arrIcons(0) = "images/selected-process.gif" arrIcons(1) = "images/unselected-process.gif" arrIcons(2) = "images/additional-process.gif" ReDim arrColours(2) arrColours(0) = "#0080C0; font-weight:bold" arrColours(1) = "#999999" arrColours(2) = "#999999" End Sub Public Sub Show() Dim strItem, intCrumbs %> <table style="margin-bottom:10px" class="formbreadcrumbs" cellspacing="0" cellpadding="0" border="0" summary="Bread Crumb Trail"> <tr> <td align="right"><img src="images/left-process30.gif" width="30" height="20" alt=" " /></td> <% intCrumbs = 0 For Each strItem In dicCrumbs intCrumbs = intCrumbs + 1 Response.Write " <td><img src=""" & arrIcons(dicCrumbs(strItem)) & """ width=""25"" height=""20"" alt="" "" /></td>" If intCrumbs < dicCrumbs.Count Then %> <td><img src="images/background-process.gif" width="40" height="20" alt=" " /></td> <td><img src="images/background-process.gif" height="20" width="5" alt=" " /></td> <td><img src="images/background-process.gif" width="40" height="20" alt=" " /></td> <% End if Next %> <td align="left"><img src="images/right-process30.gif" width="30" height="20" alt=" " /></td> </tr> <tr> <% intCrumbs = 0 For Each strItem In dicCrumbs intCrumbs = intCrumbs + 1 Response.Write " <td colspan=""3"" align=""center"" style=""color:" & arrColours(dicCrumbs(strItem)) & "; line-height:0.9em; font-size:x-small"">" & strItem & "</td>" If intCrumbs < dicCrumbs.Count Then %> <td></td> <% End if Next %> </tr> </table> End Sub ``` End Class Many thanks for any suggestions/pointers.
Creating a graphical breadcrumb or process trail in .NET MVC 2
CC BY-SA 2.5
0
2010-09-03T10:54:20.760
2010-09-21T10:09:47.417
2010-09-21T10:09:47.417
199,028
199,028
[ "c#", "asp.net-mvc-2", "breadcrumbs" ]
3,635,608
1
3,730,408
null
7
10,726
I have an with 4 columns. One of the columns contain text which extends the width of the column, thus some of the text are located beneath the next column. ![Example image](https://i.stack.imgur.com/pspZv.jpg) How can I set `white-space` to `normal` for the cells in the listview?
ExtJS: How to wrap text in a ListView with columns?
CC BY-SA 2.5
0
2010-09-03T12:16:53.487
2012-10-18T10:56:17.160
null
null
62,361
[ "listview", "extjs", "word-wrap" ]
3,635,760
1
null
null
0
950
I need to develop a user admin application. My schema looks like the following: ![alt text](https://i.stack.imgur.com/nuH4O.gif) [See full size](https://i.stack.imgur.com/nuH4O.gif) As you can see I've got my own version of the user table and profile tables to store my data with a one-to-one mapping with aspnet membership tables. I'm interested in using ASP.NET dynamics to speed up the proccess of creating an admin system. I would like to create a customised listing with a search and a data grid listing with just basic details such as name and state information, date registered and then when you click to edit your presented with the domain representation of the data and not the exact undelying data. Has anyone any experiece in doing this or building a real work application with Dynamic data? Any tip suggestion, alternative etc.. Thanks
ASP.NET Dynamic Data? Real world user admin application
CC BY-SA 2.5
null
2010-09-03T12:36:35.983
2014-02-01T13:06:08.513
2010-12-12T11:57:20.783
21,234
358,297
[ "asp.net", "dynamic-data" ]
3,636,202
1
3,637,819
null
0
772
OK - at the moment, to validate my pages I am using [Required] in my model in an MVC2 C# project. For eg in my model I have: ``` [DisplayName("Username")] [Required(ErrorMessage = "Please enter a Username")] public string UserName { get; set; } ``` ... and in my view I have ``` <%=Html.ValidationMessageFor(x => x.UserName, "*")%> ``` But then this isn't consistent with the rest of the styling and error trapping of the rest of our site which was written in Classic ASP. I want to be able to recreate if possible the validation styles in the images below. So on loading the page (not on submitting) we might see a display similar to this, with alt and title of the M icon displaying "Please enter a Username": ![Mandatory Fields](https://i.stack.imgur.com/S0QVu.jpg) And then if we try and submit with missing values - we see ![Error Messages](https://i.stack.imgur.com/JPNmW.jpg) Again hovering over the red x will display the error message. Is there a straightforward way of achieving this styling of validation and if so what is the best way to go about it... Thank you for any helpful hints, tips, suggestions:
Form Validation Messages in ASP.NET MVC2 - using images instead of text for error messages
CC BY-SA 2.5
0
2010-09-03T13:29:34.413
2010-11-10T18:29:52.213
2010-09-03T16:12:34.587
199,028
199,028
[ "asp.net-mvc-2", "validation" ]
3,636,251
1
3,823,299
null
36
7,767
I have a 9-patch image file which looks like this: ![alt text](https://i.stack.imgur.com/uNIMS.png) When I use it it appears like this: ![alt text](https://i.stack.imgur.com/UfIXq.png) What I actually wanted to achieve is the complete dot in the center instead of . I hope that it's possible.
Android: 9-patch repeat pattern instead of stretching
CC BY-SA 2.5
0
2010-09-03T13:34:28.790
2018-01-11T11:37:32.373
null
null
184,367
[ "android", "nine-patch" ]
3,636,914
1
3,637,039
null
697
561,345
Is there a way to see what would be pushed if I did a `git push` command? What I'm picturing is something like the "Files Changed" tab of Github's "pull request" feature. When I issue a pull request, I can look and see what will be pulled in if they accept my pull request: ![github example of aggregate changes](https://i.stack.imgur.com/YUZlu.png) Command line is OK, but I'd prefer some sort of GUI (like the screenshot above).
How can I see what I am about to push with git?
CC BY-SA 3.0
0
2010-09-03T14:51:54.020
2020-10-13T12:01:12.100
2014-03-21T20:22:32.297
128,421
58
[ "git" ]