Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
4,495,852
1
4,496,785
null
1
432
I will have 2 fields in my table, NEXTTIME and ENDTIME, the table name is VISIT. I will get a value from my page which is 00:05:00 or sth like that. the minimum is 5 minute. I will have to query from the database based on that value. I will get the earliest NEXTTIME and that time + 00:05:00. Let's say the earlist NEXTTIME is 06:44. My query will be like 06:45, 06:50, and so on.. I will also have another input value which is interval time. Nvm that. I just wanna know how to get the query by interval. The result would be looked like this. ![alt text](https://i.stack.imgur.com/ZWaay.jpg) NEXTTIME : ENDTIME 06:55:00 ~ 06:58:00 07:25:00 ~ 07:28:00 07:35:00 ~ 08:52:00 08:38:00 ~ 08:48:00 08:40:00 ~ 08:54:00 08:43:00 ~ 09:36:00 09:12:00 ~ 09:30:00
sql query for by periods
CC BY-SA 2.5
null
2010-12-21T02:39:53.870
2010-12-21T06:34:02.713
2010-12-21T03:48:59.537
398,909
398,909
[ "sql-server", "sql-server-2005" ]
4,495,974
1
4,496,234
null
4
1,890
I've got a table that returns the history of a value, as well as the current one, each with a date. The oldest date is the main record. If the value is changed, a new record is created, with the old value, and the main record is updated with the new value. If this happens again, a third record is created, which contains the now old value. So if the value starts at 4, changes to 2, then again changes to 1. The records will go ``` 1 4 2 ``` I'm currently creating an inner join on the table to itself as follows, which gets the max date of the 3 above records, which would be 2.. The actual value I need is the 4. The easiest way to tell if a record is a historical one is that the TriageEndDateTime is NULL. ``` INNER JOIN (SELECT EmergencyAttendanceId,MIN(SourceCreateDateTime) as Max_Date FROM FactEmergencyAttendanceTriageDetail GROUP BY EmergencyAttendanceId) AS EAiD ON EAiD.EmergencyAttendanceId = FactEmergencyAttendanceTriageDetail.EmergencyAttendanceId AND EAiD.Max_Date = FactEmergencyAttendanceTriageDetail.SourceCreateDateTime ``` What I need to do is select the second record, but only if it exists. So something along the lines of this. ``` SELECT EmergencyAttendanceId,MIN(SourceCreateDateTime) as Max_Date FROM FactEmergencyAttendanceTriageDetail WHERE IF COUNT(EmergencyAttendanceId) > 1 THEN TriageEndDateTime Is NULL ELSE NOT NULL GROUP BY EmergencyAttendanceId inside the INNER JOIN. ``` Can anyone help me with this? ## Sample data ![alt text](https://i.stack.imgur.com/xHqWB.jpg) In the above case, record 2 is the one I'm after.
Conditional where statement in T-SQL
CC BY-SA 3.0
null
2010-12-21T03:16:32.230
2016-02-03T20:01:14.090
2016-02-03T20:01:14.090
712,526
304,767
[ "sql", "tsql", "case", "where-clause" ]
4,496,242
1
null
null
2
2,176
People have found a means by which to make a scrollable on ios devices using css transforms. I have an issue with iframes on IOS safari, whereby if i try and use css3 transforms to scroll content in an iframe, the resulting content is clipped to what was rendered first on the screen. This works fine on android devices, and works on on IOS, but NOT iframes. This appears to be a bug in the safari webkit implementation. I've tried increasing the height of the iframe to larger than the content contained within, and ensured overflow is enabled on the iframe. Has anyone been able to come up with a workaround? As i'm absolutely in-need of an iframe for remote content, my last resort would be to proxy content through a server sided page, and inject some javascript in order to perform a translate3d on the child's body tag: this seems to work. Images - after translate 3d (notice clipping) : ![http://imgur.com/seFqv.png](https://i.stack.imgur.com/AesDl.png)
IOS safari : clipping of iframe when using transform3d
CC BY-SA 3.0
0
2010-12-21T04:17:49.407
2012-05-04T14:57:51.170
2011-12-04T00:33:19.293
84,042
223,349
[ "javascript", "iframe", "css", "iphone", "mobile-webkit" ]
4,496,330
1
4,496,390
null
2
1,893
I don't know if what am asking for is even possible in IE6, but here goes: I am working on a page layout and want to split the body into two container divs. I want to give the left div a fixed width of 200px; while making the right div elastic along the page's width. The right div's left border must be touching the left div's right border to make things clearer i made a diagram: ![alt text](https://i.stack.imgur.com/w1c6l.png)
In IE6, and using divs, how to split entire page into two columns, left div with static width and right with elastic width?
CC BY-SA 2.5
null
2010-12-21T04:38:01.787
2023-02-23T01:46:17.273
null
null
98,204
[ "html", "css", "internet-explorer", "internet-explorer-6" ]
4,496,512
1
4,500,907
null
1
337
How can I acheive a font like this? ![alt text](https://i.stack.imgur.com/cbBjz.png) It's the name below icons on the iOS platform. Is it Helvetica, and how can I achieve the soft shadow that it has in code? Thanks in advance!
How to achieve this font appearance?
CC BY-SA 2.5
null
2010-12-21T05:23:48.847
2010-12-21T15:31:23.303
null
null
456,851
[ "iphone", "cocoa-touch", "ios", "fonts", "label" ]
4,496,542
1
4,496,634
null
1
386
what's the element name in the green circle? Whta's the event corresponding to click this element? ![alt text](https://i.stack.imgur.com/0CqGH.png)
what the name for the item in the green circle
CC BY-SA 2.5
0
2010-12-21T05:32:04.863
2010-12-21T13:12:46.457
2010-12-21T06:24:41.827
409,265
496,949
[ "wpf", "datagrid", "wpf-controls" ]
4,496,496
1
4,515,392
null
1
814
I'm working on a website that will sell hand made jewelry and I'm finishing the image editor, but it's not behaving quite right. Basically, the user uploads an image which will be saved as a source and then it will be resized to fit the user's screen and saved as a temp. The user will then go to a screen that will allow them to crop the image and then save it to it's final versions. All of that works fine, except, the final versions have 3 bugs. First is some black horizontal line on the very bottom of the image. Second is an outline of sorts that follows the edges. I thought it was because I was reducing the quality, but even at 100% it still shows up... And lastly, I've noticed that the cropped image is always a couple of pixels lower than what I'm specifying... Anyway, I'm hoping someone whose got experience in editing images with C# can maybe take a look at the code and see where I might be going off the right path. Oh, by the way, this in an ASP.NET MVC application. Here's the code: ``` public class ImageProvider { private readonly ProductProvider ProductProvider = null; private readonly EncoderParameters HighQualityEncoder = new EncoderParameters(); private readonly ImageCodecInfo JpegCodecInfo = ImageCodecInfo.GetImageEncoders().Single( c => (c.MimeType == "image/jpeg")); private readonly string Path = HttpContext.Current.Server.MapPath("~/Resources/Images/Products"); private readonly short[][] Dimensions = new short[3][] { new short[2] { 640, 480 }, new short[2] { 240, 0 }, new short[2] { 80, 60 } } public ImageProvider(ProductProvider ProductProvider) { this.ProductProvider = ProductProvider; HighQualityEncoder.Param[0] = new EncoderParameter(Encoder.Quality, 100L); } public void Crop(string FileName, Image Image, Crop Crop) { using (Bitmap Source = new Bitmap(Image)) { using (Bitmap Target = new Bitmap(Crop.Width, Crop.Height)) { using (Graphics Graphics = Graphics.FromImage(Target)) { Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; Graphics.SmoothingMode = SmoothingMode.HighQuality; Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; Graphics.CompositingQuality = CompositingQuality.HighQuality; Graphics.DrawImage(Source, new Rectangle(0, 0, Target.Width, Target.Height), new Rectangle(Crop.Left, Crop.Top, Crop.Width, Crop.Height), GraphicsUnit.Pixel); } Target.Save(FileName, JpegCodecInfo, HighQualityEncoder); } } } public void CropAndResize(Product Product, Crop Crop) { using (Image Source = Image.FromFile(String.Format("{0}/{1}.source", Path, Product.ProductId))) { using (Image Temp = Image.FromFile(String.Format("{0}/{1}.temp", Path, Product.ProductId))) { float Percent = ((float)Source.Width / (float)Temp.Width); short Width = (short)(Temp.Width * Percent); short Height = (short)(Temp.Height * Percent); Crop.Height = (short)(Crop.Height * Percent); Crop.Left = (short)(Crop.Left * Percent); Crop.Top = (short)(Crop.Top * Percent); Crop.Width = (short)(Crop.Width * Percent); Img Img = new Img(); this.ProductProvider.AddImageAndSave(Product, Img); this.Crop(String.Format("{0}/{1}.cropped", Path, Img.ImageId), Source, Crop); using (Image Cropped = Image.FromFile(String.Format("{0}/{1}.cropped", Path, Img.ImageId))) { this.Resize(this.Dimensions[0], String.Format("{0}/{1}-L.jpg", Path, Img.ImageId), Cropped, HighQualityEncoder); this.Resize(this.Dimensions[1], String.Format("{0}/{1}-T.jpg", Path, Img.ImageId), Cropped, HighQualityEncoder); this.Resize(this.Dimensions[2], String.Format("{0}/{1}-S.jpg", Path, Img.ImageId), Cropped, HighQualityEncoder); } } } this.Purge(Product); } public void QueueFor( Product Product, HttpPostedFileBase PostedFile) { using (Image Image = Image.FromStream(PostedFile.InputStream)) { this.Resize(new short[2] { 1152, 0 }, String.Format("{0}/{1}.temp", Path, Product.ProductId), Image, HighQualityEncoder); } PostedFile.SaveAs(String.Format("{0}/{1}.source", Path, Product.ProductId)); } private void Purge(Product Product) { string Source = String.Format("{0}/{1}.source", Path, Product.ProductId); string Temp = String.Format("{0}/{1}.temp", Path, Product.ProductId); if (File.Exists(Source)) { File.Delete(Source); } if (File.Exists(Temp)) { File.Delete(Temp); } foreach (Img Img in Product.Imgs) { string Cropped = String.Format("{0}/{1}.cropped", Path, Img.ImageId); if (File.Exists(Cropped)) { File.Delete(Cropped); } } } public void Resize( short[] Dimensions, string FileName, Image Image, EncoderParameters EncoderParameters) { if (Dimensions[1] == 0) { Dimensions[1] = (short)(Image.Height / ((float)Image.Width / (float)Dimensions[0])); } using (Bitmap Bitmap = new Bitmap(Dimensions[0], Dimensions[1])) { using (Graphics Graphics = Graphics.FromImage(Bitmap)) { Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; Graphics.SmoothingMode = SmoothingMode.HighQuality; Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; Graphics.CompositingQuality = CompositingQuality.HighQuality; Graphics.DrawImage(Image, 0, 0, Dimensions[0], Dimensions[1]); }; Bitmap.Save(FileName, JpegCodecInfo, EncoderParameters); } } } ``` Here's one of the images this produces:![http://i.stack.imgur.com/GJX97.jpg](https://i.stack.imgur.com/GJX97.jpg) So, I sat down and read through MSDN for like 2 hours after I posted, verified the code I had. As far as I can tell, I'm using the highest possible quality settings when performing the manipulation. Either way, I ended up cleaning up and streamlining the code a bit. I contemplated the need for the source file and decided to remove it because it was requiring me to do additional work to figure out the cropping dimensions that are based on the temp file. So, it's gone. Also, somewhere along the streamlining, the black line disappeared, so I can only assume that the aspect ratio issues should have been corrected as @StefanE stated. Also, as @VinayC said, the re-sizer was generating a value of 479 for the height (which I still don't get how, but whatever...), but that seems to have been corrected when I switched to using the System.Drawing.Size and System.Drawing.Rectangle classes all the way through instead of using my own classes which essentially do the same thing. So, here's the updated code. The remaining bug still stand, so I have a "ghosting" outline all the way around the image (see second attachment) which I can narrow down to the resizing because it shows up in the first re-size where no cropping has occurred. (My second bug ended up me sending bad values to begin with, the cropping div was getting its relative position based on the master content div, not the image container div. All fixed now.) ``` using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Web; namespace Website.Models.Providers { public class ImageProvider { private readonly ProductProvider ProductProvider = null; private readonly EncoderParameters DefaultQualityEncoder = new EncoderParameters(); private readonly EncoderParameters HighQualityEncoder = new EncoderParameters(); private readonly ImageCodecInfo JpegCodecInfo = ImageCodecInfo.GetImageEncoders().Single( c => (c.MimeType == "image/jpeg")); private readonly Size[] Sizes = new Size[3] { new Size(640, 0), new Size(240, 0), new Size(80, 0) }; private readonly string Path = HttpContext.Current.Server.MapPath("~/Resources/Images/Products"); public ImageProvider( ProductProvider ProductProvider) { this.ProductProvider = ProductProvider; this.DefaultQualityEncoder.Param[0] = new EncoderParameter(Encoder.Quality, 80L); this.HighQualityEncoder.Param[0] = new EncoderParameter(Encoder.Quality, 100L); } public void Crop( string FileName, Image Image, Crop Crop) { using (Bitmap Source = new Bitmap(Image)) { using (Bitmap Target = new Bitmap(Crop.Width, Crop.Height)) { using (Graphics Graphics = Graphics.FromImage(Target)) { Graphics.CompositingMode = CompositingMode.SourceCopy; Graphics.CompositingQuality = CompositingQuality.HighQuality; Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; Graphics.SmoothingMode = SmoothingMode.HighQuality; Graphics.DrawImage(Source, new Rectangle(0, 0, Target.Width, Target.Height), new Rectangle(Crop.Left, Crop.Top, Crop.Width, Crop.Height), GraphicsUnit.Pixel); }; Target.Save(FileName, JpegCodecInfo, HighQualityEncoder); }; }; } public void CropAndResize( Product Product, Crop Crop) { using (Image Temp = Image.FromFile(String.Format("{0}/{1}.temp", Path, Product.ProductId))) { Img Img = new Img(); this.ProductProvider.AddImageAndSave(Product, Img); this.Crop(String.Format("{0}/{1}.cropped", Path, Img.ImageId), Temp, Crop); using (Image Cropped = Image.FromFile(String.Format("{0}/{1}.cropped", Path, Img.ImageId))) { this.Resize(String.Format("{0}/{1}-L.jpg", Path, Img.ImageId), this.Sizes[0], Cropped, HighQualityEncoder); this.Resize(String.Format("{0}/{1}-T.jpg", Path, Img.ImageId), this.Sizes[1], Cropped, HighQualityEncoder); this.Resize(String.Format("{0}/{1}-S.jpg", Path, Img.ImageId), this.Sizes[2], Cropped, HighQualityEncoder); }; }; this.Purge(Product); } public void QueueFor( Product Product, Size Size, HttpPostedFileBase PostedFile) { using (Image Image = Image.FromStream(PostedFile.InputStream)) { this.Resize(String.Format("{0}/{1}.temp", Path, Product.ProductId), Size, Image, HighQualityEncoder); }; } private void Purge( Product Product) { string Temp = String.Format("{0}/{1}.temp", Path, Product.ProductId); if (File.Exists(Temp)) { File.Delete(Temp); }; foreach (Img Img in Product.Imgs) { string Cropped = String.Format("{0}/{1}.cropped", Path, Img.ImageId); if (File.Exists(Cropped)) { File.Delete(Cropped); }; }; } public void Resize( string FileName, Size Size, Image Image, EncoderParameters EncoderParameters) { if (Size.Height == 0) { Size.Height = (int)(Image.Height / ((float)Image.Width / (float)Size.Width)); }; using (Bitmap Bitmap = new Bitmap(Size.Width, Size.Height)) { using (Graphics Graphics = Graphics.FromImage(Bitmap)) { Graphics.CompositingMode = CompositingMode.SourceCopy; Graphics.CompositingQuality = CompositingQuality.HighQuality; Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; Graphics.SmoothingMode = SmoothingMode.HighQuality; Graphics.DrawImage(Image, new Rectangle(0, 0, Size.Width, Size.Height)); }; Bitmap.Save(FileName, JpegCodecInfo, EncoderParameters); }; } } } ``` This image shows the "ghosting" outline pointed to by red arrows. ![alt text](https://i.stack.imgur.com/jTRA8.jpg)
Ghostly outline around image after resize
CC BY-SA 2.5
0
2010-12-21T05:19:24.890
2010-12-23T02:27:19.220
2010-12-21T23:25:26.790
188,081
188,081
[ "c#", ".net", "image", "resize", "scale" ]
4,496,697
1
4,496,754
null
111
110,192
I often see files named 'blabla.exe:Zone.Identifier' when monitoring I/O with Process Monitor. The files are seen on network-drives. ![alt text](https://i.stack.imgur.com/92l8S.png) - `Zone.Identifier`- - -
What are `Zone.Identifier` files, and how do I prevent them from being created?
CC BY-SA 4.0
0
2010-12-21T06:11:46.597
2022-12-20T13:56:26.763
2022-01-23T02:08:21.487
326,242
252,047
[ "windows", "file-io", "filesystems", "smb", "network-drive" ]
4,496,794
1
null
null
7
353
Long story short, I'm making a platform game. I'm not old enough to have taken Calculus yet, so I know not of derivatives or integrals, but I know of them. The desired behavior is for my character to automagically jump when there is a block to either side of him that is above the one he's standing on; for instance, stairs. This way the player can just hold left / right to climb stairs, instead of having to spam the jump key too. The issue is with the way I've implemented jumping; I've decided to go mario-style, and allow the player to hold 'jump' longer to jump higher. To do so, I have a 'jump' variable which is added to the player's Y velocity. The jump variable increases to a set value when the 'jump' key is pressed, and decreases very quickly once the 'jump' key is released, but decreases less quickly so long as you hold the 'jump' key down, thus providing continuous acceleration up as long as you hold 'jump.' This also makes for a nice, flowing jump, rather than a visually jarring, abrupt acceleration. So, in order to account for variable stair height, I want to be able to calculate exactly what value the 'jump' variable should get in order to jump exactly to the height of the stair; preferably no more, no less, though slightly more is permissible. This way the character can jump up steep or shallow flights of stairs without it looking weird or being slow. There are essentially 5 variables in play: ``` h -the height the character needs to jump to reach the stair top<br> j -the jump acceleration variable<br> v -the vertical velocity of the character<br> p -the vertical position of the character<br> d -initial vertical position of the player minus final position<br> Each timestep:<br> j -= 1.5; //the jump variable's deceleration<br> v -= j; //the jump value's influence on vertical speed<br> v *= 0.95; //friction on the vertical speed<br> v += 1; //gravity<br> p += v; //add the vertical speed to the vertical position<br> v-initial is known to be zero<br> v-final is known to be zero<br> p-initial is known<br> p-final is known<br> d is known to be p-initial minus p-final<br> j-final is known to be zero<br> j-initial is unknown<br> ``` Given all of these facts, how can I make an equation that will solve for j? tl;dr How do I Calculus? Much thanks to anyone who's made it this far and decides to plow through this problem. Edit: Here's a graph I made of an example in Excel. ![alt text](https://i.stack.imgur.com/mTwff.png) I want an equation that will let me find a value for A given a desired value for B. Since the jump variable decreases over time, the position value isn't just a simple parabola.
Calculus? Need help solving for a time-dependent variable given some other variables
CC BY-SA 2.5
0
2010-12-21T06:30:48.547
2010-12-23T15:37:35.693
2010-12-21T19:58:06.273
451,527
451,527
[ "math", "variables", "calculus" ]
4,496,769
1
4,620,610
null
4
10,042
Greetings, Well I am bewildered. I have been tasked with updating a PHP script that uses the BulkAPI to upsert some data into the Opportunity entity. This is all going well except that the Bulk API is returning this error for some clearly defined custom fields: ``` InvalidBatch : Field name not found : cv__Acknowledged__c ``` And similar. I thought I finally found the problem when I discovered the WSDL version I was using was quite old (Partner WSDL). So I promptly regenerated the WSDL. Only problem? Enterprise, Partner, etc....all of them...do not include these fields. They're all coming from the Common Ground package and start with cv_ I even tried to find them in the object explorer in Workbench as well as the schema explorer in Force.com IDE. So, please...lend me your experience. How can I update these values? Thanks in advance! Clif ![alt text](https://i.stack.imgur.com/RAwAE.png) ![alt text](https://i.stack.imgur.com/XljAX.png) ![alt text](https://i.stack.imgur.com/pKPqK.png) ``` require_once 'soapclient/SforcePartnerClient.php'; require_once 'BulkApiClient.php'; $mySforceConnection = new SforcePartnerClient(); $mySoapClient = $mySforceConnection->createConnection(APP.'plugins'.DS.'salesforce_bulk_api_client'.DS.'vendors'.DS.'soapclient'.DS.'partner.wsdl.xml'); $mylogin = $mySforceConnection->login('[email protected]', 'redactedSessionredactedPassword'); $myBulkApiConnection = new BulkApiClient($mylogin->serverUrl, $mylogin->sessionId); $job = new JobInfo(); $job->setObject('Opportunity'); $job->setOpertion('upsert'); $job->setContentType('CSV'); $job->setConcurrencyMode('Parallel'); $job->setExternalIdFieldName('Id'); $job = $myBulkApiConnection->createJob($job); $batch = $myBulkApiConnection->createBatch($job, $insert); $myBulkApiConnection->updateJobState($job->getId(), 'Closed'); $times = 1; while($batch->getState() == 'Queued' || $batch->getState() == 'InProgress') { $batch = $myBulkApiConnection->getBatchInfo($job->getId(), $batch->getId()); sleep(pow(1.5, $times++)); } $batchResults = $myBulkApiConnection->getBatchResults($job->getId(), $batch->getId()); echo "Number of records processed: " . $batch->getNumberRecordsProcessed() . "\n"; echo "Number of records failed: " . $batch->getNumberRecordsFailed() . "\n"; echo "stateMessage: " . $batch->getStateMessage() . "\n"; if($batch->getNumberRecordsFailed() > 0 || $batch->getNumberRecordsFailed() == $batch->getNumberRecordsProcessed()) { echo "Failures detected. Batch results:\n".$batchResults."\nEnd batch.\n"; } ``` And lastly, an example of the CSV data being sent: ``` "Id","AccountId","Amount","CampaignId","CloseDate","Name","OwnerId","RecordTypeId","StageName","Type","cv__Acknowledged__c","cv__Payment_Type__c","ER_Acknowledgment_Type__c" "#N/A","0018000000nH16fAAC","100.00","70180000000nktJ","2010-10-29","Gary Smith $100.00 Single Donation 10/29/2010","00580000001jWnq","01280000000F7c7AAC","Received","Individual Gift","Not Acknowledged","Credit Card","Email" "#N/A","0018000000nH1JtAAK","30.00","70180000000nktJ","2010-12-20","Lisa Smith $30.00 Single Donation 12/20/2010","00580000001jWnq","01280000000F7c7AAC","Received","Individual Gift","Not Acknowledged","Credit Card","Email" ```
Why can't I update these custom fields in Salesforce?
CC BY-SA 2.5
0
2010-12-21T06:25:44.223
2011-01-06T22:28:58.830
2011-01-05T14:47:16.187
334,457
334,457
[ "salesforce" ]
4,496,873
1
5,289,654
null
1
910
I am using this jquery ui for the slider.here i want the gradescales like in the image for the jquery-ui-slider...how to modify this script? ![alt text](https://i.stack.imgur.com/rxXtx.png) how do this in this script? ``` <script src="../../Scripts/jquery.ui.core.js" type="text/javascript"></script> <script src="../../Scripts/jquery.ui.widget.js" type="text/javascript"></script> <script src="../../Scripts/jquery.ui.mouse.js" type="text/javascript"></script> <script src="../../Scripts/jquery.ui.slider.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("#slider").slider(); }); </script> ```
Jquery slider with gradescales values
CC BY-SA 2.5
0
2010-12-21T06:48:50.550
2011-03-13T13:30:48.397
2010-12-21T07:45:55.053
422,570
422,570
[ "jquery-ui", "slider" ]
4,496,922
1
4,497,102
null
-1
706
I am new developer in iPhone. I want to create uibutton. When I click the button, then the button will be flash like as below. ![alt text](https://i.stack.imgur.com/pkpRK.png) How to create the flash, when I click my button?
UIButton animation view
CC BY-SA 3.0
0
2010-12-21T06:58:59.197
2017-11-01T15:46:25.520
2017-11-01T15:46:25.520
472,495
409,571
[ "iphone", "objective-c", "ios" ]
4,497,326
1
4,501,994
null
8
529
I need your advice on the best way to implement a scrollable playing field in a simple game. The field consists of multiple rows, with 9 cells in each row. The rows can be dynamically added and removed during the course of the game. Each cell has a digit in it, and optionally several overlayed images, like selection, selector over, crossed out, etc. (see the pic below). The user should be able to click on individual cells of a row to select/deselect/cross the touched cells. At any point in the game there can be from 0 to 3000 cells (0 to about 333 rows). The field should scroll up and down smoothly. ![alt text](https://i.stack.imgur.com/M9whp.png) I was thinking about having a ListView with its each row being a row on the field. That way i could add/remove rows dynamically during the game. However, how exactly should i implement a row: have one bitmap representing a row, and then when the user touches it -- get the coordinates of the touch area, and find out what cell was affected, and then act upon that. Is it possible to get the touch coordinates of a row in ListView? If not, should I place 9 dummy image placeholders in each row, and then act on user touching those? What about performance? Or should I have one huge bitmap / canvas representing the entire field, place it inside a ScrollView and then calculate all the coordinates and update it as the user interacts with it? Is it going to be faster or slower than the ListView? Any other solutions? I prefer it to be a "regular" app type game, not a loop-based game, as I don't think I really need to redraw 30 times a second. I am pretty new to Android. Thank you for your suggestions.
Design decisions / advice for a simple game on Android
CC BY-SA 2.5
0
2010-12-21T08:14:21.843
2015-02-23T21:05:14.107
2010-12-21T08:47:12.720
58,038
58,038
[ "android" ]
4,497,491
1
4,497,536
null
0
616
I'm using flash in a few of my websites for displaying a slideshow. This is the code I use in [splendor-bg.com](http://splendor-bg.com) : ``` <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="740" height="450" id="tech" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="splendor-bg.swf?xml_path=slides.xml" /> <param name="quality" value="high" /> <embed src="splendor-bg.swf?xml_path=slides.xml" quality="high" width="720" height="430" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> ``` I can see it on my computer in internet explorer just fine (I must have installed something that is needed, or set up IE in some way, I guess).. but its not working on quite a few other computers I've tested it on - this is what they see: ![Flash not working](https://i.stack.imgur.com/E3Xpr.png) Does anyone have an idea on how to fix this? Either a message of something that needs to be installed should be shown to the user, or something in the code itself.. Any help will be greatly appreciated!
IE 8 flash not displaying
CC BY-SA 2.5
null
2010-12-21T08:38:05.013
2010-12-21T08:45:50.660
null
null
259,989
[ "html", "flash" ]
4,497,675
1
null
null
0
1,394
I am facing interoperability issues in IE7 and Firefox. li elements height is somewhat more in IE than Firefox. Here is the attached image for more clarity. ![interop](https://i.stack.imgur.com/eJb9h.jpg) [http://img225.imageshack.us/i/interop.jpg/](http://img225.imageshack.us/i/interop.jpg/) Code for html and CSS: ``` <ul class="sa-progress"> <li class="sa-progress-current"><span id="intro_idx" >Select VPN Type</span></li> <li class="sa-progress-default"><span id="local_idx" >Local</span></li> <li class="sa-progress-default"><span id="remote_idx" >Remote</span></li> <li class="sa-progress-default"><span id="vpn_idx" >VPN</span></li> <li class="sa-progress-default"><span id="remote_dyn_idx" >Remote Users</span></li> <li class="sa-progress-default"><span id="traffic_idx" >Traffic Profile</span></li> <li class="sa-progress-default"><span id="review_idx" >Review &amp; Commit</span></li> </ul> ul.sa-progress { color: #333333; line-height: normal; padding: 7px 0 10px 10px; } ul.sa-progress { font-size: 12px; } ``` Please let me know what am missing here. Any help would be greatly appreciated. Thanks
ul li elements have more space in between in IE than firefox
CC BY-SA 3.0
null
2010-12-21T09:06:47.407
2011-12-01T07:55:44.500
2011-12-01T07:55:44.500
557,612
549,688
[ "html", "css", "internet-explorer", "firefox", "cross-browser" ]
4,497,671
1
4,538,026
null
9
24,474
I am trying to read information off of a smartcard, using a contact-less OmniKey 5321 card reader. : Added a bounty. I'm writing a C# 3 in .NET 3.5 program, so this is a Windows application. The card has some information stamped onto it, that I would assume, in some way, is present in the card data (there is a photo of the card and reader below.) The card has the following information stamped onto it: When using the Diagnostics application that comes with the OmniKey card reader, I get the following information: Now, here's some conversions I've considered: - - - - Here's my questions: - - Here's the photo, if that gives you any information. ![OmniKey reader back with card](https://i.stack.imgur.com/eKVZk.jpg)
Contact-less card through an OmniKey, how to get "UID"?
CC BY-SA 2.5
0
2010-12-21T09:05:51.490
2023-02-24T15:10:13.307
2018-05-25T08:38:02.830
2,425,802
267
[ "smartcard", "uniqueidentifier", "smartcard-reader", "winscard", "iso-15693" ]
4,498,034
1
4,498,064
null
0
1,439
![alt text](https://i.stack.imgur.com/S6wTq.png) if booking closed column values is equal or more than textbox1 text then the book button in gridview will be disabled for each gridview item whose booking closed time is greater and equal to textbox1 time .. How to do that ? M using VS 2008 and vb
how to disabled each items in gridview according to the textbox text?
CC BY-SA 2.5
null
2010-12-21T10:00:28.760
2010-12-21T10:29:39.473
null
null
522,211
[ "asp.net", "vb.net" ]
4,498,170
1
4,498,232
null
0
224
I've no experience in making something move in my app. And I observed this effect in Flickit Pro. The view will shake for one or two second and then stop. It looks cute and very user-friendly. So how can I make effects like this? A gif that is moving? Or some other methods with the help of Cocoa Touch? Thanks in advance. Di ![alt text](https://i.stack.imgur.com/uQe8k.jpg)
A view that is moving
CC BY-SA 2.5
null
2010-12-21T10:15:34.963
2010-12-21T11:31:58.000
null
null
544,504
[ "iphone", "objective-c", "cocoa-touch", "animation" ]
4,498,375
1
4,498,425
null
0
544
I want to add UITableView on top of UIView. Here's an image ![the image](https://i.stack.imgur.com/aOfM3.png) of what exactly i want to do. Sample code link/tutorial is appreciated. Thanks
Adding UITableView on top of UIView
CC BY-SA 2.5
null
2010-12-21T10:37:26.747
2010-12-21T10:44:03.363
2010-12-21T10:40:15.817
165,260
315,594
[ "iphone", "objective-c", "uitableview", "uiview" ]
4,498,559
1
4,498,604
null
0
177
![alt text](https://i.stack.imgur.com/fs0Ck.png) I have TextBox1 whose Default text is Sumit and a gridview with records and button field in each row .. On Page load event I want if textbox1 text is Sumit .... then all the records in gridview1 whose name column values is sumit .... then that rows Book button will be disabled and rest of all will be remain as it is in Enableed form ... i m using Visual Studio 2008 with vb Is this coding is right : ? ``` Protected Sub GridView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.DataBound For Each myRow As GridViewRow In GridView1.Rows 'Find the checkbox Dim lab1 As Label = DirectCast(myRow.FindControl("Label1"), Label) If lab1.Text = "Sumit" Then 'Find the Delete linkbutton and hide it Dim deleteButton As Button = DirectCast(myRow.FindControl("Button1"), Button) deleteButton.Enabled = False End If Next End Sub ``` But this coding doesn't disabled the button .... in rows whose name field is Sumit
Disabled all the records book button in gridview1 whose name column values is sumit?
CC BY-SA 2.5
null
2010-12-21T11:01:15.293
2010-12-21T11:13:44.830
2010-12-21T11:13:44.830
522,211
522,211
[ "asp.net", "vb.net" ]
4,498,697
1
4,498,777
null
0
2,652
I am looking for a way to show the browser's download dialog page when a user clicks on the download button. This is my HTML - ``` <span id="ajaxdownloadcontent" class="ajaxaction ajaxbutton" onclick="javascript:AjaxDownloadContent('http://localhost/ajax/download/pic/12')"> Download </span> ``` My Javascript - ``` function AjaxDownloadContent(path) { $.post(path); } ``` My controller, AjaxController.php - ``` class AjaxController extends Zend_Controller_Action { public function init() { if ($this->getRequest()->isXmlHttpRequest()) { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(TRUE); } } public function downloadAction() { if ($this->getRequest()->isXmlHttpRequest()) { $this->getResponse() ->clearAllHeaders() ->setHeader('Content-Disposition', 'attachment;filename="Google_Logo.gif"') ->sendHeaders() ->setBody(file_get_contents("http://www.google.com/logos/logo.gif")) ->sendResponse(); return true; } ``` This is how the headers look like in firebug (Note that content type has been changed to text/html) ![alt text](https://i.stack.imgur.com/CT38x.png) I think this is because of the following code in the bootstrap. ``` public static function sendResponse(Zend_Controller_Response_Http $response) { if (!headers_sent ()) { $response->setHeader('Content-Type', 'text/html; charset=UTF-8', true); } $response->sendResponse(); } ``` And finally the HTML response looks like something below - ![alt text](https://i.stack.imgur.com/pMm52.png)
How to force download a file over AJAX in Zend Framework?
CC BY-SA 2.5
null
2010-12-21T11:22:55.480
2010-12-21T11:33:09.310
null
null
184,184
[ "php", "zend-framework", "download" ]
4,498,817
1
4,499,050
null
1
422
I would like to implement a sort of AddressBook like the one in outlook as in the following picture ![alt text](https://i.stack.imgur.com/4SRZH.png) Can somebody help with markup and style for the address card?
AddressBook like Outlook
CC BY-SA 2.5
null
2010-12-21T11:36:31.837
2011-01-10T12:50:03.470
null
null
479,531
[ "html", "css", "addressbook" ]
4,498,918
1
4,546,163
null
8
4,330
I have some text laid out using Core Text in my iPhone app. I'm using `NSAttributedString` to set certain styles within the text for given ranges. I can't seem to find an attribute for setting a background / highlight colour, though it would seem it is possible. I couldn't find an attribute name constant that sounded relevant and the documentation only lists: ``` kCTCharacterShapeAttributeName kCTFontAttributeName kCTKernAttributeName kCTLigatureAttributeName kCTForegroundColorAttributeName kCTForegroundColorFromContextAttributeName kCTParagraphStyleAttributeName kCTStrokeWidthAttributeName kCTStrokeColorAttributeName kCTSuperscriptAttributeName kCTUnderlineColorAttributeName kCTUnderlineStyleAttributeName kCTVerticalFormsAttributeName kCTGlyphInfoAttributeName kCTRunDelegateAttributeName ``` Craig Hockenberry, developer of Twitterrific has said publicly on Twitter that he uses Core Text to render the tweets, and Twitterrific has this background / highlight that I'm talking about when you touch a link. ![alt text](https://i.stack.imgur.com/knxLx.png) Any help or pointers in the right direction would be fantastic, thanks. Here's a [link to the tweet](http://twitter.com/chockenberry/status/15078309180215296) Craig posted mentioning "Core text, attributed strings and a lot of hard work", and the [follow up](http://twitter.com/chockenberry/status/15080379799052289) that mentioned using CTFrameSetter metrics to work out if touches intersect with links.
Setting the background colour/highlight colour for a given string range using Core Text
CC BY-SA 2.5
0
2010-12-21T11:48:37.493
2012-12-05T22:25:24.617
2010-12-21T12:09:16.873
76,559
76,559
[ "iphone", "ios", "highlight", "nsattributedstring", "core-text" ]
4,499,218
1
null
null
7
5,060
I'm trying to use ImageMagick Magick++ for a C++ Project in VS2010. I installed the Library from here: [klick](https://www.imagemagick.org/script/download.php) Then in my Project, I added c:/program files/ImageMagick-6.6.6-Q16/include to the include folders. Then I tried to use Magick++ with this code: ``` #include <Magick++.h> void main(int argc, char ** argv){ InitializeMagick(*argv); } ``` But this does not work! VS2010 returns the following errors: ``` error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z) error LNK1120: 1 unresolved externals ``` What am I doing wrong? Thanks very much for your help! Set Linker -> Input -> Additionnal Dependencies to: ``` kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;CORE_RL_Magick++_.lib ``` And Linker -> General -> Additionnal Library Directories to: ``` C:\Program Files\ImageMagick-6.6.6-Q16\lib ``` It still results in the same error... Opening the .lib files in C:\Program Files\ImageMagick-6.6.6-Q16\lib results in this error: ![alt text](https://i.stack.imgur.com/KuHT2.png) CORE_RL_Magick++_.lib does contain ?InitializeMagick@Magick@@YAXPEBD@Z, but not ?InitializeMagick@Magick@@YAXPBD@Z. Does this mean the .lib file is corrupted? I solved my problem by manually compliling the .lib files. Thanks to all!
Magick++ in VS2010 - unresolved external symbol
CC BY-SA 4.0
null
2010-12-21T12:26:56.050
2020-12-04T17:47:53.960
2020-12-04T17:47:53.960
4,751,173
461,872
[ "c++", "visual-studio-2010", "imagemagick", "unresolved-external", "magick++" ]
4,499,433
1
4,499,768
null
6
22,793
I have defined a xml layout with the DatePicker widget as follows: ``` <DatePicker android:id="@+id/SelectDate" android:layout_marginTop="10dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center|center_horizontal|center_vertical"> </DatePicker> ``` and it is being displayed in `mm/dd/yyyy` format, as below: ![alt text](https://i.stack.imgur.com/GExav.png) but `how can I display the DatePicker widget in (dd/mm/yyyy) format,` as below? ![alt text](https://i.stack.imgur.com/gQ3EP.png)
DatePicker Widget Format
CC BY-SA 3.0
0
2010-12-21T12:52:20.030
2013-10-24T19:47:20.043
2012-11-09T13:17:55.887
469,983
379,693
[ "android" ]
4,499,473
1
4,499,779
null
24
38,521
I have a TextBox in which I validate the input with a third party library. However, this library throws custom exceptions when the syntax is incorrect. This is not a real big deal, except for when you are debugging. When debugging, since the text in the TextBox will always be initially wrong (I am still typing it), the debugger will stop after each letter until it is correct, which is really annoying as I validate with each letter. `Common Language Runtime Exceptions` P.P.S. Using Visual Studio 2010. ![For the non-believers](https://i.stack.imgur.com/lCgfx.png) In the end I was very close with my PS. It was a pretty silly mistake: I had a typo in the namespace. Thanks to Pop Catalin and Madhur Ahuja for pointing it out!
How to tell the debugger to ignore breaking on thrown exceptions?
CC BY-SA 2.5
0
2010-12-21T12:58:07.673
2014-05-11T13:05:22.433
2010-12-21T14:17:32.767
900
900
[ "c#", "visual-studio-2010", "exception", "debugging" ]
4,499,728
1
4,500,140
null
7
2,408
I'm trying to get to grips with drawing (fairly basic) shapes in Cocoa. I understand how to create paths with straight edges (duh!), but when it comes to doing curves, I just can't get my head around what inputs will produce what shaped curve. Specifically, I have no idea how the `controlPoint1:` and `controlPoint2:` arguments to the method influence the shape. I'm trying to approximate the shape of a tab in Google Chrome: ![Google Chrome Tab](https://i.stack.imgur.com/DV2fq.png) And the code I'm using is: ``` -(void)drawRect:(NSRect)dirtyRect { NSSize size = [self bounds].size; CGFloat height = size.height; CGFloat width = size.width; NSBezierPath *path = [NSBezierPath bezierPath]; [path setLineWidth:1]; [path moveToPoint:NSMakePoint(0, 0)]; [path curveToPoint:NSMakePoint(width * 0.1, height) controlPoint1:NSMakePoint(width * 0.05, height) controlPoint2:NSMakePoint(width * 0.03, height * 0.05)]; [path lineToPoint:NSMakePoint(width * 0.9, height)]; [path curveToPoint:NSMakePoint(width, 0) controlPoint1:NSMakePoint(width * 0.95, height) controlPoint2:NSMakePoint(width * 0.97, height * 0.05)]; [path closePath]; [[NSColor colorWithCalibratedWhite:0.98 alpha:1] set]; [path fill]; [[NSColor colorWithCalibratedWhite:0.6 alpha:1] set]; [path stroke]; } ``` I'm failing horribly. See, this is why we can't have nice things :( ![My Attempt](https://i.stack.imgur.com/ZdbPf.png) Can anyone give me some pointers about how to think when it comes to drawing curves? An example that draws this path would be great too, but really it's just understanding these inputs to `curveToPoint:controlPoint1:controlPoint2:` that's holding me back. UPDATE | Thanks to @Ahruman's answer I finally got it to start taking shape. It's not 100% (missing the curves on the bottom corners, but it's actually a symmetrical shape at least now :) ![Getting there](https://i.stack.imgur.com/cJ4GQ.png)
Having a hard time understanding NSBezierPath's curveToPoint: method
CC BY-SA 2.5
0
2010-12-21T13:27:04.903
2015-03-21T20:10:39.933
2010-12-21T15:04:43.240
322,122
322,122
[ "objective-c", "cocoa", "macos", "quartz-graphics" ]
4,499,877
1
null
null
0
451
The open source game [Glest](http://glest.org) has models that feel detached from the ground that they sit on because of the hard edges. In real life, grass is not flat! What are the options and recommendations for breaking up the hard edges where the meshes of the models meet the terrain? How do other games do it? What are the options on a sliding scale of rendering performance? ![A screenshot from glest](https://i.stack.imgur.com/QRT8c.jpg)
game models that stand in grass
CC BY-SA 2.5
null
2010-12-21T13:44:57.460
2010-12-21T19:22:30.517
null
null
15,721
[ "opengl", "graphics" ]
4,499,961
1
null
null
0
317
I have an input text in a form that has a problem in MSIE7. When the text field is filled and I continue typing, the background starts scrolling left along with the text. This is the form when the text field is filled ![enter image description here](https://i.stack.imgur.com/oDSGR.jpg) The background image, a white rectangle with rounded corners, scrolls left with the text, leaving the black background. This is the CSS for this text field: ``` border: none; background: url('/wp-content/themes/pokerbuddy/images/field.png') top left no-repeat; width: 100px; height: 20px; padding: 0px; font-size: 80%; color: #399; display:inline; ``` Is there any way to solve this in MSIE7?
CSS bug in text input field - MSIE7
CC BY-SA 3.0
null
2010-12-21T13:53:41.597
2014-02-01T07:58:29.660
2014-02-01T07:58:29.660
3,030,434
549,984
[ "html", "css", "forms", "input" ]
4,500,134
1
4,845,935
null
13
1,821
Hello I am a big fan of Git and Hg and have to use them both on many projects. I currently use Posh-Hg, which is a powershell plugin that places the current branch and outstanding commit right in your powershell. Posh-Git operates in a similar manner except for Git. Has anyone successfully gotten the two powershell scripts to play nice together? [http://poshhg.codeplex.com/](http://poshhg.codeplex.com/) [http://github.com/dahlbyk/posh-git](http://github.com/dahlbyk/posh-git) ![alt text](https://i.stack.imgur.com/hxRlG.png)
Posh-Git and Posh-Hg Together?
CC BY-SA 2.5
0
2010-12-21T14:11:21.060
2013-02-21T21:18:33.510
null
null
86,411
[ "git", "powershell", "mercurial", "console" ]
4,500,165
1
10,252,967
null
11
10,988
I have a small MVC 3 app - bit of a demo ground. I have one area and thats been working fine. I have just added another area expecting to just spin up the app and it work - but no, 404 - The resource cannot be found. The map route in the AreaRegistration is the default (as is the first area i created). ``` public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "Postcard_default", "Postcard/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional } ); } ``` I have tried adding in a specific controller into this, but nothing. So I downloaded Phil Haack's RouteDebugger and my route is found when typing in [http://server/Postcard/Create](http://server/Postcard/Create) (which is where I am trying to get too) Structure of the Area ![alt text](https://i.stack.imgur.com/IbNCE.png) My controller ``` public class CreateController : Controller { private ILogger Logger { get; set; } private ICardSender Emailer { get; set; } private IOCCardRepository CardRepository { get; set; } public CreateController(ILogger logger, ICardSender cardSender, IOCCardRepository repository) { this.Logger = logger; this.Emailer = cardSender; this.CardRepository = repository; } // // GET: /Postcard/Create/ public ActionResult Index() { var model = new OCPostcardModel().Create(); return View(model); } ``` NOW: I have since deleted the entire area, tried again it didn't work. So I added in the specific controller in the route (Inside AreaRegistration file) ``` context.MapRoute( "Postcard_default", "Postcard/{controller}/{action}/{id}", new { controller = "Create", action = "Index", id = UrlParameter.Optional } ); ``` And its working...I don't know why it didn't work when I did this before, but it is now. Still curious though as I've not seen anyone add in this controller into route in any of the demo's i've looked at - and I haven't got it in my other area?
MVC 3 - New Area - 404 error - Resource not found - have tried route debugger
CC BY-SA 2.5
0
2010-12-21T14:14:24.740
2017-08-14T18:34:06.313
2010-12-22T13:27:26.947
6,125
6,125
[ "asp.net-mvc", "model-view-controller", "routes", "http-status-code-404", "asp.net-mvc-3" ]
4,500,547
1
null
null
0
291
![alt text](https://i.stack.imgur.com/W3tam.jpg) Each box is a click-able label which toggles the color when clicking. The total number of labels is dynamical. How to create such a grid view with pure actionscript 3?
How to create such a gridview like below with Actionscript 3?
CC BY-SA 2.5
null
2010-12-21T14:56:47.833
2010-12-21T17:03:15.940
null
null
522,431
[ "actionscript-3", "gridview" ]
4,500,621
1
4,508,537
null
0
27
Can someone help? Hi i am having issues with my urls when i use rank checker i get lots off script coming through when the website is indexed. here is a screenshot i have hovered over one off the url to show all the information coming through with it. ![alt text](https://i.stack.imgur.com/t6vI4.jpg) I have no idea why this might be happening Any help please?
Errors on urls Lots of extra information
CC BY-SA 2.5
null
2010-12-21T15:03:42.873
2010-12-22T11:09:16.237
null
null
509,779
[ "url", "seo" ]
4,500,746
1
4,500,897
null
1
1,701
I have a combobox, and based on the current selection, I would like dynamic text to appear beside the combobox. My current solution works, but seems kludgy and fragile. It may not work at all depending on where the combobox appears in the DOM. Here is the crux of my current solution (called when dropdown changes): ``` var child = owner.el.first().next().first().first().first().next().first(); if (child.dom.childNodes.length == 3) { child.createChild({ tag: 'span', html: c + Ext.id() }); } else { child.last().replaceWith({ tag: 'span', html: c + Ext.id() }); } ``` I'm mostly concerned about the first line...this can't be a good way of finding an insertion point. Here is a pic of the combo box with the dynamic text appearing beside: ![alt text](https://i.stack.imgur.com/jrFcZ.jpg) And here is what I looked at to find where I wanted to insert the text: ![alt text](https://i.stack.imgur.com/MNBTp.jpg) Can someone suggest a better way of achieving this effect? Thanks.
Is there a better way to have dynamic text appear next to a combobox?
CC BY-SA 2.5
0
2010-12-21T15:17:20.923
2010-12-21T17:00:56.380
null
null
429,982
[ "extjs" ]
4,500,990
1
4,507,390
null
1
783
I'm doing an application in Django that has a small map in the user profile (provided by django-profile, but modified to use GMaps v3) The thing is that any coordinate I put in the constructor it's represented wrong in the map. Currently I'm putting the coordinates of Santiago de Compostela (spain) at Lat. 42.88 and Long. -8.55 but Google maps keeps telling me that I'm in Bayingolin (China). Bythe way, the same happens with Google Maps v2, it locates the coordinates wrong. Here's the code: ``` {% block content %} {% if GOOGLE_MAPS_API_KEY and user.get_profile.location %} <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <meta name="viewport" content="initial-scale=1.0, user-scalable=yes"> <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng( {{ user.get_profile.latitude }}, {{ user.get_profile.longitude }} ); var opts = { zoom: 10, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("location"), opts); var marker = new google.maps.Marker({ position: latlng, map: map, title: "Test" }); } </script> {% endif %} <div id="profile"> <div id="profile_right"> <div id="avatar" class="span-3 center"> <a href="{% url profile_edit_avatar %}"> <img class="border" src="/static/generic.96.jpg" /> </a> <p><a href="{{ request.path_info }}edit/avatar/">{% if user.get_profile.has_avatar %}{% trans "Change avatar" %}{% else %}{% trans "Add avatar" %}{% endif %}</a></p> </div> <div> <p>{% trans "Username: " %} {{ user }}</p> <p>{% trans "Real name: " %} {{ user.first_name }} {{ user.last_name }}</p> <p>{% trans "Age: " %} {{ user. }} <p>{% trans "Member for: " %} {{ user.date_joined }}</p> <p>{% trans "E-mail:" %} <span class="{% if not email or not validated %}quiet red{% endif %}"> {%if not email %} {% trans "Not set yet" %} {% else %} {{ email }} {% if not validated %} {% trans " (Not validated)" %} {% endif %} {% endif %} </span> </p> <p> <label for="location">{% trans "Country" %}:</label> {% if user.get_profile.country %} {{ user.get_profile.get_country_display }} {% else %} <span class="quiet red">{% trans "Not set" %}</span> {% endif %} </p> <p> {% trans "Ciudad: " %} {{ user.get_profile.province }} </p> </div> </div> <div id="profile_left"> {% if GOOGLE_MAPS_API_KEY %} <p>{% trans "Location" %}: {% if user.get_profile.location %} {{ user.get_profile.location }} {% else %} {% trans "Not set" %} {% endif %} </p> {% endif %} {% if user.get_profile.location %} <div class="span-12 last"> <div id="location" style="width: 480px; height: 240px;"></div> </div> {% endif %} </div> </div> ``` Here is a screenshot with the result: ![alt text](https://i.stack.imgur.com/DT3Ur.png)
Google Maps v3 wrong positioning
CC BY-SA 2.5
null
2010-12-21T15:39:35.903
2010-12-22T08:26:41.123
2010-12-21T15:58:20.863
270,293
270,293
[ "django", "api", "google-maps", "django-templates" ]
4,501,424
1
4,501,756
null
20
8,302
Is there any way of sharing column widths between controls, not just between multiple grids on the same control? Crude diagram of what I'm trying to get at: ![alt text](https://i.stack.imgur.com/JmZmY.png) I'm currently messing around with getting the widths of the labels in the first column of each UserControl, but it seems a messy solution that is quite CPU heavy (finding the labels and calculating the widths of the text before it's rendered is nasty!). I've been reading up on as much about SharedSizeGroups as I can find, but there's nothing suggesting they work across different controls. Is there a simple solution or even a less simple one that isn't utterly hideous?!
Sharing Column Widths Between Multiple WPF Controls
CC BY-SA 2.5
0
2010-12-21T16:21:30.737
2010-12-22T12:01:57.030
null
null
128,837
[ "wpf" ]
4,501,671
1
4,507,409
null
1
1,323
I am executing Javascript code from an AJAX call like this: ``` function loadViewViaAjax(url) { 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]); } } }); } ``` And I send parameters in the URL like this: ![alt text](https://i.stack.imgur.com/8lVac.png) I get the values like this with PHP and Javascript: ``` alert('the URL from PHP: [<?php echo $_SERVER["REQUEST_URI"]; ?>]'); alert('the URL from javascript: [' + window.location.href + ']'); ``` While PHP gives me the request URI so I have access to the URL variables (also via $_GET): ![alt text](https://i.stack.imgur.com/axICU.png) I cannot get the URL variables with Javascript by reading the `window.location.href` since it is the URL of the parent page instead of the AJAX call: ![alt text](https://i.stack.imgur.com/FxS6m.png)
How to get URL variables from AJAX call in Javascript?
CC BY-SA 2.5
null
2010-12-21T16:44:01.007
2010-12-22T08:30:54.123
null
null
4,639
[ "javascript", "url", "request" ]
4,501,749
1
4,501,856
null
2
231
I'm working on a client portal at the moment and with the help of the people on this forum and many hours of blood sweat and tears I have got to this point pictured below. ![alt text](https://i.stack.imgur.com/9GP5y.jpg) I now need to complete the final step of this form but I'm not quite sure how to go about it. At the bottom there's a tabbed interface and a above it there is are check boxes. What I want is a system where the user can check and uncheck the boxes and the tabs appear and disappear so they can choose that days of the week they're open. This code also needs to add/remove the details in the tab from the scope of the form and this is the part I'm struggling to work out. The rest of the form is built using JQuery so I'm keen to keep the code consistent. What I don't want a person to submit the form at the bottom and it accidentally submits the days information they haven't selected with the checkboxes. Hope someone can help Dan This is the code I'm using to tab, I tried the JQuery UI one but didn't like it ``` $(document).ready(function(){ $( '.days:not(:first)' ).hide(); $('#info-nav li').click(function(e) { $('.days').hide(); $('#info-nav .current').removeClass("current"); $(this).addClass('current'); var clicked = $(this).find('a:first').attr('href'); $('#info ' + clicked).fadeIn('fast'); e.preventDefault(); }).eq(0).addClass('current'); }); ``` I was using a piece of code similar to the one below to hide and show the tabs when the checkbox is checked but it was crude and didn't work, I was appendinging it to a div that was hidden and outside the scope of the form then toggling this with a div inside the form: ``` $('#info-nav li').hide(); $('#holdingDiv').hide(); if($(':checkbox[name="Monday"]').is(':checked')) { $('#info-nav li a[href="#Monday"]').parents("li").show(); $('#Monday').appendTo('#info'); } if($(':checkbox[name="Tuesday"]').is(':checked')) { $('#info-nav li a[href="#Tuesday"]').parents("li").show(); $('#Tuesday').appendTo('#info'); } if($(':checkbox[name="Wednesday"]').is(':checked')) { $('#info-nav li a[href="#Wednesday"]').parents("li").show(); $('#Wednesday').appendTo('#info'); } if($(':checkbox[name="Thursday"]').is(':checked')) { $('#info-nav li a[href="#Thursday"]').parents("li").show(); $('#Thursday').appendTo('#info'); } if($(':checkbox[name="Friday"]').is(':checked')) { $('#info-nav li a[href="#Friday"]').parents("li").show(); $('#Friday').appendTo('#info'); } if($(':checkbox[name="Saturday"]').is(':checked')) { $('#info-nav li a[href="#Saturday"]').parents("li").show(); } if($(':checkbox[name="Sunday"]').is(':checked')) { $('#info-nav li a[href="#Sunday"]').parents("li").show(); $('#Sunday').appendTo('#info');} $(':checkbox').click(function() { if($(':checkbox[name="'+ $(this).attr('name') +'"]').is(':checked')) { $('#info-nav li a[href="' + $(this).val() + '"]').parents("li").show(); $($(this).val()).appendTo('#info'); $('#info-nav li a[href="' + $(this).val() + '"]').parents("li").hide(); $($(this).val()).appendTo('#holdingDiv'); } }) ```
Add/Removed tabbed data from a form using JQuery
CC BY-SA 2.5
0
2010-12-21T16:50:14.377
2010-12-21T17:42:08.303
2010-12-21T17:42:08.303
493,847
493,847
[ "javascript", "jquery", "forms", "jquery-tabs" ]
4,501,823
1
4,501,859
null
7
1,589
I guess I've just gotten spoiled with Consolas working on my local development machine. But at work we do a lot of development remotely via Remote Desktop, where any fonts requiring ClearType look . I mean, at this: ![Screenshot of Consolas font on Remote Desktop](https://i.stack.imgur.com/z6rbR.png) Normally I'm not a big fan of Courier New, but in this scenario it beats Consolas, along with all the other otherwise great-looking programmer fonts I've found (which all seem to require ClearType or some other rendering effect that apparently isn't available through Remote Desktop, at least from Windows XP) hands-down. Can someone suggest any high-quality fonts suitable for programming that will still look good through Remote Desktop?
What is a good programming font that looks good through Remote Desktop?
CC BY-SA 2.5
null
2010-12-21T16:57:13.887
2016-07-08T14:28:22.443
null
null
105,570
[ "fonts", "remote-desktop", "cleartype", "consolas" ]
4,501,841
1
null
null
0
305
So I am working on a gridview that uses the order number to order the table. However, my users are able to ad a row. What i want is something similar to pages that have the arrows next to each row and the user can click up if they want that row to go up. I also want it to change the actual number in the row column. for the one being moved and for the other one being affected. I hope i am being clear enough ![sopadmin](https://i.stack.imgur.com/w2GgR.jpg)
gridview, order number + 1/- 1
CC BY-SA 2.5
null
2010-12-21T16:59:29.110
2011-07-21T13:50:05.317
2010-12-21T17:56:04.673
497,470
497,470
[ "asp.net", "vb.net", "gridview" ]
4,502,076
1
4,503,324
null
0
2,375
I am using PDFBox for generating a pdf from one of my user inputted forms. For drawing a line I am using PDPageContentStream.drawLine and for text PDPageContentStream.drawString. The text works perfect but while using drawLine, when I try to print the pdf, I get the error as shown in the attached Image. My code looks like this ``` PDPage page = new PDPage(); release.addPage(page); contentStream = new PDPageContentStream(release,page); int margin = 40; vertHeight -= thisFontHeight * fontSize * 1.05f + 5; contentStream.drawLine(margin,vertHeight + margin - 5, page.getMediaBox().getWidth() - margin, vertHeight + margin - 5) ``` Any help appreciated![alt text](https://i.stack.imgur.com/SZYek.png)
pdfbox error for using PDPageContentStream.drawLine
CC BY-SA 2.5
null
2010-12-21T17:23:39.013
2010-12-21T19:55:41.927
2010-12-21T19:55:41.927
477,771
387,093
[ "java", "pdf", "pdf-generation", "pdfbox" ]
4,502,081
1
4,514,823
null
6
13,804
I have inherited a .NET Framework 1.1 web site that I must host with IIS 7 on Windows Server 2008. I'm having some trouble. ## 1. Installation I installed .NET Framework 1.1 following [these instructions](http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on-vista-and-windows-2008/). The installation automatically created a new Application Pool "ASP.NET 1.1". I use that. ## 2. Trouble When I launch the web site I see web.config runtime errors: > The tag contains an invalid value for the 'culture' attribute. I fix that one and then see: > Child nodes are not allowed. I don't want to keep playing this whack-a-mole game. ## 3. Am I sure this is .NET 1.1? I examine the automatically created application pool. I see that it's 1.1. Advanced Settings... ![Automatic AppPool .NET 1.1 Advanced](https://i.stack.imgur.com/dT1ab.gif) Basic Settings... ![Automatic AppPool .NET 1.1 Basic](https://i.stack.imgur.com/pOk6D.gif) This doesn't seem right. While 1.1 is set, it's not an option in the Advanced drop down selectors. And why in the Basic box is it just "v1.1" and not ".NET Framework v1.1.4322"? That would be more consistent. ## 4. I cannot create other .NET 1.1 App Pools I cannot select .NET Framework 1.1 for other application pools. It's not an option in the drop down selectors. What's up with that? ![App Pool missing .NET 1.1 option](https://i.stack.imgur.com/ail5o.gif) ## What now? - - -
.NET Framework 1.1 on IIS 7
CC BY-SA 2.5
null
2010-12-21T17:23:46.817
2011-01-05T01:29:17.713
2010-12-22T15:19:46.407
83
83
[ "iis-7", ".net-1.1", "asp.net-1.1" ]
4,502,204
1
4,502,281
null
1
76
I like to send an path to my application with shell context menu. I use the following shell context menu which send this command prompt "C:\loger.exe"/clog which runs the app only to my app. How to send the selected path instead of only running the app. ps Im using .net2 thank you "C:\loger.exe"/clog ![alt text](https://i.stack.imgur.com/gylS8.jpg)
send path to application with shell context menu
CC BY-SA 2.5
null
2010-12-21T17:37:19.770
2010-12-21T17:46:33.567
null
null
224,998
[ ".net" ]
4,502,258
1
4,502,599
null
1
395
I'm having a menu spacing issue in IE7 and IE6 that I cannot get to look right. My navigation can be found at [http://js.philosophydesign.com](http://js.philosophydesign.com) ![](https://i.stack.imgur.com/S0BHl.png)[philosophydesign.com](http://www.philosophydesign.com/downloads/menuspacing.png) As you can see in IE8 and others it displays fine. IE7 the menu items are partially seperated but in IE6 they are seperated hugely. Navigation HTML: ``` <a class="float-left" href="http://js.philosophydesign.com"><img src="http://js.philosophydesign.com/wp-content/themes/philosophy/images/logo.gif" alt="Jeremy Stratton - Writing that works" title="Jeremy Stratton - Writing that works" /></a> <div id="mainnavcont" class="float-right"> <ul id="mainmenu" class="menu"> <li id="menu-item-25" class="menu-item menu-item-type-post_type current-menu-item page_item page-item-6 current_page_item menu-item-25"><a href="http://js.philosophydesign.com/">I get to your point</a></li> <li id="menu-item-26" class="menu-item menu-item-type-post_type menu-item-26"><a href="http://js.philosophydesign.com/me-and-my-work/">Me and my work</a></li> <li id="menu-item-27" class="menu-item menu-item-type-post_type menu-item-27"><a href="http://js.philosophydesign.com/things-ive-written/">Some of the things I’ve written</a></li> <li id="menu-item-28" class="menu-item menu-item-type-post_type menu-item-28"><a href="http://js.philosophydesign.com/improve-your-writing/">Improve your writing</a></li> <li id="menu-item-29" class="menu-item menu-item-type-post_type menu-item-29"><a href="http://js.philosophydesign.com/what-people-say-about-me/">What people say about me</a></li> <li id="menu-item-30" class="menu-item menu-item-type-taxonomy menu-item-30"><a href="http://js.philosophydesign.com/category/my-blog/">My blog</a></li> <li id="menu-item-31" class="menu-item menu-item-type-post_type menu-item-31"><a href="http://js.philosophydesign.com/get-in-touch/">Get in touch</a></li> </ul> </div> ``` Navigation CSS: ``` /**** Main Navigation ****/ div#mainnavcont { float:right; width:673px; } ul#mainmenu { display:block; list-style:none; margin:0; padding:0; } ul#mainmenu li a { color:#000; display:block; font-family:"HelveticaNeueLight45", "Trebuchet MS", Arial, Helvetica, sans-serif; font-size:12px; font-weight:normal; padding-left:10px; margin-left:-10px; text-decoration:none; } ul#mainmenu li a:hover, ul#mainmenu li.current-menu-item a, ul#mainmenu li.current-page-ancestor a { background:url(images/navbg.png) no-repeat 5px 50%; } ``` Anyone know why this menu is acting up in IE7 and IE6? Thanks Scott EDIT: Got it working with this css: ``` /**** Main Navigation ****/ div#mainnavcont { float:right; width:673px; } ul#mainmenu { display:block; list-style:none; margin:0; padding:0; width:200px; } ul#mainmenu li { display:block; float:left; width:200px; } ul#mainmenu li a { color:#000; display:block; font-family:"HelveticaNeueLight45", "Trebuchet MS", Arial, Helvetica, sans-serif; font-size:12px; font-weight:normal; padding-left:10px; margin-left:-10px; text-decoration:none; width:189px } ul#mainmenu li a:hover, ul#mainmenu li.current-menu-item a, ul#mainmenu li.current-page-ancestor a { background:url(images/navbg.png) no-repeat 5px 50%; } ```
IE6 and IE7 Navigation spacing issue
CC BY-SA 4.0
null
2010-12-21T17:44:22.610
2019-08-08T02:16:42.253
2019-08-08T02:16:42.253
4,751,173
367,154
[ "html", "css", "internet-explorer-7", "internet-explorer-6" ]
4,502,569
1
4,502,970
null
48
19,279
I have a view on which I've set the layerOpacity to 1. ``` theView.layer.shadowOpacity = 1.0; ``` This looks fine when the view is farther down the screen. When I move this view up to be flush with another view that has a shadow, they don't look good. Is there a way I can animate the `shadowOpacity` on my layer to be 0? I tried using an animation block but it seems as if this property is not animatable. ![alt text](https://i.stack.imgur.com/kNyB6.png) Request for code that doesn't work: ``` [UIView animateWithDuration:1.0 animations:^{ splitView2.layer.shadowOpacity = 0;} completion:NULL]; ```
How to animate layer shadowOpacity?
CC BY-SA 2.5
0
2010-12-21T18:22:29.520
2019-12-08T12:54:42.700
2010-12-21T19:07:30.997
456,851
456,851
[ "iphone", "objective-c", "cocoa-touch", "uiview", "quartz-graphics" ]
4,502,656
1
4,543,848
null
122
11,598
In [my previous question I got an excellent answer](https://stackoverflow.com/questions/4087919/how-can-i-improve-my-paw-detection/4092160#4092160) that helped me detect where a paw hit a pressure plate, but now I'm struggling to link these results to their corresponding paws: ![alt text](https://i.stack.imgur.com/1KbIz.png) I manually annotated the paws (RF=right front, RH= right hind, LF=left front, LH=left hind). As you can see there's clearly a repeating pattern and it comes back in almost every measurement. [Here's a link to a presentation of 6 trials that were manually annotated.](https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B1W3cjBV_DpNYjNhYjFjYzctZjJjNi00ODVkLWExMjctYmQ5YWJhOWU3ZDg0&hl=en&authkey=CO6_lbIE) My initial thought was to use heuristics to do the sorting, like: - - - However, I’m a bit skeptical about my heuristics, as they would fail on me as soon as I encounter a variation I hadn’t thought off. They also won’t be able to cope with measurements from lame dogs, whom probably have rules of their own. Furthermore, the annotation suggested by Joe sometimes get's messed up and doesn't take into account what the paw actually looks like. Based on the answers I received [on my question about peak detection within the paw](https://stackoverflow.com/questions/3684484), I’m hoping there are more advanced solutions to sort the paws. Especially because the pressure distribution and the progression thereof are different for each separate paw, almost like a fingerprint. I hope there's a method that can use this to cluster my paws, rather than just sorting them in order of occurrence. ![alt text](https://i.stack.imgur.com/hFmOn.png) For anyone up to the challenge, [I have pickled a dictionary](https://stackoverflow.com/questions/3685265/how-to-write-a-multidimensional-array-to-a-text-file/3685295#3685295) with [all the sliced arrays that contain the pressure data of each paw](http://dl.dropbox.com/u/5207386/walk_sliced_data) (bundled by measurement) and [the slice that describes their location](http://dl.dropbox.com/u/5207386/walk_data_slices) (location on the plate and in time). To clarfiy: walk_sliced_data is a dictionary that contains ['ser_3', 'ser_2', 'sel_1', 'sel_2', 'ser_1', 'sel_3'], which are the names of the measurements. Each measurement contains another dictionary, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (example from 'sel_1') which represent the impacts that were extracted. Also note that 'false' impacts, such as where the paw is partially measured (in space or time) can be ignored. They are only useful because they can help recognizing a pattern, but won't be analyzed. And for anyone interested, [I’m keeping a blog with all the updates regarding the project!](http://www.flipserd.com/blog)
How to sort my paws?
CC BY-SA 3.0
0
2010-12-21T18:32:19.713
2014-04-16T00:00:27.780
2017-05-23T11:46:39.687
-1
77,595
[ "python", "image-processing" ]
4,502,681
1
7,182,136
null
3
4,818
What is the best way to create tutorial or help screens that can be viewed in an iPhone App on launch? I'm debating between using two paradigms: 1. Edit a screenshot of the app with an image editing program to add static help text. Interaction is tapping or scrolling through the tips. This involves creating a custom UIViewController to advance to the next help screen. 2. Create a custom iPhone UIControl on top of the App user interface that can be tapped to advance to the next tutorial tip. The application will transition between the modes and will be active, rather than static. It involves adding hooks into the App's custom ViewController's to handle "TutorialUIControl" objects. Here's some screenshots of the application that I need to make help screen UI for, it's an application that creates artwork. [More App Information](http://blog.artworkevolution.com) 1. Screenshot 1: View mode that allows viewers to scroll through an image list, like the UIImagePicker, but for custom image collections. 2. Screenshot 2: Action mode - allows viewers to select images to save to the "My Saved" album from the active art generation album "My Evolution" or evolve images using sexual/asexual image reproduction. ![Image View Mode](https://i.stack.imgur.com/pkPzh.png) ![Image Action Mode](https://i.stack.imgur.com/nD9ns.png)
iPhone App Tutorial/Help Screen UI
CC BY-SA 2.5
0
2010-12-21T18:34:58.803
2013-08-13T19:53:32.510
2013-08-13T19:53:32.510
null
276,626
[ "iphone", "walkthrough" ]
4,503,019
1
4,503,704
null
9
453
There seems to be a problem between how PHP engine handles identical files that differ only in their file extension. Problem: Also, I measured that the .php extension loads much faster than identitcal twin with .xxx extension even though the file contents are identical, and they differ only in their file extension. ![alt text](https://i.stack.imgur.com/agirw.png) ![alt text](https://i.stack.imgur.com/UwRax.png) > "HTTP allows clients to make conditional requests to see if a copy that they hold is still valid. Since this response has a Last-Modified header, clients should be able to use an If-Modified-Since request header for validation. RED has done this and found that the resource sends a full response even though it hadn't changed, indicating that it doesn't support Last-Modified validation." --- ### homepage ending with .php ![alt text](https://i.stack.imgur.com/J3Inv.png) --- ### exact same file, but ending .ast ![alt text](https://i.stack.imgur.com/WiXkQ.png) --- A home.php file is copied as home.xxx and this extension is added to htaccess to recognize it as a PHP file. The .php file listen to the php.ini where freshness is set to 3 hrs, the non .php files have to listen to htaccess where freshness is set to 2 hrs according to: ``` AddType application/x-httpd-php .php .ast .abc .xxx .etc <IfModule mod_headers.c> ExpiresActive On ExpiresDefault M2419200 Header unset ETag FileETag None Header unset Pragma Header set Cache-Control "max-age=2419200" ##### DYNAMIC PAGES <FilesMatch "\\.(ast|php|abc|xxx)$"> ExpiresDefault M7200 Header set Cache-Control "public, max-age=7200" </FilesMatch> </IfModule> ``` So far so good and everything loads, except, the non-php file doesn't cache properly, or it does cache well but doesn't validate well, to be more specific. See images enclosed. Only the non-php file extension causes the error and loads slower. The entire page.php loads faster as somehow all the elements in there then load properly from cache, while the page.abc has the full request returned while it ought to be cached, meaning the entire page is slower. Bottom line: What should be changed, in order eliminate the If-Modified-Since conditional request returning the full content unchanged?
Why is PHP discriminating between .php and .abc extensions for caching?
CC BY-SA 2.5
0
2010-12-21T19:16:10.923
2010-12-22T23:52:10.593
2020-06-20T09:12:55.060
-1
509,670
[ "php", "validation", "caching", "cache-control", "if-modified-since" ]
4,503,181
1
4,504,638
null
19
4,955
I have ~100 wav audio files at sample rate of 48000 of birds of the same species I'd like to measure the similarity between. I'm starting with wave files, but I know (very slightly) more about working with images, so I assume my analysis will be on the spectrogram images. I have several sample of some birds from different days. Here are some example of the data, along with (apologies for unlabeled axes; x is sample, y is linear frequency times something like 10,000 Hz): ![alt text](https://i.stack.imgur.com/Cf7fa.png) These birdsongs apparently occur in "words", distinct segments of song which is probably the level at which I ought to be comparing; both differences between similar words and the frequency and order of various words. ![alt text](https://i.stack.imgur.com/nPGZa.png) I want to try to take out cicada noise - cicadas chirp with pretty consistent frequency, and tend to phase-match, so this shouldn't be too hard. ![alt text](https://i.stack.imgur.com/cKoLn.png) It seems like some thresholding might be useful. I'm told that most of the existing literature uses manual classification based on song characteristics, like Pandora Music Genome Project. I want to be like [Echo Nest](http://the.echonest.com/platform/); using automatic classification. Update: A lot of people do study this. My question is what tools should I use for this analysis? I need to: - - - - My weapon of choice is numpy/scipy, but might something like openCV might be useful here? Edit: updated my terminology and reworded approach after some research and Steve's helpful answer.
Birdsong audio analysis - finding how well two clips match
CC BY-SA 2.5
0
2010-12-21T19:34:15.163
2015-09-09T04:51:09.667
2010-12-21T22:01:19.850
398,212
398,212
[ "python", "audio", "image-processing", "pattern-recognition" ]
4,503,271
1
4,503,357
null
0
134
How do I resolve these CodeSign build failures? ![alt text](https://i.stack.imgur.com/cj4dL.png) ![alt text](https://i.stack.imgur.com/FHXxd.png)
How do I resolve these CodeSign build failures?
CC BY-SA 2.5
null
2010-12-21T19:46:47.177
2010-12-21T19:59:58.007
2010-12-21T19:53:47.753
23,897
364,810
[ "iphone", "xcode", "provisioning" ]
4,503,419
1
4,504,118
null
1
1,250
I am using a UISearchBar and once the user taps the bar (and the keyboard pops up) I want the everything besides the keyboard and UISearchBar to be greyed out. Similar to safari when the search is selected. I do not need past searches. See here: ![Safari showing greyed out field](https://i.stack.imgur.com/2zhP4.jpg) Anyone have any ideas? I've looked through the questions here on StackOverflow and I can't find anything specific. Thanks!
How to enable UISearchBar grey out view?
CC BY-SA 2.5
0
2010-12-21T20:08:09.697
2010-12-21T21:33:35.570
null
null
518,332
[ "iphone", "ipad", "ios4" ]
4,503,475
1
4,538,535
null
9
12,265
I have a problem where I have to read the time of recording from the video recorded by a surveillance camera. The time shows up on the top-left area of the video. Below is a link to screen grab of the area which shows the time. Also, the digit color(white/black) keeps changing during the duration of the video. ![alt text](https://i.stack.imgur.com/rOQhO.png) [http://i55.tinypic.com/2j5gca8.png](http://i55.tinypic.com/2j5gca8.png) Please guide me in the direction to approach this problem. I am a Java programmer so would prefer an approach through Java. Thanks unhillbilly for the comment. I had looked at the Ron Cemer OCR library and its performance is much below our requirement. Since the ocr performance is less than desired, I was planning to build a character set using the screen grabs for all the digits, and using some image/pixel comparison library to compare the frame time with the character-set which will show a probabilistic result after comparison. So I was looking for a good image comparison library(I would be OK with a non-java library which I can run using the command-line). Also any advice on the above approach would be really helpful.
How to read time from recorded surveillance camera video?
CC BY-SA 2.5
0
2010-12-21T20:14:59.427
2011-09-27T06:16:30.503
2011-01-09T19:51:42.870
550,436
550,436
[ "java", "image-processing", "computer-vision", "ocr", "video-processing" ]
4,503,547
1
4,503,754
null
1
201
Is there any way I can read settings for iPhone preferences. I wanted to read whether the push notification flag is on or not. Based on this setting, I wanted to take some action in my native application. Please guide.![alt text](https://i.stack.imgur.com/QQ7kE.png)
How to read iPhone preferences from native application
CC BY-SA 2.5
null
2010-12-21T20:23:07.290
2010-12-21T20:57:08.550
2010-12-21T20:57:08.550
418,029
418,029
[ "iphone", "cocoa", "cocoa-touch" ]
4,503,608
1
4,503,651
null
0
440
Sorry If this has been asked before, but when you search for something on google, you can iterate over the results using the up and down key: ![alt text](https://i.stack.imgur.com/LxFRU.png) The little blue triangle, is this done in jquery?
Little triangle in google results
CC BY-SA 2.5
0
2010-12-21T20:29:47.080
2010-12-21T20:41:14.990
null
null
403,912
[ "jquery" ]
4,504,035
1
4,504,760
null
1
228
I want to produce an HTML file like this example: > # English ![Alt](https://i.stack.imgur.com/xGCNw.gif)En Lorem ipsum dolor sit amet, consectetur adipiscing elit.Nunc rutrum, eros sit amet ornare faucibus. # Français Fr Lorem ipsum dolor sit amet, consectetur adipiscing elit.Nunc rutrum, eros sit amet ornare faucibus. From the following example XML source, on which I have no control: ``` <?xml version="1.0" encoding="ISO-8859-1"?> <content id=""> <header language="en"> <enabled>true</enabled> <img src="http://i.stack.imgur.com/xGCNw.gif" /> <!-- more header-related elements --> </header> <header language="fr"> <enabled>false</enabled> <img src="" /> <!-- more header-related elements --> </header> <html language="en" type="source"> <![CDATA[ <p>En Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p>Nunc rutrum, eros sit amet ornare faucibus.</p> ]]> </html> <html language="fr" type="source"> <![CDATA[ <p>Fr Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p>Nunc rutrum, eros sit amet ornare faucibus.</p> ]]> </html> </content> ``` So I wrote this XSLT to do it: ``` <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <h1>English</h1> <hr/> <xsl:for-each select="content/header"> <xsl:call-template name="header"> <xsl:with-param name="lang">en</xsl:with-param> </xsl:call-template> </xsl:for-each> <xsl:for-each select="content/html"> <xsl:call-template name="html"> <xsl:with-param name="lang">en</xsl:with-param> </xsl:call-template> </xsl:for-each> <hr/> <h1>Français</h1> <hr/> <xsl:for-each select="content/header"> <xsl:call-template name="header"> <xsl:with-param name="lang">fr</xsl:with-param> </xsl:call-template> </xsl:for-each> <xsl:for-each select="content/html"> <xsl:call-template name="html"> <xsl:with-param name="lang">fr</xsl:with-param> </xsl:call-template> </xsl:for-each> </xsl:template> <xsl:template name="header" match="*"> <xsl:param name='lang'/> <xsl:if test="current()[@language=$lang]"> <xsl:if test="enabled[normalize-space(text())='true']"> <xsl:call-template name="image"/> <!-- more header-related elements --> </xsl:if> </xsl:if> </xsl:template> <xsl:template name="image" match="*"> <xsl:if test="img[not(normalize-space(@src)='')]"> <xsl:copy-of select="img"/> </xsl:if> </xsl:template> <xsl:template name="html" match="*"> <xsl:param name='lang'/> <xsl:if test="current()[@language=$lang]"> <xsl:value-of select="node()" disable-output-escaping="yes" /> </xsl:if> </xsl:template> </xsl:stylesheet> ``` That said, my solution feels very verbose, but seems to enable useful composition and reutilization properties, which are two things very important to me, since I will need to transform lots of XML documents whose structure is similar to this example; and thus, if most of my XSLTs can reuse parts of other XSLTs, this will be very useful. A few notes of interest: - - So I would like to learn if my solution looks either anti-idiomatic-or even plain wrong-to you, XSLT wranglers.
Reordering multiple siblings based on a property
CC BY-SA 2.5
0
2010-12-21T21:24:16.427
2011-08-09T13:43:07.350
null
null
25,167
[ "xslt" ]
4,504,399
1
4,504,518
null
2
2,197
When I'm doing a half-page curl modal transition: ![alt text](https://i.stack.imgur.com/bznlf.jpg) How can I tell when the page has been restored back to it's current state? I want to call something when the "settings" view has been closed. I tried to use `viewWillAppear:(BOOL)animated` but it doesn't seem to get called when closing the view. Any ideas?
How to receive a notification when a view will appear?
CC BY-SA 2.5
0
2010-12-21T22:05:38.657
2010-12-21T22:53:00.583
null
null
456,851
[ "iphone", "objective-c", "cocoa-touch", "uiview" ]
4,504,855
1
4,505,212
null
1
5,736
Okay this is a continuation of my previous question found [here](https://stackoverflow.com/questions/4439537/1-pixel-line-height-difference-between-firefox-and-chrome). I have an asp.net menu control styled as an unordered list that is rendering slightly differently in chrome and firefox. I am convinced this is due to an error in my css as opposed to a quirk between the two browsers. I have recreated the menu [here](http://jsfiddle.net/EdnKZ/2/). Here is a screen shot depicting the problem(Chrome on top, FireFox on the bottom): ![alt text](https://i.stack.imgur.com/vmU8T.png) Any Ideas??
CSS Problem between FireFox and Chrome
CC BY-SA 2.5
null
2010-12-21T23:14:03.183
2010-12-22T00:28:45.623
2017-05-23T12:07:06.850
-1
428,632
[ "css", "firefox", "google-chrome" ]
4,504,854
1
4,554,490
null
0
237
# Hi, ## I am using the following javascript... ``` g_viewInfo.drawContext.projection = g_math.matrix4.perspective( g_math.degToRad(30), // 30 degree fov. g_client.width / g_client.height, 1, // Near plane. 9999); // Far plane. ``` Can anyone tell me what the maximum far plane of an o3d (webgl) projection is? I have tried using 5000 and 9999 but everything still seems to disappear at the same point. I have tried to locate this information in the SDK's current documentation. Is there a reason for such a weak limitation? Is it possible to hack the max value? ![](https://shifters.files.wordpress.com/2010/12/borat_thumbs_up_narrowweb__300x5040.jpg)
What's the maximum far plane of an o3d (webgl) projection?
CC BY-SA 2.5
null
2010-12-21T23:13:57.037
2010-12-29T13:28:13.363
2017-02-08T14:31:13.900
-1
449,534
[ "javascript", "html", "webgl", "o3d" ]
4,505,104
1
4,505,115
null
3
495
This is a question more out of curiosity rather than being stuck. I know in html id needs to be unique and I can see the error in html validation. Yet the browsers happily apply style sheets to both elements. Is it because they are more relaxed in parsing or what. Does that mean I can use this for styling etc or does it have side effects. ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title></title> <style type="text/css"> #abc { color: red; } </style> </head> <body> <div id="abc">Hello Div 1</div> <div id="abc">Hello Div 2</div> </body> </html> ``` Output in browsers. ![alt text](https://i.stack.imgur.com/Zg8yS.png)
unique id value in html
CC BY-SA 2.5
null
2010-12-22T00:03:16.487
2010-12-22T00:10:53.637
2020-06-20T09:12:55.060
-1
198,552
[ "html", "firefox", "google-chrome" ]
4,505,337
1
4,528,244
null
2
409
I need help please with writing a sproc, it takes a table-valued parameter @Locations, whose Type is defined as follows: ``` CREATE TYPE [dbo].[tvpLocation] AS TABLE( [CountryId] [int] NULL, [ResortName] [nvarchar](100) NULL, [Ordinal] [int] NOT NULL, PRIMARY KEY CLUSTERED ( [Ordinal] ASC )WITH (IGNORE_DUP_KEY = OFF) ) ``` @Locations will contain at least 1 row. Each row WILL have a non-null CountryId, and MAY have a non-null ResortName. Each row will have a unique Ordinal, the first being 0. The combinations of CountryId and ResortName in @Locations will be unique. The sproc needs to search against the following table structure. ![alt text](https://i.stack.imgur.com/i5run.png) The image can be seen better by right-clicking it and View Image, or similar depending on your browser. Now this is where I'm stuck, the sproc should be able to find Tours where: - - This is the code I finally used, based on Anthony Faull's suggestion. Thank you so much Anthony: ``` select distinct T.Id from tblTour T join tblTourHotel TH on TH.TourId = T.Id join tblHotel H ON H.Id = TH.HotelId JOIN @Locations L ON ( ( L.Ordinal = 0 AND TH.Ordinal = 0 ) OR ( L.Ordinal > 0 AND TH.Ordinal > 0 ) ) AND L.CountryId = H.CountryId AND ( L.ResortName = H.ResortName OR L.ResortName IS NULL ) cross apply( select COUNT(TH2.Id) AS [Count] FROM tblTourHotel TH2 where TH2.TourId = TH.TourId ) TourHotelCount where TourHotelCount.[Count] = @LocationCount group by T.Id, T.TourRef, T.Description, T.DepartureDate, T.NumNights, T.DepartureAirportId, T.DestinationAirportId, T.AirlineId, T.FEPrice having COUNT(distinct TH.Id) = @LocationCount ```
Querying using table-valued parameter
CC BY-SA 2.5
null
2010-12-22T00:57:09.500
2010-12-25T00:49:26.793
2010-12-25T00:49:26.793
161,632
161,632
[ "sql-server-2008", "stored-procedures", "table-valued-parameters" ]
4,505,687
1
4,535,007
null
13
5,156
From inside NSManagedObjectContext -save: I am getting this message: > Program received signal: “SIGABRT”.warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found). This happens when I delete an Experiment object with to-many with Run which has to-many with Sample which has to-one with Data. Experiment also has to-many with Page which has to-many with Display which has to-many to Run. I mention this to point out the cyclical nature of the graph. Here is a simplified graph of model: ![alt text](https://i.stack.imgur.com/c79ar.png) An Experiment a top level entity with which the user interacts. An Experiment contains multiple Run objects. A Run is a collection of data starting at a particular time and ending at a later time. Since data can be collected from multiple sources simultaneously, there is a Sample for each source for each Run. An Experiment contains data and this data needs to be viewed and interacted with. So, each Experiment has some number of Page objects and each Page contains some number of Displays (e.g., graphs, meters). A Display is configured to display some subset of the Runs that belong to the Experiment. So, while an Experiment may contains dozens of Runs, one of its Pages will only display a few of those Runs at a time. The Display entity maintains this list. A Display is a view. A view will reference a Display object and be notified of changes to the Display object. I had been using Delete Rules but have now switched to "No Action" delete rules in combination with -prepareForDeletion methods for all of these classes. This change made no difference. In both cases, the error message is the same. Interestingly, when I relaunch the app, all the objects that were marked for deletion have been deleted. Also, if an Experiment has no Run objects, then deletion works without incidence. For that matter, deleting a single Run from an Experiment also works. I am hoping that someone has seen something like this and can offer advice on what would cause this. Or, if someone has advice on how to get libXcodeDebuggerSupport.dylib for iOS 4.2.1, that might also be helpful. I followed advice found [here](https://stackoverflow.com/questions/4284277/libxcodedebuggersupport-dylib-is-missing-in-ios-4-2-1-development-sdk) and was able to get Xcode to find libXcodeDebuggerSupport.dylib for iOS 4.2.1. But this did not help at all in diagnosing problem - which persists. After reading a bit and downloading a version of unwind-sjlj.c, it seems that I am dealing with something like an uncaught exception. I am not sure how this helps me... Thanks to Kamchatka, I did something I probably should have done a few days ago: turned on "Stop on Objective-C Exceptions". This allowed me to see that a reference to a deleted object was still being held - and, worse, was key-value observing the deleted object. Fixing this fixed problem and I was able to revert to using delete rules rather than -prepareForDeletion methods.
Debugging SIGABRT within NSManagedObjectContext -save:
CC BY-SA 2.5
0
2010-12-22T02:30:47.163
2010-12-27T22:28:05.360
2017-05-23T10:30:21.840
-1
203,220
[ "iphone", "core-data", "nsmanagedobject", "nsmanagedobjectcontext" ]
4,505,884
1
4,506,001
null
1
4,926
I'm trying to install pyobjc (using pyobjc-1.2-python2.3-macosx10.2.dmg) on a Mac running OSX 10.6 and I get the following error message: ![alt text](https://i.stack.imgur.com/N1uNZ.png) To use Python 2.3 I tried re-editing my .bash_profile and I commented out everything with the exception of this line: ``` # change python version defaults write com.apple.versioner.python Version 2.3 ``` I did previously include this: ``` PATH="/Library/Frameworks/Python.framework/Versions/2.3/bin:/usr/bin:/bin${PATH}" export PATH ``` but at the moment left it out. I know that when I type `python` in the terminal it gives me `Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)` so it clearly is not using 2.3. What can I do to fix this?
How can I restore my default python install on OSX?
CC BY-SA 2.5
null
2010-12-22T03:17:55.720
2010-12-22T03:55:22.300
null
null
258,755
[ "python", "macos", "osx-snow-leopard", "pyobjc" ]
4,506,100
1
null
null
1
1,090
I can run with debugging and I can run in release mode but I cannot run without debugging. I am pretty sure I messed up the configuration in visual studio somewhere but I am not sure. The computer was frozen I may have inadvertently clicked something. It normally works. Does anybody have any ideas? Thank you! EDIT: The program works with F5. It also works when I put the configuration to Release and run the executable. However Ctrl + F5 does not work, and the executable it creates does not work either. I just get an error saying windows is looking for a solution and then this: ![alt text](https://i.stack.imgur.com/tKUVk.png) I even tried getting the entire solution from source safe with the same results... EDIT 2: After following the windbg advice given to me below, I arrived at this error: ``` *** ERROR: Symbol file could not be found. Defaulted to export symbols for mfc71d.dll - ```
Cannot run VC++ program without debugging
CC BY-SA 2.5
null
2010-12-22T04:13:30.553
2012-07-20T09:43:23.253
2010-12-22T14:08:37.543
327,575
327,575
[ "c++", "visual-c++", "visual-studio-2003" ]
4,506,506
1
null
null
2
111
I have spent about 7 hours trying to figure this out but gotten nowhere. This is how my fiddler trace looks like ![alt text](https://i.stack.imgur.com/qYEb0.png) I have two routes that look like below that are registered for this page. ``` [route name="DummyResultsWithMarketStateNames" url="DummyResults/state-{statename}/market-{marketname}/page-{page}/{action}" controller="DummyResults" action="Show"/] [route name="DummyResultsWithMarketId" url="DummyResults/market-{marketid}/page-{page}/{action}" controller="DummyResults" action="Show"/] ``` For this url, the first route matches and it goes to the right action. However, the client is sending in another request a second later in which it removes the last parameter 'page-1' and replaces it with 'none'. I've traced for XHR's and there are none. I'm not sure if this is an issue with the MVC framework itself but how would that translate as a request from the client?!!! Also, I'm getting different behavior with different browsers (IE trace above). Anyone encountered such strange behavior? I'd be happy to provide more info if you'd like. UPDATE: I setup the site on IIS and eliminated all image, css or script requests. I still end up with multiple requests. The original dummyresults page seems to be working now after I removed the .htc's. However, I have another page (screenshot below) that is not 'co-operating'. Should I add Ignoreroutes for certain extensions? This is driving me nuts!!! Pardon the 'bleep' on the image (IP reasons). PS: I setup another site for serving up all static resources. ![alt text](https://i.stack.imgur.com/w4Tw9.png)
Erratic requests arising from client when using a custom view engine in ASP.Net MVC
CC BY-SA 2.5
0
2010-12-22T05:43:30.063
2011-02-25T13:37:36.950
2010-12-23T21:16:14.847
86,860
372,278
[ "asp.net", "asp.net-mvc", "asp.net-mvc-2", "viewengine" ]
4,506,616
1
4,506,666
null
0
134
I want to create menu in Nokia Qt, and I am very new to Qt,. I have added screen shot. And I want to create menu like shown in that screen shot. ![alt text](https://i.stack.imgur.com/0ZNZY.png)
How to change styles of menu in a Nokia Qt application
CC BY-SA 4.0
null
2010-12-22T06:05:33.783
2022-12-25T15:59:39.550
2022-12-25T15:59:39.550
3,689,450
472,882
[ "qt", "nokia" ]
4,506,881
1
4,506,923
null
0
494
How to embed html code and display the result according to the html code pasted in the textbox multiline asp.net webform.. The example of this is www.orkut.com scrapbook ... when any body post a graphic comment then it would embed the html coding in scrapbook and he results will be displayed i scrapbook on button submit click ... Here is the picture what i want -- i want code snippet for this ![alt text](https://i.stack.imgur.com/mxcr3.png)
how to embed the html code in my ASP.NET webform?
CC BY-SA 2.5
null
2010-12-22T06:59:02.490
2010-12-22T07:07:07.033
null
null
522,211
[ "asp.net", "vb.net" ]
4,507,007
1
null
null
0
1,000
We have a RESTful webservice that gives back a Multiparty response. The first body part is an xml and the second is an xhtml. I am able to retrieve the first bodypart and assert. However, I am unable to retreive the second body part so that I can do the XPath assertion on the same. The second body part was coming as an attachment. Using grrovy script, I am able to access is attachment and do a string comparison with the expected xhtml. To add to the misery, my requirement is to ignore few attributes present in specific tags as the value will be dynamic for every request and has to ignored while performing assertion. This was easier to achieve in XPath assertion by making use of "Allow wildcards" option. My questions are: 1. Is there a way to assert the second body part using XPath assertion. 2. If no, how can the assertion be peformed using groovy script by ignoring few attributes present in the actual xhtml/xml. ![alt text](https://i.stack.imgur.com/YjSwV.png)
SOAP-UI - How to retrieve the second body part in a multipart response and asserting the same
CC BY-SA 2.5
null
2010-12-22T07:22:49.423
2010-12-22T07:25:17.613
null
null
315,304
[ "response", "soapui", "multipart", "wildcard", "assertion" ]
4,507,241
1
null
null
0
396
I have installed the Titanium Developer 1.2.2 form my login account (on Mac system) and have done one demo project. I was able to see that working in the iPhone simulator. Now if I switch user and login to another account to run Titanium Developer there, it downloads and runs there but I am unable to launch any project there. The SDK Version simply shows as 'loading...'. As a work around I opened a terminal window and typed `sudo abhilash` (assuming my login name is 'abhilash') and entered password and launched the Titanium from command line. It opened my instance of titanium and detected the SDK version properly as 4.2 and when I click launch in simulator, it throws the following error ![Error screenshot](https://i.stack.imgur.com/atScw.png) Now how do I make it working for the second user account? I have triend re-installing the xcode and titanium from the second user's account but no success :( Kindly help!!
Running Appcelerator Titanium (for iPhone) in multiple accounts in mac
CC BY-SA 2.5
null
2010-12-22T08:01:59.967
2011-04-26T06:01:10.993
null
null
295,639
[ "iphone", "titanium", "appcelerator-mobile" ]
4,507,248
1
32,632,348
null
21
15,838
i have a listview that displays a set of rows, each row is clickable. now, i wish to group similar type of rows under one header something like as shown in the figure (mocked up). could some please advise or provide an approach for this. ![mockup image](https://i.stack.imgur.com/PzCGT.png)
group similar rows in listview based on their content
CC BY-SA 2.5
0
2010-12-22T08:03:16.363
2016-02-11T20:41:37.607
null
null
377,337
[ "android", "listview", "android-listview" ]
4,507,294
1
4,507,960
null
0
490
I have a simple code like this. This code simply exporting gridwiev to excel file.. ``` Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=cat5.xls"); Response.ContentEncoding = System.Text.Encoding.GetEncoding("windows-1254"); //Response.ContentEncoding = System.Text.Encoding.UTF7; Response.Charset = "windows-1254"; //Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; Response.ContentType = "application/vnd.ms-excel"; Response.Cache.SetCacheability(HttpCacheability.NoCache); System.IO.StringWriter stringWrite = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); GridView1.RenderControl(htmlWrite); Response.Write(stringWrite.ToString()); Response.End(); ``` But our company some users usign Excel 2003, some user using Excel 2007. When i run this code, there is no problem Excel 2003. But there is some problem in Excel 2007 like this pictures. ![alt text](https://i.stack.imgur.com/4rE53.jpg) ![alt text](https://i.stack.imgur.com/Q1FnR.jpg) How can i solve this problem? Is there anybody have an idea? Best Regards, Soner.
C# Excel 2007 Error
CC BY-SA 2.5
null
2010-12-22T08:11:37.593
2014-03-14T09:16:57.927
2020-06-20T09:12:55.060
-1
447,156
[ "c#", ".net", "excel", "gridview" ]
4,507,350
1
4,507,439
null
13
14,823
I am trying to develop a user form in Excel 2007 VBA and want to provide a user with a range selection icon, something like this: ![Range Selection Icon](https://i.stack.imgur.com/4EfiJ.jpg) However, I have not been able to find any built-in form design tool or any online tool which provides this or at least gives me an idea. If anyone has any idea about this, I will greatly appreciate their help.
Provide a range selection tool/utility to the user in Excel VBA
CC BY-SA 2.5
0
2010-12-22T08:19:34.393
2021-01-20T23:54:44.977
2018-07-09T19:34:03.733
-1
342,390
[ "vba", "excel" ]
4,507,886
1
4,509,056
null
1
1,304
In the MS SQL Management studio you can select ![select top n rows](https://i.stack.imgur.com/hVeGx.png) as an action in the table menu. I know how configuring the number of returned rows. I want to now if there is a way to configure to return rows in ?
SQL Server 2008 default select top n row
CC BY-SA 2.5
0
2010-12-22T09:43:19.970
2010-12-22T12:16:13.220
null
null
296,494
[ "sql-server", "sql-order-by", "sql-server-2008-r2" ]
4,507,898
1
4,524,613
null
0
184
I've created a `FULLTEXT` index ... ``` ALTER TABLE pads ADD FULLTEXT search (Keywords, ProgramName, English45) ``` ProgramName is a Varchar however, even if I don't add that in the index I still get no results. In my list of indexes Cardinality is 1 for this index. Heres the query I'm using. ``` select PadID from Pads WHERE MATCH(keywords,ProgramName,English45) AGAINST('games') ``` However, this is my goal. ``` select PadID from Pads WHERE MATCH(keywords,ProgramName,English45) AGAINST('games') AND RemovemeDate = '2001-01-01 00:00:00' ORDER BY VersionAddDate DESC ``` Here's my Pads Table fields. ![alt text](https://i.stack.imgur.com/UdQh9.png)
Why when I create a fulltext index does my match / against query return no results?
CC BY-SA 2.5
null
2010-12-22T09:45:11.470
2010-12-24T06:28:44.497
null
null
450,456
[ "php", "mysql", "full-text-search" ]
4,508,050
1
4,516,982
null
1
2,003
I have a Wordpress project that I'm developing in VS2010 (with VS.Php). When I try run tone of the php pages in the browser, I get a alert that asks how I want to open the page, or if I want to save it: ![alt text](https://i.stack.imgur.com/4rVoD.jpg) I've configured my local IIS (Windows XP, IIS 5.1) to open php files, but VS doesn't use local IIS to run projects. How can I configure IIS express that runs the VS project, to open php files?
Running PHP in Visual Studio 2010 doesn't open the php file in the browser
CC BY-SA 2.5
null
2010-12-22T10:06:02.317
2010-12-23T08:30:31.953
null
null
278
[ "php", "visual-studio", "visual-studio-2010" ]
4,508,043
1
4,508,811
null
10
4,379
Following is a basic implementation of the [Xorshift](http://en.wikipedia.org/wiki/Xorshift) RNG (copied from the Wikipedia): ``` uint32_t xor128(void) { static uint32_t x = 123456789; static uint32_t y = 362436069; static uint32_t z = 521288629; static uint32_t w = 88675123; uint32_t t; t = x ^ (x << 11); x = y; y = z; z = w; return w = w ^ (w >> 19) ^ (t ^ (t >> 8)); } ``` I understand that `w` is the returned value and `x`, `y` and `z` are the state ("memory") variables. However, I can't understand the purpose of more than one memory variable. Can anyone explain me this point? Also, I tried to copy the above code to Python: ``` class R2: def __init__(self): self.x = x = 123456789 self.y = 362436069 self.z = 521288629 self.w = 88675123 def __call__(self): t = self.x ^ (self.x<<11) self.x = self.y self.y = self.z self.z = self.w w = self.w self.w = w ^ (w >> 19) ^(t ^ (t >> 8)) return self.w ``` Then, I have generated 100 numbers and plotted their `log10` values: ``` r2 = R2() x2 = [math.log10(r2()) for _ in range(100)] plot(x2, '.g') ``` Here is the output of the plot: ![plot](https://i.stack.imgur.com/pB6EZ.png) And this what happens when 10000 (and not 100) numbers are generated: ![plot](https://i.stack.imgur.com/ob9qT.png) The overall tendency is very clear. And don't forget that the Y axis is `log10` of the actual value. Pretty strange behavior, don't you think?
On Xorshift random number generator algorithm
CC BY-SA 2.5
0
2010-12-22T10:04:30.063
2013-11-26T06:03:44.117
2010-12-22T11:27:09.197
17,523
17,523
[ "algorithm", "language-agnostic", "random" ]
4,508,090
1
4,509,116
null
0
575
if i use a textinput with > textAlign="right" when text is more than it can fit into, text is overflown, i want to hide text and not to over flow from right side.. and scroll the text using cursor(with left and right key) is possible if yes how ? by using skin, i am able to clip the overflow.. but now cursor is not scrolling to left side. ![alt text](https://i.stack.imgur.com/mqTUY.png) any solution ?
text overflow in left side if we set the textAlign as "right" for spark textinput control?
CC BY-SA 2.5
null
2010-12-22T10:12:19.033
2010-12-22T12:23:07.210
2010-12-22T10:23:25.180
225,402
225,402
[ "css", "apache-flex", "flash", "skinning" ]
4,508,208
1
4,528,087
null
0
598
Greetings, I want to draw a rectangle over a polygon belonging to a arbitrary plane. Given the width (SA) and height (SB) of the rectangle and the left upper corner (V1) of the rectangle, how to determine the other vertices (V2, V3 and V4). ![alt text](https://i.stack.imgur.com/ajlA4.jpg) In the case of generic normal vector (all components are nonzero), the directions (V2-V1) and (V3-V1) must be choosed by dropping the coordinate of the normal vector with largest magnitude. Any help is appreciated and welcome, Best regards, ricfow
draw rectangle over an arbitrary plane
CC BY-SA 2.5
null
2010-12-22T10:26:38.150
2010-12-24T19:44:46.160
2010-12-22T10:29:12.450
21,234
451,472
[ "geometry", "computational-geometry" ]
4,508,242
1
null
null
3
820
I have some experimental data and I have decided to represent them as sets. Let's say, there is a main set called () and several sub-sets () which contains elements from main set . I need to represent these sub-sets in the main set and show their intersections, more or less similar to the figure below. That's why I need some algorithms (with an example) to draw that figure. Preferably in PHP or Javascript (), because I am going to implement this problem in a Web Application. ![Graphical representation of set-covering problem](https://i.stack.imgur.com/XC9oF.png) Thank you beforehand!
Visual representation of sets
CC BY-SA 2.5
0
2010-12-22T10:30:45.760
2010-12-23T16:31:47.883
2020-06-20T09:12:55.060
-1
282,887
[ "algorithm", "graphics", "set", "data-representation" ]
4,508,327
1
null
null
0
1,009
I can not run the application in Debug folder without admin rights.Whenever I run it without admin rights, the JIT-debugger window appears. What's the problem? Help me please I need a quick solution. ### Update: Here is the debugger ![debugger](https://i.stack.imgur.com/3Teb2.png) after pressing yes ![alt text](https://i.stack.imgur.com/3fEHr.png). Here I can see that can't read path from settings, but when I run it as admin it doesn't give me any exception. Maybe it can't read because there some stuck with file permissions. The message indicates "Object reference not set to an instance of the object.. " In fact, I expect that person programmed in Visual Studio should be familiar of such kind exceptions.
Can't run application in debug folder of Visual Studio Solution?
CC BY-SA 2.5
null
2010-12-22T10:41:49.647
2014-05-01T10:33:20.807
2020-06-20T09:12:55.060
-1
533,982
[ "c#", "visual-studio", "runtime-error" ]
4,508,616
1
4,508,711
null
2
4,983
I've created a UserControl in a separate project in the same solution I want to use it in. My solution looks like this: ![Solution layout](https://i.stack.imgur.com/5drXO.png) As you can see, I made a reference to the other project in the solution. However, in frmWizard.cs, the user control does not appear in the toolbox. (When I create a form in WizardPages, it does) I tried adding a "using WizardPages.WizardPages.cs" to frmWizard.cs, but Visual Studio reported that that did not exist. Any suggestions would be appreciated. Tim
C# adding usercontrol from different project in solution
CC BY-SA 2.5
null
2010-12-22T11:18:33.977
2010-12-22T11:29:43.487
null
null
451,847
[ "c#", "user-controls" ]
4,508,652
1
4,544,940
null
0
1,945
I need some help with modeling in Cognos Framework Manager 8.4. Given following schema ![alt text](https://i.stack.imgur.com/Ldk92.jpg) where - - - When creating reports via Cognos Report Studio I am not able to filter for orders which have orderItems which have attributeKey e.g. 'shippingType' and attributeValue 'Standard' or 'Express' or whatever. I guess the problem is the quasi m:n relationship. In practice this shouldn't be a problem. So I thought a solution would be to create a regular dimension in framework manager with a hierarchy like "An order can consist of multiple order items and each order item has multiple attributeKeys and -values" Is this the solution and how would I do that? Can someone guide me, please? Or is it okay like it is and I am missing something in Report Studio? In my test I just created a list which has the facts from fact table and orderID from D_order. Filtering for everything else works fine, but there is no effect when filtering for e.g. D_productAttributes.attributeValue = 'Express' Thanks in advance.
Cognos FM snowflake or star schema? Help with hierarchies needed
CC BY-SA 2.5
null
2010-12-22T11:22:35.937
2012-10-19T22:42:55.610
2010-12-22T12:34:36.960
447,489
447,489
[ "sql", "cognos" ]
4,508,735
1
4,509,583
null
2
418
I have a problem with my WPF applications on certain systems. Namely, every other time when the application is started, the layout seems completely broken (unreadable text, elements and controls missing parts, appearing where they're not supposed to be etc). I've read that it has something to do with graphics drivers, but how can Microsoft expect us to work with this tech when they can't even ensure proper rendering on most systems? I have to rewrite my latest application on Win-forms because I can't be too sure something like this isn't going to happen on my customers' computers (and given the numbers game, it certainly will at some point). Example: ![alt text](https://i.stack.imgur.com/WNUhz.png) This is supposed to be a gridview placed inside a groupbox. Yet, the groupbox seems completely torn apart and places it's child elements in wrong places. Like I said, this doesn't happen every time on every system, but it happens often enough that it has become a major concern for me. Any suggestions, short of rewriting everything in Winforms (this is my first option already)?
WPF broken layout
CC BY-SA 3.0
null
2010-12-22T11:32:24.330
2011-06-01T22:36:52.780
2011-06-01T22:36:52.780
null
null
[ "c#", ".net", "wpf", "layout" ]
4,508,793
1
4,508,953
null
2
1,421
I am creating a database for my local photos with a web interface, where I want to be able tag images and rotate them, amongst other things. When implementing tags (just like Facebook's tagging system) I have come across a problematic area. Namely: Let's say I have tagged an image of (not) me: ![original image, with tag](https://i.stack.imgur.com/qm7Tu.jpg) And when I have rotated it, I want the tag coordinates to rotate with the image, like so: ![rotated image, tag rotated relative to image](https://i.stack.imgur.com/gUndX.jpg) Here is my problem. I store the coordinates in the database (x, y) in the CSS coordinate system, ie left/top instead of the mathematical left/bottom. (It might not be too big of an issue?) The next big issue is that when I rotate around the center (the point [0,0]) I get negative coordinates. From, for example, [100, 100] to [-100, -100]. This is not correct because when I rotate an image, I don't get negative coordinates. The coordinate system is only positive. All my rotation code has been using the vector rotation formula: ``` $nx = $x * cos(deg2rad($rotation_angle)) - $y * sin(deg2rad($rotation_angle)); $ny = $x * sin(deg2rad($rotation_angle)) + $y * cos(deg2rad($rotation_angle)); ``` My question is: How do I solve this? I have tried just using `abs` to turn the negative values to positive, but it results in the wrong coordinates.
Point rotation relative to image coordinates
CC BY-SA 2.5
null
2010-12-22T11:40:52.493
2010-12-22T12:00:34.387
null
null
224,732
[ "math", "tags", "rotation", "coordinates" ]
4,508,991
1
null
null
5
290
I´m making some pdf reports to be used on a web app. I wonder if the way I´m taking to make the designs is appropriated. This would be a screenshot of the way I´m doing the things. ![alt text](https://i.stack.imgur.com/g3qZm.png) As you can see, I´m using tables to position everything in the document. I think this is a pretty much similar design to HTML. But I want to know is there is a better way to get the same result I got. This is the document without cell borders: ![alt text](https://i.stack.imgur.com/C5ndd.png) I could post the code if necessary. By the way, why should I spend long hours programming these kind of stuff with iText tool when I could do things faster and maybe better looking with iReport? I like iText, it´s just a question. Sorry for my english and thanks!
Is this a correct iText design?
CC BY-SA 2.5
null
2010-12-22T12:05:53.170
2010-12-22T17:52:29.380
2010-12-22T17:52:29.380
521,728
521,728
[ "java", "itext" ]
4,509,115
1
null
null
7
2,388
So, uh, ok. This might get mathematical, so hope you brought your scientific calculator with you ;) This is my problem: ![alt text](https://i.stack.imgur.com/P2yYJ.gif) Given an initial date (timestamp), time period period (seconds) and today's date (timestamp), I need to find the nearest date which coincides with the period*n plus the original/initial date. So far, I got some stuff working nicely, such as the amount of "periods" between the initial and final(today's) date, which would be "2" in the demo above: ``` $initial=strtotime('2 April 1991'); $time=time(); $period=strtotime('+10 years',0); $periods=round(($time-$initial)/$period); ``` The next thing I did was: ``` $range=$periods*$period; ``` And finally: ``` echo date('d M Y',$initial+$range); ``` Which wrote '03 April 2011'. How did it get to 3? (I suspect it's a leap year issue?) You know that feeling when you're missing something small? I'm feeling it all over me right now....
PHP Find date nearest to a timeline period
CC BY-SA 2.5
0
2010-12-22T12:23:03.830
2010-12-22T13:23:03.547
null
null
314,056
[ "php", "date", "range", "period" ]
4,509,030
1
null
null
1
940
I've kinda finished my application for a school project but have run into a major "bug". It's a account management application. Picture: ![alt text](https://i.stack.imgur.com/hWPp4.png) Here's the problem when i click on the plus sign, i push a nav controller to load another view to handle the adding and deleting of categories. When i add and return back to the view above, it doesn't update. It only updates after i hit the button on the right which is another view used to change some settings, and return back to the page. I did some research on viewWillAppear and such but I'm still confused to why it doesn't work properly. This problem is also affecting my program when i delete a category, and return back to this view it crashes cos the view has not reloaded successfully. I will get this error when deleting and returning to the view. " -[NSMutableArray objectAtIndex:]: index 4 beyond bounds [0 .. 3]'". --- [EDIT] Table View Code: ``` @class LoginViewController; @implementation CategoryTableViewController @synthesize categoryTableViewController; @synthesize categoryArray; @synthesize accountsTableViewController; @synthesize editAccountTable; @synthesize window; CategoryMgmtTableController *categoryMgmtTableController; ChangePasswordView *changePasswordView; - (void) save_Clicked:(id)sender { /* UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Category Management" message:@"Load category management table view" delegate:self cancelButtonTitle: @"OK" otherButtonTitles:nil]; [alert show]; [alert release]; */ KeyCryptAppAppDelegate *appDelegate = (KeyCryptAppAppDelegate *)[[UIApplication sharedApplication] delegate]; categoryMgmtTableController = [[CategoryMgmtTableController alloc]initWithNibName:@"CategoryMgmtTable" bundle:nil]; [appDelegate.categoryNavController pushViewController:categoryMgmtTableController animated:YES]; } - (void) change_Clicked:(id)sender { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Change Password" message:@"Change password View" delegate:self cancelButtonTitle: @"OK" otherButtonTitles:nil]; [alert show]; [alert release]; KeyCryptAppAppDelegate *appDelegate = (KeyCryptAppAppDelegate *)[[UIApplication sharedApplication] delegate]; changePasswordView = [[ChangePasswordView alloc]initWithNibName:@"ChangePasswordView" bundle:nil]; [appDelegate.categoryNavController pushViewController:changePasswordView animated:YES]; /* KeyCryptAppAppDelegate *appDelegate = (KeyCryptAppAppDelegate *)[[UIApplication sharedApplication] delegate]; categoryMgmtTableController = [[CategoryMgmtTableController alloc]initWithNibName:@"CategoryMgmtTable" bundle:nil]; [appDelegate.categoryNavController pushViewController:categoryMgmtTableController animated:YES]; */ } #pragma mark - #pragma mark Initialization /* - (id)initWithStyle:(UITableViewStyle)style { // Override initWithStyle: if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. if ((self = [super initWithStyle:style])) { } return self; } */ -(void) initializeCategoryArray { sqlite3 *db= [KeyCryptAppAppDelegate getNewDBConnection]; KeyCryptAppAppDelegate *appDelegate = (KeyCryptAppAppDelegate *)[[UIApplication sharedApplication] delegate]; const char *sql = [[NSString stringWithFormat:(@"Select Category from Categories;")]cString]; const char *cmd = [[NSString stringWithFormat:@"pragma key = '%@' ", appDelegate.pragmaKey]cString]; sqlite3_stmt *compiledStatement; sqlite3_exec(db, cmd, NULL, NULL, NULL); if (sqlite3_prepare_v2(db, sql, -1, &compiledStatement, NULL)==SQLITE_OK) { while(sqlite3_step(compiledStatement) == SQLITE_ROW) [categoryArray addObject:[NSString stringWithUTF8String:(char*) sqlite3_column_text(compiledStatement, 0)]]; } else { NSAssert1(0,@"Error preparing statement", sqlite3_errmsg(db)); } sqlite3_finalize(compiledStatement); } #pragma mark - #pragma mark View lifecycle - (void)viewDidLoad { // Uncomment the following line to display an Edit button in the navigation bar for this view controller. // self.navigationItem.rightBarButtonItem = self.editButtonItem; [super viewDidLoad]; } - (void)viewWillAppear:(BOOL)animated { self.title = NSLocalizedString(@"Categories",@"Types of Categories"); categoryArray = [[NSMutableArray alloc]init]; [self initializeCategoryArray]; self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(save_Clicked:)] autorelease]; self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(change_Clicked:)] autorelease]; [super viewWillAppear:animated]; } - (void)viewDidAppear:(BOOL)animated { NSLog (@"view did appear"); [super viewDidAppear:animated]; } - (void)viewWillDisappear:(BOOL)animated { NSLog (@"view will disappear"); [super viewWillDisappear:animated]; } - (void)viewDidDisappear:(BOOL)animated { [categoryTableView reloadData]; NSLog (@"view did disappear"); [super viewDidDisappear:animated]; } /* // Override to allow orientations other than the default portrait orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationPortrait); } */ #pragma mark - #pragma mark Table view data source - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. return [self.categoryArray count]; } // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } // Configure the cell... NSUInteger row = [indexPath row]; cell.text = [categoryArray objectAtIndex:row]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; return cell; } /* // Override to support conditional editing of the table view. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { // Return NO if you do not want the specified item to be editable. return YES; } */ /* // Override to support editing the table view. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Delete the row from the data source [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES]; } else if (editingStyle == UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } */ /* // Override to support rearranging the table view. - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { } */ /* // Override to support conditional rearranging of the table view. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { // Return NO if you do not want the item to be re-orderable. return YES; } */ #pragma mark - #pragma mark Table view delegate - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSString *selectedCategory = [categoryArray objectAtIndex:[indexPath row]]; NSLog (@"AccountsTableView.xib is called."); if ([categoryArray containsObject: selectedCategory]) { if (self.accountsTableViewController == nil) { AccountsTableViewController *aAccountsView = [[AccountsTableViewController alloc]initWithNibName:@"AccountsTableView"bundle:nil]; self.accountsTableViewController =aAccountsView; [aAccountsView release]; } NSInteger row =[indexPath row]; accountsTableViewController.title = [NSString stringWithFormat:@"%@", [categoryArray objectAtIndex:row]]; // This portion pushes the categoryNavController. KeyCryptAppAppDelegate *delegate = [[UIApplication sharedApplication] delegate]; [self.accountsTableViewController initWithTextSelected:selectedCategory]; KeyCryptAppAppDelegate *appDelegate = (KeyCryptAppAppDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.pickedCategory = selectedCategory; [delegate.categoryNavController pushViewController:accountsTableViewController animated:YES]; } } #pragma mark - #pragma mark Memory management - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; // Relinquish ownership any cached data, images, etc that aren't in use. } - (void)viewDidUnload { // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand. // For example: self.myOutlet = nil; } - (void)dealloc { [accountsTableViewController release]; [super dealloc]; } @end ``` And the code that i used to delete rows(this is in a totally different tableview): ``` - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Delete the row from the data source NSString *selectedCategory = [categoryArray objectAtIndex:indexPath.row]; [categoryArray removeObjectAtIndex:indexPath.row]; [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES]; [deleteCategoryTable reloadData]; //NSString *selectedCategory = [categoryArray objectAtIndex:indexPath.row]; sqlite3 *db= [KeyCryptAppAppDelegate getNewDBConnection]; KeyCryptAppAppDelegate *appDelegate = (KeyCryptAppAppDelegate *)[[UIApplication sharedApplication] delegate]; const char *sql = [[NSString stringWithFormat:@"Delete from Categories where Category = '%@';", selectedCategory]cString]; const char *cmd = [[NSString stringWithFormat:@"pragma key = '%@' ", appDelegate.pragmaKey]cString]; sqlite3_stmt *compiledStatement; sqlite3_exec(db, cmd, NULL, NULL, NULL); if (sqlite3_prepare_v2(db, sql, -1, &compiledStatement, NULL)==SQLITE_OK) { sqlite3_exec(db,sql,NULL,NULL,NULL); } else { NSAssert1(0,@"Error preparing statement", sqlite3_errmsg(db)); } sqlite3_finalize(compiledStatement); } else if (editingStyle == UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } ```
UITableview has problem reloading
CC BY-SA 2.5
null
2010-12-22T12:12:26.073
2010-12-22T13:41:08.753
2010-12-22T13:41:08.753
106,435
524,099
[ "iphone", "objective-c", "uitableview" ]
4,509,123
1
4,651,979
null
0
1,849
I have problem with using next two properties together in one Air application, I need some functionality for show my application in full screen and scale for different displays. I mean , if user has 17" and other has 24" display my app should save proportionals. So, I've start to use these two properties StageScaleMode.SHOW_ALL StageDisplayState.FULL_SCREEN and see that internal canvas (buffer) is bigger than external, please see on the pictures the firs just StageDisplayState.FULL_SCREEN and the second StageDisplayState.FULL_SCREEN and StageScaleMode.SHOW_ALL. ![First Picture](https://i.stack.imgur.com/Z36uq.jpg) ![Second Picture](https://i.stack.imgur.com/3sxxQ.png) Could you help me and say How to fix this problem? Thanks.
Adobe Air application and {StageScaleMode.SHOW_ALL StageDisplayState.FULL_SCREEN}
CC BY-SA 2.5
null
2010-12-22T12:24:02.380
2013-02-01T17:54:30.887
null
null
272,774
[ "apache-flex", "flash", "air", "fullscreen" ]
4,509,237
1
4,509,325
null
1
18,297
I have embed the fullcalender control in my asp.net mvc application. It is running fine locally. but when I uploads it to my domain server (third party) it showing me This Error: Uncaught TypeError: Object # has no method 'fullCalendar' in crome console (debugger). and not rendering the control. ``` ** EDITED: My HTML code is this ** ``` " %> Index <% var serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); %> < style type='text/css'> ``` body { margin-top: 40px; text-align: center; font-size: 14px; font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif; } #calendar { width: 900px; margin: 0 auto; } ``` < script type="text/javascript"> ``` $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var officerid = document.getElementById('officerid').value; url = "/TasksToOfficer/Calender/" + officerid; var currenteventIden = <%= serializer.Serialize( ViewData["iden"] ) %> var calendar = $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay', border: 0 }, eventClick: function(event, element) { var title = prompt('Event Title:', event.title, { buttons: { Ok: true, Cancel: false} }); var iden = event.id; if (title) { var st = event.start; var ed = event.end; var aldy = event.allDay; var dt = event.date; event.title = title; calendar.fullCalendar('updateEvent',event); var date = new Date(st); var NextMonth = date.getMonth() + 1; var dateString = (date.getDate()) + '/' + NextMonth + '/' + date.getFullYear(); var QueryStringForEdit=null; QueryStringForEdit="officerid=" + officerid + "&description=" + title + "&date=" + dateString + "&IsForUpdate=true&iden=" + iden; if (officerid) { $.ajax( { type: "POST", url: "/TasksToOfficer/Create", data: QueryStringForEdit, success: function(result) { if (result.success) $("#feedback input").attr("value", ""); // clear all the input fields on success }, error: function(req, status, error) { } }); } } }, selectable: true, selectHelper: true, select: function(start, end, allDay) { var title = prompt('Event Title:', { buttons: { Ok: true, Cancel: false } } ); if (title) { calendar.fullCalendar('renderEvent', { title: title, start: start, end: end, allDay: allDay }, false); // This is false , because do not show same event on same date after render from server side. var date = new Date(start); var NextMonth = date.getMonth() + 1; // Reason: it is bacause of month array it starts from 0 var dateString = (date.getDate()) + '/' + NextMonth + '/' + date.getFullYear(); if (officerid) { $.ajax({ type: "POST", url: "/TasksToOfficer/Create", data: "officerid=" + officerid + "&description=" + title + "&date=" + dateString + "&IsForUpdate=false", success: function(result) { if (result.success) $("#feedback input").attr("value", ""); //$("#feedback_status").slideDown(250).text(result.message); }, error: function(req, status, error) { } }); } } calendar.fullCalendar('unselect'); }, editable: true, events: url }); }); //--------------------------------------------------------------------------// </script > <h2> Index</h2> <div id="calendar"> </div> <input id="officerid" type="hidden" value="<%=ViewData["officerid"].ToString()%>" /> ``` ![alt text](https://i.stack.imgur.com/DggDU.jpg) ![alt text](https://i.stack.imgur.com/eg8MA.jpg)
Uncaught TypeError: Object #<an Object> has no method 'fullCalendar'
CC BY-SA 2.5
0
2010-12-22T12:39:01.510
2015-03-15T17:22:09.497
2010-12-23T10:31:53.700
165,309
165,309
[ "javascript", "asp.net", "ajax", "jquery" ]
4,510,079
1
4,511,402
null
6
134
What is the best way, or existing snipets/libs (free/open source) of doing something like this ![alt text](https://i.stack.imgur.com/q5k1m.png) Technologies I would like to have in this is jquery, CSS3. etc..
feedback on webpage
CC BY-SA 2.5
0
2010-12-22T14:19:07.943
2010-12-22T16:39:18.507
2020-06-20T09:12:55.060
-1
5,369
[ "jquery", "jquery-ui", "jquery-plugins", "css" ]
4,510,360
1
6,456,442
null
4
3,891
I'm building a CKEditor 3.x plug-in that allows certain sections of HTML to be conditionally displayed by a separate viewer application that is tied in to our back-end systems. My CKEditor plug-in will be used to define these conditions, but I'm getting stuck on how to dynamically add UI elements to the plug-in dialog. ![alt text](https://i.stack.imgur.com/TthJe.jpg) After I select the 'AND' option in the last select UI element (see the screenshot), I want to dynamically add another 3 select UI elements, similiar to the first 3 select's. I've trawled through this forum and the plug-in tutorials and I haven't been able to figure it out. All the examples I looked at only have static dialog definitions. Any help with this would be appreciated.
CKEditor 3.x - Dynamically add UI elements to plugin dialog
CC BY-SA 2.5
0
2010-12-22T14:49:16.257
2011-06-23T15:17:26.043
null
null
328,747
[ "plugins", "dynamic", "dialog", "ckeditor" ]
4,510,585
1
4,510,622
null
5
10,093
I need to create black iphone like gradient in my android application. Please view black gradient at the top in the image below. How to do it? Thanks ![alt text](https://i.stack.imgur.com/7csI5.png)
Android create iphone-like Gradient
CC BY-SA 2.5
0
2010-12-22T15:16:05.830
2013-04-07T07:23:07.720
null
null
340,002
[ "android", "gradient" ]
4,510,579
1
4,517,941
null
3
2,171
I am trying to create an application that contains a StyledText box displayed within a ScrolledComposite. I am having difficulties displaying a large number of lines in my StyledText box (over 2,550 seems to cause issues). The StyledText box must not itself have a scroll bar but must be scrollable via the ScrolledComposite. As there are other items below and above the StyledText that need to be scrollable to and I do not want multiple scroll bars. Hence with large amounts of data I have a very large (as in height) StyledText box that seems to stop after a certain height. ![Screenshot](https://i.stack.imgur.com/WysAM.png) The issue is that the StyledText should be as tall is its contents and it is not. The reason for the gap underneath is that the containing composite is resizing what StyledText reports to be its height but this is not in fact its height. Here is a piece of simplified example code to illustrate my issue: ``` import org.eclipse.swt.SWT; import org.eclipse.swt.custom.ScrolledComposite; import org.eclipse.swt.custom.StyledText; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class ExpandBox2 { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("Example"); shell.setLayout(new FillLayout()); ScrolledComposite scrolledComposite = new ScrolledComposite(shell, SWT.V_SCROLL); scrolledComposite.setLayout(new FillLayout(SWT.VERTICAL)); Composite mainComp = new Composite(scrolledComposite, SWT.NONE); mainComp.setLayout(new FillLayout(SWT.VERTICAL)); StyledText styledText = new StyledText(mainComp, SWT.NONE); styledText.getContent().setText(bigString()); mainComp.setSize(mainComp.computeSize(SWT.DEFAULT, SWT.DEFAULT)); scrolledComposite.setContent(mainComp); scrolledComposite.setMinSize(mainComp.computeSize(SWT.DEFAULT, SWT.DEFAULT)); scrolledComposite.setExpandHorizontal(true); scrolledComposite.setExpandVertical(true); scrolledComposite.getVerticalBar().setIncrement(10); shell.setSize(400, 350); shell.open(); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) { display.sleep (); } } display.dispose(); } private static String bigString() { String big = ""; for(int i=0;i<10000;i++) { big = big + "hello\r\n"; } return big; } } ``` Update: Interestingly this problem occurs with SWT Label and SWT Text
Does SWT StyledText have a height limit?
CC BY-SA 2.5
null
2010-12-22T15:14:58.203
2011-08-12T01:23:10.297
2011-01-06T11:22:29.997
479,128
479,128
[ "java", "eclipse", "swt", "styledtext", "scrolledcomposite" ]
4,510,727
1
4,510,798
null
6
384
I want to position a div in the middle of the page. The solution I found on the internet assumes that the div will be of static size. I need the div to be in the middle, if the content is the right size, but if it is over the size of the div, it should become bigger, and eventually allow scrolling without changing the width. PS: I don't need support for IE, just XULRunner (Firefox) and Webkit based browsers. ![How I want to do it](https://i.stack.imgur.com/Uovts.png) ![alt text](https://i.stack.imgur.com/ttAyi.png)
Positioning a div in the centre but with dynamic height?
CC BY-SA 2.5
0
2010-12-22T15:33:38.717
2010-12-22T19:18:38.977
2010-12-22T16:24:52.413
160,868
160,868
[ "html", "css" ]
4,510,878
1
4,511,044
null
1
238
I have seem some cool Structural Highlighting in Visual Studio (might be using CodeKana). Can I achieve same type of Structural Highlighting in vim ? For any language. I am a python developer I would love to have it for Python. ![alt text](https://i.stack.imgur.com/xybKs.gif)
Structural Highlighting in Vim
CC BY-SA 2.5
0
2010-12-22T15:47:45.383
2010-12-22T16:19:18.167
null
null
537,488
[ "visual-studio", "vim", "coding-style", "highlighting" ]
4,510,789
1
null
null
3
3,417
I have a little problem: the Winform control (that contains between others WPF) suddenly stopped to be displayed in Designer. ![alt text](https://i.stack.imgur.com/kDr7e.png) Message: > Events cannot be set on the object passed to the event binding service because a site associated with the object could not be located. Call Stack: > at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAttachEventStatement(IDesignerSerializationManager manager, CodeAttachEventStatement statement) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement) Where could be the problem? InitializeComponent code ``` Private Sub InitializeComponent() Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(PlanDeLigne)) Dim Appearance1 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance2 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance3 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance4 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance5 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance6 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance7 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance8 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance9 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance10 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance11 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Dim Appearance12 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance() Me.mnbMenu = New System.Windows.Forms.ToolStrip() Me.mncMode = New System.Windows.Forms.ToolStripComboBox() Me.mnbSeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.mnbAdd = New System.Windows.Forms.ToolStripButton() Me.mnbDelete = New System.Windows.Forms.ToolStripButton() Me.mnbSeparator2 = New System.Windows.Forms.ToolStripSeparator() Me.mnbDropDownAction = New System.Windows.Forms.ToolStripDropDownButton() Me.mnbDropDownActionSens = New System.Windows.Forms.ToolStripMenuItem() Me.mnbDropDownActionSeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.mnbDropDownActionDistances = New System.Windows.Forms.ToolStripMenuItem() Me.mnbDropDownActionSeparator2 = New System.Windows.Forms.ToolStripSeparator() Me.mnbDropDownActionArretsPhysiques = New System.Windows.Forms.ToolStripMenuItem() Me.mnbSeparator3 = New System.Windows.Forms.ToolStripSeparator() Me.mnbSelectionZoom = New System.Windows.Forms.ToolStripButton() Me.mnbCancelZoom = New System.Windows.Forms.ToolStripButton() Me.mnbSeparator4 = New System.Windows.Forms.ToolStripSeparator() Me.mnbParametrage = New System.Windows.Forms.ToolStripButton() Me.mncSPlacerArret = New System.Windows.Forms.ToolStripMenuItem() Me.mncSSeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.mncSImage = New System.Windows.Forms.ToolStripMenuItem() Me.mncSDefinirLastArret = New System.Windows.Forms.ToolStripMenuItem() Me.mncSSeparator2 = New System.Windows.Forms.ToolStripSeparator() Me.mncSSupprimerArrets = New System.Windows.Forms.ToolStripMenuItem() Me.mncSInsererArret = New System.Windows.Forms.ToolStripMenuItem() Me.mncSSeparator3 = New System.Windows.Forms.ToolStripSeparator() Me.mncSInformations = New System.Windows.Forms.ToolStripMenuItem() Me.mncSSupprimerSegment = New System.Windows.Forms.ToolStripMenuItem() Me.mncSSeparator4 = New System.Windows.Forms.ToolStripSeparator() Me.mncSBatirTroncon = New System.Windows.Forms.ToolStripMenuItem() Me.mncTInformations = New System.Windows.Forms.ToolStripMenuItem() Me.mncTDistances = New System.Windows.Forms.ToolStripMenuItem() Me.mncTSeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.mncTTempsDeParcours = New System.Windows.Forms.ToolStripMenuItem() Me.mncTSeparator2 = New System.Windows.Forms.ToolStripSeparator() Me.mncTCreerSensInverse = New System.Windows.Forms.ToolStripMenuItem() Me.mncTSeparator3 = New System.Windows.Forms.ToolStripSeparator() Me.mncTSupprimerTroncon = New System.Windows.Forms.ToolStripMenuItem() Me.mncTBatirItineraire = New System.Windows.Forms.ToolStripMenuItem() Me.mncIInformations = New System.Windows.Forms.ToolStripMenuItem() Me.mncISeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.mncISupprimerItineraire = New System.Windows.Forms.ToolStripMenuItem() Me.SplitContainer = New System.Windows.Forms.SplitContainer() Me.ElementHost1 = New System.Windows.Forms.Integration.ElementHost() Me._StopsCanvas = New Keolis.ctlWpfPlanDeLigne.StopsCanvas() Me.lblTitreCreation = New MyNamespace.ctlComponents.Label() Me.Panel1 = New System.Windows.Forms.Panel() Me.btnOk = New MyNamespace.ctlComponents.Button() Me.btnAnnuler = New MyNamespace.ctlComponents.Button() Me.grdCreation = New MyNamespace.ctlWinGrid.WinGrid() Me.mnbMenu.SuspendLayout() CType(Me.SplitContainer, System.ComponentModel.ISupportInitialize).BeginInit() Me.SplitContainer.Panel1.SuspendLayout() Me.SplitContainer.Panel2.SuspendLayout() Me.SplitContainer.SuspendLayout() Me.Panel1.SuspendLayout() CType(Me.grdCreation, System.ComponentModel.ISupportInitialize).BeginInit() Me.SuspendLayout() ' 'mnbMenu ' Me.mnbMenu.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden Me.mnbMenu.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.mncMode, Me.mnbSeparator1, Me.mnbAdd, Me.mnbDelete, Me.mnbSeparator2, Me.mnbDropDownAction, Me.mnbSeparator3, Me.mnbSelectionZoom, Me.mnbCancelZoom, Me.mnbSeparator4, Me.mnbParametrage}) Me.mnbMenu.Location = New System.Drawing.Point(0, 0) Me.mnbMenu.Name = "mnbMenu" Me.mnbMenu.Size = New System.Drawing.Size(605, 25) Me.mnbMenu.TabIndex = 2 ' 'mncMode ' Me.mncMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList Me.mncMode.Name = "mncMode" Me.mncMode.Size = New System.Drawing.Size(121, 25) Me.mncMode.ToolTipText = "Mode du plan de ligne" ' 'mnbSeparator1 ' Me.mnbSeparator1.AutoSize = False Me.mnbSeparator1.Name = "mnbSeparator1" Me.mnbSeparator1.Size = New System.Drawing.Size(20, 25) ' 'mnbAdd ' Me.mnbAdd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image Me.mnbAdd.Image = CType(resources.GetObject("mnbAdd.Image"), System.Drawing.Image) Me.mnbAdd.ImageTransparentColor = System.Drawing.Color.Magenta Me.mnbAdd.Name = "mnbAdd" Me.mnbAdd.Size = New System.Drawing.Size(23, 22) Me.mnbAdd.Text = "Création Tronçon / Itinéraire" ' 'mnbDelete ' Me.mnbDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image Me.mnbDelete.Image = CType(resources.GetObject("mnbDelete.Image"), System.Drawing.Image) Me.mnbDelete.ImageTransparentColor = System.Drawing.Color.Magenta Me.mnbDelete.Name = "mnbDelete" Me.mnbDelete.Size = New System.Drawing.Size(23, 22) Me.mnbDelete.Text = "Supprimer les éléments sélectionnés" ' 'mnbSeparator2 ' Me.mnbSeparator2.AutoSize = False Me.mnbSeparator2.Name = "mnbSeparator2" Me.mnbSeparator2.Size = New System.Drawing.Size(20, 25) ' 'mnbDropDownAction ' Me.mnbDropDownAction.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image Me.mnbDropDownAction.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.mnbDropDownActionSens, Me.mnbDropDownActionSeparator1, Me.mnbDropDownActionDistances, Me.mnbDropDownActionSeparator2, Me.mnbDropDownActionArretsPhysiques}) Me.mnbDropDownAction.Image = CType(resources.GetObject("mnbDropDownAction.Image"), System.Drawing.Image) Me.mnbDropDownAction.ImageTransparentColor = System.Drawing.Color.Magenta Me.mnbDropDownAction.Name = "mnbDropDownAction" Me.mnbDropDownAction.Size = New System.Drawing.Size(29, 22) Me.mnbDropDownAction.Text = "Action sur le plan de ligne" ' 'mnbDropDownActionSens ' Me.mnbDropDownActionSens.Checked = True Me.mnbDropDownActionSens.CheckOnClick = True Me.mnbDropDownActionSens.CheckState = System.Windows.Forms.CheckState.Checked Me.mnbDropDownActionSens.Name = "mnbDropDownActionSens" Me.mnbDropDownActionSens.Size = New System.Drawing.Size(222, 22) Me.mnbDropDownActionSens.Text = "Afficher le sens" ' 'mnbDropDownActionSeparator1 ' Me.mnbDropDownActionSeparator1.Name = "mnbDropDownActionSeparator1" Me.mnbDropDownActionSeparator1.Size = New System.Drawing.Size(219, 6) ' 'mnbDropDownActionDistances ' Me.mnbDropDownActionDistances.Checked = True Me.mnbDropDownActionDistances.CheckOnClick = True Me.mnbDropDownActionDistances.CheckState = System.Windows.Forms.CheckState.Checked Me.mnbDropDownActionDistances.Name = "mnbDropDownActionDistances" Me.mnbDropDownActionDistances.Size = New System.Drawing.Size(222, 22) Me.mnbDropDownActionDistances.Text = "Afficher les distances" ' 'mnbDropDownActionSeparator2 ' Me.mnbDropDownActionSeparator2.Name = "mnbDropDownActionSeparator2" Me.mnbDropDownActionSeparator2.Size = New System.Drawing.Size(219, 6) ' 'mnbDropDownActionArretsPhysiques ' Me.mnbDropDownActionArretsPhysiques.Checked = True Me.mnbDropDownActionArretsPhysiques.CheckOnClick = True Me.mnbDropDownActionArretsPhysiques.CheckState = System.Windows.Forms.CheckState.Checked Me.mnbDropDownActionArretsPhysiques.Name = "mnbDropDownActionArretsPhysiques" Me.mnbDropDownActionArretsPhysiques.Size = New System.Drawing.Size(222, 22) Me.mnbDropDownActionArretsPhysiques.Text = "Afficher les arrêts physiques" ' 'mnbSeparator3 ' Me.mnbSeparator3.AutoSize = False Me.mnbSeparator3.Name = "mnbSeparator3" Me.mnbSeparator3.Size = New System.Drawing.Size(20, 25) ' 'mnbSelectionZoom ' Me.mnbSelectionZoom.CheckOnClick = True Me.mnbSelectionZoom.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image Me.mnbSelectionZoom.Image = CType(resources.GetObject("mnbSelectionZoom.Image"), System.Drawing.Image) Me.mnbSelectionZoom.ImageTransparentColor = System.Drawing.Color.Magenta Me.mnbSelectionZoom.Name = "mnbSelectionZoom" Me.mnbSelectionZoom.Size = New System.Drawing.Size(23, 22) Me.mnbSelectionZoom.Text = "Zoom par sélection" ' 'mnbCancelZoom ' Me.mnbCancelZoom.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image Me.mnbCancelZoom.Image = CType(resources.GetObject("mnbCancelZoom.Image"), System.Drawing.Image) Me.mnbCancelZoom.ImageTransparentColor = System.Drawing.Color.Magenta Me.mnbCancelZoom.Name = "mnbCancelZoom" Me.mnbCancelZoom.Size = New System.Drawing.Size(23, 22) Me.mnbCancelZoom.Text = "Annuler le zoom" ' 'mnbSeparator4 ' Me.mnbSeparator4.AutoSize = False Me.mnbSeparator4.Name = "mnbSeparator4" Me.mnbSeparator4.Size = New System.Drawing.Size(20, 25) ' 'mnbParametrage ' Me.mnbParametrage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image Me.mnbParametrage.Image = CType(resources.GetObject("mnbParametrage.Image"), System.Drawing.Image) Me.mnbParametrage.ImageTransparentColor = System.Drawing.Color.Magenta Me.mnbParametrage.Name = "mnbParametrage" Me.mnbParametrage.Size = New System.Drawing.Size(23, 22) Me.mnbParametrage.Text = "Paramétrage" ' 'mncSPlacerArret ' Me.mncSPlacerArret.Name = "mncSPlacerArret" Me.mncSPlacerArret.Size = New System.Drawing.Size(216, 22) Me.mncSPlacerArret.Text = "Placer un arrêt" ' 'mncSSeparator1 ' Me.mncSSeparator1.Name = "mncSSeparator1" Me.mncSSeparator1.Size = New System.Drawing.Size(213, 6) ' 'mncSImage ' Me.mncSImage.Name = "mncSImage" Me.mncSImage.Size = New System.Drawing.Size(216, 22) Me.mncSImage.Text = "Image..." ' 'mncSDefinirLastArret ' Me.mncSDefinirLastArret.Name = "mncSDefinirLastArret" Me.mncSDefinirLastArret.Size = New System.Drawing.Size(216, 22) Me.mncSDefinirLastArret.Text = "Définir comme dernier arrêt" ' 'mncSSeparator2 ' Me.mncSSeparator2.Name = "mncSSeparator2" Me.mncSSeparator2.Size = New System.Drawing.Size(213, 6) ' 'mncSSupprimerArrets ' Me.mncSSupprimerArrets.Name = "mncSSupprimerArrets" Me.mncSSupprimerArrets.Size = New System.Drawing.Size(216, 22) Me.mncSSupprimerArrets.Text = "Supprimer le ou les arrêts" ' 'mncSInsererArret ' Me.mncSInsererArret.Name = "mncSInsererArret" Me.mncSInsererArret.Size = New System.Drawing.Size(216, 22) Me.mncSInsererArret.Text = "Insérer un arrêt" ' 'mncSSeparator3 ' Me.mncSSeparator3.Name = "mncSSeparator3" Me.mncSSeparator3.Size = New System.Drawing.Size(213, 6) ' 'mncSInformations ' Me.mncSInformations.Name = "mncSInformations" Me.mncSInformations.Size = New System.Drawing.Size(216, 22) Me.mncSInformations.Text = "Modifier les informations" ' 'mncSSupprimerSegment ' Me.mncSSupprimerSegment.Name = "mncSSupprimerSegment" Me.mncSSupprimerSegment.Size = New System.Drawing.Size(216, 22) Me.mncSSupprimerSegment.Text = "Supprimer le segment" ' 'mncSSeparator4 ' Me.mncSSeparator4.Name = "mncSSeparator4" Me.mncSSeparator4.Size = New System.Drawing.Size(213, 6) ' 'mncSBatirTroncon ' Me.mncSBatirTroncon.Name = "mncSBatirTroncon" Me.mncSBatirTroncon.Size = New System.Drawing.Size(216, 22) Me.mncSBatirTroncon.Text = "Bâtir un tronçon" ' 'mncTInformations ' Me.mncTInformations.Name = "mncTInformations" Me.mncTInformations.Size = New System.Drawing.Size(201, 22) Me.mncTInformations.Text = "Modifier les informations" ' 'mncTDistances ' Me.mncTDistances.Name = "mncTDistances" Me.mncTDistances.Size = New System.Drawing.Size(201, 22) Me.mncTDistances.Text = "Modifier les distances" ' 'mncTSeparator1 ' Me.mncTSeparator1.Name = "mncTSeparator1" Me.mncTSeparator1.Size = New System.Drawing.Size(198, 6) ' 'mncTTempsDeParcours ' Me.mncTTempsDeParcours.Name = "mncTTempsDeParcours" Me.mncTTempsDeParcours.Size = New System.Drawing.Size(201, 22) Me.mncTTempsDeParcours.Text = "Temps de parcours" ' 'mncTSeparator2 ' Me.mncTSeparator2.Name = "mncTSeparator2" Me.mncTSeparator2.Size = New System.Drawing.Size(198, 6) ' 'mncTCreerSensInverse ' Me.mncTCreerSensInverse.Name = "mncTCreerSensInverse" Me.mncTCreerSensInverse.Size = New System.Drawing.Size(201, 22) Me.mncTCreerSensInverse.Text = "Créer le sens inverse" ' 'mncTSeparator3 ' Me.mncTSeparator3.Name = "mncTSeparator3" Me.mncTSeparator3.Size = New System.Drawing.Size(198, 6) ' 'mncTSupprimerTroncon ' Me.mncTSupprimerTroncon.Name = "mncTSupprimerTroncon" Me.mncTSupprimerTroncon.Size = New System.Drawing.Size(201, 22) Me.mncTSupprimerTroncon.Text = "Supprimer le tronçon" ' 'mncTBatirItineraire ' Me.mncTBatirItineraire.Name = "mncTBatirItineraire" Me.mncTBatirItineraire.Size = New System.Drawing.Size(201, 22) Me.mncTBatirItineraire.Text = "Bâtir un itinéraire" ' 'mncIInformations ' Me.mncIInformations.Name = "mncIInformations" Me.mncIInformations.Size = New System.Drawing.Size(201, 22) Me.mncIInformations.Text = "Modifier les informations" ' 'mncISeparator1 ' Me.mncISeparator1.Name = "mncISeparator1" Me.mncISeparator1.Size = New System.Drawing.Size(198, 6) ' 'mncISupprimerItineraire ' Me.mncISupprimerItineraire.Name = "mncISupprimerItineraire" Me.mncISupprimerItineraire.Size = New System.Drawing.Size(201, 22) Me.mncISupprimerItineraire.Text = "Supprimer l'itinéraires" ' 'SplitContainer ' Me.SplitContainer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D Me.SplitContainer.Dock = System.Windows.Forms.DockStyle.Fill Me.SplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2 Me.SplitContainer.Location = New System.Drawing.Point(0, 25) Me.SplitContainer.Name = "SplitContainer" ' 'SplitContainer.Panel1 ' Me.SplitContainer.Panel1.AutoScroll = True Me.SplitContainer.Panel1.Controls.Add(Me.ElementHost1) ' 'SplitContainer.Panel2 ' Me.SplitContainer.Panel2.Controls.Add(Me.lblTitreCreation) Me.SplitContainer.Panel2.Controls.Add(Me.Panel1) Me.SplitContainer.Panel2.Controls.Add(Me.grdCreation) Me.SplitContainer.Panel2MinSize = 0 Me.SplitContainer.Size = New System.Drawing.Size(605, 418) Me.SplitContainer.SplitterDistance = 428 Me.SplitContainer.SplitterWidth = 2 Me.SplitContainer.TabIndex = 1 ' 'ElementHost1 ' Me.ElementHost1.Dock = System.Windows.Forms.DockStyle.Fill Me.ElementHost1.Location = New System.Drawing.Point(0, 0) Me.ElementHost1.Name = "ElementHost1" Me.ElementHost1.Size = New System.Drawing.Size(424, 414) Me.ElementHost1.TabIndex = 0 Me.ElementHost1.Text = "ElementHost1" Me.ElementHost1.Child = Me._StopsCanvas ' 'lblTitreCreation ' Me.lblTitreCreation.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _ Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.lblTitreCreation.Location = New System.Drawing.Point(3, 4) Me.lblTitreCreation.Name = "lblTitreCreation" Me.lblTitreCreation.Size = New System.Drawing.Size(167, 16) Me.lblTitreCreation.TabIndex = 4 ' 'Panel1 ' Me.Panel1.AutoSize = True Me.Panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink Me.Panel1.Controls.Add(Me.btnOk) Me.Panel1.Controls.Add(Me.btnAnnuler) Me.Panel1.Dock = System.Windows.Forms.DockStyle.Bottom Me.Panel1.Location = New System.Drawing.Point(0, 385) Me.Panel1.Name = "Panel1" Me.Panel1.Size = New System.Drawing.Size(171, 29) Me.Panel1.TabIndex = 3 ' 'btnOk ' Me.btnOk.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.btnOk.BackColor = System.Drawing.SystemColors.Control Me.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.LightSlateGray Me.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.LightSteelBlue Me.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.btnOk.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.btnOk.ForeColor = System.Drawing.SystemColors.ControlText Me.btnOk.Location = New System.Drawing.Point(12, 3) Me.btnOk.Name = "btnOk" Me.btnOk.Size = New System.Drawing.Size(75, 23) Me.btnOk.TabIndex = 6 Me.btnOk.Text = "OK" Me.btnOk.UseVisualStyleBackColor = True ' 'btnAnnuler ' Me.btnAnnuler.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.btnAnnuler.BackColor = System.Drawing.SystemColors.Control Me.btnAnnuler.DialogResult = System.Windows.Forms.DialogResult.Cancel Me.btnAnnuler.FlatAppearance.MouseDownBackColor = System.Drawing.Color.LightSlateGray Me.btnAnnuler.FlatAppearance.MouseOverBackColor = System.Drawing.Color.LightSteelBlue Me.btnAnnuler.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.btnAnnuler.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.btnAnnuler.ForeColor = System.Drawing.SystemColors.ControlText Me.btnAnnuler.Location = New System.Drawing.Point(93, 3) Me.btnAnnuler.Name = "btnAnnuler" Me.btnAnnuler.Size = New System.Drawing.Size(75, 23) Me.btnAnnuler.TabIndex = 7 Me.btnAnnuler.Text = "Annuler" Me.btnAnnuler.UseVisualStyleBackColor = True ' 'grdCreation ' Me.grdCreation.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _ Or System.Windows.Forms.AnchorStyles.Left) _ Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.grdCreation.AutoResizeColumns = False Me.grdCreation.ColumnsFiltreActif = False Appearance1.BackColor = System.Drawing.SystemColors.Window Appearance1.BorderColor = System.Drawing.SystemColors.InactiveCaption Me.grdCreation.DisplayLayout.Appearance = Appearance1 Me.grdCreation.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid Me.grdCreation.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.[False] Appearance2.BackColor = System.Drawing.SystemColors.ActiveBorder Appearance2.BackColor2 = System.Drawing.SystemColors.ControlDark Appearance2.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical Appearance2.BorderColor = System.Drawing.SystemColors.Window Me.grdCreation.DisplayLayout.GroupByBox.Appearance = Appearance2 Appearance3.ForeColor = System.Drawing.SystemColors.GrayText Me.grdCreation.DisplayLayout.GroupByBox.BandLabelAppearance = Appearance3 Me.grdCreation.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid Appearance4.BackColor = System.Drawing.SystemColors.ControlLightLight Appearance4.BackColor2 = System.Drawing.SystemColors.Control Appearance4.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal Appearance4.ForeColor = System.Drawing.SystemColors.GrayText Me.grdCreation.DisplayLayout.GroupByBox.PromptAppearance = Appearance4 Me.grdCreation.DisplayLayout.MaxColScrollRegions = 1 Me.grdCreation.DisplayLayout.MaxRowScrollRegions = 1 Appearance5.BackColor = System.Drawing.SystemColors.Window Appearance5.ForeColor = System.Drawing.SystemColors.ControlText Me.grdCreation.DisplayLayout.Override.ActiveCellAppearance = Appearance5 Appearance6.BackColor = System.Drawing.SystemColors.Highlight Appearance6.ForeColor = System.Drawing.SystemColors.HighlightText Me.grdCreation.DisplayLayout.Override.ActiveRowAppearance = Appearance6 Me.grdCreation.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.[False] Me.grdCreation.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted Me.grdCreation.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted Appearance7.BackColor = System.Drawing.SystemColors.Window Me.grdCreation.DisplayLayout.Override.CardAreaAppearance = Appearance7 Appearance8.BorderColor = System.Drawing.Color.Silver Appearance8.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter Me.grdCreation.DisplayLayout.Override.CellAppearance = Appearance8 Me.grdCreation.DisplayLayout.Override.CellPadding = 0 Appearance9.BackColor = System.Drawing.SystemColors.Control Appearance9.BackColor2 = System.Drawing.SystemColors.ControlDark Appearance9.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element Appearance9.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal Appearance9.BorderColor = System.Drawing.SystemColors.Window Me.grdCreation.DisplayLayout.Override.GroupByRowAppearance = Appearance9 Appearance10.TextHAlignAsString = "Left" Me.grdCreation.DisplayLayout.Override.HeaderAppearance = Appearance10 Me.grdCreation.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti Me.grdCreation.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand Appearance11.BackColor = System.Drawing.SystemColors.Window Appearance11.BorderColor = System.Drawing.Color.Silver Me.grdCreation.DisplayLayout.Override.RowAppearance = Appearance11 Me.grdCreation.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.[False] Appearance12.BackColor = System.Drawing.SystemColors.ControlLight Me.grdCreation.DisplayLayout.Override.TemplateAddRowAppearance = Appearance12 Me.grdCreation.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill Me.grdCreation.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate Me.grdCreation.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy Me.grdCreation.Font = New System.Drawing.Font("Times New Roman", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.grdCreation.Location = New System.Drawing.Point(0, 23) Me.grdCreation.Name = "grdCreation" Me.grdCreation.PrintColumnsKey = Nothing Me.grdCreation.PrintRowsIndex = Nothing Me.grdCreation.PrintTitle = Nothing Me.grdCreation.RowsActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit Me.grdCreation.Size = New System.Drawing.Size(175, 391) Me.grdCreation.TabIndex = 5 Me.grdCreation.Tag = "" ' 'PlanDeLigne ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.Controls.Add(Me.SplitContainer) Me.Controls.Add(Me.mnbMenu) Me.MinimumSize = New System.Drawing.Size(605, 431) Me.Name = "PlanDeLigne" Me.Size = New System.Drawing.Size(605, 443) Me.mnbMenu.ResumeLayout(False) Me.mnbMenu.PerformLayout() Me.SplitContainer.Panel1.ResumeLayout(False) Me.SplitContainer.Panel2.ResumeLayout(False) Me.SplitContainer.Panel2.PerformLayout() CType(Me.SplitContainer, System.ComponentModel.ISupportInitialize).EndInit() Me.SplitContainer.ResumeLayout(False) Me.Panel1.ResumeLayout(False) CType(Me.grdCreation, System.ComponentModel.ISupportInitialize).EndInit() Me.ResumeLayout(False) Me.PerformLayout() End Sub ```
Designer issue in VS: Events cannot be set on the object passed to the event binding service
CC BY-SA 2.5
null
2010-12-22T15:39:51.897
2018-02-06T13:54:57.630
2010-12-22T15:51:38.760
185,593
185,593
[ ".net", "wpf", "visual-studio", "winforms", "designer" ]
4,511,195
1
4,598,332
null
2
953
I have a UIControl subclass which follows the UIAccessibilityContainer informal protocol: it returns NO to -isAccessibilityElement, delivers the correct -accessibilityElementCount and elements in the accessors. Each UIAccessibilityElement which is created to represent an accessibility region is created successfully, and the frame is a 1:1 mapping of another CGRect I'm drawing. E.g., I'm drawing into {94, 99}, {209, 350}} and the -accessibilityFrame on the UIAccessibilityElement is set to the same CGRect value. However, when in landscape (or upside-down portrait) orientation, the frames (only for accessibility elements, drawing still works fine) are rotated incorrectly. The top-left point relative to the frame is always the corner top-left of the home button. Here's a screenshot from the simulator: ![Screenshot](https://i.stack.imgur.com/xRckG.png) As you can see, it's in landscape mode, and the frame is totally impossibly not what it's specifying. Here's the code driving the creation of the elements: ``` CGRect localRect = someCGRectVariable; CGRect globalRect = CGRectOffset(localRect, CGRectGetMinX(self.accessibilityFrame), CGRectGetMinY(self.accessibilityFrame)); UIAccessibilityElement *accElem = [[UIAccessibilityElement alloc]initWithAccessibilityContainer:self]; accElem.isAccessibilityElement = YES; accElem.accessibilityFrame = globalRect; accElem.accessibilityHint = [NSString stringWithFormat:NSLocalizedString(@"xyz %@", nil), someName]; accElem.accessibilityTraits = UIAccessibilityTraitButton; accElem.accessibilityLabel = nameValue; ``` It looks to me like the rotation is busted, but I can't put my finger on it. It's worth noting that it works perfectly fine in portrait mode.
UIAccessoryElement, accessoryFrame and screen rotation broken
CC BY-SA 2.5
null
2010-12-22T16:19:55.827
2011-08-10T07:12:11.460
2010-12-22T16:25:37.227
30,461
551,420
[ "cocoa-touch", "ipad", "ios", "uikit", "accessibility" ]
4,511,226
1
4,511,325
null
0
829
How do I "combine" JButton with JComboBox and place it on a JToolbar, as shown in this image: ![alt text](https://i.stack.imgur.com/pmciN.png)?
How do I "combine" JButton with JComboBox?
CC BY-SA 2.5
0
2010-12-22T16:23:30.990
2010-12-25T16:15:01.427
2010-12-25T16:15:01.427
435,615
435,615
[ "java", "swing" ]
4,511,458
1
4,511,933
null
0
899
I am using the following to create an NSPopupButton programmatically: ``` ... NSPopUpButton *accessoryView = [[NSPopUpButton alloc] initWithFrame:NSMakeRect(0, 0, 100, 24) pullsDown:YES]; NSFont *aFont = [NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]; [accessoryView setBezelStyle:NSRecessedBezelStyle]; [accessoryView setFont:aFont]; [accessoryView setShowsBorderOnlyWhileMouseInside:YES]; [accessoryView setAutoresizingMask:NSViewMaxXMargin | NSViewMinYMargin]; NSArray *popupItems = [[NSArray alloc] initWithObjects:@"Your Account", @"Sign In", @"Create Account", nil]; [accessoryView addItemsWithTitles:popupItems]; ... ``` Now, when I add the NSPopUpButton to my view, I end up with the button's text overlapping the icon used for the dropdown menu. I have seen this previously when I use NSControl:setAlignment but I am not using this here. Here is the output: ![NSPopUpButton overlaps menu icon](https://i.stack.imgur.com/zsloE.png) Can anyone see what I'm doing wrong? Take care, Jeremy
NSPopUpButton text overlaps menu image
CC BY-SA 2.5
null
2010-12-22T16:45:21.657
2010-12-22T17:36:58.083
null
null
406,236
[ "cocoa" ]
4,511,464
1
null
null
-1
638
jQuery: How to make `real-time pager` depending on browser screen size without `content` refreshing? Example for it you can see in [http://www.nytimes.com/chrome/](http://www.nytimes.com/chrome/) ![alt text](https://i.stack.imgur.com/2jRpY.jpg) HTML and CSS in [http://jsfiddle.net/laukstein/qjGrV/](http://jsfiddle.net/laukstein/qjGrV/) ``` #content{ display:block; width:100%; height:40%; min-height:205px; max-height:408px; overflow:hidden; } li{ width:100px; height:100px; margin:1px; float:left; background:#ccc; } ... <ul id="content"> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> ... </ul> <div id="pager"><!--here lets show 1,2,3,4 etc. depending on screen size--></div> ```
jQuery: How to make `real-time pager` depending on browser screen size without `content` refreshing?
CC BY-SA 2.5
null
2010-12-22T16:46:01.890
2010-12-22T19:50:21.130
2010-12-22T19:50:21.130
351,900
351,900
[ "jquery", "paging", "pager", "data-paging" ]
4,511,625
1
null
null
0
982
What I am trying to do is learn how to animate various controls in Silverlight using Expression Blend. I've started with trying to animate a listbox. I have a listbox whose Style I have tried to edit (Edit Style ->Edit Current/Edit Copy) which brings up the states panel with various default states. What I am unable to figure out is how to link a state from the default list of states that shows up to a storyboard animation using only Expression blend. ![alt text](https://i.stack.imgur.com/7KsnM.png) So for example if I have a list of Music Albums where only the album name is displayed and on selecting it I want the selected list item to grow a bit in size so as to accomodate more details about the album... like artist name, release date, etc. Does anyone have any links that will explain how to achieve the above in a step by step way?.. or atleast some thing on how to go about learning the basics in the correct manner. Thanks
States Storyboards Animation in Expression Blend
CC BY-SA 2.5
null
2010-12-22T17:04:02.167
2011-07-09T07:30:06.663
2010-12-23T05:20:39.817
20,358
20,358
[ "silverlight", "expression-blend", "visualstatemanager", "visualstates" ]