PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
11,211,117
06/26/2012 15:47:44
1,319,866
04/08/2012 04:01:12
6
0
When to use PCA and when to use SVD?
Can anyone shed some light on when to use SVD and when to use PCA? In predictive modeling, PCA is usually used for dimension reduction for other modeling techniques. However, I see SVD more frequently mentioned in IR and Text Mining and collaborative filtering.
statistics
data-mining
linear-algebra
information-retrieval
text-mining
06/27/2012 16:07:16
off topic
When to use PCA and when to use SVD? === Can anyone shed some light on when to use SVD and when to use PCA? In predictive modeling, PCA is usually used for dimension reduction for other modeling techniques. However, I see SVD more frequently mentioned in IR and Text Mining and collaborative filtering.
2
9,151,443
02/05/2012 17:43:25
411,714
08/05/2010 08:37:39
135
6
Passing multiple values as query string is good or bad practice in MVC
In my page I ve to pass multiple values to controller. My URL looks something like : http://blah/Search/Page/?type=new&keywords=blahblah&sortType=Date Is Passing multiple values as query string good practice in MVC ? or We can have slash separated URL, by using introducing custom routing? NB: Lets consider all the values in my query string, are not secure / personal data.
asp.net-mvc-3
mvc
asp.net-mvc-routing
null
null
null
open
Passing multiple values as query string is good or bad practice in MVC === In my page I ve to pass multiple values to controller. My URL looks something like : http://blah/Search/Page/?type=new&keywords=blahblah&sortType=Date Is Passing multiple values as query string good practice in MVC ? or We can have slash separated URL, by using introducing custom routing? NB: Lets consider all the values in my query string, are not secure / personal data.
0
11,718,238
07/30/2012 08:59:27
1,293,558
03/26/2012 16:49:38
77
16
html5 / css3 page-break-* not working correctly in chrome or safari
So I've got the following CSS. #container { margin: 0 auto 0 auto; width: 800px; } .print { display: none; } @media print { #container { margin: 0; page-break-before: always; } .print { display: block; } } Applied to the following HTML. <html> <body> <div class="print"> <img src="/logo" style="left: 50%; margin-left: -34px; margin-top: -15px; position: absolute; top: 50%;" /> </div> <div id="container"> ... </div> </body> </html> And everything is wonderful except in Chrome and in Safari, which both insert a page-break **before** `<img>` and stick `/logo` right smack in the middle of page 2. I get the same putting (for example) `page-break-after: always;` in the print class. I suspect this might have something to do with `position: absolute;`? How can I get `<div class="print">` to show up in page 1, with `/logo` in the middle, and `<div id="container">` to start at the top of page 2?
html5
google-chrome
css3
safari
page-break
null
open
html5 / css3 page-break-* not working correctly in chrome or safari === So I've got the following CSS. #container { margin: 0 auto 0 auto; width: 800px; } .print { display: none; } @media print { #container { margin: 0; page-break-before: always; } .print { display: block; } } Applied to the following HTML. <html> <body> <div class="print"> <img src="/logo" style="left: 50%; margin-left: -34px; margin-top: -15px; position: absolute; top: 50%;" /> </div> <div id="container"> ... </div> </body> </html> And everything is wonderful except in Chrome and in Safari, which both insert a page-break **before** `<img>` and stick `/logo` right smack in the middle of page 2. I get the same putting (for example) `page-break-after: always;` in the print class. I suspect this might have something to do with `position: absolute;`? How can I get `<div class="print">` to show up in page 1, with `/logo` in the middle, and `<div id="container">` to start at the top of page 2?
0
1,092,123
07/07/2009 12:47:45
4,639
09/04/2008 23:07:22
4,016
23
How to make a XAML animation make the element disappear AFTER it has faded out
Thanks to the answer on [this stackoverflow question][1] I was able to get the following animation to work, so that when the value of my ViewModel property **PageToolBarVisible** causes the toolbar to fade in and out. The problem is: - the toolbar opacity fades out, but it the space it took up is still present after it fades out - the initial toolbar status is not in sync with the value of the ViewModel property But how do I handle the following conditions, in XAML itself, if possible: - **after** the toolbar (Border) **fades out**, how do I then say "then and only then Visibility=Collapsed", e.g. perhaps with a double animation - **before** the toolbar **fades in**, how do I say "Visibilty=Normal" - how do I also attach these events not only to the View Load process so that they show the correct status (faded in or faded out) when the page first appears? Here is my animation so far: <Style x:Key="PageToolBarStyle" TargetType="Border"> <Style.Triggers> <DataTrigger Binding="{Binding PageToolBarVisible}" Value="true"> <DataTrigger.EnterActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:3"/> </Storyboard> </BeginStoryboard> </DataTrigger.EnterActions> <DataTrigger.ExitActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:3"/> </Storyboard> </BeginStoryboard> </DataTrigger.ExitActions> </DataTrigger> </Style.Triggers> </Style> [1]: http://stackoverflow.com/questions/1091976/how-to-make-add-a-fade-in-fade-out-animation-based-on-viewmodel-property-value
wpf
xaml
animation
triggers
null
null
open
How to make a XAML animation make the element disappear AFTER it has faded out === Thanks to the answer on [this stackoverflow question][1] I was able to get the following animation to work, so that when the value of my ViewModel property **PageToolBarVisible** causes the toolbar to fade in and out. The problem is: - the toolbar opacity fades out, but it the space it took up is still present after it fades out - the initial toolbar status is not in sync with the value of the ViewModel property But how do I handle the following conditions, in XAML itself, if possible: - **after** the toolbar (Border) **fades out**, how do I then say "then and only then Visibility=Collapsed", e.g. perhaps with a double animation - **before** the toolbar **fades in**, how do I say "Visibilty=Normal" - how do I also attach these events not only to the View Load process so that they show the correct status (faded in or faded out) when the page first appears? Here is my animation so far: <Style x:Key="PageToolBarStyle" TargetType="Border"> <Style.Triggers> <DataTrigger Binding="{Binding PageToolBarVisible}" Value="true"> <DataTrigger.EnterActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:3"/> </Storyboard> </BeginStoryboard> </DataTrigger.EnterActions> <DataTrigger.ExitActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:3"/> </Storyboard> </BeginStoryboard> </DataTrigger.ExitActions> </DataTrigger> </Style.Triggers> </Style> [1]: http://stackoverflow.com/questions/1091976/how-to-make-add-a-fade-in-fade-out-animation-based-on-viewmodel-property-value
0
10,628,709
05/17/2012 01:08:18
1,399,911
05/17/2012 01:04:30
1
0
Can't figure it out: Redirection showing old url
I'm using cpanel and tried using htaccess and it's not working.. I need to redirect prismafoto.com.ar to brujaurbana.com.ar/prisma but when it does the url that is shown is brujaurbana.com.ar/prisma How can I do this?? thanksss :(
.htaccess
redirect
cpanel
null
null
null
open
Can't figure it out: Redirection showing old url === I'm using cpanel and tried using htaccess and it's not working.. I need to redirect prismafoto.com.ar to brujaurbana.com.ar/prisma but when it does the url that is shown is brujaurbana.com.ar/prisma How can I do this?? thanksss :(
0
10,496,400
05/08/2012 09:56:53
301,736
03/25/2010 13:53:40
68
0
Examples of SOLID programming principles wanted
Could someone please give me some examples of full applications that use the SOLID (Uncle Bob martin) principles, preferably with associated tests? I am currently learning the SOLID principles and find it easier to learn something when I have a good example to go through. I could Google this myself, but at the moment I can tell which use SOLID principles to the best effect. I am mainly a C# developer, but can muddle though a lot of other languages
solid-principles
null
null
null
null
05/23/2012 08:53:56
not constructive
Examples of SOLID programming principles wanted === Could someone please give me some examples of full applications that use the SOLID (Uncle Bob martin) principles, preferably with associated tests? I am currently learning the SOLID principles and find it easier to learn something when I have a good example to go through. I could Google this myself, but at the moment I can tell which use SOLID principles to the best effect. I am mainly a C# developer, but can muddle though a lot of other languages
4
158,818
10/01/2008 17:42:33
2,859
08/25/2008 15:50:17
1,168
109
Create JSON with .net
First off, let me start off that I am not a .net developer. The reason why I am asking this question is that we rolled out our REST-API and one of our first integration partners is a .net shop. So basically we **ass**umed that .net would provide some sort of wrapper to create JSON, but the developer in question created the *string* by hand. I've researched this topic a bit and I couldn't really find anything, though I believe .net provides something. :) 'current code Dim data As String data = "[hello, world]" In PHP I would do the following (assuming ext/json is available ;): <?php $json = array('hello', 'world'); $json = json_encode($json); I am also interested in what you use to decode the json into an array/object structure. Help is very appreciated.
.net
asp.net
json
null
null
null
open
Create JSON with .net === First off, let me start off that I am not a .net developer. The reason why I am asking this question is that we rolled out our REST-API and one of our first integration partners is a .net shop. So basically we **ass**umed that .net would provide some sort of wrapper to create JSON, but the developer in question created the *string* by hand. I've researched this topic a bit and I couldn't really find anything, though I believe .net provides something. :) 'current code Dim data As String data = "[hello, world]" In PHP I would do the following (assuming ext/json is available ;): <?php $json = array('hello', 'world'); $json = json_encode($json); I am also interested in what you use to decode the json into an array/object structure. Help is very appreciated.
0
11,476,179
07/13/2012 18:25:15
1,483,278
06/26/2012 15:44:25
30
0
Do Application Services reside within a Service Layer?
Application Service fulfills the commands issued by clients (ie presentation layer) by making and coordinating calls to the Workflows, Infrastructure Services, Domain Services, and Domain Entities. I assume Application Service reside within Service Layer? thank you
architecture
domain-driven-design
null
null
null
07/16/2012 02:14:13
not constructive
Do Application Services reside within a Service Layer? === Application Service fulfills the commands issued by clients (ie presentation layer) by making and coordinating calls to the Workflows, Infrastructure Services, Domain Services, and Domain Entities. I assume Application Service reside within Service Layer? thank you
4
10,029,703
04/05/2012 13:39:52
1,291,629
03/25/2012 18:16:42
1
0
Adding New Child Object Whilst Modifying Existing Children Entity Framework
I've look at some of the answers to similar questions and they don't really seem to fit mine. I'm trying to incorporate a pattern from Entity Framework: DbContext(page 90) and it doesn't seem to work. The code that I'm using is given below: [HttpPost] public ActionResult Edit(Order order) { if (ModelState.IsValid) { db.Orders.Add(order); db.Entry(order).State = EntityState.Modified; foreach (var orderDetail in order.OrderDetails) { if (orderDetail.OrderId == 0) { db.Entry(orderDetail).State = EntityState.Added; } else { db.Entry(orderDetail).State = EntityState.Modified; } // The example order that I'm updating has two child entities // so this orderId will be for the third, added one. int addedOrderDetailId = order.OrderDetails[2].OrderId; } db.SaveChanges(); return RedirectToAction("Index"); } ViewBag.CustomerId = new SelectList(db.Customers, "CustomerId", "CompanyName", order.CustomerId); return View(order); } I've been running an example where the Order object has two existing OrderDetail objects and I'm attempting to add a third. I included the addedOrderDetailId variable, so that I could add it to the 'Watch' and see when it changed What I've found is happening is that the OrderId of the added OrderDetail object (which is 0 when the foreach loop is entered) is being updated by entity framework to the OrderId of the Order object. This is happening at after the first iteration through the foreach loop (when the first child entity is having its state changed to modified. This means that all three children are being marked as modified. This is causing SaveChanges() to try to update an entry into the database that doesn't exist. If anyone else has had this problem, then I would be greatful for any advice as to get around this. I will also have to deal with existing child objects being deleted, but I haven't got around to this yet, so if anyone knows of a pattern for this, that would also be appreciated.
mvc
entity-framework
disconnected
null
null
null
open
Adding New Child Object Whilst Modifying Existing Children Entity Framework === I've look at some of the answers to similar questions and they don't really seem to fit mine. I'm trying to incorporate a pattern from Entity Framework: DbContext(page 90) and it doesn't seem to work. The code that I'm using is given below: [HttpPost] public ActionResult Edit(Order order) { if (ModelState.IsValid) { db.Orders.Add(order); db.Entry(order).State = EntityState.Modified; foreach (var orderDetail in order.OrderDetails) { if (orderDetail.OrderId == 0) { db.Entry(orderDetail).State = EntityState.Added; } else { db.Entry(orderDetail).State = EntityState.Modified; } // The example order that I'm updating has two child entities // so this orderId will be for the third, added one. int addedOrderDetailId = order.OrderDetails[2].OrderId; } db.SaveChanges(); return RedirectToAction("Index"); } ViewBag.CustomerId = new SelectList(db.Customers, "CustomerId", "CompanyName", order.CustomerId); return View(order); } I've been running an example where the Order object has two existing OrderDetail objects and I'm attempting to add a third. I included the addedOrderDetailId variable, so that I could add it to the 'Watch' and see when it changed What I've found is happening is that the OrderId of the added OrderDetail object (which is 0 when the foreach loop is entered) is being updated by entity framework to the OrderId of the Order object. This is happening at after the first iteration through the foreach loop (when the first child entity is having its state changed to modified. This means that all three children are being marked as modified. This is causing SaveChanges() to try to update an entry into the database that doesn't exist. If anyone else has had this problem, then I would be greatful for any advice as to get around this. I will also have to deal with existing child objects being deleted, but I haven't got around to this yet, so if anyone knows of a pattern for this, that would also be appreciated.
0
9,388,201
02/22/2012 02:08:53
699,632
04/06/2011 03:25:04
7,522
412
How do I select a set of grid cells along a given angle quickly?
I have set up a grid class that contains theoretical cells. I have a method `collectCells()` which accepts a starting point, radians and distance as arguments. I want this method to return an Array containing all the cells that are along a given angle and that are within the specified distance from the starting point, e.g. ![enter image description here][1] The easiest way for me to do this is just loop through all the pixels in the given direction and pick cells up as I go, something like: for(var i:int = 0; i<distance; i++) { startPoint.x += Math.cos(radians); startPoint.y += Math.sin(radians); if( start point falls within uncollected cell) collect cell; } This is obviously really poor, as the loop will be as long as the distance I specify - extremely slow. I tried something different, creating a `nextCell()` method which accepts the last collected cell and radians. The method threw a point 25 pixels in the direction specified by radians, collected the resulting cell and then started over from that cell for a given amount of cells. I didn't really think about this approach clearly enough, and once done realized that I had a problem, being that the actual path I'm testing gets broken each time the next cell is sought, e.g. ![enter image description here][2] Where the green dotted line is the desired path, and the blue lines are the paths that make up each `nextCell()` call because the check is made from the centre of each cell. What is the correct way to efficiently collect the cells in a given direction over a specified distance (pixels)? [1]: http://i.stack.imgur.com/78KsQ.png [2]: http://i.stack.imgur.com/QJitL.png
actionscript-3
math
grid
tiles
null
null
open
How do I select a set of grid cells along a given angle quickly? === I have set up a grid class that contains theoretical cells. I have a method `collectCells()` which accepts a starting point, radians and distance as arguments. I want this method to return an Array containing all the cells that are along a given angle and that are within the specified distance from the starting point, e.g. ![enter image description here][1] The easiest way for me to do this is just loop through all the pixels in the given direction and pick cells up as I go, something like: for(var i:int = 0; i<distance; i++) { startPoint.x += Math.cos(radians); startPoint.y += Math.sin(radians); if( start point falls within uncollected cell) collect cell; } This is obviously really poor, as the loop will be as long as the distance I specify - extremely slow. I tried something different, creating a `nextCell()` method which accepts the last collected cell and radians. The method threw a point 25 pixels in the direction specified by radians, collected the resulting cell and then started over from that cell for a given amount of cells. I didn't really think about this approach clearly enough, and once done realized that I had a problem, being that the actual path I'm testing gets broken each time the next cell is sought, e.g. ![enter image description here][2] Where the green dotted line is the desired path, and the blue lines are the paths that make up each `nextCell()` call because the check is made from the centre of each cell. What is the correct way to efficiently collect the cells in a given direction over a specified distance (pixels)? [1]: http://i.stack.imgur.com/78KsQ.png [2]: http://i.stack.imgur.com/QJitL.png
0
8,463,350
12/11/2011 10:41:20
1,078,536
12/03/2011 03:05:39
1
0
how can i switch to another user in mysql via cmd
hello everyone i'm try very hard to switch to other user created by me with password but i am not able to switch it, i've searched on google but i don't know what type of error is it it says access denied for user ''@'localhost' to database '***', and i get one more error when i try to switch user and it says, you have an error in your sql syntax; check the manual that corresponds to your MYSQL server version for the right syntax to use near 'mysql and atlast when i listed current user it showed me @localhost in current user column...please help..thx in advance
mysql
cmd
null
null
null
12/12/2011 01:17:39
not a real question
how can i switch to another user in mysql via cmd === hello everyone i'm try very hard to switch to other user created by me with password but i am not able to switch it, i've searched on google but i don't know what type of error is it it says access denied for user ''@'localhost' to database '***', and i get one more error when i try to switch user and it says, you have an error in your sql syntax; check the manual that corresponds to your MYSQL server version for the right syntax to use near 'mysql and atlast when i listed current user it showed me @localhost in current user column...please help..thx in advance
1
5,800,572
04/27/2011 07:02:32
652,795
03/10/2011 02:53:00
29
0
i want to create card gmae like Poker with naimation
i want to create card game with animation so how can i create it. anyone help me to solve this problem thanks,
iphone
objective-c
null
null
null
04/27/2011 07:11:59
not a real question
i want to create card gmae like Poker with naimation === i want to create card game with animation so how can i create it. anyone help me to solve this problem thanks,
1
135,285
09/25/2008 19:04:15
19,784
09/20/2008 22:18:53
558
50
Lost Classics: Out of Print Books?
[On Lisp][1] is well regarded as an advanced Lisp book. The author put it into the public domain, and it is now available from an on-deman printer ([Lulu.com][2]). What other classic books are we missing out on because they're out of print, and which ones are available on-line or on-demand? [1]: http://www.lulu.com/content/3060872 [2]: http://www.lulu.com/
books
software-engineering
computer-science
null
null
09/30/2011 00:50:58
not constructive
Lost Classics: Out of Print Books? === [On Lisp][1] is well regarded as an advanced Lisp book. The author put it into the public domain, and it is now available from an on-deman printer ([Lulu.com][2]). What other classic books are we missing out on because they're out of print, and which ones are available on-line or on-demand? [1]: http://www.lulu.com/content/3060872 [2]: http://www.lulu.com/
4
10,644,448
05/17/2012 22:40:17
987,018
10/10/2011 03:06:59
14
1
w3wp.exe error in IIS 7
I am running IIS 7.0 on Windows server 2008 R2 and created 1 Application Pool per site and I have several site which is causing the application pool to stop. **This shows several times for every applications:** A process serving application pool 'ivtaxi.com(domain)(2.0)(pool)' terminated unexpectedly. The process id was '5584'. The process exit code was '0xc0000374'. A process serving application pool 'atkinsforassembly.com(domain)(2.0)(pool)' terminated unexpectedly. The process id was '5456'. The process exit code was '0xc0000374'. **and when I check to server error log, the most often error is:** Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8 Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f Exception code: 0xc0000374 Fault offset: 0x000ce6c3 Faulting process id: 0x398c Faulting application start time: 0x01cd340c88d38d70 Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe Faulting module path: C:\Windows\SysWOW64\ntdll.dll Report Id: 9db95ac0-a000-11e1-9b71-0a4f65b29aaf I have no Idea about this server fault, anyone can help me here? :( I need a heroes..
windows
iis7
windows-server-2008-r2
null
null
05/18/2012 01:12:30
off topic
w3wp.exe error in IIS 7 === I am running IIS 7.0 on Windows server 2008 R2 and created 1 Application Pool per site and I have several site which is causing the application pool to stop. **This shows several times for every applications:** A process serving application pool 'ivtaxi.com(domain)(2.0)(pool)' terminated unexpectedly. The process id was '5584'. The process exit code was '0xc0000374'. A process serving application pool 'atkinsforassembly.com(domain)(2.0)(pool)' terminated unexpectedly. The process id was '5456'. The process exit code was '0xc0000374'. **and when I check to server error log, the most often error is:** Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8 Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f Exception code: 0xc0000374 Fault offset: 0x000ce6c3 Faulting process id: 0x398c Faulting application start time: 0x01cd340c88d38d70 Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe Faulting module path: C:\Windows\SysWOW64\ntdll.dll Report Id: 9db95ac0-a000-11e1-9b71-0a4f65b29aaf I have no Idea about this server fault, anyone can help me here? :( I need a heroes..
2
11,190,726
06/25/2012 13:59:02
1,194,599
02/07/2012 12:13:25
4
0
Deploy sql server R2 database and C# application
How can I deploy sql server R2 database and C# application which can be installed on a computer
sql-server
c#-2.0
null
null
null
06/25/2012 20:55:51
not a real question
Deploy sql server R2 database and C# application === How can I deploy sql server R2 database and C# application which can be installed on a computer
1
5,981,774
05/12/2011 17:12:22
686,581
03/31/2011 22:00:46
68
2
Cron Job to backup MySQL automagically?
I have looked at other posts here, but do not see any real answer.. I use godaddy, and would like to backup my MySQL DB every day. (If possible only allow 7 backups in the folder at once?) Folder: _db_backups DB Name: ccadatabase Godaddy Says: >Your Shared Hosting account supports the following languages and associated interpreter lines: Perl: #!/usr/bin/perl Python 2.2: #!/usr/bin/python2.2 Python 2.3: #!/usr/bin/python2.3 Python 2.4: #!/usr/bin/python2.4 Ruby: #!/usr/local/bin/ruby Bash: #!/bin/bash The installed versions of PHP 4 and PHP 5 do not support the interpreter specification in a PHP file. In order to run a PHP script via Cron, you must specify the interpreter manually. For example: PHP 4: /web/cgi-bin/php "$HOME/html/test.php" PHP 5: /web/cgi-bin/php5 "$HOME/html/test.php5" Anyone who can help me write a quick script to make this process automated that would be great! I don't know any perl/python so if you could explain your code I would really appreciate it. Thank you!
php
python
mysql
perl
cron
05/15/2011 07:03:04
off topic
Cron Job to backup MySQL automagically? === I have looked at other posts here, but do not see any real answer.. I use godaddy, and would like to backup my MySQL DB every day. (If possible only allow 7 backups in the folder at once?) Folder: _db_backups DB Name: ccadatabase Godaddy Says: >Your Shared Hosting account supports the following languages and associated interpreter lines: Perl: #!/usr/bin/perl Python 2.2: #!/usr/bin/python2.2 Python 2.3: #!/usr/bin/python2.3 Python 2.4: #!/usr/bin/python2.4 Ruby: #!/usr/local/bin/ruby Bash: #!/bin/bash The installed versions of PHP 4 and PHP 5 do not support the interpreter specification in a PHP file. In order to run a PHP script via Cron, you must specify the interpreter manually. For example: PHP 4: /web/cgi-bin/php "$HOME/html/test.php" PHP 5: /web/cgi-bin/php5 "$HOME/html/test.php5" Anyone who can help me write a quick script to make this process automated that would be great! I don't know any perl/python so if you could explain your code I would really appreciate it. Thank you!
2
1,734,628
11/14/2009 15:52:29
210,916
11/14/2009 05:40:07
11
3
Copy constructor and = operator overload in C++: is a common function possible?
Since a copy constructor MyClass(const MyClass&); and an = operator overload MyClass& operator = (const MyClass&); have pretty much the same code, the same parameter, and only differ on the return, is it possible to have a common function for them both to use?
c++
copy-constructor
operator-overloading
null
null
null
open
Copy constructor and = operator overload in C++: is a common function possible? === Since a copy constructor MyClass(const MyClass&); and an = operator overload MyClass& operator = (const MyClass&); have pretty much the same code, the same parameter, and only differ on the return, is it possible to have a common function for them both to use?
0
11,581,048
07/20/2012 14:07:44
663,310
03/16/2011 21:25:18
33
1
Use stdout/stderr from remote (detached) command execution in screen without file access
I am running isolated bash consoles (in the context of Linux containers/network name spaces) in separate GNU screen sessions on a Linux machine. I am able to remotely execute commands on these consoles using ssh and screen functionality, as discussed in several other threads, using: ssh <hostname> screen -S <sessionname> -X <cmd> I can also fetch the output from running the above command relying on either the hardcopy-functionality (`screen -S <sessionname> -X hardcopy`) or the logging-functionality (`screen -S <sessionname> -l`), however these all require file access. Similar things happen when the output is redirected to a logfile (using for example "> logfile.txt"), etc. Is there a way to avoid file access in redirecting the output of the executed command? This would reduce the file access stress on the executing machine. I would like to redirect stdout/stderr data running from within the screen session to the calling environment, such that the output is returned on the screen when executing `ssh <hostname> screen -S <sessionname> ... <magiccommand>`. Any suggestions?
redirect
ssh
stdout
gnu-screen
lxc
null
open
Use stdout/stderr from remote (detached) command execution in screen without file access === I am running isolated bash consoles (in the context of Linux containers/network name spaces) in separate GNU screen sessions on a Linux machine. I am able to remotely execute commands on these consoles using ssh and screen functionality, as discussed in several other threads, using: ssh <hostname> screen -S <sessionname> -X <cmd> I can also fetch the output from running the above command relying on either the hardcopy-functionality (`screen -S <sessionname> -X hardcopy`) or the logging-functionality (`screen -S <sessionname> -l`), however these all require file access. Similar things happen when the output is redirected to a logfile (using for example "> logfile.txt"), etc. Is there a way to avoid file access in redirecting the output of the executed command? This would reduce the file access stress on the executing machine. I would like to redirect stdout/stderr data running from within the screen session to the calling environment, such that the output is returned on the screen when executing `ssh <hostname> screen -S <sessionname> ... <magiccommand>`. Any suggestions?
0
4,012,664
10/25/2010 07:41:28
257,314
01/23/2010 07:24:49
106
1
UIBarButtonItem Highlighted Color
I have set a custom tint color for a `UINavigationBar` (within a `UINavigationController`) which, in turn, sets an appropriate matching color for the `UIBarButtonItems` which are inserted into the `UINavigationBar`. However, when I select a `UIBarButtonItem` the button turns into (presumably) the highlighted state and presents a different color, which looks quite a bit out and does not nicely match the tint color. Is there a way to change this highlighted state color to a custom color? Ideally, I would like to just create a category on `UIBarButtonItem` which changes the highlighted color for all instances of `UIBarButtonItem`, as this would avoid the need to explicitly subclass `UIBarButtonItems` and then change every reference in my app to use the subclass (which will be tricky, as I am using some third-party libraries which just use `UIBarButtonItem` and I don't want to go messing with their implementation). Any help would be greatly appreciated.
iphone
cocoa-touch
uikit
uinavigationbar
uibarbuttonitem
null
open
UIBarButtonItem Highlighted Color === I have set a custom tint color for a `UINavigationBar` (within a `UINavigationController`) which, in turn, sets an appropriate matching color for the `UIBarButtonItems` which are inserted into the `UINavigationBar`. However, when I select a `UIBarButtonItem` the button turns into (presumably) the highlighted state and presents a different color, which looks quite a bit out and does not nicely match the tint color. Is there a way to change this highlighted state color to a custom color? Ideally, I would like to just create a category on `UIBarButtonItem` which changes the highlighted color for all instances of `UIBarButtonItem`, as this would avoid the need to explicitly subclass `UIBarButtonItems` and then change every reference in my app to use the subclass (which will be tricky, as I am using some third-party libraries which just use `UIBarButtonItem` and I don't want to go messing with their implementation). Any help would be greatly appreciated.
0
3,745,756
09/19/2010 12:57:18
361,248
03/15/2010 13:26:30
73
9
How does this chess game implemented?
http://js1k.com/pleaseDontHotlinkMe/435 in javascript?
javascript
null
null
null
null
09/19/2010 13:03:54
not a real question
How does this chess game implemented? === http://js1k.com/pleaseDontHotlinkMe/435 in javascript?
1
10,135,325
04/13/2012 04:42:49
356,682
06/02/2010 17:04:44
11
1
PyDev: Defining python interpreter shows "An error occured" Reason: 3004: Unexpected error occured
OS: W7 32 bit Eclipse: Eclipse for Testers (Indigo Service Release 2) PyDev: 2.5 IronPython: 2.7.2.1 Python: 2.7.2 Issue: When configuing interpreter (tried both IronPython and Python) using Auto Config, I am seeing the following error message: An error occured. Reason: 3004: Unexpected error occured. Below is the log: 3004: Unexpected error occurred. java.lang.RuntimeException: Information about process of adding new interpreter: - Chosen interpreter (name and file):'Tuple [ipy -- ipy] - Ok, file is non-null. Getting info on:ipy - Beggining task:Getting libs totalWork:100 - Setting task name:Mounting executable string... - Setting task name:Executing: ipy -X:Frames D:\eclipse\plugins\org.python.pydev_2.5.0.2012040618\PySrc\interpreterInfo.py - Setting task name:Making pythonpath environment... ipy -X:Frames D:\eclipse\plugins\org.python.pydev_2.5.0.2012040618\PySrc\interpreterInfo.py - Setting task name:Making exec... ipy -X:Frames D:\eclipse\plugins\org.python.pydev_2.5.0.2012040618\PySrc\interpreterInfo.py - Setting task name:Reading output... - Setting task name:Waiting for process to finish. - Success getting the info. Result:<xml> <name>ipy</name> <version>2.7</version> <executable>C:\Program Files\IronPython 2.7\ipy.exe</executable> <lib>C:\Program Files\IronPython 2.7\Lib</lib> <lib>C:\Program Files\IronPython 2.7\DLLs</lib> <lib>C:\Program Files\IronPython 2.7</lib> <lib>C:\Program Files\IronPython 2.7\lib\site-packages</lib> <forced_lib>IEHost.Execute</forced_lib> <forced_lib>Microsoft</forced_lib> <forced_lib>Microsoft.Aspnet.Snapin</forced_lib> <forced_lib>Microsoft.Build.BuildEngine</forced_lib> <forced_lib>Microsoft.Build.Conversion</forced_lib> <forced_lib>Microsoft.Build.Framework</forced_lib> <forced_lib>Microsoft.Build.Tasks</forced_lib> <forced_lib>Microsoft.Build.Tasks.Deployment.Bootstrapper</forced_lib> <forced_lib>Microsoft.Build.Tasks.Deployment.ManifestUtilities</forced_lib> <forced_lib>Microsoft.Build.Tasks.Hosting</forced_lib> <forced_lib>Microsoft.Build.Tasks.Windows</forced_lib> <forced_lib>Microsoft.Build.Utilities</forced_lib> <forced_lib>Microsoft.CLRAdmin</forced_lib> <forced_lib>Microsoft.CSharp</forced_lib> <forced_lib>Microsoft.Data.Entity.Build.Tasks</forced_lib> <forced_lib>Microsoft.IE</forced_lib> <forced_lib>Microsoft.Ink</forced_lib> <forced_lib>Microsoft.Ink.TextInput</forced_lib> <forced_lib>Microsoft.JScript</forced_lib> <forced_lib>Microsoft.JScript.Vsa</forced_lib> <forced_lib>Microsoft.ManagementConsole</forced_lib> <forced_lib>Microsoft.ManagementConsole.Advanced</forced_lib> <forced_lib>Microsoft.ManagementConsole.Internal</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail.ExchangeWebService</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail.WindowsMobile</forced_lib> <forced_lib>Microsoft.SqlServer.Server</forced_lib> <forced_lib>Microsoft.StylusInput</forced_lib> <forced_lib>Microsoft.StylusInput.PluginData</forced_lib> <forced_lib>Microsoft.VisualBasic</forced_lib> <forced_lib>Microsoft.VisualBasic.ApplicationServices</forced_lib> <forced_lib>Microsoft.VisualBasic.Compatibility.VB6</forced_lib> <forced_lib>Microsoft.VisualBasic.CompilerServices</forced_lib> <forced_lib>Microsoft.VisualBasic.Devices</forced_lib> <forced_lib>Microsoft.VisualBasic.FileIO</forced_lib> <forced_lib>Microsoft.VisualBasic.Logging</forced_lib> <forced_lib>Microsoft.VisualBasic.MyServices</forced_lib> <forced_lib>Microsoft.VisualBasic.MyServices.Internal</forced_lib> <forced_lib>Microsoft.VisualBasic.Vsa</forced_lib> <forced_lib>Microsoft.VisualC</forced_lib> <forced_lib>Microsoft.VisualC.StlClr</forced_lib> <forced_lib>Microsoft.VisualC.StlClr.Generic</forced_lib> <forced_lib>Microsoft.Vsa</forced_lib> <forced_lib>Microsoft.Vsa.Vb.CodeDOM</forced_lib> <forced_lib>Microsoft.Win32</forced_lib> <forced_lib>Microsoft.Win32.SafeHandles</forced_lib> <forced_lib>Microsoft.Windows.Themes</forced_lib> <forced_lib>Microsoft.WindowsCE.Forms</forced_lib> <forced_lib>Microsoft.WindowsMobile.DirectX</forced_lib> <forced_lib>Microsoft.WindowsMobile.DirectX.Direct3D</forced_lib> <forced_lib>Microsoft_VsaVb</forced_lib> <forced_lib>RegCode</forced_lib> <forced_lib>System</forced_lib> <forced_lib>System.AddIn</forced_lib> <forced_lib>System.AddIn.Contract</forced_lib> <forced_lib>System.AddIn.Contract.Automation</forced_lib> <forced_lib>System.AddIn.Contract.Collections</forced_lib> <forced_lib>System.AddIn.Hosting</forced_lib> <forced_lib>System.AddIn.Pipeline</forced_lib> <forced_lib>System.CodeDom</forced_lib> <forced_lib>System.CodeDom.Compiler</forced_lib> <forced_lib>System.Collections</forced_lib> <forced_lib>System.Collections.Generic</forced_lib> <forced_lib>System.Collections.ObjectModel</forced_lib> <forced_lib>System.Collections.Specialized</forced_lib> <forced_lib>System.ComponentModel</forced_lib> <forced_lib>System.ComponentModel.DataAnnotations</forced_lib> <forced_lib>System.ComponentModel.Design</forced_lib> <forced_lib>System.ComponentModel.Design.Data</forced_lib> <forced_lib>System.ComponentModel.Design.Serialization</forced_lib> <forced_lib>System.Configuration</forced_lib> <forced_lib>System.Configuration.Assemblies</forced_lib> <forced_lib>System.Configuration.Install</forced_lib> <forced_lib>System.Configuration.Internal</forced_lib> <forced_lib>System.Configuration.Provider</forced_lib> <forced_lib>System.Data</forced_lib> <forced_lib>System.Data.Common</forced_lib> <forced_lib>System.Data.Common.CommandTrees</forced_lib> <forced_lib>System.Data.Design</forced_lib> <forced_lib>System.Data.Entity.Design</forced_lib> <forced_lib>System.Data.Entity.Design.AspNet</forced_lib> <forced_lib>System.Data.EntityClient</forced_lib> <forced_lib>System.Data.Linq</forced_lib> <forced_lib>System.Data.Linq.Mapping</forced_lib> <forced_lib>System.Data.Linq.SqlClient</forced_lib> <forced_lib>System.Data.Linq.SqlClient.Implementation</forced_lib> <forced_lib>System.Data.Mapping</forced_lib> <forced_lib>System.Data.Metadata.Edm</forced_lib> <forced_lib>System.Data.Objects</forced_lib> <forced_lib>System.Data.Objects.DataClasses</forced_lib> <forced_lib>System.Data.Odbc</forced_lib> <forced_lib>System.Data.OleDb</forced_lib> <forced_lib>System.Data.OracleClient</forced_lib> <forced_lib>System.Data.Services</forced_lib> <forced_lib>System.Data.Services.Client</forced_lib> <forced_lib>System.Data.Services.Common</forced_lib> <forced_lib>System.Data.Services.Design</forced_lib> <forced_lib>System.Data.Services.Internal</forced_lib> <forced_lib>System.Data.Sql</forced_lib> <forced_lib>System.Data.SqlClient</forced_lib> <forced_lib>System.Data.SqlTypes</forced_lib> <forced_lib>System.Deployment.Application</forced_lib> <forced_lib>System.Deployment.Internal</forced_lib> <forced_lib>System.Diagnostics</forced_lib> <forced_lib>System.Diagnostics.CodeAnalysis</forced_lib> <forced_lib>System.Diagnostics.Design</forced_lib> <forced_lib>System.Diagnostics.Eventing</forced_lib> <forced_lib>System.Diagnostics.Eventing.Reader</forced_lib> <forced_lib>System.Diagnostics.PerformanceData</forced_lib> <forced_lib>System.Diagnostics.SymbolStore</forced_lib> <forced_lib>System.DirectoryServices</forced_lib> <forced_lib>System.DirectoryServices.AccountManagement</forced_lib> <forced_lib>System.DirectoryServices.ActiveDirectory</forced_lib> <forced_lib>System.DirectoryServices.Protocols</forced_lib> <forced_lib>System.Drawing</forced_lib> <forced_lib>System.Drawing.Design</forced_lib> <forced_lib>System.Drawing.Drawing2D</forced_lib> <forced_lib>System.Drawing.Imaging</forced_lib> <forced_lib>System.Drawing.Printing</forced_lib> <forced_lib>System.Drawing.Text</forced_lib> <forced_lib>System.EnterpriseServices</forced_lib> <forced_lib>System.EnterpriseServices.CompensatingResourceManager</forced_lib> <forced_lib>System.EnterpriseServices.Internal</forced_lib> <forced_lib>System.Globalization</forced_lib> <forced_lib>System.IO</forced_lib> <forced_lib>System.IO.Compression</forced_lib> <forced_lib>System.IO.IsolatedStorage</forced_lib> <forced_lib>System.IO.Log</forced_lib> <forced_lib>System.IO.Packaging</forced_lib> <forced_lib>System.IO.Pipes</forced_lib> <forced_lib>System.IO.Ports</forced_lib> <forced_lib>System.IdentityModel.Claims</forced_lib> <forced_lib>System.IdentityModel.Policy</forced_lib> <forced_lib>System.IdentityModel.Selectors</forced_lib> <forced_lib>System.IdentityModel.Tokens</forced_lib> <forced_lib>System.Linq</forced_lib> <forced_lib>System.Linq.Expressions</forced_lib> <forced_lib>System.Management</forced_lib> <forced_lib>System.Management.Instrumentation</forced_lib> <forced_lib>System.Media</forced_lib> <forced_lib>System.Messaging</forced_lib> <forced_lib>System.Messaging.Design</forced_lib> <forced_lib>System.Net</forced_lib> <forced_lib>System.Net.Cache</forced_lib> <forced_lib>System.Net.Configuration</forced_lib> <forced_lib>System.Net.Mail</forced_lib> <forced_lib>System.Net.Mime</forced_lib> <forced_lib>System.Net.NetworkInformation</forced_lib> <forced_lib>System.Net.PeerToPeer</forced_lib> <forced_lib>System.Net.PeerToPeer.Collaboration</forced_lib> <forced_lib>System.Net.Security</forced_lib> <forced_lib>System.Net.Sockets</forced_lib> <forced_lib>System.Printing</forced_lib> <forced_lib>System.Printing.IndexedProperties</forced_lib> <forced_lib>System.Printing.Interop</forced_lib> <forced_lib>System.Reflection</forced_lib> <forced_lib>System.Reflection.Emit</forced_lib> <forced_lib>System.Resources</forced_lib> <forced_lib>System.Resources.Tools</forced_lib> <forced_lib>System.Runtime</forced_lib> <forced_lib>System.Runtime.CompilerServices</forced_lib> <forced_lib>System.Runtime.ConstrainedExecution</forced_lib> <forced_lib>System.Runtime.Hosting</forced_lib> <forced_lib>System.Runtime.InteropServices</forced_lib> <forced_lib>System.Runtime.InteropServices.ComTypes</forced_lib> <forced_lib>System.Runtime.InteropServices.CustomMarshalers</forced_lib> <forced_lib>System.Runtime.InteropServices.Expando</forced_lib> <forced_lib>System.Runtime.Remoting</forced_lib> <forced_lib>System.Runtime.Remoting.Activation</forced_lib> <forced_lib>System.Runtime.Remoting.Channels</forced_lib> <forced_lib>System.Runtime.Remoting.Channels.Http</forced_lib> <forced_lib>System.Runtime.Remoting.Channels.Ipc</forced_lib> <forced_lib>System.Runtime.Remoting.Channels.Tcp</forced_lib> <forced_lib>System.Runtime.Remoting.Contexts</forced_lib> <forced_lib>System.Runtime.Remoting.Lifetime</forced_lib> <forced_lib>System.Runtime.Remoting.Messaging</forced_lib> <forced_lib>System.Runtime.Remoting.Metadata</forced_lib> <forced_lib>System.Runtime.Remoting.MetadataServices</forced_lib> <forced_lib>System.Runtime.Remoting.Proxies</forced_lib> <forced_lib>System.Runtime.Remoting.Services</forced_lib> <forced_lib>System.Runtime.Serialization</forced_lib> <forced_lib>System.Runtime.Serialization.Configuration</forced_lib> <forced_lib>System.Runtime.Serialization.Formatters</forced_lib> <forced_lib>System.Runtime.Serialization.Formatters.Binary</forced_lib> <forced_lib>System.Runtime.Serialization.Formatters.Soap</forced_lib> <forced_lib>System.Runtime.Serialization.Json</forced_lib> <forced_lib>System.Runtime.Versioning</forced_lib> <forced_lib>System.Security</forced_lib> <forced_lib>System.Security.AccessControl</forced_lib> <forced_lib>System.Security.Authentication</forced_lib> <forced_lib>System.Security.Authentication.ExtendedProtection</forced_lib> <forced_lib>System.Security.Authentication.ExtendedProtection.Configuration</forced_lib> <forced_lib>System.Security.Cryptography</forced_lib> <forced_lib>System.Security.Cryptography.Pkcs</forced_lib> <forced_lib>System.Security.Cryptography.X509Certificates</forced_lib> <forced_lib>System.Security.Cryptography.Xml</forced_lib> <forced_lib>System.Security.Permissions</forced_lib> <forced_lib>System.Security.Policy</forced_lib> <forced_lib>System.Security.Principal</forced_lib> <forced_lib>System.Security.RightsManagement</forced_lib> <forced_lib>System.ServiceModel</forced_lib> <forced_lib>System.ServiceModel.Activation</forced_lib> <forced_lib>System.ServiceModel.Activation.Configuration</forced_lib> <forced_lib>System.ServiceModel.Channels</forced_lib> <forced_lib>System.ServiceModel.ComIntegration</forced_lib> <forced_lib>System.ServiceModel.Configuration</forced_lib> <forced_lib>System.ServiceModel.Description</forced_lib> <forced_lib>System.ServiceModel.Diagnostics</forced_lib> <forced_lib>System.ServiceModel.Dispatcher</forced_lib> <forced_lib>System.ServiceModel.Install.Configuration</forced_lib> <forced_lib>System.ServiceModel.Internal</forced_lib> <forced_lib>System.ServiceModel.MsmqIntegration</forced_lib> <forced_lib>System.ServiceModel.PeerResolvers</forced_lib> <forced_lib>System.ServiceModel.Persistence</forced_lib> <forced_lib>System.ServiceModel.Security</forced_lib> <forced_lib>System.ServiceModel.Security.Tokens</forced_lib> <forced_lib>System.ServiceModel.Syndication</forced_lib> <forced_lib>System.ServiceModel.Web</forced_lib> <forced_lib>System.ServiceProcess</forced_lib> <forced_lib>System.ServiceProcess.Design</forced_lib> <forced_lib>System.Speech.AudioFormat</forced_lib> <forced_lib>System.Speech.Recognition</forced_lib> <forced_lib>System.Speech.Recognition.SrgsGrammar</forced_lib> <forced_lib>System.Speech.Synthesis</forced_lib> <forced_lib>System.Speech.Synthesis.TtsEngine</forced_lib> <forced_lib>System.Text</forced_lib> <forced_lib>System.Text.RegularExpressions</forced_lib> <forced_lib>System.Threading</forced_lib> <forced_lib>System.Timers</forced_lib> <forced_lib>System.Transactions</forced_lib> <forced_lib>System.Transactions.Configuration</forced_lib> <forced_lib>System.Web</forced_lib> <forced_lib>System.Web.ApplicationServices</forced_lib> <forced_lib>System.Web.Caching</forced_lib> <forced_lib>System.Web.ClientServices</forced_lib> <forced_lib>System.Web.ClientServices.Providers</forced_lib> <forced_lib>System.Web.Compilation</forced_lib> <forced_lib>System.Web.Configuration</forced_lib> <forced_lib>System.Web.Configuration.Internal</forced_lib> <forced_lib>System.Web.DynamicData</forced_lib> <forced_lib>System.Web.DynamicData.Design</forced_lib> <forced_lib>System.Web.DynamicData.ModelProviders</forced_lib> <forced_lib>System.Web.Handlers</forced_lib> <forced_lib>System.Web.Hosting</forced_lib> <forced_lib>System.Web.Mail</forced_lib> <forced_lib>System.Web.Management</forced_lib> <forced_lib>System.Web.Mobile</forced_lib> <forced_lib>System.Web.Profile</forced_lib> <forced_lib>System.Web.Query.Dynamic</forced_lib> <forced_lib>System.Web.RegularExpressions</forced_lib> <forced_lib>System.Web.Routing</forced_lib> <forced_lib>System.Web.Script.Serialization</forced_lib> <forced_lib>System.Web.Script.Services</forced_lib> <forced_lib>System.Web.Security</forced_lib> <forced_lib>System.Web.Services</forced_lib> <forced_lib>System.Web.Services.Configuration</forced_lib> <forced_lib>System.Web.Services.Description</forced_lib> <forced_lib>System.Web.Services.Discovery</forced_lib> <forced_lib>System.Web.Services.Protocols</forced_lib> <forced_lib>System.Web.SessionState</forced_lib> <forced_lib>System.Web.UI</forced_lib> <forced_lib>System.Web.UI.Adapters</forced_lib> <forced_lib>System.Web.UI.Design</forced_lib> <forced_lib>System.Web.UI.Design.MobileControls</forced_lib> <forced_lib>System.Web.UI.Design.MobileControls.Converters</forced_lib> <forced_lib>System.Web.UI.Design.WebControls</forced_lib> <forced_lib>System.Web.UI.Design.WebControls.WebParts</forced_lib> <forced_lib>System.Web.UI.MobileControls</forced_lib> <forced_lib>System.Web.UI.MobileControls.Adapters</forced_lib> <forced_lib>System.Web.UI.MobileControls.Adapters.XhtmlAdapters</forced_lib> <forced_lib>System.Web.UI.WebControls</forced_lib> <forced_lib>System.Web.UI.WebControls.Adapters</forced_lib> <forced_lib>System.Web.UI.WebControls.WebParts</forced_lib> <forced_lib>System.Web.Util</forced_lib> <forced_lib>System.Windows</forced_lib> <forced_lib>System.Windows.Annotations</forced_lib> <forced_lib>System.Windows.Annotations.Storage</forced_lib> <forced_lib>System.Windows.Automation</forced_lib> <forced_lib>System.Windows.Automation.Peers</forced_lib> <forced_lib>System.Windows.Automation.Provider</forced_lib> <forced_lib>System.Windows.Automation.Text</forced_lib> <forced_lib>System.Windows.Controls</forced_lib> <forced_lib>System.Windows.Controls.Primitives</forced_lib> <forced_lib>System.Windows.Converters</forced_lib> <forced_lib>System.Windows.Data</forced_lib> <forced_lib>System.Windows.Documents</forced_lib> <forced_lib>System.Windows.Documents.Serialization</forced_lib> <forced_lib>System.Windows.Forms</forced_lib> <forced_lib>System.Windows.Forms.ComponentModel.Com2Interop</forced_lib> <forced_lib>System.Windows.Forms.Design</forced_lib> <forced_lib>System.Windows.Forms.Design.Behavior</forced_lib> <forced_lib>System.Windows.Forms.Integration</forced_lib> <forced_lib>System.Windows.Forms.Layout</forced_lib> <forced_lib>System.Windows.Forms.PropertyGridInternal</forced_lib> <forced_lib>System.Windows.Forms.VisualStyles</forced_lib> <forced_lib>System.Windows.Ink</forced_lib> <forced_lib>System.Windows.Ink.AnalysisCore</forced_lib> <forced_lib>System.Windows.Input</forced_lib> <forced_lib>System.Windows.Input.StylusPlugIns</forced_lib> <forced_lib>System.Windows.Interop</forced_lib> <forced_lib>System.Windows.Markup</forced_lib> <forced_lib>System.Windows.Markup.Localizer</forced_lib> <forced_lib>System.Windows.Markup.Primitives</forced_lib> <forced_lib>System.Windows.Media</forced_lib> <forced_lib>System.Windows.Media.Animation</forced_lib> <forced_lib>System.Windows.Media.Converters</forced_lib> <forced_lib>System.Windows.Media.Effects</forced_lib> <forced_lib>System.Windows.Media.Imaging</forced_lib> <forced_lib>System.Windows.Media.Media3D</forced_lib> <forced_lib>System.Windows.Media.Media3D.Converters</forced_lib> <forced_lib>System.Windows.Media.TextFormatting</forced_lib> <forced_lib>System.Windows.Navigation</forced_lib> <forced_lib>System.Windows.Resources</forced_lib> <forced_lib>System.Windows.Shapes</forced_lib> <forced_lib>System.Windows.Threading</forced_lib> <forced_lib>System.Windows.Xps</forced_lib> <forced_lib>System.Windows.Xps.Packaging</forced_lib> <forced_lib>System.Windows.Xps.Serialization</forced_lib> <forced_lib>System.Workflow.Activities</forced_lib> <forced_lib>System.Workflow.Activities.Configuration</forced_lib> <forced_lib>System.Workflow.Activities.Rules</forced_lib> <forced_lib>System.Workflow.Activities.Rules.Design</forced_lib> <forced_lib>System.Workflow.ComponentModel</forced_lib> <forced_lib>System.Workflow.ComponentModel.Compiler</forced_lib> <forced_lib>System.Workflow.ComponentModel.Design</forced_lib> <forced_lib>System.Workflow.ComponentModel.Serialization</forced_lib> <forced_lib>System.Workflow.Runtime</forced_lib> <forced_lib>System.Workflow.Runtime.Configuration</forced_lib> <forced_lib>System.Workflow.Runtime.DebugEngine</forced_lib> <forced_lib>System.Workflow.Runtime.Hosting</forced_lib> <forced_lib>System.Workflow.Runtime.Tracking</forced_lib> <forced_lib>System.Xml</forced_lib> <forced_lib>System.Xml.Linq</forced_lib> <forced_lib>System.Xml.Schema</forced_lib> <forced_lib>System.Xml.Serialization</forced_lib> <forced_lib>System.Xml.Serialization.Advanced</forced_lib> <forced_lib>System.Xml.Serialization.Configuration</forced_lib> <forced_lib>System.Xml.XPath</forced_lib> <forced_lib>System.Xml.Xsl</forced_lib> <forced_lib>System.Xml.Xsl.Runtime</forced_lib> <forced_lib>UIAutomationClientsideProviders</forced_lib> <forced_lib>__builtin__</forced_lib> <forced_lib>_ast</forced_lib> <forced_lib>_codecs</forced_lib> <forced_lib>_collections</forced_lib> <forced_lib>_csv</forced_lib> <forced_lib>_ctypes</forced_lib> <forced_lib>_ctypes_test</forced_lib> <forced_lib>_functools</forced_lib> <forced_lib>_heapq</forced_lib> <forced_lib>_io</forced_lib> <forced_lib>_locale</forced_lib> <forced_lib>_md5</forced_lib> <forced_lib>_random</forced_lib> <forced_lib>_sha</forced_lib> <forced_lib>_sha256</forced_lib> <forced_lib>_sha512</forced_lib> <forced_lib>_sqlite3</forced_lib> <forced_lib>_sre</forced_lib> <forced_lib>_ssl</forced_lib> <forced_lib>_struct</forced_lib> <forced_lib>_subprocess</forced_lib> <forced_lib>_warnings</forced_lib> <forced_lib>_weakref</forced_lib> <forced_lib>_winreg</forced_lib> <forced_lib>array</forced_lib> <forced_lib>binascii</forced_lib> <forced_lib>cPickle</forced_lib> <forced_lib>cStringIO</forced_lib> <forced_lib>clr</forced_lib> <forced_lib>cmath</forced_lib> <forced_lib>copy_reg</forced_lib> <forced_lib>datetime</forced_lib> <forced_lib>email</forced_lib> <forced_lib>errno</forced_lib> <forced_lib>exceptions</forced_lib> <forced_lib>future_builtins</forced_lib> <forced_lib>gc</forced_lib> <forced_lib>hashlib</forced_lib> <forced_lib>imp</forced_lib> <forced_lib>itertools</forced_lib> <forced_lib>marshal</forced_lib> <forced_lib>math</forced_lib> <forced_lib>mmap</forced_lib> <forced_lib>msvcrt</forced_lib> <forced_lib>nt</forced_lib> <forced_lib>operator</forced_lib> <forced_lib>os</forced_lib> <forced_lib>os.path</forced_lib> <forced_lib>pytest</forced_lib> <forced_lib>re</forced_lib> <forced_lib>select</forced_lib> <forced_lib>signal</forced_lib> <forced_lib>socket</forced_lib> <forced_lib>sys</forced_lib> <forced_lib>thread</forced_lib> <forced_lib>time</forced_lib> <forced_lib>unicodedata</forced_lib> <forced_lib>wpf</forced_lib> <forced_lib>xxsubtype</forced_lib> <forced_lib>zipimport</forced_lib> <forced_lib>zlib</forced_lib> </xml> at org.python.pydev.core.log.Log.logInfo(Log.java:112) at org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor.getNewInputObject(AbstractInterpreterEditor.java:1096) at org.python.copiedfromeclipsesrc.PythonListEditor.autoConfigPressed(PythonListEditor.java:124) at org.python.copiedfromeclipsesrc.PythonListEditor$1.widgetSelected(PythonListEditor.java:227) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
pydev
null
null
null
null
04/14/2012 02:21:46
not a real question
PyDev: Defining python interpreter shows "An error occured" Reason: 3004: Unexpected error occured === OS: W7 32 bit Eclipse: Eclipse for Testers (Indigo Service Release 2) PyDev: 2.5 IronPython: 2.7.2.1 Python: 2.7.2 Issue: When configuing interpreter (tried both IronPython and Python) using Auto Config, I am seeing the following error message: An error occured. Reason: 3004: Unexpected error occured. Below is the log: 3004: Unexpected error occurred. java.lang.RuntimeException: Information about process of adding new interpreter: - Chosen interpreter (name and file):'Tuple [ipy -- ipy] - Ok, file is non-null. Getting info on:ipy - Beggining task:Getting libs totalWork:100 - Setting task name:Mounting executable string... - Setting task name:Executing: ipy -X:Frames D:\eclipse\plugins\org.python.pydev_2.5.0.2012040618\PySrc\interpreterInfo.py - Setting task name:Making pythonpath environment... ipy -X:Frames D:\eclipse\plugins\org.python.pydev_2.5.0.2012040618\PySrc\interpreterInfo.py - Setting task name:Making exec... ipy -X:Frames D:\eclipse\plugins\org.python.pydev_2.5.0.2012040618\PySrc\interpreterInfo.py - Setting task name:Reading output... - Setting task name:Waiting for process to finish. - Success getting the info. Result:<xml> <name>ipy</name> <version>2.7</version> <executable>C:\Program Files\IronPython 2.7\ipy.exe</executable> <lib>C:\Program Files\IronPython 2.7\Lib</lib> <lib>C:\Program Files\IronPython 2.7\DLLs</lib> <lib>C:\Program Files\IronPython 2.7</lib> <lib>C:\Program Files\IronPython 2.7\lib\site-packages</lib> <forced_lib>IEHost.Execute</forced_lib> <forced_lib>Microsoft</forced_lib> <forced_lib>Microsoft.Aspnet.Snapin</forced_lib> <forced_lib>Microsoft.Build.BuildEngine</forced_lib> <forced_lib>Microsoft.Build.Conversion</forced_lib> <forced_lib>Microsoft.Build.Framework</forced_lib> <forced_lib>Microsoft.Build.Tasks</forced_lib> <forced_lib>Microsoft.Build.Tasks.Deployment.Bootstrapper</forced_lib> <forced_lib>Microsoft.Build.Tasks.Deployment.ManifestUtilities</forced_lib> <forced_lib>Microsoft.Build.Tasks.Hosting</forced_lib> <forced_lib>Microsoft.Build.Tasks.Windows</forced_lib> <forced_lib>Microsoft.Build.Utilities</forced_lib> <forced_lib>Microsoft.CLRAdmin</forced_lib> <forced_lib>Microsoft.CSharp</forced_lib> <forced_lib>Microsoft.Data.Entity.Build.Tasks</forced_lib> <forced_lib>Microsoft.IE</forced_lib> <forced_lib>Microsoft.Ink</forced_lib> <forced_lib>Microsoft.Ink.TextInput</forced_lib> <forced_lib>Microsoft.JScript</forced_lib> <forced_lib>Microsoft.JScript.Vsa</forced_lib> <forced_lib>Microsoft.ManagementConsole</forced_lib> <forced_lib>Microsoft.ManagementConsole.Advanced</forced_lib> <forced_lib>Microsoft.ManagementConsole.Internal</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail.ExchangeWebService</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007</forced_lib> <forced_lib>Microsoft.ServiceModel.Channels.Mail.WindowsMobile</forced_lib> <forced_lib>Microsoft.SqlServer.Server</forced_lib> <forced_lib>Microsoft.StylusInput</forced_lib> <forced_lib>Microsoft.StylusInput.PluginData</forced_lib> <forced_lib>Microsoft.VisualBasic</forced_lib> <forced_lib>Microsoft.VisualBasic.ApplicationServices</forced_lib> <forced_lib>Microsoft.VisualBasic.Compatibility.VB6</forced_lib> <forced_lib>Microsoft.VisualBasic.CompilerServices</forced_lib> <forced_lib>Microsoft.VisualBasic.Devices</forced_lib> <forced_lib>Microsoft.VisualBasic.FileIO</forced_lib> <forced_lib>Microsoft.VisualBasic.Logging</forced_lib> <forced_lib>Microsoft.VisualBasic.MyServices</forced_lib> <forced_lib>Microsoft.VisualBasic.MyServices.Internal</forced_lib> <forced_lib>Microsoft.VisualBasic.Vsa</forced_lib> <forced_lib>Microsoft.VisualC</forced_lib> <forced_lib>Microsoft.VisualC.StlClr</forced_lib> <forced_lib>Microsoft.VisualC.StlClr.Generic</forced_lib> <forced_lib>Microsoft.Vsa</forced_lib> <forced_lib>Microsoft.Vsa.Vb.CodeDOM</forced_lib> <forced_lib>Microsoft.Win32</forced_lib> <forced_lib>Microsoft.Win32.SafeHandles</forced_lib> <forced_lib>Microsoft.Windows.Themes</forced_lib> <forced_lib>Microsoft.WindowsCE.Forms</forced_lib> <forced_lib>Microsoft.WindowsMobile.DirectX</forced_lib> <forced_lib>Microsoft.WindowsMobile.DirectX.Direct3D</forced_lib> <forced_lib>Microsoft_VsaVb</forced_lib> <forced_lib>RegCode</forced_lib> <forced_lib>System</forced_lib> <forced_lib>System.AddIn</forced_lib> <forced_lib>System.AddIn.Contract</forced_lib> <forced_lib>System.AddIn.Contract.Automation</forced_lib> <forced_lib>System.AddIn.Contract.Collections</forced_lib> <forced_lib>System.AddIn.Hosting</forced_lib> <forced_lib>System.AddIn.Pipeline</forced_lib> <forced_lib>System.CodeDom</forced_lib> <forced_lib>System.CodeDom.Compiler</forced_lib> <forced_lib>System.Collections</forced_lib> <forced_lib>System.Collections.Generic</forced_lib> <forced_lib>System.Collections.ObjectModel</forced_lib> <forced_lib>System.Collections.Specialized</forced_lib> <forced_lib>System.ComponentModel</forced_lib> <forced_lib>System.ComponentModel.DataAnnotations</forced_lib> <forced_lib>System.ComponentModel.Design</forced_lib> <forced_lib>System.ComponentModel.Design.Data</forced_lib> <forced_lib>System.ComponentModel.Design.Serialization</forced_lib> <forced_lib>System.Configuration</forced_lib> <forced_lib>System.Configuration.Assemblies</forced_lib> <forced_lib>System.Configuration.Install</forced_lib> <forced_lib>System.Configuration.Internal</forced_lib> <forced_lib>System.Configuration.Provider</forced_lib> <forced_lib>System.Data</forced_lib> <forced_lib>System.Data.Common</forced_lib> <forced_lib>System.Data.Common.CommandTrees</forced_lib> <forced_lib>System.Data.Design</forced_lib> <forced_lib>System.Data.Entity.Design</forced_lib> <forced_lib>System.Data.Entity.Design.AspNet</forced_lib> <forced_lib>System.Data.EntityClient</forced_lib> <forced_lib>System.Data.Linq</forced_lib> <forced_lib>System.Data.Linq.Mapping</forced_lib> <forced_lib>System.Data.Linq.SqlClient</forced_lib> <forced_lib>System.Data.Linq.SqlClient.Implementation</forced_lib> <forced_lib>System.Data.Mapping</forced_lib> <forced_lib>System.Data.Metadata.Edm</forced_lib> <forced_lib>System.Data.Objects</forced_lib> <forced_lib>System.Data.Objects.DataClasses</forced_lib> <forced_lib>System.Data.Odbc</forced_lib> <forced_lib>System.Data.OleDb</forced_lib> <forced_lib>System.Data.OracleClient</forced_lib> <forced_lib>System.Data.Services</forced_lib> <forced_lib>System.Data.Services.Client</forced_lib> <forced_lib>System.Data.Services.Common</forced_lib> <forced_lib>System.Data.Services.Design</forced_lib> <forced_lib>System.Data.Services.Internal</forced_lib> <forced_lib>System.Data.Sql</forced_lib> <forced_lib>System.Data.SqlClient</forced_lib> <forced_lib>System.Data.SqlTypes</forced_lib> <forced_lib>System.Deployment.Application</forced_lib> <forced_lib>System.Deployment.Internal</forced_lib> <forced_lib>System.Diagnostics</forced_lib> <forced_lib>System.Diagnostics.CodeAnalysis</forced_lib> <forced_lib>System.Diagnostics.Design</forced_lib> <forced_lib>System.Diagnostics.Eventing</forced_lib> <forced_lib>System.Diagnostics.Eventing.Reader</forced_lib> <forced_lib>System.Diagnostics.PerformanceData</forced_lib> <forced_lib>System.Diagnostics.SymbolStore</forced_lib> <forced_lib>System.DirectoryServices</forced_lib> <forced_lib>System.DirectoryServices.AccountManagement</forced_lib> <forced_lib>System.DirectoryServices.ActiveDirectory</forced_lib> <forced_lib>System.DirectoryServices.Protocols</forced_lib> <forced_lib>System.Drawing</forced_lib> <forced_lib>System.Drawing.Design</forced_lib> <forced_lib>System.Drawing.Drawing2D</forced_lib> <forced_lib>System.Drawing.Imaging</forced_lib> <forced_lib>System.Drawing.Printing</forced_lib> <forced_lib>System.Drawing.Text</forced_lib> <forced_lib>System.EnterpriseServices</forced_lib> <forced_lib>System.EnterpriseServices.CompensatingResourceManager</forced_lib> <forced_lib>System.EnterpriseServices.Internal</forced_lib> <forced_lib>System.Globalization</forced_lib> <forced_lib>System.IO</forced_lib> <forced_lib>System.IO.Compression</forced_lib> <forced_lib>System.IO.IsolatedStorage</forced_lib> <forced_lib>System.IO.Log</forced_lib> <forced_lib>System.IO.Packaging</forced_lib> <forced_lib>System.IO.Pipes</forced_lib> <forced_lib>System.IO.Ports</forced_lib> <forced_lib>System.IdentityModel.Claims</forced_lib> <forced_lib>System.IdentityModel.Policy</forced_lib> <forced_lib>System.IdentityModel.Selectors</forced_lib> <forced_lib>System.IdentityModel.Tokens</forced_lib> <forced_lib>System.Linq</forced_lib> <forced_lib>System.Linq.Expressions</forced_lib> <forced_lib>System.Management</forced_lib> <forced_lib>System.Management.Instrumentation</forced_lib> <forced_lib>System.Media</forced_lib> <forced_lib>System.Messaging</forced_lib> <forced_lib>System.Messaging.Design</forced_lib> <forced_lib>System.Net</forced_lib> <forced_lib>System.Net.Cache</forced_lib> <forced_lib>System.Net.Configuration</forced_lib> <forced_lib>System.Net.Mail</forced_lib> <forced_lib>System.Net.Mime</forced_lib> <forced_lib>System.Net.NetworkInformation</forced_lib> <forced_lib>System.Net.PeerToPeer</forced_lib> <forced_lib>System.Net.PeerToPeer.Collaboration</forced_lib> <forced_lib>System.Net.Security</forced_lib> <forced_lib>System.Net.Sockets</forced_lib> <forced_lib>System.Printing</forced_lib> <forced_lib>System.Printing.IndexedProperties</forced_lib> <forced_lib>System.Printing.Interop</forced_lib> <forced_lib>System.Reflection</forced_lib> <forced_lib>System.Reflection.Emit</forced_lib> <forced_lib>System.Resources</forced_lib> <forced_lib>System.Resources.Tools</forced_lib> <forced_lib>System.Runtime</forced_lib> <forced_lib>System.Runtime.CompilerServices</forced_lib> <forced_lib>System.Runtime.ConstrainedExecution</forced_lib> <forced_lib>System.Runtime.Hosting</forced_lib> <forced_lib>System.Runtime.InteropServices</forced_lib> <forced_lib>System.Runtime.InteropServices.ComTypes</forced_lib> <forced_lib>System.Runtime.InteropServices.CustomMarshalers</forced_lib> <forced_lib>System.Runtime.InteropServices.Expando</forced_lib> <forced_lib>System.Runtime.Remoting</forced_lib> <forced_lib>System.Runtime.Remoting.Activation</forced_lib> <forced_lib>System.Runtime.Remoting.Channels</forced_lib> <forced_lib>System.Runtime.Remoting.Channels.Http</forced_lib> <forced_lib>System.Runtime.Remoting.Channels.Ipc</forced_lib> <forced_lib>System.Runtime.Remoting.Channels.Tcp</forced_lib> <forced_lib>System.Runtime.Remoting.Contexts</forced_lib> <forced_lib>System.Runtime.Remoting.Lifetime</forced_lib> <forced_lib>System.Runtime.Remoting.Messaging</forced_lib> <forced_lib>System.Runtime.Remoting.Metadata</forced_lib> <forced_lib>System.Runtime.Remoting.MetadataServices</forced_lib> <forced_lib>System.Runtime.Remoting.Proxies</forced_lib> <forced_lib>System.Runtime.Remoting.Services</forced_lib> <forced_lib>System.Runtime.Serialization</forced_lib> <forced_lib>System.Runtime.Serialization.Configuration</forced_lib> <forced_lib>System.Runtime.Serialization.Formatters</forced_lib> <forced_lib>System.Runtime.Serialization.Formatters.Binary</forced_lib> <forced_lib>System.Runtime.Serialization.Formatters.Soap</forced_lib> <forced_lib>System.Runtime.Serialization.Json</forced_lib> <forced_lib>System.Runtime.Versioning</forced_lib> <forced_lib>System.Security</forced_lib> <forced_lib>System.Security.AccessControl</forced_lib> <forced_lib>System.Security.Authentication</forced_lib> <forced_lib>System.Security.Authentication.ExtendedProtection</forced_lib> <forced_lib>System.Security.Authentication.ExtendedProtection.Configuration</forced_lib> <forced_lib>System.Security.Cryptography</forced_lib> <forced_lib>System.Security.Cryptography.Pkcs</forced_lib> <forced_lib>System.Security.Cryptography.X509Certificates</forced_lib> <forced_lib>System.Security.Cryptography.Xml</forced_lib> <forced_lib>System.Security.Permissions</forced_lib> <forced_lib>System.Security.Policy</forced_lib> <forced_lib>System.Security.Principal</forced_lib> <forced_lib>System.Security.RightsManagement</forced_lib> <forced_lib>System.ServiceModel</forced_lib> <forced_lib>System.ServiceModel.Activation</forced_lib> <forced_lib>System.ServiceModel.Activation.Configuration</forced_lib> <forced_lib>System.ServiceModel.Channels</forced_lib> <forced_lib>System.ServiceModel.ComIntegration</forced_lib> <forced_lib>System.ServiceModel.Configuration</forced_lib> <forced_lib>System.ServiceModel.Description</forced_lib> <forced_lib>System.ServiceModel.Diagnostics</forced_lib> <forced_lib>System.ServiceModel.Dispatcher</forced_lib> <forced_lib>System.ServiceModel.Install.Configuration</forced_lib> <forced_lib>System.ServiceModel.Internal</forced_lib> <forced_lib>System.ServiceModel.MsmqIntegration</forced_lib> <forced_lib>System.ServiceModel.PeerResolvers</forced_lib> <forced_lib>System.ServiceModel.Persistence</forced_lib> <forced_lib>System.ServiceModel.Security</forced_lib> <forced_lib>System.ServiceModel.Security.Tokens</forced_lib> <forced_lib>System.ServiceModel.Syndication</forced_lib> <forced_lib>System.ServiceModel.Web</forced_lib> <forced_lib>System.ServiceProcess</forced_lib> <forced_lib>System.ServiceProcess.Design</forced_lib> <forced_lib>System.Speech.AudioFormat</forced_lib> <forced_lib>System.Speech.Recognition</forced_lib> <forced_lib>System.Speech.Recognition.SrgsGrammar</forced_lib> <forced_lib>System.Speech.Synthesis</forced_lib> <forced_lib>System.Speech.Synthesis.TtsEngine</forced_lib> <forced_lib>System.Text</forced_lib> <forced_lib>System.Text.RegularExpressions</forced_lib> <forced_lib>System.Threading</forced_lib> <forced_lib>System.Timers</forced_lib> <forced_lib>System.Transactions</forced_lib> <forced_lib>System.Transactions.Configuration</forced_lib> <forced_lib>System.Web</forced_lib> <forced_lib>System.Web.ApplicationServices</forced_lib> <forced_lib>System.Web.Caching</forced_lib> <forced_lib>System.Web.ClientServices</forced_lib> <forced_lib>System.Web.ClientServices.Providers</forced_lib> <forced_lib>System.Web.Compilation</forced_lib> <forced_lib>System.Web.Configuration</forced_lib> <forced_lib>System.Web.Configuration.Internal</forced_lib> <forced_lib>System.Web.DynamicData</forced_lib> <forced_lib>System.Web.DynamicData.Design</forced_lib> <forced_lib>System.Web.DynamicData.ModelProviders</forced_lib> <forced_lib>System.Web.Handlers</forced_lib> <forced_lib>System.Web.Hosting</forced_lib> <forced_lib>System.Web.Mail</forced_lib> <forced_lib>System.Web.Management</forced_lib> <forced_lib>System.Web.Mobile</forced_lib> <forced_lib>System.Web.Profile</forced_lib> <forced_lib>System.Web.Query.Dynamic</forced_lib> <forced_lib>System.Web.RegularExpressions</forced_lib> <forced_lib>System.Web.Routing</forced_lib> <forced_lib>System.Web.Script.Serialization</forced_lib> <forced_lib>System.Web.Script.Services</forced_lib> <forced_lib>System.Web.Security</forced_lib> <forced_lib>System.Web.Services</forced_lib> <forced_lib>System.Web.Services.Configuration</forced_lib> <forced_lib>System.Web.Services.Description</forced_lib> <forced_lib>System.Web.Services.Discovery</forced_lib> <forced_lib>System.Web.Services.Protocols</forced_lib> <forced_lib>System.Web.SessionState</forced_lib> <forced_lib>System.Web.UI</forced_lib> <forced_lib>System.Web.UI.Adapters</forced_lib> <forced_lib>System.Web.UI.Design</forced_lib> <forced_lib>System.Web.UI.Design.MobileControls</forced_lib> <forced_lib>System.Web.UI.Design.MobileControls.Converters</forced_lib> <forced_lib>System.Web.UI.Design.WebControls</forced_lib> <forced_lib>System.Web.UI.Design.WebControls.WebParts</forced_lib> <forced_lib>System.Web.UI.MobileControls</forced_lib> <forced_lib>System.Web.UI.MobileControls.Adapters</forced_lib> <forced_lib>System.Web.UI.MobileControls.Adapters.XhtmlAdapters</forced_lib> <forced_lib>System.Web.UI.WebControls</forced_lib> <forced_lib>System.Web.UI.WebControls.Adapters</forced_lib> <forced_lib>System.Web.UI.WebControls.WebParts</forced_lib> <forced_lib>System.Web.Util</forced_lib> <forced_lib>System.Windows</forced_lib> <forced_lib>System.Windows.Annotations</forced_lib> <forced_lib>System.Windows.Annotations.Storage</forced_lib> <forced_lib>System.Windows.Automation</forced_lib> <forced_lib>System.Windows.Automation.Peers</forced_lib> <forced_lib>System.Windows.Automation.Provider</forced_lib> <forced_lib>System.Windows.Automation.Text</forced_lib> <forced_lib>System.Windows.Controls</forced_lib> <forced_lib>System.Windows.Controls.Primitives</forced_lib> <forced_lib>System.Windows.Converters</forced_lib> <forced_lib>System.Windows.Data</forced_lib> <forced_lib>System.Windows.Documents</forced_lib> <forced_lib>System.Windows.Documents.Serialization</forced_lib> <forced_lib>System.Windows.Forms</forced_lib> <forced_lib>System.Windows.Forms.ComponentModel.Com2Interop</forced_lib> <forced_lib>System.Windows.Forms.Design</forced_lib> <forced_lib>System.Windows.Forms.Design.Behavior</forced_lib> <forced_lib>System.Windows.Forms.Integration</forced_lib> <forced_lib>System.Windows.Forms.Layout</forced_lib> <forced_lib>System.Windows.Forms.PropertyGridInternal</forced_lib> <forced_lib>System.Windows.Forms.VisualStyles</forced_lib> <forced_lib>System.Windows.Ink</forced_lib> <forced_lib>System.Windows.Ink.AnalysisCore</forced_lib> <forced_lib>System.Windows.Input</forced_lib> <forced_lib>System.Windows.Input.StylusPlugIns</forced_lib> <forced_lib>System.Windows.Interop</forced_lib> <forced_lib>System.Windows.Markup</forced_lib> <forced_lib>System.Windows.Markup.Localizer</forced_lib> <forced_lib>System.Windows.Markup.Primitives</forced_lib> <forced_lib>System.Windows.Media</forced_lib> <forced_lib>System.Windows.Media.Animation</forced_lib> <forced_lib>System.Windows.Media.Converters</forced_lib> <forced_lib>System.Windows.Media.Effects</forced_lib> <forced_lib>System.Windows.Media.Imaging</forced_lib> <forced_lib>System.Windows.Media.Media3D</forced_lib> <forced_lib>System.Windows.Media.Media3D.Converters</forced_lib> <forced_lib>System.Windows.Media.TextFormatting</forced_lib> <forced_lib>System.Windows.Navigation</forced_lib> <forced_lib>System.Windows.Resources</forced_lib> <forced_lib>System.Windows.Shapes</forced_lib> <forced_lib>System.Windows.Threading</forced_lib> <forced_lib>System.Windows.Xps</forced_lib> <forced_lib>System.Windows.Xps.Packaging</forced_lib> <forced_lib>System.Windows.Xps.Serialization</forced_lib> <forced_lib>System.Workflow.Activities</forced_lib> <forced_lib>System.Workflow.Activities.Configuration</forced_lib> <forced_lib>System.Workflow.Activities.Rules</forced_lib> <forced_lib>System.Workflow.Activities.Rules.Design</forced_lib> <forced_lib>System.Workflow.ComponentModel</forced_lib> <forced_lib>System.Workflow.ComponentModel.Compiler</forced_lib> <forced_lib>System.Workflow.ComponentModel.Design</forced_lib> <forced_lib>System.Workflow.ComponentModel.Serialization</forced_lib> <forced_lib>System.Workflow.Runtime</forced_lib> <forced_lib>System.Workflow.Runtime.Configuration</forced_lib> <forced_lib>System.Workflow.Runtime.DebugEngine</forced_lib> <forced_lib>System.Workflow.Runtime.Hosting</forced_lib> <forced_lib>System.Workflow.Runtime.Tracking</forced_lib> <forced_lib>System.Xml</forced_lib> <forced_lib>System.Xml.Linq</forced_lib> <forced_lib>System.Xml.Schema</forced_lib> <forced_lib>System.Xml.Serialization</forced_lib> <forced_lib>System.Xml.Serialization.Advanced</forced_lib> <forced_lib>System.Xml.Serialization.Configuration</forced_lib> <forced_lib>System.Xml.XPath</forced_lib> <forced_lib>System.Xml.Xsl</forced_lib> <forced_lib>System.Xml.Xsl.Runtime</forced_lib> <forced_lib>UIAutomationClientsideProviders</forced_lib> <forced_lib>__builtin__</forced_lib> <forced_lib>_ast</forced_lib> <forced_lib>_codecs</forced_lib> <forced_lib>_collections</forced_lib> <forced_lib>_csv</forced_lib> <forced_lib>_ctypes</forced_lib> <forced_lib>_ctypes_test</forced_lib> <forced_lib>_functools</forced_lib> <forced_lib>_heapq</forced_lib> <forced_lib>_io</forced_lib> <forced_lib>_locale</forced_lib> <forced_lib>_md5</forced_lib> <forced_lib>_random</forced_lib> <forced_lib>_sha</forced_lib> <forced_lib>_sha256</forced_lib> <forced_lib>_sha512</forced_lib> <forced_lib>_sqlite3</forced_lib> <forced_lib>_sre</forced_lib> <forced_lib>_ssl</forced_lib> <forced_lib>_struct</forced_lib> <forced_lib>_subprocess</forced_lib> <forced_lib>_warnings</forced_lib> <forced_lib>_weakref</forced_lib> <forced_lib>_winreg</forced_lib> <forced_lib>array</forced_lib> <forced_lib>binascii</forced_lib> <forced_lib>cPickle</forced_lib> <forced_lib>cStringIO</forced_lib> <forced_lib>clr</forced_lib> <forced_lib>cmath</forced_lib> <forced_lib>copy_reg</forced_lib> <forced_lib>datetime</forced_lib> <forced_lib>email</forced_lib> <forced_lib>errno</forced_lib> <forced_lib>exceptions</forced_lib> <forced_lib>future_builtins</forced_lib> <forced_lib>gc</forced_lib> <forced_lib>hashlib</forced_lib> <forced_lib>imp</forced_lib> <forced_lib>itertools</forced_lib> <forced_lib>marshal</forced_lib> <forced_lib>math</forced_lib> <forced_lib>mmap</forced_lib> <forced_lib>msvcrt</forced_lib> <forced_lib>nt</forced_lib> <forced_lib>operator</forced_lib> <forced_lib>os</forced_lib> <forced_lib>os.path</forced_lib> <forced_lib>pytest</forced_lib> <forced_lib>re</forced_lib> <forced_lib>select</forced_lib> <forced_lib>signal</forced_lib> <forced_lib>socket</forced_lib> <forced_lib>sys</forced_lib> <forced_lib>thread</forced_lib> <forced_lib>time</forced_lib> <forced_lib>unicodedata</forced_lib> <forced_lib>wpf</forced_lib> <forced_lib>xxsubtype</forced_lib> <forced_lib>zipimport</forced_lib> <forced_lib>zlib</forced_lib> </xml> at org.python.pydev.core.log.Log.logInfo(Log.java:112) at org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor.getNewInputObject(AbstractInterpreterEditor.java:1096) at org.python.copiedfromeclipsesrc.PythonListEditor.autoConfigPressed(PythonListEditor.java:124) at org.python.copiedfromeclipsesrc.PythonListEditor$1.widgetSelected(PythonListEditor.java:227) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
1
11,703,830
07/28/2012 19:05:07
1,224,370
02/21/2012 21:05:57
1
0
crystal reports split string formula
I'm trying to to only show the date only on the return record. This is what the string shows STARTED:/ 03/23/1983 TIME:/ 03:12 I need to remove "STARTED:/" and TIME:/ 03:12 and only show the date "03/23/1983. What formula can I use to only show 03/23/1983 Thanks
crystal-reports
report
formula
null
null
null
open
crystal reports split string formula === I'm trying to to only show the date only on the return record. This is what the string shows STARTED:/ 03/23/1983 TIME:/ 03:12 I need to remove "STARTED:/" and TIME:/ 03:12 and only show the date "03/23/1983. What formula can I use to only show 03/23/1983 Thanks
0
2,388,853
03/05/2010 17:59:25
287,338
03/05/2010 17:58:20
1
0
Disable animation of navigation bar in iphone
I am working on a Navigation-Based Application. I have few View Controllers which I push in to Navigation Controller on different occasions. The following is the code I use to push new View Controller. AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil]; [self.navigationController pushViewController:anotherViewController animated:YES]; [anotherViewController release]; One thing i noticed is that, when new view controller is pushed the navigation bar also animated (slided). I have a back button, title text and right button in navigation bar. So it look wiered when navigation bar is animated. Is there any way around to keep the navigation bar fixed and the view is only animated when new view controller is pushed? Thanks and Regards Bimal
uinavigationcontroller
animated
navigation
bar
pushviewcontroller
null
open
Disable animation of navigation bar in iphone === I am working on a Navigation-Based Application. I have few View Controllers which I push in to Navigation Controller on different occasions. The following is the code I use to push new View Controller. AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil]; [self.navigationController pushViewController:anotherViewController animated:YES]; [anotherViewController release]; One thing i noticed is that, when new view controller is pushed the navigation bar also animated (slided). I have a back button, title text and right button in navigation bar. So it look wiered when navigation bar is animated. Is there any way around to keep the navigation bar fixed and the view is only animated when new view controller is pushed? Thanks and Regards Bimal
0
10,385,271
04/30/2012 14:20:09
448,625
09/15/2010 16:21:25
7,478
427
Dynamically Linking a dll using reflection and passing delegates
I want to dynamically load a dll and construct a `MyDllClass` object. My code is roughly as follows(unrelevant parts stripped): **MyDllClass.cs** namespace MyDllNameSpace { public class MyDllClass { private EventCallBack m_DelegateCallBack = null; public MyDllClass(EventCallBack eventCallBack) { m_DelegateCallBack = eventCallBack; } public MyDllClass() { } ... } } **MyDllCallBackNameSpace.cs** namespace MyDllCallBackNameSpace { public delegate void EventCallBack(string message); } I managed to construct the object using the empty constructor but I couldn't get other constructor working. I get `ArgumentException` Here is my code: **MyProgram.cs** public void InitMyObject(EventCallBack callBack) System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFrom(DLL_PATH); Type type = assembly.GetType(CLASS_NAME); ConstructorInfo[] constructors = type.GetConstructors(); if (type != null) { // empty constructor, works!!! //return constructors[1].Invoke(new object[0]); // This one gives InvalidArgument exception return constructors[0].Invoke(new object[] {callBack}); } return null; } `MyDllCallBackNameSpace.cs` file has been added to both projects(the .dll & the .exe project) and references the same physical file on my drive. But I suspect that it is still treated as different. Any ideas why it is not working, or any workarounds?
c#
reflection
null
null
null
null
open
Dynamically Linking a dll using reflection and passing delegates === I want to dynamically load a dll and construct a `MyDllClass` object. My code is roughly as follows(unrelevant parts stripped): **MyDllClass.cs** namespace MyDllNameSpace { public class MyDllClass { private EventCallBack m_DelegateCallBack = null; public MyDllClass(EventCallBack eventCallBack) { m_DelegateCallBack = eventCallBack; } public MyDllClass() { } ... } } **MyDllCallBackNameSpace.cs** namespace MyDllCallBackNameSpace { public delegate void EventCallBack(string message); } I managed to construct the object using the empty constructor but I couldn't get other constructor working. I get `ArgumentException` Here is my code: **MyProgram.cs** public void InitMyObject(EventCallBack callBack) System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFrom(DLL_PATH); Type type = assembly.GetType(CLASS_NAME); ConstructorInfo[] constructors = type.GetConstructors(); if (type != null) { // empty constructor, works!!! //return constructors[1].Invoke(new object[0]); // This one gives InvalidArgument exception return constructors[0].Invoke(new object[] {callBack}); } return null; } `MyDllCallBackNameSpace.cs` file has been added to both projects(the .dll & the .exe project) and references the same physical file on my drive. But I suspect that it is still treated as different. Any ideas why it is not working, or any workarounds?
0
1,673,841
11/04/2009 13:45:52
82,368
03/25/2009 04:27:50
1,478
31
Design Patterns in Java API
I am learning Java Design Patterns and would like to know where some of these patterns are being used in Java Libraries themselves. 1. Decorator Pattern - java.io 2. Adapter Pattern - Iterator / Enumerator 3. Facade Pattern - ?
java
design-patterns
null
null
null
04/29/2012 05:54:39
not constructive
Design Patterns in Java API === I am learning Java Design Patterns and would like to know where some of these patterns are being used in Java Libraries themselves. 1. Decorator Pattern - java.io 2. Adapter Pattern - Iterator / Enumerator 3. Facade Pattern - ?
4
11,266,878
06/29/2012 18:12:15
1,067,665
11/27/2011 07:15:44
34
0
I get erroe when i use spring security in my maiven project
Why when I add <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> to my project it's not working and I get: HTTP Status 404. But when I remove the filter dependency, it works again. Any idea why? Why it cause the error? Here is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee /web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <!-- Define the basename for a resource bundle for I18N --> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>messages</param-value> </context-param> <context-param> <param-name>contextClass</param-name> <param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext </param-value> </context-param> <!-- Creates the Spring Container shared by all Servlets and Filters --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- The definition of the Root Spring Container shared by all Servlets and Filters --> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:/META-INF/root-context.xml, classpath:/META-INF/appServlet/spring-security.xml </param-value> </context-param> <!-- Processes application requests --> <servlet> <servlet-name>appServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:/META-INF/appServlet/servlet-context.xml </param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>appServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> and here is my spring_security.xml <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.3.xsd"> <security:http auto-config="true"> <security:intercept-url pattern="/welcome*" access="ROLE_USER" /> <security:form-login login-page="/login" default-target-url="/welcome" authentication-failure-url="/loginfailed" /> <security:logout logout-success-url="/logout" /> </security:http> <security:authentication-manager> <security:authentication-provider> <security:jdbc-user-service data-source-ref="dataSource" users-by-username-query=" select username,password, enabled from users where USERNAME=?" authorities-by-username-query=" select u.username, ur.authority from users u, user_roles ur where u.user_id = ur.user_id and u.username =? " /> </security:authentication-provider> </security:authentication-manager> </beans:beans>
spring
security
null
null
null
null
open
I get erroe when i use spring security in my maiven project === Why when I add <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> to my project it's not working and I get: HTTP Status 404. But when I remove the filter dependency, it works again. Any idea why? Why it cause the error? Here is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee /web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <!-- Define the basename for a resource bundle for I18N --> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>messages</param-value> </context-param> <context-param> <param-name>contextClass</param-name> <param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext </param-value> </context-param> <!-- Creates the Spring Container shared by all Servlets and Filters --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- The definition of the Root Spring Container shared by all Servlets and Filters --> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:/META-INF/root-context.xml, classpath:/META-INF/appServlet/spring-security.xml </param-value> </context-param> <!-- Processes application requests --> <servlet> <servlet-name>appServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:/META-INF/appServlet/servlet-context.xml </param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>appServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> and here is my spring_security.xml <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.3.xsd"> <security:http auto-config="true"> <security:intercept-url pattern="/welcome*" access="ROLE_USER" /> <security:form-login login-page="/login" default-target-url="/welcome" authentication-failure-url="/loginfailed" /> <security:logout logout-success-url="/logout" /> </security:http> <security:authentication-manager> <security:authentication-provider> <security:jdbc-user-service data-source-ref="dataSource" users-by-username-query=" select username,password, enabled from users where USERNAME=?" authorities-by-username-query=" select u.username, ur.authority from users u, user_roles ur where u.user_id = ur.user_id and u.username =? " /> </security:authentication-provider> </security:authentication-manager> </beans:beans>
0
5,381,809
03/21/2011 18:15:47
1,557,645
03/21/2011 16:46:23
1
0
Jquery .each function using show() and hide() not working on last checkbox selected
$(document).ready(function() { $('#comparebut').click(function(){ var id=''; $("#recomparebut").show(); $("#comparebut").hide(); $('input:checkbox').each(function() { id = ''; id = $(this).val(); //alert(id); if($(this).is(':checked')) { //$('#company_' + id).fadeIn(1500,function() { //$('#company_' + id).show(); //}); } else{ $('#company_' + id).fadeOut(1500,function() { $('#company_' + id).hide(); }); } }); }); }); i am trying to hide table rows on a button click event. i am checking the rows based on if a checkbox is selected or not. it works fine but when i have the bottom checkbox selected along with other checkboxes the last table row disappears
php
jquery
null
null
null
null
open
Jquery .each function using show() and hide() not working on last checkbox selected === $(document).ready(function() { $('#comparebut').click(function(){ var id=''; $("#recomparebut").show(); $("#comparebut").hide(); $('input:checkbox').each(function() { id = ''; id = $(this).val(); //alert(id); if($(this).is(':checked')) { //$('#company_' + id).fadeIn(1500,function() { //$('#company_' + id).show(); //}); } else{ $('#company_' + id).fadeOut(1500,function() { $('#company_' + id).hide(); }); } }); }); }); i am trying to hide table rows on a button click event. i am checking the rows based on if a checkbox is selected or not. it works fine but when i have the bottom checkbox selected along with other checkboxes the last table row disappears
0
4,282,742
11/26/2010 05:30:54
468,410
10/06/2010 19:55:45
1
0
Iphone / iPad Spanish Keyboard
Is there a Spanish Keyboard for iPhone iPad (with accents and ñ) or just the US one? Thanks!
iphone
xcode
ipad
keyboard
null
08/23/2011 08:59:09
off topic
Iphone / iPad Spanish Keyboard === Is there a Spanish Keyboard for iPhone iPad (with accents and ñ) or just the US one? Thanks!
2
6,572,178
07/04/2011 13:29:06
111,988
05/25/2009 07:43:41
3,944
412
not registered on network error in android
I have written following code to make a call also have set permissions in manifest file. But when I am trying to call I got **not registered on network** error. I have googled it. But didnot get solution. Please help me Thanks Sunil Kumar Sahoo Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + callingNumber)); startActivity(callIntent); I have set call phone permission in manifest file <uses-permission android:name="android.permission.CALL_PHONE"></uses-permission> <uses-permission android:name="android.permission.INTERNET"></uses-permission>
android
null
null
null
null
null
open
not registered on network error in android === I have written following code to make a call also have set permissions in manifest file. But when I am trying to call I got **not registered on network** error. I have googled it. But didnot get solution. Please help me Thanks Sunil Kumar Sahoo Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + callingNumber)); startActivity(callIntent); I have set call phone permission in manifest file <uses-permission android:name="android.permission.CALL_PHONE"></uses-permission> <uses-permission android:name="android.permission.INTERNET"></uses-permission>
0
10,334,587
04/26/2012 13:35:25
244,413
01/06/2010 02:46:19
2,601
1
Where is this file stored?
Someone can tell me where this site's favicon is stored ? [www.infoseek.co.jp][1] [1]: http://www.infoseek.co.jp/
html
css
favicon
null
null
04/26/2012 13:47:26
too localized
Where is this file stored? === Someone can tell me where this site's favicon is stored ? [www.infoseek.co.jp][1] [1]: http://www.infoseek.co.jp/
3
5,019,252
02/16/2011 16:37:38
479,911
10/18/2010 23:51:59
74
2
How should I store outgoing emails such that the recipient also can read the email via a link?
**Introduction** Ok, so I have a web application that sends a lot of different emails every day. I want to include a "Click here if you can't read this email" link in the emails. I'm wondering how to best store this, and how other people do it. **Problem** Today I have a database table like this: CREATE TABLE IF NOT EXISTS `mydb`.`httpsemail` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `from` VARCHAR(255) NOT NULL , `to` VARCHAR(255) NOT NULL , `subject` VARCHAR(255) NOT NULL , `body` MEDIUMTEXT NULL , `hash` CHAR(60) NOT NULL , PRIMARY KEY (`id`) ) ENGINE = InnoDB The email contents are generated from many different templates with different customer-related data inserted depending on the recipient. The table quickly grows to tens of thousands of rows (one row per sent email), with a size of several gigabytes. I'm not even sure this is a problem. I always retrieve emails by primary key so it's fast. The hard drive is big. However, backups are slow. **Possible solutions/improvements** A possible improvement is to regenerate the contents of the email when the user clicks the link instead of storing the generated result in the database. However, the inputs may change in the meantime, and I want the email to be "fixed" - meaning that the user should see the email as it was at the time of sending. Another improvement might be to automatically delete stored emails older than X days. However, this means the link will stop working some day, depending on the X. A lower X is good for free space, but bad for the user. How to decide X? Thoughts?
php
mysql
email
database-design
html-email
null
open
How should I store outgoing emails such that the recipient also can read the email via a link? === **Introduction** Ok, so I have a web application that sends a lot of different emails every day. I want to include a "Click here if you can't read this email" link in the emails. I'm wondering how to best store this, and how other people do it. **Problem** Today I have a database table like this: CREATE TABLE IF NOT EXISTS `mydb`.`httpsemail` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `from` VARCHAR(255) NOT NULL , `to` VARCHAR(255) NOT NULL , `subject` VARCHAR(255) NOT NULL , `body` MEDIUMTEXT NULL , `hash` CHAR(60) NOT NULL , PRIMARY KEY (`id`) ) ENGINE = InnoDB The email contents are generated from many different templates with different customer-related data inserted depending on the recipient. The table quickly grows to tens of thousands of rows (one row per sent email), with a size of several gigabytes. I'm not even sure this is a problem. I always retrieve emails by primary key so it's fast. The hard drive is big. However, backups are slow. **Possible solutions/improvements** A possible improvement is to regenerate the contents of the email when the user clicks the link instead of storing the generated result in the database. However, the inputs may change in the meantime, and I want the email to be "fixed" - meaning that the user should see the email as it was at the time of sending. Another improvement might be to automatically delete stored emails older than X days. However, this means the link will stop working some day, depending on the X. A lower X is good for free space, but bad for the user. How to decide X? Thoughts?
0
9,562,530
03/05/2012 06:33:30
622,097
02/17/2011 20:41:53
236
2
How can I simulate the press of a button?
I want to test some forms. Is there a way to simulate the press of an Ok (or Cancel) button so that the button is pressed and fires the event handlers that are associated with it?
delphi
event-handling
vcl
null
null
null
open
How can I simulate the press of a button? === I want to test some forms. Is there a way to simulate the press of an Ok (or Cancel) button so that the button is pressed and fires the event handlers that are associated with it?
0
5,850,585
05/01/2011 18:58:24
585,283
01/22/2011 01:57:49
297
9
Solving Vector Multiplication (general problem)
I am trying to solve a Mathematical equation in one of my geometric modelling problem. Let's say if I have 2 vectors, A and B, and I have the following equation: A x B = c (c is a scalar value). If I know the coordinate of my vector B (7/2, 15/2); and I know the value of c, which is -4. How can I calculate my vector A, to satisfy that equation (A X B = c) ?
math
vector
null
null
null
05/01/2011 21:49:49
off topic
Solving Vector Multiplication (general problem) === I am trying to solve a Mathematical equation in one of my geometric modelling problem. Let's say if I have 2 vectors, A and B, and I have the following equation: A x B = c (c is a scalar value). If I know the coordinate of my vector B (7/2, 15/2); and I know the value of c, which is -4. How can I calculate my vector A, to satisfy that equation (A X B = c) ?
2
11,500,486
07/16/2012 08:20:39
1,333,066
04/14/2012 08:45:55
6
0
Build a multi-user collaboration android app
Greetings to all SO developers! I was searching for a way to allow collaboration on one activity of an android app. My problem is as follows: Lets say I have a simple android application having a EditText field in it. All users who have this app installed, are stored in my database. One user opens the app on his phone. **What I want is: That he can add another user to his own screen(activity) and they both can write in the EditText field together in real-time.** So, for one, how do I implement this functionality of adding another user(say User2) to User1's activity, and for two, they should be able to write in the editText field together. Any help/samples/resources would be appreciated, as I did search over the internet and on StackOverflow too, but didn't exactly found what I was looking for.
java
android
null
null
null
null
open
Build a multi-user collaboration android app === Greetings to all SO developers! I was searching for a way to allow collaboration on one activity of an android app. My problem is as follows: Lets say I have a simple android application having a EditText field in it. All users who have this app installed, are stored in my database. One user opens the app on his phone. **What I want is: That he can add another user to his own screen(activity) and they both can write in the EditText field together in real-time.** So, for one, how do I implement this functionality of adding another user(say User2) to User1's activity, and for two, they should be able to write in the editText field together. Any help/samples/resources would be appreciated, as I did search over the internet and on StackOverflow too, but didn't exactly found what I was looking for.
0
10,197,665
04/17/2012 19:17:21
1,275,997
03/17/2012 16:57:54
463
8
Hey one undesired error is occuring in mysql
I just wrote a query, which was displaying data from mysql perfectly, but after a while when i am running the same query, the output is showing as "MySQL returned an empty result set (i.e. zero rows)". I don't know why it's happening. I am doing INNER JOIN of two tables.
mysql
null
null
null
null
04/19/2012 15:24:29
too localized
Hey one undesired error is occuring in mysql === I just wrote a query, which was displaying data from mysql perfectly, but after a while when i am running the same query, the output is showing as "MySQL returned an empty result set (i.e. zero rows)". I don't know why it's happening. I am doing INNER JOIN of two tables.
3
10,087,933
04/10/2012 11:33:15
1,321,521
04/09/2012 09:03:31
6
0
write a function that goes throught a list of strings and returns the int number of distinct words in the form of an int
i have to write a function count_words() that takes a list of strings and returns the int number of distinct words in that list in the form of an int. Say the list is: List = ['twas', 'brillig', 'and', 'the', 'slithy', 'toves', 'did', 'gyre', 'and', 'gimble', 'in', 'the', 'wabe', 'all', 'mimsy'] I have tried doing it using this code: def count_words(url): mylist = function(url) #the function function(url) reads through the url and returns all words from the website in a list of strings counts = 0 for i in mylist: if i not in mylist: counts = counts + 1 else: continue return counts from here I do not know what to do. I am getting an error for the line that says 'for i in mylist' and i dont know how to fix it. I am a beginner still so the very basic answers will do. I do not mind if i have to change me whole code. the only thing i can not change is the 'mylist = function(url)' line because that part works and we have to include it. Thanks in advance, Keely
python
null
null
null
null
04/10/2012 14:51:11
too localized
write a function that goes throught a list of strings and returns the int number of distinct words in the form of an int === i have to write a function count_words() that takes a list of strings and returns the int number of distinct words in that list in the form of an int. Say the list is: List = ['twas', 'brillig', 'and', 'the', 'slithy', 'toves', 'did', 'gyre', 'and', 'gimble', 'in', 'the', 'wabe', 'all', 'mimsy'] I have tried doing it using this code: def count_words(url): mylist = function(url) #the function function(url) reads through the url and returns all words from the website in a list of strings counts = 0 for i in mylist: if i not in mylist: counts = counts + 1 else: continue return counts from here I do not know what to do. I am getting an error for the line that says 'for i in mylist' and i dont know how to fix it. I am a beginner still so the very basic answers will do. I do not mind if i have to change me whole code. the only thing i can not change is the 'mylist = function(url)' line because that part works and we have to include it. Thanks in advance, Keely
3
1,161,938
07/21/2009 21:46:38
95,245
04/23/2009 23:49:55
59
8
domain inheritance to relational db - looking for a working db model
The focus of this question is primarily to develop a relational db scheme given the object model here. This part of the system is concerned with time based allocations made by Resources (different flavors of Employees & Contractors) to Activities (either a Project or an Account). Data entry is weekly, and the domain model must validate the weekly entries (~ 5 per resource with 200 resources) before letting them be persisted. Queries from the db must support approval / analysis of Allocations both by activity(ies) and resource(s). I am already using NHib (& FNH) in simpler parts of the system, so ancillary to my primary focus is to flesh out other concessions the domain model must make for the sake of persistence with these tools. For example: 1) properties that would otherwise not be virtual are virtual 2) id generation (Entity as a base class is automapped to generate an ID (int) Here are domain classes of interest, which are tested for presentation purposes: public class Allocation : Entity { public virtual ResourceBase Resource { get; private set; } public virtual ActivityBase Activity { get; private set; } public virtual TimeQuantity TimeSpent { get private set; } } public abstract class AllocatableBase : Entity { protected readonly IDictionary<DateTime, Allocation> _allocations = new SortedList<DateTime, Allocation>(); public virtual IEnumerable<Allocation> Allocations { get { return _allocations.Values; } } } public abstract class ResourceBase : AllocatableBase { public virtual string Name { get; protected set; } public virtual string BusinessId { get; protected set; } public virtual string OrganizationName { get; protected set; } } // example of a concrete ResourceBase public sealed class StaffMemberResource : ResourceBase { public StaffMember StaffMember { get; private set; } public StaffMemberResource(StaffMember staffMember) { Check.RequireNotNull<StaffMember>(staffMember); UniqueId = GetType().Name + " " + staffMember.Number; // bad smell here Name = staffMember.Name.ToString(); BusinessId = staffMember.Number; OrganizationName = staffMember.Department.Name; StaffMember = staffMember; } } public abstract class ActivityBase : AllocatableBase { public virtual void ClockIn(DateTime eventDate, ResourceBase resource, TimeQuantity timeSpent) { ... add to the set of allocations if valid } public virtual string Description { get; protected set; } public virtual string BusinessId { get; protected set; } } // example of a concrete ActivityBase public sealed class ProjectActivity : ActivityBase { public Project Project { get; private set; } public ProjectActivity(Project project) { Check.RequireNotNull<Project>(project); Description = project.Description; BusinessId = project.Code.ToString(); UniqueId = GetType().Name + " " + BusinessId; Project = project; } } Here is the initial db structure I'm throwing out, looking for feedback here: table Allocations ( AllocationID INT IDENTITY NOT NULL, StartTime DATETIME NOT NULL, EndTime DATETIME NOT NULL, primary key (AllocationID) foreign key (ActivityID) foreign key (ResourceID) ) table Activities ( ActivityID INT IDENTITY NOT NULL, primary key (ActivityID) ActivityType NVARCHAR(50) NOT NULL, foreign key (WrappedActivityID) // for lack of a better name right now ) table Projects ( // example of a WrappedActivity ProjectID INT IDENTITY NOT NULL, Prefix NVARCHAR(50) null, Midfix NVARCHAR(50) null, Sequence NVARCHAR(50) null, Description NVARCHAR(50) null, primary key (ProjectID) ) table Resources ( ResourceID INT IDENTITY NOT NULL, primary key (ResourceID) ResourceType NVARCHAR(50) NOT NULL, foreign key (WrappedResourceID) ) table FullTimeStaffMembers ( // example of a WrappedResource StaffMemberID INT IDENTITY NOT NULL, Number NVARCHAR(50) not null unique, FirstName NVARCHAR(50) not null, LastName NVARCHAR(50) not null, DepartmentID INT not null, primary key (StaffMemberID) ) I'm not shooting for a specific inheritance mapping scheme just yet (ie, table per class, etc) as much as looking to get a starting db model that works (even if not optimally performance wise). I'm already painfully aware that db skills make my programming skills look awesome by comparison, so all constructive feedback & questions welcome! Cheers, Berryl
data-modeling
nhibernate-mapping
fluent-nhibernate
database-design
null
null
open
domain inheritance to relational db - looking for a working db model === The focus of this question is primarily to develop a relational db scheme given the object model here. This part of the system is concerned with time based allocations made by Resources (different flavors of Employees & Contractors) to Activities (either a Project or an Account). Data entry is weekly, and the domain model must validate the weekly entries (~ 5 per resource with 200 resources) before letting them be persisted. Queries from the db must support approval / analysis of Allocations both by activity(ies) and resource(s). I am already using NHib (& FNH) in simpler parts of the system, so ancillary to my primary focus is to flesh out other concessions the domain model must make for the sake of persistence with these tools. For example: 1) properties that would otherwise not be virtual are virtual 2) id generation (Entity as a base class is automapped to generate an ID (int) Here are domain classes of interest, which are tested for presentation purposes: public class Allocation : Entity { public virtual ResourceBase Resource { get; private set; } public virtual ActivityBase Activity { get; private set; } public virtual TimeQuantity TimeSpent { get private set; } } public abstract class AllocatableBase : Entity { protected readonly IDictionary<DateTime, Allocation> _allocations = new SortedList<DateTime, Allocation>(); public virtual IEnumerable<Allocation> Allocations { get { return _allocations.Values; } } } public abstract class ResourceBase : AllocatableBase { public virtual string Name { get; protected set; } public virtual string BusinessId { get; protected set; } public virtual string OrganizationName { get; protected set; } } // example of a concrete ResourceBase public sealed class StaffMemberResource : ResourceBase { public StaffMember StaffMember { get; private set; } public StaffMemberResource(StaffMember staffMember) { Check.RequireNotNull<StaffMember>(staffMember); UniqueId = GetType().Name + " " + staffMember.Number; // bad smell here Name = staffMember.Name.ToString(); BusinessId = staffMember.Number; OrganizationName = staffMember.Department.Name; StaffMember = staffMember; } } public abstract class ActivityBase : AllocatableBase { public virtual void ClockIn(DateTime eventDate, ResourceBase resource, TimeQuantity timeSpent) { ... add to the set of allocations if valid } public virtual string Description { get; protected set; } public virtual string BusinessId { get; protected set; } } // example of a concrete ActivityBase public sealed class ProjectActivity : ActivityBase { public Project Project { get; private set; } public ProjectActivity(Project project) { Check.RequireNotNull<Project>(project); Description = project.Description; BusinessId = project.Code.ToString(); UniqueId = GetType().Name + " " + BusinessId; Project = project; } } Here is the initial db structure I'm throwing out, looking for feedback here: table Allocations ( AllocationID INT IDENTITY NOT NULL, StartTime DATETIME NOT NULL, EndTime DATETIME NOT NULL, primary key (AllocationID) foreign key (ActivityID) foreign key (ResourceID) ) table Activities ( ActivityID INT IDENTITY NOT NULL, primary key (ActivityID) ActivityType NVARCHAR(50) NOT NULL, foreign key (WrappedActivityID) // for lack of a better name right now ) table Projects ( // example of a WrappedActivity ProjectID INT IDENTITY NOT NULL, Prefix NVARCHAR(50) null, Midfix NVARCHAR(50) null, Sequence NVARCHAR(50) null, Description NVARCHAR(50) null, primary key (ProjectID) ) table Resources ( ResourceID INT IDENTITY NOT NULL, primary key (ResourceID) ResourceType NVARCHAR(50) NOT NULL, foreign key (WrappedResourceID) ) table FullTimeStaffMembers ( // example of a WrappedResource StaffMemberID INT IDENTITY NOT NULL, Number NVARCHAR(50) not null unique, FirstName NVARCHAR(50) not null, LastName NVARCHAR(50) not null, DepartmentID INT not null, primary key (StaffMemberID) ) I'm not shooting for a specific inheritance mapping scheme just yet (ie, table per class, etc) as much as looking to get a starting db model that works (even if not optimally performance wise). I'm already painfully aware that db skills make my programming skills look awesome by comparison, so all constructive feedback & questions welcome! Cheers, Berryl
0
6,705,639
07/15/2011 10:25:34
846,248
07/15/2011 10:25:34
1
0
Better Database Design??
I am working on a website that will mark the attendance of all the students. Supposing that a course has 8 semesters,5 branches of study,and 6 subjects each per branch/sem. I am looking for a better database design. What i thought was a table for each subject having columns ranging from 1 to 6(a semester is of 6 months.) And then i can update attendance at end of each month. But that means nearly 8*6*5=240 tables!! Did a bit of googling and found some related topics including enums and lookup tables. Aint there any way by which like in C++ I can make a array of 30 days and marks attendance daywise and link that array to a column in the table?? I am using MySQL and coding is being done in PHP.
php
mysql
sql
database
design
07/16/2011 07:26:53
not a real question
Better Database Design?? === I am working on a website that will mark the attendance of all the students. Supposing that a course has 8 semesters,5 branches of study,and 6 subjects each per branch/sem. I am looking for a better database design. What i thought was a table for each subject having columns ranging from 1 to 6(a semester is of 6 months.) And then i can update attendance at end of each month. But that means nearly 8*6*5=240 tables!! Did a bit of googling and found some related topics including enums and lookup tables. Aint there any way by which like in C++ I can make a array of 30 days and marks attendance daywise and link that array to a column in the table?? I am using MySQL and coding is being done in PHP.
1
8,157,209
11/16/2011 19:05:56
1,050,348
11/16/2011 19:03:29
1
0
Matrix multiplication MatLab?
I am very confused by this problem, as it seems very vague for me. Not sure where to even start, the problem is this: Compute the movement of force around the pivot point for a lever. You'll need to use trigonometry to determine the x and y components of both the position vector and the force vector. Recall that the moment force can be calculated as the cross product: Mo = r * F . A force of 200lbf is applied vertically at a position 20 feet along the lever. The lever is positioned at an angle of 60 degrees from the horizontal. I understand matrix multiplication but I am not sure what this problem is having me find for the r value in the equation. Also is it asking for different angles around the pivot point and where am I getting the values for the position vector and force vector?
matlab
null
null
null
null
11/16/2011 20:36:37
off topic
Matrix multiplication MatLab? === I am very confused by this problem, as it seems very vague for me. Not sure where to even start, the problem is this: Compute the movement of force around the pivot point for a lever. You'll need to use trigonometry to determine the x and y components of both the position vector and the force vector. Recall that the moment force can be calculated as the cross product: Mo = r * F . A force of 200lbf is applied vertically at a position 20 feet along the lever. The lever is positioned at an angle of 60 degrees from the horizontal. I understand matrix multiplication but I am not sure what this problem is having me find for the r value in the equation. Also is it asking for different angles around the pivot point and where am I getting the values for the position vector and force vector?
2
7,185,511
08/25/2011 05:24:41
829,188
07/05/2011 07:27:53
8
0
creating A simple Reminder Application in Android
I want to build up a small Android application that can remind us of any event/Task we mark on it. It can be like reminding us about a meeting, time to pay any bill etc. The app can take from the user the event name, date and time of the event. Store the details to the database and alert the user 10 min before the event. I am new in android development.Please give me some idea to create this application.
android
null
null
null
null
08/25/2011 11:32:25
not a real question
creating A simple Reminder Application in Android === I want to build up a small Android application that can remind us of any event/Task we mark on it. It can be like reminding us about a meeting, time to pay any bill etc. The app can take from the user the event name, date and time of the event. Store the details to the database and alert the user 10 min before the event. I am new in android development.Please give me some idea to create this application.
1
8,373,432
12/04/2011 05:09:44
648,170
03/07/2011 12:50:47
73
0
Overwriting the virtual directory with web installer
I have created a web installer for my web application.On production environment i have installed the application using web installer by giving the virtual directory name say "XYZ".After a week i get an updated build ,So I have cretaed the the latest installer with this build.Again I run the web installer to install the web application by giving the same virtual directory name("XYZ") but it is not overriting the virtual directory with the changes. Please suggest.
c#
installer
null
null
null
null
open
Overwriting the virtual directory with web installer === I have created a web installer for my web application.On production environment i have installed the application using web installer by giving the virtual directory name say "XYZ".After a week i get an updated build ,So I have cretaed the the latest installer with this build.Again I run the web installer to install the web application by giving the same virtual directory name("XYZ") but it is not overriting the virtual directory with the changes. Please suggest.
0
4,283,729
11/26/2010 08:47:13
521,139
11/26/2010 08:47:13
1
0
Cannot use object of type ConfigClass
When I try to log on to [www.notthenation.com][1] I get the following error message: Fatal error: Cannot use object of type ConfigClass as array in /home/content/p/e/r/percyalberts/html/includes/system.class.php(40) : eval()'d code on line 9 Are you able to tell me whether this is an internal problem of the notthenation people or whether this site has been blocked by the government? Thank you. Sam Deedes. [email protected] [1]: http://www.notthenation.com
php
null
null
null
null
11/26/2010 09:50:16
off topic
Cannot use object of type ConfigClass === When I try to log on to [www.notthenation.com][1] I get the following error message: Fatal error: Cannot use object of type ConfigClass as array in /home/content/p/e/r/percyalberts/html/includes/system.class.php(40) : eval()'d code on line 9 Are you able to tell me whether this is an internal problem of the notthenation people or whether this site has been blocked by the government? Thank you. Sam Deedes. [email protected] [1]: http://www.notthenation.com
2
7,464,969
09/18/2011 22:46:20
938,693
09/10/2011 23:46:06
31
0
Me beginner, java question?
Hey i was trying to make a calculator. It says to make my answer initially equal to zero but when i do it the answer becomes zero no matter what. import java.util.Scanner; public class Calculator { public static void main(String args []){ Scanner numbers = new Scanner(System.in); double fnum, snum, answer; String operation; System.out.println("Enter the first number");//fist number fnum = numbers.nextDouble(); System.out.println("Enter the second number");//second number snum = numbers.nextDouble(); System.out.println("Enter the operation");//operation operation = numbers.nextLine(); if (operation.equals("+")){ answer = fnum+snum; }else{ if (operation.equals("-")){ answer = fnum - snum; } } if (operation.equals("*")){ answer = fnum *snum; }else{ if (operation.equals("/")){ answer = fnum / snum; } } if (operation.equals("^")){ answer = (Math.pow(fnum, snum)); } System.out.println(answer); } }
java
null
null
null
null
09/18/2011 22:49:37
not a real question
Me beginner, java question? === Hey i was trying to make a calculator. It says to make my answer initially equal to zero but when i do it the answer becomes zero no matter what. import java.util.Scanner; public class Calculator { public static void main(String args []){ Scanner numbers = new Scanner(System.in); double fnum, snum, answer; String operation; System.out.println("Enter the first number");//fist number fnum = numbers.nextDouble(); System.out.println("Enter the second number");//second number snum = numbers.nextDouble(); System.out.println("Enter the operation");//operation operation = numbers.nextLine(); if (operation.equals("+")){ answer = fnum+snum; }else{ if (operation.equals("-")){ answer = fnum - snum; } } if (operation.equals("*")){ answer = fnum *snum; }else{ if (operation.equals("/")){ answer = fnum / snum; } } if (operation.equals("^")){ answer = (Math.pow(fnum, snum)); } System.out.println(answer); } }
1
1,667,377
11/03/2009 13:37:23
201,700
11/03/2009 13:37:23
1
0
Please Recommend a HTML Prototype Builder
I know some tools that can create wireframe for web site, but their output format is not HTML. I like HTML prototype since it can be interactive (via Javascript or VBScript) and I can share it on my web site too. Any suggestions?
wireframe
prototype
html
null
null
06/11/2012 06:37:58
not constructive
Please Recommend a HTML Prototype Builder === I know some tools that can create wireframe for web site, but their output format is not HTML. I like HTML prototype since it can be interactive (via Javascript or VBScript) and I can share it on my web site too. Any suggestions?
4
7,065,320
08/15/2011 13:12:02
123,348
06/15/2009 20:46:01
526
10
How to populate VB.NET multidimensional dropdownlist
I am trying to initialize a dropdownlist in VB.NET but my dropdownlist is not populating any values. I want the DataTextField to be different from DataValues in the dropdownlist. Dropdownlist should display series of strings; DataValues should only be numbers. How can I implement this? Here is my code excerpt right now: Dim ProductList As New ArrayList() Dim ProdCodeSearch As String Dim InstrumentSearch As String pcSQL = " select distinct instrument_name AS [instrument_name], product_code AS [product_code] from FRUD.tblXref order by instrument_name " Dim DBConn As SqlConnection DBConn = New SqlConnection(ConfigurationManager.AppSettings("AMDMetricsDevConnectionString")) DBConn.Open() Dim reader As SqlDataReader Dim DBCommand As New SqlCommand(pcSQL, DBConn) reader = DBCommand.ExecuteReader() While reader.Read() End While dProdCodeSearch.Items.Add(reader(0)) dProdCodeSearch.DataTextField = "instrument_name" dProdCodeSearch.DataValueField = "product_code" dProdCodeSearch.DataBind() reader.Close()
vb.net
drop-down-menu
executereader
null
null
null
open
How to populate VB.NET multidimensional dropdownlist === I am trying to initialize a dropdownlist in VB.NET but my dropdownlist is not populating any values. I want the DataTextField to be different from DataValues in the dropdownlist. Dropdownlist should display series of strings; DataValues should only be numbers. How can I implement this? Here is my code excerpt right now: Dim ProductList As New ArrayList() Dim ProdCodeSearch As String Dim InstrumentSearch As String pcSQL = " select distinct instrument_name AS [instrument_name], product_code AS [product_code] from FRUD.tblXref order by instrument_name " Dim DBConn As SqlConnection DBConn = New SqlConnection(ConfigurationManager.AppSettings("AMDMetricsDevConnectionString")) DBConn.Open() Dim reader As SqlDataReader Dim DBCommand As New SqlCommand(pcSQL, DBConn) reader = DBCommand.ExecuteReader() While reader.Read() End While dProdCodeSearch.Items.Add(reader(0)) dProdCodeSearch.DataTextField = "instrument_name" dProdCodeSearch.DataValueField = "product_code" dProdCodeSearch.DataBind() reader.Close()
0
1,951,558
12/23/2009 09:11:51
6,583
09/15/2008 12:18:30
3,751
98
List of Java Swing UI properties?
There seem to be a ton of UI properties that can be set with UIManager.put("key", value); Is there a list somewhere of all keys that can be set?
java
uimanager
user-interface
documentation
null
null
open
List of Java Swing UI properties? === There seem to be a ton of UI properties that can be set with UIManager.put("key", value); Is there a list somewhere of all keys that can be set?
0
7,312,930
09/05/2011 21:33:49
509,627
11/16/2010 14:33:02
776
144
What are good questions to ask a sales engineer candidate?
What are good interview questions to ask a candidate for a sales engineer position? We're an enterprise software company and the candidate we hire needs to be able to (and I think this holds for any company hiring to this position): 1. Give clear answers to customer questions. 2. Focus on how we address the customer needs, not list out features. 3. Sound enthusiastic when talking/demonstrating. 4. When demonstrating a feature, explain why it is of value to the customer. 5. Care a great deal about providing quality support to customers. So, any suggested questions, things to watch for, etc? (Even though a sales engineer is a programmer, what we need is quite different because programming skills can be average but communication skills are very important.)
interview-questions
null
null
null
null
09/05/2011 21:39:30
off topic
What are good questions to ask a sales engineer candidate? === What are good interview questions to ask a candidate for a sales engineer position? We're an enterprise software company and the candidate we hire needs to be able to (and I think this holds for any company hiring to this position): 1. Give clear answers to customer questions. 2. Focus on how we address the customer needs, not list out features. 3. Sound enthusiastic when talking/demonstrating. 4. When demonstrating a feature, explain why it is of value to the customer. 5. Care a great deal about providing quality support to customers. So, any suggested questions, things to watch for, etc? (Even though a sales engineer is a programmer, what we need is quite different because programming skills can be average but communication skills are very important.)
2
10,064,394
04/08/2012 16:31:34
403,840
07/27/2010 20:22:14
75
6
In Vim, can we complete LaTeX in line equation with ctrl-n / ctrl-p?
That's Vim gives us a list of matched "$ someMathsSymbles $" when we press Ctrl-n after typing just "$" or "$ withMoreMaths",
vim
autocomplete
latex
null
null
null
open
In Vim, can we complete LaTeX in line equation with ctrl-n / ctrl-p? === That's Vim gives us a list of matched "$ someMathsSymbles $" when we press Ctrl-n after typing just "$" or "$ withMoreMaths",
0
7,044,879
08/12/2011 18:46:21
892,316
08/12/2011 18:46:21
1
0
convert from String to List<String> and pass to method in one line
It may be a little unnecessary, but I am looking for a way in C# to convert a String to a List< String > and pass it to a function all in one shot. Let's say I have a function that takes a list of Strings and spits them out to the console. public static void PrintStrings( List<String> messages ) { foreach ( String message in messages ) { Console.WriteLine( message ); } //Do other things } Now assume there is a case where I want to have only one String passed into the function. This is my question: How can I call this method passing only one String without putting it into a list beforehand? I thought this would have worked: PrintStrings( Convert.ToString( "mymessage" ).ToList() ); But it is flagged in Visual Studio as 'The best overloaded match for 'PrintStrings' has some invalid arguments. Any suggestions would be great!
c#
string
null
null
null
null
open
convert from String to List<String> and pass to method in one line === It may be a little unnecessary, but I am looking for a way in C# to convert a String to a List< String > and pass it to a function all in one shot. Let's say I have a function that takes a list of Strings and spits them out to the console. public static void PrintStrings( List<String> messages ) { foreach ( String message in messages ) { Console.WriteLine( message ); } //Do other things } Now assume there is a case where I want to have only one String passed into the function. This is my question: How can I call this method passing only one String without putting it into a list beforehand? I thought this would have worked: PrintStrings( Convert.ToString( "mymessage" ).ToList() ); But it is flagged in Visual Studio as 'The best overloaded match for 'PrintStrings' has some invalid arguments. Any suggestions would be great!
0
8,683,550
12/30/2011 20:06:29
1,121,076
12/29/2011 11:45:54
15
0
Using concatenated results individually
I got a complicated query which produces a concatenated result. However, although GROUP_CONCAT is necessary for other purposes, I still need to be able to use the pieces of the concatenated string individually. GROUP_CONCAT(id, name, date SEPARATOR '<br /> ') as concat1 echo $db_field['concat1']; ...produces this output: IdNameDate, and I need to be able to use (and echo) Id, Name and Date separately. I guess it must be assigned to an array, I'm a begginer in PHP and I really appreciate any help.
arrays
group-concat
null
null
null
null
open
Using concatenated results individually === I got a complicated query which produces a concatenated result. However, although GROUP_CONCAT is necessary for other purposes, I still need to be able to use the pieces of the concatenated string individually. GROUP_CONCAT(id, name, date SEPARATOR '<br /> ') as concat1 echo $db_field['concat1']; ...produces this output: IdNameDate, and I need to be able to use (and echo) Id, Name and Date separately. I guess it must be assigned to an array, I'm a begginer in PHP and I really appreciate any help.
0
5,062,684
02/21/2011 05:33:24
625,992
02/21/2011 04:33:54
6
0
A Jquery rotator that doesn't suck?
I've been looking all over the place for a simple jquery rotator that has next/prev buttons, that will automatically fade through 5 or so images... so far everything is over complicated and not at all what I want or its so simple that it doesn't have any functionality other than switching between images... so basically I'm asking if anyone knows of a Jquery image rotator that doesn't completely suck... lol btw these are the things I would want it to do 1. rotate through images automatically 2. fade 3. have next and prev buttons thanks
jquery
rotator
null
null
null
03/01/2012 06:18:13
not constructive
A Jquery rotator that doesn't suck? === I've been looking all over the place for a simple jquery rotator that has next/prev buttons, that will automatically fade through 5 or so images... so far everything is over complicated and not at all what I want or its so simple that it doesn't have any functionality other than switching between images... so basically I'm asking if anyone knows of a Jquery image rotator that doesn't completely suck... lol btw these are the things I would want it to do 1. rotate through images automatically 2. fade 3. have next and prev buttons thanks
4
7,751,769
10/13/2011 09:06:34
814,103
06/24/2011 12:59:25
17
0
Service using too much memory in android resulting Force stopping
In my application,from a Service, i am entering data into database and collecting those datas in some Bean class object in a repeated time interval using a Timer. I am using that instance in my Activity to get the data. The system worked fine first. But the service keeps on consuming more memory. At some point it reached almost 30 MB. Eventually service is closed by the ActivityManager and statement issued is:**Force stopping service ServiceRecord** .Why service consumes so much memory,but the Application ran in just 100KB or so. I have used the MAT in eclipse, but it does not give a clear picture which is consuming so much memory.
android
android-service
eclipse-memory-analyzer
null
null
null
open
Service using too much memory in android resulting Force stopping === In my application,from a Service, i am entering data into database and collecting those datas in some Bean class object in a repeated time interval using a Timer. I am using that instance in my Activity to get the data. The system worked fine first. But the service keeps on consuming more memory. At some point it reached almost 30 MB. Eventually service is closed by the ActivityManager and statement issued is:**Force stopping service ServiceRecord** .Why service consumes so much memory,but the Application ran in just 100KB or so. I have used the MAT in eclipse, but it does not give a clear picture which is consuming so much memory.
0
7,025,229
08/11/2011 11:43:52
530,591
12/04/2010 17:16:08
113
0
Free Java IDE with the best Maven integration
What is free Java IDE with the best Maven (esp. Maven 3) integration?
java
ide
maven-3
null
null
08/11/2011 14:01:16
off topic
Free Java IDE with the best Maven integration === What is free Java IDE with the best Maven (esp. Maven 3) integration?
2
7,377,661
09/11/2011 10:39:36
939,059
09/11/2011 10:18:26
1
0
Self ordering voting system
Im in need of javascript based code that can help my voting system. basically I am struggling to work out how to get my items that receive votes to move into order by its self LIVE. So If an item had 52 votes and the item below gained 2 votes to make 54 I would like it to swap places with the 1 above. HELP ME PLEASE! :(
javascript
voting
vote
voting-system
null
09/11/2011 11:50:51
not a real question
Self ordering voting system === Im in need of javascript based code that can help my voting system. basically I am struggling to work out how to get my items that receive votes to move into order by its self LIVE. So If an item had 52 votes and the item below gained 2 votes to make 54 I would like it to swap places with the 1 above. HELP ME PLEASE! :(
1
5,920,536
05/07/2011 10:42:37
739,419
05/05/2011 07:36:28
1
0
Unable to parse special character in NSXMLparser
i am unable to parse the special characters in NSXMLParser, i have list of cities which is like this. **Aranđelovac** in the parsing result comes like this. 'Aran' and 'delovac' NSXMLParser split the word from special character. any help would be highly appreciated.
iphone
sdk
nsxmlparser
null
null
null
open
Unable to parse special character in NSXMLparser === i am unable to parse the special characters in NSXMLParser, i have list of cities which is like this. **Aranđelovac** in the parsing result comes like this. 'Aran' and 'delovac' NSXMLParser split the word from special character. any help would be highly appreciated.
0
6,568,927
07/04/2011 08:15:57
805,709
06/19/2011 20:23:03
1
0
What is the best server-side programming language for large scale web applications?
I have a large web application idea that I would like to work on, which will require secure database interactions, file creation and editing abilities, speed, and output html. It needs to be able to run on a webhost, not a self-run server. What would be the best programming language to use to create it? I am not looking for 'easiest', I am looking for the most useful for the type of web application I wish to develop.
application
language
scale
large
null
07/04/2011 10:34:58
not constructive
What is the best server-side programming language for large scale web applications? === I have a large web application idea that I would like to work on, which will require secure database interactions, file creation and editing abilities, speed, and output html. It needs to be able to run on a webhost, not a self-run server. What would be the best programming language to use to create it? I am not looking for 'easiest', I am looking for the most useful for the type of web application I wish to develop.
4
170,442
10/04/2008 14:39:10
24,975
10/03/2008 20:02:48
73
8
Anyone implemented Endeca with .NET? Would you recommend Endeca or FAST?
Which search engine would you recommend for a Commerce website? We have millions of products in a catalog and we want it to be as quick as possible. We would also want to make sure that the marketing driven through the search engine will be fast and effective. What are your opinions?
endeca
performance
searchengine
null
null
null
open
Anyone implemented Endeca with .NET? Would you recommend Endeca or FAST? === Which search engine would you recommend for a Commerce website? We have millions of products in a catalog and we want it to be as quick as possible. We would also want to make sure that the marketing driven through the search engine will be fast and effective. What are your opinions?
0
8,323,867
11/30/2011 09:43:32
1,073,041
11/30/2011 09:38:41
1
0
How to generate the dll from the perl file?
I have one .pl file(perl file) I need to generate the .dll for that perl file,I don't know how to generate can any one help me ?
perl
dll
script
null
null
12/01/2011 02:59:22
not a real question
How to generate the dll from the perl file? === I have one .pl file(perl file) I need to generate the .dll for that perl file,I don't know how to generate can any one help me ?
1
486,471
01/28/2009 04:25:04
33,686
11/03/2008 15:59:37
3,104
124
How would you implement this digital logic in Verilog or VHDL?
I posted an <a href="http://stackoverflow.com/questions/480405/finding-the-next-in-round-robin-scheduling-by-bit-twiddling#486480">answer</a> to <a href="http://stackoverflow.com/questions/480405/finding-the-next-in-round-robin-scheduling-by-bit-twiddling">this stackoverflow question</a> which requires some digital logic to be implemented in Verilog or VHDL so that it can be programmed into an FPGA. <b>How would you implement the following logic diagram in Verilog, VHDL, or any other hardware description language?</b> The numbered boxes represent bits in a field. Each field has <i>K</i> bits, and the bits for <i>current</i> and <i>mask</i> will be provided by a computer system (using a latched register or equivalent). The bits in <i>next</i> will be read back into that same computer system. ![alt text][1] See also: <a href="http://stackoverflow.com/questions/486473/how-would-you-handle-a-special-case-in-this-digital-logic-system">this stackoverflow question</a> [1]: http://img145.imageshack.us/img145/5125/bitshifterlogicdiagramkn7.jpg
hardware
logic
implementation
verilog
vhdl
null
open
How would you implement this digital logic in Verilog or VHDL? === I posted an <a href="http://stackoverflow.com/questions/480405/finding-the-next-in-round-robin-scheduling-by-bit-twiddling#486480">answer</a> to <a href="http://stackoverflow.com/questions/480405/finding-the-next-in-round-robin-scheduling-by-bit-twiddling">this stackoverflow question</a> which requires some digital logic to be implemented in Verilog or VHDL so that it can be programmed into an FPGA. <b>How would you implement the following logic diagram in Verilog, VHDL, or any other hardware description language?</b> The numbered boxes represent bits in a field. Each field has <i>K</i> bits, and the bits for <i>current</i> and <i>mask</i> will be provided by a computer system (using a latched register or equivalent). The bits in <i>next</i> will be read back into that same computer system. ![alt text][1] See also: <a href="http://stackoverflow.com/questions/486473/how-would-you-handle-a-special-case-in-this-digital-logic-system">this stackoverflow question</a> [1]: http://img145.imageshack.us/img145/5125/bitshifterlogicdiagramkn7.jpg
0
4,999,319
02/15/2011 02:13:46
333,255
05/05/2010 09:27:33
8,666
388
Remove data from UIViewController when removing it from the Navigation Stack
I've built an order process application which has about 5-6 Views that capture data and save it to a database. Now once the order is complete, I'm using PopToRootViewController to return to the first View but I'd like the data on the other Views to disappear (basically start a new order). At the moment if I open the view again the data from the previous 'order' is still there... So how do I dispose of all the UIViewControllers once an order is complete? Cheers, M
c#
iphone
ios
monotouch
null
null
open
Remove data from UIViewController when removing it from the Navigation Stack === I've built an order process application which has about 5-6 Views that capture data and save it to a database. Now once the order is complete, I'm using PopToRootViewController to return to the first View but I'd like the data on the other Views to disappear (basically start a new order). At the moment if I open the view again the data from the previous 'order' is still there... So how do I dispose of all the UIViewControllers once an order is complete? Cheers, M
0
5,891,806
05/05/2011 01:47:38
604,065
02/05/2011 03:31:09
310
2
solve this Quadratic Equation in C++
y = Ax; x^2 + y^2 = B; Thank you.........
c++
null
null
null
null
05/05/2011 01:54:25
not a real question
solve this Quadratic Equation in C++ === y = Ax; x^2 + y^2 = B; Thank you.........
1
6,290,321
06/09/2011 08:55:42
783,701
06/04/2011 06:59:11
1
0
Named Pipes Provider, error: 40 - Could not open a connection to SQL Server 2008 in .net application
I am using .net application by sql server 2008 remote access. The error in application are "An error occurred while establishing a connection to server. When connecting to SQL Server 2008, this failure may caused by the fact that under the default settings SQL Server does not allow remote connections. (Provider:Named pipes Provider error:-40 - Could not open a connection to sql server.
vb.net
sql-server-2008
null
null
null
06/09/2011 12:38:42
not a real question
Named Pipes Provider, error: 40 - Could not open a connection to SQL Server 2008 in .net application === I am using .net application by sql server 2008 remote access. The error in application are "An error occurred while establishing a connection to server. When connecting to SQL Server 2008, this failure may caused by the fact that under the default settings SQL Server does not allow remote connections. (Provider:Named pipes Provider error:-40 - Could not open a connection to sql server.
1
11,095,737
06/19/2012 06:47:34
1,265,797
03/13/2012 06:40:32
1
0
Sorting NSTableView
I have two coloumn in NSTableView as Name and Salary with 5-10 values. I want to sort these coloumn after click on header of both the column. There is lots of data present in Internet but I am not able to use these. Please help me to do this in cocoa. Thanks in advance and appreciate any help.
cocoa
sorting
nstableview
null
null
null
open
Sorting NSTableView === I have two coloumn in NSTableView as Name and Salary with 5-10 values. I want to sort these coloumn after click on header of both the column. There is lots of data present in Internet but I am not able to use these. Please help me to do this in cocoa. Thanks in advance and appreciate any help.
0
9,132,323
02/03/2012 16:53:51
961,721
09/23/2011 18:08:53
28
0
Using facebook like button for a kind of sweepstake
Since we can not know who likes our webpages, I wonder how we can "track" people who like a specific page on our website because we are creating a kind of sweepstake, we want to reward people who share that specific page, that contains a video, on their facebook but we need to be able to contact them... Is it possible to do that with a fb app or open graph or a plugin or whatever? Thanks!
plugins
like
opengraph
null
null
02/08/2012 21:53:48
off topic
Using facebook like button for a kind of sweepstake === Since we can not know who likes our webpages, I wonder how we can "track" people who like a specific page on our website because we are creating a kind of sweepstake, we want to reward people who share that specific page, that contains a video, on their facebook but we need to be able to contact them... Is it possible to do that with a fb app or open graph or a plugin or whatever? Thanks!
2
10,031,235
04/05/2012 15:11:04
1,315,627
04/05/2012 14:58:46
1
0
deleterow() ReadOnly Statement error
i'm doing my first applications using JDBC/Oracle... Today i had a problem and i can't find out what's wrong. That's my code (some parts) **My global variables:** public class Esercizio02_GestioneDB { public Esercizio02_GestioneDB(){ } public Connection conn = null; public Statement s = null; public ResultSet rs = null; public ResultSet rs1 = null; ResultSetMetaData rsmd = null; ResultSetMetaData rsmd1 = null; [...] **My connection method:** public void connetti(String user, String pwd) throws ClassNotFoundException, SQLException { //DRIVER Class.forName("oracle.jdbc.driver.OracleDriver"); //URL String url = "jdbc:oracle:thin:@//localhost:1521/xe"; //CONNECTION conn = DriverManager.getConnection(url, user, pwd); //AUTOCOMMIT conn.setAutoCommit(true); //STATEMENT s = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); } **So, i have a method to delete a row in a table:** private void eliminaPrenotazione() { try { String message1 = "Scegli la prenotazione da cancellare:\n\n"; String query = "SELECT * FROM camere_prenotate"; rs1 = s.executeQuery(query); rsmd1 = rs1.getMetaData(); message1 += "INDICE "; for (int i=1; i<=rsmd1.getColumnCount(); i++) { message1 += rsmd1.getColumnName(i); message1 += " \t "; } message1 += "\n_______________________________\n"; int rowIndex = 1; String columnType = ""; while (rs1.next()) { message1 += "["+rowIndex+"]. "; rowIndex++; for (int i=1; i<=rsmd1.getColumnCount(); i++) { columnType = rsmd1.getColumnTypeName(i); if(columnType.substring(0, 3).equalsIgnoreCase("num")) message1 += rs1.getInt(i); if(columnType.substring(0, 3).equalsIgnoreCase("var") || columnType.substring(0, 3).equalsIgnoreCase("dat")) message1 += rs1.getString(i); message1 += " \t "; } message1 +="\n"; } message1 +="\n"; String scelta = JOptionPane.showInputDialog(null, message1); int sceltaInt = Integer.parseInt(scelta); rs1.absolute(sceltaInt); rs1.deleteRow(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Errore: " + e.getMessage()); } } deleteRow() returns me an error... it says me that my ResultSet is read only, but in my statement it's delcared as s = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); so, what's wrong? sry for the noobish code and the bad english -.-'''
java
oracle
jdbc
null
null
null
open
deleterow() ReadOnly Statement error === i'm doing my first applications using JDBC/Oracle... Today i had a problem and i can't find out what's wrong. That's my code (some parts) **My global variables:** public class Esercizio02_GestioneDB { public Esercizio02_GestioneDB(){ } public Connection conn = null; public Statement s = null; public ResultSet rs = null; public ResultSet rs1 = null; ResultSetMetaData rsmd = null; ResultSetMetaData rsmd1 = null; [...] **My connection method:** public void connetti(String user, String pwd) throws ClassNotFoundException, SQLException { //DRIVER Class.forName("oracle.jdbc.driver.OracleDriver"); //URL String url = "jdbc:oracle:thin:@//localhost:1521/xe"; //CONNECTION conn = DriverManager.getConnection(url, user, pwd); //AUTOCOMMIT conn.setAutoCommit(true); //STATEMENT s = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); } **So, i have a method to delete a row in a table:** private void eliminaPrenotazione() { try { String message1 = "Scegli la prenotazione da cancellare:\n\n"; String query = "SELECT * FROM camere_prenotate"; rs1 = s.executeQuery(query); rsmd1 = rs1.getMetaData(); message1 += "INDICE "; for (int i=1; i<=rsmd1.getColumnCount(); i++) { message1 += rsmd1.getColumnName(i); message1 += " \t "; } message1 += "\n_______________________________\n"; int rowIndex = 1; String columnType = ""; while (rs1.next()) { message1 += "["+rowIndex+"]. "; rowIndex++; for (int i=1; i<=rsmd1.getColumnCount(); i++) { columnType = rsmd1.getColumnTypeName(i); if(columnType.substring(0, 3).equalsIgnoreCase("num")) message1 += rs1.getInt(i); if(columnType.substring(0, 3).equalsIgnoreCase("var") || columnType.substring(0, 3).equalsIgnoreCase("dat")) message1 += rs1.getString(i); message1 += " \t "; } message1 +="\n"; } message1 +="\n"; String scelta = JOptionPane.showInputDialog(null, message1); int sceltaInt = Integer.parseInt(scelta); rs1.absolute(sceltaInt); rs1.deleteRow(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Errore: " + e.getMessage()); } } deleteRow() returns me an error... it says me that my ResultSet is read only, but in my statement it's delcared as s = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); so, what's wrong? sry for the noobish code and the bad english -.-'''
0
139,384
09/26/2008 13:06:54
7,532
09/15/2008 13:55:10
81
5
Recommend an Open Source .NET Statistics Library
I need to calculate averages, standard deviations, medians etc for a bunch of numerical data. Is there a good open source .NET library I can use? I have found NMath but it is not free and may be overkill for my needs.
.net
open-source
math
statistics
null
02/12/2012 15:47:53
not constructive
Recommend an Open Source .NET Statistics Library === I need to calculate averages, standard deviations, medians etc for a bunch of numerical data. Is there a good open source .NET library I can use? I have found NMath but it is not free and may be overkill for my needs.
4
953,869
06/05/2009 01:21:43
110,161
05/20/2009 19:54:39
205
8
Is the return worth the investment in learning Fortran?
At my current place of employment there are a handful of maybe two to three employees that add and maintain functionality of legacy fortran77 code. When I was first hired I briefly considered trying to become fluent in the ancient language, soon after I changed my mind. This conclusion came from a combination of reasons; initially I admit the steep learning curve pushed me away. But even after I began to develop a trivial understanding of the language I found that I never had any useful ‘projects’ I could contribute. Which lead me to the realization, what good would Fortran77 be on my application if I were job searching again? It occurred to me that, unless I was interested in maintaining legacy code that some unknown long since retired employee had written thirty+ years ago, I should spend my time learning a newer, more utilized, language. [Google trends][1] makes an interesting graph, to my point, when given Fortran. Also interesting to note is that the combined sum of Fortran tagged questions on stackoverflow is less than 100 at the time of this post. So what new projects and applications are suitable for a groundwork built in Fortran? Is there a large need for Fortran engineers to develop new products, or mostly to maintain old code? Has anybody heard of any recent application development surrounding Fortran? Ultimately, is the return worth the investment in learning Fortran for a new engineer these days? [1]: http://www.google.com/trends?q=Fortran&ctab=0&geo=us&geor=all&date=all&sort=0
fortran
programming-languages
null
null
null
02/22/2012 15:09:26
not constructive
Is the return worth the investment in learning Fortran? === At my current place of employment there are a handful of maybe two to three employees that add and maintain functionality of legacy fortran77 code. When I was first hired I briefly considered trying to become fluent in the ancient language, soon after I changed my mind. This conclusion came from a combination of reasons; initially I admit the steep learning curve pushed me away. But even after I began to develop a trivial understanding of the language I found that I never had any useful ‘projects’ I could contribute. Which lead me to the realization, what good would Fortran77 be on my application if I were job searching again? It occurred to me that, unless I was interested in maintaining legacy code that some unknown long since retired employee had written thirty+ years ago, I should spend my time learning a newer, more utilized, language. [Google trends][1] makes an interesting graph, to my point, when given Fortran. Also interesting to note is that the combined sum of Fortran tagged questions on stackoverflow is less than 100 at the time of this post. So what new projects and applications are suitable for a groundwork built in Fortran? Is there a large need for Fortran engineers to develop new products, or mostly to maintain old code? Has anybody heard of any recent application development surrounding Fortran? Ultimately, is the return worth the investment in learning Fortran for a new engineer these days? [1]: http://www.google.com/trends?q=Fortran&ctab=0&geo=us&geor=all&date=all&sort=0
4
4,904,994
02/05/2011 03:43:39
604,069
02/05/2011 03:41:12
1
0
what is performance difference between the ++i and i++ ??
<br> If we use the following loops,what will be the change in performance ? which one is better ? <br><br><br> <b> 1. for(long i=0;i<50000;++i)<br> 2. for(long i=0;i<50000;i++) </b><br><br><br> what will be the performance difference between them in Java, C#, JavaScript..etc.. In C/C++, will there be the difference in performance ??
post
increment
pre
null
null
02/05/2011 03:49:40
not a real question
what is performance difference between the ++i and i++ ?? === <br> If we use the following loops,what will be the change in performance ? which one is better ? <br><br><br> <b> 1. for(long i=0;i<50000;++i)<br> 2. for(long i=0;i<50000;i++) </b><br><br><br> what will be the performance difference between them in Java, C#, JavaScript..etc.. In C/C++, will there be the difference in performance ??
1
5,563,625
04/06/2011 08:41:05
302,341
03/26/2010 07:29:43
535
44
PHP - CSV to MySQL to frontend, and back to CSV, best encoding / string function practices?
I have a scenario where CSV files are being used to maintain data (products) in a MySQL database. Basically the steps that the client follows to maintain products is as follows: * Adds items to the CSV file in predefined columns * Uploads the CSV in backend * PHP script iterates over CSV data * Data is validated / cleaned and sent to MySQL database Same applies in reverse when the client edits, adds or removes items, however this can also be done straight from the backend. I have had issues with certain characters not showing properly in the database or in the downloaded spreadsheet, so my question is: Generally, what is a good set of encoding or string functions to apply to the data when adding and retrieving it in the form of a CSV file? My MySQL connection encoding is UTF-8, however I have tried saving the CSV file with a UTF-8 character set, but it seems Excel automatically applies the default Windows-1252 encoding to it, breaking all ym UTF-8 characters. Applications like Open Office.org prompt you for the import character set, and whe set to Unicode UTF-8 it displays fine. Obviously one cannot rely on the client always using Excel or Open Office, so what is a good solution for PC / CSV > MySQL > back to PC / CSV work? All suggestions welcomed and appreciated. Simon
php
mysql
character-encoding
fgetcsv
null
null
open
PHP - CSV to MySQL to frontend, and back to CSV, best encoding / string function practices? === I have a scenario where CSV files are being used to maintain data (products) in a MySQL database. Basically the steps that the client follows to maintain products is as follows: * Adds items to the CSV file in predefined columns * Uploads the CSV in backend * PHP script iterates over CSV data * Data is validated / cleaned and sent to MySQL database Same applies in reverse when the client edits, adds or removes items, however this can also be done straight from the backend. I have had issues with certain characters not showing properly in the database or in the downloaded spreadsheet, so my question is: Generally, what is a good set of encoding or string functions to apply to the data when adding and retrieving it in the form of a CSV file? My MySQL connection encoding is UTF-8, however I have tried saving the CSV file with a UTF-8 character set, but it seems Excel automatically applies the default Windows-1252 encoding to it, breaking all ym UTF-8 characters. Applications like Open Office.org prompt you for the import character set, and whe set to Unicode UTF-8 it displays fine. Obviously one cannot rely on the client always using Excel or Open Office, so what is a good solution for PC / CSV > MySQL > back to PC / CSV work? All suggestions welcomed and appreciated. Simon
0
8,887,059
01/16/2012 22:16:44
1,149,549
01/14/2012 17:36:39
11
0
Copy constructor default case
I am going through the file [Intro To Object Oriented ][1] [1]: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-096-introduction-to-c-january-iap-2011/lecture-notes/MIT6_096IAP11_lec06.pdf I am not able to understand the use of default copy constructor Please explain in simple words If possible I mean the real use of the default copy constructor Because the task it is doing can be done otherwise easily
c++
constructor
default
copy-constructor
null
01/18/2012 03:06:20
not a real question
Copy constructor default case === I am going through the file [Intro To Object Oriented ][1] [1]: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-096-introduction-to-c-january-iap-2011/lecture-notes/MIT6_096IAP11_lec06.pdf I am not able to understand the use of default copy constructor Please explain in simple words If possible I mean the real use of the default copy constructor Because the task it is doing can be done otherwise easily
1
1,547,697
10/10/2009 11:19:12
153,995
08/10/2009 21:46:48
151
19
'in' and 'not in' counts do not add up - what's wrong?
I have some servers. Some of them have ips assigned. I want to figure out how many do not. There are clearly more servers than have ips assigned, but my db tells me there are no servers that have no ips assigned... I'm at my wit's end here. Is my DB corrupted in some strange way? mysql> select count(*) from server; +----------+ | count(*) | +----------+ | 23088 | +----------+ 1 row in set (0.00 sec) mysql> select count(*) from server where server_id in (select distinct(server_id) from ips); +----------+ | count(*) | +----------+ | 13811 | +----------+ 1 row in set (0.01 sec) mysql> select count(*) from server where server_id not in (select distinct(server_id) from ips); +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0.02 sec) results have been edited to protect the guilty, but you get the idea. all tables are InnoDB. `Check table` returns ok on both of these tables.
mysql
sql
null
null
null
null
open
'in' and 'not in' counts do not add up - what's wrong? === I have some servers. Some of them have ips assigned. I want to figure out how many do not. There are clearly more servers than have ips assigned, but my db tells me there are no servers that have no ips assigned... I'm at my wit's end here. Is my DB corrupted in some strange way? mysql> select count(*) from server; +----------+ | count(*) | +----------+ | 23088 | +----------+ 1 row in set (0.00 sec) mysql> select count(*) from server where server_id in (select distinct(server_id) from ips); +----------+ | count(*) | +----------+ | 13811 | +----------+ 1 row in set (0.01 sec) mysql> select count(*) from server where server_id not in (select distinct(server_id) from ips); +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0.02 sec) results have been edited to protect the guilty, but you get the idea. all tables are InnoDB. `Check table` returns ok on both of these tables.
0
9,995,375
04/03/2012 14:29:33
1,179,115
01/30/2012 22:18:23
1
0
Emacs hangs when using tramp with su
after reinstalling my system, I discovered that the emacs tramp isn't working..;. Here is what exactly happens : I type in C-x C-f /su:root@localhost: <Tab> Here emacs asks for my password, which I provide. It then hangs, showing the above string in the minibuffer, and then Tramp: Waiting for prompts from remote shell Here is what is in the *tramp/su root@localhost* : Password: Password: su: incorrect password Process *tramp/su root@localhost* exited abnormally with code 125 And here is what's in *debug tramp/su root@localhost* http://pastebin.com/0CKD1yM3 I would be glad if someone knows what might cause this !
emacs
hangs
tramp
su
null
04/07/2012 16:21:59
too localized
Emacs hangs when using tramp with su === after reinstalling my system, I discovered that the emacs tramp isn't working..;. Here is what exactly happens : I type in C-x C-f /su:root@localhost: <Tab> Here emacs asks for my password, which I provide. It then hangs, showing the above string in the minibuffer, and then Tramp: Waiting for prompts from remote shell Here is what is in the *tramp/su root@localhost* : Password: Password: su: incorrect password Process *tramp/su root@localhost* exited abnormally with code 125 And here is what's in *debug tramp/su root@localhost* http://pastebin.com/0CKD1yM3 I would be glad if someone knows what might cause this !
3
5,270,302
03/11/2011 07:48:38
302,593
02/10/2010 10:11:26
33
0
Doubt in c program
The answer for the following program is 15,15...i have doubt in this answer *q=*p evaluate first..then we calculate the *p+*q value *q=15 *p+*q=15+15 *p=30-15=15 Here y we evaluate the *q=*p statement first.. any one pls help me to solve this issue... function (int *p,int *q) { return(*p = (*p + *q) - (*q = *p)); } int main() { int y = 15, z = 25; function(&y, &z); printf("%d\t%d", z, y); } Regards, Raji
c
null
null
null
null
03/11/2011 07:57:35
not a real question
Doubt in c program === The answer for the following program is 15,15...i have doubt in this answer *q=*p evaluate first..then we calculate the *p+*q value *q=15 *p+*q=15+15 *p=30-15=15 Here y we evaluate the *q=*p statement first.. any one pls help me to solve this issue... function (int *p,int *q) { return(*p = (*p + *q) - (*q = *p)); } int main() { int y = 15, z = 25; function(&y, &z); printf("%d\t%d", z, y); } Regards, Raji
1
4,383,641
12/08/2010 02:20:42
399,459
07/22/2010 18:31:01
159
7
Change icon when focus and unfocus Android Tan widget
Hey I'd like to change the icon from the TabWidget on Android by focusing and unfocusing the tab. I mean, when I select the Tab, the icon shows for example green, and when I select the oter tab, the icon changes to red. I'm calling a unique icon this way: tabHost.addTab(tabHost.newTabSpec("one").setIndicator("Rated Calls", res.getDrawable(R.drawable.ratedcallicon)) How to make it change the image of the icon when I select other tab? Thanks!
android
android-emulator
android-widget
android-layout
null
null
open
Change icon when focus and unfocus Android Tan widget === Hey I'd like to change the icon from the TabWidget on Android by focusing and unfocusing the tab. I mean, when I select the Tab, the icon shows for example green, and when I select the oter tab, the icon changes to red. I'm calling a unique icon this way: tabHost.addTab(tabHost.newTabSpec("one").setIndicator("Rated Calls", res.getDrawable(R.drawable.ratedcallicon)) How to make it change the image of the icon when I select other tab? Thanks!
0
7,190,029
08/25/2011 12:05:57
912,013
08/25/2011 12:05:57
1
0
Like Button Title
i've a script that list 2-3 articles with their Like Button. Removing the og:url tag from the page solved the problem of the url displayed on facebook. There is a way to tell to each button the title to display instead of the generic page title? e.g.: page title: Search Result. first button: result 1 title second button: result 2 title, etc..
button
facebook-like
null
null
null
06/19/2012 11:42:30
not a real question
Like Button Title === i've a script that list 2-3 articles with their Like Button. Removing the og:url tag from the page solved the problem of the url displayed on facebook. There is a way to tell to each button the title to display instead of the generic page title? e.g.: page title: Search Result. first button: result 1 title second button: result 2 title, etc..
1
3,633,754
09/03/2010 07:21:49
401,995
07/24/2010 03:40:57
199
2
c++ vectors causing break in my game
my works like this i shot airplanes and if the shot toughed an airplane it change there positions(airplane and the shot) than it will delete them. if i toughed an airplane the airplane position gets changed. than it gets deleted than my health reduces. well that works well expect that it breaks when i have about 2-4 airplanes left and i toughed one of them and shot one of them my game breaks it pops a box says vector out of range... i have had something like this problem before i fixed it because i new where was the problem but the box doesn't give me any information where it is the problem. here my [full code][1] [1]: http://pastebin.com/G1nUZUrt Thanks in Advance
c++
visual-c++
winapi
vector
null
09/06/2010 00:36:09
not a real question
c++ vectors causing break in my game === my works like this i shot airplanes and if the shot toughed an airplane it change there positions(airplane and the shot) than it will delete them. if i toughed an airplane the airplane position gets changed. than it gets deleted than my health reduces. well that works well expect that it breaks when i have about 2-4 airplanes left and i toughed one of them and shot one of them my game breaks it pops a box says vector out of range... i have had something like this problem before i fixed it because i new where was the problem but the box doesn't give me any information where it is the problem. here my [full code][1] [1]: http://pastebin.com/G1nUZUrt Thanks in Advance
1
10,944,451
06/08/2012 07:07:27
1,389,014
05/11/2012 08:50:58
73
0
Recovering deleted .xq files on Ubuntu 12.04
How to recover .xq files which are deleted from my machine?
ubuntu
null
null
null
null
06/09/2012 04:15:54
off topic
Recovering deleted .xq files on Ubuntu 12.04 === How to recover .xq files which are deleted from my machine?
2
1,335,334
08/26/2009 14:56:07
443,793
08/04/2009 01:24:49
14
0
Form Post Error
Can anyone explain what might be causing this error. Im thinking its the quotes. Exception Details: System.Web.HttpRequestValidationException: A potentially dangerousRequest.Form value was detected from the client (ctl00$ContentPlaceHolder1$DetailsView1$txtContent="...l economy.<br /><br />The Prop...").
asp.net
vb.net
null
null
null
null
open
Form Post Error === Can anyone explain what might be causing this error. Im thinking its the quotes. Exception Details: System.Web.HttpRequestValidationException: A potentially dangerousRequest.Form value was detected from the client (ctl00$ContentPlaceHolder1$DetailsView1$txtContent="...l economy.<br /><br />The Prop...").
0
4,740,966
01/19/2011 21:27:00
194,894
10/22/2009 20:44:42
1
0
Android Emulator (qemu) does not allow certain tcp connections.
Although Internet browsing works in the emulator, my app is unable to connect to a server on port 5222 via TCP. I'm pretty sure that there is no firewall involved on my router or on my pc, as I can telnet to that ip:port from my pc. A packet-trace on the emulated device showed that every SYN packet to that particular port is answered with RST,ACK and the connection is closed by my app with a "connection error". Why does the emulator block (?) these ports? How can I change it?
android
android-emulator
null
null
null
null
open
Android Emulator (qemu) does not allow certain tcp connections. === Although Internet browsing works in the emulator, my app is unable to connect to a server on port 5222 via TCP. I'm pretty sure that there is no firewall involved on my router or on my pc, as I can telnet to that ip:port from my pc. A packet-trace on the emulated device showed that every SYN packet to that particular port is answered with RST,ACK and the connection is closed by my app with a "connection error". Why does the emulator block (?) these ports? How can I change it?
0
7,506,815
09/21/2011 21:20:48
192,077
10/18/2009 17:46:14
1,417
114
Get up-down control from buddy?
Is it possible to get a handle to an up-down control from a handle to its buddy? So [`UDM_GETBUDDY`](http://msdn.microsoft.com/en-us/library/bb759913(v=VS.85).aspx) is not an option. Thanks!
c
winapi
null
null
null
null
open
Get up-down control from buddy? === Is it possible to get a handle to an up-down control from a handle to its buddy? So [`UDM_GETBUDDY`](http://msdn.microsoft.com/en-us/library/bb759913(v=VS.85).aspx) is not an option. Thanks!
0
11,740,914
07/31/2012 13:12:11
1,525,363
07/14/2012 09:27:24
1
0
i have a free app i accidently registered with apbrain. how to remove it from appbrain as will be charged for the free app?
**Actually i have accidently have registered in app brain and published my app in the app promotion field.I have not noticed that they would charge a fee for promotion, so what could be the solution to remove the app so that they couldn't cost any fee.**
application
null
null
null
null
07/31/2012 18:13:05
off topic
i have a free app i accidently registered with apbrain. how to remove it from appbrain as will be charged for the free app? === **Actually i have accidently have registered in app brain and published my app in the app promotion field.I have not noticed that they would charge a fee for promotion, so what could be the solution to remove the app so that they couldn't cost any fee.**
2
8,677,055
12/30/2011 07:04:25
842,112
07/13/2011 06:39:10
847
45
Daily reports by C#.NET console application
<br>I have one task which is I have to create C#.NET console application which should generate daily reports in excel format. The reports should generate daily except Sunday.<br>I don't have any Idea about the same. For report data is stored in SQLServer database.<br> Any help or tutorials is appreciated, Thanks in advance
c#
.net
console-application
null
null
12/30/2011 07:23:10
not a real question
Daily reports by C#.NET console application === <br>I have one task which is I have to create C#.NET console application which should generate daily reports in excel format. The reports should generate daily except Sunday.<br>I don't have any Idea about the same. For report data is stored in SQLServer database.<br> Any help or tutorials is appreciated, Thanks in advance
1
7,314,261
09/06/2011 02:02:02
218,284
11/25/2009 03:45:12
311
3
Restoring the Fuse settings on AVR micro-controller AT32UC3A0512
Currently I am working on AT32UC3A0512 micro-controller. I have to develop the ethernet bootloader for this. As the bootloader programming needs to make changes in fuse-settings, can anybody suggest me how to restore my fuse settings in case of any problem? I am using AVR Studio 5 as IDE and AVR Dragon as debugger. Do anybody has idea how to see the current fuse settings in AVR Studio 5?
bootloader
avr-gcc
null
null
null
null
open
Restoring the Fuse settings on AVR micro-controller AT32UC3A0512 === Currently I am working on AT32UC3A0512 micro-controller. I have to develop the ethernet bootloader for this. As the bootloader programming needs to make changes in fuse-settings, can anybody suggest me how to restore my fuse settings in case of any problem? I am using AVR Studio 5 as IDE and AVR Dragon as debugger. Do anybody has idea how to see the current fuse settings in AVR Studio 5?
0
6,552,556
07/01/2011 19:44:11
322,066
04/21/2010 08:12:26
13
0
Oracle Data Pump Export (expdp) locks table (or something similar)
I must export data from a partitioned table with global index that must be online all the time, but I am having troubles in doing that. For data export I am using Data Pump Export - expdp and I am exporting only one partition. The oldest one, not the active one. My expdp command exports correct data and it looks like this: expdp user/pass@SID DIRECTORY=EXP_DIR DUMPFILE=part23.dmp TABLES=SCHEMA_NAME.TABLE_NAME:TABLE_PARTITION_23` Application that uses database has a connection timeout of 10 seconds. This parameter can't be changed. If INSERT queries are not finished within 10 seconds, data is written to a backup file. My problem is that, during the export process that lasts few minutes, some data ends up in the backup file, and not in the database. I want to know why, and avoid it. Partitions are organized weekly, and I am keeping 4 partitions active (last 4 weeks). Every partition is up to 3 GB. I am using Oracle 11.2
oracle
export
partitions
table-locking
null
null
open
Oracle Data Pump Export (expdp) locks table (or something similar) === I must export data from a partitioned table with global index that must be online all the time, but I am having troubles in doing that. For data export I am using Data Pump Export - expdp and I am exporting only one partition. The oldest one, not the active one. My expdp command exports correct data and it looks like this: expdp user/pass@SID DIRECTORY=EXP_DIR DUMPFILE=part23.dmp TABLES=SCHEMA_NAME.TABLE_NAME:TABLE_PARTITION_23` Application that uses database has a connection timeout of 10 seconds. This parameter can't be changed. If INSERT queries are not finished within 10 seconds, data is written to a backup file. My problem is that, during the export process that lasts few minutes, some data ends up in the backup file, and not in the database. I want to know why, and avoid it. Partitions are organized weekly, and I am keeping 4 partitions active (last 4 weeks). Every partition is up to 3 GB. I am using Oracle 11.2
0
9,370,022
02/20/2012 23:31:07
1,157,493
01/19/2012 01:26:53
896
60
Evenly spread links over a horizontal navigation
I'm trying to find a simple method of getting all the links spread evenly over the horizontal navigation. This would be very easy if it would be a fixed amount of links, but they will be dynamic. So it could be either 5 or 10 links, nobody knows. Despite the amount of links I would like them to spread evenly across the navigation **without** using a table. The reason I don't want to use a table is because it will break the UL LI structure which is (apparently) considered the way to go when building a navigation (SEO). Here's a jsFiddle explaining it more in depth: http://jsfiddle.net/pkK8C/19/ Looking for the most **light** method. Thank you in advance.
html
css
null
null
null
null
open
Evenly spread links over a horizontal navigation === I'm trying to find a simple method of getting all the links spread evenly over the horizontal navigation. This would be very easy if it would be a fixed amount of links, but they will be dynamic. So it could be either 5 or 10 links, nobody knows. Despite the amount of links I would like them to spread evenly across the navigation **without** using a table. The reason I don't want to use a table is because it will break the UL LI structure which is (apparently) considered the way to go when building a navigation (SEO). Here's a jsFiddle explaining it more in depth: http://jsfiddle.net/pkK8C/19/ Looking for the most **light** method. Thank you in advance.
0
3,329,403
07/25/2010 13:48:19
230,632
12/13/2009 10:43:08
193
3
custom list control in cocoa
I am trying to get something like in this screenshot ![alt text][1] [1]: http://smokingapples.com/wp-content/uploads/2009/12/socialite-hud.jpg in cocoa, I mean a custom list control. Do you know how this kind of things can be done? Thanks in advance for your help, Regards,
cocoa
list
macos
null
null
null
open
custom list control in cocoa === I am trying to get something like in this screenshot ![alt text][1] [1]: http://smokingapples.com/wp-content/uploads/2009/12/socialite-hud.jpg in cocoa, I mean a custom list control. Do you know how this kind of things can be done? Thanks in advance for your help, Regards,
0
2,839,097
05/15/2010 05:59:27
341,786
05/15/2010 05:53:14
1
0
how to get a value which points to a function
i have a value like that var myvalue=myfunction(1,2); what I need is that GETTING myfunction(a,b) as a string.. I mean not "myfunction's value" hmmm, let me explain, myfunction(1,2) returns 1+2=3 if I type alert(myvalue) it returns 3 but I need myfunction(a,b) AS IT'S TYPED when I use alert. NOT IT'S VALUE think it like var myvalue='myfunction(a,b)' now, if i use Alert, it gives me myfunction(a,b) how can I do that?
jquery
javascript
null
null
null
null
open
how to get a value which points to a function === i have a value like that var myvalue=myfunction(1,2); what I need is that GETTING myfunction(a,b) as a string.. I mean not "myfunction's value" hmmm, let me explain, myfunction(1,2) returns 1+2=3 if I type alert(myvalue) it returns 3 but I need myfunction(a,b) AS IT'S TYPED when I use alert. NOT IT'S VALUE think it like var myvalue='myfunction(a,b)' now, if i use Alert, it gives me myfunction(a,b) how can I do that?
0
8,117,577
11/14/2011 05:09:15
1,002,682
10/19/2011 08:03:16
4
0
How do I provide email ID service?
Suppose take a example of gmail.com. When I go there and sign up for a mail ID, I get some space for storing my mails and etc. How does Google provide these services, I mean what technologies are used behind this. If I want to provide these services on my website, then what will I have to do. I don't want to use any 3rd party service provider. I am a newbie and will appreciate your constructive responses.
php
ruby-on-rails
email
internet
null
11/14/2011 21:55:40
not a real question
How do I provide email ID service? === Suppose take a example of gmail.com. When I go there and sign up for a mail ID, I get some space for storing my mails and etc. How does Google provide these services, I mean what technologies are used behind this. If I want to provide these services on my website, then what will I have to do. I don't want to use any 3rd party service provider. I am a newbie and will appreciate your constructive responses.
1
7,644,809
10/04/2011 07:59:32
223,090
12/02/2009 17:23:21
649
29
Get local file inside the extension folder in Chrome
I know that I can't get a local file from within the extension directory. It is possible to get a file that is *inside* the extension directory itself?
google-chrome-extension
null
null
null
null
null
open
Get local file inside the extension folder in Chrome === I know that I can't get a local file from within the extension directory. It is possible to get a file that is *inside* the extension directory itself?
0
5,316,534
03/15/2011 18:51:52
614,473
02/12/2011 19:21:48
3
0
How to query SQL rows HAVING NOT (array values) in a field with comma separated values ?
Hey guys, i'm a SQL beginner, and can't find the solution to my problem. I have a SQL table, which looks like this: **id_question (int)** | **tags (varchar)** where "tags" field is - either empty : NULL - or is filled with one value (Ex: 1) (not numeric) - or is filled with several comma separated values (ex: 273,2308,24) (not numeric) **id_question (int)** | **tags (varchar)** 1 | 1,373 2 | 283,4555,308,12 3 | 283,25,3 ANd i have a blacklisted_tags array. I would like to retrieve id_questions of all questions whose tags field do not have a blacklisted $tags_blacklist value. **For example:** $tags_blacklist = array (1,3) => I should get 2 and not 1 because it has 1 in its tags field and not 3 because it has 3 in its tags field. What should my SQL query look like ? Thanks for your hints :)
sql
arrays
exclude
null
null
null
open
How to query SQL rows HAVING NOT (array values) in a field with comma separated values ? === Hey guys, i'm a SQL beginner, and can't find the solution to my problem. I have a SQL table, which looks like this: **id_question (int)** | **tags (varchar)** where "tags" field is - either empty : NULL - or is filled with one value (Ex: 1) (not numeric) - or is filled with several comma separated values (ex: 273,2308,24) (not numeric) **id_question (int)** | **tags (varchar)** 1 | 1,373 2 | 283,4555,308,12 3 | 283,25,3 ANd i have a blacklisted_tags array. I would like to retrieve id_questions of all questions whose tags field do not have a blacklisted $tags_blacklist value. **For example:** $tags_blacklist = array (1,3) => I should get 2 and not 1 because it has 1 in its tags field and not 3 because it has 3 in its tags field. What should my SQL query look like ? Thanks for your hints :)
0
2,778,754
05/06/2010 05:54:20
328,914
04/29/2010 13:09:46
22
0
Looping over a Cfquery or a Struct ?
Hi I have a query which retrieves Some data. I want to display that data considering some conditions in different div tags. Now my question is, I am doing this by looping the query once and getting the data in three different structs and using these structs while displaying. Is this a good approach or looping through the query everytime in each div to check the condition is the rirht approach ? <tr > <td > features: </td> <td > <cfloop query="getAttributes"> <cfif getAttributes.type_id EQ 1> #getAttributes.seat#<br> </cfif> </cfloop> </td> </tr> <tr> <td > Disclosures: </td> <td > <cfloop query="getAttributes"> <cfif getAttributes.type_id EQ 2> #getTicketAttributes.seat#<br> </cfif> </cfloop> </td> </tr>
coldfusion
null
null
null
null
null
open
Looping over a Cfquery or a Struct ? === Hi I have a query which retrieves Some data. I want to display that data considering some conditions in different div tags. Now my question is, I am doing this by looping the query once and getting the data in three different structs and using these structs while displaying. Is this a good approach or looping through the query everytime in each div to check the condition is the rirht approach ? <tr > <td > features: </td> <td > <cfloop query="getAttributes"> <cfif getAttributes.type_id EQ 1> #getAttributes.seat#<br> </cfif> </cfloop> </td> </tr> <tr> <td > Disclosures: </td> <td > <cfloop query="getAttributes"> <cfif getAttributes.type_id EQ 2> #getTicketAttributes.seat#<br> </cfif> </cfloop> </td> </tr>
0
5,325,573
03/16/2011 12:56:21
662,516
03/16/2011 12:56:21
1
0
how would i program an E-auctioning system in C#
it needs Accurate Implementation of Class Structure. Functionality of Class Members (especially Methods). I dont know anything in C# and have been asked to do a full coursework on it for university in which the teacher refuses to tell us anything abotu C# but with a month to do the work expects us to learn C# fluently and do the e-auctioning console application. any help would be beneficial im using visual studio 2010 by the way
c#
homework
console
console-application
null
03/16/2011 13:02:43
not a real question
how would i program an E-auctioning system in C# === it needs Accurate Implementation of Class Structure. Functionality of Class Members (especially Methods). I dont know anything in C# and have been asked to do a full coursework on it for university in which the teacher refuses to tell us anything abotu C# but with a month to do the work expects us to learn C# fluently and do the e-auctioning console application. any help would be beneficial im using visual studio 2010 by the way
1
6,088,258
05/22/2011 13:34:10
192,315
10/19/2009 09:07:50
266
0
Setup Subversive in eclipse
how to setup subversive in eclipse, I downloaded the plug-in and put it in "drop-ins" folder and it installed but seems it need SVN-Connector to run !!! If I want to enable SVN in eclipse there must be two plug-ins?!!! What is subversive and what is Connectors??? If I must have both, how can I download the Connector manually(without eclipse market place).. REGARDS
eclipse
svn
subversive
connector
null
05/22/2011 22:06:15
off topic
Setup Subversive in eclipse === how to setup subversive in eclipse, I downloaded the plug-in and put it in "drop-ins" folder and it installed but seems it need SVN-Connector to run !!! If I want to enable SVN in eclipse there must be two plug-ins?!!! What is subversive and what is Connectors??? If I must have both, how can I download the Connector manually(without eclipse market place).. REGARDS
2
10,341,559
04/26/2012 21:17:45
959,792
09/22/2011 18:38:11
137
1
How to update a SQL table in Java program
I've been adding rows to a SQL table with a Java program using prepared statements and the REPLACE INTO command. Everything was working great. Then I copied my code and made an identical program that grabbed info from a different source. I created a new SQL table identical to the one used in the original Java program, only with a new title. Somehow I broke the mechanism that was working for the original program. I've tried to examine every detail of the code for errors or things that are different from the working original, but I can find no differences. The second program does not work. The table remains unfilled. Any ideas? If I need to be more specific, please tell me how.
java
mysql
sql
database
exception
04/26/2012 21:44:46
not a real question
How to update a SQL table in Java program === I've been adding rows to a SQL table with a Java program using prepared statements and the REPLACE INTO command. Everything was working great. Then I copied my code and made an identical program that grabbed info from a different source. I created a new SQL table identical to the one used in the original Java program, only with a new title. Somehow I broke the mechanism that was working for the original program. I've tried to examine every detail of the code for errors or things that are different from the working original, but I can find no differences. The second program does not work. The table remains unfilled. Any ideas? If I need to be more specific, please tell me how.
1
10,364,105
04/28/2012 13:48:57
1,291,062
03/25/2012 09:09:14
15
2
Cannot implicitly convert type 'int' to Category
Here's my model public class Category { public int CategoryId { get; set; } public string Description { get; set; } public Category Parent { get; set; } public ICollection<Category> Children { get; set; } } Mapping: modelBuilder.Entity<Category>() .HasMany(x => x.Children) .WithOptional(y => y.Parent) .Map(m => m.MapKey("ParentId")); Here's how I add data to it: var a = new List<Category> { new Category { Description = "Animals" } new Category { Description = "Dog", Parent = 1 } <<<-ERROR } a.ForEach(s => context.Categories.Add(s)); context.SaveChanges(); How can I add the CategoryId from the 1st row to the second row??? Sorry, I think this is a very basic question, but I cant figure out how to do it Thanks
entity-framework
ef-code-first
null
null
null
null
open
Cannot implicitly convert type 'int' to Category === Here's my model public class Category { public int CategoryId { get; set; } public string Description { get; set; } public Category Parent { get; set; } public ICollection<Category> Children { get; set; } } Mapping: modelBuilder.Entity<Category>() .HasMany(x => x.Children) .WithOptional(y => y.Parent) .Map(m => m.MapKey("ParentId")); Here's how I add data to it: var a = new List<Category> { new Category { Description = "Animals" } new Category { Description = "Dog", Parent = 1 } <<<-ERROR } a.ForEach(s => context.Categories.Add(s)); context.SaveChanges(); How can I add the CategoryId from the 1st row to the second row??? Sorry, I think this is a very basic question, but I cant figure out how to do it Thanks
0
6,999,298
08/09/2011 16:08:00
724,198
04/25/2011 18:50:34
571
27
Accessing ASP Session Variables with Javascript
I know I can reference a simple session variable (ie: string) in javascript like this: var SesVar = '<%= Session("MySessionVariable") %>'; alert(SesVar); But the problem I have is that I have an ASP.NET generic list object stored in Session.Contents. The object looks like this: Public Class LetterReason Private _reasonCode As String Public Property ReasonCode() As String Get Return _reasonCode End Get Set(ByVal value As String) _reasonCode = value End Set End Property Private _reason As String Public Property Reason() As String Get Return _reason End Get Set(ByVal value As String) _reason = value End Set End Property I've stored a list of this object in session contents like so: Dim lsReasons As New List(Of LetterReason) lsReasons = MyWCF.Get(reasons) Session.Contents("lsReasons") = lsReasons Problem is, when I use the code above (SesVar), it returns this: System.Collections.Generic.List`1[LetterWriterASP2.ServiceReference1.LetterReason] Is there any way I can access a list stored in session contents through javascript? Thanks, Jason
javascript
asp.net
list
session
variables
null
open
Accessing ASP Session Variables with Javascript === I know I can reference a simple session variable (ie: string) in javascript like this: var SesVar = '<%= Session("MySessionVariable") %>'; alert(SesVar); But the problem I have is that I have an ASP.NET generic list object stored in Session.Contents. The object looks like this: Public Class LetterReason Private _reasonCode As String Public Property ReasonCode() As String Get Return _reasonCode End Get Set(ByVal value As String) _reasonCode = value End Set End Property Private _reason As String Public Property Reason() As String Get Return _reason End Get Set(ByVal value As String) _reason = value End Set End Property I've stored a list of this object in session contents like so: Dim lsReasons As New List(Of LetterReason) lsReasons = MyWCF.Get(reasons) Session.Contents("lsReasons") = lsReasons Problem is, when I use the code above (SesVar), it returns this: System.Collections.Generic.List`1[LetterWriterASP2.ServiceReference1.LetterReason] Is there any way I can access a list stored in session contents through javascript? Thanks, Jason
0
3,900,881
10/10/2010 15:26:40
178,511
09/24/2009 14:59:59
245
7
Can a GQL query execute an order by over two or more kinds?
I have two entity kinds in my python GAE app - both with similar attributes - and I'd like to query both lists and order the result according to an attribute common to both kinds. So something along the lines of: db.GqlQuery("SELECT * FROM Video1 AND Video2 ORDER BY views DESC").fetch(1000) Can I do this in GQL directly?
google-app-engine
gql
datastore
gqlquery
null
null
open
Can a GQL query execute an order by over two or more kinds? === I have two entity kinds in my python GAE app - both with similar attributes - and I'd like to query both lists and order the result according to an attribute common to both kinds. So something along the lines of: db.GqlQuery("SELECT * FROM Video1 AND Video2 ORDER BY views DESC").fetch(1000) Can I do this in GQL directly?
0
1,121,187
07/13/2009 18:21:17
15,792
09/17/2008 12:47:13
61
12
Question about SQL Server users on shared Godaddy hosting accounts
I have a client who needs a report created using data retrieved from a SQL Server database on a shared Godaddy hosting account. I do not need full access to this database, so I have asked the hosting account owner (supposedly a web site developer) to create a user for me that has only select privileges on the tables I need access to. However, the owner of the hosting account says that a Godaddy representative told him that they will not allow him to create a another database user unless he upgrades to dedicated hosting. He says that all he can provide me with is the one admin user that has been assigned to him and that he cannot create another user. Does anyone know if Godaddy really limits shared Windows hosting plans to one SQL Server admin user like this?
godaddy
sql-server
user
null
null
null
open
Question about SQL Server users on shared Godaddy hosting accounts === I have a client who needs a report created using data retrieved from a SQL Server database on a shared Godaddy hosting account. I do not need full access to this database, so I have asked the hosting account owner (supposedly a web site developer) to create a user for me that has only select privileges on the tables I need access to. However, the owner of the hosting account says that a Godaddy representative told him that they will not allow him to create a another database user unless he upgrades to dedicated hosting. He says that all he can provide me with is the one admin user that has been assigned to him and that he cannot create another user. Does anyone know if Godaddy really limits shared Windows hosting plans to one SQL Server admin user like this?
0
1,266,963
08/12/2009 15:35:33
120,444
06/10/2009 10:39:36
2,574
93
Embedded Systems Podcasts
Are there any good podcasts focused on discussing issues of particular relevance to the development of embedded systems?
embedded
podcast
null
null
null
09/18/2011 02:54:41
not constructive
Embedded Systems Podcasts === Are there any good podcasts focused on discussing issues of particular relevance to the development of embedded systems?
4
7,376,410
09/11/2011 05:06:11
444,158
09/10/2010 08:24:10
139
0
What is MEF and in what time we will go for MEF?
Iam new to MEF and i go through some articles in internet and am not able to get a clear picture about it.Can any one explain in a simple .net ,like for what we have to go and pros and cons things and all. Thank you
c#-4.0
.net-4.0
mef
null
null
09/11/2011 08:36:38
not constructive
What is MEF and in what time we will go for MEF? === Iam new to MEF and i go through some articles in internet and am not able to get a clear picture about it.Can any one explain in a simple .net ,like for what we have to go and pros and cons things and all. Thank you
4