Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
4,478,155
1
null
null
1
2,156
i have to solve the following formulation in matlab: ![formular1](https://i.stack.imgur.com/KOZiZ.png) ![formular2](https://i.stack.imgur.com/ju4ft.png) ![forlular3](https://i.stack.imgur.com/3ulXu.png) i am looking for the beta value, given is a vector full of wavelet coefficients x =(x_1,..,x_L)! How to solve this function in matlab? Can i use fzero? edit: at the moment i tried this: ``` syms beta x = [-1; 2; 3; 4; 5] exp1 = sum((abs(x).^beta).* log(x)) /sum(abs(x).^beta) exp2 = log(beta/size(x)*sum(abs(x).^beta))/beta exp3 = (exp(-t)*t^((1/beta)-1))/int(exp(-t)*t^((1/beta)-1),0,inf) fzero(exp1-exp2-exp3-1,1) ``` but still errors..
matlab how to solve sum function
CC BY-SA 2.5
null
2010-12-18T13:09:16.003
2011-03-29T20:04:45.660
2011-03-29T20:04:45.660
429,850
482,874
[ "math", "matlab", "sum", "equation-solving" ]
4,478,216
1
4,550,033
null
6
5,182
I'm transferring images from a high-FPS camera into a memory buffer (a List), and as those images are pretty large, the computer runs out of memory pretty quickly. What I would like to do is to stop the transfer some time the application runs out of memory. During my testing, I have found it to be consistent with the "Free Physical Memory" indicator getting close to zero. Now the problem is that I can't find a way actually to get this value programmatically; in XP, it is not even displayed anywhere (just in the Vista/7 task manager). ![alt text](https://i.stack.imgur.com/d9I14.png) I have tried all the ways I could find (WMI, performance counters, MemoryStatus, ...), but everything I got from those was just the "Available Physical Memory," which is of course not the same. Any ideas? Unfortunately, I need the data to be in memory (yes, I know I can't it will be in physical memory, but still), because the data is streamed in real-time and I need to preview it in memory after it's been stored there.
Detecting when about to run out of memory (getting the amount of "free physical memory")
CC BY-SA 3.0
0
2010-12-18T13:23:45.420
2017-06-23T23:29:53.127
2017-06-23T23:29:53.127
2,349,082
377,663
[ "c#", "memory", "memory-management" ]
4,478,223
1
4,478,236
null
11
34,657
Current background is black. How to change the color to be white? ``` #assuming the mime type is correct switch ($imgtype) { case 'image/jpeg': $source = imagecreatefromjpeg($source_image); break; case 'image/gif': $source = imagecreatefromgif($source_image); break; case 'image/png': $source = imagecreatefrompng($source_image); break; default: die('Invalid image type.'); } #Figure out the dimensions of the image and the dimensions of the desired thumbnail $src_w = imagesx($source); $src_h = imagesy($source); #Do some math to figure out which way we'll need to crop the image #to get it proportional to the new size, then crop or adjust as needed $width = $info[0]; $height = $info[1]; $x_ratio = $tn_w / $src_w; $y_ratio = $tn_h / $src_h; if (($x_ratio * $height) < $tn_w) { $new_h = ceil($x_ratio * $height); $new_w = $tn_w; } else { $new_w = ceil($y_ratio * $width); $new_h = $tn_h; } $x_mid = $new_w / 2; $y_mid = $new_h / 2; $newpic = imagecreatetruecolor(round($new_w), round($new_h)); imagecopyresampled($newpic, $source, 0, 0, 0, 0, $new_w, $new_h, $src_w, $src_h); $final = imagecreatetruecolor($tn_w, $tn_h); imagecopyresampled($final, $newpic, 0, 0, ($x_mid - ($tn_w / 2)), ($y_mid - ($tn_h / 2)), $tn_w, $tn_h, $tn_w, $tn_h); #if we need to add a watermark if ($wmsource) { #find out what type of image the watermark is $info = getimagesize($wmsource); $imgtype = image_type_to_mime_type($info[2]); #assuming the mime type is correct switch ($imgtype) { case 'image/jpeg': $watermark = imagecreatefromjpeg($wmsource); break; case 'image/gif': $watermark = imagecreatefromgif($wmsource); break; case 'image/png': $watermark = imagecreatefrompng($wmsource); break; default: die('Invalid watermark type.'); } #if we're adding a watermark, figure out the size of the watermark #and then place the watermark image on the bottom right of the image $wm_w = imagesx($watermark); $wm_h = imagesy($watermark); imagecopy($final, $watermark, $tn_w - $wm_w, $tn_h - $wm_h, 0, 0, $tn_w, $tn_h); } if (imagejpeg($final, $destination, $quality)) { return true; } return false; } ``` Black & White ![alt text](https://i.stack.imgur.com/AjIFv.jpg)
How do I fill white background while resize image
CC BY-SA 2.5
0
2010-12-18T13:26:22.383
2013-02-12T14:41:58.003
2013-02-05T15:55:52.503
504,270
523,493
[ "php", "gd", "image-resizing", "resize-image" ]
4,478,308
1
4,524,255
null
3
2,151
I'm using the WPF ribbon control with some success; I'm trying now to use the Ribbon Gallery, making use of the Categories in a data-bound scenario. Here's some example data: - ``` var data = new[] { new { Category = "Sport", Hobby = "Football" }, new { Category = "Sport", Hobby = "Table Tennis" }, new { Category = "Music", Hobby = "Guitar" }, new { Category = "Music", Hobby = "Piano" }, new { Category = "PC", Hobby = "StarCraft 2" }, }; ``` I'm grouping up the data and want to display the items in a gallery, grouped by Category: - ``` IEnumerable CategorisedHobbies; CategorisedHobbies = data.GroupBy(d => d.Category).ToArray(); ``` All fairly standard. My XAML looks as follows: - ``` <ribbon:RibbonGallery ItemsSource="{Binding CategorisedHobbies}"> <ribbon:RibbonGallery.ItemTemplate> <DataTemplate> <ribbon:RibbonGalleryCategory Header="{Binding Key}" ItemsSource="{Binding}" MaxColumnCount="1"> <ribbon:RibbonGalleryCategory.ItemTemplate> <DataTemplate> <ribbon:RibbonGalleryItem Content="{Binding Hobby}"/> </DataTemplate> </ribbon:RibbonGalleryCategory.ItemTemplate> </ribbon:RibbonGalleryCategory> </DataTemplate> </ribbon:RibbonGallery.ItemTemplate> </ribbon:RibbonGallery> ``` However, when the app runs, whilst I correctly get the categories showing in the ribbon gallery, each item is just a blank square. I know that the collections are getting bound because I can see that the category size is bigger for e.g. Sport than PC. ![alt text](https://i.stack.imgur.com/065Fp.png) If I hard-code the XAML as follows it of course all works: - Any ideas what I'm doing wrong here? Thanks!
Binding IGrouping to a Ribbon Group
CC BY-SA 2.5
0
2010-12-18T13:48:41.423
2010-12-26T15:08:04.337
2010-12-19T11:59:51.237
148,503
148,503
[ "wpf", "xaml", "data-binding", "ribbon" ]
4,478,403
1
4,478,703
null
3
3,778
I need to create an algorithm that could find all the critical paths in a graph. I have found the topological order of the nodes, calculated earliest end times and latest start times for each node. Also I have found all critical nodes (i.e. the ones that are on a critical path). The problem is putting it all together and actually printing out all these paths. If there is only 1 critical path in a graph, then I can deal with it but the issues start if there are multiple paths. For example one node being part of several critical paths, multiple start nodes, multiple end nodes and so on. I have not managed to come up with an algorithm that could take all of these factors into account. The output I am looking for is something like this (if a,b,c etc are all nodes): - - - - It would be nice if someone could write a description of an algorithm that could find the paths from knowing critical nodes, topological order, etc. Or maybe also in C or java code. EDIT: Here is an example, which should provide the output I posted earlier. Critical paths are red, the values of each node are marked above or near it. ![Critical path](https://i.stack.imgur.com/4ZZRb.png)
Algorithm for finding all critical paths
CC BY-SA 2.5
null
2010-12-18T14:13:18.947
2010-12-18T15:40:22.440
2010-12-18T14:49:54.027
476,427
476,427
[ "algorithm", "graph" ]
4,478,725
1
4,480,124
null
46
36,825
In Python, with Matplotlib, how to simply do a scatter plot with transparency (alpha < 1), but with a color bar that represents their color value, but has alpha = 1? Here is what one gets, with `from pylab import *; scatter(range(10), arange(0, 100, 10), c=range(10), alpha=0.2); color_bar = colorbar()`: ![alt text](https://i.stack.imgur.com/jxU3H.png) How can the color bar be made non-transparent? : I tried `color_bar.set_alpha(1); draw()`, but this did not do anything…
Partially transparent scatter plot, but with a solid color bar
CC BY-SA 2.5
0
2010-12-18T15:44:49.903
2014-09-24T08:54:54.970
2010-12-18T20:45:31.200
42,973
42,973
[ "python", "matplotlib", "scatter", "colorbar" ]
4,478,877
1
4,483,037
null
0
2,270
I have a WebSockets server set up on localhost, using [phpwebsocket](http://code.google.com/p/phpwebsocket/). The client is sending 2 messages to the server ('hi server') at almost the exact same time as so ``` socket.send('hi server'); socket.send('hi server'); ``` The server is receiving both messages and replying back with the message 'sup client'. ``` ... case "hi server": $this->send($user->socket,"sup client"); break; ... function send($client,$msg){ echo "> ".$msg; $msg = $this->wrap($msg); socket_write($client,$msg,strlen($msg)); echo "! ".strlen($msg)."\n"; } ... function wrap($msg=""){ return chr(0).$msg.chr(255); } ``` The php log looks like this: ![phplog](https://i.stack.imgur.com/a1Qnu.png) The code for the client receiving messages: ``` socket.onmessage = function(msg) { log("Received: " + msg.data); } ``` What the client is actually logging inside the div element: ![client](https://i.stack.imgur.com/91fZF.png) I have no idea why the client is only processing one message when the websocket server sent 2. I should have 2 'Received: sup client' in that div tag. I'm thinking maybe its sending the messages a bit too fast for the JavaScript or something.
Client not receiving all messages using websockets
CC BY-SA 2.5
null
2010-12-18T16:19:49.120
2010-12-19T12:59:45.387
2010-12-18T16:54:52.733
531,265
531,265
[ "php", "javascript", "html", "websocket" ]
4,478,967
1
4,494,761
null
3
1,114
When you run an Adobe product in a trial, a window appears each time asking if you have have a serial number yet or if you would like to continue with the trial. Next to that is a lovely 'number ticker', like the ones they used to have at airports (see image). ![alt text](https://i.stack.imgur.com/VXNbl.png) Does anyone know where I can get one of these, preferably gratis, to use as a component in a flex application?
Airport ticker effect in Adobe trials
CC BY-SA 2.5
0
2010-12-18T16:39:39.460
2013-04-03T18:41:58.480
null
null
160,793
[ "apache-flex", "flash", "user-interface" ]
4,479,030
1
4,479,044
null
3
11,774
I'm working on a website, and I'm trying some new stuff with CSS. More for "flair" than anything, but I want the site to look good. :) ![alt text](https://i.stack.imgur.com/SFabP.png) In the picture above, I want the line to actually be "in" the white box saying "Welcome to Moria" so it looks as though the white line comes /out/ of the box and stretches across. Basically, I want the white line down a few pixels. (or everything else up a few pixels.) This is the HTML of the section: ``` <div class = "paragraphSection"> <span class="textHeading">Welcome to Moria</span><span class="mainBodyText"> Moria is a Minecraft server, which we have evolved into fun place to build, talk, and fight. Everyone is welcome to join us play! Of course, you should probably read this page to understand what is happening, because it's a little more then just Minecraft.</span> </div> ``` And this is the CSS I'm trying to use: ``` .paragraphSection { border-top-style:solid; border-top-width:1px; border-color:white; padding-top:0px; } .textHeading { font-size:2em; padding-left:3px; padding-right:3px; background-color:white; padding:-10px; -moz-border-radius:5px 5px 5px 5px / 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px / 5px 5px 5px 5px; } ``` What I tried to do was simply making the padding element negative, so it would go "up" instead of down. However, that didn't work at all. I thought you could do that, but apparently not. So I'm not sure how to make the border of the paragraphSection move down.
Reverse padding with CSS
CC BY-SA 2.5
null
2010-12-18T16:52:09.283
2016-10-27T18:41:53.490
null
null
200,567
[ "css", "border", "html", "padding" ]
4,479,297
1
4,479,448
null
0
74
I have a project I am doing in rails. I want to implement this sort of links {user} has {action} on {file} in {project} each of the words wrapped by curly braces are entities in my system (models). how do I implement saving these changes in the project and how do I get all of the changes from the database and display them to the user? I am using rails 2.3.8 if it matters example of the links I need to display (image) ![alt text](https://i.stack.imgur.com/dwO3J.png)
way of implementing links in rails
CC BY-SA 2.5
0
2010-12-18T17:59:24.477
2010-12-18T19:43:21.980
null
null
155,720
[ "ruby-on-rails", "ruby" ]
4,479,421
1
4,479,520
null
4
7,599
I must really know which Windows theme my user is using. More precisely, Classic, XP, Basic or Aero. (Basic theme as in Vista/7 Windows Basic theme) I already know how to find if it's aero, but how about the others? --- The answer can be in any .NET language (C#, VB.NET or C++). --- If you really have to know why on Earth I need to know the theme then here you go: I have some floating buttons over the caption of a form and I need to change their appearance according to the windows theme. So far I've managed to find Aero/Classic. --- Screen shots of the result, after solving the issue: ![Minimize to tray button](https://i.stack.imgur.com/PfWrb.png)
Get Windows theme?
CC BY-SA 2.5
0
2010-12-18T18:30:57.747
2010-12-20T14:51:28.897
2010-12-20T14:51:28.897
485,098
485,098
[ ".net", "themes", "windows-themes" ]
4,479,425
1
4,479,450
null
2
3,067
I have a url encoded string i'm sending to php via the jQuery [AJAX](http://api.jquery.com/jQuery.ajax/) API that appears to be getting automatically decoded and passed to the server. ## Ajax Call: ``` var requestXML = '<searchString>red%20ford%5BimpoundState%3Ain%5D</searchString>'; $.ajax({ data: "query=" + requestXML, success: function(response) { //alerts <searchString>red%20ford%5BimpoundState%3Ain%5D</searchString> alert(requestXML); } }); ``` Inspecting the request in the chrome dev tools shows its being decoded![alt text](https://i.stack.imgur.com/AK6hI.png) I'm a bit lost here, I read a bit about jQuery processing data, but i turned that off via `{processData: false}` but i got no results. -Thanks for any help! ## UPDATE: My backend is currently set up to parse xml with url encoded values. Like: `<searchString>red%20ford%5BimpoundState%3Ain%5D</searchString>` When i pass `data: {query: requestXML}` i get... This:`%3CsearchString%3Ered%20ford%5BimpoundState%3Ain%5D%3C%2searchString%3E` (url encoded xml). The real issue is when i'm generating this XML I encode the values, but jQuery seems to decode them in the request.
$.ajax() processing my url encoded string
CC BY-SA 2.5
null
2010-12-18T18:32:08.617
2010-12-18T21:47:40.057
2010-12-18T21:47:40.057
231,435
231,435
[ "jquery", "ajax", "urlencode" ]
4,479,504
1
4,479,553
null
1
2,283
I am trying to write a program that gets data from this text file: ![alt text](https://i.stack.imgur.com/Pjtiw.jpg) Then, based on this data, the program is supposed to calculate the average gpa of each gender (f=female, m=male) and output the results in a new file. It must also contain these five functions: : this function opens the input and output files and sets the output of floating-point numbers to two decimal places in a fixed decimal format with a decimal point and trailing zeros. : this function initializes variables. : This function finds the sum of the female and male students GPAs. : This function finds the average GPA for male and female students. : this function outputs the relevent results. I think I've done pretty good coding up the functions and all but since this is my first program using fstream im not sure how i need to implement them in my main function. Here is what i have so far: : ``` #ifndef header_h #define header_h #include <iostream> #include <iomanip> #include <fstream> #include <cstring> #include <cstdlib> using namespace std; void extern initialize(int&, int&, float&, float&); void extern openFiles(ifstream, ofstream); void extern sumGrades(ifstream, ofstream, char, float, int&, int&, float&, float&); void averageGrade (float&, float&, float, int, float, int); void extern printResults (float, float, ofstream); #endif ``` : ``` #include "header.h" int main() { char gender; float gpa, sumFemaleGPA, sumMaleGPA; ifstream inData; ofstream outData; int countFemale, countMale; inData.open("./Ch7_Ex4Data.txt"); outData.open("./Ch7_Ex4Dataout.txt"); do inData >> gender >> gpa; while(!inData.eof()); inData.close(); outData.close(); system("PAUSE"); return EXIT_SUCCESS; } ``` : ``` #include "header.h" void openFiles(ifstream inData, ofstream outData) { inData.open("./Ch7_Ex4Data.txt"); outData.open("./Ch7_Ex4Dataout.txt"); outData << fixed << showpoint << setprecision(2); inData.close(); outData.close(); } ``` : ``` #include "header.h" void sumGrades(ifstream inData, ofstream outData, char gender, float gpa, int& countFemale, int& countMale, float& sumFemaleGPA, float& sumMaleGPA) { char m, f; do { inData >> gender >> gpa; if(gender == m) { sumMaleGPA += gpa; countMale++; } else if (gender == f) { sumFemaleGPA += gpa; countFemale++; } } while(!inData.eof()); } ``` : ``` #include "header.h" void averageGrade (float& maleGrade, float& femaleGrade, float sumMaleGPA, int countMale, float sumFemaleGPA, int countFemale) { maleGrade = sumMaleGPA / static_cast<float>(countMale); femaleGrade = sumFemaleGPA / static_cast<float>(countFemale); } ``` : ``` #include "header.h" void { outData << "average male GPA: " << maleGrade << endl; outData << "average female GPA: " << femaleGrade << endl; } ```
first fstream program
CC BY-SA 2.5
null
2010-12-18T18:47:46.677
2010-12-18T19:21:51.037
2010-12-18T18:51:11.860
63,832
538,293
[ "c++" ]
4,479,621
1
4,479,665
null
0
758
In computer vision, we often want to remove noise from an image. We can do this by getting an image and replacing distorted pixels with an average of its neighbours. I have no trouble understanding this but what are all the variables in the following equation meant to be? I've just found it in some slides but it doesn't come with any explanation: ![alt text](https://i.stack.imgur.com/Xd1vr.png) The (i,j) is probably a given pixel and its neighbour, but what is the function f, the Omega, and the w? Any guesses?! Cheers guys.
Computer Vision: Simple Noise Reduction
CC BY-SA 2.5
null
2010-12-18T19:10:58.053
2013-07-06T03:05:14.060
2013-07-06T03:05:14.060
2,405,463
478,513
[ "computer-vision", "noise" ]
4,480,111
1
4,480,160
null
0
1,278
Using Opera 11 and IE 9, it seems that these two browsers do not attribute the CSS text-decoration style correctly. This works 100% in Chrome, FireFox and Safari. Does anyone have a suggestion on how to fix this? ![alt text](https://i.stack.imgur.com/uus87.png) ![alt text](https://i.stack.imgur.com/EPN9O.png) Here's the CSS: ``` #main_title { font-size: 18px; color: #000; font-weight: bold; } #main_title a { color: #000; } #main_title_accent { border: 1px solid #000; background: #ff9935; text-decoration: none; font-size: 20px; padding: 5px; } ``` And this is the HTML: ``` <div id="main_title"> <a href="home">Text <span id="main_title_accent">Goes</span> Here</a> </div> ```
Opera and IE does not attribute css text-decoration correctly
CC BY-SA 2.5
0
2010-12-18T20:52:45.013
2010-12-18T21:03:50.620
null
null
149,692
[ "html", "css", "internet-explorer", "layout", "opera" ]
4,480,787
1
4,480,837
null
7
2,887
![alt text](https://i.stack.imgur.com/oCSm0.png) See the image above. I'm working on notepad ++. html.erb files are presented that way, and I don't know how to get rid of the sky blue highlighting that follows <%=.
Notepad ++ highlights everything that comes after <%= in html.erb files
CC BY-SA 2.5
0
2010-12-18T23:36:58.570
2014-07-31T14:10:59.910
2011-09-08T11:19:11.727
63,349
536,890
[ "ruby-on-rails", "notepad++", "erb", "scintilla" ]
4,480,870
1
4,514,371
null
0
672
I'm studying to take the Security+ exam. I'm really having problems figuring out this chart. I understand most of it. Can someone explain the following? ![alt text](https://i.stack.imgur.com/KZo8J.jpg) 1. Why are there 2 sensors in this picture which both point to analyzer? 2. Why is security policy not a block? 3. Why does "trending and reporting" have no inputs? 4. Can this picture be redrawn like this and have the same meaning? This is really confusing to me.
Intrusion Detection System, Security+ question
CC BY-SA 2.5
0
2010-12-18T23:58:32.077
2013-03-17T15:15:21.000
2013-03-17T15:15:21.000
635,608
368,817
[ "security", "intrusion-detection" ]
4,481,104
1
4,481,288
null
2
275
Maybe an over elaborate title. Basically think of an email inbox. I have a table as so: ![alt text](https://i.stack.imgur.com/KwTc2.png) As you can see, it is a recursive table, very simple, just has the parentID of a message, and as you can see with the green highlight ring, the end of the "chain" is when there is a NULL for the parentID. What I need is to provide (for example) the INBOXID of 12, and return back all parents.. in this example I should get 1 record back which is INBOXID of 11. In the second example, I should be able to pass in INBOXID of 9, but this time I should get back rows INBOXID 8,7 and 1 I did have some success with the following query: ``` with q as ( select inboxid, parentid from bizzbox union all select a.inboxid, a.parentid from bizzbox a inner join q on q.inboxID = a.parentID ) select distinct * from q ``` .. but of course it returns all of the parents for any of the rows.. I know it is probably something really stupidly simple like a where clause on one of the selects.. but having tried it (i.e. to parameterize the passing in of the start point inboxid), I can't quite see what I need to do??? Any help much appreciated!!!!! David.
SQL 2008 recursive query for message threads given an entry point of one mesage
CC BY-SA 2.5
null
2010-12-19T01:04:02.013
2010-12-19T02:20:27.470
null
null
218,297
[ "sql", "sql-server", "sql-server-2008", "recursive-query" ]
4,481,624
1
4,486,151
null
1
3,083
I have an array set of (x,y) values that define a polygon. The polygon is drawn based on the point's position * a pencil size. The thing is that i want to draw the border of such shape, ignoring the inner vertexes. See this example, the BLACK vertex are the ones i'm interested in, i want to get rid of the YELLOW ones. ![alt text](https://i.stack.imgur.com/8WZLi.png) I'd like to get the X in another array, ordered clockwise. Been thinking about evaluating every point to see if has a neighbor and where (north, south, east, west) but seems like too much crunching to check in every vertex and i believe must be another proven and more elegant algorithm. Any tip?
Polygon border algorithm?
CC BY-SA 2.5
0
2010-12-19T04:41:16.080
2019-07-10T04:36:11.757
2010-12-19T17:19:13.020
162,414
162,414
[ "algorithm", "geometry", "shapes", "border" ]
4,481,633
1
4,481,836
null
1
1,296
![alt text](https://i.stack.imgur.com/2A1D2.png) I will compare 2 scenarios to add Rsvp rows. Which one do you prefer in production? --- ``` Rsvp r = new Rsvp(); r.AttendeeName = "xport"; r.DinnerId = 1;//there will be an exception if it is set to a Dinnner object that does not exist. entities.Rsvps.AddObject(r); entities.SaveChanges(); ``` > We will get an exception if we attempt to set DinnerId to a Dinner object that does not exist. This behavior is consistent and straightforward. --- ``` Rsvp r = new Rsvp(); r.AttendeeName = "xport"; r.DinnerId = 10000;//this Dinner does not exist! Dinner d = entities.Dinners.First(x => x.DinnerId == 1); d.Rsvps.Add(r); entities.SaveChanges(); ``` > The foreign key property DinnerId of a Rsvp object can be set to any number. When this Rsvp object is added to a Dinner object's Rsvps collection, the DinnerId will be overriden silently. Example above shows DinnerId is set to 10000 which is an Id of an Dinner object that does not exist. Is it an unavoidable behavior?
"Adding a child row to parent's child collection" v.s. "adding a child to datacontext's child collection"
CC BY-SA 2.5
0
2010-12-19T04:44:22.030
2010-12-19T06:05:26.683
2010-12-19T04:50:24.787
397,524
397,524
[ "entity-framework", "entity-framework-4" ]
4,481,672
1
null
null
17
7,634
We have to redesign a legacy POI database from MySQL to PostgreSQL. Currently all entities have 80-120+ attributes that represent individual properties. We have been asked to consider flexibility as well as good design approach for the new database. However new design should allow: - no. of attributes/properties for any entity i.e. no of attributes for any entity are not fixed and may change on regular basis.- allow content admins to add new properties to existing entities using through admin interfaces rather than making changes in db schema all the time. There are quite a few discussions about performance issues of EAV but if we don't go with a hybrid-EAV we end up: - - - Anyway here's what we are thinking about the new design (basic ERD included): - Have separate tables for each entity containing some basic info that is exclusive e.g. id,name,address,contact,created,etc etc.- Have 2 tables attribute type and attribute to store properties information.- Link each entity to an attribute using a many-to-many relation.- Store addresses in different table and link to entities using foreign key. ![alt text](https://i.stack.imgur.com/VIBk0.png) We think this will allow us to be more flexible when adding,removing or updating on properties. This design, however, will result in increased number of joins when fetching data e.g.to display all "attributes" for a given stadium we might have a query with 20+ joins to fetch all related attributes in a single row. What are your thoughts on this design, and what would be your advice to improve it. Thank you for reading.
is EAV - Hybrid a bad database design choice
CC BY-SA 2.5
0
2010-12-19T04:59:47.633
2013-01-07T23:06:05.763
2010-12-24T03:21:49.897
507,695
507,695
[ "database", "database-design", "postgresql", "entity-attribute-value" ]
4,481,860
1
4,481,974
null
2
6,633
To see the issue visit: [http://justinzaun.com/LCARS/](http://justinzaun.com/LCARS/) The two css blocks in question are located at line 260 and 284 in the linked css file. Specifically its the display: inline-block on both - I think. This looks correct in FF. I'm not sure in IE as I haven't tested it yet. In webkit (chrome and safari) it looks wrong. Any idea how to fix it? Thanks! Edit (added images and explanation): ![alt text](https://i.stack.imgur.com/xSvMV.png) ![alt text](https://i.stack.imgur.com/Qw6lw.png) The top image it from FF and it looks good. The bottom image is from webkit. Notice the 2 buttons and the label are pushed down by about 5 pixels. There is no space under the text.
inline-block CSS issue in webkit
CC BY-SA 2.5
0
2010-12-19T06:14:35.637
2010-12-19T07:18:35.927
2010-12-19T07:05:24.180
308,079
308,079
[ "css" ]
4,481,940
1
4,481,971
null
0
273
I have this excursie > Write the query, showing prices of all products in one column with the following condition: "The price [Product Name] is [Price] lv. The table looks like this ![http://i52.tinypic.com/2s60bkn.png](https://i.stack.imgur.com/JDvvz.png)
How to format Oracle SQL query
CC BY-SA 3.0
0
2010-12-19T06:48:16.460
2011-11-26T08:36:41.950
2011-11-26T08:36:41.950
234,976
539,424
[ "sql", "oracle" ]
4,482,342
1
null
null
0
239
In the pictire below is my desktop (win7 pro). I want in C# code to start the icon Broadband.lnk ![alt text](https://i.stack.imgur.com/hXGVW.jpg) And when i start it to push the button Disconnect shown on this picture ![alt text](https://i.stack.imgur.com/cD3WF.jpg) I tried with using System.Diagnostics; but cmd doesnt work... Any ideas how to start the desktop icon and after this to attach to its window and call the button? I tried with cmd this code and it didnt worked: ``` Process cmd = new Process(); cmd.StartInfo.FileName = "cmd.exe"; cmd.StartInfo.RedirectStandardInput = true; cmd.StartInfo.RedirectStandardOutput = true; cmd.StartInfo.CreateNoWindow = true; cmd.StartInfo.UseShellExecute = false; cmd.Start(); /* execute "dir" */ cmd.StandardInput.WriteLine(@".\Desktop\Broadband.lnk"); cmd.StandardInput.Flush(); cmd.StandardInput.Close(); ```
Win API - how to start desktop programs?
CC BY-SA 2.5
0
2010-12-19T09:33:33.097
2010-12-19T13:24:06.207
2010-12-19T13:00:55.937
98,491
303,786
[ "c#", ".net" ]
4,482,404
1
4,483,349
null
1
888
I have simple code to animate movement on canvas. The problem is that after animation completed element does not have proper value. Here is example: ``` <Canvas Name="_canvas" > <Button Content="Button" Height="23" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Width="292" Canvas.Left="56" Canvas.Top="26"> <Button.Triggers> <EventTrigger RoutedEvent="ButtonBase.Click"> <BeginStoryboard> <Storyboard Completed="Timeline_OnCompleted"> <DoubleAnimation Duration="0:0:1" To="264" Storyboard.TargetProperty="(Canvas.Top)"/> </Storyboard> </BeginStoryboard> </EventTrigger> </Button.Triggers> </Button> </Canvas> ``` And in code behind ``` private void Timeline_OnCompleted(object sender, EventArgs e) { button1.Content = "Top is " + Canvas.GetTop(button1) + "and should be 264"; } ``` Result after complete an animation is ![example](https://i.stack.imgur.com/fCJuF.png)
WPF double animation set wrong value
CC BY-SA 2.5
null
2010-12-19T09:59:06.640
2010-12-19T14:25:45.533
null
null
406,531
[ "c#", "wpf" ]
4,482,559
1
4,482,870
null
0
1,638
I am using a gwt cell tree and I want only one node to be selected in the whole tree but many nodes are being selected. I am also trying this ``` S1= new SelectionModel();...... S1.setSelected(S1.getSelected(),false); but using this technique nothing is being selected. ``` I am having the following problem:![alt text](https://i.stack.imgur.com/PE1FO.jpg) Can someone help??
GWT Cell Tree, Selecting too many options!
CC BY-SA 2.5
0
2010-12-19T10:39:43.273
2012-06-20T22:29:47.343
null
null
484,290
[ "java", "gwt", "tree", "cell" ]
4,482,634
1
4,482,669
null
0
138
I've a mysql table of simple data like: ![alt text](https://i.stack.imgur.com/B79lu.jpg) now when i execute this simple query: ``` SELECT MAX(cashback) as MAX, MIN(cashback) as MIN FROM pearlcashback_retailers_category WHERE retailer_id='32' AND cashback NOT LIKE '%\%' ``` it outputs: ![alt text](https://i.stack.imgur.com/MJp0I.jpg) and for this query: ``` SELECT MAX(cashback) as MAX, MIN(cashback) as MIN FROM pearlcashback_retailers_category WHERE retailer_id='32' AND cashback LIKE '%\%' ``` it outputs: ![alt text](https://i.stack.imgur.com/US2my.jpg) please, help me... --- sql of the table & data: ``` CREATE TABLE IF NOT EXISTS `pearlcashback_retailers_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `retailer_id` int(11) NOT NULL, `category_id` int(11) NOT NULL, `cashback` varchar(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ; INSERT INTO `pearlcashback_retailers_category` (`id`, `retailer_id`, `category_id`, `cashback`) VALUES (1, 32, 17, '46%'), (2, 32, 14, '40'), (11, 4, 15, '27%'), (9, 32, 15, '5'), (8, 32, 7, '44%'), (14, 3, 13, '1'); ```
mysql query incorrect output
CC BY-SA 2.5
null
2010-12-19T11:05:11.897
2010-12-19T11:43:31.307
null
null
432,543
[ "php", "sql", "mysql" ]
4,482,865
1
4,482,888
null
5
8,212
I've looked through the developer.android.com and googled quite a bit, but I can't seem to find a layout object that does this: A speech bubble sort of thing that has within it a list of buttons, which may be scrollable if not all of the buttons fit within the screen width. The Twitter app, Handcent SMS, and HTC's Sense messaging app all use this, and it looks more or less the same in all of them, which is what makes me think it's a standard object. The pic below is from Handcent. What are they using? ![alt text](https://i.stack.imgur.com/gSWTe.png)
What layout object is used to produce a "bubble" popup in an Android UI? (Not Toast or Dialog)
CC BY-SA 2.5
0
2010-12-19T12:11:20.830
2010-12-19T12:17:19.597
2010-12-19T12:17:19.597
434,731
434,731
[ "android", "user-interface" ]
4,482,880
1
4,482,996
null
3
2,763
I have a tabbed pane, i want to resize the tabs...... not the entire tabbed pane and nor the panels added to it. But the tabs themselves.... more clearly what i want is... ![alt text](https://i.stack.imgur.com/em7a5.jpg) to alter the size of the display tab1 and tab2........ how do i do this.......??
resizing the tabs in a tabbed pane
CC BY-SA 2.5
0
2010-12-19T12:15:12.297
2010-12-19T12:59:23.060
null
null
522,058
[ "java", "user-interface", "swing", "awt" ]
4,482,898
1
4,483,389
null
1
344
I have a small game in app store, use game kit's Leaderboard. Code just from the Xcode document. ``` - (void) reportScore: (int64_t) score forCategory: (NSString*) category { if (!auth_ok) return; Class gcClass = (NSClassFromString(@"GKScore")); GKScore *scoreReporter = [[[gcClass alloc] initWithCategory:category] autorelease]; scoreReporter.value = score; [scoreReporter reportScoreWithCompletionHandler:^(NSError *error) { if (error != nil) { NSLog(@"%@",error); } else { NSLog(@"reportScore ok!"); } }]; } ``` It never go wrong. But today I use Xcode 3.2.5 build this project. And change some other code,and I find now GKScore report score is wrong. I call reportScore message like this: ``` int winCount=15; [gameView reportScore:winCount forCategory:@"memory.iphone.wincount"]; ``` and result is value=761228871165046176.like that: ![alt text](https://i.stack.imgur.com/qpAln.png)
GKScore suddenly goes wrong in Xcode 3.2.5, how can I do?
CC BY-SA 2.5
null
2010-12-19T12:20:21.250
2011-02-11T22:59:06.277
null
null
314,537
[ "iphone", "gamekit" ]
4,483,014
1
null
null
1
463
i need solution for making animated selection tool with java2d. i know BasicStroke and Rectagnle2D API but i don't idea for making black and white dashes and animated this.anybody have idea for this work ? ![alt text](https://i.stack.imgur.com/miJDn.jpg) thanks
java2d dash Pattern
CC BY-SA 2.5
null
2010-12-19T12:52:01.860
2011-04-16T10:04:30.600
null
null
329,091
[ "java-2d" ]
4,483,011
1
4,483,019
null
1
9,992
I'm trying to make my PHP installation to work with PostgreSQL, so I need php_pgsql.dll A very dumb question, but where do I get one for my PHP5.3? I have read here: [http://php.net/manual/en/install.windows.extensions.php](http://php.net/manual/en/install.windows.extensions.php), but it is said that, yes, you need this dll, but no download link. What am I missing? dll is not present by default in my installation: ![alt text](https://i.stack.imgur.com/UTMRv.png)
Where do I download PHP extensions for windows?
CC BY-SA 2.5
null
2010-12-19T12:51:46.043
2010-12-19T12:58:02.960
2010-12-19T12:58:02.960
303,513
303,513
[ "php", "postgresql", "php-extension" ]
4,483,012
1
4,483,768
null
3
2,229
I'm trying to bind a data table like, ``` month value 5 345 10 1300 12 450 ``` to an ASP.NET Chart control. My problem is that the data table only contain months that have values while in the chart i want to show the full month range from 1st to the 12th. So i used ``` Chart1.ChartAreas["ChartArea1"].AxisX.Minimum = 1; Chart1.ChartAreas["ChartArea1"].AxisX.Maximum = 12; ``` But when i do this, a part of the final series gets cut off in the middle like this. ![alt text](https://i.stack.imgur.com/Zie7m.jpg) I can avoid this issue by making the maximum 13 but that would not be appropriate since i just need to show the months of the year. Please help.
asp.net chart: final series getting cut off when setting .AxisX.Maximum
CC BY-SA 2.5
0
2010-12-19T12:51:47.377
2010-12-20T19:33:03.950
null
null
439,967
[ "asp.net", "charts" ]
4,483,279
1
4,485,085
null
9
16,946
I have the following css and html (drilled down to the essentials. The full code with additional styles can be found here: I have this css I pasted on jsfiddle: [http://jsfiddle.net/BwhvX/](http://jsfiddle.net/BwhvX/) , this is however enough to reproduce the problem) css: ``` * { margin: 0px; padding: 0px; font-size: 13px; line-height: 15px; border: none; } input[type="submit"]::-moz-focus-inner { border: 0; } #search .text, #search .button { border: 1px solid red; } ``` html: ``` <form method="post" id="search" action=""> <p><input type="text" class="text" value="" name="suche"><input type="submit" class="button" value="Suchen"></p> </form> ``` this is how firefox renders: # this is how chrome renders: ![bad looking](https://i.stack.imgur.com/HEqYa.png) i want the two form elements to have the same height in all browsers. looks to me like some default style is applied, that i manually need to reset like i did for firefox in this example. in chrome developer tools one has height 16 and one height 17 px but i am not able to see where it comes from, its just calculated. the applied styles (that are shown to me) are the same.
Make form button/text field same height in all browsers?
CC BY-SA 2.5
0
2010-12-19T14:07:38.560
2016-03-09T14:58:10.520
2020-06-20T09:12:55.060
-1
413,910
[ "html", "css", "forms", "height" ]
4,483,483
1
null
null
1
1,996
![alt text](https://i.stack.imgur.com/AgnA7.png) How to do the trick? I did `ln -s A /var/www/root` by mistake,how to undo it?
How to link a directory A to /var/www/root like below?
CC BY-SA 2.5
null
2010-12-19T14:56:22.843
2010-12-19T15:05:59.740
2020-06-20T09:12:55.060
-1
477,822
[ "linux", "bash" ]
4,483,599
1
null
null
4
1,296
I have a few window controls drawn on a bitmap as well as on colored background on a dialog-box. Would there be some possible way to make the window controls' background transparent? Currently they show the default colored background of a dialog-box. Example - I tried to paste a solid blue bitmap and the two button controls have the noticeable default colored-rectangle background. ![Dialog window containing two UI-buttons in the middle: 'OK' and 'Cancel'. Though the buttons are a default off-white, most of the inside area of the dialog-box has a shocking bright blue background.](https://i.stack.imgur.com/h5gER.png)
Transparent background of xp-themed control
CC BY-SA 3.0
null
2010-12-19T15:21:36.973
2016-02-18T23:37:06.653
2016-02-18T23:37:06.653
5,739,296
187,543
[ "c", "winapi", "themes" ]
4,484,313
1
4,490,956
null
1
5,952
I have a custom style for my 'default' Buttons, and also created a custom style for TextBlocks. If I remove the TextBlock style entirely, everything works fine, but once the TextBlock styling is added in for some reason the Button style is used on the Button's text 'default' state. It seems like some kind of inheritance is going on here but I can't see where in the msdn docs. What's going on? Here's the styles which seem to be conflicting: ``` <ResourceDictionary> <Style TargetType="{x:Type Button}"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Foreground"> <Setter.Value> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> <GradientStop Color="White" Offset="0"/> <GradientStop Color="#FFFDFF00" Offset="1"/> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/> <Setter Property="RenderTransform"> <Setter.Value> <TransformGroup> <ScaleTransform ScaleY="1.20" ScaleX="1.20"/> <SkewTransform/> <RotateTransform/> <TranslateTransform/> </TransformGroup> </Setter.Value> </Setter> </Trigger> </Style.Triggers> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Grid> <ContentPresenter RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> <ContentPresenter.Effect> <DropShadowEffect BlurRadius="3" ShadowDepth="4"/> </ContentPresenter.Effect> </ContentPresenter> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsFocused" Value="True"/> <Trigger Property="IsDefaulted" Value="True"/> <Trigger Property="IsMouseOver" Value="True"/> <Trigger Property="IsPressed" Value="True"/> <Trigger Property="IsEnabled" Value="False"/> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> <Setter Property="FontFamily" Value="/Rtk;component/Fonts/#Segoe Print"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="FontSize" Value="18"/> <Setter Property="Foreground" Value="White"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="Background" Value="{x:Null}"/> </Style> <Style TargetType="{x:Type TextBlock}"> <Setter Property="TextWrapping" Value="NoWrap"/> <Setter Property="TextTrimming" Value="None"/> <Setter Property="Foreground" Value="White"/> <Setter Property="FontSize" Value="16"/> <Setter Property="Effect"> <Setter.Value> <DropShadowEffect BlurRadius="3" ShadowDepth="4"/> </Setter.Value> </Setter> <Setter Property="FontFamily" Value="/Rtk;component/Fonts/#Segoe Print"/> </Style> </ResourceDictionary> ``` This is how I am using the Button control itself: ``` <Button Content="Button Text" FontSize="24"/> ``` (note that this fontsize is different from the size I specified in the default style, 18 - I want to override it in this button's case) The actual button entry looks like this in MainWindow.xaml, there's no other customizations other than the style changes I posed from App.xaml: ``` <Button Content="Button" HorizontalAlignment="Left" Margin="336,0,0,274.226" VerticalAlignment="Bottom" Width="75"/> ``` To illustrate what I'm seeing: ![alt text](https://i.stack.imgur.com/0AZUN.jpg) ![alt text](https://i.stack.imgur.com/8bJlu.jpg)
How are WPF Buttons and TextBlock styles related?
CC BY-SA 2.5
null
2010-12-19T17:56:26.947
2010-12-20T15:22:58.977
2010-12-19T18:57:18.090
289,995
289,995
[ "wpf", "expression-blend" ]
4,484,355
1
4,484,419
null
0
136
Hey, i will try to be as clear as possible: I have a site on domain1. I need to open a ModalDialog with a Page on domain2. My Domain2 is protected not to allow anonymous access so i get a login window like: ![alt text](https://i.stack.imgur.com/6AwC1.png) My problem is, for this one functionality, i want users to be able to see that ASPX, through the ModalDialog, without authenticating. I tried using the ftp way: [http://user:[email protected]/uploadcv.aspx](http://user:[email protected]/uploadcv.aspx) and i get a javascript error. My site is hosted in IIS6, Windows Server 2003 and i have full access to the server. Can anyone help me here? Thanx
Permissions in Windows Server, ASP.Net Authentication
CC BY-SA 2.5
null
2010-12-19T18:08:32.187
2010-12-19T18:25:59.977
null
null
470,772
[ "asp.net", "iis-6", "windows-server-2003" ]
4,484,550
1
4,485,646
null
1
1,524
I'm trying to accomplish this sort of layout.. ![alt text](https://i.stack.imgur.com/Q5C3I.jpg) Notice how the text is always vertical centered. I want to achieve that using vertical-align with divs. Note: Blocks don't have a specific height. Using properties like `top:50%` or positioning won't achieve exact centering. [http://jsfiddle.net/V8S8b/](http://jsfiddle.net/V8S8b/) ``
Creating table using div structure
CC BY-SA 3.0
0
2010-12-19T18:54:23.520
2017-06-17T20:51:37.623
2017-06-17T20:51:37.623
4,370,109
407,607
[ "html", "css", "tablelayout" ]
4,484,605
1
4,535,810
null
8
3,454
I am trying to get shadow mapping working using GLSL. Unfortunately my depth render results are unusable even I have a pretty decent depth buffer precision. It is rendering like wireframe, following image may be a better description. I am also including a test case(single file including shader), only dependency is pyopengl. ![alt text](https://i.stack.imgur.com/1ZcNK.png) ``` # shadow mapping test # utkualtinkaya at gmail # shader is from http://www.fabiensanglard.net/shadowmapping/index.php from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * from OpenGL.GL.shaders import * from OpenGL.GL.framebufferobjects import * import math class Camera: def __init__(self): self.rotx, self.roty = math.pi/4, math.pi/4 self.distance = 100 self.moving = False self.ex, self.ey = 0, 0 self.size = (800, 600) def load_matrices(self): glViewport(0, 0, *self.size) y = math.cos(self.roty) * self.distance x = math.sin(self.roty) * math.cos(self.rotx) * self.distance z = math.sin(self.roty) * math.sin(self.rotx) * self.distance glMatrixMode(GL_PROJECTION) glLoadIdentity() gluPerspective(45.0, self.size[0]/float(self.size[1]), 1, 1000) glMatrixMode(GL_MODELVIEW) glLoadIdentity() gluLookAt(x,y,z, 0,0,0, 0,1,0) def on_mouse_button (self, b, s, x, y): self.moving = not s self.ex, self.ey = x, y if b in [3, 4]: dz = (1 if b == 3 else -1) self.distance += self.distance/15.0 * dz; def on_mouse_move(self, x, y, z = 0): if self.moving: self.rotx += (x-self.ex) / 300.0 self.roty += -(y-self.ey) / 300.0 self.ex, self.ey = x, y def set_size(self, w, h): self.size = w, h class Shader(): def __init__(self): self.is_built = False self.uniforms = {} def build(self): self.program = compileProgram( compileShader(''' uniform mat4 camMatrix; uniform mat4 shadowMatrix; varying vec4 depthProjection; uniform bool useShadow; void main() { gl_Position = camMatrix * gl_ModelViewMatrix * gl_Vertex; depthProjection = shadowMatrix * gl_ModelViewMatrix * gl_Vertex; gl_FrontColor = gl_Color; } ''',GL_VERTEX_SHADER), compileShader(''' varying vec4 depthProjection; uniform sampler2D shadowMap; uniform bool useShadow; void main () { float shadow = 1.0; if (useShadow) { vec4 shadowCoord = depthProjection / depthProjection.w ; // shadowCoord.z -= 0.0003; float distanceFromLight = texture2D(shadowMap, shadowCoord.st).z; if (depthProjection .w > 0.0) shadow = distanceFromLight < shadowCoord.z ? 0.5 : 1.0 ; } gl_FragColor = shadow * gl_Color; } ''',GL_FRAGMENT_SHADER),) self.is_built = True self.uniforms['camMatrix'] = glGetUniformLocation(self.program, 'camMatrix') self.uniforms['shadowMatrix'] = glGetUniformLocation(self.program, 'shadowMatrix') self.uniforms['shadowMap'] = glGetUniformLocation(self.program, 'shadowMap') self.uniforms['useShadow'] = glGetUniformLocation(self.program, 'useShadow') print self.uniforms def use(self): if not self.is_built: self.build() glUseProgram(self.program) class Test: def __init__(self): glutInit(sys.argv) glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ALPHA | GLUT_DEPTH) glutInitWindowSize(800, 600) glutInitWindowPosition(1120/2, 100) self.window = glutCreateWindow("Shadow Test") self.cam = Camera() self.light = Camera() self.cam.set_size(800, 600) self.light.set_size(2048, 2048) self.light.distance = 100 self.shader = Shader() self.initialized = False def setup(self): self.initialized = True glClearColor(0,0,0,1.0); glDepthFunc(GL_LESS) glEnable(GL_DEPTH_TEST) self.fbo = glGenFramebuffers(1); self.shadowTexture = glGenTextures(1) glBindFramebuffer(GL_FRAMEBUFFER, self.fbo) w, h = self.light.size glActiveTexture(GL_TEXTURE5) glBindTexture(GL_TEXTURE_2D, self.shadowTexture) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP ); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP ); glTexImage2D( GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, w, h, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, None) glDrawBuffer(GL_NONE) glReadBuffer(GL_NONE) glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, self.fbo, 0) FBOstatus = glCheckFramebufferStatus(GL_FRAMEBUFFER) if FBOstatus != GL_FRAMEBUFFER_COMPLETE: print ("GL_FRAMEBUFFER_COMPLETE_EXT failed, CANNOT use FBO\n"); glBindFramebuffer(GL_FRAMEBUFFER, 0) #glActiveTexture(GL_TEXTURE0) def draw(self): glPushMatrix() glTranslate(0, 10 ,0) glColor4f(0, 1, 1, 1) glutSolidCube(5) glPopMatrix() glPushMatrix() glColor4f(0.5, 0.5, .5, 1) glScale(100, 1, 100) glutSolidCube(1) glPopMatrix() def apply_camera(self, cam): cam.load_matrices() model_view = glGetDoublev(GL_MODELVIEW_MATRIX); projection = glGetDoublev(GL_PROJECTION_MATRIX); glMatrixMode(GL_MODELVIEW) glLoadIdentity() glMultMatrixd(projection) glMultMatrixd(model_view) glUniformMatrix4fv(self.shader.uniforms['camMatrix'], 1, False, glGetFloatv(GL_MODELVIEW_MATRIX)) glLoadIdentity() def shadow_pass(self): glUniform1i(self.shader.uniforms['useShadow'], 0) glBindFramebuffer(GL_FRAMEBUFFER, self.fbo) glClear(GL_DEPTH_BUFFER_BIT) glCullFace(GL_FRONT) self.apply_camera(self.light) self.draw() glBindFramebuffer(GL_FRAMEBUFFER, 0) def final_pass(self): glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) self.light.load_matrices() model_view = glGetDoublev(GL_MODELVIEW_MATRIX); projection = glGetDoublev(GL_PROJECTION_MATRIX); glMatrixMode(GL_MODELVIEW) glLoadIdentity() bias = [ 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.5, 0.5, 0.5, 1.0] glLoadMatrixd(bias) glMultMatrixd(projection) glMultMatrixd(model_view) glUniformMatrix4fv(self.shader.uniforms['shadowMatrix'], 1, False, glGetFloatv(GL_MODELVIEW_MATRIX)) glActiveTexture(GL_TEXTURE5) glBindTexture(GL_TEXTURE_2D, self.shadowTexture) glUniform1i(self.shader.uniforms['shadowMap'], 5) glUniform1i(self.shader.uniforms['useShadow'], 1); self.apply_camera(self.cam) glLoadIdentity() glCullFace(GL_BACK) self.draw() def render(self): if not self.initialized: self.setup() self.shader.use() self.shadow_pass() self.final_pass() glutSwapBuffers() def mouse_move(self, *args): self.cam.on_mouse_move(*args) self.light.on_mouse_move(*args) def mouse_button(self, b, *args): if b==0: self.light.on_mouse_button(b, *args) else: self.cam.on_mouse_button(b, *args) def main(self): glutDisplayFunc(self.render) glutIdleFunc(self.render) glutMouseFunc(self.mouse_button) glutMotionFunc(self.mouse_move) glutReshapeFunc(self.cam.set_size) #self.setup() glutMainLoop() if __name__ == '__main__': test = Test() test.main() ```
OpenGL Shadow Mapping using GLSL
CC BY-SA 2.5
0
2010-12-19T19:03:42.330
2013-05-27T15:26:49.993
2010-12-19T19:49:37.953
40,948
40,948
[ "python", "opengl", "glsl", "shader", "pyopengl" ]
4,484,830
1
4,488,348
null
2
5,729
I'm tring to upload image in wordpress by using some function .. I found the way to upload images but there are one problem .. when the user upload his image , wordpress create more than one image diffrent sizes, this is a problem because I want one image only .. this is wp-conent/uploads/2010/10 folder .. look at the picture (this is one picture but wordpress create same picture but diffrent sizes) . ![alt text](https://i.stack.imgur.com/fn6ab.jpg) this is my code ``` <?php /* Template Name: Uploading Page */?> <?php get_header(); ?><div class="container_12"> <div id="content"> <form id="file-form" enctype="multipart/form-data" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="POST"> <p id="async-upload-wrap"> <label for="async-upload">upload</label> <input type="file" id="async-upload" name="async-upload"> <input type="submit" value="Upload" name="html-upload"> </p> <p> <input type="hidden" name="post_id" id="post_id" value="<?php echo '212';?>" /> <?php wp_nonce_field('client-file-upload'); ?> <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" /> </p> <p> <input type="submit" value="Save all changes" name="save" style="display: none;"> </p> </form> <?php if ( isset( $_POST['html-upload'] ) && !empty( $_FILES ) ) { require_once(ABSPATH . 'wp-admin/includes/admin.php'); $id = media_handle_upload('async-upload', 1199); //post id of Client Files page unset($_FILES); if ( is_wp_error($id) ) { $errors['upload_error'] = $id; $id = false; } if ($errors) { echo "<p>There was an error uploading your file.</p>"; } else { echo "<p>Your file has been uploaded.</p>"; } } get_sidebar(); get_footer();?> enter code here ``` how can make it one picture? I wish you understand me ^<
using upload image with media_handle_upload .. but !
CC BY-SA 2.5
0
2010-12-19T20:03:39.927
2010-12-20T09:28:01.647
null
null
413,515
[ "php", "wordpress", "wordpress-theming" ]
4,484,839
1
4,485,191
null
0
383
This is a very interesting problem. Basically I'm adding a few li tags dynamcially: ``` var fileList = $("#openWin ul"); for (var i = 0; i<20; i++){ fileList.append("<li>"+i+"<\/li>"); } ``` I have some css for my li tags: ``` li{ list-style : none; font-size : 12px; margin: 0; padding : 5px 10px 5px 10px; border-bottom : 1px solid #cccccc; font-family : Georgia, serif; background-color : white; cursor : pointer; } ``` This doesn't seem to work in IE6. The first few li tags don't appear to have the css fully applied to them: ![alt text](https://i.stack.imgur.com/nGk6U.png) [Here is a link to the live file.](http://mtcanvas.com/questions/liveli.html) I tried setting up a jsFiddle and jsBin for this but neither of those sites seem to function properly in ie6. Strangely if I add some events to the li tags, the same issue arises. Adding this code: ``` $("#openWin li").live('mouseover', function(){ $(this).css({"background-color": "#ededed"}); }).live("mouseout", function(){ $(this).css({"background-color": "white"}); }); ``` Works but the first few li tags act strangely. I'm going to keep working on this, any input would be greatly appreciated.
Jquery/CSS IE6 issue
CC BY-SA 4.0
null
2010-12-19T20:06:02.050
2019-11-10T22:29:15.183
2019-11-10T22:29:15.183
502,848
502,848
[ "jquery", "html", "css", "internet-explorer-6" ]
4,484,978
1
4,485,006
null
0
1,528
I wanted to be able to hide part of my application window to display only the 3 buttons at the bottom and the status bar. Currently I was trying to do it by changing the heigth of the window but it does not seem like a correct way to do this. For example if I have a windows form that has a menu bar, a status bar, and between the both i have a listview and the 3 buttons near the bottom, changing the height of the window will allow the user to risize it, will not show the buttons as there was the listview before so it would show only part of the list view and the status bar. Here is an example of what it happens if i use the height resize: ![alt text](https://i.stack.imgur.com/Dwmb6.jpg)
Hide part of the application window?
CC BY-SA 2.5
null
2010-12-19T20:40:34.467
2010-12-19T20:54:23.000
2010-12-19T20:48:32.797
342,740
342,740
[ "c#", "winforms", "hide", "partial" ]
4,485,028
1
4,667,488
null
0
179
I am trying to load .mm file on my iPhone project but i'v got some errors !!! I don't know how can i solve them ! these errors runs fine on the another .mm file ! ![alt text](https://i.stack.imgur.com/uPq0k.png)
problem with compiling .mm file
CC BY-SA 2.5
null
2010-12-19T20:53:22.500
2011-01-12T10:06:59.813
null
null
199,173
[ "iphone-sdk-3.0" ]
4,485,071
1
null
null
1
383
I'm having an issue with a webapp I'm writing for iOS devices. It only manifests itself in iOS 3.x. Below is the problem I'm having: ![problematic field](https://i.stack.imgur.com/rORFL.png) The computed style is: ``` -webkit-appearance: none; -webkit-background-clip: padding-box; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; -webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 1px 4px 0px inset; -webkit-rtl-ordering: logical; -webkit-user-select: text; background-attachment: scroll; background-clip: padding-box; background-color: #F0F0F0; background-image: none; background-origin: padding-box; border-bottom-color: #B3B3B3; border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: #B3B3B3; border-left-style: solid; border-left-width: 1px; border-right-color: #B3B3B3; border-right-style: solid; border-right-width: 1px; border-top-color: #B3B3B3; border-top-left-radius: 9px; border-top-right-radius: 9px; border-top-style: solid; border-top-width: 1px; color: #333; cursor: auto; display: inline-block; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; height: 22px; letter-spacing: normal; line-height: 22px; margin-bottom: 2px; margin-left: 0px; margin-right: 0px; margin-top: 2px; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: auto; text-indent: 0px; text-shadow: white 0px 1px 0px; text-transform: none; width: 378px; word-spacing: 0px; ``` This is a normal input field inside a table row. Any ideas of what's happening?
Garbled text in iOS 3.2 inside webapp
CC BY-SA 2.5
null
2010-12-19T21:01:51.533
2010-12-30T18:38:54.717
2020-06-20T09:12:55.060
-1
5,646
[ "css", "ios", "webkit", "mobile-webkit", "ios3.0" ]
4,485,170
1
4,504,254
null
0
4,654
i need some help again! At first i really thought it was some kind of ScrollView tweak to achieve something like this: ![alt text](https://i.stack.imgur.com/5EPYF.png) But, as far as i know, it isnt, so, how can i achieve this kinda of custom scrollbar? Thanks in advance!
Android scrollbar with a extra View (screenshot included)
CC BY-SA 2.5
0
2010-12-19T21:20:36.290
2010-12-21T21:49:06.840
null
null
null
[ "android", "scrollbar", "scrollview" ]
4,485,547
1
null
null
2
1,201
![alt text](https://i.stack.imgur.com/iAe8z.png) I create and show a QWebView with soft key options at the bottom. When I click "Options", a menu shows up, but it's tiny, black, and in the upper left hand corner (it should look like the standard blue soft keys and be directly above them). I followed this [example](http://wiki.forum.nokia.com/index.php/How_to_add_submenu_in_Qt_for_Symbian). ``` //create webview webView = new QWebView; webView->setUrl(QString(":html/internal.html")); //create menu QAction *option1 = new QAction(tr("Back"), webView); option1->setSoftKeyRole(QAction::PositiveSoftKey); connect(option1, SIGNAL(triggered()), this, SLOT(deleteView())); //create right softkey action to launch the "options" menu QAction *option2 = new QAction(tr("Options"), webView); option2->setSoftKeyRole(QAction::NegativeSoftKey); connect(option2, SIGNAL(triggered(), this, SLOT(showMenu())); QMenu *menuOptions = new QMenu(webView); menuOptions->addAction(tr("Sub Menu 1"), this, SLOT(aboutView())); menuOptions->addAction(tr("Sub Menu 2"), this, SLOT(aboutView())); option2->setMenu(menuOptions); //add softkey menus QList < QAction* > softKeys; softKeys.append(option1); softKeys.append(option2); webView->addActions(softKeys); webView->show(); ```
Qt - Symbian Mobile - Soft key menus not displaying correctly
CC BY-SA 2.5
null
2010-12-19T22:44:58.623
2010-12-28T07:40:30.927
2010-12-20T17:41:32.880
null
null
[ "qt", "mobile", "qt4", "symbian", "nokia" ]
4,485,564
1
4,485,762
null
3
334
## Background Provide an example of R programming. ## Problem Create a distribution of values that, when modeled, produces a curve that resembles: ![](https://i.stack.imgur.com/BEFXK.png) Essentially, I would like to do something like: ``` x <- seq( 0, 2, by=0.01 ) y <- sin( 2 * pi * cos( x - 1/2 ) ) plot( x, y * runif( x ) ) ``` But without the clump of data points around 0.5: ![](https://i.stack.imgur.com/FbAMx.png) ## Question How would you create such a distribution? Thank you!
Random, curvy distribution of data points
CC BY-SA 2.5
null
2010-12-19T22:47:29.293
2010-12-19T23:32:48.917
null
null
59,087
[ "r", "random", "package", "distribution", "curve-fitting" ]
4,485,774
1
4,485,938
null
6
3,706
I would like to know how to find the rotation matrix for a set of features in a frame. I will be more specific. I have 2 frames with 20 features, let's say frame 1 and frame 2. I could estimate the location of the features in both frames. For example let say a certain frame 1 feature at location (x, y) and I know exactly where it is so let's say (x',y'). My question is that the features are moved and probably rotated so I wanna know how to compute the rotation matrix, I know the rotation matrix for 2D: ![alt text](https://i.stack.imgur.com/KfgIG.png) But I don't know how to compute the angle, and how to do that? I tried a function in OpenCV which is `cv2DRotationMatrix();` but the problem which as I mentioned above I don't know how to compute the angle for the rotation matrix and another problem which it gives 2*3 matrix, so it won't work out cause if I will take this 20*2 matrix, (20 is the number of features and 2 are the location in (x,y)) and multiply it by the matrix by 2*3 which is the results from the function then I will get 20*3 matrix which it doesn't seem to be realistic cause I'm working with 2D. So what should I do? To be more specific again, show me how to compute the angle to use it in the matrix?
Rotation matrix openCV
CC BY-SA 3.0
0
2010-12-19T23:36:10.290
2016-02-01T16:13:18.970
2016-02-01T16:13:18.970
1,707,083
496,120
[ "math", "opencv" ]
4,485,740
1
4,485,860
null
1
104
I have created a form on php.i would like this form to appear in the center of the screen but i dont know css very well.this is the css code i have created: ``` body{ font:100% normal Arial, Helvetica, sans-serif; background:#161712;} *{ margin:0; padding:auto; } th { color:#ffffff; font-size:18px; border-bottom:1px solid #161712; border-top:1px solid #161712; } h2{ text-align:center; color:#CC0000;} table { color:#bbb; position:relative; float:left; margin-left: 150%; padding:30px; border-bottom:#505050 thin solid; } .tr_caption { font-weight: bold; } form { width:400px; } input { padding:10px 10px; width:200px; background:#262626; color:#fff; border-bottom: 1px double #171717; border-top: 1px double #171717; border-left:1px double #333; border-right:1px double #333; } .button { position: relative; margin-bottom:10px; float:right; background:#CC0000; border:0px; top:10px; left:482px; width:100px; bottom:50px; border-bottom: 1px double #660000; border-top: 1px double #660000; border-left:1px double #FF0033; border-right:1px double #FF0033; } .button:hover { background:#580000; border:0px; color:#FFF5CC; } ``` Also, I'm attaching a photo of the view of my screen: ![alt text](https://i.stack.imgur.com/rXpaS.png) ``` <body> <h2>Φόρμα συμπλήρωσης στοιχείων</h2> <?php if (isset($_POST['submit'])) if (checkForm() == "") { makeXML(); sendXML(); } else echo "<font color='blue'>".checkform()."</font><br/><br/>"; ?> <form method="post"> <table width="500px" > <tr><th colspan="2" >Στοιχεία του Πελάτη</th></tr> <tr><td>Όνοματεπώνυμο</td> <td><input type="text" name="custName" size="40" value="<?php echo $_POST["custName"];?>"> </td></tr> <tr><td>E-mail</td> <td><input type="text" name="custMail" size="40" value="<?php echo $_POST["custMail"];?>"> </td></tr> <tr><td>Διεύθυνση</td> <td><input type="text" name="custAddress" size="40" value="<?php echo $_POST["custAddress"];?>"> </td></tr> <tr><td>Τηλέφωνο</td> <td><input type="text" name="custPhone" size="40" value="<?php echo $_POST["custPhone"];?>"> </td></tr> </table> <br/> <table width="500px"> <tr><th colspan="2" align="center">Στοιχεία της Παραγγελίας</th></tr> <tr><td>Προϊόν</td> <td><input type="text" name="prodName" size="40" value="<?php echo $_POST["prodName"];?>"> </td></tr> <tr><td>Αριθμός Προϊόντων</td> <td><input type="text" name="numOfProd" size="40" value="<?php echo $_POST["numOfProd"];?>"> </td></tr> </table> <br/> <table width="500px"> <tr><th colspan="2" align="center">Στοιχεία του Προμηθευτή</th></tr> <tr><td>Επωνυμία</td> <td><input type="text" name="suplName" size="40" value="<?php echo $_POST["suplName"];?>"> </td></tr> <tr><td>Διεύθυνση</td> <td><input type="text" name="suplAddress" size="40" value="<?php echo $_POST["suplAddress"];?>"> </td></tr> <tr><td>Email</td> <td><input type="text" name="suplMail" size="40" value="<?php echo $_POST["suplMail"];?>"> </td></tr> <tr><td>Τηλέφωνο</td> <td><input type="text" name="suplPhone" size="40" value="<?php echo $_POST["suplPhone"];?>"> </td></tr> </table> <br/> <table width="500px"> <tr><th colspan="2" align="center">Στοιχεία Μεταφορικής Εταιρείας</th></tr> <tr><td>Επωνυμία</td> <td><input type="text" name="carrierName" size="40" value="<?php echo $_POST["carrierName"];?>"> </td></tr> <tr><td>Διεύθυνση</td> <td><input type="text" name="carrierAddress" size="40" value="<?php echo $_POST["carrierAddress"];?>"> </td></tr> <tr><td>Email</td> <td><input type="text" name="carrierMail" size="40" value="<?php echo $_POST["carrierMail"];?>"> </td></tr> <tr><td>Τηλέφωνο</td> <td><input type="text" name="carrierPhone" size="40" value="<?php echo $_POST["carrierPhone"];?>"> </td></tr> </table> <br/> <input type="hidden" name="timestamp" value="<?php echo time(); ?>" /> <input type="submit" name="submit" class="button" value="Αποστολή" /> <input type="reset" name="reset" class="button" value="Επαναφορά"/> </form> <p></p> <p></p> <p></p> </body> ```
better view of my form
CC BY-SA 2.5
null
2010-12-19T23:25:24.077
2010-12-19T23:55:32.217
2010-12-19T23:40:15.930
446,591
519,526
[ "css" ]
4,485,856
1
4,485,879
null
0
1,361
I need to get a ruby array in to a javascript array and I'm getting a parse error. ``` var characters = <%= @poop.to_json %>; ``` That is how I'm embedding ruby into inline javascript and it's coming up with a parse error. How should I be getting this ruby array into javascript? I'm embedding this into an .html.erb file so ruby should be getting to the variable before javascript. This is what safari console is showing: ![alt text](https://i.stack.imgur.com/BXKkC.png) # Update I had a form that had three fields js, css, and html respectively so I would put my javascript in a form and then it would put it into the header. ``` <head> <%= @game.javascript %> </head> ``` So as you can see I was embedding ruby in javascript that was the output of a ruby object so the reason ruby wasn't getting to it first was that it had already got to it and treated the <%= %> just like another string. Ahh, I up voted you all for the help. Thanks!
json, rails, parse error in javascript
CC BY-SA 3.0
0
2010-12-19T23:55:11.860
2012-10-08T16:15:16.947
2020-06-20T09:12:55.060
-1
225,727
[ "javascript", "ruby-on-rails", "json" ]
4,485,921
1
4,494,776
null
0
63
I have the following structure of categories under the `Info-s` section. The latter four categories appear to all have been allocated of the 3rd position. Either changing this number on the admin screen or in the order drop-down inside of the category pages doesn't seem to have any effect. ![alt text](https://i.stack.imgur.com/hoEfz.jpg) I suspect this is due to the way those categories have been created (using the `Copy` functionality). Any ideas?
categories of a section appear of the same order
CC BY-SA 2.5
null
2010-12-20T00:14:34.967
2014-01-02T10:22:48.490
2014-01-02T10:22:48.490
759,076
185,723
[ "joomla" ]
4,486,223
1
4,486,357
null
1
2,090
This is my code: ``` <h3 align="center">Is the mobile number above correct ?</h3> <div class="yesno"><a href="bugme_pay.php"><div id="yes">YES</div></a> &nbsp;&nbsp;&nbsp;<a href="#" class="nope"><div id="no">NO</div></a></div> ``` This is my CSS: ``` /* yes and no buttons */ #yes { float:left; display:inline; width:180px; background: #999999; font-size: 26px; font-weight: bold; text-align: center; color: #FFF; padding-top: 10px;padding-bottom: 10px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; margin-bottom: 0.4em; margin-top: 0.4em; } #yes a:visited, #yes a:link{ color: #fff; } #yes:hover { background-color: #9fd106; cursor:pointer; } #no { float:right; display:inline; width:180px; background: #999999; font-size: 26px; font-weight: bold; text-align: center; color: #FFF; padding-top: 10px;padding-bottom: 10px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; margin-bottom: 0.4em; margin-top: 0.4em; } #no a:visited, #no a:link{ color: #fff; } #no:hover { background-color: #f20909; cursor:pointer; } .yesno { width:400px; margin-left:100px; } ``` This is the issue: ![Buttons misaligned](https://i.stack.imgur.com/Ap8E2.jpg) I also have div switch to hide/show div. This is: ``` <!--show hide div logic--> <style> div#a { } div#b { display:none; } </style> <script type="text/javascript"> $("a.nope").click(function(){ $("#a").hide(); $("#b").show(); return false; }); </script> <!--//end show hide div logic--> ```
Buttons not aligned in Internet Explorer (CSS)
CC BY-SA 3.0
null
2010-12-20T01:31:17.323
2017-06-20T16:51:10.017
2017-06-20T16:51:10.017
209,139
501,173
[ "css", "internet-explorer" ]
4,486,654
1
4,486,676
null
0
1,038
I am trying to run this line out of [http://docs.heroku.com/quickstart](http://docs.heroku.com/quickstart) ``` git init ``` But I get ![alt text](https://i.stack.imgur.com/9xpup.png) How do I get around this problem?
git doesn't work. I get "'git' is not recognized as ..."
CC BY-SA 2.5
null
2010-12-20T03:29:35.217
2010-12-20T04:10:55.703
null
null
536,890
[ "ruby-on-rails", "git" ]
4,486,663
1
4,486,671
null
5
464
I'm writing a Windows GUI app and I have come on the need to have a normal button. I am using this code to generate the button: ``` hwnd = CreateWindowEx( NULL, "BUTTON", "Button", WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON, CW_USEDEFAULT, CW_USEDEFAULT, 60, 25, parentHwnd, NULL, GetModuleHandle(NULL), NULL); ``` I want the button to look like this (Ignore the background colour): ![Good button](https://i.stack.imgur.com/3wDMl.png) But it ends up looking like this: ![Bad button](https://i.stack.imgur.com/P45qr.png) I think I'm missing a style or something. What can I do to make it look like the first button?
Why does my Button look like it's from 1990?
CC BY-SA 2.5
0
2010-12-20T03:31:33.073
2010-12-20T03:32:55.333
2020-06-20T09:12:55.060
-1
538,627
[ "c++", "windows", "winapi", "user-interface", "button" ]
4,486,767
1
4,486,854
null
3
1,627
Does it matter how long and wide an image is when using CSS sprites? I noticed the SO sprite image is one long image, with all the sprites on top of each other. ![SO image](https://i.stack.imgur.com/1Nxwl.png) Would having the sprites grouped together increase performance?
Size of CSS Sprite Base Image
CC BY-SA 2.5
null
2010-12-20T03:57:35.783
2010-12-20T04:26:31.117
null
null
105,460
[ "css", "performance", "css-sprites" ]
4,486,864
1
4,793,288
null
10
18,411
In my map application, I am displaying a set of overlays on a map. Whenever I tap on an overlay I need to display a popup, like this ![Image of MapView with overlay popup](https://i.stack.imgur.com/22tPY.png) Can any one help me to sort out this?
How to display popup on tapping overlay in android?
CC BY-SA 3.0
0
2010-12-20T04:25:51.857
2013-05-30T15:39:33.627
2012-08-10T19:03:27.647
984,393
414,777
[ "android", "google-maps", "android-mapview" ]
4,487,196
1
4,487,203
null
-1
4,027
I am just wondering > why did asp.net team choose / as the default value of Membership Role application name rather than the project name that makes sense? In addition, the application might not be deployed as the root application. It means that / is no longer appropriate. For example: I create a project A first and deploy it. Later I create another project B and deploy it. If both projects use the default, they still work but it will be difficult to know which users come from each project. For me, it is better if the default is set to the project name. I am talking about the applicationName attribute generated by Visual Studio in Web.config. Why don't use the project name instead of / by default ? ``` <membership> <providers> <clear /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> <profile> <providers> <clear /> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /> </providers> </profile> <roleManager enabled="false"> <providers> <clear /> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> </providers> </roleManager> ``` After creating two applications (i.e., one as the root and the other one as the child app) and both have the same applicationName set to /, both application use the same ApplicationID. It means the slash has nothing to do with site domain tree. My confusion has been answered. So... why did Visual Studio set it to / (that makes confusion for me) by default? I have two applications. One as the root application and the other one as the sub application under the former. Both use applicationName = "/". I got the result as follow in database: So what is the meaning of /? If no meaning, why did VS choose this confusing name rather than the project name? ![alt text](https://i.stack.imgur.com/HleLX.png) From this [article](http://dotnettipoftheday.org/tips/applicationName_attribute.aspx), I will make the summary: 1. If we remove applicationName attribute from web.config for both applications, the ApplicationName generated in database for the root will be "/" and the ApplicationName generated in database for the sub app will be "/subappvirtualdir". 2. If we leave the applicationName to its default value of "/" for both applications, both root app and sub app will get the same ApplicatonName of "/" generated in database. 3. If we change the applicationName to "any name you want" for both applications, the ApplicationName generated in database will be set to "any name you want" for both applications. Thanks Rockin for the link above !
How does the applicationName attribute actually work?
CC BY-SA 2.5
null
2010-12-20T05:39:30.500
2010-12-20T08:44:36.330
2010-12-20T08:44:36.330
397,524
397,524
[ "asp.net", "web-config", "asp.net-membership", "asp.net-profiles", "application-name" ]
4,487,395
1
4,487,428
null
2
231
![alt text](https://i.stack.imgur.com/ZY58A.png) I have converted the fare field in gridview1 to display fare | seats in same cell as displayed below... i want when user select/ click on Book button row then the fare amount will be diplayed in textbox1 and seats will displayed in Textbox2 ``` Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged Textbox1.text=GridView1.SelectedRow.Cells(6).TextToString End Sub ```
how to display the the selected cell value to textbox1 and textbox2?
CC BY-SA 2.5
0
2010-12-20T06:30:39.710
2010-12-20T09:04:48.097
2010-12-20T09:04:48.097
521,066
522,211
[ "asp.net", "vb.net", "gridview" ]
4,487,657
1
4,504,770
null
2
1,923
I have an Entity in my Core Data model that contains a reference to itself. i.e. A Page can have a child collection of pages. When compiling i get the warning: "Page.pages -- to-many relationship does not have an inverse: this is an advanced setting (no object can be in multiple destinations for a specific relationship)" Now I have read that core data requires an inverse relationship to maintain integrity and would like to provide this. I don't mind my data model being changed it is an early stage of development. What is an appropriate way of dealing with this situation? ![alt text](https://i.stack.imgur.com/Fqsum.png)
Core Data: Self referencing table
CC BY-SA 2.5
0
2010-12-20T07:27:10.317
2010-12-21T23:01:34.527
null
null
100,652
[ "iphone", "core-data", "self-reference" ]
4,487,927
1
null
null
1
1,580
I am having problem with my html drop down select box. I have long list of items in select box therefore it goes outside of my screen. it doesn't shows scroll bar. Please help ![alt text](https://i.stack.imgur.com/MCSRw.jpg)
Problem with html drop down list
CC BY-SA 2.5
0
2010-12-20T08:21:42.043
2010-12-20T08:37:21.750
null
null
365,870
[ "html", "select", "drop-down-menu" ]
4,488,507
1
4,488,515
null
0
668
![alt text](https://i.stack.imgur.com/fitpk.png) I am working in MVC 2.0. Now I got a requirement regarding the Slider in the MVC. I have attached a image file below. How to implement this in MVC? How to get started with this? Is there any jQuery for this?
How to get through with slider in mvc?
CC BY-SA 4.0
null
2010-12-20T09:53:00.287
2018-11-01T08:10:30.067
2018-11-01T08:10:30.067
472,495
422,570
[ "jquery", "asp.net-mvc" ]
4,488,519
1
4,490,079
null
0
181
I am new for Json Document,i hava database with the following fileds: ![alt text](https://i.stack.imgur.com/9Lknh.png) On the basis of database field i have created Json document: ================================================================ ``` {"Id":["fifth","first","four","second","thrid"],"keyword":["michel","sam","jerry","John","smith"]} ``` ================================================================ I just want to know that the prepared `json` document is correct for elastic search or not? if wrong then what will be correct document for that. Thanks
correctness of json document for elasticsearch?
CC BY-SA 2.5
null
2010-12-20T09:54:48.310
2010-12-20T13:34:27.050
2010-12-20T13:34:27.050
157,882
423,620
[ "javascript", "json" ]
4,488,521
1
4,489,027
null
0
244
Hey everyone I'm not a professional coder by any stretch, but I've been playing around with a simple to-do list to learn the basics of android development. I've been able to get just about everything I want working, but there is one problem with my listview that has me totally stumped. I've extended SimpleCursorAdapter in order to format the data coming from my sqlite database and change the color of the duedate text based on whether or not the duedate has expired. The formatting works flawlessly, but I'm getting some odd results with the colors. The first few entries in the listview look as I expect them to, but as I scroll down, inconsistencies start popping up where items with no due date set will be colored red or green. The more I scroll up and down in the list, the more inconsistencies appear until eventually every row is colored whether it should be or not. Can someone help me understand what is going on here? Please see my custom adapter below. ``` public class ProAdapter2 extends SimpleCursorAdapter { private static int[] TO = {R.id.priority, R.id.projectname, R.id.duedate}; private static String[] FROM = {"priorities", "projectName", "dueDate"}; private Context context; private int layout; //constructor public ProAdapter2(Context context, int layout, Cursor c) { super(context,layout, c, FROM, TO); this.context=context; this.layout = layout; } @Override public View newView(Context context, Cursor curso, ViewGroup parent){ Cursor c = getCursor(); final LayoutInflater inflater = LayoutInflater.from(context); View v = inflater.inflate(layout, parent, false); TextView txtName = (TextView) v.findViewById(R.id.projectname); txtName.setText(c.getString(1)); TextView txtPriority = (TextView) v.findViewById(R.id.priority); txtPriority.setText(c.getString(2)); return v; } @Override public void bindView(View v, Context context, Cursor c) { TextView txtDueDate = (TextView) v.findViewById(R.id.duedate); TextView txtDueDateLabel = (TextView) v.findViewById(R.id.duedate_label); TextView txtPriority = (TextView) v.findViewById(R.id.priority); TextView txtPriorityLabel = (TextView) v.findViewById(R.id.priority_label); TextView txtName = (TextView) v.findViewById(R.id.projectname); LinearLayout pridate = (LinearLayout) v.findViewById(R.id.pridate); String dueDate = c.getString(3); String cDate = c.getString(4); String dueDateFormated; MyTime t = new MyTime(); Long cTimeLong = c.getLong(6); Long dTimeLong = c.getLong(5); dueDateFormated = t.getFormatedTime(c.getString(3)); txtDueDate.setText(dueDateFormated); if (c.getInt(5)==0){ txtDueDate.setText("Not Set"); } else if (cTimeLong < dTimeLong){ txtDueDate.setTextColor(Color.GREEN); } else if (cTimeLong > dTimeLong){ txtDueDate.setTextColor(Color.RED); } } } ``` ![image](https://i.stack.imgur.com/t2IRk.png) [http://i.stack.imgur.com/bt4Z8.png](https://i.stack.imgur.com/bt4Z8.png)
ListView color issue
CC BY-SA 3.0
0
2010-12-20T09:55:38.170
2011-12-17T00:23:00.333
2011-12-17T00:23:00.333
1,022,826
548,369
[ "android" ]
4,488,646
1
4,489,171
null
1
1,197
I am using grid bag layout for my Java application, but the problem is, it is not placing the components in the page start. Here is the code I am using: ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Trial extends JFrame { JLabel banner; Container c; GridBagConstraints gbc = new GridBagConstraints(); GridBagLayout gbl; public Trial() { setTitle("Attendence Manager"); setIconImage(Toolkit.getDefaultToolkit().getImage("images/icon.png")); Dimension dim= Toolkit.getDefaultToolkit().getScreenSize(); setSize(new Dimension(dim.width-20,dim.height-100)); c= getContentPane(); gbl= new GridBagLayout(); setLayout(gbl); banner = new JLabel(new ImageIcon("images/banner.jpg")); gbc.anchor=GridBagConstraints.PAGE_START; gbc.gridx=0; gbc.gridy=0; gbc.gridwidth=GridBagConstraints.REMAINDER; c.add(banner,gbc); this.setVisible(true); addWindowListener(new MyWindowAdapter()); } public static void main(String[] args) { Trial t = new Trial(); } } class MyWindowAdapter extends WindowAdapter { //LoginPage sp; public MyWindowAdapter() { } @Override public void windowClosing(WindowEvent we) { System.exit(0); } } ``` I have also tried ``` gbc.anchor = GridBagConstraints.FIRST_LINE_START; ``` even that didn't work. This is the output I am getting: ![Image](https://i.stack.imgur.com/ftEhj.jpg)
GridBagLayout not placing components at page start
CC BY-SA 3.0
null
2010-12-20T10:14:15.573
2017-05-02T16:56:37.267
2017-05-02T16:56:37.267
472,495
522,058
[ "java", "user-interface", "swing", "gridbaglayout" ]
4,488,794
1
4,492,612
null
3
8,351
i want to add to my project a resource file but vs2010 won't let me. what do i do? ![alt text](https://i.stack.imgur.com/7lyNB.png)
visual c++ 2010 can't add resource file
CC BY-SA 2.5
null
2010-12-20T10:33:43.263
2015-03-01T13:15:58.337
null
null
537,943
[ "c++", "resources" ]
4,488,801
1
4,489,356
null
0
268
How can i add green + button before a row in group table see in image ![alt text](https://i.stack.imgur.com/ZGgEG.png)
add + button before a row
CC BY-SA 2.5
0
2010-12-20T10:34:11.900
2010-12-20T11:54:49.753
null
null
483,888
[ "iphone", "uitableview" ]
4,488,849
1
4,488,856
null
0
1,426
![alt text](https://i.stack.imgur.com/pyYWM.png) Following error occurs in /// this coding " ``` Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New SqlConnection Dim cmd As New SqlCommand con.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" con.Open() cmd.Connection = con cmd.CommandText = "INSERT INTO boardingpt (service, travelid, bdpt_name, time) VALUES('" & Trim(TextBox3.Text.ToString) & "', '" & Trim(TextBox4.Text.ToString) & "', '" & Trim(TextBox1.Text.ToString) & "','" & Trim(TextBox2.Text.ToString) & "')" cmd.ExecuteNonQuery() con.Close() End Sub ```
MSSQL Query Error: "Cannot insert the value NULL into column <X>."
CC BY-SA 3.0
null
2010-12-20T10:41:57.440
2014-02-02T03:38:04.023
2014-02-02T03:38:04.023
32,458
522,211
[ "asp.net", "sql-server", "vb.net" ]
4,488,873
1
4,543,019
null
1
3,554
I want to create a simple IDE Expert for Delphi 7, like in the following image: ![alt text](https://i.stack.imgur.com/qdIBk.jpg) I've verified the links gave for this [question](https://stackoverflow.com/questions/1102668/how-do-i-write-a-delphi-galileo-ide-expert) but OTA Api newsgroup is dead, and most of the documentation is unavailable (broken links). Can someone give a starting point with this?
Create a Simple Delphi IDE Expert
CC BY-SA 3.0
null
2010-12-20T10:45:58.773
2017-09-01T14:06:24.077
2017-05-23T12:30:37.427
-1
368,364
[ "delphi", "ide", "delphi-7", "toolsapi" ]
4,488,922
1
4,489,028
null
1
1,144
No idea why this is happening... this is what it looks like in firefox: ![alt text](https://i.stack.imgur.com/kbnDf.png) And this is what it looks like in Safari: ![alt text](https://i.stack.imgur.com/uSwXg.png) A quick inspection with firebug for safari shows that its not picking up any style sheets except transmenu.css (for the menu - which isnt' even being used). I can't find ANY reason why this would happen. Any ideas? website: [http://tradartsteam.co.uk](http://tradartsteam.co.uk) Thanks
Website doesn't find stylesheet in Safari/IE
CC BY-SA 2.5
null
2010-12-20T10:52:58.050
2014-11-24T20:59:10.237
null
null
414,972
[ "css", "safari" ]
4,488,962
1
4,490,504
null
3
6,011
Well , when ever I am trying to run my application as administrator I am getting the following error, and whether to allow or not. If I am running the app directly and not as an administrator then this seems to work. Is there Some thing I need to do to get rid of the UAC , no I dont want user to manually change the UAC settings. Do I need to tweak registry settings only for my programe or any certificate I need to sign with. ![alt text](https://i.stack.imgur.com/gRZxN.jpg)
How to Disable UAC for my application
CC BY-SA 2.5
0
2010-12-20T10:57:58.183
2018-09-26T10:12:49.673
null
null
291,224
[ "c++", "windows-7", "windows-vista", "uac" ]
4,488,988
1
4,489,068
null
0
1,215
I know this has been asked a few times before, but the existing solutions look like hacks rather than a proper pattern. I have a simple drop down list. I am trying to populate it with data and have a item pre selected. I am succeeding at the 'populate it with data part' but failing to get my preferred item pre-selected. I am using ASP.NET MVC 3 RC2. The important code bits: ``` { // Bunch of code CategoryOptions = new SelectList(categories, "Id", "Slug", article.Category.Id); } ``` Now... the CategoryOptions is being passed to the Html helper like so: ``` @Html.DropDownListFor(a => a.Category, Model.CategoryOptions) ``` I have looked at the values being passed into the helper and have confirmed that one of the items has the selected value set to true: ![alt text](https://i.stack.imgur.com/Tl5xI.jpg) However, it is not reflecting in the Html being generated by the helper. None of the ... tags have the selected="selected" attribute. I used Reflector to examine the code a bit, and this line (SelectExtensions.SelectInternal) looks dicey: ``` item.Selected = (item.Value != null) ? set.Contains(item.Value) : set.Contains(item.Text); ``` Am I doing something wrong here? Or is the framework (ASP.NET MVC 3 RC2) at fault here.
Possible bug in Html.DropDownList, selected values not reflecting?
CC BY-SA 2.5
0
2010-12-20T11:00:49.177
2010-12-20T11:12:04.780
null
null
207,426
[ ".net", "asp.net-mvc", "viewmodel", "asp.net-mvc-3" ]
4,489,069
1
4,489,257
null
23
78,868
Normal button looks like: ![alt text](https://i.stack.imgur.com/6s8UX.png) Now, please let me know, How can i make a simple button same as an attached image button (i.e. button corner shape is round and also there is no gap between two buttons) ![alt text](https://i.stack.imgur.com/YIaXy.png)
How to set button style in android
CC BY-SA 4.0
0
2010-12-20T11:12:06.543
2019-11-07T15:02:44.487
2019-11-07T15:02:44.487
6,717,610
379,693
[ "android", "button", "styles" ]
4,489,186
1
4,489,531
null
1
130
I have little knowledge with the iPhone SKD (don't even know what code it is objective c?). I have so far got a table view working, and then showing content on another nib file once a row clicked. I have elseif statements for each row, telling them to load a nib file inside the ViewController. However, One row is causing a problem, it crases the app. ``` else if ([[array objectAtIndex:indexPath.row] isEqual:@"ASCII Characters"]) { Asciicharacters *asciicharacters = [[Asciicharacters alloc] initWithNibName:@"ASCII Characters" bundle:nil]; [self.navigationController pushViewController:asciicharacters animated:YES]; [asciicharacters release]; } ``` Here is an image of the debugger console: ![alt text](https://i.stack.imgur.com/T2y3O.png) I don't what to do, there is no errors displaying at all. It just crashes the app, if that row is clicked (both on simulator and iPhone). I think is't something to do with the spaces with in the name. This is the only row that has a space. But I need a space otherwise it would look silly. Thanks :)
iPhone SDK - Table view, error with spaces
CC BY-SA 2.5
null
2010-12-20T11:29:31.540
2010-12-20T12:17:22.693
2010-12-20T11:40:31.457
458,042
458,042
[ "iphone", "objective-c" ]
4,489,575
1
4,489,889
null
1
2,333
I am having a strange problem that the ADT plugin installation sticks at 49% on Eclipse Classic 3.6 for infinite time, as shown below... ![alt text](https://i.stack.imgur.com/eBHXJ.jpg) Please help me out to solve this problem... Thanks..
ADT plugin install sticks at 49% on Eclipse Classic 3.6
CC BY-SA 2.5
null
2010-12-20T12:24:11.683
2013-05-06T17:11:51.970
null
null
186,176
[ "android", "eclipse", "adt" ]
4,489,663
1
4,489,974
null
3
2,605
When I have a parent control which has a `BackColor` other than `SystemColors.Control`, but I have buttons on that parent control that I want to be drawn in the system them. However, when I do not change the `BackColor` of the buttons, it's drawn in the color of the parent. When I change the `BackColor` of the button to `SystemColors.Control`, it isn't drawn in the Windows theme anymore. ![alt text](https://i.stack.imgur.com/pdIhi.png) `SystemColors.Control``BackColor` ![alt text](https://i.stack.imgur.com/7IvOe.png) Any suggestions how I can fix this? The effect in the image can be accomplished by creating a new .NET 2.0 WinForms project and changing the constructor of `Form1` to the following: ``` public Form1() { InitializeComponent(); var textBox = new TextBox(); Controls.Add(textBox); var button = new Button { Text = "L", Width = 23, Height = 18, Left = -1, Top = -1 }; textBox.Controls.Add(button); // Disable the line below to get the default behavior button.BackColor = SystemColors.Control; } ```
Prevent Button from inheriting BackColor of Parent
CC BY-SA 2.5
null
2010-12-20T12:36:17.377
2010-12-20T13:35:54.663
2010-12-20T13:28:36.893
446,261
446,261
[ "c#", ".net", "winforms" ]
4,490,251
1
6,313,438
null
1
1,075
When looking at a linked `EntitySet<T>` of a LINQ to SQL mapped entity, I see the following: ![EntitySet debug view](https://i.stack.imgur.com/xJc22.png) I'd like to see the following (achieved by using the `.AsQueryable()` extension method) so that I can click the little refresh icon and see the content: ![alt text](https://i.stack.imgur.com/LPfPL.png) Why can't I see the Results View on a regular plain `EntitySet<T>`? Also, I've noticed that on [this MSDN page](http://msdn.microsoft.com/en-us/library/bb399410.aspx) it says: > In LINQ to SQL, the `EntitySet<TEntity>` class implements the `IQueryable` interface. From what I can see, `EntitySet<TEntity>` doesn't inherit from either `IQueryable` nor `IQueryable<T>`. So what's up with that claim?
Where is EntitySet<T>'s "Results View"?
CC BY-SA 2.5
0
2010-12-20T13:51:19.280
2011-06-11T01:07:07.030
2010-12-20T14:33:58.420
149,265
149,265
[ "c#", "linq-to-sql", "iqueryable", "entityset", "debuggervisualizer" ]
4,490,287
1
4,490,445
null
1
785
I am getting a syntax error while using the DOCTYPE ... actually i have a base page and loading two iframes in it , and the doctype is specifyed in one of these iframes .. I have some php codes before starting the html code ... The firebug error is shown below ![alt text](https://i.stack.imgur.com/v9Ojb.png) Thanks in advance
syntax error while specifying DOCTYPE
CC BY-SA 2.5
null
2010-12-20T13:57:11.740
2010-12-20T14:18:18.017
null
null
134,064
[ "html", "xhtml", "doctype" ]
4,490,726
1
4,490,796
null
3
6,489
I want to test against Android 1.3 platform instead of latest 2.2. Here is how my Android SDK and AVD Manager look likes. ![alt text](https://i.stack.imgur.com/NvHU9.png) However, I was expecting (screen from [http://developer.android.com/sdk/installing.html#components](http://developer.android.com/sdk/installing.html#components)), so that I can select old platform. ![alt text](https://i.stack.imgur.com/nUxoe.png) Is there anything I had missed out?
How to install old SDK platform
CC BY-SA 2.5
0
2010-12-20T14:53:27.280
2010-12-20T15:39:22.913
null
null
72,437
[ "android" ]
4,491,607
1
4,491,730
null
0
846
I have a menu using an UL, as usual it works finr in FFX but not in IE. I've tried a few things but can't get any good results. Anyone have any ideas or pointers? please see the attached code and image. If you look closely you can see the bullet points(black) on the left hand side. Where as in firefox a lovely menu is displayed....correctly! :) Merry Xmas!!! L ![alt text](https://i.stack.imgur.com/8bATU.jpg)
IE8 ul menu styling problem
CC BY-SA 2.5
null
2010-12-20T16:27:03.090
2010-12-20T17:15:12.603
null
null
545,877
[ "css", "internet-explorer-8", "styling" ]
4,492,142
1
4,492,469
null
3
2,516
I want to add a back image to a CALayer when the my rotation transform degree is higher than 90. It is just like a Flipboard flip animation. This is my current code: ``` CALayer *layer = self.view.layer; int frames = 130; layer.anchorPoint = CGPointMake(0, 0.5); CATransform3D transform = CATransform3DIdentity; transform.m34 = 1.0 / -2000.0; transform = CATransform3DRotate(transform, -frames * M_PI / 180.0, 0.0, 1.0, 0.0); self.view.layer.transform = transform; CAKeyframeAnimation *pivot = [CAKeyframeAnimation animationWithKeyPath:@"transform"]; NSMutableArray *values = [[NSMutableArray alloc] initWithCapacity:45]; NSMutableArray *times = [[NSMutableArray alloc] initWithCapacity:45]; for (int i = 0; i < frames; i++) { CATransform3D transform = CATransform3DIdentity; transform.m34 = 1.0 / -2000.0; transform = CATransform3DRotate(transform, -M_PI / 180.0 * i, 0.0, 1.0, 0.0); [values addObject:[NSValue valueWithCATransform3D:transform]]; [times addObject:[NSNumber numberWithFloat:(float)i / (frames - 1)]]; } pivot.values = values; pivot.keyTimes = times; [values release]; [times release]; pivot.duration = 0.5f; pivot.calculationMode = kCAAnimationLinear; [layer addAnimation: pivot forKey: @"pivot"]; ``` Could anyone tell me how to add a back image just like the flip effect. ![alt text](https://i.stack.imgur.com/fmnH1.png)
How can I add an image to the back of a CALayer after rotate 90 degrees?
CC BY-SA 2.5
0
2010-12-20T17:26:33.603
2010-12-20T18:06:19.887
null
null
212,912
[ "iphone", "objective-c", "ipad", "core-animation" ]
4,492,217
1
4,492,239
null
1
3,567
I have following html in string and i have to extract the content only in Paragraph tags any ideas?? link is [http://www.public-domain-content.com/books/Coming_Race/C1P1.shtml](http://www.public-domain-content.com/books/Coming_Race/C1P1.shtml) I have tried ``` const string HTML_TAG_PATTERN = "<[^>]+.*?>"; static string StripHTML(string inputString) { return Regex.Replace(inputString, HTML_TAG_PATTERN, string.Empty); } ``` it removes all html tags but i dont want to remove all the tags because this is the way how i can get content like paragraph by tags secondly it makes line breaks to \n in text and and applying replace("\n","") dose not helps one problem is that when i apply ``` int UrlStart = e.Result.IndexOf("<p>"), urlEnd = e.Result.IndexOf("<p>&nbsp;</p></td>\r" ); string paragraph = e.Result.Substring(UrlStart, urlEnd); extractedContent.Text = paragraph.Replace(Environment.NewLine, ""); ``` `<p>&nbsp;</p></td>\r` this appears at the end of paragraph but urlEnd dose not makes sure only paragraph is shown the string extracted is shown in visual studio is like this ![alt text](https://i.stack.imgur.com/GLqo2.jpg) this page is downloaded by Webclient End of HTMLpage ``` We will provide ourselves with ropes of\rsuitable length and strength- and- pardon me- you must not\rdrink more to-night. our hands and feet must be steady and\rfirm tomorrow.\"\r<p>&nbsp;</p> </td>\r </tr>\r\r <tr>\r <td height=\"25\" width=\"10%\">\r \r </td><td height=\"25\" width=\"80%\" align=\"center\">\r <font color=\"#FFFFFF\">\r <font size=\"4\">1</font> &nbsp;\r </font></td>\r <td height=\"25\" width=\"10%\" align=\"right\"><a href=\"C2P1.shtml\">Next</a></td>\r </tr>\r </table>\r </center>\r</div>\r<p align=\"center\"><a href=\"index.shtml\"><b>The Coming Race -by- Edward Bulwer Lytton</b></a></p>\r<P><B><center><A HREF=\"http://www.public-domain-content.com/encyclopedia.shtml\">Encyclopedia</a> - <A HREF=\"http://www.public-domain-content.com/books.shtml\">Books</a> - <A HREF=\"http://www.public-domain-content.com/religion.shtml\">Religion<a/> - <A HREF=\"http://www.public-domain-content.com/links2.shtml\">Links</a> - <A HREF=\"http://www.public-domain-content.com/\">Home</a> - <A HREF=\"http://www.webmaster-headquarters.com/mb/\">Message Boards</a></B><BR>This <a HREF=\"http://www.wikipedia.org/\">Wikipedia</a> content is licensed under the <a href=\"http://www.gnu.org/copyleft/fdl.html\">GNU Fr ```
Extract content in paragraph Tags
CC BY-SA 2.5
null
2010-12-20T17:35:21.037
2010-12-20T19:03:04.917
2010-12-20T19:03:04.917
430,167
430,167
[ "c#", "html", "webclient" ]
4,492,461
1
4,493,439
null
2
1,922
Here's my issue. Hopefully I can explain it well enough. My desktop is a 2x2 with monitors of size (2048,1152). I'm trying to use an ancillary device to generate mouse clicks. My mouse click is supposed to be on coordinate (1600,1407)-ish (on the "pan button"), assuming (0,0) is the top-left of my entire desktop area. It moves the mouse to the correct position, but when I perform a `CGREctContainsPoint()`) it gives me `NO` as a result. The rectangle(frame) given by my pop-up window has origin of (1558,-406)? So the math is correct for `CGREctContainsPoint()`, but the window's frame contain the point. (even more so as I can the mouse cursor over the window.) Why? Is it because it is a child window? (center of my desktop is in center of the image, each window is a different background color.) ![center of my desktop is in center of the image, each window is a different background color.](https://i.stack.imgur.com/r36aV.jpg) I have tried using the following: ``` NSRect pFrame = [_popupWindow frame]; NSPoint pOrigin = pFrame.origin; NSPoint correctedOrigin = [[_popupWindow parentWindow] convertBaseToScreen:pOrigin]; pFrame.origin = correctedOrigin; ``` but that gives me: `... Rect {{1488, -1529}, {439, 306}}, Point {1556.17, 1314.76}, InRect 0` as a result, which still doesn't place the point (which I can see hovering over the pop-up window) in the rect. Why is the rect for my popup window and the point not even remotely the same? How can I get them in the same coordinate "space"? Thanks,
Mac Mouse Coordinates != Window Frame?
CC BY-SA 2.5
null
2010-12-20T18:05:48.013
2010-12-20T20:55:36.007
null
null
266,252
[ "macos", "mouse", "desktop", "coordinates", "multiple-monitors" ]
4,492,589
1
4,492,606
null
0
1,084
I have written a code for a login page and user page. When the user provides the correct username and password, my code creates a session variable rid and then redirects the user to user page. But I am facing a weird problem, the session variable remains in the login page but when the code redirects to user page is says `Notice: Undefined variable: _SESSION in /var/www/Avatar/test1.php on line 6`. Just to check if session is working properly I tries to output `$_SESSION['rid']` on both the pages, it displays the rid on the login page, but on the user page I get the above error. So I have created two sample pages `test.php` and `test1.php`. I am creating a session variable in `test.php` and then trying to display in in `test1.php`. ``` <?php $result=session_start(); $_SESSION["Searock"]="Searock"; echo $result; echo $_SESSION["Searock"]; ?> <html> <body> <a href="test1.php">next</a> </body> </html> ``` > 1 Searock next ``` <?php echo $_SESSION["Searock"]; ?> ``` > Notice: Undefined variable: _SESSION in /var/www/Avatar/test1.php on line 2 I don't know whether the problem is in my code or is it in PHP enviroment variables. Heres a screen shot of phpinfo. ![alt text](https://i.stack.imgur.com/eWpkQ.png) Can someone point me in a right direction ? Thanks.
Can't hold session values
CC BY-SA 2.5
null
2010-12-20T18:20:37.930
2012-12-23T22:31:58.780
2012-12-23T22:31:58.780
168,868
92,487
[ "php", "session", "apache2", "session-variables" ]
4,492,819
1
4,493,360
null
0
1,630
First off I want to point out that I'm very new to the ExtJs library. I want to create an image through the use of some drawing/canvas API. The image I want to create is similar to the below image. ![alt text](https://i.stack.imgur.com/8IvMc.png) I'm wondering if this is possible through javascript/Extjs because I haven't been able to find anything online that makes this clear. If you can think of a different kind of approach I would appreciate that as well.
Drawing graphics in ExtJs
CC BY-SA 2.5
0
2010-12-20T18:52:14.097
2014-06-04T23:06:11.877
null
null
250,346
[ "javascript", "extjs" ]
4,492,926
1
4,493,073
null
10
8,048
Is there a way in which I can change the button color and preserve the Windows VisualStyle? I want to create a button that looks like checkBox2 (color and style) ![alt text](https://i.stack.imgur.com/nNzKF.png) ``` this.button2.BackColor = System.Drawing.SystemColors.GradientActiveCaption; this.button2.UseVisualStyleBackColor = false; //if true, BackColor gets ignored ```
C# UseVisualStyleBackColor
CC BY-SA 2.5
0
2010-12-20T19:07:23.437
2010-12-20T19:24:16.760
null
null
529,725
[ "c#" ]
4,492,931
1
4,492,962
null
0
252
I'm trying to speed up my query... ``` select PadID from Pads WHERE (keywords like '%$search%' or ProgramName like '%$search%' or English45 like '%$search%') AND RemovemeDate = '2001-01-01 00:00:00' ORDER BY VersionAddDate DESC ``` I've done some work already, I have a keywords table so I can add ``` ... PadID IN (SELECT PadID FROM Keywords WHERE word = '$search') ... ``` However its going to be a nightmare to split up the words from English45 and ProgramName into a word table. Any ideas ? EDIT : (also provided actual table names) ![alt text](https://i.stack.imgur.com/f3jk6.png) ![alt text](https://i.stack.imgur.com/u8YqC.png) ![alt text](https://i.stack.imgur.com/x0xoU.png)
How can I replace/speed up a text search query which uses LIKE?
CC BY-SA 2.5
null
2010-12-20T19:07:40.627
2010-12-21T06:47:11.547
2010-12-20T22:02:14.107
450,456
450,456
[ "php", "mysql", "full-text-search" ]
4,493,116
1
4,493,167
null
2
8,698
I have a form with multiple drop downs... I would like to set the background color of the visible dropdowns to gray when they are disabled. All of these dropdown's id's begin with usrControl. Here is what I have this far.. ``` $('select[id ^= "usrControl"]:visible').each(function(){ this.css("background-color") }); ``` Not sure how to get the disabled/enabled selectors. Thanks in advance ![alt text](https://i.stack.imgur.com/ZzMJ2.png) ``` Protected _picklistColorScriptText As String = "$(document).ready(function(){ " + _ "$('[id ^= ""usrControl""]:visible:disabled').css(""background-color"", '#DCDCDC'); " + _ "$('[id ^= ""usrControl""]:visible:enabled').css(""background-color"", '#FFFFFF');" + _ "});" ``` This works. However, this sets the background for the entire control to gray, how can I change the color of the selected item to gray?
Change Background Color with jQuery
CC BY-SA 2.5
0
2010-12-20T19:29:05.417
2012-05-03T12:05:09.353
2012-05-03T12:05:09.353
741,249
546,390
[ "jquery", "jquery-selectors", "drop-down-menu" ]
4,493,697
1
4,493,742
null
61
12,791
I am trying to figure out one thing in IntelliJ IDEA 10: ![alt text](https://i.stack.imgur.com/PMRHr.png) 1. current caret position 2. where caret moves after pressing DOWN arrow 3. where I want caret to be Is such setting possible?
IntelliJ IDEA - caret behavior
CC BY-SA 3.0
0
2010-12-20T20:36:16.330
2020-06-30T11:27:59.767
2015-01-04T22:33:43.200
3,885,376
314,073
[ "java", "intellij-idea" ]
4,493,837
1
4,493,958
null
13
3,683
I'm wanting to know if there's a way I can transform my view to look something like iPhone folders. In other words, I want my view to split somewhere in the middle and reveal a view underneath it. Is this possible? ![alt text](https://i.stack.imgur.com/g56Hn.png) Per the suggestion below, I take a screenshot of my application by doing this: ``` UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); ``` Not sure what to do with this, however. I've figured out how to add some shadows to my view, and here's what I've achieved (cropped to show relevant part): ![alt text](https://i.stack.imgur.com/MQ0xn.png) [http://github.com/jwilling/JWFolders](http://github.com/jwilling/JWFolders)
How to make something like iPhone Folders?
CC BY-SA 3.0
0
2010-12-20T20:51:22.463
2013-02-20T16:31:26.240
2013-02-20T16:31:26.240
293,008
456,851
[ "iphone", "objective-c", "cocoa-touch", "transform", "directory" ]
4,493,960
1
4,503,471
null
0
576
I'm making a Flex app and I'd like to know how to set the name of my app as it appears when the user hovers over it in the dock. Here's a screenshot of it now: ![LimudYomi Dock Screenshot](https://i.stack.imgur.com/jMgiX.png) I'd like a space between the lowercase 'd' and the uppercase `Y`. What part of my app's XML file must I edit to change that text in the gray tooltip?
How do I set my application's dock name?
CC BY-SA 2.5
null
2010-12-20T21:07:32.643
2010-12-22T17:52:31.607
null
null
224,988
[ "apache-flex", "macos", "mxml", "dock" ]
4,494,306
1
4,499,628
null
17
11,917
I'm trying to print a table that's more pleasant to the eye than the pure text representation of it. basically I want to convert something like this: ``` +-----+--------+ | age | weight | +-----+--------+ | 10 | 100 | | 80 | 500 | +-----+--------+ ``` to something like this: ``` ┌─────┬────────┐ | age | weight | ├─────┼────────┤ │ 10 │ 100 │ │ 80 │ 500 │ └─────┴────────┘ ``` here is the screenshot of what I see in terminal: ![in terminal looks like this](https://i.stack.imgur.com/9eluo.png) Notice the gaps between the rows. My problem is that they are not connecting properly while other Unix tools that use ANSI printing look fine in terminal. For example, tree, if I run `tree -A` in my terminal `I get this: ![tree in terminal](https://i.stack.imgur.com/Dfdpu.png) notice how vertical lines are connected together. it's funny because when I copy and paste the output of tree into my text editor and run my script I get something like this: ![tree in my code](https://i.stack.imgur.com/0ubOY.png) Obviously I'm missing something about printing ANSI chars in terminal and couldn't find anything about it by googling it. can anyone shed some light on this topic?
Drawing tables in terminal using ANSI box characters
CC BY-SA 2.5
0
2010-12-20T21:51:40.500
2017-06-17T20:56:57.107
2017-06-17T20:56:57.107
4,370,109
78,254
[ "unix", "terminal", "tabular" ]
4,494,729
1
4,494,917
null
1
2,584
But I am struggling. Code I have for css is: So I thought ... Would work, but it doesnt. The image I am transparently overlaying on hover is: ![alt text](https://i.stack.imgur.com/XZBJo.png) What am I doing wrong. I think I may have a corrupt css tag somewhere. Any help appreciated.
I want to apply a overlay image on hover
CC BY-SA 2.5
null
2010-12-20T22:45:09.837
2010-12-20T23:13:16.573
2010-12-20T23:00:58.690
358,443
501,173
[ "css" ]
4,495,098
1
4,495,212
null
4
6,263
I'm trying to use [this](http://code.google.com/webfonts/preview#font-family=Lato) font on my web. It's in Lithuanian language, but it's not the point, the point is, that on google fonts previewer I can see characters beautifully, but on my site some specific symbols gets some nasty look. ![ScreenShoot](https://i.stack.imgur.com/gMIrW.jpg) Maybe anyone knows how can I solve this, I say, issue? P.S. Or recommend me some other standard very light font which I could use ...
Google Fonts, CSS, Latin Question
CC BY-SA 2.5
null
2010-12-20T23:48:48.943
2013-04-24T21:02:55.130
2010-12-21T10:40:51.917
5,369
5,369
[ "html", "css", "character-encoding", "latin", "google-webfonts" ]
4,495,415
1
null
null
0
1,015
I just received a request from colleague to work out why a specific dll cannot be added as a reference in Visual Studio 2008 Version 9.0.21022.8 RTM with MS .Net Framework Version 3.5 SP1. The language used is Visual C++ 2008, I have never done anything in this language, although I've done a bit in C# before... Please check the following two error messages, first one came from my laptop, the second from my colleague's: ![my error message](https://i.stack.imgur.com/Bzh4Q.png) ![another error message](https://i.stack.imgur.com/uvNy6.jpg) From my Google research I am afraid the target dll is: - NOT a type library. Confirmed by running the tlbimp utility:``` tlbimp C:\test\tm1api.dll ...... error TI0000 : The input file 'C:\test\tm1api.dll' is not a valid type library ``` What does this mean, anything to convert it to a type library?- NOT a .NET assembly or a registered ActiveX Control. The dll was not programmed in VS I am afraid. But how could I verify this? Basically I am confused, because two VS 2008 show different error messages, is this issue specific to VS 2008 only? Or is there a general solution in VS for this sort of thing? Many thanks to the help in advance.
add non "type library" dll as reference to VS C++ 2008
CC BY-SA 2.5
null
2010-12-21T00:51:06.697
2011-12-21T13:34:16.057
2011-12-21T13:34:16.057
3,043
175,296
[ "visual-studio-2008", "visual-c++", "dll" ]
4,495,433
1
4,576,320
null
38
26,198
Is there an apple-house-made way to get a UISlider with a ProgressView. This is used by many streaming applications e.g. native quicktimeplayer or youtube. (Just to be sure: i'm only in the visualization interested) ![Slider with loader](https://i.stack.imgur.com/8Nie9.png) cheers Simon
UISlider with ProgressView combined
CC BY-SA 2.5
0
2010-12-21T00:54:51.430
2020-10-17T11:41:48.970
2010-12-22T00:09:10.403
330,658
330,658
[ "objective-c", "ios4", "streaming", "uislider", "uiprogressview" ]
4,495,526
1
4,495,691
null
4
8,596
So its about html5 canvas. So I want to see something like `x:11, y:33` in form of tooltip near to mouse when mouse is on canvas like ![alt text](https://i.stack.imgur.com/aQs6H.jpg)... mouse moves tooltip moves with it showing coordinates. How to do such thing with javascript and html 5?
How to show mouse coordinates over canvas using pure javascript in tooltip form?
CC BY-SA 2.5
0
2010-12-21T01:09:49.007
2014-11-20T10:44:57.333
2010-12-21T01:17:26.680
434,051
434,051
[ "javascript", "html", "canvas" ]
4,495,523
1
4,495,924
null
11
3,053
Not long after upgrading to VS2010, my application won't shut down cleanly. If I close the app and then hit pause in the IDE, I see this: ![alt text](https://i.stack.imgur.com/7hugL.png) The problem is, there's no context. The call stack just says [External code], which isn't too helpful. Here's what I've done so far to try to narrow down the problem: - - - While I could do the next brute force step, which is to roll my code back to a point where this happen and then look over all of the change logs, this isn't terribly efficient. Can anyone recommend a better way to figure this out, given the notable lack of information presented by the debugger? The only other things I can think of include: - - Perhaps this information will be of use. I decided to use WinDbg and attach to my application. I then closed it, and switched to thread 0 and dumped the stack contents. Here's what I have: ``` ThreadCount: 6 UnstartedThread: 0 BackgroundThread: 1 PendingThread: 0 DeadThread: 4 Hosted Runtime: no PreEmptive GC Alloc Lock ID OSID ThreadOBJ State GC Context Domain Count APT Exception 0 1 1c70 005a65c8 6020 Enabled 02dac6e0:02dad7f8 005a03c0 0 STA 2 2 1b20 005b1980 b220 Enabled 00000000:00000000 005a03c0 0 MTA (Finalizer) XXXX 3 08504048 19820 Enabled 00000000:00000000 005a03c0 0 Ukn XXXX 4 08504540 19820 Enabled 00000000:00000000 005a03c0 0 Ukn XXXX 5 08516a90 19820 Enabled 00000000:00000000 005a03c0 0 Ukn XXXX 6 08517260 19820 Enabled 00000000:00000000 005a03c0 0 Ukn 0:008> ~0s eax=c0674960 ebx=00000000 ecx=00000000 edx=00000000 esi=0040f320 edi=005a65c8 eip=76c37e47 esp=0040f23c ebp=0040f258 iopl=0 nv up ei pl nz na po nc cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202 USER32!NtUserGetMessage+0x15: 76c37e47 83c404 add esp,4 0:000> !clrstack OS Thread Id: 0x1c70 (0) Child SP IP Call Site 0040f274 76c37e47 [InlinedCallFrame: 0040f274] 0040f270 6baa8976 DomainBoundILStubClass.IL_STUB_PInvoke(System.Windows.Interop.MSG ByRef, System.Runtime.InteropServices.HandleRef, Int32, Int32)*** WARNING: Unable to verify checksum for C:\Windows\assembly\NativeImages_v4.0.30319_32\WindowsBase\d17606e813f01376bd0def23726ecc62\WindowsBase.ni.dll 0040f274 6ba924c5 [InlinedCallFrame: 0040f274] MS.Win32.UnsafeNativeMethods.IntGetMessageW(System.Windows.Interop.MSG ByRef, System.Runtime.InteropServices.HandleRef, Int32, Int32) 0040f2c4 6ba924c5 MS.Win32.UnsafeNativeMethods.GetMessageW(System.Windows.Interop.MSG ByRef, System.Runtime.InteropServices.HandleRef, Int32, Int32) 0040f2dc 6ba8e5f8 System.Windows.Threading.Dispatcher.GetMessage(System.Windows.Interop.MSG ByRef, IntPtr, Int32, Int32) 0040f318 6ba8d579 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) 0040f368 6ba8d2a1 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame) 0040f374 6ba7fba0 System.Windows.Threading.Dispatcher.Run() 0040f380 62e6ccbb System.Windows.Application.RunDispatcher(System.Object)*** WARNING: Unable to verify checksum for C:\Windows\assembly\NativeImages_v4.0.30319_32\PresentationFramewo#\7f91eecda3ff7ce478146b6458580c98\PresentationFramework.ni.dll 0040f38c 62e6c8ff System.Windows.Application.RunInternal(System.Windows.Window) 0040f3b0 62e6c682 System.Windows.Application.Run(System.Windows.Window) 0040f3c0 62e6c30b System.Windows.Application.Run() 0040f3cc 001f00bc MyApplication.App.Main() [C:\code\trunk\MyApplication\obj\Debug\GeneratedInternalTypeHelper.g.cs @ 24] 0040f608 66c421db [GCFrame: 0040f608] ``` EDIT -- not sure if this helps, but the main thread's call stack looks like this: ``` [Managed to Native Transition] > WindowsBase.dll!MS.Win32.UnsafeNativeMethods.GetMessageW(ref System.Windows.Interop.MSG msg, System.Runtime.InteropServices.HandleRef hWnd, int uMsgFilterMin, int uMsgFilterMax) + 0x15 bytes WindowsBase.dll!System.Windows.Threading.Dispatcher.GetMessage(ref System.Windows.Interop.MSG msg, System.IntPtr hwnd, int minMessage, int maxMessage) + 0x48 bytes WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame = {System.Windows.Threading.DispatcherFrame}) + 0x85 bytes WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes WindowsBase.dll!System.Windows.Threading.Dispatcher.Run() + 0x4c bytes PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x17 bytes PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x6f bytes PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x26 bytes PresentationFramework.dll!System.Windows.Application.Run() + 0x1b bytes ``` I did a search on it and found some posts related to WPF GUIs hanging, and maybe that'll give me some more clues.
How to figure out who owns a worker thread that is still running when my app exits?
CC BY-SA 2.5
0
2010-12-21T01:09:32.873
2010-12-28T16:57:26.857
2010-12-23T16:45:43.733
214,071
214,071
[ "c#", "wpf", "multithreading", "visual-studio-2010", ".net-4.0" ]
4,495,564
1
4,536,119
null
12
22,262
when i check out a new grails project from svn, i got some error: > 1.The project was not built since its build path is incomplete. Cannot find the class file for groovy.lang.GroovyObject. Fix the build path then try building this project2.The type groovy.lang.GroovyObject cannot be resolved. It is indirectly referenced from required .class files i had config the grails path, and it can run-app well. but,still error warning. ![alt text](https://i.stack.imgur.com/LMpU0.png)
error of grails project from svn : GroovyObject cannot be resolved
CC BY-SA 2.5
0
2010-12-21T01:22:35.427
2018-02-27T15:40:09.373
null
null
537,353
[ "eclipse", "svn", "grails" ]
4,495,626
1
null
null
139
172,300
I've a few websites like google-docs and map-quest that have custom drop down menus when you right-click. Somehow they override the browser's behavior of drop-down menu, and I'm now sure exactly how they do it. I found a [jQuery plugin](http://plugins.jquery.com/plugin-tags/context-menu) that does this, but I'm still curious about a few things: - - - ![custom context menu image](https://i.stack.imgur.com/5Tn04.png) [See several custom-context menus in action](http://www.javascripttoolbox.com/lib/contextmenu/)
Making custom right-click context menus for my web-app
CC BY-SA 2.5
0
2010-12-21T01:37:22.537
2021-12-18T08:52:36.053
2017-03-22T11:37:22.860
938,236
89,989
[ "javascript", "jquery", "jquery-plugins", "contextmenu", "right-click" ]