question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,191,130 | 6,191,241 | Not trigger any events (e.g. click) when a specific input field loses focus | Let's say I have an input text field and a few anchor links. The user cursor is focused in the input text field. When the user clicks on one of the links outside this field, the input field loses focus and a click event is triggered (bad - I just want the first click outside to be an action to lose the focus of that in... | You should use onblur event listener on the text field that will put a flag to indicate that user just left this "magic" input. Then, check this flag in "onclick" events in anchors and if the flag is true, call "prevent default" (and/or return the focus to the input). Optionally clear the flag after a small timeout. | Not trigger any events (e.g. click) when a specific input field loses focus Let's say I have an input text field and a few anchor links. The user cursor is focused in the input text field. When the user clicks on one of the links outside this field, the input field loses focus and a click event is triggered (bad - I ju... | TITLE:
Not trigger any events (e.g. click) when a specific input field loses focus
QUESTION:
Let's say I have an input text field and a few anchor links. The user cursor is focused in the input text field. When the user clicks on one of the links outside this field, the input field loses focus and a click event is tri... | [
"jquery",
"jquery-events"
] | 0 | 1 | 821 | 1 | 0 | 2011-05-31T17:18:34.613000 | 2011-05-31T17:29:27.853000 |
6,191,136 | 6,191,268 | wxPython: Updating the label on wxStatic causes text to be incorrectly formated | I have a form that uses wxpython, one of the objects on the form displays the users windows logon name. self.stIwpcadmin = wx.StaticText(self.panelLower, -1, "NONE") Of course I don't know what the name is until runtime so I create a wxStatic object with the label of 'NONE', and then at runtime it gets the username and... | You need to force the sizer to redo its layout using the aptly-named Layout method. | wxPython: Updating the label on wxStatic causes text to be incorrectly formated I have a form that uses wxpython, one of the objects on the form displays the users windows logon name. self.stIwpcadmin = wx.StaticText(self.panelLower, -1, "NONE") Of course I don't know what the name is until runtime so I create a wxStat... | TITLE:
wxPython: Updating the label on wxStatic causes text to be incorrectly formated
QUESTION:
I have a form that uses wxpython, one of the objects on the form displays the users windows logon name. self.stIwpcadmin = wx.StaticText(self.panelLower, -1, "NONE") Of course I don't know what the name is until runtime so... | [
"wxpython"
] | 0 | 0 | 643 | 1 | 0 | 2011-05-31T17:19:31.030000 | 2011-05-31T17:31:43.243000 |
6,191,138 | 6,191,836 | How to see commits that were merged in to a merge commit? | If my-feature-branch was merged into my-main-branch, how can I see what commits were merged in from my-feature-branch? | If you want to see every commits merged in the last merge you can try that: git log $(git merge-base --octopus \ $(git log -1 --merges --pretty=format:%P)).. --boundary Here is an example of my current log: $ git log --graph --pretty=oneline --abbrev-commit * 44899b9 pouf * 8f49f9c Merge branch 'test' |\ | * 3db39ca te... | How to see commits that were merged in to a merge commit? If my-feature-branch was merged into my-main-branch, how can I see what commits were merged in from my-feature-branch? | TITLE:
How to see commits that were merged in to a merge commit?
QUESTION:
If my-feature-branch was merged into my-main-branch, how can I see what commits were merged in from my-feature-branch?
ANSWER:
If you want to see every commits merged in the last merge you can try that: git log $(git merge-base --octopus \ $(g... | [
"git",
"branch",
"git-merge",
"git-commit",
"git-log"
] | 71 | 51 | 36,705 | 3 | 0 | 2011-05-31T17:19:54.723000 | 2011-05-31T18:26:16.467000 |
6,191,140 | 6,220,131 | IOS Core Data with KVO - valueForKey: for custom property on an NSManagedObject subclass? | I have two NSManagedObject subclasses derived from entities, ActivityMember and Member. Member has a property called name, and ActivityMember, through a one to one relationship with Member, has a property called member. I am attempting to create a custom property on ActivityMember called name that simply exposes its me... | This one turned out to be pilot error. In my data model, I had not specified the class name for ActivityMember. Subtle, since other properties worked fine (the magic of reflection). | IOS Core Data with KVO - valueForKey: for custom property on an NSManagedObject subclass? I have two NSManagedObject subclasses derived from entities, ActivityMember and Member. Member has a property called name, and ActivityMember, through a one to one relationship with Member, has a property called member. I am attem... | TITLE:
IOS Core Data with KVO - valueForKey: for custom property on an NSManagedObject subclass?
QUESTION:
I have two NSManagedObject subclasses derived from entities, ActivityMember and Member. Member has a property called name, and ActivityMember, through a one to one relationship with Member, has a property called ... | [
"ios",
"core-data",
"key-value-observing"
] | 2 | 0 | 1,325 | 1 | 0 | 2011-05-31T17:19:59.497000 | 2011-06-02T20:39:02.457000 |
6,191,145 | 6,191,274 | Similar entities with different data | I'm evaluating the use of CRM 2011 to replace one of our existing LOB apps and have a question regarding custom entities. We have multiple entities which share some base information, but each entity would require different related entities depending on its 'type'. Also validation rules would change depending on the 'ty... | We had a similar issue where a couple of our entities needed the same field. We ended up creating a separate little program that went along and added the correct field to each entity. There isn't any form inheritance (like setting up a master form which propagates to it's children) unfortunately. And you can't copy for... | Similar entities with different data I'm evaluating the use of CRM 2011 to replace one of our existing LOB apps and have a question regarding custom entities. We have multiple entities which share some base information, but each entity would require different related entities depending on its 'type'. Also validation ru... | TITLE:
Similar entities with different data
QUESTION:
I'm evaluating the use of CRM 2011 to replace one of our existing LOB apps and have a question regarding custom entities. We have multiple entities which share some base information, but each entity would require different related entities depending on its 'type'. ... | [
"dynamics-crm",
"dynamics-crm-2011"
] | 4 | 2 | 2,577 | 4 | 0 | 2011-05-31T17:20:17.737000 | 2011-05-31T17:32:21.697000 |
6,191,146 | 6,191,382 | Variables in bash seq replacement ({1..10}) | Is it possible to do something like this: start=1 end=10 echo {$start..$end} # Ouput: {1..10} # Expected: 1 2 3... 10 (echo {1..10}) | In bash, brace expansion happens before variable expansion, so this is not directly possible. Instead, use an arithmetic for loop: start=1 end=10 for ((i=start; i<=end; i++)) do echo "i: $i" done OUTPUT i: 1 i: 2 i: 3 i: 4 i: 5 i: 6 i: 7 i: 8 i: 9 i: 10 | Variables in bash seq replacement ({1..10}) Is it possible to do something like this: start=1 end=10 echo {$start..$end} # Ouput: {1..10} # Expected: 1 2 3... 10 (echo {1..10}) | TITLE:
Variables in bash seq replacement ({1..10})
QUESTION:
Is it possible to do something like this: start=1 end=10 echo {$start..$end} # Ouput: {1..10} # Expected: 1 2 3... 10 (echo {1..10})
ANSWER:
In bash, brace expansion happens before variable expansion, so this is not directly possible. Instead, use an arithm... | [
"bash",
"seq"
] | 73 | 73 | 107,302 | 7 | 0 | 2011-05-31T17:20:22.063000 | 2011-05-31T17:42:50.777000 |
6,191,151 | 6,211,305 | DDD, BoundedContexts, Domain Events and Transactions | I am currently in the process of creating a Proof of Concept for a product/party administration system, based on the principles of DDD. One of the requirements is that the party data (customer, reseller) will be stored in a CRM on the web and the product specific data will be stored in a SQL database on premise (see be... | Besides my comment/question, there is fundamental issue with UnitOfWork approach you described. You'll run into a whole class of problems with one of the units committed and one failed. You will end up with a distributed transaction spanning two context. A better (subjectively) approach to bounded contexts, if you real... | DDD, BoundedContexts, Domain Events and Transactions I am currently in the process of creating a Proof of Concept for a product/party administration system, based on the principles of DDD. One of the requirements is that the party data (customer, reseller) will be stored in a CRM on the web and the product specific dat... | TITLE:
DDD, BoundedContexts, Domain Events and Transactions
QUESTION:
I am currently in the process of creating a Proof of Concept for a product/party administration system, based on the principles of DDD. One of the requirements is that the party data (customer, reseller) will be stored in a CRM on the web and the pr... | [
"domain-driven-design",
"ddd-repositories"
] | 1 | 1 | 1,524 | 1 | 0 | 2011-05-31T17:21:39.810000 | 2011-06-02T06:42:18.520000 |
6,191,156 | 6,206,242 | ASP.NET DllImport Causes App to Quit | I heavily suspect my problem is due to some security issue but here's the full description just in case I'm mistaken. I have a DLL that was originally written in C (not C++). I'm using DllImport to call the methods in this library. A declaration looks something like this: [DllImport(@"MyAntiquatedLibrary.dll") [Securit... | The issue ended up being that I wasn't initializing the C-API correctly. There is a function call which initializes the whole API and while I was doing that in my UnitTests, I forgot to do it in the webservice. Thank you all for your help though, I feel like I've learned a lot about the ASP.NET security model and.NET t... | ASP.NET DllImport Causes App to Quit I heavily suspect my problem is due to some security issue but here's the full description just in case I'm mistaken. I have a DLL that was originally written in C (not C++). I'm using DllImport to call the methods in this library. A declaration looks something like this: [DllImport... | TITLE:
ASP.NET DllImport Causes App to Quit
QUESTION:
I heavily suspect my problem is due to some security issue but here's the full description just in case I'm mistaken. I have a DLL that was originally written in C (not C++). I'm using DllImport to call the methods in this library. A declaration looks something lik... | [
"c#",
"asp.net",
"interop",
"dllimport"
] | 5 | 1 | 880 | 2 | 0 | 2011-05-31T17:22:39.547000 | 2011-06-01T18:55:11.657000 |
6,191,166 | 6,191,255 | Is it possible to let PowerShell interact with a console application? | Let say you have any console application that is easily to start, later when the console has been running for a while maybe it outputs something in the console window and wait for user interaction. Is it possible to let PowerShell answer to this output? So this is what I want to do in PowerShell: Start MyApp.exe Wait f... | You can use the normal.NET APIs for that from PowerShell, i.e. Process.Start, getting input and output stream of the process and act on that accordingly. Directly it is not possible. | Is it possible to let PowerShell interact with a console application? Let say you have any console application that is easily to start, later when the console has been running for a while maybe it outputs something in the console window and wait for user interaction. Is it possible to let PowerShell answer to this outp... | TITLE:
Is it possible to let PowerShell interact with a console application?
QUESTION:
Let say you have any console application that is easily to start, later when the console has been running for a while maybe it outputs something in the console window and wait for user interaction. Is it possible to let PowerShell a... | [
"powershell"
] | 3 | 6 | 1,117 | 1 | 0 | 2011-05-31T17:23:39 | 2011-05-31T17:30:38.663000 |
6,191,169 | 6,191,366 | NHibernate issue with assigned string ID and different case chars | I've a problem when save an entity with assigned string Id on NHibernate...I try to explain the issue with an example. Well, suppose to have an entity on database with ID "AAA", if I execute this statements ENTITYTYPE entity = Session.Get ("AAA"); ENTITYTYPE newentity = new ENTITYTYPE() { Id = "aaa" };
Session.Delete(... | I don't know if it is enought but you control it with something like this: public override bool Equals(object obj) { T other = obj as T; if (other == null) return false;
// handle the case of comparing two NEW objects bool otherIsTransient = Equals(other.Id, Guid.Empty); bool thisIsTransient = Equals(Id, Guid.Empty); ... | NHibernate issue with assigned string ID and different case chars I've a problem when save an entity with assigned string Id on NHibernate...I try to explain the issue with an example. Well, suppose to have an entity on database with ID "AAA", if I execute this statements ENTITYTYPE entity = Session.Get ("AAA"); ENTITY... | TITLE:
NHibernate issue with assigned string ID and different case chars
QUESTION:
I've a problem when save an entity with assigned string Id on NHibernate...I try to explain the issue with an example. Well, suppose to have an entity on database with ID "AAA", if I execute this statements ENTITYTYPE entity = Session.G... | [
"c#",
"nhibernate",
"session",
"save",
"identity"
] | 3 | 2 | 1,305 | 1 | 0 | 2011-05-31T17:23:47.347000 | 2011-05-31T17:41:51.637000 |
6,191,170 | 6,192,946 | Orchard CMS on Load Balanced web servers | I'm considering running Orchard CMS on load balanced servers. (Two web servers with hardware load balancers, and a SAN file share) I've been unable to find any info on this. I'm wondering if there will be update and cacheing issues - if pages are cached, will updates be propagated to the other server? I'm also wonderin... | You will need to define a machine key: http://orchardproject.net/docs/Setting-up-a-machine-key.ashx Other than that, if all the servers are working off the same share, you should be all set. There is no caching out of the box, but any modules that do caching will just cache everything on each server as needed. What wil... | Orchard CMS on Load Balanced web servers I'm considering running Orchard CMS on load balanced servers. (Two web servers with hardware load balancers, and a SAN file share) I've been unable to find any info on this. I'm wondering if there will be update and cacheing issues - if pages are cached, will updates be propagat... | TITLE:
Orchard CMS on Load Balanced web servers
QUESTION:
I'm considering running Orchard CMS on load balanced servers. (Two web servers with hardware load balancers, and a SAN file share) I've been unable to find any info on this. I'm wondering if there will be update and cacheing issues - if pages are cached, will u... | [
"asp.net",
"asp.net-mvc",
"asp.net-mvc-3",
"load-balancing",
"orchardcms"
] | 7 | 8 | 2,116 | 1 | 0 | 2011-05-31T17:23:47.630000 | 2011-05-31T20:07:42.593000 |
6,191,175 | 6,191,303 | Should I add .vs10x to source control? | After installed VS10x Code Map I found it created.vs10x files for all my projects. I opened these files in Notepad and found they contain nothing but the following text: This file contains Alternate Data Streams, storing configuration information used by CodeSMART 10 and VS10X Extensions. PLEASE DO NOT DELETE. Should I... | Mercurial doesn't support alternate data streams, so you could check the file in, however I don't think you should since it is related to user-specific tool config information. Treat it like a.suo or.user file and ignore it. | Should I add .vs10x to source control? After installed VS10x Code Map I found it created.vs10x files for all my projects. I opened these files in Notepad and found they contain nothing but the following text: This file contains Alternate Data Streams, storing configuration information used by CodeSMART 10 and VS10X Ext... | TITLE:
Should I add .vs10x to source control?
QUESTION:
After installed VS10x Code Map I found it created.vs10x files for all my projects. I opened these files in Notepad and found they contain nothing but the following text: This file contains Alternate Data Streams, storing configuration information used by CodeSMAR... | [
"version-control",
"mercurial"
] | 6 | 8 | 387 | 1 | 0 | 2011-05-31T17:24:03.337000 | 2011-05-31T17:35:18.750000 |
6,191,178 | 6,254,369 | Multiple Multi-Line Examples in SpecFlow Feature File | This seems like one of those questions that, if you know the answer, it's obvious, and if you don't, it's impossible... How do I include a table of multi-line examples in a SpecFlow feature file? My example would be: Given there is some invalid input: | input | | """ Multi-line example 1 because there are multiple line... | Well, it looks like this isn't possible according to a poster in the Google SpecFlow group. He also points out that I may have too much implementation in my behavior test, and maybe this fits into unit tests more appropriately. | Multiple Multi-Line Examples in SpecFlow Feature File This seems like one of those questions that, if you know the answer, it's obvious, and if you don't, it's impossible... How do I include a table of multi-line examples in a SpecFlow feature file? My example would be: Given there is some invalid input: | input | | ""... | TITLE:
Multiple Multi-Line Examples in SpecFlow Feature File
QUESTION:
This seems like one of those questions that, if you know the answer, it's obvious, and if you don't, it's impossible... How do I include a table of multi-line examples in a SpecFlow feature file? My example would be: Given there is some invalid inp... | [
"c#",
"specflow"
] | 1 | 3 | 12,966 | 3 | 0 | 2011-05-31T17:24:10.830000 | 2011-06-06T15:31:11.153000 |
6,191,181 | 6,191,223 | What's the best way to fix/replace xhtml entities grabbed from source code in C#? | Essentially, I'm grabbing source code which contains entities such as & and > which I would like to replace with & and >, respectively. A simple string replace would be completely exhaustive because there are hundreds of possible entities that could show up in the source code. Is there a built-in or standard way to do ... | Perhaps the WebUtility.HtmlDecode Method is what you're looking for The article gives an example using Powershell to call it HTMLDecode Sample - Using PowerShell <#.SYNOPSIS This script encodes and decodes an HTML String.DESCRIPTION This script used.NOTES File Name: Show-HtmlCoding.ps1 Author: Thomas Lee - tfl@psp.co.u... | What's the best way to fix/replace xhtml entities grabbed from source code in C#? Essentially, I'm grabbing source code which contains entities such as & and > which I would like to replace with & and >, respectively. A simple string replace would be completely exhaustive because there are hundreds of possible entities... | TITLE:
What's the best way to fix/replace xhtml entities grabbed from source code in C#?
QUESTION:
Essentially, I'm grabbing source code which contains entities such as & and > which I would like to replace with & and >, respectively. A simple string replace would be completely exhaustive because there are hundreds of... | [
"c#",
"xhtml"
] | 2 | 2 | 430 | 2 | 0 | 2011-05-31T17:24:26.627000 | 2011-05-31T17:27:54.613000 |
6,191,182 | 6,191,269 | WCF - any way to mark an attribute as ignored? | Basically if I have the following: [DataContract] public class Foo { [MyCustomAttribute(...)] [DataMember(IsRequired = true)] public int bar { get; set; } } How can I get it so that the MyCustomAttribute is ignored when the user generates the class using "Add Service Reference..." Basically, I don't want that attribute... | There is no way to have your attributes included in the code that gets generated by clients Reference: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ce241118-bc79-4788-a739-c445a52fcd1d | WCF - any way to mark an attribute as ignored? Basically if I have the following: [DataContract] public class Foo { [MyCustomAttribute(...)] [DataMember(IsRequired = true)] public int bar { get; set; } } How can I get it so that the MyCustomAttribute is ignored when the user generates the class using "Add Service Refer... | TITLE:
WCF - any way to mark an attribute as ignored?
QUESTION:
Basically if I have the following: [DataContract] public class Foo { [MyCustomAttribute(...)] [DataMember(IsRequired = true)] public int bar { get; set; } } How can I get it so that the MyCustomAttribute is ignored when the user generates the class using ... | [
"c#",
"wcf",
"attributes",
"service-reference"
] | 0 | 2 | 497 | 3 | 0 | 2011-05-31T17:24:28.313000 | 2011-05-31T17:31:48.720000 |
6,191,188 | 6,191,221 | Where are Smarty Template Variables Defined? | I am working on a program with a Smarty template, where do the $variables come from as I see no file they are pulling from in the html. Where do I find these variables so I can edit them. Similarly in Drupal, there are different variables available in different TPL files, because I see no includes, where is this inform... | Smarty variables are set in the business logic via $smarty->assign('firstName', 'Mike'); http://www.smarty.net/docsv2/en/api.assign You can check out the Smarty.class.php source to find out where they are actually stored (they're in a member variable named $tpl_vars ). | Where are Smarty Template Variables Defined? I am working on a program with a Smarty template, where do the $variables come from as I see no file they are pulling from in the html. Where do I find these variables so I can edit them. Similarly in Drupal, there are different variables available in different TPL files, be... | TITLE:
Where are Smarty Template Variables Defined?
QUESTION:
I am working on a program with a Smarty template, where do the $variables come from as I see no file they are pulling from in the html. Where do I find these variables so I can edit them. Similarly in Drupal, there are different variables available in diffe... | [
"php",
"smarty"
] | 3 | 1 | 909 | 3 | 0 | 2011-05-31T17:24:53.183000 | 2011-05-31T17:27:52.477000 |
6,191,192 | 6,206,117 | iOS friendly jQuery lightbox video player | I'm looking for a jQuery lightbox plugin that will be used to play a video. In the browser, clicking a thumbnail image of the video will open the lightbox modal and play the video, while tapping the thumbnail on a iOS device will bring up the standard iOS video player. Do you know of one that can achieve this result? | Have you tried orangebox? I bet that if you used youtube videos it would open up the ios youtube player. | iOS friendly jQuery lightbox video player I'm looking for a jQuery lightbox plugin that will be used to play a video. In the browser, clicking a thumbnail image of the video will open the lightbox modal and play the video, while tapping the thumbnail on a iOS device will bring up the standard iOS video player. Do you k... | TITLE:
iOS friendly jQuery lightbox video player
QUESTION:
I'm looking for a jQuery lightbox plugin that will be used to play a video. In the browser, clicking a thumbnail image of the video will open the lightbox modal and play the video, while tapping the thumbnail on a iOS device will bring up the standard iOS vide... | [
"jquery",
"ios",
"video",
"lightbox"
] | 2 | 3 | 5,284 | 2 | 0 | 2011-05-31T17:25:05.650000 | 2011-06-01T18:43:42.417000 |
6,191,194 | 6,191,250 | Can someone explain hashes in Perl? | Main Function: my %hash = {'inner1'=>{'foo'=>5}, 'inner2'=>{'bar'=>6}}; $object->State(0, %AMSValues); Sent to: sub State { my ($self, $state, %values) = @_; my $value = \%values; From what I know one should be a hash and the other is a pointer, but... It doesn't look like the picture is working so, $value = $value->{"... | use warnings; always. Your: my %hash = {'inner1'=>{'foo'=>5}, 'inner2'=>{'bar'=>6}}; is incorrect; {} generates an anonymous hash reference, and %hash gets a single key (that hash reference stringified) and a value of undef. You wanted: my %hash = ('inner1'=>{'foo'=>5}, 'inner2'=>{'bar'=>6}); As far as passing to subro... | Can someone explain hashes in Perl? Main Function: my %hash = {'inner1'=>{'foo'=>5}, 'inner2'=>{'bar'=>6}}; $object->State(0, %AMSValues); Sent to: sub State { my ($self, $state, %values) = @_; my $value = \%values; From what I know one should be a hash and the other is a pointer, but... It doesn't look like the pictur... | TITLE:
Can someone explain hashes in Perl?
QUESTION:
Main Function: my %hash = {'inner1'=>{'foo'=>5}, 'inner2'=>{'bar'=>6}}; $object->State(0, %AMSValues); Sent to: sub State { my ($self, $state, %values) = @_; my $value = \%values; From what I know one should be a hash and the other is a pointer, but... It doesn't lo... | [
"perl",
"function",
"pointers",
"hash"
] | 3 | 13 | 154 | 1 | 0 | 2011-05-31T17:25:06.443000 | 2011-05-31T17:30:20.607000 |
6,191,200 | 6,203,728 | jQplot dragable | I'm using jQplot within jQuery and am trying to make the points dragable. jqplot has this functionality through the jqplot.dragable plugin I should say that I am new to jQplot, but I do have it plotting my information correctly. I think that I am using the dragability option correctly. (Use that link and find 'dragable... | I was able to find the answer. 'dragable' is not a configuration option in the base of the jqplot object. 'dragable' is a configuration option within a 'series'. Also, the series must have 'isDragable' set to true. Here the modified code for the 'series' configuration option. series: [ { label: 'Importance', dragable: ... | jQplot dragable I'm using jQplot within jQuery and am trying to make the points dragable. jqplot has this functionality through the jqplot.dragable plugin I should say that I am new to jQplot, but I do have it plotting my information correctly. I think that I am using the dragability option correctly. (Use that link an... | TITLE:
jQplot dragable
QUESTION:
I'm using jQplot within jQuery and am trying to make the points dragable. jqplot has this functionality through the jqplot.dragable plugin I should say that I am new to jQplot, but I do have it plotting my information correctly. I think that I am using the dragability option correctly.... | [
"javascript",
"jquery",
"charts",
"jqplot"
] | 5 | 7 | 2,191 | 1 | 0 | 2011-05-31T17:25:26.997000 | 2011-06-01T15:29:33.693000 |
6,191,207 | 6,191,242 | Radio Input check or uncheck | I have a form that contains some Checkboxes and one Radio. The problem is that all the Checkboxes are controlled by a jQuery code to change the style. Every checkbox in that form will be styled because the jQuery code. But I was in need to have only one checkbox not styled. So I had to use a Radio. I have only one Radi... | The question is phrased in a very confusing way but I think you are asking how, from javascript, to set whether a radiobutton is checked or not. You can set myRadioButton.checked = false; or myRadioButton.checked = true; | Radio Input check or uncheck I have a form that contains some Checkboxes and one Radio. The problem is that all the Checkboxes are controlled by a jQuery code to change the style. Every checkbox in that form will be styled because the jQuery code. But I was in need to have only one checkbox not styled. So I had to use ... | TITLE:
Radio Input check or uncheck
QUESTION:
I have a form that contains some Checkboxes and one Radio. The problem is that all the Checkboxes are controlled by a jQuery code to change the style. Every checkbox in that form will be styled because the jQuery code. But I was in need to have only one checkbox not styled... | [
"jquery",
"checkbox"
] | 0 | 0 | 345 | 2 | 0 | 2011-05-31T17:25:57.910000 | 2011-05-31T17:29:32.683000 |
6,191,209 | 6,191,314 | Error setting up virtualenv for existing Django project | I grabbed the source for a project I want to play with and I'm trying to setup virtualenv. The command I run is:. virtualenv which results in: __requires__: command not found The program 'import' can be found in the following packages: * imagemagick * graphicsmagick-imagemagick-compat Try: sudo apt-get install from: ca... | Try python virtualenv or./virtualenv instead.. virtualenv will try to import and execute a Python script as a shell script. | Error setting up virtualenv for existing Django project I grabbed the source for a project I want to play with and I'm trying to setup virtualenv. The command I run is:. virtualenv which results in: __requires__: command not found The program 'import' can be found in the following packages: * imagemagick * graphicsmagi... | TITLE:
Error setting up virtualenv for existing Django project
QUESTION:
I grabbed the source for a project I want to play with and I'm trying to setup virtualenv. The command I run is:. virtualenv which results in: __requires__: command not found The program 'import' can be found in the following packages: * imagemag... | [
"django",
"virtualenv"
] | 1 | 1 | 2,069 | 1 | 0 | 2011-05-31T17:26:13.570000 | 2011-05-31T17:36:43.383000 |
6,191,211 | 6,191,244 | Help with SQL Query Count | I have a table similar to the following ID NUMBER VAL1 NUMBER VAL2 NUMBER I need an SQL query that displays count of rows that have VAL1 > VAL2 and Count of rows that have VAL1 < VAL2. Both counts using one SQL query. Thanks. | This query should work with most database platforms: select sum(case when val1 > val2 then 1 end) as GreaterThanCount, sum(case when val1 < val2 then 1 end) as LessThanCount from MyTable To show the sums in separate rows, you can do: select case when val1 > val2 then 'GreaterThan' else 'LessThan' end as Type, count(*) ... | Help with SQL Query Count I have a table similar to the following ID NUMBER VAL1 NUMBER VAL2 NUMBER I need an SQL query that displays count of rows that have VAL1 > VAL2 and Count of rows that have VAL1 < VAL2. Both counts using one SQL query. Thanks. | TITLE:
Help with SQL Query Count
QUESTION:
I have a table similar to the following ID NUMBER VAL1 NUMBER VAL2 NUMBER I need an SQL query that displays count of rows that have VAL1 > VAL2 and Count of rows that have VAL1 < VAL2. Both counts using one SQL query. Thanks.
ANSWER:
This query should work with most database... | [
"mysql",
"sql"
] | 2 | 4 | 147 | 3 | 0 | 2011-05-31T17:26:59.453000 | 2011-05-31T17:29:40.263000 |
6,191,214 | 6,191,474 | What is the MySql regex equivalent for | In.Net, I use ^[BG]\d(0-9)4$ for a Regex.IsMatch (... ) comparison. I am looking for the equivalent regex in MySql. Any help? EDIT corrected the regex used in.Net - it should only allow 'b', 'B', 'g', or 'G' at the beginning. allowed samples: - b1234 - B2254 - g5534 - G1122 disallowed: - any letter besides b, B, g, G -... | Doesn't your current regex reject all examples? If they're anyhting to go by you want: ^[BG][0-9]{4}$` Which should work in your app and MySQL. | What is the MySql regex equivalent for In.Net, I use ^[BG]\d(0-9)4$ for a Regex.IsMatch (... ) comparison. I am looking for the equivalent regex in MySql. Any help? EDIT corrected the regex used in.Net - it should only allow 'b', 'B', 'g', or 'G' at the beginning. allowed samples: - b1234 - B2254 - g5534 - G1122 disall... | TITLE:
What is the MySql regex equivalent for
QUESTION:
In.Net, I use ^[BG]\d(0-9)4$ for a Regex.IsMatch (... ) comparison. I am looking for the equivalent regex in MySql. Any help? EDIT corrected the regex used in.Net - it should only allow 'b', 'B', 'g', or 'G' at the beginning. allowed samples: - b1234 - B2254 - g5... | [
"mysql",
"regex"
] | 0 | 1 | 425 | 3 | 0 | 2011-05-31T17:27:12.107000 | 2011-05-31T17:51:28.107000 |
6,191,222 | 6,191,287 | Is it a correct way to loop through the NSURL to download the images | I have various image size files loaded on each URL and would like to download the data at the same time without using multiple calls to each URL. I am trying to loop through the URL using a variable and storing the data. Is it the correct way of doing it? - (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame... | How you get your photos depends on what the server you connect to allows. It could have a specific URL where you can download a bunch of photos, or you could be forced doing it like you are doing now. Which is fully correct as an approach if the server does not allow to do anything fancier. So, it depends on the API of... | Is it a correct way to loop through the NSURL to download the images I have various image size files loaded on each URL and would like to download the data at the same time without using multiple calls to each URL. I am trying to loop through the URL using a variable and storing the data. Is it the correct way of doing... | TITLE:
Is it a correct way to loop through the NSURL to download the images
QUESTION:
I have various image size files loaded on each URL and would like to download the data at the same time without using multiple calls to each URL. I am trying to loop through the URL using a variable and storing the data. Is it the co... | [
"iphone",
"objective-c",
"nsurlconnection",
"nsurl"
] | 0 | 1 | 330 | 1 | 0 | 2011-05-31T17:27:52.477000 | 2011-05-31T17:34:12.510000 |
6,191,227 | 6,192,964 | Validate one node based on criteria from another node by referencing the criteria's @ID | I am trying to validate the presence of a child element based on criteria in a different element in the document identified by its ID. Using ISO Schematron and XPath 2.0. Take the following example: The element "increased_sensitivity" should only be allowed if a "value" element with the @id "red" contains the attribute... | Assuming you want to find the value element whose ID matches the foo id value ("red" in this case), and then inspect the bits value there, then this Schematron schema shows one way it could be done: When the increased_sensitivity element is used, a corresponding value element must exist in the doucment with a bits valu... | Validate one node based on criteria from another node by referencing the criteria's @ID I am trying to validate the presence of a child element based on criteria in a different element in the document identified by its ID. Using ISO Schematron and XPath 2.0. Take the following example: The element "increased_sensitivit... | TITLE:
Validate one node based on criteria from another node by referencing the criteria's @ID
QUESTION:
I am trying to validate the presence of a child element based on criteria in a different element in the document identified by its ID. Using ISO Schematron and XPath 2.0. Take the following example: The element "in... | [
"xml",
"validation",
"schematron"
] | 1 | 0 | 90 | 1 | 0 | 2011-05-31T17:28:16.400000 | 2011-05-31T20:08:54.023000 |
6,191,231 | 6,191,896 | Using Cocoa Scripting Bridge to send email without knowing the recipient beforehand | I am using the code from default Apple provided SBSendEmail example to send an email. The only difference in my case is that I don't know the recipient beforehand and I expect the user to enter the recipient in the To field of mail window. Here is my code: MailApplication *mail = [SBApplication applicationWithBundleIde... | You can try [emailMessage open]; which will cause Mail.app to open your message in a compose window. To make Mail.app the frontmost application so that the user can see the newly created message window, use: [mail activate]; | Using Cocoa Scripting Bridge to send email without knowing the recipient beforehand I am using the code from default Apple provided SBSendEmail example to send an email. The only difference in my case is that I don't know the recipient beforehand and I expect the user to enter the recipient in the To field of mail wind... | TITLE:
Using Cocoa Scripting Bridge to send email without knowing the recipient beforehand
QUESTION:
I am using the code from default Apple provided SBSendEmail example to send an email. The only difference in my case is that I don't know the recipient beforehand and I expect the user to enter the recipient in the To ... | [
"objective-c",
"cocoa",
"scripting-bridge"
] | 0 | 1 | 1,135 | 1 | 0 | 2011-05-31T17:28:26.247000 | 2011-05-31T18:30:36.810000 |
6,191,254 | 6,192,273 | How to find basic, uninflected word for searching? | I am having trouble trying to write a search engine that treats all inflections of a word as the same basic word. So for verbs these are all the same root word, be: number/person ( e.g. am; is; are ) tense/mood like past or future tense ( e.g. was; were; will be ) past participles ( e.g. has been; had been ) present pa... | The way a typical search engine works is as follows: The input string is tokenized, chopped up at word boundaries - a character offset start/end is associated with each token Each token is then stemmed - I'd use Lingua::Stem (or, better, Lingua::Stem::Snowball ) which are slightly updated versions of the Porter stemmer... | How to find basic, uninflected word for searching? I am having trouble trying to write a search engine that treats all inflections of a word as the same basic word. So for verbs these are all the same root word, be: number/person ( e.g. am; is; are ) tense/mood like past or future tense ( e.g. was; were; will be ) past... | TITLE:
How to find basic, uninflected word for searching?
QUESTION:
I am having trouble trying to write a search engine that treats all inflections of a word as the same basic word. So for verbs these are all the same root word, be: number/person ( e.g. am; is; are ) tense/mood like past or future tense ( e.g. was; we... | [
"perl",
"search",
"nlp",
"stemming",
"lemmatization"
] | 2 | 5 | 1,071 | 4 | 0 | 2011-05-31T17:30:34.473000 | 2011-05-31T19:06:06.350000 |
6,191,256 | 6,191,456 | Need help aligning result of a Javascript's Countdown | I'm working on this countdown: http://apps.facebook.com/tjdcountdown/ I would like to add a specific width for each result (minutes,hours,days) of my countdown so the number are always perfectly align with the text below. Is it possible to create a variable for each result and recall them later in my html code? Here is... | Yes, you can do all that. Place each number inside its own div and and center the text inside each div. No coding should be required for making sure text is centered. The main problem now is that all numbers (years, weeks, days, hours, etc) are squeezed into one div (iid aka 'countbox1') when they need to be separated ... | Need help aligning result of a Javascript's Countdown I'm working on this countdown: http://apps.facebook.com/tjdcountdown/ I would like to add a specific width for each result (minutes,hours,days) of my countdown so the number are always perfectly align with the text below. Is it possible to create a variable for each... | TITLE:
Need help aligning result of a Javascript's Countdown
QUESTION:
I'm working on this countdown: http://apps.facebook.com/tjdcountdown/ I would like to add a specific width for each result (minutes,hours,days) of my countdown so the number are always perfectly align with the text below. Is it possible to create a... | [
"javascript",
"width",
"countdown"
] | 2 | 1 | 271 | 2 | 0 | 2011-05-31T17:30:44.007000 | 2011-05-31T17:49:38.453000 |
6,191,258 | 6,191,915 | MySQL enum field insert by index | There is a simple mysql table 'mytable' with a column called 'fruit', which is a enum field contains 'apple', 'orange' and 'mango'. We can access the index value of the enum with SELECT fruit+0 FROM mytable But how can we insert the enum field by index instead of INSERT INTO mytable fruit VALUE 'apple' WHERE... I tried... | A simple INSERT INTO mytable(fruit) VALUES(1); should work. You don't need any fruit+0 conversion like in select. | MySQL enum field insert by index There is a simple mysql table 'mytable' with a column called 'fruit', which is a enum field contains 'apple', 'orange' and 'mango'. We can access the index value of the enum with SELECT fruit+0 FROM mytable But how can we insert the enum field by index instead of INSERT INTO mytable fru... | TITLE:
MySQL enum field insert by index
QUESTION:
There is a simple mysql table 'mytable' with a column called 'fruit', which is a enum field contains 'apple', 'orange' and 'mango'. We can access the index value of the enum with SELECT fruit+0 FROM mytable But how can we insert the enum field by index instead of INSER... | [
"mysql",
"enums",
"insert"
] | 0 | 2 | 3,629 | 2 | 0 | 2011-05-31T17:30:55.240000 | 2011-05-31T18:32:38.307000 |
6,191,259 | 6,192,130 | In page.tpl.php derive a field value from Profile | Prompt as in page.tpl.php derive a field value from the current user profile module. Field is called profile_first_name | If you want to access profile field values from page.tpl.php you could use profile_load_profile(). For example in your page.tpl.php add the following: GLOBAL $user; profile_load_profile($user); Then to access the field you want (profile_first_name) you would use $user->profile_first_name | In page.tpl.php derive a field value from Profile Prompt as in page.tpl.php derive a field value from the current user profile module. Field is called profile_first_name | TITLE:
In page.tpl.php derive a field value from Profile
QUESTION:
Prompt as in page.tpl.php derive a field value from the current user profile module. Field is called profile_first_name
ANSWER:
If you want to access profile field values from page.tpl.php you could use profile_load_profile(). For example in your page... | [
"drupal",
"drupal-6"
] | 1 | 2 | 216 | 1 | 0 | 2011-05-31T17:31:05.760000 | 2011-05-31T18:52:25.810000 |
6,191,261 | 6,193,954 | Where to set Path | I am trying to get my first rails app on heroku, and am getting errors related to not being able to find git. Following different questions and answers lead me to the instructions to set the PATH environment variable to run git under cmd on windows with rails, which will apparently resolve the issue. The original answe... | Did you actually install git? Did you read the official Getting Started with Heroku on Windows? | Where to set Path I am trying to get my first rails app on heroku, and am getting errors related to not being able to find git. Following different questions and answers lead me to the instructions to set the PATH environment variable to run git under cmd on windows with rails, which will apparently resolve the issue. ... | TITLE:
Where to set Path
QUESTION:
I am trying to get my first rails app on heroku, and am getting errors related to not being able to find git. Following different questions and answers lead me to the instructions to set the PATH environment variable to run git under cmd on windows with rails, which will apparently r... | [
"ruby-on-rails",
"windows",
"git",
"heroku",
"environment-variables"
] | 1 | 1 | 320 | 1 | 0 | 2011-05-31T17:31:26.837000 | 2011-05-31T21:48:11.800000 |
6,191,265 | 6,191,507 | problem with code to combine two images in android? | i am using the below code for combining two images. Bitmap pic = BitmapFactory.decodeResource(getResources(), R.drawable.me); Bitmap map = BitmapFactory.decodeResource(getResources(), R.drawable.static); Canvas comboImage = new Canvas(map); Bitmap out1 = null; comboImage.setBitmap(out1); comboImage.drawBitmap(pic, 600,... | If you want the final image to be out1, you would do it like this: Bitmap out1 = Bitmap.createBitmap(...); Canvas comboImage = new Canvas(out1); comboImage.drawBitmap(map,...); comboImage.drawBitmap(pic,...); out1 would then be the merge images | problem with code to combine two images in android? i am using the below code for combining two images. Bitmap pic = BitmapFactory.decodeResource(getResources(), R.drawable.me); Bitmap map = BitmapFactory.decodeResource(getResources(), R.drawable.static); Canvas comboImage = new Canvas(map); Bitmap out1 = null; comboIm... | TITLE:
problem with code to combine two images in android?
QUESTION:
i am using the below code for combining two images. Bitmap pic = BitmapFactory.decodeResource(getResources(), R.drawable.me); Bitmap map = BitmapFactory.decodeResource(getResources(), R.drawable.static); Canvas comboImage = new Canvas(map); Bitmap ou... | [
"android",
"image-processing"
] | 2 | 1 | 2,930 | 1 | 0 | 2011-05-31T17:31:36.270000 | 2011-05-31T17:55:00.947000 |
6,191,266 | 6,191,371 | Cells sized independently of rows MigLayout | So I am designing a rather simple layout for an item manager program which i am making in Java with Swing. Typically, the cells light colored row would all stretch down to meet the blue. However, I am curious to know if you can enable cells to be sized independently of their rows. Any ideas would be most appreciated | Yeah, it's possible. Use unrel as a row height constraint. See the cheat sheet for more details. However, I'd really advise a separate JPanel per column, for simplicity reasons. You can use insets 0 as a layout constraint here if you don't like the insets. | Cells sized independently of rows MigLayout So I am designing a rather simple layout for an item manager program which i am making in Java with Swing. Typically, the cells light colored row would all stretch down to meet the blue. However, I am curious to know if you can enable cells to be sized independently of their ... | TITLE:
Cells sized independently of rows MigLayout
QUESTION:
So I am designing a rather simple layout for an item manager program which i am making in Java with Swing. Typically, the cells light colored row would all stretch down to meet the blue. However, I am curious to know if you can enable cells to be sized indep... | [
"java",
"swing",
"user-interface",
"miglayout"
] | 1 | 2 | 473 | 1 | 0 | 2011-05-31T17:31:40.957000 | 2011-05-31T17:42:14.337000 |
6,191,272 | 6,191,331 | Anyone know of open source code for doing a preview of an image | Does anyone know of any open source code for doing a preview of an image? I have an image stored in the Documents folder of my application and would like to show a preview of the image in a modal popup by passing in a URL to the local file. I am looking for some open source code either in MonoTouch or Objective C that ... | Checkout TTPhotoViewController: http://joehewitt.com/post/the-three20-project/ | Anyone know of open source code for doing a preview of an image Does anyone know of any open source code for doing a preview of an image? I have an image stored in the Documents folder of my application and would like to show a preview of the image in a modal popup by passing in a URL to the local file. I am looking fo... | TITLE:
Anyone know of open source code for doing a preview of an image
QUESTION:
Does anyone know of any open source code for doing a preview of an image? I have an image stored in the Documents folder of my application and would like to show a preview of the image in a modal popup by passing in a URL to the local fil... | [
"objective-c",
"xamarin.ios"
] | 0 | 1 | 304 | 1 | 0 | 2011-05-31T17:32:11.123000 | 2011-05-31T17:38:52.260000 |
6,191,275 | 6,191,304 | How can I create functionality where html can be exported to a CSV file? | I have the following html file: Claims Search Results Member Date of Service Provider Claim Type Status Billed Amount Paid by Plan Member Responsiblity John Sample 02/27/2011 TestProv1 Medical Processed $145 $125 $25 John Sample 02/27/2011 TestProv1 Medical In-Process - - - I would like the end user to be able to clink... | Consider using the jQuery plugin: HTML Table to CSV It's a one-liner: $('#mytable').table2CSV(); You can see this in action at this HTML Table To CSV demo. | How can I create functionality where html can be exported to a CSV file? I have the following html file: Claims Search Results Member Date of Service Provider Claim Type Status Billed Amount Paid by Plan Member Responsiblity John Sample 02/27/2011 TestProv1 Medical Processed $145 $125 $25 John Sample 02/27/2011 TestPro... | TITLE:
How can I create functionality where html can be exported to a CSV file?
QUESTION:
I have the following html file: Claims Search Results Member Date of Service Provider Claim Type Status Billed Amount Paid by Plan Member Responsiblity John Sample 02/27/2011 TestProv1 Medical Processed $145 $125 $25 John Sample ... | [
"javascript",
"php",
"csv",
"html-table",
"export-to-csv"
] | 1 | 5 | 1,143 | 5 | 0 | 2011-05-31T17:32:25.757000 | 2011-05-31T17:35:27.687000 |
6,191,277 | 6,191,296 | Should I store user data in sessions? | Simple question, but not so simple answer. If I store user data into the sessions, then I wouldn't have to get that data from MySQL database. But then that data could get become obsolete. If I store only user_id in session, then I would have to ask database each time for user info and that could lead server to slow dow... | Typically I just store the key, and only start caching once performance becomes an issue. As soon as you start to cache data, you introduce the possibility of bugs due to stale data - you must be sure to invalidate the cache anytime you modify data. I do cache properties on instances of my objects, though, to ensure I ... | Should I store user data in sessions? Simple question, but not so simple answer. If I store user data into the sessions, then I wouldn't have to get that data from MySQL database. But then that data could get become obsolete. If I store only user_id in session, then I would have to ask database each time for user info ... | TITLE:
Should I store user data in sessions?
QUESTION:
Simple question, but not so simple answer. If I store user data into the sessions, then I wouldn't have to get that data from MySQL database. But then that data could get become obsolete. If I store only user_id in session, then I would have to ask database each t... | [
"php",
"mysql",
"session",
"caching"
] | 5 | 7 | 1,235 | 1 | 0 | 2011-05-31T17:32:38.190000 | 2011-05-31T17:34:56.580000 |
6,191,283 | 6,205,848 | Update galleria width/height when browser is changing dimensions | I have a question. Can I update the size of this plugin when I change dimensions of my browser, or maybe I could just bind it's size to some container and then it would change the size by default? Maybe it is possible to scale it somehow because I really don't want to make my site "fixed" because of this. | There is an undocumented method called rescale(), call this to update the gallery measurements anytime, f.ex when you change the size of the container. | Update galleria width/height when browser is changing dimensions I have a question. Can I update the size of this plugin when I change dimensions of my browser, or maybe I could just bind it's size to some container and then it would change the size by default? Maybe it is possible to scale it somehow because I really ... | TITLE:
Update galleria width/height when browser is changing dimensions
QUESTION:
I have a question. Can I update the size of this plugin when I change dimensions of my browser, or maybe I could just bind it's size to some container and then it would change the size by default? Maybe it is possible to scale it somehow... | [
"javascript",
"jquery",
"galleria"
] | 2 | 1 | 3,327 | 4 | 0 | 2011-05-31T17:33:45.240000 | 2011-06-01T18:20:03.067000 |
6,191,300 | 6,191,512 | iOS Development: How can I make changes to my app so that it only affects new users? | I'd like to make some drastic changes to my iOS app, but I don't want those changes to affect existing installs, since it may cause existing users to complain. How can I limit the new functionality to new installs only? One easy way would be to set a global flag at a point in the code that only occurs before the user c... | I'll set aside whether you should do this. Other answerers have said what I have to say about that. Technically how you'd do this is by looking for any data that persists when a user updates the app. So, any NSUserDefaults values you've set, anything you've written to the app's sandbox, keychain values... Any hint you'... | iOS Development: How can I make changes to my app so that it only affects new users? I'd like to make some drastic changes to my iOS app, but I don't want those changes to affect existing installs, since it may cause existing users to complain. How can I limit the new functionality to new installs only? One easy way wo... | TITLE:
iOS Development: How can I make changes to my app so that it only affects new users?
QUESTION:
I'd like to make some drastic changes to my iOS app, but I don't want those changes to affect existing installs, since it may cause existing users to complain. How can I limit the new functionality to new installs onl... | [
"iphone",
"ios",
"ipad"
] | 0 | 3 | 142 | 5 | 0 | 2011-05-31T17:35:08.483000 | 2011-05-31T17:55:25.610000 |
6,191,315 | 6,191,844 | Is a static-utility method not the best approach in this scenario? | I have this class, let's say Foo. This class is responsible for creating/showing a JFrame, which requires heavy customization. public class Foo{ private static JFrame frame;
public static void createAndShowFrame(){ //do stuff }
public static JFrame getFrame(){ return frame; } } And I have this other class, let's say ... | Independently of the question of exposing the JFrame or encapsulating it, why does this class (the methods/fields) have to be static? The object oriented way would be to have them ordinary (instance) methods: public class FrameCreator { private JFrame frame;
public void createAndShowFrame(){ //do stuff }
public JFram... | Is a static-utility method not the best approach in this scenario? I have this class, let's say Foo. This class is responsible for creating/showing a JFrame, which requires heavy customization. public class Foo{ private static JFrame frame;
public static void createAndShowFrame(){ //do stuff }
public static JFrame ge... | TITLE:
Is a static-utility method not the best approach in this scenario?
QUESTION:
I have this class, let's say Foo. This class is responsible for creating/showing a JFrame, which requires heavy customization. public class Foo{ private static JFrame frame;
public static void createAndShowFrame(){ //do stuff }
publi... | [
"java",
"swing",
"user-interface",
"static-methods"
] | 2 | 1 | 242 | 2 | 0 | 2011-05-31T17:36:46.503000 | 2011-05-31T18:26:34.050000 |
6,191,317 | 6,191,450 | Perl File::Find Windows Backslashes Directory Path | Is there an easy way to automatically replace the $dir backslashes with forward ones because the only way I know is manually and if the path is too long is quite annoying. Thanks. use strict; use warnings; use File::Find;
my $dir = "E:\dir1\dir2\dir3\dir4\dir5";
find(\&temp, $dir); sub temp {..... } | Not quite sure what you are after, but a simple regex will suffice to replace \ with /: ETA: You will have to place the paths in single quotes to preserve the backslashes, then replace them (thanks cjm for pointing that out): $dir = 'E:\dir1\dir2\dir3\dir4\dir5'; $dir =~ s#\\#/#g; | Perl File::Find Windows Backslashes Directory Path Is there an easy way to automatically replace the $dir backslashes with forward ones because the only way I know is manually and if the path is too long is quite annoying. Thanks. use strict; use warnings; use File::Find;
my $dir = "E:\dir1\dir2\dir3\dir4\dir5";
find... | TITLE:
Perl File::Find Windows Backslashes Directory Path
QUESTION:
Is there an easy way to automatically replace the $dir backslashes with forward ones because the only way I know is manually and if the path is too long is quite annoying. Thanks. use strict; use warnings; use File::Find;
my $dir = "E:\dir1\dir2\dir3... | [
"windows",
"perl"
] | 1 | 2 | 2,944 | 2 | 0 | 2011-05-31T17:36:52.993000 | 2011-05-31T17:49:15.457000 |
6,191,323 | 6,191,390 | JQuery fade in, with mouserover fadein and out effect issue | what im trying to accomplish is a fadein effect on page load, then a nice fadeout and in effect on mouse over for each individual item, you can see what i have working here: http://themes.thefragilemachine.com/themachine_v4/ I know this can be done using a child call? i just not sure how to do it, but basicly i would l... | Are you looking for this perhaps? $('.test1').mouseover(function() { $(this).fadeOut('fast').fadeIn('slow'); }); Using $(this) should apply the fading effects to the current element only, using $('.test1') applies the effects to all elements with a class of test1. | JQuery fade in, with mouserover fadein and out effect issue what im trying to accomplish is a fadein effect on page load, then a nice fadeout and in effect on mouse over for each individual item, you can see what i have working here: http://themes.thefragilemachine.com/themachine_v4/ I know this can be done using a chi... | TITLE:
JQuery fade in, with mouserover fadein and out effect issue
QUESTION:
what im trying to accomplish is a fadein effect on page load, then a nice fadeout and in effect on mouse over for each individual item, you can see what i have working here: http://themes.thefragilemachine.com/themachine_v4/ I know this can b... | [
"jquery",
"fadein",
"fade",
"fadeout",
"children"
] | 0 | 0 | 338 | 3 | 0 | 2011-05-31T17:37:44.507000 | 2011-05-31T17:43:43.617000 |
6,191,328 | 6,192,342 | Possible to count # of specific div class within a div id? | Have the following script: var CurrentPageTop = 0; var PageHeight = 496; var TotalPages = 9; var CurrenPage = 1; function Slide( control, panel ){
if ( control.name == "SlideDown" ){
if ( (CurrenPage >= 1) && (CurrenPage <= TotalPages-1) ){ CurrenPage++; CurrentPageTop = ( CurrentPageTop - PageHeight ); } }
if ( con... | function number_of_elements_with_class_name(class_name) { var elements = getElementsByClassName(class_name); var count = 0; for(var i in elements) { count++; } return count; } | Possible to count # of specific div class within a div id? Have the following script: var CurrentPageTop = 0; var PageHeight = 496; var TotalPages = 9; var CurrenPage = 1; function Slide( control, panel ){
if ( control.name == "SlideDown" ){
if ( (CurrenPage >= 1) && (CurrenPage <= TotalPages-1) ){ CurrenPage++; Curr... | TITLE:
Possible to count # of specific div class within a div id?
QUESTION:
Have the following script: var CurrentPageTop = 0; var PageHeight = 496; var TotalPages = 9; var CurrenPage = 1; function Slide( control, panel ){
if ( control.name == "SlideDown" ){
if ( (CurrenPage >= 1) && (CurrenPage <= TotalPages-1) ){ ... | [
"javascript"
] | 1 | 0 | 833 | 2 | 0 | 2011-05-31T17:38:32.290000 | 2011-05-31T19:11:14.403000 |
6,191,329 | 6,191,355 | PHP - Intercept POST requests | I was wondering if anyone could help me solve how to view $_POST requests. What i want to do, is check all $_POST requests, not just certain ones like $_POST['name'], $_POST['post'] etc, I'd like to check every post, without being able to know the name of each POST request. Here is what i've tried (snippet): foreach ($... | You used the right solution foreach($_POST as $key=>$value){ //> do your operation here echo $key.': '.$value; } You can use $key to get the param name | PHP - Intercept POST requests I was wondering if anyone could help me solve how to view $_POST requests. What i want to do, is check all $_POST requests, not just certain ones like $_POST['name'], $_POST['post'] etc, I'd like to check every post, without being able to know the name of each POST request. Here is what i'... | TITLE:
PHP - Intercept POST requests
QUESTION:
I was wondering if anyone could help me solve how to view $_POST requests. What i want to do, is check all $_POST requests, not just certain ones like $_POST['name'], $_POST['post'] etc, I'd like to check every post, without being able to know the name of each POST reques... | [
"php",
"request",
"http-post",
"intercept"
] | 2 | 7 | 2,921 | 2 | 0 | 2011-05-31T17:38:38.297000 | 2011-05-31T17:41:09.557000 |
6,191,330 | 6,191,439 | Pre-load content vs. Ad-Hoc | I have a lot of content to load inside a hidden. It will be displayed when the user clicks a button. Should I preload it or do it on the fly? | Without knowing the full details of the scenario, it's impossible to know for sure. With what you have presented, I'd say it's better to leverage the click action. The reason I say that is because the overhead of querying the DOM is then only applicable for users who click the button instead of on every request to the ... | Pre-load content vs. Ad-Hoc I have a lot of content to load inside a hidden. It will be displayed when the user clicks a button. Should I preload it or do it on the fly? | TITLE:
Pre-load content vs. Ad-Hoc
QUESTION:
I have a lot of content to load inside a hidden. It will be displayed when the user clicks a button. Should I preload it or do it on the fly?
ANSWER:
Without knowing the full details of the scenario, it's impossible to know for sure. With what you have presented, I'd say i... | [
"javascript",
"jquery",
"html",
"ajax"
] | 1 | 1 | 149 | 2 | 0 | 2011-05-31T17:38:41.353000 | 2011-05-31T17:48:32.040000 |
6,191,334 | 6,191,375 | get lazy object with hibernate and JPA | how can I get a lazy object? for example, I've got a "customer" table and the "request" table then I've build a project using hibernate and JPA. in the customer table there's a code like this @OneToMany(cascade = CascadeType.ALL, fetch =FetchType.LAZY, mappedBy = "customer") public Set getRequests() { return this.reque... | Use Hibernate.initialize(lazyCollection) - if the current session is active, the collection will be initialized. | get lazy object with hibernate and JPA how can I get a lazy object? for example, I've got a "customer" table and the "request" table then I've build a project using hibernate and JPA. in the customer table there's a code like this @OneToMany(cascade = CascadeType.ALL, fetch =FetchType.LAZY, mappedBy = "customer") publi... | TITLE:
get lazy object with hibernate and JPA
QUESTION:
how can I get a lazy object? for example, I've got a "customer" table and the "request" table then I've build a project using hibernate and JPA. in the customer table there's a code like this @OneToMany(cascade = CascadeType.ALL, fetch =FetchType.LAZY, mappedBy =... | [
"hibernate",
"jpa"
] | 4 | 6 | 8,925 | 4 | 0 | 2011-05-31T17:39:17.797000 | 2011-05-31T17:42:35.520000 |
6,191,337 | 6,191,918 | Debug string replace function in C | I tried to code a function which replace all string s1 to s2, in a given string s. however, i don't know why my program stop at the line *p=0 in that replace function without any error reported? @@ #include #include #include void replace(char * s, char * s1, char * s2) { char * p; int l=strlen(s2); while ((p=strstr(s,s... | There are some problems with the replace function but, first of all, there is a big difference between a pointer to a constant char array vs a character array: char *str = "some string"; Assigns str the address of the immutable character array (read-only), it does not copy the string, only pointers are involved. Any at... | Debug string replace function in C I tried to code a function which replace all string s1 to s2, in a given string s. however, i don't know why my program stop at the line *p=0 in that replace function without any error reported? @@ #include #include #include void replace(char * s, char * s1, char * s2) { char * p; int... | TITLE:
Debug string replace function in C
QUESTION:
I tried to code a function which replace all string s1 to s2, in a given string s. however, i don't know why my program stop at the line *p=0 in that replace function without any error reported? @@ #include #include #include void replace(char * s, char * s1, char * s... | [
"c",
"debugging",
"string"
] | 2 | 5 | 566 | 2 | 0 | 2011-05-31T17:39:26.940000 | 2011-05-31T18:32:48.167000 |
6,191,338 | 6,192,679 | How to host NuGet packages locally? | I am writing framework components for a project I am working on and I'm wondering if it's possible to host a NuGet package locally without a server so I'll be able to create a full release cycle just by using my computer. If it's possible, please explain how to do it. | You can use a regular folder. More info here: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds | How to host NuGet packages locally? I am writing framework components for a project I am working on and I'm wondering if it's possible to host a NuGet package locally without a server so I'll be able to create a full release cycle just by using my computer. If it's possible, please explain how to do it. | TITLE:
How to host NuGet packages locally?
QUESTION:
I am writing framework components for a project I am working on and I'm wondering if it's possible to host a NuGet package locally without a server so I'll be able to create a full release cycle just by using my computer. If it's possible, please explain how to do i... | [
"nuget"
] | 4 | 8 | 2,327 | 1 | 0 | 2011-05-31T17:39:33.460000 | 2011-05-31T19:43:12.610000 |
6,191,339 | 6,191,351 | Why type "int" is never equal to 'null'? | int n == 0;
if (n == null) { Console.WriteLine("......"); } Is it true that the result of expression ( n == null ) is always false since a value of type int is never equal to null of type int? (see warning below) Warning CS0472 The result of the expression is always 'false' since a value of type 'int' is never equal t... | If you want your integer variable to allow null values, declare it to be a nullable type: int? n = 0; Note the? after int, which means that type can have the value null. Nullable types were introduced with v2.0 of the.NET Framework. | Why type "int" is never equal to 'null'? int n == 0;
if (n == null) { Console.WriteLine("......"); } Is it true that the result of expression ( n == null ) is always false since a value of type int is never equal to null of type int? (see warning below) Warning CS0472 The result of the expression is always 'false' sin... | TITLE:
Why type "int" is never equal to 'null'?
QUESTION:
int n == 0;
if (n == null) { Console.WriteLine("......"); } Is it true that the result of expression ( n == null ) is always false since a value of type int is never equal to null of type int? (see warning below) Warning CS0472 The result of the expression is ... | [
"c#",
"null"
] | 43 | 94 | 125,324 | 8 | 0 | 2011-05-31T17:39:36.410000 | 2011-05-31T17:40:16.970000 |
6,191,344 | 6,219,036 | Initiate click event for every instance of an element | I am trying to initiate a click event for multiple instances of an element with a javascript bookmarklet. My goal is to be able to click on the bookmarklet and have it delete specific elements, such as whenever a button says remove. Could you help me with this please, I have tried vark.com and other sources to find thi... | Thanks for explaining what you want to do. Unfortunately, I don't think this is going to be possible. Playing with PageMonitor, it doesn't appear to be possible to execute javascript in the address bar (necessary to make a bookmarklet) and have it affect the extension page. The code to implement the feature you want is... | Initiate click event for every instance of an element I am trying to initiate a click event for multiple instances of an element with a javascript bookmarklet. My goal is to be able to click on the bookmarklet and have it delete specific elements, such as whenever a button says remove. Could you help me with this pleas... | TITLE:
Initiate click event for every instance of an element
QUESTION:
I am trying to initiate a click event for multiple instances of an element with a javascript bookmarklet. My goal is to be able to click on the bookmarklet and have it delete specific elements, such as whenever a button says remove. Could you help ... | [
"javascript",
"bookmarklet",
"element",
"google-chrome-devtools"
] | 0 | 1 | 578 | 1 | 0 | 2011-05-31T17:39:55.973000 | 2011-06-02T18:56:36.723000 |
6,191,349 | 6,191,443 | Simple java layout question | I have a somewhat simple question, but I have been looking for a solution and not finding it, since I am having some time problems I will ask here I am programming a simple game in java(since I am still learning), and in the using a borderlayout, since it fits perfectly what I want, 3 buttons on the bottom and a intern... | What if you add a JPanel that contains two other panels: one for your buttons and one for the content you want above north? Or you can similarly split up other regions by putting a panel that contains other panels or components. Edit: You can put your toolbar in the north and the rest of your components can sit in a ne... | Simple java layout question I have a somewhat simple question, but I have been looking for a solution and not finding it, since I am having some time problems I will ask here I am programming a simple game in java(since I am still learning), and in the using a borderlayout, since it fits perfectly what I want, 3 button... | TITLE:
Simple java layout question
QUESTION:
I have a somewhat simple question, but I have been looking for a solution and not finding it, since I am having some time problems I will ask here I am programming a simple game in java(since I am still learning), and in the using a borderlayout, since it fits perfectly wha... | [
"java",
"layout"
] | 0 | 2 | 122 | 2 | 0 | 2011-05-31T17:40:12.697000 | 2011-05-31T17:48:41.987000 |
6,191,350 | 6,191,415 | Executing a VB WebMethod from javascript | I'm trying to eliminate a VB.NET button on my aspx page. Trying to use javascript and ajax to execute the same code my vb had. I put in a script manager, set EnablePageMethods to true, added a static subroutine, and referred to it in my javascript function (BTW -- this seems a lot of work just to execute an existing su... | You cannot use any server controls in WebMethod or AjaxMethod as they are not part of Page life cycle, access these controls in Javascript. | Executing a VB WebMethod from javascript I'm trying to eliminate a VB.NET button on my aspx page. Trying to use javascript and ajax to execute the same code my vb had. I put in a script manager, set EnablePageMethods to true, added a static subroutine, and referred to it in my javascript function (BTW -- this seems a l... | TITLE:
Executing a VB WebMethod from javascript
QUESTION:
I'm trying to eliminate a VB.NET button on my aspx page. Trying to use javascript and ajax to execute the same code my vb had. I put in a script manager, set EnablePageMethods to true, added a static subroutine, and referred to it in my javascript function (BTW... | [
"asp.net",
"ajax",
"vb.net",
"webmethod"
] | 2 | 2 | 1,314 | 1 | 0 | 2011-05-31T17:40:14.943000 | 2011-05-31T17:46:05.940000 |
6,191,352 | 6,191,794 | Rails form_for with collection_select | I'm trying to create a field that creates an instance of the Ranking class. It has a comment field already which sets the params[:ranking][:comment] but now I want to add a drop down that displays something like: 1: horrible, 2: poor, 3: mediocre, 4: good, 5: great I would like these to set the params[:ranking][:score]... | You should just be able to use the regular select helper for something like that: f.select:score, [['horrible', 1], ['poor', 2], ['mediocre', 3], ['good', 4], ['great', 5]] You would use collection_select if you had a model for the scores. Something like: f.collection_select:score_id, Score.all,:id,:name See the API do... | Rails form_for with collection_select I'm trying to create a field that creates an instance of the Ranking class. It has a comment field already which sets the params[:ranking][:comment] but now I want to add a drop down that displays something like: 1: horrible, 2: poor, 3: mediocre, 4: good, 5: great I would like the... | TITLE:
Rails form_for with collection_select
QUESTION:
I'm trying to create a field that creates an instance of the Ranking class. It has a comment field already which sets the params[:ranking][:comment] but now I want to add a drop down that displays something like: 1: horrible, 2: poor, 3: mediocre, 4: good, 5: grea... | [
"ruby-on-rails",
"ruby-on-rails-3"
] | 15 | 67 | 51,193 | 1 | 0 | 2011-05-31T17:40:32.450000 | 2011-05-31T18:22:28.603000 |
6,191,360 | 6,191,539 | jquery 1.6.2 and IE8 error | In the uncompressed version of jquery 1.6.2 IE8 developer tools is telling me that line 6096 is throwing an error: Object required. 6096 reads: elem = div.childnodes; It is part of an extend - jquery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents) { I am basically inserting or editing records in a MyS... | You need to have elements in dynamically generated tables. You seem to be missing an opening tag for that. | jquery 1.6.2 and IE8 error In the uncompressed version of jquery 1.6.2 IE8 developer tools is telling me that line 6096 is throwing an error: Object required. 6096 reads: elem = div.childnodes; It is part of an extend - jquery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents) { I am basically inserting ... | TITLE:
jquery 1.6.2 and IE8 error
QUESTION:
In the uncompressed version of jquery 1.6.2 IE8 developer tools is telling me that line 6096 is throwing an error: Object required. 6096 reads: elem = div.childnodes; It is part of an extend - jquery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents) { I am ba... | [
"jquery",
"internet-explorer-8"
] | 1 | 4 | 1,567 | 1 | 0 | 2011-05-31T17:41:24.100000 | 2011-05-31T17:58:07.360000 |
6,191,364 | 6,191,618 | Navigation after tableview selection | I created something similar to mail app. A tableView (main) which lists database content from API and a search bar on the top. For a search I bring a view (second) to front which have my search response and I put it in another tableview (second). For this part it's OK. Now, I want a navigation to another view but when ... | Right before the push, check to see if your second navigation controller is null: NSLog(@" nav con is %@", mySecondNavigationController); | Navigation after tableview selection I created something similar to mail app. A tableView (main) which lists database content from API and a search bar on the top. For a search I bring a view (second) to front which have my search response and I put it in another tableview (second). For this part it's OK. Now, I want a... | TITLE:
Navigation after tableview selection
QUESTION:
I created something similar to mail app. A tableView (main) which lists database content from API and a search bar on the top. For a search I bring a view (second) to front which have my search response and I put it in another tableview (second). For this part it's... | [
"iphone",
"objective-c",
"cocoa-touch",
"tableview",
"navigationcontroller"
] | 0 | 0 | 136 | 2 | 0 | 2011-05-31T17:41:31.637000 | 2011-05-31T18:05:36.860000 |
6,191,369 | 6,191,430 | Servlet JSP connection problem in Eclipse Indigo | I have tomcat 7.0.14, jdk1.6 and Eclipse Indigo for Java EE web app developers. I am new to JSP, so tried Eclipse as I thought it made coding easier. I closely followed this video tutorial. I created 2 files under my project prison- login.java, home.html and modified web.xml too. When I click the submit button in the l... | Firefox can't find the file at /D:/eclipse/Workspace/Prisonhome/WebContent/WEB-INF/Log?user=sa&pass=sa&action=That's+me. You need to open the page by a real web URL, not by a local disk file system path. If Tomcat is running at localhost on port 8080 and the webapp context name is Prisonhome then you need to invoke it ... | Servlet JSP connection problem in Eclipse Indigo I have tomcat 7.0.14, jdk1.6 and Eclipse Indigo for Java EE web app developers. I am new to JSP, so tried Eclipse as I thought it made coding easier. I closely followed this video tutorial. I created 2 files under my project prison- login.java, home.html and modified web... | TITLE:
Servlet JSP connection problem in Eclipse Indigo
QUESTION:
I have tomcat 7.0.14, jdk1.6 and Eclipse Indigo for Java EE web app developers. I am new to JSP, so tried Eclipse as I thought it made coding easier. I closely followed this video tutorial. I created 2 files under my project prison- login.java, home.htm... | [
"eclipse",
"jsp",
"tomcat7",
"servlets"
] | 0 | 0 | 1,755 | 2 | 0 | 2011-05-31T17:42:07.860000 | 2011-05-31T17:47:38.387000 |
6,191,377 | 6,203,729 | Should the result of sRGB->CIEXYZ->discard luminance be convertible back to sRGB? | I'm writing shadow removal for my pony detector. After I've converted a PNG image from sRGB to CIE XYZ I remove the luminance as per instructions: When I try to convert the image back to sRGB for display, I get RGB values that fall outside the sRGB gamut (I get values greater than 255). Is this normal, or should I keep... | The final transformation does not remove the luminance, it creates two new values, x, y that together define the chromacity while Y contains the luminance. This is the key paragraph in your instructions link (just before the formulas you link): The CIE XYZ color space was deliberately designed so that the Y parameter w... | Should the result of sRGB->CIEXYZ->discard luminance be convertible back to sRGB? I'm writing shadow removal for my pony detector. After I've converted a PNG image from sRGB to CIE XYZ I remove the luminance as per instructions: When I try to convert the image back to sRGB for display, I get RGB values that fall outsid... | TITLE:
Should the result of sRGB->CIEXYZ->discard luminance be convertible back to sRGB?
QUESTION:
I'm writing shadow removal for my pony detector. After I've converted a PNG image from sRGB to CIE XYZ I remove the luminance as per instructions: When I try to convert the image back to sRGB for display, I get RGB value... | [
"colors",
"computer-vision",
"color-space",
"srgb"
] | 5 | 1 | 971 | 1 | 0 | 2011-05-31T17:42:36.520000 | 2011-06-01T15:29:34.710000 |
6,191,378 | 6,191,752 | Is "not disposing StreamWriter" may cause memoryLeak in that case? | I have method that as follows public int TranslateOOV(string word, Stream logStream) { StreamWriter writer = new StreamWriter(logStream);
//Do some logging //dont close the writer and leave the caller close the stream } I do not close the StreamWriter as the caller should close the inner stream, does this cause memory... | Just for fun I cracked open the decompiler to look at what Dispose does on a StreamWriter (thinking perhaps the underlying stream is the only resource needed disposed). Here is what came out: protected override void Dispose(bool disposing) { try { if (this.stream!= null) { if (disposing || (this.Closable || this.stream... | Is "not disposing StreamWriter" may cause memoryLeak in that case? I have method that as follows public int TranslateOOV(string word, Stream logStream) { StreamWriter writer = new StreamWriter(logStream);
//Do some logging //dont close the writer and leave the caller close the stream } I do not close the StreamWriter ... | TITLE:
Is "not disposing StreamWriter" may cause memoryLeak in that case?
QUESTION:
I have method that as follows public int TranslateOOV(string word, Stream logStream) { StreamWriter writer = new StreamWriter(logStream);
//Do some logging //dont close the writer and leave the caller close the stream } I do not close... | [
"c#",
"stream",
"dispose"
] | 3 | 5 | 2,615 | 4 | 0 | 2011-05-31T17:42:36.987000 | 2011-05-31T18:18:26.360000 |
6,191,383 | 6,191,417 | There is an interface/GUI appender for log4j? | I want to show my logs in the GUI in a textfield, list, etc. (something like ImgBurn), but I not found a ready appender that do this. There are an appender to do this? Currently I doing log to the console without any problems. | Take a look at Apache Chainsaw: this can use the Receiver concept from the recent Log4j builds to display events: http://logging.apache.org/chainsaw/index.html. If you are looking to do real-time text field display you may need to write your own Receiver class. | There is an interface/GUI appender for log4j? I want to show my logs in the GUI in a textfield, list, etc. (something like ImgBurn), but I not found a ready appender that do this. There are an appender to do this? Currently I doing log to the console without any problems. | TITLE:
There is an interface/GUI appender for log4j?
QUESTION:
I want to show my logs in the GUI in a textfield, list, etc. (something like ImgBurn), but I not found a ready appender that do this. There are an appender to do this? Currently I doing log to the console without any problems.
ANSWER:
Take a look at Apach... | [
"java",
"log4j",
"appender"
] | 3 | 4 | 5,056 | 5 | 0 | 2011-05-31T17:42:54.210000 | 2011-05-31T17:46:09.077000 |
6,191,387 | 6,191,486 | Java concurrency with a Map of Lists | I have a java class that is accessed by a lot of threads at once and want to make sure it is thread safe. The class has one private field, which is a Map of Strings to Lists of Strings. I've implemented the Map as a ConcurrentHashMap to ensure gets and puts are thread safe: public class ListStore {
private Map > inner... | You could synchronize on just listToSearch, there's no reason to lock the entire map any time anyone is using just one entry. Just remember though, that you need to synchronize on the list everywhere it is modified! Synchronizing the iterator doesn't automagically block other people from doing an add() or whatnot if yo... | Java concurrency with a Map of Lists I have a java class that is accessed by a lot of threads at once and want to make sure it is thread safe. The class has one private field, which is a Map of Strings to Lists of Strings. I've implemented the Map as a ConcurrentHashMap to ensure gets and puts are thread safe: public c... | TITLE:
Java concurrency with a Map of Lists
QUESTION:
I have a java class that is accessed by a lot of threads at once and want to make sure it is thread safe. The class has one private field, which is a Map of Strings to Lists of Strings. I've implemented the Map as a ConcurrentHashMap to ensure gets and puts are thr... | [
"java",
"concurrency"
] | 3 | 1 | 4,289 | 8 | 0 | 2011-05-31T17:43:37.253000 | 2011-05-31T17:52:34.270000 |
6,191,388 | 6,191,446 | What version of IE uses window[objectName] instead of window.document[objectName]? | I am trying to use a Javascript callback to a Flex application embedded in my page. Looking through some examples, I've seen this code used to get a reference to the Flex application: // Get the reference: function thisFlexApp(appName) { if(navigator.appName.indexOf ('Microsoft')!= -1) { return window[appName]; } else ... | Don't check the browser version, check the browser's capabilities. You can just check if window[appName] exists, and if it does, use it. function thisFlexApp(appName) { if(window[appName]) { return window[appName]; } else { return window.document[appName]; } } Or even shorter: function thisFlexApp(appName) { return win... | What version of IE uses window[objectName] instead of window.document[objectName]? I am trying to use a Javascript callback to a Flex application embedded in my page. Looking through some examples, I've seen this code used to get a reference to the Flex application: // Get the reference: function thisFlexApp(appName) {... | TITLE:
What version of IE uses window[objectName] instead of window.document[objectName]?
QUESTION:
I am trying to use a Javascript callback to a Flex application embedded in my page. Looking through some examples, I've seen this code used to get a reference to the Flex application: // Get the reference: function this... | [
"javascript",
"apache-flex",
"internet-explorer",
"callback",
"externalinterface"
] | 3 | 5 | 710 | 1 | 0 | 2011-05-31T17:43:42.183000 | 2011-05-31T17:49:00.513000 |
6,191,398 | 6,191,419 | my jquery plugin wont accept my options! help! | okay i making a jQuery plugin to make a slide down menu on click, everything works on it but when i try to pass my own options it ignores them help please? http://jsfiddle.net/y5kC6/2/ theres is a jsfiddle so you can get a better thought of what i mean. | you don't have any named parameters. change $.fn.plugin = function() to $.fn.plugin = function(options) | my jquery plugin wont accept my options! help! okay i making a jQuery plugin to make a slide down menu on click, everything works on it but when i try to pass my own options it ignores them help please? http://jsfiddle.net/y5kC6/2/ theres is a jsfiddle so you can get a better thought of what i mean. | TITLE:
my jquery plugin wont accept my options! help!
QUESTION:
okay i making a jQuery plugin to make a slide down menu on click, everything works on it but when i try to pass my own options it ignores them help please? http://jsfiddle.net/y5kC6/2/ theres is a jsfiddle so you can get a better thought of what i mean.
... | [
"jquery",
"plugins"
] | 1 | 1 | 43 | 2 | 0 | 2011-05-31T17:44:25.597000 | 2011-05-31T17:46:19.950000 |
6,191,402 | 6,206,942 | TIdHTTPServer file upload | I'm trying to upload files to a Indy(ver. 10.5.5) TIdHTTPServer. I've been searching for solutions but no luck thus far, what I've found was for older versions of Indy which were not compatible with the version shipped with Delphi 2010. What I'm hoping is to achieve simply upload a file using "multipart/form-data" to t... | I started xxm as a way to build websites with Delphi, and have scripts with both HTML and Pascal code re-compile with a press of the browser's refresh button after changes made. It uses a generic interface that 'plugs into' IIS, Apache, Internet Explorer, FireFox, and there's a stand-alone HTTP exe also. The interface ... | TIdHTTPServer file upload I'm trying to upload files to a Indy(ver. 10.5.5) TIdHTTPServer. I've been searching for solutions but no luck thus far, what I've found was for older versions of Indy which were not compatible with the version shipped with Delphi 2010. What I'm hoping is to achieve simply upload a file using ... | TITLE:
TIdHTTPServer file upload
QUESTION:
I'm trying to upload files to a Indy(ver. 10.5.5) TIdHTTPServer. I've been searching for solutions but no luck thus far, what I've found was for older versions of Indy which were not compatible with the version shipped with Delphi 2010. What I'm hoping is to achieve simply up... | [
"delphi",
"delphi-2010",
"indy10"
] | 6 | 4 | 6,633 | 5 | 0 | 2011-05-31T17:44:53.647000 | 2011-06-01T20:01:02.363000 |
6,191,407 | 6,194,378 | PL SQL : Query to count differents values of a field | I have to do counts to the quantity of entitys in the database i have to obtain the quantity of registries for entities that appear ENTITY OVERALL DATE HOUR ====== ===== ==== ==== ENT1 5 20100318 12:00 ENT2 20 20100318 12:00 ENT3 12 20100318 12:00
CURSOR1 SELECT distinct(rp.cod_entidad), YYYYYYYYY, to_date(to_char(SYS... | Use a GROUP BY on the column that you want to be unique. In order for PL-SQL to not complain you'll have to use an aggregate function that will select a value for the other columns. I've picked MAX(), but MIN() or the non-existent whatever() will do just as well. SELECT rp.cod_entidad, count(*) as rowcount, -- number o... | PL SQL : Query to count differents values of a field I have to do counts to the quantity of entitys in the database i have to obtain the quantity of registries for entities that appear ENTITY OVERALL DATE HOUR ====== ===== ==== ==== ENT1 5 20100318 12:00 ENT2 20 20100318 12:00 ENT3 12 20100318 12:00
CURSOR1 SELECT dis... | TITLE:
PL SQL : Query to count differents values of a field
QUESTION:
I have to do counts to the quantity of entitys in the database i have to obtain the quantity of registries for entities that appear ENTITY OVERALL DATE HOUR ====== ===== ==== ==== ENT1 5 20100318 12:00 ENT2 20 20100318 12:00 ENT3 12 20100318 12:00
... | [
"sql",
"plsql",
"plsqldeveloper"
] | 0 | 2 | 694 | 2 | 0 | 2011-05-31T17:45:09.430000 | 2011-05-31T22:41:15.363000 |
6,191,412 | 6,191,428 | How to URL encode periods? | I need to URL encode some periods since I have to pass some document path along and it is like this http://example.com/test.aspx?document=test.docx So test.docx is causing me an error of an illegal character. So I need to change it to. --> %2E I tried to use Server.UrlEncode string b = Server.UrlEncode("http://example.... | The period there isn't he problem (given that %2E doesn't solve the problem). A period is a perfectly valid URL character whatever the problem is it's not the period. Check the stack trace of the error being throw or post the complete error details. And you shouldn't be URL encoding the entire path. Only the query stri... | How to URL encode periods? I need to URL encode some periods since I have to pass some document path along and it is like this http://example.com/test.aspx?document=test.docx So test.docx is causing me an error of an illegal character. So I need to change it to. --> %2E I tried to use Server.UrlEncode string b = Server... | TITLE:
How to URL encode periods?
QUESTION:
I need to URL encode some periods since I have to pass some document path along and it is like this http://example.com/test.aspx?document=test.docx So test.docx is causing me an error of an illegal character. So I need to change it to. --> %2E I tried to use Server.UrlEncode... | [
"c#",
"urlencode",
"url-encoding"
] | 38 | 23 | 72,332 | 2 | 0 | 2011-05-31T17:45:35.597000 | 2011-05-31T17:47:32.287000 |
6,191,432 | 6,191,649 | Is it possible to use OleDbTransaction to save data in two different databases? | Using C#, is it possible to use OleDbTransaction to execute a insert in two different database vendors, such as Microsoft SQL Server and Oracle? | Is it possible to use OleDbTransaction to save data in two different databases? No because an OleDbTransaction is tied to a specific OleDbConnection. The only solution is to use TransactionScope (preferred solution) or the EnterpriseServices classes. | Is it possible to use OleDbTransaction to save data in two different databases? Using C#, is it possible to use OleDbTransaction to execute a insert in two different database vendors, such as Microsoft SQL Server and Oracle? | TITLE:
Is it possible to use OleDbTransaction to save data in two different databases?
QUESTION:
Using C#, is it possible to use OleDbTransaction to execute a insert in two different database vendors, such as Microsoft SQL Server and Oracle?
ANSWER:
Is it possible to use OleDbTransaction to save data in two different... | [
"sql-server-2008",
"c#-4.0",
"oracle9i",
"distributed-transactions"
] | 1 | 0 | 298 | 1 | 0 | 2011-05-31T17:47:57.750000 | 2011-05-31T18:09:02.507000 |
6,191,442 | 6,191,520 | Stop curl dropping the port number | When I curl the following The page is returned however the images aren't. I located the problem. 192.168.0.14 is my local host. I am calling a page from an app the runs off port 8081. Curl seems to drop the port and change 192.168.0.14 to locahost and therefore the images are no longer linked to the right place. How do... | Unless you're building a 100% proxy, you're dumping the contents of the cURL pull in to a browser. The results now refer from the page that the cURL results are dumped to, not from the originating cURL request. Basically, if you visit http://localhost and the above code resides in the index.php, that page is requesting... | Stop curl dropping the port number When I curl the following The page is returned however the images aren't. I located the problem. 192.168.0.14 is my local host. I am calling a page from an app the runs off port 8081. Curl seems to drop the port and change 192.168.0.14 to locahost and therefore the images are no longe... | TITLE:
Stop curl dropping the port number
QUESTION:
When I curl the following The page is returned however the images aren't. I located the problem. 192.168.0.14 is my local host. I am calling a page from an app the runs off port 8081. Curl seems to drop the port and change 192.168.0.14 to locahost and therefore the i... | [
"php",
"image",
"curl",
"port"
] | 1 | 3 | 883 | 1 | 0 | 2011-05-31T17:48:38.127000 | 2011-05-31T17:55:54.303000 |
6,191,453 | 6,191,509 | Set tfoot position | Is it possible to style the tfoot section of a table so it shows between the thead and tbody? I would like to get a table to look like this: | Per my comment, you probably don't want to be making a table footer appear as anything other than a table footer. But assuming you have the properly-ordered markup, this should work in whatever browser supports it: thead, tfoot { display: table-header-group; } jsFiddle preview | Set tfoot position Is it possible to style the tfoot section of a table so it shows between the thead and tbody? I would like to get a table to look like this: | TITLE:
Set tfoot position
QUESTION:
Is it possible to style the tfoot section of a table so it shows between the thead and tbody? I would like to get a table to look like this:
ANSWER:
Per my comment, you probably don't want to be making a table footer appear as anything other than a table footer. But assuming you ha... | [
"jquery",
"css",
"html-table"
] | 2 | 10 | 4,503 | 2 | 0 | 2011-05-31T17:49:25.237000 | 2011-05-31T17:55:08.007000 |
6,191,459 | 6,191,776 | Setting cookie leads to an unexpected behaviour | I have a multilingual website with the possibility to switch between German and English. I want to store the chosen language in a cookie so that the visitor don't have to switch it over and over again to his prefered language when he visits the website next time. Unfortunately I have a strange behaviour with that. It l... | Make sure that you are properly setting the path of the cookie as well. For example if the language of your site is embedded in the URL (IE: http://yoursite.com/en/index.html ), you may be setting a cookie to only be valid if the path contains "/en". Full cookie setting syntax looks like this: document.cookie = 'mycook... | Setting cookie leads to an unexpected behaviour I have a multilingual website with the possibility to switch between German and English. I want to store the chosen language in a cookie so that the visitor don't have to switch it over and over again to his prefered language when he visits the website next time. Unfortun... | TITLE:
Setting cookie leads to an unexpected behaviour
QUESTION:
I have a multilingual website with the possibility to switch between German and English. I want to store the chosen language in a cookie so that the visitor don't have to switch it over and over again to his prefered language when he visits the website n... | [
"javascript",
"cookies",
"alert",
"shtml"
] | 3 | 1 | 70 | 1 | 0 | 2011-05-31T17:49:57.500000 | 2011-05-31T18:20:38.260000 |
6,191,462 | 6,247,338 | LLBLGEN: Load a EntityCollection or List from a datatable | How do I load an EntityCollection or List(Of Entity) from a DataTable using LLBLGen? | A datatable holds its values in rows and columns whereas a LLBLGen Collection class holds a collection of Entity objects that represent a table in your persistent storage. You can fetch a DataTable of fields that you define with a ResultsetFields via the TypedListDAO. However, going from a DataTable to an EntityCollect... | LLBLGEN: Load a EntityCollection or List from a datatable How do I load an EntityCollection or List(Of Entity) from a DataTable using LLBLGen? | TITLE:
LLBLGEN: Load a EntityCollection or List from a datatable
QUESTION:
How do I load an EntityCollection or List(Of Entity) from a DataTable using LLBLGen?
ANSWER:
A datatable holds its values in rows and columns whereas a LLBLGen Collection class holds a collection of Entity objects that represent a table in you... | [
"llblgenpro",
"llblgen"
] | 0 | 2 | 2,245 | 1 | 0 | 2011-05-31T17:50:05.597000 | 2011-06-06T02:32:10.880000 |
6,191,464 | 6,191,506 | String conversion for elements in NSMutableArray | So I have one NSArray that has names of documents to be presented in a UITableView. The NSString s in the NSArray have spaces so an entry would look like, "John Smith". Then I have pdfs that correspond to each of the table entries. These pdf entries are not the same name. They would be something like, "JohnSmith.pdf". ... | maybe you can use something like this: NSString *filename = [[name stringByReplacingOccurrencesOfString:@" " withString:@""] stringByAppendingPathExtension:@"pdf"]; | String conversion for elements in NSMutableArray So I have one NSArray that has names of documents to be presented in a UITableView. The NSString s in the NSArray have spaces so an entry would look like, "John Smith". Then I have pdfs that correspond to each of the table entries. These pdf entries are not the same name... | TITLE:
String conversion for elements in NSMutableArray
QUESTION:
So I have one NSArray that has names of documents to be presented in a UITableView. The NSString s in the NSArray have spaces so an entry would look like, "John Smith". Then I have pdfs that correspond to each of the table entries. These pdf entries are... | [
"iphone",
"objective-c"
] | 0 | 6 | 99 | 2 | 0 | 2011-05-31T17:50:21.383000 | 2011-05-31T17:54:55.737000 |
6,191,467 | 6,192,480 | Databinding with a listbox | I have a bit of code that reads a json response from an HTTP server, it then parses this and inserts the data into a ListBox control. The event I fire off when the download is complete is the following: void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e) { DataContractJsonSerializer ser = null... | To display a simple string your xaml should look like this: and you have to provide an object instead of a simple string if you want to split the properties to make it look nicer. If you just add Fid + Fusername + Fscore you will end up with a plain string. You will need a view class: public class UserView { public str... | Databinding with a listbox I have a bit of code that reads a json response from an HTTP server, it then parses this and inserts the data into a ListBox control. The event I fire off when the download is complete is the following: void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e) { DataContra... | TITLE:
Databinding with a listbox
QUESTION:
I have a bit of code that reads a json response from an HTTP server, it then parses this and inserts the data into a ListBox control. The event I fire off when the download is complete is the following: void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventAr... | [
"c#",
"xaml",
"data-binding",
"windows-phone-7",
"listbox"
] | 5 | 5 | 884 | 2 | 0 | 2011-05-31T17:50:30.357000 | 2011-05-31T19:22:03.107000 |
6,191,471 | 6,191,523 | Android - How to place an item on a layout relatively to the top? | How could I proceed to place an item on a LinearLayout, with a given space from the top? For instance, I would like to place the logo on the half of the top middle of the layout. Thanks | There is no way to add percentages. You can add two layouts with the same weight to split the screen in two and then add the logo with a centered gravity to the upper layout, Or you can measure the screen and add the right amount of margins. | Android - How to place an item on a layout relatively to the top? How could I proceed to place an item on a LinearLayout, with a given space from the top? For instance, I would like to place the logo on the half of the top middle of the layout. Thanks | TITLE:
Android - How to place an item on a layout relatively to the top?
QUESTION:
How could I proceed to place an item on a LinearLayout, with a given space from the top? For instance, I would like to place the logo on the half of the top middle of the layout. Thanks
ANSWER:
There is no way to add percentages. You c... | [
"android",
"android-layout"
] | 0 | 1 | 91 | 2 | 0 | 2011-05-31T17:51:12.430000 | 2011-05-31T17:56:12.843000 |
6,191,480 | 6,191,515 | Objective-C: init vs initialize | In Objective-C, what is the difference between the init method (i.e. the designated initializer for a class) and the initialize method? What initialization code should be put in each? | -init is an instance method, used to initialize a particular object. +initialize is a class method, run before any instances of the class are created and before other class methods are run. +initialize isn't something you use most of the time, but it's handy for setting up any static variables that the class as a whole... | Objective-C: init vs initialize In Objective-C, what is the difference between the init method (i.e. the designated initializer for a class) and the initialize method? What initialization code should be put in each? | TITLE:
Objective-C: init vs initialize
QUESTION:
In Objective-C, what is the difference between the init method (i.e. the designated initializer for a class) and the initialize method? What initialization code should be put in each?
ANSWER:
-init is an instance method, used to initialize a particular object. +initial... | [
"objective-c",
"initialization",
"init",
"initializer"
] | 78 | 125 | 28,010 | 2 | 0 | 2011-05-31T17:52:06.080000 | 2011-05-31T17:55:35.690000 |
6,191,490 | 6,191,524 | Using jQuery .append() to add elements to a new element which was just created with jQuery | I'm pulling my hair out trying to resolve this so any tips and help would be great. I'm trying to build a visual logic tree where the user will be able to input each node of the actual logic tree (this is a screen shot of what it actually looks like). The default logic tree has a user input for hypothesis, then 4 user ... | You should use jQuery's live() method for the click event like so: $('.add_sub_bucket').live("click",function (){ //... This will delegate the click event handler on new elements as they are added to the DOM as stated below: The live() method is able to affect elements that have not yet been added to the DOM through th... | Using jQuery .append() to add elements to a new element which was just created with jQuery I'm pulling my hair out trying to resolve this so any tips and help would be great. I'm trying to build a visual logic tree where the user will be able to input each node of the actual logic tree (this is a screen shot of what it... | TITLE:
Using jQuery .append() to add elements to a new element which was just created with jQuery
QUESTION:
I'm pulling my hair out trying to resolve this so any tips and help would be great. I'm trying to build a visual logic tree where the user will be able to input each node of the actual logic tree (this is a scre... | [
"php",
"jquery",
"append"
] | 1 | 1 | 704 | 2 | 0 | 2011-05-31T17:52:49.397000 | 2011-05-31T17:56:23.550000 |
6,191,495 | 6,191,770 | Removing the 'Mailed-by` header from outgoing emails | I am sending emails using PHP Pear class, when I see mails in gmail, it has an Mailed-by header, I know it can be removed by using -f in php mail function, but how can I remove it in Pear send. | The Mail Pear library is actually just a php file on your system. I highly doubt there is a programmatic way to do what you want, but if you can't find it in the PEAR documentation you can just examine the Mail.php file yourself. Try using the locate command on your system to find the Mail.php file. It should be in /us... | Removing the 'Mailed-by` header from outgoing emails I am sending emails using PHP Pear class, when I see mails in gmail, it has an Mailed-by header, I know it can be removed by using -f in php mail function, but how can I remove it in Pear send. | TITLE:
Removing the 'Mailed-by` header from outgoing emails
QUESTION:
I am sending emails using PHP Pear class, when I see mails in gmail, it has an Mailed-by header, I know it can be removed by using -f in php mail function, but how can I remove it in Pear send.
ANSWER:
The Mail Pear library is actually just a php f... | [
"php",
"email",
"pear"
] | 0 | 0 | 1,108 | 3 | 0 | 2011-05-31T17:53:50.710000 | 2011-05-31T18:19:53.567000 |
6,191,501 | 6,191,644 | Why TypeError when too many / too few args in Python function call | I'm having trouble understanding why Python raises a TypeError when you provide arguments that aren't part of a method signature. Example: >>> def funky():... pass... >>> funky(500) Traceback (most recent call last): File " ", line 1, in TypeError: funky() takes no arguments (1 given) I thought, if this is because *arg... | The function takes n arguments. You provided m. n!= m. That's propably a bug in someone's code or a symptom of someone's misunderstanding of some API. Also, I don't think we could agree on meaningful, useful semantics what should happen in this case. Should superfluous arguments be ignored? That would let such bugs pas... | Why TypeError when too many / too few args in Python function call I'm having trouble understanding why Python raises a TypeError when you provide arguments that aren't part of a method signature. Example: >>> def funky():... pass... >>> funky(500) Traceback (most recent call last): File " ", line 1, in TypeError: funk... | TITLE:
Why TypeError when too many / too few args in Python function call
QUESTION:
I'm having trouble understanding why Python raises a TypeError when you provide arguments that aren't part of a method signature. Example: >>> def funky():... pass... >>> funky(500) Traceback (most recent call last): File " ", line 1, ... | [
"python",
"api-design"
] | 5 | 1 | 2,319 | 2 | 0 | 2011-05-31T17:54:42.477000 | 2011-05-31T18:08:18.623000 |
6,191,503 | 6,192,156 | iCalendar TEXT Data Type - Preparing Values with PHP | I am providing download links for my application's events. One piece I am missing is how to prepare values for the TEXT data type. Specifically, the value that will end up with the DESCRIPTION property has HTML. I have downloaded several PHP projects related to the iCalendar RFC, but I haven't tracked down a good snipp... | Note the mixture of single and double quotes for the line break (Double quotes interpret the line breaks whereas single ones don't) $text = 'Hello, World! This is in a new line; after a semicolon/comma'; $search = array('/',';',',',"\N","\n"); $replace = array('\/','\;','\,','\n','\n'); $description = str_replace($sear... | iCalendar TEXT Data Type - Preparing Values with PHP I am providing download links for my application's events. One piece I am missing is how to prepare values for the TEXT data type. Specifically, the value that will end up with the DESCRIPTION property has HTML. I have downloaded several PHP projects related to the i... | TITLE:
iCalendar TEXT Data Type - Preparing Values with PHP
QUESTION:
I am providing download links for my application's events. One piece I am missing is how to prepare values for the TEXT data type. Specifically, the value that will end up with the DESCRIPTION property has HTML. I have downloaded several PHP project... | [
"php",
"parsing",
"icalendar"
] | 0 | 1 | 298 | 1 | 0 | 2011-05-31T17:54:45.767000 | 2011-05-31T18:55:15.950000 |
6,191,504 | 6,192,111 | How to deal with UTF-16LE encoded text file using Java? or convert it to ASCII? | I am sorry if it has been asked before. I am trying to process a text file using Java. The text file is exported from MS SQLServer. When I open it in PSPad (sort of text editor in which I can view any file in hex format), it tells me that my text file is in UTF-16LE. Since I am getting it from someone else, it is quite... | Just found a solution. http://www.fileformat.info/convert/text/utf2utf.htm Lets you upload and convert between the encodings. Its not a permanent solution though, since my file is 700MB+. So I will try out some solutions posted by others. This small software helps: http://www.kalytta.com/tools.php | How to deal with UTF-16LE encoded text file using Java? or convert it to ASCII? I am sorry if it has been asked before. I am trying to process a text file using Java. The text file is exported from MS SQLServer. When I open it in PSPad (sort of text editor in which I can view any file in hex format), it tells me that m... | TITLE:
How to deal with UTF-16LE encoded text file using Java? or convert it to ASCII?
QUESTION:
I am sorry if it has been asked before. I am trying to process a text file using Java. The text file is exported from MS SQLServer. When I open it in PSPad (sort of text editor in which I can view any file in hex format), ... | [
"java",
"character-encoding",
"utf-16le"
] | 2 | 0 | 10,581 | 3 | 0 | 2011-05-31T17:54:50.510000 | 2011-05-31T18:50:38.103000 |
6,191,508 | 6,191,625 | casting signed to unsigned | is it correct to do this? typedef unsigned int Index;
enum { InvalidIndex = (Index) -1 }; I have read that it is unsafe across platforms, but I have seen this in so many "professional" codes... | What you read was probably out of Fear, Uncertainty and Doubt. The author of whatever you read probably thought that (unsigned)-1 was underflowing and potentially causing chaos on systems where the bit representation doesn't happen to give you UINT_MAX for your trouble. However, the author is wrong, because the standar... | casting signed to unsigned is it correct to do this? typedef unsigned int Index;
enum { InvalidIndex = (Index) -1 }; I have read that it is unsafe across platforms, but I have seen this in so many "professional" codes... | TITLE:
casting signed to unsigned
QUESTION:
is it correct to do this? typedef unsigned int Index;
enum { InvalidIndex = (Index) -1 }; I have read that it is unsafe across platforms, but I have seen this in so many "professional" codes...
ANSWER:
What you read was probably out of Fear, Uncertainty and Doubt. The auth... | [
"c++",
"unsigned"
] | 7 | 6 | 1,891 | 4 | 0 | 2011-05-31T17:55:03.597000 | 2011-05-31T18:06:32.087000 |
6,191,510 | 6,191,582 | Properly adding functions within function | I'm creating a profile script where users can edit their personal info, interests, and links. I had all the fields in one form but now I want to separate them by tabs. So I will have a personal info tab, interests tab, and links tab. In each page I will have a form submitting data to the corresponding function. For exa... | Wow, you kind of lost me. Why are you using functions within functions? If you're using CodeIgniter, those functions should be within a class: class Edit extends CI_Controller { function personal_info() { /* Do personal info stuff. */ }
function interests() { /* Do interests stuff. */ }
function links() { /* Do links... | Properly adding functions within function I'm creating a profile script where users can edit their personal info, interests, and links. I had all the fields in one form but now I want to separate them by tabs. So I will have a personal info tab, interests tab, and links tab. In each page I will have a form submitting d... | TITLE:
Properly adding functions within function
QUESTION:
I'm creating a profile script where users can edit their personal info, interests, and links. I had all the fields in one form but now I want to separate them by tabs. So I will have a personal info tab, interests tab, and links tab. In each page I will have a... | [
"php",
"function",
"codeigniter"
] | 0 | 3 | 77 | 2 | 0 | 2011-05-31T17:55:13.973000 | 2011-05-31T18:02:06.610000 |
6,191,511 | 6,191,552 | How to create an installer for WCF service that's hosted via Console application | I have a wcf service and I have a console application that hosts the service The console application also holds a SQL-CE database, if it makes any difference. I'm using.net 4 and IIS 7.5? I prefer doing it with Visual studio 2010 setup project. | If it's hosted in a console application, it means you have to start the console application to start the service. To start the console you need a user logged in. To make it log in automatically, you can use Autologon. To create an installer just create a setup project as you would in any windows application. | How to create an installer for WCF service that's hosted via Console application I have a wcf service and I have a console application that hosts the service The console application also holds a SQL-CE database, if it makes any difference. I'm using.net 4 and IIS 7.5? I prefer doing it with Visual studio 2010 setup pro... | TITLE:
How to create an installer for WCF service that's hosted via Console application
QUESTION:
I have a wcf service and I have a console application that hosts the service The console application also holds a SQL-CE database, if it makes any difference. I'm using.net 4 and IIS 7.5? I prefer doing it with Visual stu... | [
"c#",
".net",
"wcf",
"installation",
"console-application"
] | 0 | 0 | 914 | 1 | 0 | 2011-05-31T17:55:17.327000 | 2011-05-31T17:59:35.627000 |
6,191,530 | 6,194,171 | invoke Struts 2 action method with different arguments | In my struts 2 actionclass, I have a method: public String doXXX(String param){
//do stuff return SUCCESS; } In my config xml, how can I call this method with different values for 'param' based on the action. Something like: | You can't pass arguments in the method which you intend to use as the action method. You can specify a param element in the struts.xml for your action as follows: bar You then need to declare a private variable called foo on your struts2Class with getters and setters. This property will be set when action1 is invoked. ... | invoke Struts 2 action method with different arguments In my struts 2 actionclass, I have a method: public String doXXX(String param){
//do stuff return SUCCESS; } In my config xml, how can I call this method with different values for 'param' based on the action. Something like: | TITLE:
invoke Struts 2 action method with different arguments
QUESTION:
In my struts 2 actionclass, I have a method: public String doXXX(String param){
//do stuff return SUCCESS; } In my config xml, how can I call this method with different values for 'param' based on the action. Something like:
ANSWER:
You can't pa... | [
"struts2"
] | 1 | 4 | 5,513 | 1 | 0 | 2011-05-31T17:56:45.423000 | 2011-05-31T22:10:34.437000 |
6,191,537 | 6,191,549 | Javascript Equivalent for Session Variables in VB? | I have some VB code, which I can no longer use (long story). It goes like this: Session.Contents("LetterVariables") = Nothing Is there a javascript equivalent? Thanks, Jason. | There is no direct equivalent, since javascript runs client side, not server side. You can use cookies for small amounts of data, and with HTML you can use local storage. These allow you to share data across pages (on the same domain) using javascript, but unless using session cookies or coding specifically for it, the... | Javascript Equivalent for Session Variables in VB? I have some VB code, which I can no longer use (long story). It goes like this: Session.Contents("LetterVariables") = Nothing Is there a javascript equivalent? Thanks, Jason. | TITLE:
Javascript Equivalent for Session Variables in VB?
QUESTION:
I have some VB code, which I can no longer use (long story). It goes like this: Session.Contents("LetterVariables") = Nothing Is there a javascript equivalent? Thanks, Jason.
ANSWER:
There is no direct equivalent, since javascript runs client side, n... | [
"javascript",
"vb.net",
"session",
"variables"
] | 1 | 3 | 735 | 2 | 0 | 2011-05-31T17:57:43.647000 | 2011-05-31T17:59:27.187000 |
6,191,538 | 6,192,511 | ODBC Pervasive Error | I am having the hardest time connecting to this pervasive server for this asp.net application I'm working on. Right now, I am able to access and view the entire database using my connection string in the server explorer in visual studio however when I actually run it I get an error. Here is my code: String myConnection... | The line: OdbcCommand command = new OdbcCommand(myConnectionString, myConnection); should have your SQL statement in it: OdbcCommand command = new OdbcCommand("select * from table", myConnection); rather than the connection string. When you call the ExecuteReader line, the SQL engine tries to execute the connection str... | ODBC Pervasive Error I am having the hardest time connecting to this pervasive server for this asp.net application I'm working on. Right now, I am able to access and view the entire database using my connection string in the server explorer in visual studio however when I actually run it I get an error. Here is my code... | TITLE:
ODBC Pervasive Error
QUESTION:
I am having the hardest time connecting to this pervasive server for this asp.net application I'm working on. Right now, I am able to access and view the entire database using my connection string in the server explorer in visual studio however when I actually run it I get an erro... | [
"asp.net",
"odbc",
"pervasive"
] | 0 | 3 | 2,180 | 2 | 0 | 2011-05-31T17:58:02.617000 | 2011-05-31T19:25:58.863000 |
6,191,544 | 6,215,948 | Create SharePoint 2010 search content source that uses a BDC via PowerShell | Using powershell how do you create a content sorce that uses a BDC? Documentation on Technet for New-SPEnterpriseSearchCrawlContentSource is not very clear on how to do this. So far this seems most reasonable to me but it doesn't work. $searchapp = Get-SPEnterpriseSearchServiceApplication "MySearchApplication" New-SPEn... | This is what worked for me. $searchapp = Get-SPEnterpriseSearchServiceApplication "My Search Service Application Name" $lobSystems = @("LOBSystemName1","LOBSystemInstanceName1") $proxyGroup = Get-SPServiceApplicationProxyGroup -default New-SPEnterpriseSearchCrawlContentSource -name "My Content Source Name" -searchappli... | Create SharePoint 2010 search content source that uses a BDC via PowerShell Using powershell how do you create a content sorce that uses a BDC? Documentation on Technet for New-SPEnterpriseSearchCrawlContentSource is not very clear on how to do this. So far this seems most reasonable to me but it doesn't work. $searcha... | TITLE:
Create SharePoint 2010 search content source that uses a BDC via PowerShell
QUESTION:
Using powershell how do you create a content sorce that uses a BDC? Documentation on Technet for New-SPEnterpriseSearchCrawlContentSource is not very clear on how to do this. So far this seems most reasonable to me but it does... | [
"powershell",
"sharepoint-2010"
] | 1 | 1 | 2,128 | 1 | 0 | 2011-05-31T17:58:51.697000 | 2011-06-02T14:32:36.980000 |
6,191,545 | 6,191,616 | how to design a java matrix class implementation independent | I need to use a matrix class in my application for operations like Eigenvalue decomposition,LUDecomposition as well as normal matrix ops like multiplication,addition,transposition etc. I decided to use jama at present since I am quite familiar with it and because I am currently working with small datasets. But probably... | Since there is no de facto or formal standard interface to different Java matrix implementations, you could consider minimizing the effort in switching implementations by designing a Facade that implements the matrix ops you want, coupled with a matrix factory (via eg. Abstract Factory, Factory Method ) that instantiat... | how to design a java matrix class implementation independent I need to use a matrix class in my application for operations like Eigenvalue decomposition,LUDecomposition as well as normal matrix ops like multiplication,addition,transposition etc. I decided to use jama at present since I am quite familiar with it and bec... | TITLE:
how to design a java matrix class implementation independent
QUESTION:
I need to use a matrix class in my application for operations like Eigenvalue decomposition,LUDecomposition as well as normal matrix ops like multiplication,addition,transposition etc. I decided to use jama at present since I am quite famili... | [
"java",
"matrix",
"implementation"
] | 1 | 3 | 1,313 | 3 | 0 | 2011-05-31T17:58:54.473000 | 2011-05-31T18:05:28.097000 |
6,191,551 | 6,191,664 | Get file names in VS2010 project using T4 | I'm trying to use T4 with VS2010 to enumerate files in a project, run a custom tool on files that have a certain extension, and then add generated files to the solution. However, I can't seem to figure out how to get the names of the files in my projects. I looked at EnvDTE and couldn't locate a function that would do ... | Good luck. No, seriously. EnvDTE isn't the most friendly interface. Long story short, from the Solution EnvDTE.Solution you must iterate the projects within the solution ( Solution.Projects ) and then enumerate ( recursively! ) the ProjectItems in the Project ( Project.ProjectItems ) and get the filenames for each Proj... | Get file names in VS2010 project using T4 I'm trying to use T4 with VS2010 to enumerate files in a project, run a custom tool on files that have a certain extension, and then add generated files to the solution. However, I can't seem to figure out how to get the names of the files in my projects. I looked at EnvDTE and... | TITLE:
Get file names in VS2010 project using T4
QUESTION:
I'm trying to use T4 with VS2010 to enumerate files in a project, run a custom tool on files that have a certain extension, and then add generated files to the solution. However, I can't seem to figure out how to get the names of the files in my projects. I lo... | [
"visual-studio-2010",
"t4"
] | 1 | 2 | 571 | 1 | 0 | 2011-05-31T17:59:28.687000 | 2011-05-31T18:10:18.293000 |
6,191,553 | 6,191,727 | Designing a business system | I am assigned to design a business system. The requirement of the client is that the software should start recording the user interactions from the user login to logout. It will be basically a class/object which will record the following items Amount of time user spent waiting to get a response for a request issued The... | I have used Omniture SiteCatalyst (which is now Adobe SiteCatalyst apparently) in the past and it is quite powerful. It will allow you to track a huge number of things and is fairly easy to configure and examine the results. The information is stored offsite if I remember correctly and you get a browser based dashboard... | Designing a business system I am assigned to design a business system. The requirement of the client is that the software should start recording the user interactions from the user login to logout. It will be basically a class/object which will record the following items Amount of time user spent waiting to get a respo... | TITLE:
Designing a business system
QUESTION:
I am assigned to design a business system. The requirement of the client is that the software should start recording the user interactions from the user login to logout. It will be basically a class/object which will record the following items Amount of time user spent wait... | [
".net",
"analytics",
"business-intelligence"
] | 1 | 3 | 115 | 1 | 0 | 2011-05-31T17:59:37.850000 | 2011-05-31T18:16:12.210000 |
6,191,555 | 6,191,641 | Which is the Best Java IDE for Spring Framework? | Which is the best base java IDE (eclipse, Netbean) for developing spring based application apart from IntelliJ. I have used NetBean so far, the online documentation and google search points to only one link http://netbeans.org/kb/docs/web/quickstart-webapps-spring.html. So does it mean we can only develop Spring MVC ap... | You should definitely use SpringSource Tool Suite, an Eclipse-based IDE created by SpringSource themselves. Also on the official SpringSource channel @YouTube you'll find a pretty extensive 5-part introduction to using Spring & STS. | Which is the Best Java IDE for Spring Framework? Which is the best base java IDE (eclipse, Netbean) for developing spring based application apart from IntelliJ. I have used NetBean so far, the online documentation and google search points to only one link http://netbeans.org/kb/docs/web/quickstart-webapps-spring.html. ... | TITLE:
Which is the Best Java IDE for Spring Framework?
QUESTION:
Which is the best base java IDE (eclipse, Netbean) for developing spring based application apart from IntelliJ. I have used NetBean so far, the online documentation and google search points to only one link http://netbeans.org/kb/docs/web/quickstart-web... | [
"java",
"spring",
"eclipse",
"netbeans",
"ide"
] | 31 | 31 | 97,809 | 5 | 0 | 2011-05-31T17:59:43.037000 | 2011-05-31T18:08:06.937000 |
6,191,559 | 6,191,580 | How to reload page after .submit() | I want to reload my page after successful login i.e. whether $.post() returns a 1 page should reload and for a 0 it shouldn't. For example, my initial attempt: var logon = false;
$('#formname').submit(function() { $.post('load.php', $('#formname').serialize(), function(data) { if(data == '0') logon = false; else logon... | You could use the reload() method: $('#formname').submit(function() { $.post('load.php', $('#formname').serialize(), function(data) { if(data == '1') { window.location.reload(); } }); return false; }); I've intentionally removed the logon variable as it is not needed. AJAX is asynchronous so returning this variable fro... | How to reload page after .submit() I want to reload my page after successful login i.e. whether $.post() returns a 1 page should reload and for a 0 it shouldn't. For example, my initial attempt: var logon = false;
$('#formname').submit(function() { $.post('load.php', $('#formname').serialize(), function(data) { if(dat... | TITLE:
How to reload page after .submit()
QUESTION:
I want to reload my page after successful login i.e. whether $.post() returns a 1 page should reload and for a 0 it shouldn't. For example, my initial attempt: var logon = false;
$('#formname').submit(function() { $.post('load.php', $('#formname').serialize(), funct... | [
"javascript",
"jquery",
"html",
"ajax",
"submit"
] | 1 | 3 | 6,485 | 1 | 0 | 2011-05-31T18:00:20.370000 | 2011-05-31T18:01:51.413000 |
6,191,561 | 6,191,597 | I need an HTML listbox with UTC TimeZones | I need an html listbox(dropbox) with all the timezones just like in the windows7 timezone listbox, if theres a sample available somewhere, i couldnt find it on google, or maybe i'm not that lucky, however i can rewrite the listbox, but just thought if there's an already coded list! Please not, it has to be UTC, cuz i f... | GMT = UTC: UTC is closely related to Universal Time and Greenwich Mean Time (GMT) and within informal or casual contexts where sub-second precision is not required, it can be used interchangeably. Do a search+replace of "GMT" to "UTC" and you're done. | I need an HTML listbox with UTC TimeZones I need an html listbox(dropbox) with all the timezones just like in the windows7 timezone listbox, if theres a sample available somewhere, i couldnt find it on google, or maybe i'm not that lucky, however i can rewrite the listbox, but just thought if there's an already coded l... | TITLE:
I need an HTML listbox with UTC TimeZones
QUESTION:
I need an html listbox(dropbox) with all the timezones just like in the windows7 timezone listbox, if theres a sample available somewhere, i couldnt find it on google, or maybe i'm not that lucky, however i can rewrite the listbox, but just thought if there's ... | [
"html",
"listbox",
"timezone"
] | 1 | 1 | 524 | 1 | 0 | 2011-05-31T18:00:38.410000 | 2011-05-31T18:03:42.710000 |
6,191,562 | 6,193,068 | WPF Drag and Drop | How to implement drag & drop for a WPF application? I could open 2 the same apps and drag an object from one to another. Here's what I want to drag: Hello World The Grid has to look the same in the other app where it is dragged as the one from it was dragged. Any solutions? | I've used Gong Solutions Drag and Drop successfully in the past, it's a very easy DLL to use. You can see a small sample of it here: Gong Solutions | WPF Drag and Drop How to implement drag & drop for a WPF application? I could open 2 the same apps and drag an object from one to another. Here's what I want to drag: Hello World The Grid has to look the same in the other app where it is dragged as the one from it was dragged. Any solutions? | TITLE:
WPF Drag and Drop
QUESTION:
How to implement drag & drop for a WPF application? I could open 2 the same apps and drag an object from one to another. Here's what I want to drag: Hello World The Grid has to look the same in the other app where it is dragged as the one from it was dragged. Any solutions?
ANSWER:
... | [
"wpf",
"vb.net",
"drag-and-drop"
] | 1 | 1 | 4,134 | 3 | 0 | 2011-05-31T18:00:40.490000 | 2011-05-31T20:17:06.817000 |
6,191,566 | 6,191,605 | Do we always need to use context.Server.MapPath? what if I cache the result? | I find it weird to use context.Server.MapPath every time just to determine physical location of some known directory/file under app_data folder. I have an understanding that once an application is running, it must not be possible to have its physical location be changed without first shutting it down. If this is true, ... | The path is relative to the current request, so MapPath("foo") might have a different result on requests at different urls. However, if your path is relative to the app-root ( "~/foo" ) or relative to the site-root ( "/foo" ) you can pretty much cache to your heart's content. There is perhaps an edge-case scenario of p... | Do we always need to use context.Server.MapPath? what if I cache the result? I find it weird to use context.Server.MapPath every time just to determine physical location of some known directory/file under app_data folder. I have an understanding that once an application is running, it must not be possible to have its p... | TITLE:
Do we always need to use context.Server.MapPath? what if I cache the result?
QUESTION:
I find it weird to use context.Server.MapPath every time just to determine physical location of some known directory/file under app_data folder. I have an understanding that once an application is running, it must not be poss... | [
"c#",
"asp.net",
"contextpath"
] | 3 | 1 | 3,331 | 3 | 0 | 2011-05-31T18:00:58.757000 | 2011-05-31T18:04:28.823000 |
6,191,569 | 6,197,156 | Do I need to install Sql Server CE or not? | I've deployed an application (wcf REST service) on an hosted server and I am having problems with the fact that I want to make use of SQL Server Compact Edition in application. I know sqlce might not be intended to be used with wcf services, but it's a POC application so for now I want to use something lightweight. My ... | See this answer: Can't get sql server compact 3.5 / 4 to work with ASP.NET MVC 2 | Do I need to install Sql Server CE or not? I've deployed an application (wcf REST service) on an hosted server and I am having problems with the fact that I want to make use of SQL Server Compact Edition in application. I know sqlce might not be intended to be used with wcf services, but it's a POC application so for n... | TITLE:
Do I need to install Sql Server CE or not?
QUESTION:
I've deployed an application (wcf REST service) on an hosted server and I am having problems with the fact that I want to make use of SQL Server Compact Edition in application. I know sqlce might not be intended to be used with wcf services, but it's a POC ap... | [
"sql-server-ce"
] | 2 | 1 | 3,321 | 1 | 0 | 2011-05-31T18:01:07.797000 | 2011-06-01T06:32:31.193000 |
6,191,588 | 6,191,899 | Reciprocal friend member functions = circular include declarations | I have two classes defined in different h files and each class has some private functions. However, there's one function in each class that I want to be able to access from a function in the other class. For example... //apple.h:
class Beets;
class Apple { public: double ShadeUsed(); private: void Fruit(); bool RedRo... | You could use friend functions which call the member functions. //apple.h:
class Beets;
class Apple { public: double ShadeUsed(); private: void Fruit(); bool RedRoots(); friend bool Beets_BlueRoots(Beets* beets); friend bool Apple_RedRoots(Apple* apple); };
bool Apple_RedRoots(Apple* apple);
//beets.h
class Beets ... | Reciprocal friend member functions = circular include declarations I have two classes defined in different h files and each class has some private functions. However, there's one function in each class that I want to be able to access from a function in the other class. For example... //apple.h:
class Beets;
class Ap... | TITLE:
Reciprocal friend member functions = circular include declarations
QUESTION:
I have two classes defined in different h files and each class has some private functions. However, there's one function in each class that I want to be able to access from a function in the other class. For example... //apple.h:
clas... | [
"c++",
"friend",
"circular-dependency"
] | 0 | 1 | 1,545 | 2 | 0 | 2011-05-31T18:02:42.157000 | 2011-05-31T18:30:50.693000 |
6,191,590 | 6,191,930 | CSS media query on iPhone | I'm trying to use a CSS media query, specifically targeting the iPhone. It works when I use a regular link rel: However, when I try this media query it doesn't work: How can I use a CSS media query to target the iPhone? | Try: The difference is max-device-width instead of just max-width. Also see 2) on http://blogs.sitepoint.com/iphone-development-12-tips/. | CSS media query on iPhone I'm trying to use a CSS media query, specifically targeting the iPhone. It works when I use a regular link rel: However, when I try this media query it doesn't work: How can I use a CSS media query to target the iPhone? | TITLE:
CSS media query on iPhone
QUESTION:
I'm trying to use a CSS media query, specifically targeting the iPhone. It works when I use a regular link rel: However, when I try this media query it doesn't work: How can I use a CSS media query to target the iPhone?
ANSWER:
Try: The difference is max-device-width instead... | [
"iphone",
"css",
"mobile-safari",
"media-queries"
] | 7 | 14 | 15,239 | 2 | 0 | 2011-05-31T18:03:07.610000 | 2011-05-31T18:34:04.903000 |
6,191,591 | 6,197,219 | How can WIX based installers do COM registration for both 32 and 64 bit Windows OSes? | I have a long lived installer which is using RegistryValue to setup a.Net COM server. The installer is 32 bit. I would like to have the registry settings also set for 64 bit OSes. My research shows that I need to have a separate 64 bit installer for this purpose. Fine how can I then have a bootstrapper which detects th... | You would need to write the bootstrapper yourself. WiX doesn't support mixed 32/64-bit packages because Windows Installer doesn't support them. However, some commercial tools use a custom bootstrapper and 2 MSI files to handle a mixed installer. | How can WIX based installers do COM registration for both 32 and 64 bit Windows OSes? I have a long lived installer which is using RegistryValue to setup a.Net COM server. The installer is 32 bit. I would like to have the registry settings also set for 64 bit OSes. My research shows that I need to have a separate 64 bi... | TITLE:
How can WIX based installers do COM registration for both 32 and 64 bit Windows OSes?
QUESTION:
I have a long lived installer which is using RegistryValue to setup a.Net COM server. The installer is 32 bit. I would like to have the registry settings also set for 64 bit OSes. My research shows that I need to hav... | [
"wix",
"windows-installer"
] | 5 | 4 | 2,487 | 2 | 0 | 2011-05-31T18:03:12.583000 | 2011-06-01T06:39:30.080000 |
6,191,592 | 6,195,643 | Programmatically Checking if a Passcode Lock is Set | Since my app would be dealing with sensitive data of the user, I would like to know if there is a way I can check from my app whether there is a Passcode Lock set in iOS. The reason I need to check this is because say if the user has in the app some information and then keeps it on the table and goes out for a couple o... | Take a look at the File Protection section on The Application Runtime Environment. File protection requires the user to have passcode lock setting enabled and a valid passcode set. If you your application writes/creates and file, use the NSDataWritingFileProtectionComplete option. If your application doesn't use any fi... | Programmatically Checking if a Passcode Lock is Set Since my app would be dealing with sensitive data of the user, I would like to know if there is a way I can check from my app whether there is a Passcode Lock set in iOS. The reason I need to check this is because say if the user has in the app some information and th... | TITLE:
Programmatically Checking if a Passcode Lock is Set
QUESTION:
Since my app would be dealing with sensitive data of the user, I would like to know if there is a way I can check from my app whether there is a Passcode Lock set in iOS. The reason I need to check this is because say if the user has in the app some ... | [
"ios",
"security",
"ipad",
"locking"
] | 20 | 3 | 7,705 | 4 | 0 | 2011-05-31T18:03:29.307000 | 2011-06-01T02:34:21.320000 |
6,191,609 | 6,191,645 | Can anyone help me with a question about Interfaces in C# | I've been given a question that says this. Create the IPeople Interface: Teachers and Students have much in common but some minor differences. Create an interface to expose all commanlity between them. You will need to modify the Teacher and Student partial classes in order for them to implement this interface. Now I'm... | To satisfy this, all you have to do is create the interface w/ the common properties you've identified, then in the partial classes have the two classes implement the interface, e.g.: public partial class Student: IUniversityPerson{... } where IUniversityPerson is the interface you've created. Linking course and so on ... | Can anyone help me with a question about Interfaces in C# I've been given a question that says this. Create the IPeople Interface: Teachers and Students have much in common but some minor differences. Create an interface to expose all commanlity between them. You will need to modify the Teacher and Student partial clas... | TITLE:
Can anyone help me with a question about Interfaces in C#
QUESTION:
I've been given a question that says this. Create the IPeople Interface: Teachers and Students have much in common but some minor differences. Create an interface to expose all commanlity between them. You will need to modify the Teacher and St... | [
"c#",
"interface"
] | 2 | 0 | 249 | 4 | 0 | 2011-05-31T18:04:39.933000 | 2011-05-31T18:08:21.680000 |
6,191,612 | 6,192,601 | Scripts overlapping/cancelling each other out? | I'm writing what should be very simple HTML CSS and Jquery code, but since I'm somewhat new to this stuff I'm still having trouble figuring it out. please help.. I'm trying to get the slideshow on this page http://vbwtest.comeze.com/index.php to be exactly the same as the slideshow on http://vbwpublishing.3dcartstores.... | After looking at the sites code with firebug, i have noticed the arrow image wont load because it is linked incorrectly in the css file. With regards to the script not working, the slider works fine. Even the arrow button works without the image. | Scripts overlapping/cancelling each other out? I'm writing what should be very simple HTML CSS and Jquery code, but since I'm somewhat new to this stuff I'm still having trouble figuring it out. please help.. I'm trying to get the slideshow on this page http://vbwtest.comeze.com/index.php to be exactly the same as the ... | TITLE:
Scripts overlapping/cancelling each other out?
QUESTION:
I'm writing what should be very simple HTML CSS and Jquery code, but since I'm somewhat new to this stuff I'm still having trouble figuring it out. please help.. I'm trying to get the slideshow on this page http://vbwtest.comeze.com/index.php to be exactl... | [
"javascript",
"jquery",
"html",
"css"
] | 0 | 1 | 584 | 1 | 0 | 2011-05-31T18:04:57.600000 | 2011-05-31T19:33:50.830000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.