Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
5,174,070
1
5,176,858
null
3
12,705
In an application, I'm using uneditable JEditorPanes as a sort of a generic UI widget that can display somewhat complex content (HTML will do the trick), wrap text lines and catch mouse clicks. Not sure if JEditorPane is a good choice for this, so feel free to suggest alternatives. The following sample code works fairly well: ``` import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.ScrollPaneConstants; public class Main { private static JPanel createPanel() { JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); for (int i = 0; i < 3; i++) { JEditorPane editorPane = new JEditorPane(); editorPane.setEditable(false); editorPane.setContentType("text/html"); String text = "This is <b>item #" + i + "</b>." + " It's got text on it that should be wrapped." ; editorPane.setText(text); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = i; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.weightx = 1.0; constraints.insets.bottom = 5; panel.add(editorPane, constraints); } return panel; } public static void main(String[] args) { JPanel panel = createPanel(); JFrame frame = new JFrame(); frame.setSize(200, 200); frame.setLocation(200, 200); // Change this to switch between examples boolean useScrollPane = false; if (useScrollPane) { JScrollPane scrollPane = new JScrollPane(); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane.setViewportView(panel); frame.add(scrollPane); } else { frame.add(panel); } frame.setVisible(true); } } ``` and produces the following: ![](https://dl.dropbox.com/u/3110371/stackoverflow/jeditorpane_wrap_1.png) However, I may have a large number of these and could use a vertical scrollbar. So I put the whole thing in a JScrollPane (change the `useScrollPane` variable to `true` in the sample code to see this version). This gives me a vertical scrollbar if I shrink the window height, but the problem is that now the text is no longer wrapped: ![](https://dl.dropbox.com/u/3110371/stackoverflow/jeditorpane_wrap_2.png) So the question is: how can I get both the text wrapping and the vertical scrollbar? As you can see, I disabled the horizontal scrollbar, but it didn't help much. PS. I don't have much experience with Swing, so if you see some beginner WTFs in this code, please point them out :)
Wrapping HTML text in a JEditorPane inside a JScrollPane
CC BY-SA 2.5
0
2011-03-02T21:59:11.060
2011-03-03T05:01:45.083
2017-02-08T14:31:41.317
-1
107,211
[ "java", "html", "jscrollpane", "word-wrap", "jeditorpane" ]
5,174,112
1
5,186,659
null
1
366
I just started using Coderush and found some stuff that I used to have already with Power Tools extension installed. So I disabled some PowerTools options, now the picture looks like this: ![enter image description here](https://i.stack.imgur.com/SjiL8.jpg) I think there is something else left that I should have disabled as well, because Coderush provides better functionality? Can't get rid of PowerTools entirely. I really love the solution navigator though.
Coderush and Productivity Power Tools overlapped functionality
CC BY-SA 2.5
0
2011-03-02T22:03:13.167
2011-03-06T21:05:19.183
2011-03-06T21:05:19.183
116,395
116,395
[ "visual-studio-2010", "coderush" ]
5,174,204
1
26,295,523
null
18
13,076
I use a standard gradient overlay (done in photoshop) to make buttons look nicer in my app. I added an Airplay button, but the aesthetics are not matching. ![enter image description here](https://i.stack.imgur.com/kR0jv.png) I really want to put a gradient layer over it so it matches, but anything I can find only shows how to do this with a png, not an existing UIView. If not the gradient layer, I just need someway, way, to change the appearance of the Apple airplay button while keeping its functionality intact. The setup code is simple: ``` MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:frame]; [volumeView setShowsVolumeSlider:NO]; [bottomPanel addSubview:volumeView]; ``` How can I get the appearance of this to match my controls?
Customize the Airplay button's appearance
CC BY-SA 2.5
0
2011-03-02T22:14:07.990
2019-07-31T07:17:14.640
2011-03-17T22:30:13.670
69,634
69,634
[ "iphone", "ios", "overlay", "calayer", "airplay" ]
5,174,488
1
5,174,995
null
1
2,929
Does anyone know of a library -- open source or otherwise -- that I can use to create a pie (radial) menu for an iOS application? ![Enter image description here](https://i.stack.imgur.com/m8MEO.png) It seems like someone should have thought of this by now, and I'd hate to roll my own if I don't have to.
Pie (radial) menu for iOS
CC BY-SA 2.5
0
2011-03-02T22:44:38.610
2017-01-30T19:29:51.677
2012-03-13T15:42:52.370
50,776
54,213
[ "iphone", "ios", "menu", "radial" ]
5,174,974
1
null
null
1
845
Does anyone know where I can find the back triangle button for the UIButton. I need it for a in app webbrowser. Here's what I've got so far, but it looks wrong using the rewind button. I'm using interface builder on this view and if I could get the proper png I could set the UIBarButton image. I stumbled on the file path to access the SDKs private artwork but I've since lost it, I imagine it would be in there. ![enter image description here](https://i.stack.imgur.com/8Pmfh.png)
Where do you find the "back" triangle button for UIToolBar?
CC BY-SA 2.5
0
2011-03-02T23:49:28.920
2011-05-16T08:17:30.830
null
null
519,493
[ "ios", "uitoolbar" ]
5,174,998
1
5,175,118
null
4
1,716
Rather than trying to explain this - which would be hard I have created an image - I am having trouble creating a layout in which: The sidebar is flexible and can extend to fill the empty space not consumed by the content fiv which has a fixed width of 725px. Have a look at the image please :)![enter image description here](https://i.stack.imgur.com/9NQwz.png)
Fixed width content with flexible (strechable) sidebar
CC BY-SA 2.5
null
2011-03-02T23:55:36.770
2015-08-12T09:19:52.613
null
null
554,195
[ "html", "css" ]
5,175,016
1
5,175,044
null
1
589
I am trying to create tableless Form using and tags, im stuck. I want the form look like this: ![enter image description here](https://i.stack.imgur.com/q8jeK.jpg) I should be able to set the width of textbox, text area and select in CSS.
Form layout in CSS
CC BY-SA 2.5
null
2011-03-02T23:58:22.247
2011-03-03T00:24:21.583
null
null
622,378
[ "css" ]
5,175,155
1
null
null
0
173
This a joomla template I created from scratch. It has some php, like all things in joomla, but please use css and html in your answers because php is not one of my strong skills. The problem is the main menu. In all the other browsers, the three elements in the header are pushing the menu out of the header div, putting it just below the bottom border where I want it to be. My header height is on auto. I don't want to make it fixed and I don't want to use positioning. I want to stick it under the header. The ul li are dynamically created by joomla and I am using rtl direction. This image shows the IE problem ![problem](https://i.stack.imgur.com/C6yTa.jpg) And this image is how I want it ![ok](https://i.stack.imgur.com/bU0Uo.jpg) [http://www.flickr.com/photos/60188007@N07/5493611091/](http://www.flickr.com/photos/60188007@N07/5493611091/) ``` #wrap { margin:0 auto; width:100%; height:auto; background-color:#540501; min-width:1100px; } #headr { margin:0 auto; width:99%; height:106px; min-width:1000px; background-color:#2c0300; border-top:1px solid white; border-bottom:1px solid white; border-left:2px solid white; border-right:2px solid white; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius:20px; direction:rtl; } #logo { margin:0 150px; } #bunner { float:right; height:60px; z-index:0; } /**************************************************************************** Maine Menu ****************************************************************************/ #maineMenu { width:73%; height:auto; min-width:900px; z-index:11; clear:both; } #maineMenu ul { list-style-type:none; margin:0 auto ; border:none; } #maineMenu ul li { margin:0 1px 0 0; min-width:114px; height:38px; float:left; text-align:center; line-height:37px; -webkit-transition: all 0.2s ease-out; } #maineMenu ul li a { text-decoration:none; color:White; font-size:1.2em; border:none; display:block; } #maineMenu ul li a span { padding:0 6px; border:none; display:block; background-image:url("../images/buttonTopOnCenter.png"); background-repeat: repeat-x; background-position:top; -moz-border-radius:0 0 10px 10px; -webkit-border-radius:0 0 10px 10px; -o-border-radius:0 0 10px 10px; border-radius:0 0 10px 10px; } /************************************************************************************* Menu Hover *************************************************************************************/ #maineMenu ul li:hover { background-color:#b9c119 background-repeat:no-repeat; position: relative; top: -2px; left: -2px; } #maineMenu ul li a:hover { text-decoration:none; color:White; font-size:1.2em; border:none; display:block; background-color:#b9c119; background-repeat:no-repeat; background-position:top right; position: relative; top: -1px; left: -1px; } #maineMenu ul li a span:hover { padding:0 6px; border:none; display:block; background-repeat: repeat-x; background-image:url("../images/buttonTopCenter.png"); -moz-box-shadow: 3px 3px 5px #2C0300; -webkit-box-shadow: 5px 5px 5px #2C0300; box-shadow: 5px 5px 5px #2C0300; position: relative; top: -1px; left: -1px; } ``` ``` <div id="wrap"> <div id="headr"> <div id="logo"> <jdoc:include type="modules" name="logo" style="xhtml"/> </div> <div id="topMenu"> <jdoc:include type="modules" name="topMenu" style="xhtml"/> </div> <div id="bunner"> <jdoc:include type="modules" name="banner" style="xhtml"/> </div> <div id="maineMenu"> <jdoc:include type="modules" name="menu" style="xhtml"/> </div> </div> </div> ```
I have an IE layout issue with my header menu, it is working nice in all the other browsers
CC BY-SA 4.0
null
2011-03-03T00:17:22.310
2022-08-12T16:36:15.800
2022-08-12T16:36:15.800
16,746,668
640,000
[ "php", "html", "css", "menu", "html-lists" ]
5,175,186
1
5,177,588
null
6
1,181
I have a long procedure I have written in node.js, but I'd like the PHP side of my application control kicking it off. My node is something like: ``` var http = require('http'); http.createServer(function (req, res) { console.log('Got request') try{ doProcedure() } catch(e) { console.log('Really bad error while trying to do the procedure:') console.error(e.stack ? e.stack : e) } }).listen(8124, "127.0.0.1"); ``` When I run this on my local machine, [http://localhost:8124](http://localhost:8124) will trigger things correctly. On aws, I've added the 8124 port but requests to mydomain.com:8124 aren't picked up by node. ![Port settings in AWS](https://i.stack.imgur.com/33uHX.png) I tried stopping httpd and then letting node listen on port 80, to rule out ports not being forwarded correctly, but it still saw nothing. So two questions, I guess: 1. How to get Node listening as a daemon, so I can pass over requests? ("update user x", "update user y", "update all users", etc) 2. How do I ping that daemon from php to start these procedures in an AWS evironment? Bonus question: Is there a better way I should be doing this? Thanks all, ~Jordan
Pinging a Node.js server from PHP on AWS
CC BY-SA 2.5
0
2011-03-03T00:22:34.387
2011-03-03T06:52:16.273
null
null
311,901
[ "php", "node.js", "amazon-web-services" ]
5,175,238
1
5,175,410
null
14
3,168
When doing a TCP analysis of the traffic between my web servers and database servers I see the network buffers (TCP Window) filling up frequently. The web servers then send TCP messages to the database server telling it that its buffers are full an not to send more data until given an update. For example, this is the size of the network buffer in bytes for one of the more long lived connections to the database server over time: ![Network Buffer Graph](https://i.stack.imgur.com/RVWKE.png) The web servers are running a .NET 4.0 application running in IIS integrated mode on Windows 2008 R2 web servers. The SQL server is a 2008 R2 server. My interpretation of this is that the SQL server is returning data to the web servers faster then the application on the web server can collect the data from the buffers. I have tried tuning just about everything I can in the network drivers to work around this issue. In particular increasing the RSS queues, disabling interrupt moderation, and setting Windows 2008 R2 server to increase the buffer size more aggressively. So if my interpretation is correct that leaves me wondering about two possibilities: 1. Is there any way in .NET to tell it to increase the size of the network buffers? The "enhanced 2008 R2 TCP stack" is rarely deciding to enable window scaling (Making the buffer bigger than 65 kBytes) for this connection (probably due to the low latency). It looks like the ability to manually set this system wide is gone in Windows server 2008 r2 (There used to be registry entries that are now ignored). So is there a way I can force this in the code? 2. Is there anything that can be tuned that would speed up the rate at which the application reads information for the network buffers, in particular for the SQL connections? Requested DMV Query cutting off at ASYNC_NETWORK_IO: ``` SELECT * FROM sys.dm_os_wait_stats ORDER BY waiting_tasks_count desc; ```
Speeding up the rate that IIS/.NET/LINQ retrieves data from the Network Buffers
CC BY-SA 2.5
0
2011-03-03T00:32:22.337
2011-03-03T12:53:17.093
2011-03-03T12:53:17.093
18,771
107,156
[ ".net", "sql", "linq", "tcp", "buffer" ]
5,175,312
1
5,175,453
null
1
713
I am currently writing a Powershell module to provide functions for installing / operating SharePoint 2007. One of my scripts checks the health of SharePoint servers farm. So I use Remote Powershell : using New-PSSession. In my Virtualized test farm (Windows server 2003, same domain, same admin...), the New-PSSession cmdlet failed : ![enter image description here](https://i.stack.imgur.com/2aEmi.png) After googling it, the only solution I saw was to use the NoMachineProfile option : That solved my problem. Now the problem : I need to use SharePoint object : SPFarm.Local (on all servers) ``` [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Microsoft.SharePoint.Administration.SPFarm]::Local ``` This code works locally (on all servers) But when I run it remotely (using the NoMachineProfile option), SPFarm.Local is null ! I Suppose (I cannot check it) it is because SharePoint uses some registry values that are not loaded because of the NoMachineProfile option. So : 1 - Do you think SPFarm.Local is null because of the NoMachineProfile option ? 2 - Do you know how can I solve the first problem without using the -NoMachineProfile option ? Thx a lot !
Forced using the PSSessionOption -NoMachineProfile BUT SPFarm.Local is null
CC BY-SA 2.5
null
2011-03-03T00:44:15.023
2011-03-03T01:06:44.847
null
null
608,770
[ "sharepoint", "powershell", "sharepoint-2007" ]
5,175,341
1
5,175,813
null
2
735
The entire page is an iframe onto another website (in this case, jquery.com just for demo purposes). I have an overlay "Hello World", and if you click on the X it minimizes it (click again it will open it). It all works fine on IE8, Firefox, Chrome, etc... However in IE7 it extends the white background to the entire width (see screenshot). I believe it's something to do with the shrink-to-fit or shrink-wrapping. ![enter image description here](https://i.stack.imgur.com/Ga19W.png)
IE7 Shrink-to-fit bug
CC BY-SA 3.0
null
2011-03-03T00:47:31.490
2014-01-14T21:12:24.210
2014-01-14T21:12:24.210
881,229
25,645
[ "html", "css", "internet-explorer-7" ]
5,175,328
1
5,914,611
null
2
2,916
I'm developing a steganography app for a class project which allows a user to encode a secret message image with in another image. I use `Bitmap.getPixel(x,y)` to retrieve pixel information after modifying the pixel integer value to contain the message value. I then used `Bitmap.setPixel(x,y)` to place the modified pixel in the bitmap. After decoding the image and retrieving the hidden message I've noticed some pixels were discolored. I've found that certain pixels do not contain the correct value after being modified. if I use ``` int before = encoded_value; bitmap.setPixel(x,y, before); int after = bitamp.getPixel(x,y); ``` for most of the pixels before==after however on some before!=after. If I continuously modify before by adding or subtracting one( this only changes the color slightly in the message image ) and then set the pixel again the values of before and after still differ. Having a few pixels off in the decoded image wouldn't be that big of a deal. However, when one of the problem pixels shows up where I encoded the message image information( the images dimensions ) the decoded dimensions will usually contain a non digit value such as "2q3x300". Which will through an exception when the application tries to turn this string into integer values. I've also tried to get and set pixels using a integer buffer however the same pixels cause problem. Also through some debugging I've found that certain pixels cause problems and certain values cause problems if I encode the image with with a doubled dimension string "213213x300300" the string is decoded from the image as "2q32q3x300300". I'm not sure if this is a problem that start when decoding the bitmap from an image file or its a bug in the getPixel() and setPixel() methods. It seems that certain pixels cause a bit to be off. In the above example 1( which contains an ascii value of 49 or 00110001) is decoded as q( which contains an ascii value of 113 or 01110001) only a single bit value differs from the set and get however it can cause bit problems. The Bitmap is in ARGB_8888 and thus should be able to contain any value that can also be contained in an integer value. For the stereography to work I'm modifying the least 2 bits of the alpha, red, green and blue values to store 1 byte. I reduce the message image to RGB_332 so that It can be contained in the least bits. One more example is trying to set a pixel to -53029643. ``` I put -53029643 = 1111 1100 1101 0110 1101 0100 1111 0101 and get returns -53029387 = 1111 1100 1101 0110 1101 0101 1111 0101 ----------------------------------------------------XOR = 0000 0000 0000 0000 0000 0001 0000 0000 = 256 ``` Although these two only differ in the least bit of the green value. The decoding of this integer value by taking the least 2 bits from each bit yields 00100101 instead of 00100001 the bytes are in the form RRRGGGBB thus green value is changing from 000 to 001 and the resulting bit map will contain a pixel with a green value of 001000 instead of 000000 since the decoded bit map is in RGB_565 and thuse the decimal value from green is 8 instead of 0. Here the 3 png images the first is the carrier image( the image that has the message image encoded into it) the second is the message image( the image that is encoded in the carrier image) and the third is the message image after it has been decoded from the carrier image. carrier image ![carrier image](https://i.stack.imgur.com/ndEC0.jpg) message image ![message image](https://i.stack.imgur.com/OGuvf.jpg) decoded message image. This image is in 8 bit color the pixels that are more red or green are the ones affected by this error. ![decoded message](https://i.stack.imgur.com/jzyyB.png)
Bitmap pixel values differ after setPixel() and getPixel() on same pixel
CC BY-SA 2.5
null
2011-03-03T00:45:36.800
2017-09-28T20:27:30.200
2011-03-03T03:56:09.027
603,746
603,746
[ "android", "graphics", "bitmap", "steganography" ]
5,175,498
1
5,175,773
null
1
1,619
This is a thing that puzzles me. I know that when you use Euler angles and apply rotations to objects you have to stick to one axis sequence, for example, XYZ, in order to avoid gimbal lock. My question is the reverse. Imagine I have quaternions that I want to convert to Euler angles. So, I take all those quaternions and convert to a sequence of rotations to be applied on 3 axis in my object. These are the questions: - [in this Wikipedia page](http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles)- - - what I am looking for are the formulas to convert to the aeronautics notation sequence (see picture) My math is a little bit rusty, so please don't make your answer too mathematically exoteric. thanks in advance. ![enter image description here](https://i.stack.imgur.com/3Wu7H.png)
Does the Euler sequence of axis interfere in a Quaternion result
CC BY-SA 2.5
null
2011-03-03T01:12:16.407
2011-03-03T02:09:30.573
2011-03-03T02:04:46.217
316,469
316,469
[ "c++", "objective-c", "c", "algorithm", "math" ]
5,175,575
1
5,175,615
null
5
5,839
I am reading some text about the C language at the url [https://cs.senecac.on.ca/~btp100/pages/content/compu.html](https://cs.senecac.on.ca/~btp100/pages/content/compu.html). In the section "Segmentation", it says: "One logical technique for managing the addressing of a large number of bytes is segmentation. Segmentation distinguishes certain regions of memory from other regions. For example, an operating system stores program information in dedicated segments. " ![enter image description here](https://i.stack.imgur.com/KmktA.png) I do not quite get it. For example, if I have the following program: ``` #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int x = 4; int y = 5; printf("%d\n", x+y); system("PAUSE"); return 0; } ``` So, what is stored in Segment Code, what in Segment Data, and what in Stack? Please. Thanks a lot
Segmentation of memory in the C language
CC BY-SA 2.5
0
2011-03-03T01:22:28.970
2013-05-21T22:17:05.693
2011-03-03T01:58:32.327
143,804
253,656
[ "c", "memory" ]
5,175,810
1
5,175,953
null
1
1,186
> [How to avoid scientific notation for large numbers in javascript?](https://stackoverflow.com/questions/1685680/how-to-avoid-scientific-notation-for-large-numbers-in-javascript) Hi All, Doing something like this ``` alert(999999999999999999999999999999999999999999999999); ``` results in this ![Javascript Popup 1e+48](https://i.stack.imgur.com/YQVoz.png) How to i stop converting a number to a string from saying 1e+XX or Infinity?
javascript toString converts long numbers to Infinity
CC BY-SA 2.5
null
2011-03-03T02:00:47.850
2011-03-03T02:21:18.667
2020-06-20T09:12:55.060
-1
531,746
[ "javascript" ]
5,175,941
1
null
null
1
756
I add 4 subviews(UIScrollView,UITableView)in main view on ipad, and each view has it own data. In Marco view, I try to reload data from server every 3 second to refresh my Marco View. as first pic.. ![enter image description here](https://i.stack.imgur.com/gzdKS.png) I set 3 Marco icons on ipad main view, when I delete one on popoverView. Icons on popoverView really delete, but still show up 3 icons on main view. as second and third pic... ![enter image description here](https://i.stack.imgur.com/RYsS9.png) ![enter image description here](https://i.stack.imgur.com/A701B.png) It must be delete from background and then open app it gonna be correct view.. as fourth pic.. Dose any one know what's problem.. I try to use `[marco_scrollview setNeedsDisplay]` . but it no work.. Thank in advance.. here is my code to get Marcodata: ``` - (void)getTheMacroURLData{ //[self.view setNeedsDisplay]; // [marco_scrollview setNeedsDisplay]; self.macroList = nil; NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; EnvoTouchAppDelegate *appDelegate = (EnvoTouchAppDelegate *)[[UIApplication sharedApplication] delegate]; struct sockaddr_in Addr; bzero(&Addr, sizeof(Addr)); Addr.sin_len = sizeof(Addr); Addr.sin_family = AF_INET; SCNetworkReachabilityRef target = SCNetworkReachabilityCreateWithAddress(NULL, (struct sockaddr *) &Addr); SCNetworkReachabilityFlags flags; SCNetworkReachabilityGetFlags(target, &flags); if (flags & kSCNetworkReachabilityFlagsIsWWAN){ //Serial Number not save in the keychain now NSString *theNewURLString = [NSString stringWithFormat:eGetAllMacrosSettingURL3G,[userDefaults objectForKey:@"ecsn"],appDelegate.udid]; NSURL *theNewURL = [NSURL URLWithString:theNewURLString]; self.macroList = [NSMutableArray arrayWithContentsOfURL:theNewURL]; } if (flags & kSCNetworkFlagsReachable){ NSString *theNewURLString = [NSString stringWithFormat:eGetAllMacrosSettingURLWiFi,appDelegate.ipString,appDelegate.udid]; NSURL *theNewURL = [NSURL URLWithString:theNewURLString]; self.macroList = [NSMutableArray arrayWithContentsOfURL:theNewURL]; } int k=0; for (int i=0; i<[self.macroList count]; i++) { int j=i%9; if (j==0) { k++; } UIButton *iconButton=[UIButton buttonWithType:UIButtonTypeCustom]; NSString *picString = [[self.macroList objectAtIndex:i] valueForKey: @"pid"]; UIImage *buttonImage = [UIImage imageNamed:picString]; [iconButton setImage:buttonImage forState:UIControlStateNormal]; [iconButton setTag:i]; [iconButton addTarget:self action:@selector(exeMacro:) forControlEvents:UIControlEventTouchUpInside]; [iconButton setFrame:CGRectMake(30+(i%9*80), 17+((k-1)*70), 48, 48)]; //[self.view addSubview:iconButton]; [marco_scrollview addSubview:iconButton]; if ([self.macroList count] > 18) { [marco_scrollview setContentSize:CGSizeMake(320, 525 + (([self.macroList count]/4 - 4) * 70) )]; } } [marco_view addSubview:marco_scrollview]; } ``` And I try to reload data every 3 second.. I dont know why it doesn't refresh Marco View.. ![enter image description here](https://i.stack.imgur.com/lgsYu.png)
IPad--how to refresh subview on ipad?
CC BY-SA 2.5
null
2011-03-03T02:19:47.670
2011-03-27T14:24:30.003
2011-03-03T05:30:23.710
545,768
545,768
[ "xcode", "ipad", "uiscrollview", "reloaddata" ]
5,176,260
1
null
null
4
886
And then have it merged in vertical view? Here is an example from the IMDB app. ![http://img855.imageshack.us/img855/9669/imdb1.jpg](https://i.stack.imgur.com/EPOfT.jpg) [http://img39.imageshack.us/img39/5636/imdb2.jpg http://img39.imageshack.us/img39/5636/imdb2.jpg](http://img39.imageshack.us/img39/5636/imdb2.jpg) They did it perfectly and I would like to know how I can replicate it. Right now, I can't seem to add it to the left side of the split controller. Thanks in advance.
How do you add a UIToolbar to both views of the UISplitViewController?
CC BY-SA 3.0
0
2011-03-03T03:15:28.430
2012-09-27T15:17:56.753
2012-09-27T15:17:56.753
88,461
596,472
[ "uisplitviewcontroller", "uitoolbar", "ipad" ]
5,176,327
1
5,176,388
null
1
945
In my code, I need to get the time zone of Venezuela from Registry. What I want is the Index value under the key "Venezuela Standard Time". I use the following code to do that, but seems it do not work correctly. The number returned is "-2147483573", but the correct number is "2147483723". could anyone help to figure out what is wrong. ![enter image description here](https://i.stack.imgur.com/rrmGI.jpg) ![enter image description here](https://i.stack.imgur.com/qBsnC.jpg)
C# Registry.GetValue cannot get the correct value
CC BY-SA 2.5
null
2011-03-03T03:28:31.350
2011-03-03T03:56:30.300
2011-03-03T03:38:39.603
155,892
504,294
[ ".net", "asp.net", "windows", "c#-4.0", "overflow" ]
5,176,366
1
5,176,377
null
1
37
Is it normal that if you declare a method on a jFrameView. You can only use few methods from the java.sql package?I'm trying to create a preparedStatement so that I could perform an insert query but I only got these: ![enter image description here](https://i.stack.imgur.com/yGslG.png) Whereas if I use the connection object on a normal command line style java app. I get a bunch of methods available: ![enter image description here](https://i.stack.imgur.com/vX6cx.png) They're all under the same folder(package) where the jFrame/Form is. And the package. Please help, I can't understand why its acting this way.
can only use limited amount of methods on java sql
CC BY-SA 2.5
null
2011-03-03T03:35:28.717
2011-03-03T04:04:04.813
2011-03-03T03:40:40.533
157,882
225,269
[ "java", "jdbc" ]
5,176,423
1
5,176,463
null
0
81
Hi i think this is the not best place to ask this question, and i don't knoe where to ask these type of questions.... but can anyone tell me that how to remove that small black screen ![enter image description here](https://i.stack.imgur.com/3VlyR.png) it just gives status of what i am currently doing... i don't know what is this but it irritating me.... is it a ? i am unable to remove it.from my mac ...
how to remove the small black screen
CC BY-SA 2.5
null
2011-03-03T03:44:25.617
2011-03-03T03:53:57.360
2011-03-03T03:53:14.363
554,865
554,865
[ "macos" ]
5,176,540
1
null
null
8
5,112
Thats is how this special character is displayed in vim: ![LEFT-TO-RIGHT MARK](https://i.stack.imgur.com/dekkk.png) Ive tryed with `/\x20(\x0e|\x0f)/` and `/\xe2\x80[\x8e\x8f]/` without results.
how to replace 'LEFT-TO-RIGHT MARK' (U+200E) - <200e> with vim
CC BY-SA 2.5
null
2011-03-03T04:08:07.647
2013-12-19T16:48:50.007
2011-03-09T21:41:57.967
155,293
155,293
[ "linux", "vim" ]
5,176,680
1
5,178,021
null
0
274
I was looking other day jealously at all the features that CMS-enabled WordPress sites have, and I realised one thing that I've missed out: tagging. ![enter image description here](https://i.stack.imgur.com/wRDQl.png) Is there any way I can have such a thing on my non-cms, non-database flat files php website? Which is basically bunch of web page files like `home.php`, `contact.php`, `somepage1.php`, `somepage2.php`, etc. I was thinking of something like this: - `tagsys.php`- `banana``peach``tomato`- `/tags/banana``/tags/peach``/tags/tomato`-
How can I add TAGS to my existing non-cms website?
CC BY-SA 3.0
0
2011-03-03T04:32:52.977
2012-12-24T00:42:32.923
2012-12-24T00:42:32.923
367,456
509,670
[ "php", "tags", "tagging" ]
5,176,776
1
null
null
2
332
I need to implement task based file management engine. See picture: ![(file management engine workflow)](https://i.stack.imgur.com/P3n2c.png) So, I need to create Transformation Engine and Transformation rules parser. Does something like this already exist? : Some files and metadata. : Some of input files (maybe all, depends on rules) with another folder structure and file names. Xml files can be transformed with xslt to different text files.
Task based file management engine for .NET
CC BY-SA 2.5
null
2011-03-03T04:49:05.660
2011-03-04T04:43:43.667
2011-03-04T04:43:43.667
132,596
132,596
[ "c#", ".net", "asp.net" ]
5,176,917
1
5,178,851
null
-1
530
I've created a testbench to test an adder carry circuit (although it doesn't matter what the circuit is doing) You can see below that I'm getting 'Error' failures spit out from my testbench.At 261901ps, I show values here in the isim debugger.. test_s(8) and (0) are both '1' and cout is '1'. ![enter image description here](https://i.stack.imgur.com/X8Dgy.png) Now, my testbench looks like this: ``` ASSERT (test_s(8) = cout) REPORT "Carry out failed for cin = 1!"; ``` So what's wrong? I also tried /= cout just in case.. and I seem to get the same thing. What I want is to say, if test_s MSB (8) is different than cout, then issue an error because that's broken behavior Cout is std_logic; test_s is std_logic_vector(8 downto 0);
What's wrong with my VHDL testbench?
CC BY-SA 2.5
null
2011-03-03T05:11:25.783
2011-03-03T09:32:34.717
2011-03-03T05:21:04.830
361,312
361,312
[ "vhdl" ]
5,177,017
1
5,177,029
null
0
2,583
I want to create something like this. ![enter image description here](https://i.stack.imgur.com/85H72.png) When the button clicks main form will lock/disable/inaccessible. Then the another form load and do some processing. (actually when the button clicked, it will read some text from a file and write to db. I put progress bar to give a nice look) As I said I want to lock/disable/inaccessible main form and load the another form. How can I do this ? Please Help Yohan
C# Forms: Lock Main form and process another form
CC BY-SA 3.0
null
2011-03-03T05:29:39.950
2011-12-26T07:27:47.310
2011-12-26T07:27:47.310
54,491
441,628
[ "c#", ".net", "windows-forms-designer" ]
5,177,074
1
5,178,030
null
1
5,157
In my Rails 3 application I have the following page which shows a job receipt and lets user to edit it: ``` http://localhost:3001/jobs/45/invoice ``` I have also a "Create PDF" button in the bottom of the page. When pressed, `create_pdf_invoice` of my `JobsController` is called: ``` def create_pdf_invoice job = Job.find(params[:id]) kit = PDFKit.new("<h1>Hello</h1><p>This is PDF!!!</p>", :page_size => "A4") file = kit.to_file("my_file_name.pdf") redirect_to(:action => 'index') end end ``` All this works fine, i.e. the PDF is created! My question is how can I print the invoice itself rather than this static text (like if I press "Print" on the `http://localhost:3001/jobs/45/invoice` page) ? --- I tried to put ``` require 'pdfkit' ``` and ``` config.middleware.use PDFKit::Middleware ``` in `config/application.rb` as suggested [here](https://github.com/jdpace/PDFKit). The server starts normally, but when I go to ``` http://localhost:3001/jobs/45/invoice.pdf ``` Ruby crashes: ![enter image description here](https://i.stack.imgur.com/PSu4X.jpg) I use: ``` ruby 1.9.2p0 (2010-08-18) [i386-mingw32] Rails 3.0.1 rake, version 0.8.7 pdfkit (0.5.0) ``` Any ideas ?
Rails 3 + PDFKit: How to convert a view to PDF?
CC BY-SA 2.5
0
2011-03-03T05:38:31.467
2014-01-17T15:49:59.993
2011-03-03T09:38:02.427
247,243
247,243
[ "ruby-on-rails", "ruby-on-rails-3", "pdfkit" ]
5,177,532
1
5,177,594
null
1
738
I want to open a remote url inside a javascript popup instead of doing window.open(). I came across libraries like lytebox,lightbox,thickbox which do that if the popup is opened from main webpage. However my requirement is to open the popup from the link which occurs in a small iframe within the main page.( I can not alter the code of the main page, however Iframe webpage is fully in my control) When I include those libraries in my iframe webpage, it opens the popup, but restricted only to within iframe.How to make it appear over whole browser window ? This is what i want : The user clicks on "click here" and it opens a javascript layer,not restricted to within iframe. ![enter image description here](https://i.stack.imgur.com/Sp3DX.png)
What javascript code/library can I use to open a Pop up on browser window from a small iframe contained in the webpage?
CC BY-SA 2.5
null
2011-03-03T06:40:38.037
2011-03-31T20:18:05.130
null
null
533,399
[ "javascript", "fancybox", "thickbox" ]
5,177,843
1
5,177,881
null
1
1,373
When using jquery.ui.datepicker,I got a empty div in my page.And it is not hidden. you can see what it looks like: ![enter image description here](https://i.stack.imgur.com/tf7mU.png) I use firebug inspect the code: ``` <div class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="ui-datepicker-div"></div> ``` And I checked the css by firebug,it shold be hidden,the css is: ``` .ui-datepicker { display: none; padding-bottom: 0; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; width: 17em; } ``` but this line: is strike-through. why this happen? How can I fix this? Thanks.
Issue of jquery.ui.datepicker
CC BY-SA 2.5
null
2011-03-03T07:25:35.227
2011-03-04T05:11:30.447
null
null
401,441
[ "jquery", "jquery-ui", "datepicker" ]
5,178,203
1
null
null
5
32,412
I am using an asp.net text box inside ajax update panel. If I enter &# in the textbox and press Save Button , it gives a javascript error > Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 Please help me why this error appears? ![enter image description here](https://i.stack.imgur.com/lbDAK.png)
"Sys.WebForms.PageRequestManagerServerErrorException: status code: 500"
CC BY-SA 3.0
0
2011-03-03T08:21:41.287
2017-05-16T11:14:00.010
2017-05-16T11:14:00.010
314,334
358,261
[ "javascript", "asp.net", "webforms", "asp.net-ajax", "updatepanel" ]
5,178,290
1
5,178,454
null
12
9,844
I have used gallery in my app. In that i have two images in each gallery item like this ![enter image description here](https://i.stack.imgur.com/5oZTg.png) Each rabbit and mouse image is combined as a single gallery item. So I give onclickListener for both images but if I give like that I can't scroll by touching those images... If I remove onClickListener for that individual images I am able to scroll. How to archive both scroll and onClick for each images.
Android Gallery View Scrolling problem when onClickListener for items given
CC BY-SA 2.5
0
2011-03-03T08:32:50.673
2012-07-30T14:00:27.687
2011-03-07T15:22:22.497
180,538
510,491
[ "android", "scroll", "onclick", "gallery", "android-gallery" ]
5,178,401
1
null
null
0
649
I try to show 256 colors in iphone or even more colors At first ,I use photoshop to generator some simple color png file Than I add this png to an array and set it as a button picture This is what I done now This is the code how I add color into array ``` imgArray = [NSArray arrayWithObjects: [UIImage imageNamed:@"Icon0.png"], [UIImage imageNamed:@"Icon1.png"], [UIImage imageNamed:@"Icon2.png"], [UIImage imageNamed:@"Icon3.png"], [UIImage imageNamed:@"Icon4.png"], [UIImage imageNamed:@"Icon5.png"], nil]; ``` Than I add this to button image This is the result on my simulator , but this is not a good solution ![enter image description here](https://i.stack.imgur.com/uNnU2.png) It waste too many time to add png file (also waste iphone memory...) Does anyone can help me to figure this problem ??? MANY THANKS : )
iPhone : How to use loop to generator a 256 color table in iphone?
CC BY-SA 2.5
null
2011-03-03T08:44:06.097
2011-03-03T23:41:02.703
null
null
437,132
[ "iphone", "objective-c", "ios", "colors" ]
5,178,531
1
null
null
1
570
i made an application in android 2.1 when i run my application in QVGA simulator its Button,TabBars and EditText Field are Distroted from both ends but they seems to be perfect in HVGA. whats the problem. and how can i resolve it. Thnk! ![device002](https://i.stack.imgur.com/tXpVf.png) ![device001](https://i.stack.imgur.com/QbiuA.png)s You can see in the image that the edit Text Field is Distorted from both ends same is the case with buttons and same is the case with TabBars.. you can see both images in comapre see the 3rd image .this is from HVGA.. this does not have any distortion in textfields or buttons or tab bars.. ![device003](https://i.stack.imgur.com/Tr9bT.png)
Graphics distorted in QVGA Android phone
CC BY-SA 2.5
null
2011-03-03T08:57:21.297
2011-03-29T19:12:50.033
2011-03-03T09:30:38.710
521,015
521,015
[ "android" ]
5,178,617
1
5,178,686
null
3
155
I'm developing an application that contains a module that other team develop and I'm hosting it using MEF. the problem is that when the hosted module has an exception it collapse my application. the obvious solution is that the develop team of the hosted module will catch all their exceptions but it's not happening so I have to ensure myself. My ideas: 1) create 2 separated GUI threads. is it possible ? 2) run the hosted module as separated .exe file but host it somehow in my application. Any help will be appreciated. ![enter image description here](https://i.stack.imgur.com/HDJAO.png)
Avoid exceptions from module in the application
CC BY-SA 3.0
null
2011-03-03T09:06:39.053
2011-08-31T13:59:36.433
2011-08-31T13:59:36.433
546,730
138,627
[ "c#", ".net", "wpf", "design-patterns", "architecture" ]
5,178,692
1
null
null
0
3,965
I need to create a treeview structure using jQuery in asp.net mvc applicatiopn. Let me describe my scenario: I have two tables - Document Template and Instructions Document template has different documents and instructions under these documents are there in Instructions table. The DocumentTemplate table looks like ![enter image description here](https://i.stack.imgur.com/7qkQb.png) The Instructions table has DocId as foreign key and it looks like: ![enter image description here](https://i.stack.imgur.com/PfH9w.png) I want the tree with structure TestDoc1 TestDoc1Instn1 TestDoc1Instn1.1 TestDoc2 TestDoc2Instn1 TestDoc2Instn2.1 TestDoc2Instn2.1.1 TestDoc2Instn2.2 TestDoc2Instn2.2.1 TestDoc2Instn2.2.2 TestDoc3 TestDoc3Instn1 TestDoc4 TestDoc4Instn1 Can any help me on this? Thanks for all help in prior.
Treeview structure in asp.net mvc with jQuery
CC BY-SA 2.5
null
2011-03-03T09:14:34.730
2013-03-24T20:12:30.027
2013-03-24T20:12:30.027
727,208
855,788
[ "asp.net-mvc", "jquery", "jquery-plugins" ]
5,178,751
1
5,179,788
null
1
611
I'm working on a Drupal 7 website. I need a custom node for a page, and I used Theme Developer module to find the candidate name for the node which I attached screenshot below. But it doesn't take action when I name as node__28.tpl.php What am I missing?! Thanks a lot! appreciate helps! ![enter image description here](https://i.stack.imgur.com/aWqaN.png)
Drupal 7: naming node with Theme Developer
CC BY-SA 2.5
null
2011-03-03T09:21:27.250
2011-03-03T10:56:11.760
null
null
150,225
[ "drupal", "module", "themes", "filenames", "drupal-7" ]
5,178,813
1
5,179,731
null
19
11,234
How can I create a legend informing that the red cross is the mean? ``` ggplot(results, aes(x=factor, y=proportionPositive)) + geom_boxplot() + stat_summary(fun.data = "mean_cl_normal", colour = "red", shape=4) ``` ![enter image description here](https://i.stack.imgur.com/4TJ7m.png)
ggplot2 legend for stat_summary
CC BY-SA 2.5
0
2011-03-03T09:27:32.143
2021-11-10T17:32:51.850
null
null
160,356
[ "r", "ggplot2" ]
5,178,843
1
5,180,773
null
19
20,149
How do I go about creating a circular `Border` that can hold other UI elements? Something like this: ![A red circle with a drop shadow surrounding a box of text.](https://i.stack.imgur.com/sYxxv.png) Is there some easy way of achieving a similar effect?
How to create a circular border around a UI element?
CC BY-SA 4.0
0
2011-03-03T09:31:40.160
2018-12-21T14:17:29.040
2018-12-21T14:17:29.040
2,370,483
190,615
[ "wpf", "wpf-controls", "border" ]
5,179,073
1
null
null
0
228
I have a following database structure. ![enter image description here](https://i.stack.imgur.com/DxwK8.jpg) I have already saved `Buyer` in database. I have `buyer id`. I have to save contact information of a buyer in the database, as I save contact in the database I also need to save `buyercontact` in `buyercontact` table. When I try to add `BuyerContact` table in the edmx file, Visual Studio 2010 won't allow me to do that. How do I save information in `buyercontact` table? Please help. They say if appropriate relationship is maintained in the database/edmx, buyercontact will be saved to database as well when i cave "contact". I search through the internet, i also found similar questions asked but i could not understand. Please help. do i have to write some special code to save `BuyerContact` When I write this code to save contact along with `buyercontact`, I get error > Cannot insert duplicate key in dbo.Buyer ``` Contact objContact = new Contact(); objContact.FirstName = firstName; objContact.MiddleName = middleName; objContact.Lastname = lastName; objContact.CreatedDate = DateTime.Now; objContact.AddressId = gAddressId; var buyer = _buyerRepository.GetSingle(x => x.BuyerId == BuyerID); objContact.Buyer = buyer; _contactRepository.Add(objContact); _contactRepository.Save() ``` If I remove `objContact.Buyer = buyer;`, then contact information is saved successfully but `buyercontact` is not saved. Now my problem is as soon as I have contact associated with the buyer I also need to save it in the `BuyerContact` table. I have already been through post [here](https://stackoverflow.com/questions/5025823/save-a-relation-with-between-two-entities-an-n-n-association), but O could not understand. I have used generic Linq-to-SQL repository for common database operations like CRUD. Please help, thanks
linq to entity save
CC BY-SA 2.5
null
2011-03-03T09:52:19.120
2011-03-03T10:09:21.243
2017-05-23T12:13:29.403
-1
212,793
[ "linq-to-entities", "repository", "relation" ]
5,179,302
1
5,179,378
null
1
840
I want to make a popup type of layer on the iPhone 4. Is that possible? Like in this screenshot: ![Screenshot](https://i.stack.imgur.com/gqaGL.png)
iphone popup how to? what control to use
CC BY-SA 2.5
0
2011-03-03T10:14:05.973
2011-03-03T10:20:57.360
2011-03-03T10:20:57.360
9,827,379
249,071
[ "iphone", "modal-dialog", "uipopover" ]
5,179,515
1
5,179,835
null
2
969
I would like to hear how you would solve this sort of programming task!? Each type (OPER = 1 type) corresponds to a specific information. This is just one of about 10 specifications with same structure. A generic way to create those "converters" (protocol) is preferred. ![Protocol specification](https://i.stack.imgur.com/B0BMS.gif)
Binary Protocols to/from .NET (C# syntax)
CC BY-SA 2.5
null
2011-03-03T10:32:06.997
2011-03-03T11:57:23.070
2020-06-20T09:12:55.060
-1
625,103
[ "c#", ".net", "binary", "protocols" ]
5,179,521
1
5,179,577
null
0
96
Trying to use the getDependentRowset in a ZF application. I have the following relationship between two tables: ![enter image description here](https://i.stack.imgur.com/oKQh7.jpg) Where a user's organisation is a FK of the organisation table's PK, organisationId. What I want to do is, retrieve a users' organisation name (`organisation.name`) by the user Id (`user.userId`). Here's my User db-table model: ``` class Application_Model_DbTable_User extends Zend_Db_Table_Abstract { protected $_name = 'user'; //define foreign keys here protected $_referenceMap = array ( 'Organisation'=> array ( 'columns'=>'organisation_organisationId', 'refTableClass'=>'Organisation', 'refColumns'=>'organisationId' ) ); public function getUser($emailAddress, $password) { $select = $this->select() ->where("emailAddress = \"$emailAddress\" AND password=\"$password\"", 1); $row = $this->fetchRow($select); return $row; } } ``` And the offending code in my IndexController: ``` $user = new Application_Model_DbTable_User(); $res = $user->getUser($emailAddress, $password); $organisationInfo = $res->findDependentRowset('organisation'); ``` And ideas what could be causing this? I know this is relatively simple stuff!!! Thanks
What's wrong here? Zend FW getDependentRowSet()
CC BY-SA 2.5
null
2011-03-03T10:32:54.280
2011-03-30T23:40:55.383
2011-03-30T23:40:55.383
168,868
484,099
[ "php", "database", "zend-framework", "zend-db" ]
5,180,027
1
5,180,074
null
2
908
CSS properties use no spaces so why isn't the first space in the rule used as a separator between the property and the value? Here's an example: ![enter image description here](https://i.stack.imgur.com/TlrFX.gif)
Why does CSS use colons ":" in rules?
CC BY-SA 2.5
null
2011-03-03T11:17:59.440
2022-06-06T19:04:50.233
2011-03-12T11:30:56.277
200,145
200,145
[ "css", "syntax", "language-design" ]
5,180,490
1
5,180,694
null
0
1,038
I am trying to create an entity relationship model for my application. The application has questions and answers within a quiz. The model which I have produced so far looks like this: ![enter image description here](https://i.stack.imgur.com/Wdgez.jpg) I am quite new to these diagrams, so would appreciate if someone could explain how to complete it with an arrow and multiplicity. The Quiz table holds questions in QUIZ_TEXT and the correct answer in CORRECT_ANSWER The Answer table holds the answers in ANSWERS and matches these answers with the QUIZ_ID which is the question. I understand this is probably simple but I haven't worked with databases for a long time and my mind is going blank. Also all I need to do is this then I can move on and the majority of my work is not on databases. Please help. Thanks Edit: I have tried to do this, please let me know if this is correct. Thanks: ![enter image description here](https://i.stack.imgur.com/Wdgez.jpg)
Entity relationship diagram
CC BY-SA 2.5
null
2011-03-03T12:05:23.967
2011-03-03T12:38:09.010
2011-03-03T12:38:09.010
608,658
608,658
[ "relational-database", "entity-relationship" ]
5,180,806
1
5,181,205
null
1
3,730
This is a little hard to explain, but I'm going to do my best: My webpage is divided using two divs: one floating at left, and other floating at right (50% each one more or less). I want to add a new feature: . That is: when I click on right border of DIV#1 or click on left border of DIV#2, each one should resize from left to right or right to left. Maybe you don't understand me, but this effect is what I need (from [this plugin](http://www.catchmyfame.com/2009/06/25/jquery-beforeafter-plugin/)): ![JQuery beforeafter plugin](https://i.stack.imgur.com/tKukK.jpg) This plugin only works for images, not divs. I need the same effect on my divs. Actually, I'm trying to use [JQueryUI Resizable class](http://jqueryui.com/demos/resizable/) but I don't know how to synchronize both resizes. Can you help me? Any suggestion or track about this would be really appreciated. Thanks!
DIV dynamically resizing using vertical slide
CC BY-SA 2.5
0
2011-03-03T12:39:54.050
2011-03-03T13:25:01.707
null
null
552,669
[ "javascript", "jquery", "jquery-ui", "slider" ]
5,180,808
1
null
null
5
2,190
Is there an easy tool to generate run time call tree for a recursive algorithm? Such as the following one for computing Fibonacci number : ![call tree for computing Fibonacci number](https://i.stack.imgur.com/g84do.png) More specificly,what if the algorithm is implemented in C/C++? EDIT:I want this tree to analyze the complexity of a recursive algorithm.I know how to generate the tree in hand. Previously I just add some "cout" in soure file and generate a dot file and use graphviz to generate the tree.But I want to know if there was some good tools so I can save my time of writing the code. EDIT:An example code for Fibonacci number is ``` //fib.cpp #include<iostream> typedef int Int; Int fib(Int n) { if (n==0) return 1; else if (n==1) return 1; else return fib(n-2)+fib(n-1); } int main() { std::cout<<fib(5)<<std::endl; return 0; } ``` I have tried valgrind for this simple code but can't find how to get the graph.The command I used is as follow: ``` g++ fib.cpp valgrind --tool=callgrind ./a.out kcachegrind callgrind.out.4343 ``` Did I miss some options or what ?
A tool to generate run time recursive call tree
CC BY-SA 2.5
0
2011-03-03T12:39:55.453
2011-03-04T20:26:43.987
2011-03-04T04:54:00.393
477,967
477,967
[ "c++", "c", "algorithm" ]
5,180,884
1
null
null
0
1,285
I've developed a PHP framework that generates in the form of an application. This involves building the full on the first call, e.g.: ``` Ext.onReady(function(){ menuItemStart = new Ext.Panel({ id: 'panelStart', title: 'Start', html: 'This is the start menu item.', cls:'menuItem' }); ... ``` and then navigation in the application consists of which load PHP files via AJAX that output ExtJS code, and then execute this code with this function: ``` function loadViewViaAjax(url, paramTargetRegion) { Ext.Ajax.request({ url: url, success: function(objServerResponse) { var responseText = objServerResponse.responseText; var scripts, scriptsFinder=/<script[^>]*>([\s\S]+)<\/script>/gi; while(scripts=scriptsFinder.exec(responseText)) { eval(scripts[1]); } } }); } ``` This works well. However, I now have this situation where when a page is loaded from instead of via a , I get errors that are varied but all come from one block of code in the `ext-all-debug.js` file, namely in line `4236` and line `4242`: ![enter image description here](https://i.stack.imgur.com/QGj1S.png) # Addendum Yes @ChrisR, here is an error I can reproduce on my machine: ![enter image description here](https://i.stack.imgur.com/4jlio.png) It says it is getting the error in the fourth line of this code, but if I click on it, it takes me to line `4242` shown above in the ExtJS library code. ``` <script type="text/javascript"> clearExtjsComponent(targetRegion); var panel_form = new Ext.FormPanel({ labelWidth: 100, frame:true, style: 'margin: 10px', title: 'Test Product (TEST PAGE 2)', bodyStyle:'padding:5px 5px 0', width: 500, defaultType: 'textfield', items: [{ fieldLabel: 'ID', value: "111", name: 'id', width: 370, hidden: false, style: 'text-align: right', name: 'id', width: 50, hidden: false, },{ fieldLabel: 'Product', value: "Paper", xtype: 'displayfield', name: 'product', width: 370, hidden: false, },{ fieldLabel: 'Label', value: "none", name: 'product3', width: 370, hidden: false, },{ fieldLabel: 'Label', value: "first line\<br/>second line\<br/>third line", xtype: 'displayfield', height: 100, xtype: 'displayfield', name: 'product4', width: 370, hidden: false, } ], buttons: [{ text: 'Save', handler: function() { if(panel_form.getForm().isValid()){ panel_form.getForm().getEl().dom.action = 'backend/application/help/test'; panel_form.getForm().getEl().dom.method = 'POST'; panel_form.getForm().submit({ success : function(form, action) { replace_region_with_uri_content('backend/modules'); } }) } else { Ext.Msg.minWidth = 360; Ext.Msg.alert('Invalid Form', 'Some fields are invalid, please correct.'); } } },{ text: 'Cancel', handler: function(){ replace_region_with_uri_content('backend/modules'); } }] }); replaceComponentContent(targetRegion, panel_form); hideComponent(regionHelp); </script> ```
Why am I getting errors in ext-all-debug.js in lines 4236 - 4242?
CC BY-SA 2.5
0
2011-03-03T12:47:28.533
2011-03-04T01:48:18.750
2011-03-03T13:36:45.980
4,639
4,639
[ "javascript", "extjs" ]
5,181,334
1
5,186,717
null
3
167
Im finding unknown code in our live webpages. We also noticed couple of websites hosted on our shared web hosting space are mysteriously getting deleted. The unknown code we found is displayedd below in image format. Kindly update us what kind of code is this and how can we avoid these code from getting added to our webpages.![enter image description here](https://i.stack.imgur.com/kEA4v.png)
Unknown code in webpages
CC BY-SA 2.5
null
2011-03-03T13:29:02.590
2011-10-31T00:26:44.820
null
null
557,806
[ "security", "virus", "virus-scanning", "trojan" ]
5,181,328
1
5,267,796
null
0
322
Up until now I had a well functioning interactive graph on a page rendered using [flot](http://code.google.com/p/flot/). After some patches were pushed, it stopped rendering in IE7. After some trial and error I found that neither flot, nor any other js drawing library (that used excanvas or some derivative for IE fallback) would render on IE7 or IE8 on Windows XP with KB2482017. Windows 7, IE8 with the patch is not affected. I have not tested Vista. After some digging it seems even basic VML is broken on XP with the patch. [Microsoft's own VML sample](http://samples.msdn.microsoft.com/workshop/samples/vml/redoval.htm) fails to render. Has anyone else seen this behavior, and if so, know a workaround? Here is a screenshot of my reputation graph from a machine with XP, IE7, and the patch applied. ![enter image description here](https://i.stack.imgur.com/Eo6eE.png)
VML issues after applying KB2482017
CC BY-SA 2.5
null
2011-03-03T13:28:45.097
2011-03-11T00:49:33.837
2011-03-03T18:24:06.747
22,431
22,431
[ "javascript", "internet-explorer", "canvas", "vml" ]
5,181,415
1
null
null
0
9,848
I have a report structure like this: ![The structure of my tablix](https://i.stack.imgur.com/2t8MN.png) ![The grouping outline](https://i.stack.imgur.com/VRUh0.png) And the output of this report is like this. ![The output](https://i.stack.imgur.com/oJSRf.png) But I also want a third table which contains the differences of the first week and the last week. Is there a way to do this in SSRS? ![desired table](https://i.stack.imgur.com/HyKOt.png)
Calculating the differences of grouped rows on a tablix
CC BY-SA 2.5
null
2011-03-03T13:36:28.320
2013-05-28T06:55:06.743
null
null
263,409
[ "ssrs-2008", "reporting-services", "ssrs-tablix", "ssrs-grouping" ]
5,181,401
1
7,338,377
null
31
23,253
I am struggling to overcome this obstacle and I have high hopes that someone on SO can help. ![enter image description here](https://i.stack.imgur.com/Mtk3H.png) When I set a breakpoint in my project. It appears as a normal breakpoint. When I start debugging my solution the [breakpoint becomes hollowed out and has a yellow triangle with an exclamation point](http://msdn.microsoft.com/en-us/library/5557y8b4(v=vs.90).aspx) inside. The tooltip displayed when I pan over the breakpoint is, "" This project is not an ASP.NET application, it is simply a winForms application. I have taken over an existing winForms application with multiple projects in the solution. I have the project built and running in debug mode. I can stop at breakpoints in some projects but, I am unable to hit the breakpoints in other projects specifically my project that is of type . - - - - - - [the breakpoint will not currently be hit no symbols loaded](https://stackoverflow.com/questions/3013337/the-breakpoint-will-not-currently-be-hit-no-symbols-loaded) [VS 2010, NUNit, and “The breakpoint will not currently be hit. No symbols have been loaded for this document”](https://stackoverflow.com/questions/3076807/vs-2010-nunit-and-the-breakpoint-will-not-currently-be-hit-no-symbols-have-be) [The breakpoint will not currently be hit. No symbols have been loaded for this document.](https://stackoverflow.com/questions/2301216/the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-for-this-do) [Can't debug - “The breakpoint will not currently be hit. No symbols have been loaded for this document”](https://stackoverflow.com/questions/389290/cant-debug-the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loa) [Fixing “The breakpoint will not currently be hit. No symbols have been loaded for this document.”](https://stackoverflow.com/questions/2155930/fixing-the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-for) [Google](http://www.google.com)[MSDN](http://www.msdn.com) Some of these posts are: [Visual Studio 2008 "The breakpoint will not be currently hit. No symbols have been loaded for this document"](http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/4a641246-72d4-4841-ae81-17469cb3ac71) [The breakpoint will not currently be hit. No symbols have been loaded for this document](http://social.msdn.microsoft.com/Forums/en/vbide/thread/5ba1d641-214b-451a-949c-d08ddf030aa6) [Breakpoint will not currently be hit. No symbols loaded for this document.](http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/4f7b3eb5-67b5-4066-8299-fe7635cc1d82) [Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document](http://social.msdn.microsoft.com/forums/en/vbide/thread/557fdedb-268e-48a8-9944-29b2b4e0dec2) [The Breakpoint will not currently be hit. No Symbols have been loaded for this document.](http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_24366816.html) All of the posts I have read have been very informative, but none of the suggested solutions have fit my specific needs. Please let me know if more information is warranted. I have more links I can provide as references to what has not worked. As well as additional steps I have taken to attempt to solve this issue. I am posting this follow-up to keep everyone aprised. I followed @Hans @ suggestion to call the project file in question. I placed a dim frm as form = new ProjectInQuestion.FormInQuestion and this now has the assembly loading in the debug--> Windows->Modules The new problem is more perplexing than my original issue. My breakpoints look fine, but are being skipped. There are no error evident at the breakpoint. ![enter image description here](https://i.stack.imgur.com/4LVzP.png)
VS 2008 breakpoint will not currently be hit. No symbols have been loaded for this document
CC BY-SA 2.5
0
2011-03-03T13:35:10.170
2018-01-20T10:27:25.517
2017-05-23T11:46:39.687
-1
437,301
[ "vb.net", "visual-studio-2008", "breakpoints" ]
5,181,500
1
5,181,893
null
6
992
To get more in depth information about the usage of WinForm or Webapplications I want to capture mouse-movement and click information. It would be perfect if this could be rendered to an image. The result would be something like this: ![Google: capture display "mouse movement" app to image](https://i.stack.imgur.com/oEHIW.jpg) The question is how does one start with creating an app like this? - - (Anyone know if there is a opensource of free/cheap app which can do this) [IOGraphica](http://iographica.com/) is able to do this, but it is in Java and it is free, but not open source.
Capture mouse movement and export to image [code | app]
CC BY-SA 2.5
0
2011-03-03T13:45:13.327
2011-03-03T14:20:59.600
2011-03-03T14:20:59.600
50,776
168,425
[ "c#", "drawing", "capture" ]
5,181,664
1
5,181,735
null
4
496
I've got this code: ``` public void rotateRocketImage() { Bitmap b = this.rocketImgOriginal; //create a new empty bitmap to hold rotated image Bitmap tempBitmap = new Bitmap(97,97); //make a graphics object from the empty bitmap Graphics g = Graphics.FromImage(tempBitmap); //move rotation point to center of image //g.TranslateTransform(48, 48); //rotate //g.RotateTransform(this.orient); //move image back //g.TranslateTransform(-48, -48); //draw passed in image onto graphics object g.DrawImage(b,0,0); this.rocketImg = tempBitmap; } ``` which ( with RotateTransform currently disables ) should just make this.rocketImg equal to this.rocketImg , yet somehow it enlarges the picture almost twice... any ideas what could be causing it? Thanks! ![enter image description here](https://i.stack.imgur.com/R9TiH.jpg) edit: here's the drawing code: ``` private void timer1_Tick(object sender, EventArgs e) { Invalidate(); } protected override void OnPaint(PaintEventArgs e) { var tempRocket = new Bitmap( rocket.rocketImg ); using (var g = Graphics.FromImage(tempRocket)) { e.Graphics.DrawImage(tempRocket, 150, 150); } } ```
C#, Bitmap becomes twice bigger, why?
CC BY-SA 2.5
null
2011-03-03T13:59:38.390
2011-03-03T14:36:13.877
2011-03-03T14:10:04.640
630,791
630,791
[ "c#" ]
5,181,833
1
5,181,919
null
9
46,756
I just started using Matplotlib and am trying to change the color of the face color of a plot... if I create the figure like this: ``` plt.figure(num=None, figsize=(5, 10), dpi=80, facecolor='y', edgecolor='k') ``` only the boarder of the figure changes to yellow... What I would like is the boarder to be white and the plot to be yellow.. edit: A snip from my current code: ``` plt.figure(num=None, figsize=(5, 10), dpi=80, facecolor='y', edgecolor='k') ax = plt.gca() ax.plot(x, y, color = 'g') ``` ![enter image description here](https://i.stack.imgur.com/008AH.png)
How to change the face color of a plot using Matplotlib
CC BY-SA 2.5
0
2011-03-03T14:12:28.220
2014-08-19T03:30:55.910
null
null
323,332
[ "python", "matplotlib" ]
5,182,010
1
5,182,530
null
0
232
Hi I got the following filter which worked with django 0.96 (GAE) and is generating code on the layout erroneoulsy with GAE + django 1.2. Now i want to update the filter so that it works with django 1.2. COuld you provide any information please kindly do so. Filter: ``` def news(n): url = os.environ.get('HTTP_HOST') if os.environ.get('HTTP_HOST') else os.environ['SERVER_NAME'] tld = url[url.rfind('.'):] try: if url == 'localhost:8080' or url.endswith('alltfunkar.com'): result = urlfetch.fetch('http://news.google.se/?output=rss') elif tld != '.com' and tld != '.se' and tld != '.cl' : result = urlfetch.fetch('http://news.google.com'+tld+'/?output=rss') else: #result = urlfetch.fetch('http://news.google'+tld+'/?output=rss') result = urlfetch.fetch('http://news.google.com/?output=rss') if result.status_code == 200: dom = minidom.parseString(result.content) item_node = dom.getElementsByTagName("item") try: random_1=random.choice(item_node) rss1_link = random_1.childNodes[1].firstChild.data rss1_text = random_1.childNodes[0].firstChild.data return '<a href="'+rss1_link+'">'+rss1_text+'</a>' except IndexError,e: return '' except urlfetch.Error, e: pass register.filter(news) ``` Template usage ``` {{a|news|fix_ampersands|truncatewords_html:8} ``` Solved and done with help here! Many thanks: ![enter image description here](https://i.stack.imgur.com/HvMcT.png)
How to update a django filter to django 1.2 with GAE
CC BY-SA 2.5
null
2011-03-03T14:26:55.600
2011-03-05T10:06:30.513
2011-03-05T10:06:30.513
108,207
108,207
[ "python", "django", "google-app-engine" ]
5,182,135
1
5,184,270
null
7
3,157
I'm try to set the `Foreground` colour on a `Hyperlink` using a `Style` object in an ancestor's `Resources`, but it's not having any effect. I even used the `BasedOn` tip from [Changing Hyperlink foreground without losing hover color](https://stackoverflow.com/questions/1252889/), but it's not made any difference - I still get a blue hyperlink that is red on hover. Here's the XAML for my controls, including an `ItemsControl` whose items are shown using a hyperlink: ``` <StackPanel Background="Red" TextElement.Foreground="White"> <StackPanel.Resources> <Style TargetType="Hyperlink" BasedOn="{StaticResource {x:Type Hyperlink}}"> <Setter Property="Foreground" Value="Yellow"/> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Foreground" Value="White"/> </Trigger> </Style.Triggers> </Style> </StackPanel.Resources> <TextBlock>Data import errors</TextBlock> <ItemsControl ItemsSource="{Binding Errors}"/> </StackPanel> ``` And the items in the `ItemsControl` are picking up the following `DataTemplate`: ``` <DataTemplate DataType="{x:Type Importer:ConversionDetailsMessage}"> <TextBlock> <Run Text="{Binding Message, Mode=OneTime}"/> <Hyperlink Command="Common:ImportDataCommands.ExplainConversionMessage" CommandParameter="{Binding}"> <Run Text="{Binding HelpLink.Item2, Mode=OneTime}"/> </Hyperlink> </TextBlock> </DataTemplate> ``` It's worth noting, too, that I don't want to just set the different colours directly on the `Hyperlink` in the `DataTemplate`. This is because the template will be used by of different `ItemsControl` objects, most of which will be on a white background and so can use the standard hyperlink colours. (Note that the one in the XAML above, however, has a red background.) In short, I don't want the `DataTemplate` to have to know anything about the control in which it's being used. The styles for the template's controls should just filter down to it. So... can anyone tell me why the style's not filtering down and what I can do to fix it? Thanks. Since I couldn't get Pavlo's answer to work in my production app, I've since tried it in a separate test app. The app is a WinForms app, with the main form containing nothing but an `ElementHost`, which itself contains a simple WPF usercontrol. Here's its XAML: ``` <UserControl x:Class="DataTemplateStyling.StylingView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:DataTemplateStyling="clr-namespace:DataTemplateStyling" x:Name="root" Loaded="StylingViewLoaded"> <UserControl.Resources> <Style x:Key="MyDefaultHyperlinkStyle" BasedOn="{StaticResource {x:Type Hyperlink}}"/> <DataTemplate DataType="{x:Type DataTemplateStyling:ImportMessage}"> <DataTemplate.Resources> <Style TargetType="{x:Type Hyperlink}" BasedOn="{StaticResource MyDefaultHyperlinkStyle}"/> </DataTemplate.Resources> <TextBlock> <Run Text="{Binding Message, Mode=OneTime}"/> <Hyperlink NavigateUri="{Binding HelpLink.Item1}"> <Run Text="{Binding HelpLink.Item2, Mode=OneTime}"/> </Hyperlink> </TextBlock> </DataTemplate> </UserControl.Resources> <Grid DataContext="{Binding ElementName=root}"> <StackPanel Background="Red" TextElement.Foreground="White"> <StackPanel.Resources> <Style x:Key="MyDefaultHyperlinkStyle" TargetType="Hyperlink" BasedOn="{StaticResource {x:Type Hyperlink}}"> <Setter Property="Foreground" Value="Yellow"/> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Foreground" Value="White"/> </Trigger> </Style.Triggers> </Style> </StackPanel.Resources> <TextBlock>Data import errors</TextBlock> <ItemsControl ItemsSource="{Binding Messages}"/> </StackPanel> </Grid> </UserControl> ``` As it stands above, this generates an `InvalidOperationException`, stating "Can only base on a Style with target type that is base type 'IFrameworkInputElement'." That can be fixed by putting `TargetType="Hyperlink"` on the `Style` definition immediately inside the `UserControl.Resources` element. However, while the messages are being shown, the link part of them still has the default blue hyperlink styling: ![Blue hyperlinks persist](https://i.stack.imgur.com/uapJy.png) In short, it's not working, so I'd welcome any other suggestions/corrections. :( Thanks to an alternative solution from Pavlo, it now working. :)
How to propagate styles to Hyperlinks inside a DataTemplate?
CC BY-SA 2.5
null
2011-03-03T14:38:14.260
2011-08-16T15:47:41.823
2017-05-23T12:19:48.617
-1
8,705
[ "wpf", "xaml", "hyperlink", "styles", "datatemplate" ]
5,182,245
1
5,375,134
null
5
3,360
I have a rather peculiar problem. I am using CellTable from GWT 2.2 release. The CellTable is configured for fixed layout. I have a editable column (TextInputCell) in the table. I am currently using setColumnWidth method on the CellTabel to fix the width of the column. This works well, but it . As a result, the editor input field overflows under the column, giving the impression of it being clipped out. Here's a code sample from GWT docs modified to demonstrate the problem. Notice the name field is not resized and overflows inside the table. public class Trial implements EntryPoint { private static class Contact { private static int nextId = 0; ``` private final int id; private final String address; private Date birthday; private String name; private Long number; public Contact( String name, Date birthday, String address, Long number ) { nextId++; this.id = nextId; this.name = name; this.birthday = birthday; this.address = address; this.number = number; } } private static final List<Contact> CONTACTS = Arrays.asList( new Contact( "John", new Date( 80, 4, 12 ), "123 Fourth Avenue", 0L ), new Contact( "Joe", new Date( 85, 2, 22 ), "22 Lance Ln", 1L ), new Contact( "George", new Date( 46, 6, 6 ), "1600 Pennsylvania Avenue", 2L ) ); public void onModuleLoad( ) { final CellTable<Contact> table = new CellTable<Contact>( 10 ); table.setWidth( "60px", true ); ListDataProvider<Contact> listPrvdr; final TextInputCell nameCell = new TextInputCell( ); Column<Contact, String> nameColumn = new Column<Contact, String>( nameCell ) { @Override public String getValue( Contact object ) { return object.name; } }; table.addColumn( nameColumn, "Name" ); table.setColumnWidth( nameColumn, "60px" ); nameColumn.setFieldUpdater( new FieldUpdater<Contact, String>( ) { public void update( int index, Contact object, String value ) { object.name = value; table.redraw( ); } } ); listPrvdr = new ListDataProvider<Contact>( ); listPrvdr.addDataDisplay( table ); RootPanel.get( ).add( table ); listPrvdr.getList( ).addAll( CONTACTS ); } ``` } ![enter image description here](https://i.stack.imgur.com/YuspB.png) What am I missing? How do I enforce the width constraint on the input field and not just the host column?
Setting the width of a column without clipping TextInputCell in GWT 2.2 CellTable?
CC BY-SA 2.5
0
2011-03-03T14:47:02.803
2013-11-01T18:07:16.270
null
null
177,784
[ "gwt", "gwt-2.2", "gwt-2.2-celltable" ]
5,182,656
1
5,182,878
null
3
8,790
So I have a CSV file: ``` Header1,Header2,Header3,Header4 Data11,Data12,Data13,Data14 Data21,Data22,Data23,Data24 Data31,Data32,Data33,Data34 Data41,Data42,Data43,Data44 ``` and a `DataGrid` in an WPF project. I cannot, for the life of me, get it to import. What I was trying to do before was add all the columns (`Header1`, `Header2`, `Header3`, `Header4`) then add the rows... but there didn't seem to be any way to add rows. So I tried using `ItemSource`... but no luck. So... how do I import a CSV file into a `System`.`Windows`.`Controls`.`DataGrid` So I tried this: ``` DataTable table = CSVReader.ReadCSVFile(fileName, true); dataGrid.ItemsSource = table.DefaultView; ``` And it seems to work... somewhat: ![The Rows show up, but no columns or content](https://i.stack.imgur.com/ox84I.png) So after turning on `AutoGenerateColumns`, everything worked perfectly.
C# Load CSV into DataGrid
CC BY-SA 2.5
0
2011-03-03T15:18:25.470
2011-03-03T16:12:45.107
2011-03-03T16:12:45.107
481,702
481,702
[ "c#", "wpfdatagrid" ]
5,182,654
1
null
null
5
742
## The past I develop a software project using subversion as an scm. Until now, development always happened in `trunk`, so problems arose when a bugfix release was necessary. Now, we want to rethink our branching strategy and the requirement is: We want to be able to work on multiple future releases at once. ## The task That means: Assume, the current version we are working on is 1.0. The next planned version is 2.0, the version after that is 3.0. Now that we have released 1.0 we want to - - - Of course, fixes that have been applied in 1.0 are also needed in the other two versions. Furthermore, features from 2.0 will also have to be in 3.0. Also, it might be possible that a minor release is planned, say 1.1 that also includes new features and will have to be maintained separately. ## A possible solution I came up with the following branching strategy: - - - Let me elaborate this a bit more: In the given example, we would branch version 1.0 from trunk. Also, we would branch version 2.0 from version 1.0 and version 3.0 from version 2.0. When a change is made in 1.0, it will be merged into 2.0 and subsequently into 3.0. ![Visualization of the described branching strategy (please excuse the crappy paint quality)](https://i.stack.imgur.com/FbafL.png) ## The question Is this a valid methodology? Will it work technically? Are there organizational pitfalls? Are there best practices? (All the internet would come up with is: "Develop in trunk, maintain in release branch"). It especially seems strange to me to abandon trunk -- is that wrong?
What is a good branching strategy when developing several future releases at once?
CC BY-SA 2.5
0
2011-03-03T15:18:21.150
2011-03-03T15:39:36.397
null
null
537,738
[ "svn", "branch", "branching-strategy" ]
5,183,099
1
5,296,261
null
1
1,296
!I'm trying to get an Infragistics UltraWebGrid to work with one of the Styles provided by Infragistics (Office2007Blue). My problem is that the grid looks nice at design time (image1) ![enter image description here](https://i.stack.imgur.com/0WvCB.jpg) ... but bad (and very different) at runtime (image 2). ![enter image description here](https://i.stack.imgur.com/wcTX8.jpg) The odd thing is that - judging by the runtime html source - it seems that the Office2007Blue style actually applied (image 3) ![enter image description here](https://i.stack.imgur.com/oZ3ro.jpg) but that the referenced UltraWebGrid stylesheet file ig_grid_opt.css specifies an header image (images/office_grid_header.jpg) for the TH class, where I am expecting something blueish. In the style's Image folder there is a different file (images/iguwg_header.gif) which seems much more suitable (it is blue!) than the office_grid_header.jpg image. Have I configured my grid wrong, or is this an Infragistics style glitch? EDIT: I cross-posted this question at the Infragistics web site and I think someone is looking into it.
Apperance of runtime Infragistics UltraWebGrid different than in ultrawebgrid designer
CC BY-SA 2.5
null
2011-03-03T15:51:09.757
2011-03-14T08:33:08.723
2011-03-14T08:21:27.597
619,275
619,275
[ "css", "infragistics", "ultrawebgrid" ]
5,183,107
1
null
null
1
742
I am working on a Windows application for one customer. He wants to be able to enter the height, width and the length of a cardboard box, and then have the application automatically draw the cardboard box on the screen. I want to know if that's possible to be done with C#. Here is a sample how the cardboard box should look alike: ![enter image description here](https://i.stack.imgur.com/KI5Do.jpg) Please let me know your opinion and if anyone else did something similar in the past. Thanks in advance for any help.
Drawing lines/squares with c#
CC BY-SA 2.5
null
2011-03-03T15:52:01.830
2011-03-04T08:29:59.340
2011-03-03T15:54:52.873
121,493
362,479
[ "c#", "winforms", "math", "drawing" ]
5,183,346
1
5,183,396
null
2
8,087
I'm new to Drupal and am trying to embed a Flash game in the middle of the front page. I've created a "Full HTML" text format in and I've created a new block using that format by going into and placed it into region and display it at the page only: ![enter image description here](https://i.stack.imgur.com/nTMmn.png) My problem is that I need to pass the user id and also a custom gender field to the swf file through the FlashVars parameter. I can see my gender field in the database (I use PostgreSQL 8.4.7/CentOS 5.5/PHP 5.3): ``` # select * from field_data_field_gender; entity_type | bundle | deleted | entity_id | revision_id | language | delta | field_gender_value -------------+--------+---------+-----------+-------------+----------+-------+-------------------- user | user | 0 | 6 | 6 | und | 0 | Male user | user | 0 | 5 | 5 | und | 0 | Male user | user | 0 | 1 | 1 | und | 0 | Male user | user | 0 | 7 | 7 | und | 0 | Female ``` And I see the users table: ``` # select uid, name from users; uid | name -----+------- 5 | Vasja 6 | Vanja 1 | Alex 0 | 7 | Petja ``` But how could I print them into my custom content block? I also suppose there is already some prefilled data structure there, something like a $user array? Please give me a bit help and directions to get me running on custom blocks. I'm looking at the docs, but they're talking about custom modules, which is probably a bit overkill in my case? And also I need to print a message to the Anonymous user telling him or her to sign in or register. Please give me a pointer here Thank you! Alex P.S. My understanding is that swfobject isn't working well with Drupal 7 yet, but that is not a big issue for me.
Drupal 7: creating custom content block
CC BY-SA 2.5
0
2011-03-03T16:09:35.950
2011-03-03T16:49:24.890
null
null
165,071
[ "drupal", "drupal-modules", "drupal-7" ]
5,183,409
1
null
null
1
1,275
When I change my code from: ``` <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" Text="My Page Header"/> ``` to: ``` <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" Text="{Binding Path=ModuleStrings.Package_Name, Source={StaticResource ResourceWrapper}}"/> ``` Every single time! If I change it outside of the IDE, it crashes when I load up the file. I'm using Visual Studio 2010 and .Net 4.0. I'm writing a Silverlight application using the Silverlight Business Application template. I have several modules that I'm discovering using MEF and downloading dynamically. This code exists in a Silverlight RIA Services Class Library that I'm using as a module. ![enter image description here](https://i.stack.imgur.com/3QjxF.png) ``` Problem signature: Problem Event Name: APPCRASH Application Name: devenv.exe Application Version: 10.0.30319.1 Application Timestamp: 4ba1fab3 Fault Module Name: unknown Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Code: c00000fd Exception Offset: 0fd84cf0 OS Version: 6.1.7600.2.0.0.256.1 Locale ID: 1033 Additional information about the problem: LCID: 1033 ```
Why does Visual Studio 2010 crash when I add a binding to a TextBlock?
CC BY-SA 2.5
null
2011-03-03T16:15:59.703
2011-06-09T20:27:40.263
2011-03-03T17:41:43.920
443,602
443,602
[ "silverlight", "visual-studio-2010", "crash" ]
5,183,687
1
5,184,026
null
5
13,037
I'd like to know how to remove the margins between my JtabbedPane and my JFrame content pane and between my JTabbedPane and its internal JPanel. I circled the margins I want to remove. the green line is here to show the gap between the jpanel inside the jtabbedpane. I tried to look at some method named `setMargin` but it doesn't exist on a JTabbedPane. I also checked the `Hgap` and `Vgap` (both = 0) on the different layout (root content pane, my jpanel, etc). So any suggestions are welcome. Thanks. ![The image is here](https://i.stack.imgur.com/DlD8J.png). I can't post images yet.
Java: remove margin / padding on a JTabbedPane
CC BY-SA 4.0
0
2011-03-03T16:41:23.187
2018-10-27T11:19:17.033
2018-10-27T11:19:17.033
1,773,603
507,348
[ "java", "swing", "jtabbedpane", "margins" ]
5,183,834
1
null
null
19
13,432
I'm working on a universal app, and I'm trying to share as much code as possible between the iPhone and iPad versions. I need to use a TabBarController as my root view controller and though I'd like to use a SplitViewController in each of the tabs, SplitViewController's docs say it needs to be the root view controller. So, with all of that in mind - understand that I'm attempting to place two navigation controllers side-by-side and (mostly) replicate the behavior/layout of a SplitViewController. Everything works just fine, except for the layout of the views. When the app is started in portrait mode, everything functions and resizes/positions correctly when the device orientation changes. ![portrait orientation](https://i.stack.imgur.com/PQLrT.png) If the app is started in any orientation other than UIDeviceOrientationPortrait, the view displays with a 20 point gap/margin above the navigation controller. I've tried adjusting the frame at runtime with no perfect result. Adjusting the origin.y of the frame to -20 and increasing the height by 20 brings the view flush with the top of it's parent, but it leaves a 20 point gap at the bottom! ![landscape orientation](https://i.stack.imgur.com/DHi85.png)
UINavigationController within ViewController, gap at top of view
CC BY-SA 2.5
0
2011-03-03T16:52:19.367
2013-09-20T04:39:05.430
null
null
182,544
[ "iphone", "xcode", "ipad", "ios", "interface-builder" ]
5,183,853
1
5,183,925
null
1
6,401
To obtain images with the same name as column B: ![My Excel File](https://i.stack.imgur.com/7zws0.png) I currently have the images in column A stored locally as JPEGS. I also have an excel document with the files that need to be renamed. I want to: 1. Copy Image from folder (ie. BEVBB48GSY1B.jpg) 2. Rename File to next cell in the rows text (ie. BEV-BB48GSY1B.jpg) 3. Automatically move on to the next Row to do the same (ie. BEVBB48GSY1B copied and renamed to BEV-BB48GSY1B27) Any ideas on which programming I need to be using or where to start? Thanks in advance.
Batch To Find File, Copy File, then Rename File from a CSV
CC BY-SA 2.5
0
2011-03-03T16:53:46.320
2014-10-21T16:19:49.723
2011-03-03T16:58:42.477
281,460
525,706
[ "excel", "csv", "vbscript", "copy", "rename" ]
5,183,872
1
8,752,591
null
1
4,865
i have a problem with my script that use canvas. I want to move my image but with drawImage the image moves but the result is something like that: ![enter image description here](https://i.stack.imgur.com/tyxp5.jpg) so, my code is ``` function desenhaBonecoDir(){ var ctxt = document.getElementById('camadaBoneco').getContext("2d"); bonecoX = bonecoX -10; ctxt.drawImage(bonecoLeft, bonecoX, bonecoY); } ``` and i think that the only way is using SVG (retained mode). It is correct? Any tutorial? or example? - "how moving an image with SVG" How i can solve that? Thanks
Canvas - move image-problem
CC BY-SA 2.5
0
2011-03-03T16:55:16.953
2013-09-26T22:47:46.920
null
null
564,979
[ "html", "canvas", "svg" ]
5,184,089
1
null
null
1
1,801
I want to layer 4 images on top of each other inside a table cell with css. Here is what I want the final image to look like: ![enter image description here](https://i.stack.imgur.com/qKn8X.png) The 4 images are: 1. The gray rounded corner rectangle with the red shaded triangle and the numbers 2. The blue bar 3. The lines on top of the bar 4. The yellow triangular indicator All these images must be on top of each other within the a table-cell. The bar must be able to stretch (I would draw it with a css div with a variant width property if it's possible) and the triangle indicator to move, so the entire thing can't be one image. Any ideas how to do this? Note: any solutions have to work in IE6 and up, Firefox, and Chrome
Layering images inside a table-cell
CC BY-SA 2.5
null
2011-03-03T17:14:43.440
2015-01-12T19:40:49.187
2020-06-20T09:12:55.060
-1
174,718
[ "html", "css", "positioning" ]
5,184,629
1
null
null
2
1,785
Problem seemed very simple to me at first but now I am stuck. I want to move a image on the screen, on a certain path I create. Moving this image is being made on a thread, something like: ``` @Override public void run() { Canvas c; while (run) { c = null; try { c = panel.getHolder().lockCanvas(null); synchronized (panel.getHolder()) { panel.updateImageCoordinates(); panel.onDraw(c); } } finally { if (c != null) { panel.getHolder().unlockCanvasAndPost(c); } } } ``` for the Image I want to move I have a List with main points where it should go. Each coordinate has: ``` public class Coordinates { private int x = 0; private int y = 0; private int speedX=0; private int speedY=0; } ``` For example, my first point is -5;-30 and I need to get to second point 50.50. The calculation of next coordinates to draw the image is made on updateImageCoordinates(). My problem is that I don't know how to calculate speedX and speedY so that I get from point A to point B on a straight line. Basically for each execution of updateImageCoorindates() I need to do: ``` image.currentX= image.currentX+speedX; image.currentY= image.currentY+speedY //Check if I reached the B point. if so, move to next point. ``` I don't know based on knowing the coordinates, how I can calculate the speed on x and Y directions. I attach a image for exemplification. Any help is appreciated. ![enter image description here](https://i.stack.imgur.com/arVRR.png)
Calculate path between two points on the screen in Android
CC BY-SA 2.5
null
2011-03-03T18:03:40.777
2011-03-04T09:19:21.513
null
null
379,865
[ "android", "animation", "path", "coordinates", "ondraw" ]
5,184,899
1
5,186,161
null
2
3,242
Hello and thanks for listening. This is not an urgent question for me, I'm just curious about why the following code does what it does. I wanted to have a border (or margin) around the visible page, and a nested DIV where "100% height and width" refers to the inside of that border (for further nesting). ``` <html> <body style='height:100%; width:100%; margin:0;'> <div style='border:5px solid green'> <div style='height:100%; width:100%;'> </div> </div> </body> </html> ``` Obviously I (think to) know the box-model and what 100% means (here: the content box of the first DIV), and I know how to solve the problem using absolute positioning. But what I don't understand: In Chromium as well as in Firefox, why do I get a scrollbar but no one? It looks like the 100% height in the second DIV does not take into account the content box of the first DIV (respecting the 5px border), but rather the whole BODY content box. For 100% width however, things work as I thought they would - no horizontal scrollbar appears. Can someone enlighten me? Is this historic browser behaviour? after FredWilson's answer: If you give the BODY absolute dimensions 'height:100px; width:100px' the result stays the same: The vertical border extends the 100px height, but the horizontal border gets included. I try to reread the small print of [the CSS spec](http://www.w3.org/TR/CSS21/visudet.html#propdef-width) but so far, I don't see any difference between height and width handling. ![BODY tag in Firebug](https://i.stack.imgur.com/57Cq9.png)    ![First DIV tag in Firebug](https://i.stack.imgur.com/rPVxO.png)
CSS: 100%-height/width DIV inside a bordered div creates vertical, but not horizontal scrollbars
CC BY-SA 2.5
0
2011-03-03T18:28:02.480
2015-10-22T03:23:01.550
2011-03-07T11:00:16.650
322,464
322,464
[ "html", "height", "border", "css" ]
5,185,412
1
5,185,812
null
3
4,585
I am trying to create a table view which has a layout like what yobongo has: ![enter image description here](https://i.stack.imgur.com/BiMjh.jpg) and what I have now is really crappy, where the UIImage has different size, etc, etc... How do I fix it to have something nice like that? I tried rearranging via IB but then mine looks like this: ![enter image description here](https://i.stack.imgur.com/6ZIXe.png) I wanted to create a UIImage in the cell that has a fixed size (mine resizes here and there). How do I set that? I also want a rounded edge around the UIIMage... I have played around with the spring and struts via IB and I think I might have messed up something that I can't fix again.. I also want so that there exists a gap between rows and a border like in the picture below I also wanted to implement a chat box like below where it expands if the text is more than it's limit. How can I do this?
creating a nice custom UITableViewCell
CC BY-SA 2.5
0
2011-03-03T19:20:01.463
2011-03-03T21:23:05.530
2011-03-03T20:02:50.273
95,265
95,265
[ "iphone", "objective-c", "uitableview" ]
5,185,410
1
6,309,279
null
1
1,284
I'm going to take another crack at this question b/c the original question I posted earlier was poorly formed, and I did not do enough research first to present a clear, concise question regarding the PropertyGrid. Hopefully, this will be better. I want to bind this object to the Property Grid: ``` public class Analytic { public enum Period { Daily, Monthly, Quarterly, Yearly}; public Analytic() { this.Benchmark = new List<Benchmark>(); } public List<Benchmark> Benchmark { get; set; } public Period Periods { get; set; } public void AddBenchmark(Benchmark benchmark) { if (!this.Benchmark.Contains(benchmark)) { this.Benchmark.Add(benchmark); } } } ``` The object exposes two types of properties, one, an enum type, and two, a custom type of type Benchmark. I want both types to be displayed as drop-down lists. I know that PropertyGrid automatically creates a drop-down list for the enum-based property. My problem is trying to get the list of Benchmarks to display as a drop-down list. What I would like is to have the Name property of Benchmark to be the text that appears in the drop-down list. Here is the code for Benchmark: ``` public class Benchmark { public Benchmark(string id, string name) { this.ID = id; this.Name = name; } public string ID { get; set; } public string Name { get; set; } } ``` Trying to bind the object to a PropertyGrid, using this calling code: ``` Analytic analytic = new Analytic(); analytic.AddBenchmark(new Benchmark("1", "BM1")); analytic.AddBenchmark(new Benchmark("2", "BM2")); propertyGrid1.SelectedObject = analytic; ``` results in this output: ![enter image description here](https://i.stack.imgur.com/YcxCy.png) in the screen-grab above, you can see the list of Benchmark objects is being rendered as "(Collection)". I want the names of each Benchmark to appear just how the Periods enum appears. The output would be something like this: ![enter image description here](https://i.stack.imgur.com/WNkQy.png) The big question is, how to do this? I've seen a couple examples of "helper" classes inherit from "System.ComponentModel.StringConverter", but this usually assumes the collection itself is an array or a collection of Strings. There are good examples of using StringConverter [HERE](http://www.codeproject.com/KB/vb/using_propertygrid.aspx) (build a drop-down list of States) and [HERE](http://www.codeproject.com/KB/cpp/dropdownproperties.aspx?artkw=dropdown%20list%20of%20custom%20types%20+%20propertygrid) (builds a drop-down list of Rules). In my example, my collection is a collection of a custom type, Benchmark, and I still don't know: 1. What, if any base classes/interfaces I can use that will help me do what I need to do for Benchmark, similar to how the above two links helped for String types. 2. If there is one good, simple example anywhere online of what I need to accomplish I find it insane that such a trivial task of showing a drop-down list of non-primitive types on some exposed properties of an object bound to the PropertyGrid is so painful. Again, any help, or any pointers in the right direction would be much appreciated. Thanks, Mike
displaying a list of custom objects as a property of an object bount to .SelectedObject in PropertyGrid
CC BY-SA 2.5
null
2011-03-03T19:19:58.027
2013-09-11T13:48:36.487
2013-09-11T13:48:36.487
228,152
618,056
[ "c#", "propertygrid" ]
5,185,548
1
5,186,147
null
1
769
I'm very confused. I've created a global variable: ``` public LabelField title2 = new LabelField("", LabelField.ELLIPSIS | DrawStyle.HCENTER| LabelField.USE_ALL_WIDTH | Field.FIELD_VCENTER | LabelField.USE_ALL_HEIGHT); ... title2.setText("blablablablablabla\nblablabalba"); ``` But when i'm trying to show this text on device's display i see only one line instead of two. ![enter image description here](https://i.stack.imgur.com/WSRsC.jpg) but if i'm using ``` add(new LabelField("Line1\nLine2")); ``` it works properly. Does anyone have a solution?
newline doesn't work in LabelField
CC BY-SA 2.5
0
2011-03-03T19:33:05.500
2012-01-11T13:28:15.047
2011-03-03T20:20:51.027
75,204
500,678
[ "blackberry", "newline", "labelfield" ]
5,185,699
1
null
null
6
4,839
Is there a way in SVG of drawing multiple lines of text within a single `<text>` element that follow the same path contour? Here is the closest I have been able to get: ``` <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1"> <defs> <path id="text_0_path" d="M 100 150 A 100 100 0 1 1 300 150"/> </defs> <use xlink:href="#text_0_path" stroke="blue" fill="none"/> <text font-family="Arial" font-size="18px" text-anchor="middle"> <textPath xlink:href="#text_0_path" startOffset="50%"> <!-- 157.075 is the center of the length of an arc of radius 100 --> <tspan x="157.075">Here is a line</tspan> <tspan x="157.075" dy="20">Here is a line</tspan> <tspan x="157.075" dy="20">Here is a line</tspan> </textPath> </text> </svg> ``` Here is the output (in Chrome): ![Curved text](https://i.stack.imgur.com/PNirZ.png) This is what I want. The problems: - `text-anchor``x``tspan``text-anchor`- `y` I know I could just create three separate `<path>` elements and associate them with three separate `<text>` (or `<textPath>`) elements, but it would be really nice to keep all the text logically together using `<tspan>` elements for later applications. Or is this to work but there is a rendering bug in Chrome? (unlikely, IMO)
Multiple lines of curved text in SVG
CC BY-SA 2.5
0
2011-03-03T19:46:47.533
2011-07-18T21:42:01.797
2011-03-03T20:53:54.987
183,339
183,339
[ "google-chrome", "svg" ]
5,185,827
1
5,185,950
null
2
13,244
I want to use use `jQuery.load()` to load some content. How do I add a spinner during the load process? ![load.gif](https://i.stack.imgur.com/vmrR2.jpg) ``` $("#content").load("b.php #abc"); ```
how to add a jquery load.gif during in jquery.load process?
CC BY-SA 2.5
0
2011-03-03T19:56:38.750
2011-03-03T20:19:32.120
2011-03-03T20:19:32.120
492,203
499,587
[ "jquery" ]
5,185,879
1
null
null
1
997
I have a WPF application that graphically represents a car trajectory between cities. Till now, it's just circles and line between them on a white background. Is there a way to add some functionality like Google Maps does, say, link circles to physical coordinates and instead of lines draw real paths following the roads? ![enter image description here](https://i.stack.imgur.com/NNBQl.jpg)
Adding Maps to WPF applications
CC BY-SA 2.5
null
2011-03-03T20:00:52.190
2011-03-03T23:13:02.680
null
null
185,593
[ ".net", "wpf", "xaml", "maps", "kml" ]
5,185,954
1
5,187,986
null
0
308
Is there a standard hotkey grabber dialog in Qt like the standard color picker dialog? Something like the compiz key grabber dialog: ![enter image description here](https://i.stack.imgur.com/QH3wA.png)
Is there a standard hotkey grabber dialog in Qt?
CC BY-SA 2.5
null
2011-03-03T20:07:57.103
2011-03-03T23:47:15.577
2011-03-03T20:29:06.140
492,336
492,336
[ "qt", "hotkeys" ]
5,186,306
1
null
null
7
1,092
I have data as a square matrix. I want to plot it like `meshgrid` in Matlab (mountains with color gradients). Also, if there is a big cliff, I want to label it. Something like shown below ![enter image description here](https://i.stack.imgur.com/90T8v.gif) The data I have is ``` _92765 _222156 _384259 _384249 _384247 _384250 _92765 -1 3.4 4.85106 8.12927 8.462 9.12643 _222156 3.4 -1 1.50877 3.66383 3.58554 3.69655 _384259 4.85106 1.50877 -1 4.48433 4.51367 4.14421 _384249 8.12927 3.66383 4.48433 -1 0.288 0.252 _384247 8.462 3.58554 4.51367 0.288 -1 0.196 _384250 9.12643 3.69655 4.14421 0.252 0.196 -1 ``` How can I go about it? Thanks
Mountain like plot for data in Square matrix
CC BY-SA 2.5
0
2011-03-03T20:42:29.800
2011-03-03T23:11:08.287
2011-03-03T21:08:52.067
408,324
408,324
[ "r", "ggplot2" ]
5,186,915
1
5,187,039
null
1
1,414
I have looked all over the internet and haven't found my answer. Whenever one taps the physical menu button on a device, the menu comes out and let's say we tap on Settings, the following view appears ![enter image description here](https://i.stack.imgur.com/SilfC.jpg) I would like to know how to create this type of menu with different groups, in the above example, group "Spades Settings" and group "Partner Spades Options" Is there a specific way of creating them or is it just a layout with a list? Thanks
Creating menu list
CC BY-SA 2.5
null
2011-03-03T21:40:34.483
2011-03-04T09:48:16.213
null
null
485,397
[ "android", "menu" ]
5,187,315
1
null
null
0
955
If I have a menu button, and put some text after it, the text always get put onto the next line. I check the firebug and the only different between chrome and ff is this: This code generate in FF ``` //Code to generate the menu button <script type="text/javascript"> 1widget_activate_j_idt21 = new PrimeFaces.widget.MenuButton('activate:j_idt21', {animated:'fade',zindex:1}); </script ``` ![FF look](https://i.stack.imgur.com/3OT6s.png) This code generate in Chrome ``` //Code to generate the menu button <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript"> //<![CDATA[ widget_activate_j_idt21 = new PrimeFaces.widget.MenuButton('activate:j_idt21', {animated:'fade',zindex:1}); //]]> </script> ``` How can I eliminate this line break? (This line break is not caused because not having enough space for `.edu`) ![Chrome Look](https://i.stack.imgur.com/TY6Ti.png)
Primefaces: Menu Button generate line break on chrome, but work fine on FF
CC BY-SA 2.5
null
2011-03-03T22:17:09.877
2011-06-17T06:53:31.050
null
null
240,337
[ "java", "jsf", "jakarta-ee", "primefaces" ]
5,187,761
1
5,191,712
null
11
23,129
### Issue Description After upgrading PHP on our development server from 5.2 to 5.3, we're encountering an issue where data requested from our database and displayed on a web page shows with improper encoding when attempting to display Russian characters. ### Environment - - - ### Details In PHP 5.3, the default client library for interacting with MySQL databases changed from libmysql to [mysqlnd](http://php.net/manual/en/book.mysqlnd.php), which would appear to be the cause of the issue we are encountering. We are connecting to the database with the following code: ``` $conn = mysql_pconnect('database.hostname', 'database_user', 'database_password'); $mysql_select_db('database', $conn); ``` The data stored in our database is encoded with UTF-8 encoding. Connecting to the database via the command-line client and running queries confirms that the data is intact and encoded properly. However, when we query the database in PHP and try to display the exact same data, it becomes garbled. In this specific case, we're attempting to display Russian characters and the result is non-English, non-Russian characters: ![garbled mess](https://i.stack.imgur.com/8KG5a.png) The response headers we receive confirm that the content-type is UTF-8: ![response headers](https://i.stack.imgur.com/AaEwY.png) We tested the strings before display with [mb_detect_encoding](http://us2.php.net/manual/en/function.mb-detect-encoding.php) in strict mode as well as [mb_check_encoding](http://us2.php.net/manual/en/function.mb-check-encoding.php) and were told the string was a UTF-8 string before displaying it. We also used [mysql_client_encoding](http://php.net/manual/en/function.mysql-client-encoding.php) to test the client encoding and it also indicates the character set is UTF-8. In performing research, we discovered [some suggestions](http://akrabat.com/php/utf8-php-and-mysql/) to try to work around this issue: ``` header("Content-type: text/html; charset=utf-8"); mysql_set_charset('utf8'); mysql_query("SET SESSION character_set_results = 'UTF8'"); mysql_query('SET NAMES UTF8', $conn); ``` We even tried [utf8_encode](http://php.net/manual/en/function.utf8-encode.php): ``` utf8_encode($string); ``` However, none of these solutions worked. Running out of options, we upgraded MySQL on our development system to Distrib 5.1.55. After that upgrade, everything displayed correctly when we connected to our development database. Of course, it continues to display incorrectly when we connect to our live database. Ideally, we would like to resolve this issue without upgrading MySQL on our production servers unless we can verify the exact reason why this isn't working and why the upgrade will fix it.
Resolving incorrect character encoding when displaying MySQL database results after upgrade to PHP 5.3
CC BY-SA 2.5
0
2011-03-03T23:08:03.730
2012-11-20T10:32:34.257
2011-03-04T17:30:08.237
333,652
333,652
[ "php", "mysql", "character-encoding" ]
5,187,789
1
5,215,133
null
13
10,955
I'm shooting video on an iPhone 4 with the front camera and combining the video with some other media assets. I'd like for this video to be portrait orientation - the default orientation for all video is landscape and in some circumstances, you have to manage this manually. I'm using AVFoundation and specifically AVAssetExportSession with a AVMutableVideoComposition. Based on the WWDC videos, it's clear that I have to handle 'fixing' the orientation myself when I'm combining videos into a new composition. So, I've created an AVMutableVideoCompositionLayerInstruction attached to my AVMutableVideoCompositionInstruction and I'm using the setTransform:atTime: method to set a transform designed to rotate the video: ``` AVMutableVideoCompositionLayerInstruction *passThroughLayer = [AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack:videoTrack]; CGAffineTransform portraitRotationTransform = CGAffineTransformMakeRotation(degreesToRadians(90.0)); [passThroughLayer setTransform:portraitRotationTransform atTime:kCMTimeZero]; ``` The problem is that when I view the video that is exported, none of the actual contents are on the screen. If I reduce the rotation angle to something like 45 degrees, I can see part of the video on the screen - it's almost as if it's not rotating at the center point. I'm including images below to make it more clear what I'm talking about. The natural size of the video is coming back as 480x360. I've tried changing that to 360x480 and it doesn't impact the core issue. 0 Degree Rotation: ![enter image description here](https://i.stack.imgur.com/ZLBjY.png) 45 Degree Rotation: ![enter image description here](https://i.stack.imgur.com/jxkGU.png) A 90 degree rotation is just all green. Anyway, I'm hoping someone who has done this before can point me in the right direction. I can't find any docs on some of the more advanced topics in AVFoundation compositions and exports.
Rotating Video with AVMutableVideoCompositionLayerInstruction
CC BY-SA 3.0
0
2011-03-03T23:11:12.773
2019-05-14T02:18:59.523
2018-02-08T20:37:14.857
1,033,581
555
[ "iphone", "ios", "video-capture", "avfoundation" ]
5,188,247
1
5,189,485
null
1
56
Situation: Client is a government organization who is using Internet Explorer v7.0.5730.13. On the developer side there is same version of Internet Explorer and the same OS. Client cannot install any other browser or change any settings in IE. Question: What other variables are there which could influence this kind of odd render behavior? ![Expected Render](https://i.stack.imgur.com/x2RjG.jpg) ![Actual Render](https://i.stack.imgur.com/5yoeX.jpg)
How different installs of the same version of Internet Explorer 7 produce different render results
CC BY-SA 2.5
null
2011-03-04T00:14:12.227
2011-03-04T03:58:44.847
2011-03-04T00:37:15.367
null
null
[ "internet-explorer-7" ]
5,188,336
1
5,188,387
null
0
457
I have a canvas animation that sometimes redraws the exact same element over another (it is a long story why this is necessary) but it happens, and it happens often enough. Now I assumed that drawing an element (using a context path and the stroke method) over an existing exact replica of the image should do nothing at all to my animation. Instead it draws over the past image and blurs all the sides (as if it didn't exactly draw at the same location. ![The normal image without blurry sides](https://i.stack.imgur.com/zMod7.png) ![The image with blurry sides](https://i.stack.imgur.com/iOi4s.png) Please let me know if there is a way to fix this Thanks
Canvas overlapping elements
CC BY-SA 2.5
null
2011-03-04T00:29:50.287
2011-03-04T03:26:50.190
null
null
414,453
[ "javascript", "animation", "canvas" ]
5,188,555
1
5,193,014
null
6
8,151
I am using eclipse with RSE, and it works well connecting to my linux server when I am in the same network, but as the server is behind a firewall with a gate entry, I need to make a ssh tunnelling when outside its network. I have not find a way of adding the local port where I have the tunnel to the host name nor in other places. ![RSE ssh connection](https://i.stack.imgur.com/Yezv5.png) Is it possible to connect to localhost:port with RSE?
Can eclipse RSE connect to a local port (ssh tunneled)?
CC BY-SA 2.5
0
2011-03-04T01:06:55.553
2021-09-17T00:08:15.893
null
null
427,129
[ "eclipse", "eclipse-plugin", "ssh-tunnel", "eclipse-rse" ]
5,188,799
1
null
null
1
10,275
I've been tasked with implementing sorting & filtering of data displayed in a GWT [CellTable](http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html). Thankfully GWT already supports sorting, but it looks like I'll have to hack together my own filtering support. To be more precise, what I'm trying to support is similar to the filtering offered by Excel, whereby you can click on a drop-down menu in the column headers and (for example) click checkboxes that will allow you to filter the rows based on the values for the filtered column(s). A picture is worth a thousand words: ![excel column filtering](https://i.stack.imgur.com/MRpOu.png) : any suggestions on how to go about implementing this in GWT 2.2? Is it even possible? One option I'm thinking about is to pass in a custom [Header](http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/Header.html) object to CellTable.addColumn(). If it's possible, I'll add a ClickHandler to the Header, and then open a Popup that displays a widget for filtering. Not sure how to implement this without negatively affecting the sorting behavior. Any suggestions gladly welcome. : Thanks to John below, I've got the following `FilterableHeader` class that allows me to at least put an icon into the header. Unsure how to get a ClickHandler on that icon just yet, as the image is inserted via HTML rather than using GWT widgets. ``` public class FilterableHeader extends Header<String> { /** * Image resources. */ public static interface Resources extends ClientBundle { ImageResource downArrow(); ImageResource upArrow(); } private static final Resources RESOURCES = GWT.create(Resources.class); private static final int IMAGE_WIDTH = 16; private static final String DOWN_ARROW = makeImage(RESOURCES.downArrow()); private static final String UP_ARROW = makeImage(RESOURCES.upArrow()); private static String makeImage(ImageResource resource) { AbstractImagePrototype proto = AbstractImagePrototype.create(resource); return proto.getHTML().replace("style='", "style='position:absolute;right:0px;top:0px;"); } private String text; public FilterableHeader(String text) { super(new ClickableTextCell()); this.text = text; } @Override public String getValue() { return text; } @Override public void render(Cell.Context context, SafeHtmlBuilder safe) { int imageWidth = IMAGE_WIDTH; StringBuilder sb = new StringBuilder(); sb.append("<div style='position:relative;cursor:hand;cursor:pointer;"); sb.append("padding-right:"); sb.append(imageWidth); sb.append("px;'>"); sb.append(UP_ARROW); sb.append("<div>"); sb.append(text); sb.append("</div></div>"); safe.append(SafeHtmlUtils.fromSafeConstant(sb.toString())); } } ```
GWT: add filtering to CellTable
CC BY-SA 2.5
0
2011-03-04T01:48:47.663
2013-01-17T20:13:34.143
2011-03-04T17:58:00.810
93,995
93,995
[ "java", "gwt" ]
5,188,952
1
null
null
3
343
I'm trying to display the order in which certain steps can be taken. Some steps can be taken simultaneously, while others have to follow in a particular order. I have the data already in an SQL table, and just want to be able to pull this into a PHP array or something so I can print it out. The data is stored in 1 sql table, with 2 fields. The first is stat (which is the number of this block), the second is prereq, which identifies the predecessor (which would be some other stat). If the prereq field is null, this is the starting point. The ending point is when there is no other rows. 1st example: ``` status_number prereq ------------- ------- 3 NULL 4 3 5 4 6 4 7 5 7 6 8 7 ``` Looks like this conceptually: ![](https://docs.google.com/drawings/pub?id=1B3iKZZOSzSRy3ZOdx7wWtyHPQNGmE41TbTKZoyY9IHw&w=960&h=720) I'm thinking to visually print this, first I want to get the data into a PHP array, with nested arrays for where I would have 2 stats vertically (in this case, 5 & 6). So, the array would look like: (3,4,(5,6),7,8). How can I get the data into this form? Thanks for your help!
Sql Multi Linked List
CC BY-SA 2.5
null
2011-03-04T02:16:27.140
2013-10-12T20:41:19.053
null
null
201,696
[ "php", "sql", "linked-list", "iteration" ]
5,189,005
1
5,189,043
null
1
145
Can Someone please let me know how can I have this done in CSS? ![Example](https://i.stack.imgur.com/Vc8gE.png) The three columns will contain text. I need the black box to be fixed in size and the two fuchsia columns to expand as needed. I need it to be wrapped around the black box from both sides.
How can I have columns like this in CSS? (image)
CC BY-SA 2.5
null
2011-03-04T02:26:52.467
2011-03-04T02:48:38.743
2011-03-04T02:41:02.043
504,715
504,715
[ "html", "css", "css-float" ]
5,189,059
1
5,189,163
null
0
895
I'm creating a testbench for combinational logic, where a, b, cin are inputs in to an instantiated unit under test. All that appears to be working fine. However, I'm deriving a test_s signal through addition within my test bench process, and that seems to be strangely delayed. It doesn't matter the duration of my 'wait' statements, I can change the units from ps to ns and the symptoms are the same. What seems to be happening is that a and b set up properly, but test_s doesn't change until a and b change their values. When this happens, test_s actually updates to the values of a and b. So at first when a and b become 0, test_s becomes XXXXXXX. Then, when a becomes 1, test_s becomes 0000000 when it should actually be 00000001. ![enter image description here](https://i.stack.imgur.com/QKaFi.png) ![enter image description here](https://i.stack.imgur.com/OvGS1.png) ``` -- Instantiate the Unit Under Test (UUT) uut: FastCarry8 PORT MAP ( a => a, b => b, cin => cinVec(0), cout => cout ); signal a : std_logic_vector(7 downto 0) := (others => '0'); signal b : std_logic_vector(7 downto 0) := (others => '0'); signal cinVec : std_logic_vector(1 downto 0); signal test_s : std_logic_vector(8 downto 0); -- Stimulus process stim_proc: process begin -- hold reset state wait for 10 ps; carry_gen: for carry in 0 to 1 loop cinVec <= std_logic_vector(to_unsigned(carry, 2)); b_gen: for j in 0 to 255 loop a_gen: for i in 0 to 255 loop a <= std_logic_vector(to_unsigned(i, 8)); b <= std_logic_vector(to_unsigned(j, 8)); test_s <= std_logic_vector(resize(unsigned(a), test_s'length) + unsigned(b) + unsigned(cinVec)); wait for 5ps; ASSERT (test_s(8) = cout) REPORT "Carry out failed for cin = 0!"; wait for 5ps; end loop a_gen; end loop b_gen; end loop carry_gen; ```
Why is there a delay in my VHDL combinational logic within a process?
CC BY-SA 2.5
null
2011-03-04T02:37:03.310
2011-03-04T02:55:46.887
2011-03-04T02:50:25.230
361,312
361,312
[ "vhdl" ]
5,189,168
1
5,189,214
null
5
2,479
Am developing a genetic algorithm in Java, that like all of them, requires the crossover of two parent chromosomes. These chromosomes can be quite long, anywhere from 30 to 500 (but whatever length they have, they will all be the same size, so if the length is 80, in that GA run all will be 80). I thought of developing in different ways but they all just seem to me like very inefficient, so I thought I might ask for new, different points of view and suggestions. For example, one of the ways I thought was of converting the string to an array of characters and iterating from the start point to the end of the crossover locus (ie from `s1 & s2[25]` to `s1 & s2[40]`) copying into temporal arrays each of the arrays characters between those points and then iterating again and swapping them with the characters from the temporal array of the "partner". But like I said it seems like for a program that will have a population of about 1000 chromosomes and with around 1000 generations will be extremely slow. --- ![enter image description here](https://i.stack.imgur.com/VZVQV.jpg) --- ![enter image description here](https://i.stack.imgur.com/4hjIc.png) --- As am not very advanced at all in Java could you advice me on what approach to take, maybe a Java function am unaware of, or some algorithm that I could implement?
How to "crossover" two strings (1234 & abcd -> 12cd & ab34)
CC BY-SA 2.5
0
2011-03-04T02:56:58.853
2011-03-04T23:11:52.080
2011-03-04T03:14:10.583
287,893
287,893
[ "java", "arrays", "string", "genetic-algorithm" ]
5,189,268
1
5,196,359
null
5
4,582
I a portion of my EF model that looks like this: ![enter image description here](https://i.stack.imgur.com/XGvyH.png) Summary: - - - - Now, the query i'm trying to achieve: I can get discussions and the comments like this: ``` var discussions = ctx.Posts .OfType<Discussion>() .Include(x => x.Comments) .ToList(); ``` But i can't seem to get it based on the navigation on the entity. I've tried this: ``` var locationWithDiscussionsAndComments = ctx .Locations .Include(x => x.Posts .OfType<Discussion>() .Select(y => y.Comments)) .SingleOrDefault(); ``` Which compiles, but i get the error: > System.ArgumentException: The include path expression must refer to a property defined by the entity, optionally also with nested properties or calls to Select. Parameter name: path Any ideas? I could probably go "backwards" from the Posts: ``` var locationWithDiscussionsAndComments = ctx .Posts .Include(x => x.Location) .OfType<Discussion>() .Include(x => x.Comments) .Where(x => x.LocationId == 1234) .Select(x => x.Location) .ToList(); ``` But that is both hairy and semantically wrong in terms of my repositories (i shouldn't have to go through a post repository to get information about a location). Any ideas? So after having a bigger think about it, i realized that `OfType<T>` is a filter operation. As as we know, EF does not support filtering with eager loading. The only options are retrieving , or using anonymous type projection. No way i can retrieve everything, as there is far too much meta data involved. So i'm attempting the anonymous type projection.
Problem with Eager Loading Nested Navigation Based on Abstract Entity (EF CTP5)
CC BY-SA 2.5
0
2011-03-04T03:19:08.787
2011-03-05T22:56:26.737
2011-03-04T03:53:12.747
321,946
321,946
[ "c#", "abstract-class", "eager-loading", "entity-framework-ctp5", "navigational-properties" ]
5,189,344
1
5,202,343
null
0
129
I have 3 entities in an example app: - - - - - - - - - - - I want to display the transactions of a particular account in an NSTableView. The problem comes in when I want to display the balance of the current account. Because a transaction may be associated with multiple accounts, it may have multiple balances. I can't think of a way to select the particular balance associated with the current account being displayed in an NSTableColumn. Does anyone have any suggestions of how to change the model or how to connect things up to the NSTableView in such a way that the proper balance is displayed? The only thing I can think of is to create a sub-class of NSCell that knows how to select the balance associated with the current account view or an NSValueTransformer that does a similar thing. This seems like a very inelegant solution though. If there is a better way I would like to know how. Here's a screenshot of a demo app that illustrates the above. I would like the far right column to display the balance as of that specific transaction. Works well enough if the transaction has a balance attribute; however, in my app the balance is stored in a separate table because there may be multiple types of balances for each transaction. I can't figure out how to get it to display the proper balance in the table view though: ![screenshot of potential app](https://i.stack.imgur.com/isSjV.png)
displaying balance in core data
CC BY-SA 2.5
0
2011-03-04T03:32:06.080
2011-03-05T07:15:52.657
2011-03-05T00:59:00.510
619,274
619,274
[ "cocoa", "core-data", "nstableview", "key-value-coding" ]
5,189,626
1
5,189,675
null
7
2,650
I have to rotate a view circularly on finger touch...I mean like dialing the old phones number...and the touch should be only on corners.....can any one help me...i have tried it a lot...but was not successes ![enter image description here](https://i.stack.imgur.com/Eb43B.jpg)
rotating a view on touch
CC BY-SA 2.5
0
2011-03-04T04:23:39.293
2011-03-15T04:27:30.783
2011-03-15T04:27:30.783
567,929
554,865
[ "iphone", "objective-c", "uiimageview", "rotation", "uigesturerecognizer" ]
5,189,633
1
null
null
4
5,425
Two days ago I installed all the Android SDK updates. Earlier I had 2.2 API 8, Revision 2. After the upgrade I enabled snapshot - I am not able to start the emulator with Snapshot enabled. I get this message (in red) in the NAND: nand_dev_load_disk_state ftruncate failed: Invalid argument I get this message in almost every 5 seconds 03-03 19:45:38.008: WARN/MountService(59): Waiting too long for mReady! the trace before this message appears is shown below ``` 03-03 19:39:56.633: INFO/SystemServer(59): Mount Service 03-03 19:39:56.672: INFO/SystemServer(59): Notification Manager 03-03 19:39:56.722: INFO/SystemServer(59): Device Storage Monitor 03-03 19:39:56.752: ERROR/VoldConnector(59): No connection to daemon 03-03 19:39:56.752: ERROR/VoldConnector(59): java.lang.IllegalStateException 03-03 19:39:56.752: ERROR/VoldConnector(59): at com.android.server.NativeDaemonConnector.sendCommand(NativeDaemonConnector.java:191) 03-03 19:39:56.752: ERROR/VoldConnector(59): at com.android.server.NativeDaemonConnector.sendCommand(NativeDaemonConnector.java:178) 03-03 19:39:56.752: ERROR/VoldConnector(59): at com.android.server.NativeDaemonConnector.doCommand(NativeDaemonConnector.java:213) 03-03 19:39:56.752: ERROR/VoldConnector(59): at com.android.server.NativeDaemonConnector.doListCommand(NativeDaemonConnector.java:258) 03-03 19:39:56.752: ERROR/VoldConnector(59): at com.android.server.MountService$2.run(MountService.java:425) 03-03 19:39:56.783: INFO/SystemServer(59): Location Manager 03-03 19:39:56.793: INFO/SystemServer(59): Search Service 03-03 19:39:56.802: INFO/SystemServer(59): DropBox Service ``` Can anyone please tell me what could be wrong with my setup? I am attaching a screenshot of Installed packages. ![enter image description here](https://i.stack.imgur.com/HidL9.jpg) The emulator does not start I have to kill it and restart eclipse with with snapshot disabled. [http://tools.android.com/recent/emulatorsnapshots](http://tools.android.com/recent/emulatorsnapshots) With Snapshot disabled - here is what logcat looks like ``` 03-04 04:17:41.387: INFO/SystemServer(73): Device Storage Monitor 03-04 04:17:41.398: INFO/PackageManager(73): Updating external media status from unmounted to unmounted 03-04 04:17:41.407: DEBUG/VoldCmdListener(29): share status ums 03-04 04:17:41.457: INFO/SystemServer(73): Location Manager ``` The AVD platform is 2.2/API 8 Thank you @Greg Here are the details for AVD ![enter image description here](https://i.stack.imgur.com/AnUeq.jpg)
With Snapshot enabled android Emulator fails
CC BY-SA 2.5
null
2011-03-04T04:24:04.247
2021-09-07T21:48:54.970
2011-03-09T06:07:56.773
23,033
446,006
[ "android", "emulation", "snapshot" ]
5,189,700
1
null
null
0
353
i have integrated succesfully mozswing in my swing project, but i have a problem with the special chars "àèìòù" (italians). this is my code: ``` public class CreatePanel2 { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(500, 600); MozillaPanel moz = new MozillaPanel(MozillaPanel.VisibilityMode.FORCED_HIDDEN, MozillaPanel.VisibilityMode.FORCED_HIDDEN); frame.getContentPane().add(moz); frame.setVisible(true); MozillaAutomation.blockingLoadHTML(moz, "à è ì ò ù", null); //$NON-NLS-1$ Document document = moz.getDocument(); try { DOMUtils.writeDOMToStream(document, System.out); } catch (IOException e) { e.printStackTrace(); } } } ``` This is the console output: ``` <?xml version="1.0" encoding="UTF-8" standalone="no"?> <html> <head/> <body>à è ì ò ù</body> </html> ``` and this is a screenshot: ![enter image description here](https://i.stack.imgur.com/Y7YqR.jpg) How i can change the charset in mozswing? Please help, and thank you! :-)
Java MozSwing and charset
CC BY-SA 2.5
null
2011-03-04T04:34:12.133
2011-03-04T16:40:09.110
null
null
613,631
[ "java", "character-encoding", "mozilla" ]
5,190,056
1
null
null
6
2,721
Update: [Link](http://www.mediafire.com/?tvt2agha0i42i9f) to my test dataset I have some data like this: ``` 10.0 11.0 0.5 10.0 12.0 0.5 10.0 14.5 0.5 10.0 16.0 0.5 10.0 18.5 0.5 10.0 19.0 0.5 10.0 19.5 0.5 10.0 20.0 0.5 ``` Using Gnuplot, I could plot the following picture: ![enter image description here](https://i.stack.imgur.com/bzpe9.jpg) using the following script I wrote: ``` set data style lines set surface set dgrid3d 30,30 set hidden3d set ticslevel 0.8 set isosample 40,40 set view 60, 30, 1, 1 set contour base splot "dataset" using 2:1:($3) notitle ``` I am trying to do some analysis on this graph so wanted to get this into Matlab but am not sure how to draw this. I tried importing the dataset into Matlab and this is how far I could get. I am loading the file and plotting using the following Matlab statements: ``` load data rangeY = floor(min(data(:,2))):.5:ceil(max(data(:,2))) rangeX = floor(min(data(:,1))):.5:ceil(max(data(:,1))) [X,Y] = meshgrid(rangeX,rangeY) Z = griddata(data(:,1),data(:,2),data(:,3),X,Y, 'cubic') surf(X,Y,Z) ``` ![enter image description here](https://i.stack.imgur.com/DQ06z.jpg) The picture looks quite different to me (axis range, shape etc.) Can someone tell me how to get a plot similar to the one I obtained through Gnuplot?
Drawing a surface plot in Matlab similar to one obtained using Gnuplot?
CC BY-SA 2.5
0
2011-03-04T05:29:48.510
2011-03-05T02:16:34.327
2011-03-04T17:45:30.193
184,046
184,046
[ "matlab", "graph", "plot", "spatial" ]
5,190,527
1
5,190,589
null
16
15,081
> [UITableView Cell expand on click](https://stackoverflow.com/questions/4635338/uitableview-cell-expand-on-click) i need help in UITableViewCell of UITableView.My requirement is below: ![enter image description here](https://i.stack.imgur.com/s9109.png) look at Retweets , list and More when i click retweet following appears ![enter image description here](https://i.stack.imgur.com/ctDII.png) you can see that retweet expands and shows other listing and list and more slide below. i want to make the same . Any type of help is highly appreciated ,tutorial link or anything . thank you
Expand collapse UITableViewCell
CC BY-SA 2.5
0
2011-03-04T06:38:44.733
2011-08-31T06:24:22.597
2017-05-23T11:48:23.740
-1
533,611
[ "iphone", "objective-c", "cocoa-touch", "uitableview" ]
5,190,993
1
null
null
1
1,547
I have a form to be worked upon. Here is the image ![Form Field Shadow](https://i.stack.imgur.com/AWPJl.gif) The problem is every form field has a shadow on left, right and bottom which should be flexible. I have not started my work on it at all but not able to think of best solution for this design with CSS2 not CSS3 [Requirement :( ] . Can anyone help me out or suggest me any solution??
Form Field flexible shadow with CSS
CC BY-SA 2.5
null
2011-03-04T07:37:07.790
2011-03-12T07:58:22.273
2011-03-12T07:58:22.273
560,735
507,914
[ "html", "css", "forms", "xhtml", "shadow" ]
5,192,333
1
5,192,359
null
0
1,878
![enter image description here](https://i.stack.imgur.com/5WrDr.png) I have some records as in the image. I want to write a sql query to fetch the latest unique records so that I only have two records on the basis of UserAlertTicketID and latest Created Date. In this case the output would be like: "CB23C56F-B067-415E-AD62-59DF4DA4F26D" "2" "2011-03-04 09:49:59.440" "9EDB3DBC-4685-414D-A48B-04CA8285A2D1" "9FA4D72B-8BB3-4CE9-BCA2-C334AF47EB30" "3" "2011-03-04 09:05:46.817" "94C67A9C-3818-4AB5-A6F6-CD7BD69FAEC7" Kindly Help!!! Thanks
sql query to get distinct records based on created date
CC BY-SA 2.5
null
2011-03-04T10:09:25.667
2011-03-04T10:18:28.563
null
null
465,576
[ "sql", "sql-server-2008" ]
5,192,474
1
5,192,585
null
0
55
I have got a table with white font on a blue background as you can see its not the easiest to read. is there any font/solution to make it a bit more eye friendly with css. im using ie6 (the info displayed is made up) edit: I cant change the background image and colour because theyre the companies colours ![enter image description here](https://i.stack.imgur.com/PiUcc.jpg)
How can I improve the readibility of this
CC BY-SA 2.5
null
2011-03-04T10:22:19.360
2011-03-04T11:58:34.380
2011-03-04T10:49:37.800
521,180
521,180
[ "css" ]