question_id
int64
4
6.31M
answer_id
int64
7
6.31M
title
stringlengths
9
150
question_body
stringlengths
0
28.8k
answer_body
stringlengths
60
27.2k
question_text
stringlengths
40
28.9k
combined_text
stringlengths
124
39.6k
tags
listlengths
1
6
question_score
int64
0
26.3k
answer_score
int64
0
28.8k
view_count
int64
15
14M
answer_count
int64
0
182
favorite_count
int64
0
32
question_creation_date
stringdate
2008-07-31 21:42:52
2011-06-10 18:12:18
answer_creation_date
stringdate
2008-07-31 22:17:57
2011-06-10 18:14:17
6,180,297
6,207,436
Spring webflow: how to keep track of persisted entity ids?
I'm working on a webflow (SWF2). The entities are generated using Roo. One of the webflow views, multi-instance.jspx, may be called multiple times to allow for multiple, persisted instances of the same entity (MyClass). I'd like to keep a list of those persisted entities so that I can reference them on a later point in...
First, with regards to your question(s) around variable scoping, I would suggest looking at section 4.4 of the SWF documentation, where it describes all of the different available scopes. Flow scope variables live through the lifetime of the flow. So your myClass variable will not go away until the flow exits. However ...
Spring webflow: how to keep track of persisted entity ids? I'm working on a webflow (SWF2). The entities are generated using Roo. One of the webflow views, multi-instance.jspx, may be called multiple times to allow for multiple, persisted instances of the same entity (MyClass). I'd like to keep a list of those persiste...
TITLE: Spring webflow: how to keep track of persisted entity ids? QUESTION: I'm working on a webflow (SWF2). The entities are generated using Roo. One of the webflow views, multi-instance.jspx, may be called multiple times to allow for multiple, persisted instances of the same entity (MyClass). I'd like to keep a list...
[ "spring-mvc", "spring-webflow", "jspx" ]
1
1
1,767
1
0
2011-05-30T19:56:11.133000
2011-06-01T20:45:17.210000
6,180,298
6,183,329
What is the use of ., in XPath?
Why is a comma used after the period in certain XPath expressions? Here is an example: Set nlist = doc.selectNodes("//book/author/first-name[starts-with(.,'M')]") I tried to search for this with Google, but the literal "" operators don't seem to like periods or commas.
In XPath the. mark stands for context node. The context node is usually the same of the current node ( current() function) being processed but it might be situations where it's different. This is not really obvious when you deal with XPath only, but it happens when using XSLT. See this question in SO explaining such a ...
What is the use of ., in XPath? Why is a comma used after the period in certain XPath expressions? Here is an example: Set nlist = doc.selectNodes("//book/author/first-name[starts-with(.,'M')]") I tried to search for this with Google, but the literal "" operators don't seem to like periods or commas.
TITLE: What is the use of ., in XPath? QUESTION: Why is a comma used after the period in certain XPath expressions? Here is an example: Set nlist = doc.selectNodes("//book/author/first-name[starts-with(.,'M')]") I tried to search for this with Google, but the literal "" operators don't seem to like periods or commas. ...
[ "xml", "xpath" ]
5
3
1,687
3
0
2011-05-30T19:56:30.557000
2011-05-31T05:24:12.510000
6,180,299
6,180,653
Troubleshoot Eclipse's "Run on server" deploy
I am taking over an existing Struts-based web application and am trying to deploy it for the first time on my local machine. My predecessor told me to run it through Eclipse on a Tomcat server. I have installed the latest tomcat and it is running fine. I have grabbed the code from their CVS server and, with a few tweak...
This is not the way to run web apps inside Eclipse. Go to the Server view panel instead, and choose Add server. Here install the Tomcat adapter according to the instructions, and then add the projects you have (if they are Dynamic Web Projects). You can now start and stop the server and have the projects chosen updated...
Troubleshoot Eclipse's "Run on server" deploy I am taking over an existing Struts-based web application and am trying to deploy it for the first time on my local machine. My predecessor told me to run it through Eclipse on a Tomcat server. I have installed the latest tomcat and it is running fine. I have grabbed the co...
TITLE: Troubleshoot Eclipse's "Run on server" deploy QUESTION: I am taking over an existing Struts-based web application and am trying to deploy it for the first time on my local machine. My predecessor told me to run it through Eclipse on a Tomcat server. I have installed the latest tomcat and it is running fine. I h...
[ "java", "eclipse", "tomcat" ]
2
1
2,795
2
0
2011-05-30T19:56:51.223000
2011-05-30T20:51:46.843000
6,180,304
6,180,329
Creating objects from another layer
I'm trying to develop an application for my final year project. Currently I have the presentation layer where I have the UI stuff like forms. Now I've went ahead and added class library to the project and added a class Employee in the new project. Now When I try to make an object Employee emp = new Employee(); c# retur...
Make sure that you have added a reference to the class library in your presentation layer 's project. Then try to import the namespace which contains the Employee class in your code file as the following: using EmployeeClassNameSpace; You can also use the fully qualified name of the Employee type as the following: Empl...
Creating objects from another layer I'm trying to develop an application for my final year project. Currently I have the presentation layer where I have the UI stuff like forms. Now I've went ahead and added class library to the project and added a class Employee in the new project. Now When I try to make an object Emp...
TITLE: Creating objects from another layer QUESTION: I'm trying to develop an application for my final year project. Currently I have the presentation layer where I have the UI stuff like forms. Now I've went ahead and added class library to the project and added a class Employee in the new project. Now When I try to ...
[ "c#" ]
1
2
124
3
0
2011-05-30T19:57:37.407000
2011-05-30T20:01:58.897000
6,180,318
6,180,402
Rails redirect based on user type
I'm learning Rails by building a shop application and I'm having a bit of trouble with redirects. I have 3 roles in the application: Buyer Seller Administrator Depending on which type they are logged in as then I would like to redirect to a different page/action but still show the same URL for each (http://.../my-accou...
In UserSessionsController#create (i.e.: the login method) you could continue to redirect to the account path (assuming that goes to AccountsController#show ) and then render different views according to the role. I.e.: something like this: class AccountsController < ApplicationController def show if current_user.buyer?...
Rails redirect based on user type I'm learning Rails by building a shop application and I'm having a bit of trouble with redirects. I have 3 roles in the application: Buyer Seller Administrator Depending on which type they are logged in as then I would like to redirect to a different page/action but still show the same...
TITLE: Rails redirect based on user type QUESTION: I'm learning Rails by building a shop application and I'm having a bit of trouble with redirects. I have 3 roles in the application: Buyer Seller Administrator Depending on which type they are logged in as then I would like to redirect to a different page/action but s...
[ "ruby-on-rails", "ruby-on-rails-3", "authentication", "redirect" ]
2
4
2,096
2
0
2011-05-30T20:00:08.317000
2011-05-30T20:13:03.297000
6,180,327
6,180,358
Displaying error messages in rails
I seem to have trouble handling error messages. Here's my method: def destroy @user = User.find(current_user) @authorization = Authorization.find(params[:id]) if @user.authorizations.count > 1 @authorization.destroy redirect_to(user_path(current_user)) else... end end I don't want a user to delete their last authoriza...
So, this seems to be working: respond_to do |format| format.html {redirect_to(@user,:alert => "Sorry, you can't delete your only authorized service.")} end But, this does not: respond_to do |format| format.html {redirect_to(@user,:errors => "Sorry, you can't delete your only authorized service.")} end
Displaying error messages in rails I seem to have trouble handling error messages. Here's my method: def destroy @user = User.find(current_user) @authorization = Authorization.find(params[:id]) if @user.authorizations.count > 1 @authorization.destroy redirect_to(user_path(current_user)) else... end end I don't want a ...
TITLE: Displaying error messages in rails QUESTION: I seem to have trouble handling error messages. Here's my method: def destroy @user = User.find(current_user) @authorization = Authorization.find(params[:id]) if @user.authorizations.count > 1 @authorization.destroy redirect_to(user_path(current_user)) else... end e...
[ "ruby-on-rails-3" ]
1
0
628
1
0
2011-05-30T20:01:37.180000
2011-05-30T20:05:44.197000
6,180,333
6,180,404
Targeting handheld style sheets
I have how would i only target iphone? I have tried media="handheld, only screen and (max-device-width: 480px)" but it wont display my menu? I have two menus - one for web browsers and one for mobile web. Im guessing as iphone only reads the 'screen' type that is why it is displaying. I have specified in my main site c...
The code for targeting iPhone looks right (see How do I apply a stylesheet just to the iPhone (and not IE), without browser sniffing? for some improvements). However, iPhones will display both the regular stylesheets and the mobile-specific ones. To show the menu, you need to add display: block; to the.menu element in ...
Targeting handheld style sheets I have how would i only target iphone? I have tried media="handheld, only screen and (max-device-width: 480px)" but it wont display my menu? I have two menus - one for web browsers and one for mobile web. Im guessing as iphone only reads the 'screen' type that is why it is displaying. I ...
TITLE: Targeting handheld style sheets QUESTION: I have how would i only target iphone? I have tried media="handheld, only screen and (max-device-width: 480px)" but it wont display my menu? I have two menus - one for web browsers and one for mobile web. Im guessing as iphone only reads the 'screen' type that is why it...
[ "iphone", "css" ]
0
0
133
1
0
2011-05-30T20:02:25.217000
2011-05-30T20:13:18.740000
6,180,340
6,180,391
Compare string to NSArray
I have to classes the Checkin and the FriendList. Checkin.h @interface Checkin: NSObject { NSString *name; NSString *profID; NSString *place; NSString *photoURL; NSMutableArray *taggedID; NSMutableArray *taggedName; and the Friendlist.h @interface FriendList: NSObject { NSString *name; NSString *profID; } What I am t...
this isn't going to be helping: Checkin *tempcheck = [[Checkin alloc] init]; tempcheck = [checkinArray objectAtIndex:i]; And FriendList *tempfriend = [[FriendList alloc] init]; tempfriend = [friendsArray objectAtIndex:j]; there's no reason to alloc them: just set it to be the object at the desired index: Checkin *tempc...
Compare string to NSArray I have to classes the Checkin and the FriendList. Checkin.h @interface Checkin: NSObject { NSString *name; NSString *profID; NSString *place; NSString *photoURL; NSMutableArray *taggedID; NSMutableArray *taggedName; and the Friendlist.h @interface FriendList: NSObject { NSString *name; NSStri...
TITLE: Compare string to NSArray QUESTION: I have to classes the Checkin and the FriendList. Checkin.h @interface Checkin: NSObject { NSString *name; NSString *profID; NSString *place; NSString *photoURL; NSMutableArray *taggedID; NSMutableArray *taggedName; and the Friendlist.h @interface FriendList: NSObject { NSSt...
[ "iphone", "nsstring", "nsmutablearray", "compare" ]
0
1
628
2
0
2011-05-30T20:03:39.433000
2011-05-30T20:11:10.847000
6,180,343
6,180,413
Firefox doesn't show favicon
I created favicon.ico file and declared it in my HTML head tag: IE 8 and Opera handle it great but FireFox does not even try to load it (as I see from my Fiddler debug proxy). I've tried many different type (image/ico etc.) and href params but no luck. What did I miss?
Like most things in the browser, favicons (or lack thereof) are common candidates for caching. Try clearing your browser cache. In Mozilla Firefox, the keyboard shortcut to "Reload (override cache)" is Ctrl + F5 OR Ctrl + Shift + R
Firefox doesn't show favicon I created favicon.ico file and declared it in my HTML head tag: IE 8 and Opera handle it great but FireFox does not even try to load it (as I see from my Fiddler debug proxy). I've tried many different type (image/ico etc.) and href params but no luck. What did I miss?
TITLE: Firefox doesn't show favicon QUESTION: I created favicon.ico file and declared it in my HTML head tag: IE 8 and Opera handle it great but FireFox does not even try to load it (as I see from my Fiddler debug proxy). I've tried many different type (image/ico etc.) and href params but no luck. What did I miss? AN...
[ "html", "favicon" ]
18
19
28,542
8
0
2011-05-30T20:04:01.773000
2011-05-30T20:14:28.980000
6,180,344
6,182,131
How to cache aggregate column values on Doctrine_Record instance?
Lets say i have a record class that often gets queried with dyanmic colums that are MySQL aggregate values: $results = Doctrine_Core::getTable('MyRecord')->creatQuery('m') ->select('m.*, AVG(m.rating) as avg_rating, SUM(m.id) as nb_related') ->innerJoin('m.AnotherRecords a') ->where('m.id =?') ->fetchOne(); Now lets sa...
Simple answer really. I forgot that Doctrine prefixes all its direct protected members with _. So, even though i initially tried manipulating the data member i was forgot the prefix giving me the same result as if i tried $this->avg_rating or its accessor method. The solution was: public function getAverageRating($wtih...
How to cache aggregate column values on Doctrine_Record instance? Lets say i have a record class that often gets queried with dyanmic colums that are MySQL aggregate values: $results = Doctrine_Core::getTable('MyRecord')->creatQuery('m') ->select('m.*, AVG(m.rating) as avg_rating, SUM(m.id) as nb_related') ->innerJoin(...
TITLE: How to cache aggregate column values on Doctrine_Record instance? QUESTION: Lets say i have a record class that often gets queried with dyanmic colums that are MySQL aggregate values: $results = Doctrine_Core::getTable('MyRecord')->creatQuery('m') ->select('m.*, AVG(m.rating) as avg_rating, SUM(m.id) as nb_rela...
[ "symfony1", "doctrine", "symfony-1.4", "doctrine-1.2" ]
1
0
360
1
0
2011-05-30T20:04:35.280000
2011-05-31T01:31:59.410000
6,180,349
6,180,432
Is there a python IDE that will tell you the type of a variable when you hover over it?
Sometimes I write projects and don't return to them until months later. Unfortunately for me I forget what was intended to be passed into a function. I would like to be able to hover over an argument and see the type such as integer, string, some class, etc. Is there an IDE out there that will do this for me? Any help ...
There is no way to infer the type normally, so no IDE will be able to do this. Why not just use docstrings? def foo(a, b): """ Take your arguments back, I don't want them! a -- int b -- str """ return a, b In Python 3 you could also take advantage of function annotations: def foo(a: int, b: str): """Take your argumen...
Is there a python IDE that will tell you the type of a variable when you hover over it? Sometimes I write projects and don't return to them until months later. Unfortunately for me I forget what was intended to be passed into a function. I would like to be able to hover over an argument and see the type such as integer...
TITLE: Is there a python IDE that will tell you the type of a variable when you hover over it? QUESTION: Sometimes I write projects and don't return to them until months later. Unfortunately for me I forget what was intended to be passed into a function. I would like to be able to hover over an argument and see the ty...
[ "python", "eclipse", "vim", "emacs", "ide" ]
6
8
1,436
3
0
2011-05-30T20:04:52.773000
2011-05-30T20:16:40.670000
6,180,350
6,180,374
How to check if an enum flag is raised alongside with another enum?
I have the following enum: [Flags] public enum Permissions { None = 0x0000, All = 0xFFFF } If either None or All are raised, no other flag should be raised. How do I check if either None or All are raised and nothing else?
In a flags enum, None should be zero, and All should be the cumulative bitwise sum. This makes the maths pretty easy, then: if(value == Permissions.None || value == Permissions.All) {...} maybe written as a switch if you prefer... However, in the general case, you can test for a complete flags match (against any number...
How to check if an enum flag is raised alongside with another enum? I have the following enum: [Flags] public enum Permissions { None = 0x0000, All = 0xFFFF } If either None or All are raised, no other flag should be raised. How do I check if either None or All are raised and nothing else?
TITLE: How to check if an enum flag is raised alongside with another enum? QUESTION: I have the following enum: [Flags] public enum Permissions { None = 0x0000, All = 0xFFFF } If either None or All are raised, no other flag should be raised. How do I check if either None or All are raised and nothing else? ANSWER: In...
[ "c#", ".net", "enums", "flags" ]
2
6
443
2
0
2011-05-30T20:04:56.500000
2011-05-30T20:08:31.943000
6,180,353
6,180,371
How to keep IIS Express running after finished debugging?
I'm using IIS 7 express to test a ASP.Net MVC 3 project on my development machine and normally it keeps running after I finished debugging, which is a good thing so that I can perform small tests directly in the browser without needing to run the project again. But if I choose the option "Enable edit and continue" on t...
No, because in order to achieve this, Visual Studio uses a hosting environment that interprets the code being executed. So, it is only available while debugging.
How to keep IIS Express running after finished debugging? I'm using IIS 7 express to test a ASP.Net MVC 3 project on my development machine and normally it keeps running after I finished debugging, which is a good thing so that I can perform small tests directly in the browser without needing to run the project again. ...
TITLE: How to keep IIS Express running after finished debugging? QUESTION: I'm using IIS 7 express to test a ASP.Net MVC 3 project on my development machine and normally it keeps running after I finished debugging, which is a good thing so that I can perform small tests directly in the browser without needing to run t...
[ "visual-studio-2010", "debugging", "iis-express" ]
17
4
4,148
3
0
2011-05-30T20:05:06.937000
2011-05-30T20:08:05.043000
6,180,361
6,180,781
Possible to do with django forms?
I have a form where an administrators enters a list of comma-separated email addresses, and the form does validation on each email address before adding it to the db. I was able to do this just fine with using my own (non-django) form. I tried to migrate this over to using modelforms, but ran into a few problems. Here ...
In this case I wouldn't use a ModelForm because they are for the case that you want to represent one Model instance by one Form. Here you want to produce multiple instances with one form. So just write a common form with a custom field (there is acutally an example just for this in the Django docs ) and maybe a custom ...
Possible to do with django forms? I have a form where an administrators enters a list of comma-separated email addresses, and the form does validation on each email address before adding it to the db. I was able to do this just fine with using my own (non-django) form. I tried to migrate this over to using modelforms, ...
TITLE: Possible to do with django forms? QUESTION: I have a form where an administrators enters a list of comma-separated email addresses, and the form does validation on each email address before adding it to the db. I was able to do this just fine with using my own (non-django) form. I tried to migrate this over to ...
[ "django", "django-models", "django-forms" ]
1
2
258
1
0
2011-05-30T20:06:31.563000
2011-05-30T21:11:39.597000
6,180,370
6,180,475
Extra parentheses in CodeDom-generated code
I'm using CodeDom to generate code to be compiled later, and I've noticed that certain constructs create extra sets of parentheses. While I know they don't affect anything, they do look strange. A sample of code that does it is this: new CodeConditionStatement( new CodeBinaryOperatorExpression( new CodePropertyReferenc...
My guess would be that the authors of the CodeDom didn't feel the advantage of a bit cleaner code would weight out against using the precious CPU time required to detect the need for the parentheses. In some other cases they might have been really needed.
Extra parentheses in CodeDom-generated code I'm using CodeDom to generate code to be compiled later, and I've noticed that certain constructs create extra sets of parentheses. While I know they don't affect anything, they do look strange. A sample of code that does it is this: new CodeConditionStatement( new CodeBinary...
TITLE: Extra parentheses in CodeDom-generated code QUESTION: I'm using CodeDom to generate code to be compiled later, and I've noticed that certain constructs create extra sets of parentheses. While I know they don't affect anything, they do look strange. A sample of code that does it is this: new CodeConditionStateme...
[ "c#", ".net", "codedom" ]
3
1
424
2
0
2011-05-30T20:07:58.003000
2011-05-30T20:22:24.570000
6,180,373
6,180,440
How do I combine the graphic of a ListPlot with the graphic of a Plot?
Is there a way to combine the graphic of a ListPlot to the graphic of a Plot? (I need to plot a graphic of a function on the graphic of a ListPlot)
You can combine any graphics with the Show function like so: Show[myListPlot, myPlot] This generalizes to combining any number of plots at once: Show[p1, p2, p3, p4,...] or Show[{p1,p2,p3,p4,...}] Reference and image source: http://reference.wolfram.com/mathematica/ref/Show.html You can use Epilog as well if Show is no...
How do I combine the graphic of a ListPlot with the graphic of a Plot? Is there a way to combine the graphic of a ListPlot to the graphic of a Plot? (I need to plot a graphic of a function on the graphic of a ListPlot)
TITLE: How do I combine the graphic of a ListPlot with the graphic of a Plot? QUESTION: Is there a way to combine the graphic of a ListPlot to the graphic of a Plot? (I need to plot a graphic of a function on the graphic of a ListPlot) ANSWER: You can combine any graphics with the Show function like so: Show[myListPl...
[ "wolfram-mathematica" ]
13
18
17,674
2
0
2011-05-30T20:08:31.427000
2011-05-30T20:17:17.823000
6,180,375
6,180,675
Database scalability: Which is more important, size of table or number of queries?
I'll take a simplified StackOverflow system as an example. Although limiting some features, it would be possibly to hold Questions and Answers in the same table: (Django-esque pseudo-code) QA table: parent = ForeignKey(self) category = ForeignKey(Category) title = CharField() description = TextField() Then, to get the...
To answer your questions directly, your instinct is correct. Mixing entities (Questions and Answers) together into one table is almost always a bad idea. Logically they are 2 separate entities and physically they should be kept separate. Your second solution is the correct one. Using indexes and foreign keys to link th...
Database scalability: Which is more important, size of table or number of queries? I'll take a simplified StackOverflow system as an example. Although limiting some features, it would be possibly to hold Questions and Answers in the same table: (Django-esque pseudo-code) QA table: parent = ForeignKey(self) category = ...
TITLE: Database scalability: Which is more important, size of table or number of queries? QUESTION: I'll take a simplified StackOverflow system as an example. Although limiting some features, it would be possibly to hold Questions and Answers in the same table: (Django-esque pseudo-code) QA table: parent = ForeignKey...
[ "sql", "database-design", "scalability", "scaling" ]
2
2
253
2
0
2011-05-30T20:08:52.090000
2011-05-30T20:56:06.003000
6,180,378
6,191,808
Is it possible to avoid XML config files and still use package configuration in SSIS?
Our team manages multiple versions of dtsconfig files, one for each release environment, and I am trying to see if there is a way to avoid this and see if there is a simpler way. Our issue is with specify where to find the input file. In each release environment, the input files is on a server that is different than th...
Here is a possible solution that you can try to specify the folder path in an environment variable and use that in your package. This example doesn't use configuration file (.dtsconfig ) but it requires an Environment Variable named SSISFolderPath set up on the machine where the package is being executed. Step-by-step ...
Is it possible to avoid XML config files and still use package configuration in SSIS? Our team manages multiple versions of dtsconfig files, one for each release environment, and I am trying to see if there is a way to avoid this and see if there is a simpler way. Our issue is with specify where to find the input file....
TITLE: Is it possible to avoid XML config files and still use package configuration in SSIS? QUESTION: Our team manages multiple versions of dtsconfig files, one for each release environment, and I am trying to see if there is a way to avoid this and see if there is a simpler way. Our issue is with specify where to fi...
[ "visual-studio-2005", "ssis" ]
3
4
867
3
0
2011-05-30T20:09:24.663000
2011-05-31T18:23:06.907000
6,180,380
6,180,458
How to get user domain group?
How to get name of domain group, that user belong? I want to compare this in permission class, so ill be able to set same privileges to only specific user.
Here is an article on CodeProject that will show you exactly how to do it: http://www.codeproject.com/Articles/18102/Howto-Almost-Everything-In-Active-Directory-via-C I've linked right to the code you will need. The code (in case the link ever breaks) is as follows: public ArrayList Groups() { ArrayList groups = new Ar...
How to get user domain group? How to get name of domain group, that user belong? I want to compare this in permission class, so ill be able to set same privileges to only specific user.
TITLE: How to get user domain group? QUESTION: How to get name of domain group, that user belong? I want to compare this in permission class, so ill be able to set same privileges to only specific user. ANSWER: Here is an article on CodeProject that will show you exactly how to do it: http://www.codeproject.com/Artic...
[ "asp.net-mvc-3" ]
2
4
1,943
1
0
2011-05-30T20:09:33.247000
2011-05-30T20:19:45.207000
6,180,383
6,180,465
RMI Registry connecting to wrong address
I am trying to run a simple rmi application. However I've run into unexplainable (to me) error. I have my object CheckerImplementation that implements remote interface Checker. I am trying to set it up with this code [Instance() returns an object of CheckerImplementation type]: try { Checker stub = (Checker) UnicastRem...
Are you sure 10.105.124.34 isn't your local IP? Run ifconfig / ipconfig. This is the code responsible for choosing this address ( java.rmi.registry.LocateRegistry#getRegistry ): if (port <= 0) port = Registry.REGISTRY_PORT; if (host == null || host.length() == 0) { // If host is blank (as returned by "file:" URL in 1....
RMI Registry connecting to wrong address I am trying to run a simple rmi application. However I've run into unexplainable (to me) error. I have my object CheckerImplementation that implements remote interface Checker. I am trying to set it up with this code [Instance() returns an object of CheckerImplementation type]: ...
TITLE: RMI Registry connecting to wrong address QUESTION: I am trying to run a simple rmi application. However I've run into unexplainable (to me) error. I have my object CheckerImplementation that implements remote interface Checker. I am trying to set it up with this code [Instance() returns an object of CheckerImpl...
[ "java", "rmi" ]
2
3
4,888
3
0
2011-05-30T20:09:44.687000
2011-05-30T20:20:36.717000
6,180,393
6,185,190
Make FlipperView fullscreen when changing orientation to landscape
I've got a LinearLayout with a ViewFlipper (with images added dynamically) and more stuff inside. When going landscape I'd like to only have the ViewFlipper showing fullscreen. Is that possible? I know that I can use onConfigurationChanged to detect orientation changes, but I don't know if it's possible to make a view ...
To achieve the same effect I created a full size invisible view synchronized with the smaller ViewFlipper (ie they always show the same image), and I show/hide it when switching to landscape/portrait mode.
Make FlipperView fullscreen when changing orientation to landscape I've got a LinearLayout with a ViewFlipper (with images added dynamically) and more stuff inside. When going landscape I'd like to only have the ViewFlipper showing fullscreen. Is that possible? I know that I can use onConfigurationChanged to detect ori...
TITLE: Make FlipperView fullscreen when changing orientation to landscape QUESTION: I've got a LinearLayout with a ViewFlipper (with images added dynamically) and more stuff inside. When going landscape I'd like to only have the ViewFlipper showing fullscreen. Is that possible? I know that I can use onConfigurationCha...
[ "android", "layout", "orientation" ]
0
0
1,054
2
0
2011-05-30T20:11:36.803000
2011-05-31T08:58:03.503000
6,180,399
6,180,423
POST with JSON in format DateTime
Im struggling a lot with how I can format a NSDate to POST it as JSON to REST service.net. The accepted format is: "Date":"\/Date(459842400000+0200)\/" I have no problem with the response and to parse it to NSDate. I use JSONFramework for parsing. Any suggestions?
Take a look at the NSDateFormatter and NSDate classes. From your example it looks like you want to build a string with Date(Timestamp + TimeZone). There are two methods that do that, timeIntervalSince1970 ( NSDate ) and timeZone (NSDateFormatter).
POST with JSON in format DateTime Im struggling a lot with how I can format a NSDate to POST it as JSON to REST service.net. The accepted format is: "Date":"\/Date(459842400000+0200)\/" I have no problem with the response and to parse it to NSDate. I use JSONFramework for parsing. Any suggestions?
TITLE: POST with JSON in format DateTime QUESTION: Im struggling a lot with how I can format a NSDate to POST it as JSON to REST service.net. The accepted format is: "Date":"\/Date(459842400000+0200)\/" I have no problem with the response and to parse it to NSDate. I use JSONFramework for parsing. Any suggestions? AN...
[ "objective-c", "json", "datetime", "rest", "nsdate" ]
1
0
635
1
0
2011-05-30T20:12:53.040000
2011-05-30T20:15:22.453000
6,180,401
6,180,409
How to do multiline strings?
I am wondering how can you do multi line strings without the concat sign(+) I tried this string a = String.Format(@"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz {0}xxxxxxx", "GGG"); string b = @"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz xxxxxxx"; string c =...
There's no form of string literal which allows multi-line strings but trims whitespace at the start of each line, no.
How to do multiline strings? I am wondering how can you do multi line strings without the concat sign(+) I tried this string a = String.Format(@"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz {0}xxxxxxx", "GGG"); string b = @"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
TITLE: How to do multiline strings? QUESTION: I am wondering how can you do multi line strings without the concat sign(+) I tried this string a = String.Format(@"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz {0}xxxxxxx", "GGG"); string b = @"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
[ "c#" ]
4
6
3,539
6
0
2011-05-30T20:12:57.260000
2011-05-30T20:14:18.020000
6,180,417
6,180,531
Edit in place with javascript and update the array value?
I am not using any javascript plugin, sample dynamic select list array('sale'=>123,"buy"=>456))?> Double click on any cell. Then enter your own text and then tab out or click on other place. Currency Buy Sale USD When Double click on any cell Then enter your own text and then tab out or click on other place.so How can ...
You need to first persist these values server-side somehow (how is $exrate being stored? is it in the session, database, etc?) and then you could bind an even on the tablecell's blur event and make an ajax request to update the values in your server-side store. That said, with so many easy to use and lightweight javasc...
Edit in place with javascript and update the array value? I am not using any javascript plugin, sample dynamic select list array('sale'=>123,"buy"=>456))?> Double click on any cell. Then enter your own text and then tab out or click on other place. Currency Buy Sale USD When Double click on any cell Then enter your own...
TITLE: Edit in place with javascript and update the array value? QUESTION: I am not using any javascript plugin, sample dynamic select list array('sale'=>123,"buy"=>456))?> Double click on any cell. Then enter your own text and then tab out or click on other place. Currency Buy Sale USD When Double click on any cell T...
[ "php", "javascript" ]
0
1
330
1
0
2011-05-30T20:14:45.727000
2011-05-30T20:30:20.850000
6,180,418
6,180,481
HTML to Classic ASP - Page Loads as Lines of Code (ASP)
So I am working with: http://glustik.com/essex/index.html and trying to make it ASP like this: http://glustik.com/essex/index.asp But the ASP just loads as code. I want to use some TXT includes is why I am doing this, but it always seems to load just lines of code and not render. What am I missing here? Please let me k...
To include files, just use instead of. From your previous questions I've answered, I know that your usual webserver is IIS (and you like to use Classic ASP), but the one you're using now is Apache, which will support PHP (and so PHP includes ).
HTML to Classic ASP - Page Loads as Lines of Code (ASP) So I am working with: http://glustik.com/essex/index.html and trying to make it ASP like this: http://glustik.com/essex/index.asp But the ASP just loads as code. I want to use some TXT includes is why I am doing this, but it always seems to load just lines of code...
TITLE: HTML to Classic ASP - Page Loads as Lines of Code (ASP) QUESTION: So I am working with: http://glustik.com/essex/index.html and trying to make it ASP like this: http://glustik.com/essex/index.asp But the ASP just loads as code. I want to use some TXT includes is why I am doing this, but it always seems to load ...
[ "php", "html", "asp-classic" ]
1
5
473
3
0
2011-05-30T20:14:49.607000
2011-05-30T20:23:34.653000
6,180,419
6,180,499
NSMutableArray addObject not adding objects, and object IS allocated
I'm trying to use addObject: on an NSMutableArray with a class I've created, called Position. According to the logs, the Position instance that I am adding to the array is not nil -- I can output its properties to the log. However, the array never seems to actually take the Position. @implementation Position @synthesi...
The TT_RELEASE_SAFELY macro sends a release message to its argument before assigning it to nil (IIRC). Why is it any surprise that _positions is nil? While you may need to release _postitions for whatever reason, you must allocate and initialize a new object and assign its reference to _positions before you can add ite...
NSMutableArray addObject not adding objects, and object IS allocated I'm trying to use addObject: on an NSMutableArray with a class I've created, called Position. According to the logs, the Position instance that I am adding to the array is not nil -- I can output its properties to the log. However, the array never see...
TITLE: NSMutableArray addObject not adding objects, and object IS allocated QUESTION: I'm trying to use addObject: on an NSMutableArray with a class I've created, called Position. According to the logs, the Position instance that I am adding to the array is not nil -- I can output its properties to the log. However, t...
[ "objective-c", "cocoa-touch", "ios", "nsmutablearray" ]
0
5
856
1
0
2011-05-30T20:14:52.613000
2011-05-30T20:25:39.837000
6,180,426
6,181,651
Authenticating large file uploads
I'm implementing an API that must accept fairly large file uploads. The request will contain email and password parameters for authentication. Is it reasonable to force developers to place the email and password parameters /before/ the file data? I'm using Formidable (a Node module) to parse the body and I figured that...
I'd say yes, it's OK to insist that someone proves who he/she is (and so forth) before accepting a large amount of data from him/her.
Authenticating large file uploads I'm implementing an API that must accept fairly large file uploads. The request will contain email and password parameters for authentication. Is it reasonable to force developers to place the email and password parameters /before/ the file data? I'm using Formidable (a Node module) to...
TITLE: Authenticating large file uploads QUESTION: I'm implementing an API that must accept fairly large file uploads. The request will contain email and password parameters for authentication. Is it reasonable to force developers to place the email and password parameters /before/ the file data? I'm using Formidable ...
[ "post", "node.js", "restful-authentication", "express" ]
0
0
108
1
0
2011-05-30T20:15:34.660000
2011-05-30T23:43:59.480000
6,180,436
6,180,606
UITableView row cell controllers
My first post ever (so please be patient). I am building a group UITableView. Each section is defined and stored in an object called TableViewSectionClass. The rows is different section will use different sub-classes of UITableCell to make the rows in various sections display differently. I.e. One line in one section, ...
You can store it in a property/ivar of type Class; you retrieve the appropriate class object using the class class method, of course, something like tableViewSectionClass.tableCellClass = [MyUITableCellClass class]. You can use this class object just as you would a bare class name when calling class methods such as all...
UITableView row cell controllers My first post ever (so please be patient). I am building a group UITableView. Each section is defined and stored in an object called TableViewSectionClass. The rows is different section will use different sub-classes of UITableCell to make the rows in various sections display differentl...
TITLE: UITableView row cell controllers QUESTION: My first post ever (so please be patient). I am building a group UITableView. Each section is defined and stored in an object called TableViewSectionClass. The rows is different section will use different sub-classes of UITableCell to make the rows in various sections ...
[ "iphone", "cell", "tableview", "controllers" ]
1
0
126
1
0
2011-05-30T20:17:07.360000
2011-05-30T20:42:59.750000
6,180,437
6,180,517
HTML5 assumed Mime Types
I've been experimenting with HTML5 lately, and found it of interest that when adding javascript to pages, you no longer need to declare the scripting language as you did previously. It assumes that javascript is being used unless you specifically declare another language with a mime type. OLD: NEW: What I'm wondering i...
http://www.w3.org/TR/html5/obsolete.html looks like it sums them all up fairly well.
HTML5 assumed Mime Types I've been experimenting with HTML5 lately, and found it of interest that when adding javascript to pages, you no longer need to declare the scripting language as you did previously. It assumes that javascript is being used unless you specifically declare another language with a mime type. OLD: ...
TITLE: HTML5 assumed Mime Types QUESTION: I've been experimenting with HTML5 lately, and found it of interest that when adding javascript to pages, you no longer need to declare the scripting language as you did previously. It assumes that javascript is being used unless you specifically declare another language with ...
[ "html", "mime-types" ]
0
2
489
2
0
2011-05-30T20:17:13.643000
2011-05-30T20:28:44.577000
6,180,439
6,180,869
How to change Devise's root controller path in a Rails 3?
I have a Rails 3 app that uses Devise. How do I go about changing devise's root controller to something other than the application's root controller. In my routes.rb file, I have the applications root set as root:to => 'home#index' so http://app.com/users/sign_in will call up the devise form which is not what I want. I...
I've found the solution. I added devise_for inside the scope as so: scope:module => 'control' do constraints:subdomain => 'control' do devise_for:users,:module => 'devise' resources:offers root:to => 'offers#index' end end You need to add:module => 'devise' because the module is changed to the namespace's name, so you ...
How to change Devise's root controller path in a Rails 3? I have a Rails 3 app that uses Devise. How do I go about changing devise's root controller to something other than the application's root controller. In my routes.rb file, I have the applications root set as root:to => 'home#index' so http://app.com/users/sign_i...
TITLE: How to change Devise's root controller path in a Rails 3? QUESTION: I have a Rails 3 app that uses Devise. How do I go about changing devise's root controller to something other than the application's root controller. In my routes.rb file, I have the applications root set as root:to => 'home#index' so http://ap...
[ "ruby-on-rails", "ruby-on-rails-3", "devise" ]
1
0
1,545
2
0
2011-05-30T20:17:15.750000
2011-05-30T21:24:20.970000
6,180,447
6,180,562
Detect in Rails after_filter whether we're rendering or redirecting
I'm writing an after_filter in Rails 3, and I'd like to detect whether or not the controller (or any other filter) has issued a redirect. Is there any way to do this?
You could look at the status code. 200 is a render, 302 is a redirect. after_filter:what_happened protected def what_happened was_redirect = self.status == 302 was_render = self.status == 200 end
Detect in Rails after_filter whether we're rendering or redirecting I'm writing an after_filter in Rails 3, and I'd like to detect whether or not the controller (or any other filter) has issued a redirect. Is there any way to do this?
TITLE: Detect in Rails after_filter whether we're rendering or redirecting QUESTION: I'm writing an after_filter in Rails 3, and I'd like to detect whether or not the controller (or any other filter) has issued a redirect. Is there any way to do this? ANSWER: You could look at the status code. 200 is a render, 302 is...
[ "ruby-on-rails", "ruby-on-rails-3" ]
8
15
2,491
2
0
2011-05-30T20:18:20.797000
2011-05-30T20:35:48.333000
6,180,449
6,180,881
How can I setup a https reverse proxy to several nodejs-https-servers on the same machine (many domains and certificates, one VPS and IP)
Currently we have about 10 clients web sites and web systems on one VPS. They all share the same IP. We've built our own proxy-logic in nodejs, using node-http-proxy, and it matches the domain and passes on to either node-http-servers on different ports for different sites, or to apache if no nodejs-service is setup fo...
So basically you'd want multiple HTTPS websites hosted under the same IP, under nodejs, right? If that's the case.. you might want to consider, first of all, the compatibility: (from what I know) multiple HTTPS certificates can reside on one IP ONLY IF THE CLIENT ALSO SUPPORTS SNI ( more info @ https://sni.velox.ch/, a...
How can I setup a https reverse proxy to several nodejs-https-servers on the same machine (many domains and certificates, one VPS and IP) Currently we have about 10 clients web sites and web systems on one VPS. They all share the same IP. We've built our own proxy-logic in nodejs, using node-http-proxy, and it matches ...
TITLE: How can I setup a https reverse proxy to several nodejs-https-servers on the same machine (many domains and certificates, one VPS and IP) QUESTION: Currently we have about 10 clients web sites and web systems on one VPS. They all share the same IP. We've built our own proxy-logic in nodejs, using node-http-prox...
[ "https", "node.js", "reverse-proxy", "vps" ]
2
3
1,107
1
0
2011-05-30T20:18:46.007000
2011-05-30T21:25:09.387000
6,180,452
6,180,477
Confusion over TCP FIN =1 flag and HTTP Session End
Ok, So I guess I got things the wrong way, does a HTTP session end with the arrival of FIN = 1 or is there something else going on that makes a client application know that there is no more data to receive? I am analyzing the network stream over the wire using WireShark, and at the moment, I am having trouble understan...
In most cases you should see "Content-Length:..." HTTP header telling you how much data (in bytes) follows after "\r\n\r\n" sequence. Said sequence marks end of headers and beginning HTTP message body. http://en.wikipedia.org/wiki/HTTP_persistent_connection
Confusion over TCP FIN =1 flag and HTTP Session End Ok, So I guess I got things the wrong way, does a HTTP session end with the arrival of FIN = 1 or is there something else going on that makes a client application know that there is no more data to receive? I am analyzing the network stream over the wire using WireSha...
TITLE: Confusion over TCP FIN =1 flag and HTTP Session End QUESTION: Ok, So I guess I got things the wrong way, does a HTTP session end with the arrival of FIN = 1 or is there something else going on that makes a client application know that there is no more data to receive? I am analyzing the network stream over the ...
[ "http", "session", "tcp" ]
1
2
779
1
0
2011-05-30T20:18:54.863000
2011-05-30T20:22:43.500000
6,180,454
6,182,632
How do I append data to a jquery-ujs post request in Rails?
I have an Ajax form with a data-remote="true" attribute which I'm submitting to a controller in rails. What I'd like to do is to use the jquery-ujs event system to append data to the request before it gets sent to the server. Something like this: $("#my_form").bind('ajax:beforeSend', function(xhr, settings){ // seriali...
I figured this one out myself in the end. It appears that despite what the docs say, the ajax:beforeSend hook actually takes three arguments. According to this helpful blog post they are event, xhr and settings in that order. The form data I was looking for is in the in the data attribute of the settings argument. So b...
How do I append data to a jquery-ujs post request in Rails? I have an Ajax form with a data-remote="true" attribute which I'm submitting to a controller in rails. What I'd like to do is to use the jquery-ujs event system to append data to the request before it gets sent to the server. Something like this: $("#my_form")...
TITLE: How do I append data to a jquery-ujs post request in Rails? QUESTION: I have an Ajax form with a data-remote="true" attribute which I'm submitting to a controller in rails. What I'd like to do is to use the jquery-ujs event system to append data to the request before it gets sent to the server. Something like t...
[ "ruby-on-rails", "ruby-on-rails-3", "jquery" ]
9
18
5,393
3
0
2011-05-30T20:19:12.983000
2011-05-31T03:07:38.807000
6,180,455
6,192,765
How to react to Mouse Scroll Wheel on ToolStripDropDownButton's DropDownMenu?
I have a normal WinForms ToolStripDropDownButton's drop down menu that is populated dynamically. In some cases the number of items on the drop down extend beyond the screen dimensions and the overflow up/down scroll buttons appear. Instead of the user clicking on the overflow buttons to bring the rest of the menu items...
Those controls don't handle the Mouse Wheel inherently, so there is no way to make it happen without busting things open with Reflection - which will have it's own problems.
How to react to Mouse Scroll Wheel on ToolStripDropDownButton's DropDownMenu? I have a normal WinForms ToolStripDropDownButton's drop down menu that is populated dynamically. In some cases the number of items on the drop down extend beyond the screen dimensions and the overflow up/down scroll buttons appear. Instead of...
TITLE: How to react to Mouse Scroll Wheel on ToolStripDropDownButton's DropDownMenu? QUESTION: I have a normal WinForms ToolStripDropDownButton's drop down menu that is populated dynamically. In some cases the number of items on the drop down extend beyond the screen dimensions and the overflow up/down scroll buttons ...
[ "c#", ".net", "winforms" ]
2
1
638
1
0
2011-05-30T20:19:37.123000
2011-05-31T19:51:30.127000
6,180,461
6,181,171
Using Pickle with spork?
Pickle doesn't seem to be loading for me when I'm using spork... If I run my cucumber normally, the step works as expected: ➜ bundle exec cucumber And a product exists with name: "Windex", category: "Household Cleaners", description: "nasty bluish stuff" # features/step_definitions/pickle_steps.rb:4 But if I run it th...
So it turns out there is an extra config line necessary for features/support/env.rb when using spork in order to have Pickle be able to pickup on AR models, a la this gist: In features/support/env.rb Spork.prefork do ENV["RAILS_ENV"] ||= "test" require File.expand_path(File.dirname(__FILE__) + '/../../config/environmen...
Using Pickle with spork? Pickle doesn't seem to be loading for me when I'm using spork... If I run my cucumber normally, the step works as expected: ➜ bundle exec cucumber And a product exists with name: "Windex", category: "Household Cleaners", description: "nasty bluish stuff" # features/step_definitions/pickle_step...
TITLE: Using Pickle with spork? QUESTION: Pickle doesn't seem to be loading for me when I'm using spork... If I run my cucumber normally, the step works as expected: ➜ bundle exec cucumber And a product exists with name: "Windex", category: "Household Cleaners", description: "nasty bluish stuff" # features/step_defin...
[ "cucumber", "pickle", "spork" ]
0
1
171
1
0
2011-05-30T20:19:52.937000
2011-05-30T22:14:13.363000
6,180,466
6,180,614
Long running Entity Framework transaction
when user opens edit form for some entity, I would like to LOCK this entity and let her make any changes. During editing she needs to be sure that nobody else does any edit operations on it. How can I lock an entity in Entity Framework (C#) 4+, database MS SQL Server 2008? Thank you so much in advance!
There are two ways to handle these situations: Optimistic concurrency where you allow concurrent edits and inserts and catch exception if something violates concurrency rules. Optimistic concurrency is enforced by unique constraints guarding inserts of the same items and by timestamps / row version columns guarding con...
Long running Entity Framework transaction when user opens edit form for some entity, I would like to LOCK this entity and let her make any changes. During editing she needs to be sure that nobody else does any edit operations on it. How can I lock an entity in Entity Framework (C#) 4+, database MS SQL Server 2008? Than...
TITLE: Long running Entity Framework transaction QUESTION: when user opens edit form for some entity, I would like to LOCK this entity and let her make any changes. During editing she needs to be sure that nobody else does any edit operations on it. How can I lock an entity in Entity Framework (C#) 4+, database MS SQL...
[ "c#", ".net", "entity-framework", "sql-server-2008", "transactions" ]
4
3
780
2
0
2011-05-30T20:20:37.777000
2011-05-30T20:44:21.840000
6,180,473
6,180,525
How can I add a zero to the left of a 1 digit integer in Objective C?
How can I add a zero to the left of a 1 digit integer? Is there any objective C function to perform this? I am needing this so I can have only one NSDateFormat @"ddMMyyyy" thanks I want to add a zero to the left of an integer which is less than 10, I don't want to use an if statement. Is there any function or way to ac...
Use the string format specifier %02d and any single digit integer will be padded with a zero in a string.
How can I add a zero to the left of a 1 digit integer in Objective C? How can I add a zero to the left of a 1 digit integer? Is there any objective C function to perform this? I am needing this so I can have only one NSDateFormat @"ddMMyyyy" thanks I want to add a zero to the left of an integer which is less than 10, I...
TITLE: How can I add a zero to the left of a 1 digit integer in Objective C? QUESTION: How can I add a zero to the left of a 1 digit integer? Is there any objective C function to perform this? I am needing this so I can have only one NSDateFormat @"ddMMyyyy" thanks I want to add a zero to the left of an integer which ...
[ "objective-c", "digits" ]
2
29
6,504
2
0
2011-05-30T20:22:18.730000
2011-05-30T20:29:29.113000
6,180,479
6,180,787
Windows Mobile thread scheduling
I have an issue about Windows Mobile thread scheduling: I have an application (C#) that detects incoming calls on the telephone. It is said that the operating system is "fully multitasking and multithreaded". Still, I can detect an incoming call, but after the call is detected, the system application, showing that ther...
All solutions you can come up with for this are based on one thing: a hack. Windows Mobile is not meant to be customized as you wish - Windows CE is. You cannot override the default Windows Mobile phonecall UI, but you can put your own app above it with the correct API calls. However, it will flicker and it will look l...
Windows Mobile thread scheduling I have an issue about Windows Mobile thread scheduling: I have an application (C#) that detects incoming calls on the telephone. It is said that the operating system is "fully multitasking and multithreaded". Still, I can detect an incoming call, but after the call is detected, the syst...
TITLE: Windows Mobile thread scheduling QUESTION: I have an issue about Windows Mobile thread scheduling: I have an application (C#) that detects incoming calls on the telephone. It is said that the operating system is "fully multitasking and multithreaded". Still, I can detect an incoming call, but after the call is ...
[ "c#", "multithreading", "windows-mobile", "focus", "telephony" ]
0
1
451
1
0
2011-05-30T20:23:03.890000
2011-05-30T21:12:05.990000
6,180,483
6,180,542
JQuery: Using :not(.active) selector, and adding an Active class, to the item selected
I'm new to Javascript and am having a bit of an issue with using a NOT selector, and adding a class during the function, hopefully this will make sense to someone. I am creating a small gallery, and my goal is to have clickable navigation, however the active image will redirect to another page when clicked. Code is as ...
You are binding the click event to $("ul#mainGallery li:not(.active) a") whenever that code is run (presumably on document load). The items which are not active at that point will have that item bound, and changing the class afterwards on other items won't bind this event to them. You will need to either change how you...
JQuery: Using :not(.active) selector, and adding an Active class, to the item selected I'm new to Javascript and am having a bit of an issue with using a NOT selector, and adding a class during the function, hopefully this will make sense to someone. I am creating a small gallery, and my goal is to have clickable navig...
TITLE: JQuery: Using :not(.active) selector, and adding an Active class, to the item selected QUESTION: I'm new to Javascript and am having a bit of an issue with using a NOT selector, and adding a class during the function, hopefully this will make sense to someone. I am creating a small gallery, and my goal is to ha...
[ "javascript", "jquery", "css-selectors" ]
0
2
9,794
2
0
2011-05-30T20:23:36.903000
2011-05-30T20:32:19.380000
6,180,487
6,190,208
Rails - Amazon aaws LoadError; .bash_profile snafu
I have been working with the Amazon aaws 0.8.1 gem, with direction from: http://www.jeffreyjason.com/2010/07/12/amazon-product-advertising-api-w-ruby/ First, I installed the gem by adding gem ruby-aaws in my gemfile, then bundle installing and it installed successfully. Then I added the necessary information outlined i...
.bash_profile is not on window's OS's, so trying to find the.bash_profile is a fool's errand. The real question is how to modify RUBYOPT on a windows system (which it seems the.bash_profile/.bashrc is used for on other OS's). First, close down your ruby command line if its open, and go to the Start Menu, then the Contr...
Rails - Amazon aaws LoadError; .bash_profile snafu I have been working with the Amazon aaws 0.8.1 gem, with direction from: http://www.jeffreyjason.com/2010/07/12/amazon-product-advertising-api-w-ruby/ First, I installed the gem by adding gem ruby-aaws in my gemfile, then bundle installing and it installed successfully...
TITLE: Rails - Amazon aaws LoadError; .bash_profile snafu QUESTION: I have been working with the Amazon aaws 0.8.1 gem, with direction from: http://www.jeffreyjason.com/2010/07/12/amazon-product-advertising-api-w-ruby/ First, I installed the gem by adding gem ruby-aaws in my gemfile, then bundle installing and it inst...
[ "ruby-on-rails", "amazon-web-services" ]
0
1
307
1
0
2011-05-30T20:24:17.600000
2011-05-31T15:51:21.740000
6,180,495
6,180,507
Expose function in ruby on rails
I am looking at a rails app and at the top of every controller there is a block of code that looks something like this expose(:var) {Model.find params[:var_id]} I understand what is inside the block just fine but... I cannot find any documentation on what the expose function does where it comes from or anything I have ...
This is probably referencing the decent_exposure gem. You can learn more about it here: http://railscasts.com/episodes/259-decent-exposure Source: https://github.com/voxdolo/decent_exposure
Expose function in ruby on rails I am looking at a rails app and at the top of every controller there is a block of code that looks something like this expose(:var) {Model.find params[:var_id]} I understand what is inside the block just fine but... I cannot find any documentation on what the expose function does where ...
TITLE: Expose function in ruby on rails QUESTION: I am looking at a rails app and at the top of every controller there is a block of code that looks something like this expose(:var) {Model.find params[:var_id]} I understand what is inside the block just fine but... I cannot find any documentation on what the expose fu...
[ "ruby-on-rails-3" ]
16
28
13,098
3
0
2011-05-30T20:25:10.983000
2011-05-30T20:27:07.227000
6,180,503
6,180,700
ms-access: doing repetitive processes with vba/sql
i have an access database backend that contains three tables. i have distributed the front end to several users. this is a very simple database with minimal functionality. i need to import certain rows from a file every hour into one of the tables in the database. i would like to know what is the best way to automate t...
You could have for example: a ms-access file with all necessary code to run the import proc a BAT file containing the command line(s) that will run this ms-access file with all requested parameters. Check ms-access command line parameters to see the available options. a task scheduler service software to launch the BAT...
ms-access: doing repetitive processes with vba/sql i have an access database backend that contains three tables. i have distributed the front end to several users. this is a very simple database with minimal functionality. i need to import certain rows from a file every hour into one of the tables in the database. i wo...
TITLE: ms-access: doing repetitive processes with vba/sql QUESTION: i have an access database backend that contains three tables. i have distributed the front end to several users. this is a very simple database with minimal functionality. i need to import certain rows from a file every hour into one of the tables in ...
[ "sql", "ms-access", "vba", "service" ]
1
4
656
2
0
2011-05-30T20:26:28.883000
2011-05-30T21:00:39.330000
6,180,506
6,180,550
How can I get all the file names of documents in my sandbox?
I have the following code: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; However I am clueless as to how to get all the files names and assign them to an array? Any help would be appreciated.
NSFileManager has a method called contentsOfDirectoryAtPath:error: that returns an array of all the files in that directory. You can use it like this: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); if([paths count] > 0) { NSString *documentsDirectory = [paths objectAtI...
How can I get all the file names of documents in my sandbox? I have the following code: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; However I am clueless as to how to get all the files names and assign them to ...
TITLE: How can I get all the file names of documents in my sandbox? QUESTION: I have the following code: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; However I am clueless as to how to get all the files names a...
[ "iphone", "ios" ]
5
11
3,457
3
0
2011-05-30T20:27:05.047000
2011-05-30T20:33:47.863000
6,180,508
6,180,544
C# Closure binding
Given the following, when is foo bound? System.Timer t = new System.Timer( (a)=>{ var foo = Messages.SelectedItem as FooBar; }); Is it bound then the anonymous method is executed, or when the method is defined?
foo is not bound at all, as it's internal to the anonymous method. It will call Messages.SelectedItem. If Messages is an instance property, what is bound is the 'this' instance, which is used to get at Messages.
C# Closure binding Given the following, when is foo bound? System.Timer t = new System.Timer( (a)=>{ var foo = Messages.SelectedItem as FooBar; }); Is it bound then the anonymous method is executed, or when the method is defined?
TITLE: C# Closure binding QUESTION: Given the following, when is foo bound? System.Timer t = new System.Timer( (a)=>{ var foo = Messages.SelectedItem as FooBar; }); Is it bound then the anonymous method is executed, or when the method is defined? ANSWER: foo is not bound at all, as it's internal to the anonymous meth...
[ "c#", "closures" ]
3
4
267
2
0
2011-05-30T20:27:08.067000
2011-05-30T20:33:18.457000
6,180,514
6,180,639
Visual Studio - correcting different behaviour in an optimized build
I have a project I'm working on. I recently switched it to release mode with full optimization just to get an idea how some things will perform out of debug mode. On doing so however, I noticed that there were a few irregularities. In my particular case, I have a sprite who's alpha value is different (more transparent)...
This type of thing can be very difficult to debug. I suggest that you replace the optimization one-by-one, until you find the one that causes the anomly. You can then narrow the issue further by applying that optimization to each translation unit (file) one-by-one. Another way to deal with this issue is essentially a d...
Visual Studio - correcting different behaviour in an optimized build I have a project I'm working on. I recently switched it to release mode with full optimization just to get an idea how some things will perform out of debug mode. On doing so however, I noticed that there were a few irregularities. In my particular ca...
TITLE: Visual Studio - correcting different behaviour in an optimized build QUESTION: I have a project I'm working on. I recently switched it to release mode with full optimization just to get an idea how some things will perform out of debug mode. On doing so however, I noticed that there were a few irregularities. I...
[ "c++", "visual-studio", "visual-studio-2010", "debugging", "release" ]
1
3
203
3
0
2011-05-30T20:28:24.417000
2011-05-30T20:47:56.313000
6,180,521
6,190,499
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3-6: invalid data
how does the unicode thing works on python2? i just dont get it. here i download data from a server and parse it for JSON. Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/eventlet-0.9.12-py2.6.egg/eventlet/hubs/poll.py", line 92, in wait readers.get(fileno, noop).cb(fileno) File "/usr/lo...
The string you're trying to parse as a JSON is not encoded in UTF-8. Most likely it is encoded in ISO-8859-1. Try the following: json.loads(unicode(opener.open(...), "ISO-8859-1")) That will handle any umlauts that might get in the JSON message. You should read Joel Spolsky's The Absolute Minimum Every Software Develop...
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3-6: invalid data how does the unicode thing works on python2? i just dont get it. here i download data from a server and parse it for JSON. Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/eventlet-0.9.12-py2.6.egg/eventlet/...
TITLE: UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3-6: invalid data QUESTION: how does the unicode thing works on python2? i just dont get it. here i download data from a server and parse it for JSON. Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/eventlet-0.9.12-p...
[ "python", "unicode", "python-2.x" ]
52
85
163,854
8
0
2011-05-30T20:28:58.210000
2011-05-31T16:16:24.830000
6,180,524
6,188,493
Typed dataset ""Operand type clash"" error updating XML column to SQL
I have a typed dataset which I designed using the dataset designer and a SQL 2005 DB. I used the SQL server explorer and simply dragged my tables into the designer. One of the columns in my table is an XML field, which the designer sets as a System.String type. There is no option for an XML data type in the typed datas...
I found the answer for my own question. The table that was being updated existed in a second database on the same SQL server (there are many tables in the dataset, but this one does not exist in the main database). Somebody had added “databasename.dbo.tablename” to the INSERT command expecting it to update on the other...
Typed dataset ""Operand type clash"" error updating XML column to SQL I have a typed dataset which I designed using the dataset designer and a SQL 2005 DB. I used the SQL server explorer and simply dragged my tables into the designer. One of the columns in my table is an XML field, which the designer sets as a System.S...
TITLE: Typed dataset ""Operand type clash"" error updating XML column to SQL QUESTION: I have a typed dataset which I designed using the dataset designer and a SQL 2005 DB. I used the SQL server explorer and simply dragged my tables into the designer. One of the columns in my table is an XML field, which the designer ...
[ ".net", "sql-server-2005", "strongly-typed-dataset" ]
0
0
284
1
0
2011-05-30T20:29:23.390000
2011-05-31T13:41:36.887000
6,180,537
6,180,548
Modify wordpress site independently of theme
I am using a WordPress theme in a site. I want to edit the bottom of the page, replacing the WordPress default message and replace it with a custom message. The problem is, the change I want to make should be independent of the theme. I can change that editing footer.php using admin panel. Problem is, I do not want the...
This isn't the way wordpress works I am afraid. Anything that is tied to the database (posts, pages etc etc) will remain from theme to theme, but any changes you make to the theme files directly (editing default footer text) are tied to not just that theme, but those specific files. If you change the theme, or update t...
Modify wordpress site independently of theme I am using a WordPress theme in a site. I want to edit the bottom of the page, replacing the WordPress default message and replace it with a custom message. The problem is, the change I want to make should be independent of the theme. I can change that editing footer.php usi...
TITLE: Modify wordpress site independently of theme QUESTION: I am using a WordPress theme in a site. I want to edit the bottom of the page, replacing the WordPress default message and replace it with a custom message. The problem is, the change I want to make should be independent of the theme. I can change that edit...
[ "wordpress" ]
1
0
117
2
0
2011-05-30T20:31:03.510000
2011-05-30T20:33:41.750000
6,180,539
6,180,549
What's this new `#!` in URL convention?
Possible Duplicate: What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for? I noticed that some popular sites started switching to a new URL (convention?), in which a URI segment is no longer prefixed by / but rather by #!/. For example, if you type into Twitter http://twitter.com/stackoverflow, it will ...
It was started by Google ( http://code.google.com/web/ajaxcrawling/ ) If you're running an AJAX application with content that you'd like to appear in search results, we have a new process that, when implemented, can help Google (and potentially other search engines) crawl and index your content. Historically, AJAX appl...
What's this new `#!` in URL convention? Possible Duplicate: What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for? I noticed that some popular sites started switching to a new URL (convention?), in which a URI segment is no longer prefixed by / but rather by #!/. For example, if you type into Twitter ht...
TITLE: What's this new `#!` in URL convention? QUESTION: Possible Duplicate: What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for? I noticed that some popular sites started switching to a new URL (convention?), in which a URI segment is no longer prefixed by / but rather by #!/. For example, if you ty...
[ "url", "url-rewriting", "hashbang" ]
4
2
952
2
0
2011-05-30T20:31:06.403000
2011-05-30T20:33:47.710000
6,180,556
6,180,586
using negative conditions within regular expressions
Is it possible to use negative matches within gsub expressions? I want to replace strings starting by hello except those starting by hello Peter my-string.gsub(/^hello@/i, '') What should I put instead of the @?
Sounds like you want a negative lookahead: >> "hello foo".gsub(/hello (?!peter)/, 'lala ') #=> "lala foo" >> "hello peter".gsub(/hello (?!peter)/, 'lala ') #=> "hello peter"
using negative conditions within regular expressions Is it possible to use negative matches within gsub expressions? I want to replace strings starting by hello except those starting by hello Peter my-string.gsub(/^hello@/i, '') What should I put instead of the @?
TITLE: using negative conditions within regular expressions QUESTION: Is it possible to use negative matches within gsub expressions? I want to replace strings starting by hello except those starting by hello Peter my-string.gsub(/^hello@/i, '') What should I put instead of the @? ANSWER: Sounds like you want a negat...
[ "ruby", "regex", "gsub" ]
6
7
4,446
2
0
2011-05-30T20:34:50.393000
2011-05-30T20:41:11.517000
6,180,563
6,180,911
Dropdown list not displaying with textfield in form
I've written a JSP that has a form and the form contains a dropdown list and a texfield. The dropdown is populated from a mysql database using beans which act as DAOs and DTOs. Problem is the dropdown doesn't display the values from the database but when I remove the textfield from the form and leave only the dropdown,...
In your second JSP (do you really have two separate JSP files?) you have a <%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%> instead of <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> Fix it accordingly. Then the tags will be parsed. I'd also get rid of <%@ page import="java.util.*" %> si...
Dropdown list not displaying with textfield in form I've written a JSP that has a form and the form contains a dropdown list and a texfield. The dropdown is populated from a mysql database using beans which act as DAOs and DTOs. Problem is the dropdown doesn't display the values from the database but when I remove the ...
TITLE: Dropdown list not displaying with textfield in form QUESTION: I've written a JSP that has a form and the form contains a dropdown list and a texfield. The dropdown is populated from a mysql database using beans which act as DAOs and DTOs. Problem is the dropdown doesn't display the values from the database but ...
[ "jsp" ]
0
1
2,819
1
0
2011-05-30T20:35:52.877000
2011-05-30T21:29:45.400000
6,180,569
6,184,155
Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs
Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs. Please do not conflict with "how to set those limits in various Linux distros" questions. I am asking: Is there any good guide to explain in detail, parameters used for ulimit? (> 2.6 series kernels) Is there any good guide to s...
For fs.file-max, I think in almost all cases you can just leave it alone. If you are running a very busy server of some kind and actually running out of file handles, then you can increase it -- but the value you need to increase it to will depend on exactly what kind of server you are running and what the load on it i...
Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs. Please do not conflict with "how to set those limits in various Linux distros" questions. I am asking: Is there any good guide to explain...
TITLE: Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs QUESTION: Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs. Please do not conflict with "how to set those limits in various Linux distros" questions. I am asking: Is there any goo...
[ "linux-kernel", "ulimit", "sysctl" ]
13
16
18,436
2
0
2011-05-30T20:37:23.813000
2011-05-31T07:14:47.077000
6,180,577
6,180,979
Need expert advice on complex nested queries
I have 3 queries. I was told that they were potentially inefficient so I was wondering if anyone who is experienced could suggest anything. The logic is somewhat complex so bear with me. I have two tables: shoutbox, and topic. Topic stores all information on topics that were created, while shoutbox stores all comments ...
Make the first query: SELECT reply_chunk_id FROM shoutbox GROUP BY reply_chunk_id HAVING count(*) > 1 ORDER BY timestamp DESC This does the same, but is faster. Make sure you have an index on reply_chunk_id. The second query: SELECT user,reply_chunk_id, MIN(timestamp) AS grp_timestamp FROM shoutbox WHERE reply_chunk_id...
Need expert advice on complex nested queries I have 3 queries. I was told that they were potentially inefficient so I was wondering if anyone who is experienced could suggest anything. The logic is somewhat complex so bear with me. I have two tables: shoutbox, and topic. Topic stores all information on topics that were...
TITLE: Need expert advice on complex nested queries QUESTION: I have 3 queries. I was told that they were potentially inefficient so I was wondering if anyone who is experienced could suggest anything. The logic is somewhat complex so bear with me. I have two tables: shoutbox, and topic. Topic stores all information o...
[ "php", "mysql", "sql" ]
1
3
389
2
0
2011-05-30T20:39:04.447000
2011-05-30T21:41:42.047000
6,180,581
6,180,637
Is there an API to read an EDMX file
If I have an.edmx file, is there a way to programmatically access it? I could use XDocument but maybe there is already an api for this?
EDMX file is only for designer. It is even not distributed with your application as is. EDMX contains four components - SSDL, MSL, CSDL and designer information. First three components are extracted during building application and are stored either as resource XML files in the assembly or shipped as external XML files....
Is there an API to read an EDMX file If I have an.edmx file, is there a way to programmatically access it? I could use XDocument but maybe there is already an api for this?
TITLE: Is there an API to read an EDMX file QUESTION: If I have an.edmx file, is there a way to programmatically access it? I could use XDocument but maybe there is already an api for this? ANSWER: EDMX file is only for designer. It is even not distributed with your application as is. EDMX contains four components - ...
[ "entity-framework" ]
1
2
1,578
2
0
2011-05-30T20:39:58.020000
2011-05-30T20:47:42.697000
6,180,592
6,180,822
web2py with configuration per environment
Does web2py support, out of the box, configuration per environment (development, staging, production, etc.)? Something similar to Grails and Ruby on Rails. I read/skimmed through official book but could not find anything.
The web2py developers do not believe that is a good approach. We do not believe in the sharp distinction between development and production. For eaxmple, if an app has a bug, the bug is always recorded and logged, never shown to the user, only shown to the administrator. Moreover web2py does not have a configuration fi...
web2py with configuration per environment Does web2py support, out of the box, configuration per environment (development, staging, production, etc.)? Something similar to Grails and Ruby on Rails. I read/skimmed through official book but could not find anything.
TITLE: web2py with configuration per environment QUESTION: Does web2py support, out of the box, configuration per environment (development, staging, production, etc.)? Something similar to Grails and Ruby on Rails. I read/skimmed through official book but could not find anything. ANSWER: The web2py developers do not ...
[ "python", "web2py" ]
3
4
907
1
0
2011-05-30T20:42:01.667000
2011-05-30T21:16:01.013000
6,180,593
6,180,916
Is it possible to debug a C++builder dll from Delphi if I have the dll sourcecode?
I have an application written in Delphi 7 which uses a c++ dll written in BCB 5. I want to debug this dll from the Delphi IDE is this possible? If it's possible which are the steps to debug? As additional information I have the full source code of the dll.
It has been a while since I have dealt with C++ / Delphi together. But if I remember correctly, you can use the BCB IDE to run the Delphi application (compiled already) that uses your DLL. Basically, in your project settings in BCB, you can set a program to run when you click the "run" button, and I believe that you wi...
Is it possible to debug a C++builder dll from Delphi if I have the dll sourcecode? I have an application written in Delphi 7 which uses a c++ dll written in BCB 5. I want to debug this dll from the Delphi IDE is this possible? If it's possible which are the steps to debug? As additional information I have the full sour...
TITLE: Is it possible to debug a C++builder dll from Delphi if I have the dll sourcecode? QUESTION: I have an application written in Delphi 7 which uses a c++ dll written in BCB 5. I want to debug this dll from the Delphi IDE is this possible? If it's possible which are the steps to debug? As additional information I ...
[ "delphi", "debugging", "dll", "delphi-7", "c++builder-5" ]
7
4
764
3
0
2011-05-30T20:42:01.667000
2011-05-30T21:30:13.237000
6,180,595
6,180,672
OnClick event on canvas.drawCircle Android
I want to display few circles in google maps on my android application. I want that when user clicks these circle it should show a toast based on the circle clicked. I am using code.google.android.maps.overlay to display circle on a specific lat/long. I am unable to find a solution.
Extend the ItemizedOverlay class public class MapItemizedOverlay extends ItemizedOverlay { private ArrayList mOverlays = new ArrayList (); private Drawable myPic; private Activity mapActivity; public MapItemizedOverlay(Drawable defaultMarker, Activity context) { super(boundCenterBottom(defaultMarker)); this.mapActivi...
OnClick event on canvas.drawCircle Android I want to display few circles in google maps on my android application. I want that when user clicks these circle it should show a toast based on the circle clicked. I am using code.google.android.maps.overlay to display circle on a specific lat/long. I am unable to find a sol...
TITLE: OnClick event on canvas.drawCircle Android QUESTION: I want to display few circles in google maps on my android application. I want that when user clicks these circle it should show a toast based on the circle clicked. I am using code.google.android.maps.overlay to display circle on a specific lat/long. I am un...
[ "android", "google-maps", "canvas", "bitmap", "onclick" ]
0
1
1,318
1
0
2011-05-30T20:42:05.670000
2011-05-30T20:55:34.487000
6,180,599
6,183,734
dwscript - how to enumerate all available types?
Hey, Delphi Web Script is really great scripting engine. I'm trying to use it in one of my projects. However, I'm not sure if it is possible to enumerate all the types, functions that are available within the scripting engine, e.g. I want to have a list with all the methods which I could use while scripting (this inclu...
You'll find all the types in the symbol tables (TSymbolTable) that are attached to every compiled DWScript entity, you have one in the compiled programs, in the compiled functions/methods, and in the blocks that have a scope. If you want to enumerate all the symbols visible in a particular scope, you'll have not only t...
dwscript - how to enumerate all available types? Hey, Delphi Web Script is really great scripting engine. I'm trying to use it in one of my projects. However, I'm not sure if it is possible to enumerate all the types, functions that are available within the scripting engine, e.g. I want to have a list with all the meth...
TITLE: dwscript - how to enumerate all available types? QUESTION: Hey, Delphi Web Script is really great scripting engine. I'm trying to use it in one of my projects. However, I'm not sure if it is possible to enumerate all the types, functions that are available within the scripting engine, e.g. I want to have a list...
[ "delphi", "dwscript" ]
7
2
436
1
0
2011-05-30T20:42:19.430000
2011-05-31T06:23:53.597000
6,180,605
6,180,665
jQuery Flickering
I have a Rails 3 application w/ the following in one of my views:...some comment text... Edit Then in my application.js $('.comment').live('mouseover',function() { $(this).show(); }).live('mouseout',function(){ $(this).hide(); }); The problem is that when you move your mouse over.comment mouseover seems to get called r...
The event gets called more than once due to event bubbling, what you want to do is: $('.comment.actions').live('mouseover',function(e) { $(this).show(); e.stopPropagation(); e.preventDefault(); }).live('mouseout',function(e){ $(this).hide(); e.stopPropagation(); e.preventDefault(); });
jQuery Flickering I have a Rails 3 application w/ the following in one of my views:...some comment text... Edit Then in my application.js $('.comment').live('mouseover',function() { $(this).show(); }).live('mouseout',function(){ $(this).hide(); }); The problem is that when you move your mouse over.comment mouseover see...
TITLE: jQuery Flickering QUESTION: I have a Rails 3 application w/ the following in one of my views:...some comment text... Edit Then in my application.js $('.comment').live('mouseover',function() { $(this).show(); }).live('mouseout',function(){ $(this).hide(); }); The problem is that when you move your mouse over.com...
[ "jquery", "ruby-on-rails", "ruby-on-rails-3" ]
1
1
318
3
0
2011-05-30T20:42:57.853000
2011-05-30T20:54:32.983000
6,180,609
6,180,817
Group and Check-mark using Python
I have several files, each of which has data like this (filename:data inside separated by newline): Mike: Plane\nCar Paula: Plane\nTrain\nBoat\nCar Bill: Boat\nTrain Scott: Car How can I create a csv file using python that groups all the different vehicles and then puts a X on the applicable person, like:
Assuming those line numbers aren't in there (easy enough to fix if they are), and with an input file like following: Mike: Plane Car Paula: Plane Train Boat Car Bill: Boat Train Scott: Car Solution can be found here: https://gist.github.com/999481 import sys from collections import defaultdict import csv # see http://...
Group and Check-mark using Python I have several files, each of which has data like this (filename:data inside separated by newline): Mike: Plane\nCar Paula: Plane\nTrain\nBoat\nCar Bill: Boat\nTrain Scott: Car How can I create a csv file using python that groups all the different vehicles and then puts a X on the appl...
TITLE: Group and Check-mark using Python QUESTION: I have several files, each of which has data like this (filename:data inside separated by newline): Mike: Plane\nCar Paula: Plane\nTrain\nBoat\nCar Bill: Boat\nTrain Scott: Car How can I create a csv file using python that groups all the different vehicles and then pu...
[ "python", "csv" ]
1
1
489
4
0
2011-05-30T20:43:35.037000
2011-05-30T21:15:23.337000
6,180,610
6,180,655
UISwitch returns NULL?
I have a UISwitch that returns (null) for some reason. Below is my code: AddAlbumViewController: //.h IBOutlet UISwitch *photostreamSwitch; @property (nonatomic, retain) IBOutlet UISwitch *photostreamSwitch; //.m @synthesize photostreamSwitch; photostreamSwitch = [[UISwitch alloc] init]; NSLog(@"photostreamSwitch: %@"...
The view controller is created but its view (i.e. its nib) is not loaded yet, therefore the property isn't connected yet. You can force the nib to load by accessing the view member of the controller: - (IBAction)createAlbum:(id)sender { AddAlbumViewController *addAlbumViewController = [[AddAlbumViewController alloc] in...
UISwitch returns NULL? I have a UISwitch that returns (null) for some reason. Below is my code: AddAlbumViewController: //.h IBOutlet UISwitch *photostreamSwitch; @property (nonatomic, retain) IBOutlet UISwitch *photostreamSwitch; //.m @synthesize photostreamSwitch; photostreamSwitch = [[UISwitch alloc] init]; NSLog(@...
TITLE: UISwitch returns NULL? QUESTION: I have a UISwitch that returns (null) for some reason. Below is my code: AddAlbumViewController: //.h IBOutlet UISwitch *photostreamSwitch; @property (nonatomic, retain) IBOutlet UISwitch *photostreamSwitch; //.m @synthesize photostreamSwitch; photostreamSwitch = [[UISwitch all...
[ "objective-c", "uinavigationcontroller", "null" ]
0
2
369
1
0
2011-05-30T20:43:57.767000
2011-05-30T20:52:25.207000
6,180,612
6,180,708
WPF - behaviour of button in template
I want to create button that always has the same behaviour (close window). Can I add this behaviour to a template?
Templates in WPF are used for layout and data. I am assuming you are looking to attach your code-behind actions to the button template. This won't be done through a template. Instead, you probably want to look at building a custom control. This way you can put your code-behind and your button together. Here is an artic...
WPF - behaviour of button in template I want to create button that always has the same behaviour (close window). Can I add this behaviour to a template?
TITLE: WPF - behaviour of button in template QUESTION: I want to create button that always has the same behaviour (close window). Can I add this behaviour to a template? ANSWER: Templates in WPF are used for layout and data. I am assuming you are looking to attach your code-behind actions to the button template. This...
[ "wpf", "templates" ]
1
0
185
1
0
2011-05-30T20:43:59.763000
2011-05-30T21:01:36.760000
6,180,616
6,181,483
How to get all strings from all nested tags of a xml tag with python's lxml.etree library?
I have an xml file in which it is possible that the following occurs:... This is some text about some issue I have, parsing xml... Edit: Let's assume, the tags could be nested more than only level, meaning......... I came up with this using the python lxml.etree library. context = etree.iterparse(PATH_TO_XML, dtd_valid...
This question has been asked many times. You can use lxml.html.text_content() method. import lxml.html t = lxml.html.fromstring("...") t.text_content() REF: Filter out HTML tags and resolve entities in python OR use lxml.etree.strip_tags() method. REF: In lxml, how do I remove a tag but retain all contents?
How to get all strings from all nested tags of a xml tag with python's lxml.etree library? I have an xml file in which it is possible that the following occurs:... This is some text about some issue I have, parsing xml... Edit: Let's assume, the tags could be nested more than only level, meaning......... I came up with...
TITLE: How to get all strings from all nested tags of a xml tag with python's lxml.etree library? QUESTION: I have an xml file in which it is possible that the following occurs:... This is some text about some issue I have, parsing xml... Edit: Let's assume, the tags could be nested more than only level, meaning.........
[ "python", "xml", "string", "lxml", "elementtree" ]
0
2
1,820
1
0
2011-05-30T20:44:34.467000
2011-05-30T23:06:23.650000
6,180,617
6,192,233
Scala, Parser Combinator for Tree Structured Data
How can parsers be used to parse records that spans multiple lines? I need to parse tree data (and eventually transform it to a tree data structure). I'm getting a difficult-to-trace parse error in the code below, but its not clear if this is even the best approach with Scala parsers. The question is really more about ...
As Daniel said, you should better let the parser handle whitespace skipping to minimize your code. However you may want to tweak the whitespace value so you can match end of lines explicitly. I did it below to prevent the parser from moving to the next line if no value for a record is defined. As much as possible, try ...
Scala, Parser Combinator for Tree Structured Data How can parsers be used to parse records that spans multiple lines? I need to parse tree data (and eventually transform it to a tree data structure). I'm getting a difficult-to-trace parse error in the code below, but its not clear if this is even the best approach with...
TITLE: Scala, Parser Combinator for Tree Structured Data QUESTION: How can parsers be used to parse records that spans multiple lines? I need to parse tree data (and eventually transform it to a tree data structure). I'm getting a difficult-to-trace parse error in the code below, but its not clear if this is even the ...
[ "scala", "parser-combinators" ]
6
3
1,521
2
0
2011-05-30T20:44:37.817000
2011-05-31T19:02:14.967000
6,180,619
6,185,637
Postgresql (Rails 3) merge rows on column (same table)
First, I've been using mysql for forever and am now upgrading to postgresql. The sql syntax is much stricter and some behavior different, thus my question. I've been searching around for how to merge rows in a postgresql query on a table such as id | name | amount 0 | foo | 12 1 | bar | 10 2 | bar | 13 3 | foo | 20 and...
I've no idea what RoR is doing in the background, but I'm guessing that group(:name,:amount) will run a query that groups by name, amount. The one you're looking for is group by name: select name, sum(amount) as amount, count(*) as tally from charges group by name If you append amount to the group by clause, the query ...
Postgresql (Rails 3) merge rows on column (same table) First, I've been using mysql for forever and am now upgrading to postgresql. The sql syntax is much stricter and some behavior different, thus my question. I've been searching around for how to merge rows in a postgresql query on a table such as id | name | amount ...
TITLE: Postgresql (Rails 3) merge rows on column (same table) QUESTION: First, I've been using mysql for forever and am now upgrading to postgresql. The sql syntax is much stricter and some behavior different, thus my question. I've been searching around for how to merge rows in a postgresql query on a table such as i...
[ "ruby-on-rails-3", "postgresql", "rails-postgresql" ]
1
1
1,253
1
0
2011-05-30T20:44:46.693000
2011-05-31T09:35:21.750000
6,180,621
6,180,636
Start and finish lock in different methods
I would like to - for obscure reasons thou shall not question - start a lock in a method, and end it in another. Somehow like: object mutex = new object(); void Main(string[] args) { lock (mutex) { doThings(); } } Would have the same behaviour as: object mutex = new object(); void Main(string[] args) { Foo(); doThing...
private readonly object syncRoot = new object(); void Main(string[] args) { Foo(); doThings(); Bar(); } void Foo() { Monitor.Enter(syncRoot); } void Bar() { Monitor.Exit(syncRoot); } [ Edit ] When you use lock, this is what happening under the hood in.NET 4: bool lockTaken = false; try { Monitor.Enter(syncRoot, ref ...
Start and finish lock in different methods I would like to - for obscure reasons thou shall not question - start a lock in a method, and end it in another. Somehow like: object mutex = new object(); void Main(string[] args) { lock (mutex) { doThings(); } } Would have the same behaviour as: object mutex = new object();...
TITLE: Start and finish lock in different methods QUESTION: I would like to - for obscure reasons thou shall not question - start a lock in a method, and end it in another. Somehow like: object mutex = new object(); void Main(string[] args) { lock (mutex) { doThings(); } } Would have the same behaviour as: object mut...
[ "c#", ".net", "multithreading", "locking", "parallel-processing" ]
7
16
1,293
1
0
2011-05-30T20:44:51.183000
2011-05-30T20:47:40.827000
6,180,623
6,180,654
Linq to Entities: can't get collection query to work
I'm struggling to get a collection of records using L2E. Here's the model view: http://pascalc.nougen.com/stuffs/aspnet_linq_model2.png I have a user identifier, which is associated to 1 or many UserGroup which themselves are linked to TestCase. I would like to get all TestCases of all groups the user id X is associate...
I think your problem is in this line: var usergroup = authenticatedUserEntity.UserGroups.FirstOrDefault(); Shouldn't your code get all UserGroups of that User? The above line will return only 1 UserGroup, this is, if the user belongs to more than 1 UserGroup the 2nd one won't be returned. To correct this: var userTestC...
Linq to Entities: can't get collection query to work I'm struggling to get a collection of records using L2E. Here's the model view: http://pascalc.nougen.com/stuffs/aspnet_linq_model2.png I have a user identifier, which is associated to 1 or many UserGroup which themselves are linked to TestCase. I would like to get a...
TITLE: Linq to Entities: can't get collection query to work QUESTION: I'm struggling to get a collection of records using L2E. Here's the model view: http://pascalc.nougen.com/stuffs/aspnet_linq_model2.png I have a user identifier, which is associated to 1 or many UserGroup which themselves are linked to TestCase. I w...
[ "asp.net", "linq-to-entities", "entitycollection" ]
1
1
212
2
0
2011-05-30T20:45:04.637000
2011-05-30T20:51:54.130000
6,180,630
6,180,733
.NET Compact Framework, enumerate windows (windows mobile)
is there any way to enumerate windows in.net compact framework, than using PInvoke EnumWindows?
is there any way to enumerate windows in.net compact framework, than using PInvoke EnumWindows? Nope. No shortcuts. Either do the P/Invoke enumeration yourself or use a library that does it for you.
.NET Compact Framework, enumerate windows (windows mobile) is there any way to enumerate windows in.net compact framework, than using PInvoke EnumWindows?
TITLE: .NET Compact Framework, enumerate windows (windows mobile) QUESTION: is there any way to enumerate windows in.net compact framework, than using PInvoke EnumWindows? ANSWER: is there any way to enumerate windows in.net compact framework, than using PInvoke EnumWindows? Nope. No shortcuts. Either do the P/Invoke...
[ "c#", "windows-mobile", "compact-framework" ]
1
3
416
1
0
2011-05-30T20:46:15.337000
2011-05-30T21:04:56.973000
6,180,632
6,194,544
Using UNION in django ORM syntax between different classes in the same hierarchy
I need to implement something like (SELECT table1.*, val=2 FROM table1 INNER JOIN table2 ON table1.id = table2.id WHERE some_condition) UNION (SELECT table1.*, val=3 FROM table1 INNER JOIN table3 ON table1.id = table3.id WHERE some_condition) or (SELECT val1, val2, val3, val=2 FROM table2 WHERE some_condition) UNION (S...
I decided to port to sqlalchemy - my problem fit badly into django and I'm happier with tg2 (that said - it does not mean that django is bad - it is just not well suited for my task).
Using UNION in django ORM syntax between different classes in the same hierarchy I need to implement something like (SELECT table1.*, val=2 FROM table1 INNER JOIN table2 ON table1.id = table2.id WHERE some_condition) UNION (SELECT table1.*, val=3 FROM table1 INNER JOIN table3 ON table1.id = table3.id WHERE some_conditi...
TITLE: Using UNION in django ORM syntax between different classes in the same hierarchy QUESTION: I need to implement something like (SELECT table1.*, val=2 FROM table1 INNER JOIN table2 ON table1.id = table2.id WHERE some_condition) UNION (SELECT table1.*, val=3 FROM table1 INNER JOIN table3 ON table1.id = table3.id ...
[ "python", "sql", "django", "postgresql", "django-models" ]
1
0
1,320
3
0
2011-05-30T20:47:01.390000
2011-05-31T23:04:03.397000
6,180,646
6,180,652
How to set date format in a connection to SQL?
In Microsoft SQL Server Management Studio, after calling the stored procedure, I can see that the time has the format 2011-05-20 19:56:09 in table. However, in my C# program, after using an OdbcConnection to get the record from the table, I find that the time is in the format 05/20/2011 19:56:09. So I manually convert ...
You can't set a DateTime format on a connection string. What you are seeing are simply different formattings of a certain (internal) representation of DateTime. The formatting is determined by the tools you use and for.NET code the culture your logged in with. When you want to display the time, then you need to format,...
How to set date format in a connection to SQL? In Microsoft SQL Server Management Studio, after calling the stored procedure, I can see that the time has the format 2011-05-20 19:56:09 in table. However, in my C# program, after using an OdbcConnection to get the record from the table, I find that the time is in the for...
TITLE: How to set date format in a connection to SQL? QUESTION: In Microsoft SQL Server Management Studio, after calling the stored procedure, I can see that the time has the format 2011-05-20 19:56:09 in table. However, in my C# program, after using an OdbcConnection to get the record from the table, I find that the ...
[ "c#", "sql", "sql-server", "datetime" ]
0
9
8,393
2
0
2011-05-30T20:48:57.093000
2011-05-30T20:51:40.840000
6,180,650
6,180,683
Getting UI dispatcher in class library
I'd like to design a class library and plan to use mutli-threading (i.e. BackgroundWorker ). I will have to watch out for the thread context, from which updates are made for fields, if I plan to bind them to the GUI of the library consuming frontend. It's not a good idea to pass the reference of the GUI dispatcher to t...
The Application class is defined in PresentationFramework.dll. You need to reference that in order to be able to access the dispatcher through Application.Current.Dispatcher.
Getting UI dispatcher in class library I'd like to design a class library and plan to use mutli-threading (i.e. BackgroundWorker ). I will have to watch out for the thread context, from which updates are made for fields, if I plan to bind them to the GUI of the library consuming frontend. It's not a good idea to pass t...
TITLE: Getting UI dispatcher in class library QUESTION: I'd like to design a class library and plan to use mutli-threading (i.e. BackgroundWorker ). I will have to watch out for the thread context, from which updates are made for fields, if I plan to bind them to the GUI of the library consuming frontend. It's not a g...
[ "c#", "wpf", "multithreading", "user-interface", "dispatcher" ]
18
28
20,166
3
0
2011-05-30T20:50:34.473000
2011-05-30T20:58:12.593000
6,180,657
6,180,690
JQUERY Clone DropDown
I want to insert a new row into a table that contains a Dropdown and a textbox? I need to load the new row's DDL with data from another DLL that will be populated from a database. Right now, I have a hardcoded DDL that I am trying to pull from. Why doesnt the new rows populate its DDL from the Source DDL? Code below. S...
You're passing an incorrect string to appendTo —selectors don't have quotes.
JQUERY Clone DropDown I want to insert a new row into a table that contains a Dropdown and a textbox? I need to load the new row's DDL with data from another DLL that will be populated from a database. Right now, I have a hardcoded DDL that I am trying to pull from. Why doesnt the new rows populate its DDL from the Sou...
TITLE: JQUERY Clone DropDown QUESTION: I want to insert a new row into a table that contains a Dropdown and a textbox? I need to load the new row's DDL with data from another DLL that will be populated from a database. Right now, I have a hardcoded DDL that I am trying to pull from. Why doesnt the new rows populate it...
[ "jquery", "drop-down-menu", "clone" ]
0
1
1,183
2
0
2011-05-30T20:52:30.680000
2011-05-30T20:59:03.283000
6,180,662
6,180,716
Java equivalent of typeof(SomeClass)
I try to implement a Hashtable in Java. But I don't have an idea of how to get this working. I tried Hashtable but this seems to be wrong. Btw. I want this to create a new instance of the class per reflection at runtime. So my question is, how to do this kind of stuff. Edit: I have the abstract Class "AbstractRestComma...
Do you want to create a mapping of a string to a class? This can be done this way: Map > map = new HashMap >(); map.put("foo", AbstractRestCommand.class); If you want to restrict the restrict the possible types to a certain interface or common super class you can use a bounded wildcard which would later allow you to us...
Java equivalent of typeof(SomeClass) I try to implement a Hashtable in Java. But I don't have an idea of how to get this working. I tried Hashtable but this seems to be wrong. Btw. I want this to create a new instance of the class per reflection at runtime. So my question is, how to do this kind of stuff. Edit: I have ...
TITLE: Java equivalent of typeof(SomeClass) QUESTION: I try to implement a Hashtable in Java. But I don't have an idea of how to get this working. I tried Hashtable but this seems to be wrong. Btw. I want this to create a new instance of the class per reflection at runtime. So my question is, how to do this kind of st...
[ "java", "generics" ]
3
4
1,089
4
0
2011-05-30T20:53:22.833000
2011-05-30T21:02:31.847000
6,180,667
6,180,729
How to work with XML in javascript?
So in Javascript I'm working with json a lot. It's simple since it looks like js object. So all I need to do when getting a json back from a HTTP request is to parse it to js object. When I want to send a js object as json i stringify it. But some APIs are just returning XML. How do I interact with XML? I parse it to o...
I'm using Sarissa, a crossbrowser library that encapsulate the XML APIs. It has XPATH, XSLT transformation and it is quite simple to use. It supports almost all modern browser and different old ones, refer to the sites for further explanation.
How to work with XML in javascript? So in Javascript I'm working with json a lot. It's simple since it looks like js object. So all I need to do when getting a json back from a HTTP request is to parse it to js object. When I want to send a js object as json i stringify it. But some APIs are just returning XML. How do ...
TITLE: How to work with XML in javascript? QUESTION: So in Javascript I'm working with json a lot. It's simple since it looks like js object. So all I need to do when getting a json back from a HTTP request is to parse it to js object. When I want to send a js object as json i stringify it. But some APIs are just retu...
[ "javascript", "xml", "json" ]
4
0
7,423
3
0
2011-05-30T20:54:41.987000
2011-05-30T21:04:19.310000
6,180,668
6,180,692
What join to use?
I have 2 different tables, which have just one field with same name ('username'). They're not related each other. I need with just one query to select all the rows among them both which have this field equal to a given value. I came up with this, which is off course wrong... SELECT * FROM user AS a FULL JOIN future_use...
Use a UNION: SELECT fields FROM user WHERE user.username=x UNION SELECT fields FROM future_user WHERE future_user.username=x Note that you can't do SELECT * in either because they have different fields. You'll need to return the same fields from both subqueries.
What join to use? I have 2 different tables, which have just one field with same name ('username'). They're not related each other. I need with just one query to select all the rows among them both which have this field equal to a given value. I came up with this, which is off course wrong... SELECT * FROM user AS a FU...
TITLE: What join to use? QUESTION: I have 2 different tables, which have just one field with same name ('username'). They're not related each other. I need with just one query to select all the rows among them both which have this field equal to a given value. I came up with this, which is off course wrong... SELECT *...
[ "mysql", "sql", "innodb" ]
0
5
77
2
0
2011-05-30T20:54:49.130000
2011-05-30T20:59:30.910000
6,180,673
6,180,818
Does it matter where a shift stands in a reset block?
Suppose, there is a reset block with a single shift: val r = reset { // do smth. 1 shift {...} // do smth. 2 // do smth. 3 } Is it correct that I place the shift after "do smth. 2" or "do smth. 3" without changing the result r? Is it correct that it does not matter where shift stands in a reset block?
It highly depends on what you are making within shift. If you just calling provided function like this: shift((k: Unit => Unit) => k(Unit)) then, in your particular example, it really doesn't matter where shift stands. Shift function just captures code that comes after it in other function (in my example this function ...
Does it matter where a shift stands in a reset block? Suppose, there is a reset block with a single shift: val r = reset { // do smth. 1 shift {...} // do smth. 2 // do smth. 3 } Is it correct that I place the shift after "do smth. 2" or "do smth. 3" without changing the result r? Is it correct that it does not matter ...
TITLE: Does it matter where a shift stands in a reset block? QUESTION: Suppose, there is a reset block with a single shift: val r = reset { // do smth. 1 shift {...} // do smth. 2 // do smth. 3 } Is it correct that I place the shift after "do smth. 2" or "do smth. 3" without changing the result r? Is it correct that i...
[ "scala", "continuations", "delimited-continuations" ]
4
7
181
2
0
2011-05-30T20:55:40.913000
2011-05-30T21:15:31.743000
6,180,679
6,181,699
Can't Tell If Fetch Or Relationship Is The Problem
I am adding object exercise to object session (as a relationship). In a view, I want to fetch and display exercises for a particular session object. Right now it is showing all exercises in the database rather than just for that session object. The relationship between the two objects is called "exercises". This is the...
If your instances of Session have a relationship to instances of Exercise, you don't need to do another fetch to get the session's exercises. You can just follow the relationship and get them directly-- they'll be loaded automatically. From your code it looks like logResultsTableViewController.selectedSession is an ins...
Can't Tell If Fetch Or Relationship Is The Problem I am adding object exercise to object session (as a relationship). In a view, I want to fetch and display exercises for a particular session object. Right now it is showing all exercises in the database rather than just for that session object. The relationship between...
TITLE: Can't Tell If Fetch Or Relationship Is The Problem QUESTION: I am adding object exercise to object session (as a relationship). In a view, I want to fetch and display exercises for a particular session object. Right now it is showing all exercises in the database rather than just for that session object. The re...
[ "iphone", "objective-c", "core-data" ]
0
0
219
1
0
2011-05-30T20:57:18.183000
2011-05-30T23:54:31.597000
6,180,681
6,180,724
Looking inside an object for a specific string using JavaScript
On JavaScript, I have the following JSON: var mJSON = { "monster":[ {"id":"150","name":"Richard"}, {"id":"100","name":"Gregory"}, {"id":"200","name":"Rachel"}, {"id":"250","name":"Mike"} ] } I need to refine this object by a string inputted by the user. For example: "100". The result should be a new JSON like this: var...
How about using $.map? var id = 100; var result = $.map(monsters, function(monster){ return monster.id == id? monster: null; }); JQuery.map() applies function to each argument of the array ( monsters ) and produces the new array that contains the values returned by the function. What is important in this case is that i...
Looking inside an object for a specific string using JavaScript On JavaScript, I have the following JSON: var mJSON = { "monster":[ {"id":"150","name":"Richard"}, {"id":"100","name":"Gregory"}, {"id":"200","name":"Rachel"}, {"id":"250","name":"Mike"} ] } I need to refine this object by a string inputted by the user. Fo...
TITLE: Looking inside an object for a specific string using JavaScript QUESTION: On JavaScript, I have the following JSON: var mJSON = { "monster":[ {"id":"150","name":"Richard"}, {"id":"100","name":"Gregory"}, {"id":"200","name":"Rachel"}, {"id":"250","name":"Mike"} ] } I need to refine this object by a string inputt...
[ "javascript", "jquery", "string", "json" ]
0
4
827
5
0
2011-05-30T20:58:03.527000
2011-05-30T21:03:18.740000
6,180,698
6,180,717
calling a function
Hi i have a function on a class which is like this: - (Float32)averagePower { if (![self isListening]) return 0.0; float tmp = [self levels][0].mAveragePower; tmp = tmp * 100; NSLog(@"%f", tmp); return tmp; } i am calling it from viewdidload of another class like this: SoundSensor *theInstance = [[SoundSensor alloc] in...
You are trying to pass a variable to a function that accepts no parameters. What I expect you meant to do is this: Float32 tmp = [theInstance averagePower];
calling a function Hi i have a function on a class which is like this: - (Float32)averagePower { if (![self isListening]) return 0.0; float tmp = [self levels][0].mAveragePower; tmp = tmp * 100; NSLog(@"%f", tmp); return tmp; } i am calling it from viewdidload of another class like this: SoundSensor *theInstance = [[So...
TITLE: calling a function QUESTION: Hi i have a function on a class which is like this: - (Float32)averagePower { if (![self isListening]) return 0.0; float tmp = [self levels][0].mAveragePower; tmp = tmp * 100; NSLog(@"%f", tmp); return tmp; } i am calling it from viewdidload of another class like this: SoundSensor *...
[ "objective-c", "xcode" ]
0
1
165
2
0
2011-05-30T21:00:17.173000
2011-05-30T21:02:36.230000
6,180,704
6,180,943
Combine several similar SELECT-expressions into a single expression
How to combine several similar SELECT-expressions into a single expression? private static Expression > CombineSelectors(params Expression >[] selectors) { //??? return null; } private void Query() { Expression > selector1 = x => new AgencyDTO { Name = x.Name }; Expression > selector2 = x => new AgencyDTO { Phone = ...
Not simple; you need to rewrite all the expressions - well, strictly speaking you can recycle most of one of them, but the problem is that you have different x in each (even though it looks the same), hence you need to use a visitor to replace all the parameters with the final x. Fortunately this isn't too bad in 4.0: ...
Combine several similar SELECT-expressions into a single expression How to combine several similar SELECT-expressions into a single expression? private static Expression > CombineSelectors(params Expression >[] selectors) { //??? return null; } private void Query() { Expression > selector1 = x => new AgencyDTO { Nam...
TITLE: Combine several similar SELECT-expressions into a single expression QUESTION: How to combine several similar SELECT-expressions into a single expression? private static Expression > CombineSelectors(params Expression >[] selectors) { //??? return null; } private void Query() { Expression > selector1 = x => n...
[ "c#", "linq", "linq-expressions" ]
10
20
3,793
3
0
2011-05-30T21:01:20.153000
2011-05-30T21:35:07.707000
6,180,710
6,180,773
drop tablespace if do not exist
I have written pl/sql script (works, but doesn't look nice): DECLARE v_exists NUMBER; BEGIN SELECT count(*) INTO v_exists FROM dba_tablespaces WHERE tablespace_name = 'hr_test'; IF v_exists > 0 THEN BEGIN EXECUTE IMMEDIATE 'DROP TABLESPACE hr_test INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS'; END; END IF; EXEC...
No. You cannot issue DDL statements in static PL/SQL. And yes, it is perfectly fine to use native dynamic SQL for DDL purposes: You need dynamic SQL in the following situations: You want to execute a SQL data definition statement (such as CREATE), a data control statement (such as GRANT), or a session control statement...
drop tablespace if do not exist I have written pl/sql script (works, but doesn't look nice): DECLARE v_exists NUMBER; BEGIN SELECT count(*) INTO v_exists FROM dba_tablespaces WHERE tablespace_name = 'hr_test'; IF v_exists > 0 THEN BEGIN EXECUTE IMMEDIATE 'DROP TABLESPACE hr_test INCLUDING CONTENTS AND DATAFILES CASCADE...
TITLE: drop tablespace if do not exist QUESTION: I have written pl/sql script (works, but doesn't look nice): DECLARE v_exists NUMBER; BEGIN SELECT count(*) INTO v_exists FROM dba_tablespaces WHERE tablespace_name = 'hr_test'; IF v_exists > 0 THEN BEGIN EXECUTE IMMEDIATE 'DROP TABLESPACE hr_test INCLUDING CONTENTS AND...
[ "sql", "oracle", "plsql", "ddl" ]
5
6
4,158
1
0
2011-05-30T21:01:47.260000
2011-05-30T21:10:30.637000
6,180,711
6,182,040
Inherit from data types
How to create a class which inherits from a data type, specifically from Char data type? I just wan't to add one property to it. If it's not possible, are there any other ways to accomplish this?
I didn't think you could inherit from System types. Remember an extension method can be only a Sub procedure or a Function procedure. You cannot define an extension property, field, or event. Your options: Extension method (can only be a function or sub) A custom structure (use Reflector to make your own custom Char) A...
Inherit from data types How to create a class which inherits from a data type, specifically from Char data type? I just wan't to add one property to it. If it's not possible, are there any other ways to accomplish this?
TITLE: Inherit from data types QUESTION: How to create a class which inherits from a data type, specifically from Char data type? I just wan't to add one property to it. If it's not possible, are there any other ways to accomplish this? ANSWER: I didn't think you could inherit from System types. Remember an extension...
[ "vb.net", "inheritance" ]
1
2
425
2
0
2011-05-30T21:01:52.843000
2011-05-31T01:14:20.507000
6,180,722
6,181,671
Force IE toolbar to always be active in C# BHO
I'm working on a small C# BHO and I'd like to be able to make sure the browser toolbars don't get disabled with a window.open(url,windowname,"toolbar=no"), and I'm wondering if theres a simple way to force that the toolbars stay enabled? Failing that, another way to trigger the BHO would be needed, I think you can acce...
This is the sort of thing that, in general, you can't override. You can try using ShowBrowserBar, but if it doesn't work you will have to reconsider your design.
Force IE toolbar to always be active in C# BHO I'm working on a small C# BHO and I'd like to be able to make sure the browser toolbars don't get disabled with a window.open(url,windowname,"toolbar=no"), and I'm wondering if theres a simple way to force that the toolbars stay enabled? Failing that, another way to trigge...
TITLE: Force IE toolbar to always be active in C# BHO QUESTION: I'm working on a small C# BHO and I'd like to be able to make sure the browser toolbars don't get disabled with a window.open(url,windowname,"toolbar=no"), and I'm wondering if theres a simple way to force that the toolbars stay enabled? Failing that, ano...
[ "c#", "internet-explorer", "toolbar", "bho" ]
0
2
378
1
0
2011-05-30T21:03:08.367000
2011-05-30T23:47:26.930000
6,180,723
6,180,750
Two questions on using Apache ant
I am learning to build automatic Java compiling script using Ant. With respect to the following code segment, what does the default="dist" stand for? For the basedir=".", does "." mean the working directory, which has build.xml stored? With respect to the following segment, what does location="src"/ stand for?
The default attribute indicates the target which will be executed if you are calling ant without any target argument. Thus with this setting, ant will be synonymous to ant dist. The basedir attribute is interpreted relatively to the parent directory of build.xml, yes. (This directory is usually the same as the current ...
Two questions on using Apache ant I am learning to build automatic Java compiling script using Ant. With respect to the following code segment, what does the default="dist" stand for? For the basedir=".", does "." mean the working directory, which has build.xml stored? With respect to the following segment, what does l...
TITLE: Two questions on using Apache ant QUESTION: I am learning to build automatic Java compiling script using Ant. With respect to the following code segment, what does the default="dist" stand for? For the basedir=".", does "." mean the working directory, which has build.xml stored? With respect to the following se...
[ "java", "ant" ]
0
2
169
3
0
2011-05-30T21:03:15.810000
2011-05-30T21:07:19.247000
6,180,726
6,180,799
Investigating XMLWriter object
How can I see the XML contents of fully populated XmlWriter object while debugging. My silverlight application doesn't permit to actually write to a file and check the contents.
You can create the XmlWriter based on a MemoryStream, then unencode the bytes from the memory stream and display it in a text box, for example. MemoryStream ms = new MemoryStream(); XmlWriterSettings ws = new XmlWriterSettings(); ws.Encoding = Encoding.UTF8; XmlWriter w = XmlWriter.Create(ms, ws); // populate the write...
Investigating XMLWriter object How can I see the XML contents of fully populated XmlWriter object while debugging. My silverlight application doesn't permit to actually write to a file and check the contents.
TITLE: Investigating XMLWriter object QUESTION: How can I see the XML contents of fully populated XmlWriter object while debugging. My silverlight application doesn't permit to actually write to a file and check the contents. ANSWER: You can create the XmlWriter based on a MemoryStream, then unencode the bytes from t...
[ "c#", "silverlight" ]
2
0
904
3
0
2011-05-30T21:03:55.713000
2011-05-30T21:13:31.887000
6,180,727
6,180,961
How can I determine the positioning of UIWebView from IB when it has been initialized in code?
I have successfully embedded a vimeo video using a UIWebView. However because i have created this in code, i have to adjust the positioning in code and i would prefer to do it through interface builder. Correct me if im wrong, i read that initializing UIWebView with the initWithCoder method was the way to achieve this....
It is my understanding that the initWithCoder is automatically used by the Objective-C runtime/Cocoa/CocoaTouch to accomplish what you are aiming at. So you don't have to really worry about it. In short, if you create you UI in IB, say instantiate there a UIWebView object, define its connection a controller of yours, t...
How can I determine the positioning of UIWebView from IB when it has been initialized in code? I have successfully embedded a vimeo video using a UIWebView. However because i have created this in code, i have to adjust the positioning in code and i would prefer to do it through interface builder. Correct me if im wrong...
TITLE: How can I determine the positioning of UIWebView from IB when it has been initialized in code? QUESTION: I have successfully embedded a vimeo video using a UIWebView. However because i have created this in code, i have to adjust the positioning in code and i would prefer to do it through interface builder. Corr...
[ "iphone", "ios", "ipad", "uiwebview", "interface-builder" ]
0
0
282
1
0
2011-05-30T21:04:00.800000
2011-05-30T21:38:06.317000
6,180,736
6,180,797
1090mhz receiver and MySql Database
I have a 1090mhz receiver. What it receives its not very important right now. But you can have a look at it here. It outputs strings of hex data over a USB port. So far so good. What i want to do is create a c# program that will retrieve the data from the port, do a little decoding which i can handle my self and then s...
For reading from the serial port, check out the documentation on MSDN for the SerialPort class: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx For writing to MySql, I'd google for "MySql C#". There are at least a few pages that will help you bootstrap yourself. Or look into using a DB ORM like ...
1090mhz receiver and MySql Database I have a 1090mhz receiver. What it receives its not very important right now. But you can have a look at it here. It outputs strings of hex data over a USB port. So far so good. What i want to do is create a c# program that will retrieve the data from the port, do a little decoding w...
TITLE: 1090mhz receiver and MySql Database QUESTION: I have a 1090mhz receiver. What it receives its not very important right now. But you can have a look at it here. It outputs strings of hex data over a USB port. So far so good. What i want to do is create a c# program that will retrieve the data from the port, do a...
[ "c#", "mysql", "ports" ]
2
2
223
1
0
2011-05-30T21:05:11.190000
2011-05-30T21:13:26.237000
6,180,743
6,181,321
Ajax Form Validation, JSON code
I have 3 fields in my ajax registration form. Each of them under success has: success: function (j) { if (j.ok){ $(validateEmail.html(j.msg)).attr("id","accept").appendTo($('#loginform') ); } else { $(validateEmail.html(j.msg)).attr("id","invalid").appendTo($('#loginform') ); } } When the field is validated and put in ...
As Peter said, don't use valid/invalid as ID. Maybe you want to use classes instead, or jquery's.data(). Then, maybe you can make a counter? var count = 0;... if(j.ok) { stuff; count = count+1; } Then you check: if(count == 3) { allvalid; } Regards.
Ajax Form Validation, JSON code I have 3 fields in my ajax registration form. Each of them under success has: success: function (j) { if (j.ok){ $(validateEmail.html(j.msg)).attr("id","accept").appendTo($('#loginform') ); } else { $(validateEmail.html(j.msg)).attr("id","invalid").appendTo($('#loginform') ); } } When th...
TITLE: Ajax Form Validation, JSON code QUESTION: I have 3 fields in my ajax registration form. Each of them under success has: success: function (j) { if (j.ok){ $(validateEmail.html(j.msg)).attr("id","accept").appendTo($('#loginform') ); } else { $(validateEmail.html(j.msg)).attr("id","invalid").appendTo($('#loginfor...
[ "jquery", "ajax", "json" ]
0
0
421
1
0
2011-05-30T21:06:34.513000
2011-05-30T22:41:26.077000
6,180,744
6,180,983
A CSV Import/Export wizard for Delphi?
To avoid reinventing the wheel, I'm looking for some dialog wizard components/libraries that will simplify my job of importing CSV and similar text files into my Delphi/C++Builder application. In other words, the user of our app can 'open' a suitable text file, and they can 'describe' through the UI how the columns are...
Try these two components EMS Advanced Data Import VCL EMS Advanced Data Export VCL
A CSV Import/Export wizard for Delphi? To avoid reinventing the wheel, I'm looking for some dialog wizard components/libraries that will simplify my job of importing CSV and similar text files into my Delphi/C++Builder application. In other words, the user of our app can 'open' a suitable text file, and they can 'descr...
TITLE: A CSV Import/Export wizard for Delphi? QUESTION: To avoid reinventing the wheel, I'm looking for some dialog wizard components/libraries that will simplify my job of importing CSV and similar text files into my Delphi/C++Builder application. In other words, the user of our app can 'open' a suitable text file, a...
[ "delphi", "csv", "import", "wizard" ]
8
8
4,747
3
0
2011-05-30T21:06:54.353000
2011-05-30T21:42:11.280000
6,180,747
6,180,764
Defining my own command
I'm trying to define my own command in MacVim to turn a c statement or range of statements into comments. So I put this in my vimrc: command -range Com:, s?^.*$?/*&*/? It works fine if I just enter:Com to comment the current line. But if I enter something like:Com 3 5 in order to turn lines 3 thru 5 into comments I alw...
You need to provide the range before the command, like that::3,5Com Anyway, I suggest you to check the NERD_commenter plugin. It's great for commenting source code.
Defining my own command I'm trying to define my own command in MacVim to turn a c statement or range of statements into comments. So I put this in my vimrc: command -range Com:, s?^.*$?/*&*/? It works fine if I just enter:Com to comment the current line. But if I enter something like:Com 3 5 in order to turn lines 3 th...
TITLE: Defining my own command QUESTION: I'm trying to define my own command in MacVim to turn a c statement or range of statements into comments. So I put this in my vimrc: command -range Com:, s?^.*$?/*&*/? It works fine if I just enter:Com to comment the current line. But if I enter something like:Com 3 5 in order ...
[ "vim", "macvim" ]
3
6
184
1
0
2011-05-30T21:07:00.717000
2011-05-30T21:08:36.033000
6,180,760
6,181,035
Android, show dialog when ListPreference item is clicked
Basically I have a ListPreference to allow a user to change the X position of some text on my Live Wallpaper. It contains 4 entries: top, middle, bottom and manually input X. The first 3 options are no problem, I simply get the SharedPreferences in my WallpaperService class and check if they are top, middle or bottom a...
You probably want to create a custom ListPreference. Basically you want to extend from ListPreference (see original here ), and provide a custom protected void onPrepareDialogBuilder(Builder builder), in which you provide the additional "custom" list item and the onclick to handle the selection of the "custom" entry. N...
Android, show dialog when ListPreference item is clicked Basically I have a ListPreference to allow a user to change the X position of some text on my Live Wallpaper. It contains 4 entries: top, middle, bottom and manually input X. The first 3 options are no problem, I simply get the SharedPreferences in my WallpaperSe...
TITLE: Android, show dialog when ListPreference item is clicked QUESTION: Basically I have a ListPreference to allow a user to change the X position of some text on my Live Wallpaper. It contains 4 entries: top, middle, bottom and manually input X. The first 3 options are no problem, I simply get the SharedPreferences...
[ "java", "android", "live-wallpaper", "listpreference" ]
3
3
3,624
2
0
2011-05-30T21:08:14.583000
2011-05-30T21:51:36.690000
6,180,762
6,182,502
Determining browser Proxy setting in NPAPI to download page SSL certificate
Users could have connections through proxies. Some using system-wide proxy settings, others browser-wide proxy. On Windows for example you could have the system proxy settings as well as proxy settings for Firefox or Chrome alone. Therefore relying on system proxy settings is not reliable. The only logical solution is ...
I'm pretty sure that NPN_GetURLNotify() will use the browser's proxy settings. It would be pretty crazy if it did not. Update If you're writing an NPAPI-based plugin, you need to use the NPN_Get/Post functions to do HTTP requests. That will use the host's proxy settings, cookies, etc. These functions exist for this rea...
Determining browser Proxy setting in NPAPI to download page SSL certificate Users could have connections through proxies. Some using system-wide proxy settings, others browser-wide proxy. On Windows for example you could have the system proxy settings as well as proxy settings for Firefox or Chrome alone. Therefore rel...
TITLE: Determining browser Proxy setting in NPAPI to download page SSL certificate QUESTION: Users could have connections through proxies. Some using system-wide proxy settings, others browser-wide proxy. On Windows for example you could have the system proxy settings as well as proxy settings for Firefox or Chrome al...
[ "c++", "firefox", "plugins", "openssl", "npapi" ]
1
1
470
1
0
2011-05-30T21:08:22.810000
2011-05-31T02:43:53.607000
6,180,763
6,180,789
css 'tab' fix > bottom border of a tab
@ http://jsfiddle.net/ktCb8/3/ you can see the example. what do i need to do to get the bottom border on the 'tab' to be WHITE when hovering over one 'tab' (so that the tab over which hover is done is connected to the panel bellow and does not have the gray line). thnx latest > http://jsfiddle.net/ktCb8/27/ still cant ...
Just amend: #contentBox > li:hover, #contentBox ul { border: 1px solid #CCC; background-color: #FFF; } to: #contentBox > li:hover, #contentBox ul { border: 1px solid #CCC; border-bottom: 2px solid #fff; background-color: #FFF; } Updated JS Fiddle. Edited in response to question in comments: That won't put a gray border...
css 'tab' fix > bottom border of a tab @ http://jsfiddle.net/ktCb8/3/ you can see the example. what do i need to do to get the bottom border on the 'tab' to be WHITE when hovering over one 'tab' (so that the tab over which hover is done is connected to the panel bellow and does not have the gray line). thnx latest > ht...
TITLE: css 'tab' fix > bottom border of a tab QUESTION: @ http://jsfiddle.net/ktCb8/3/ you can see the example. what do i need to do to get the bottom border on the 'tab' to be WHITE when hovering over one 'tab' (so that the tab over which hover is done is connected to the panel bellow and does not have the gray line)...
[ "html", "css", "border" ]
0
2
2,702
3
0
2011-05-30T21:08:30.267000
2011-05-30T21:12:36.600000
6,180,768
6,180,891
How to left pad integers with a formatter with dots?
I know we can left-pad integers with a formatter like this: String.format("%7d", 234); // " 234" String.format("%07d", 234); // "0000234" String.format("%015d", 234); // "0000000000000234" But, how to replace the zeros by dots (like a plain text content index)? String.format("%.13d", 234); // doesn't work I want to pro...
I think there is no such. padding build in, but you can pad with spaces and then replace them. String.format("%15d", 234).replaceAll(' ', '.');
How to left pad integers with a formatter with dots? I know we can left-pad integers with a formatter like this: String.format("%7d", 234); // " 234" String.format("%07d", 234); // "0000234" String.format("%015d", 234); // "0000000000000234" But, how to replace the zeros by dots (like a plain text content index)? Strin...
TITLE: How to left pad integers with a formatter with dots? QUESTION: I know we can left-pad integers with a formatter like this: String.format("%7d", 234); // " 234" String.format("%07d", 234); // "0000234" String.format("%015d", 234); // "0000000000000234" But, how to replace the zeros by dots (like a plain text con...
[ "java", "formatter" ]
1
3
2,464
4
0
2011-05-30T21:09:31.823000
2011-05-30T21:26:36.657000
6,180,772
6,264,244
Email user that broke build in Teamcity
In Husdon/Jenkins, I can setup notifications when the build is broken to email the user(s) that made the checkins that broke the build. How do I do this in Teamcity? I am aware that individual users can setup email notifications for themselves via the Teamcity interface (for when the build is broken), but I ONLY want e...
Open TeamCity in your browser. Browse to Administration > Users and Groups > Groups Click on the group name All Users Select the tab Notification Rules (you see the Email notifier rules by default) Click on Add new rule choose in the column Watch the option Builds affected by my changes choose in the column Send notifi...
Email user that broke build in Teamcity In Husdon/Jenkins, I can setup notifications when the build is broken to email the user(s) that made the checkins that broke the build. How do I do this in Teamcity? I am aware that individual users can setup email notifications for themselves via the Teamcity interface (for when...
TITLE: Email user that broke build in Teamcity QUESTION: In Husdon/Jenkins, I can setup notifications when the build is broken to email the user(s) that made the checkins that broke the build. How do I do this in Teamcity? I am aware that individual users can setup email notifications for themselves via the Teamcity i...
[ "teamcity" ]
55
88
21,059
3
0
2011-05-30T21:10:19.017000
2011-06-07T11:04:27.250000
6,180,786
6,180,910
How do I get the latest Mercurial tag from within Powershell
If i run the following command from a DOS prompt: hg parents --template {latesttag} then I get the latest tag value returned as expected. However if I run the same command from within a powershell console I get the following error: hg parents: option -i not recognized I need the command to run in powershell so I can ge...
You should just need to surround the argument to --template in quotes so that Powershell knows it's a string: hg parents --template '{latesttag}' Sometimes, however, with the way Powershell parses things you have to make doubly sure that double-quotes survive (such as passing an argument that contains spaces but should...
How do I get the latest Mercurial tag from within Powershell If i run the following command from a DOS prompt: hg parents --template {latesttag} then I get the latest tag value returned as expected. However if I run the same command from within a powershell console I get the following error: hg parents: option -i not r...
TITLE: How do I get the latest Mercurial tag from within Powershell QUESTION: If i run the following command from a DOS prompt: hg parents --template {latesttag} then I get the latest tag value returned as expected. However if I run the same command from within a powershell console I get the following error: hg parent...
[ "powershell", "mercurial" ]
5
4
2,229
2
0
2011-05-30T21:11:55.553000
2011-05-30T21:29:20.087000
6,180,801
6,180,831
PHP define() function
Is there any possible way to get this working: What is the best comment in source code you have ever encountered? (which I think is C++, but I have no idea)...working in PHP? I'd love to mess with my co-workers as a little prank and see what happens;)
No. There's not. PHP doesn't have a preprocessor (strictly speaking, it is the preprocessor!); within its scope, keywords trump constants. A C++ "trick" like this: #define true false works because the preprocessor manipulates the code on a context-less basis... though it should be noted that the standard makes that "tr...
PHP define() function Is there any possible way to get this working: What is the best comment in source code you have ever encountered? (which I think is C++, but I have no idea)...working in PHP? I'd love to mess with my co-workers as a little prank and see what happens;)
TITLE: PHP define() function QUESTION: Is there any possible way to get this working: What is the best comment in source code you have ever encountered? (which I think is C++, but I have no idea)...working in PHP? I'd love to mess with my co-workers as a little prank and see what happens;) ANSWER: No. There's not. PH...
[ "php", "c++", "debugging" ]
1
1
263
2
0
2011-05-30T21:13:40.937000
2011-05-30T21:17:26.923000
6,180,812
6,180,905
Is it Possible to rewrite the getter of a property in a subclass?
For example: class Example: def __init__(self): self.v = 0 @property def value(self): return self.v @value.setter def value(self, v): self.v = v class SubExample(Example): pass Would it be possible to rewrite just the getter to value in SubExample?
You can do so like this class DoubleExample(Example): @Example.value.getter def value(self): return self.v * 2 o = Example() o.value = 1 print o.value # prints "1" p = DoubleExample() p.value = 1 print p.value # prints "2" However, this only works if Example is a new-style class ( class Example(object): ) rather than...
Is it Possible to rewrite the getter of a property in a subclass? For example: class Example: def __init__(self): self.v = 0 @property def value(self): return self.v @value.setter def value(self, v): self.v = v class SubExample(Example): pass Would it be possible to rewrite just the getter to value in SubExample?
TITLE: Is it Possible to rewrite the getter of a property in a subclass? QUESTION: For example: class Example: def __init__(self): self.v = 0 @property def value(self): return self.v @value.setter def value(self, v): self.v = v class SubExample(Example): pass Would it be possible to rewrite just the getter to value ...
[ "python", "inheritance" ]
3
4
304
3
0
2011-05-30T21:14:26.203000
2011-05-30T21:28:24.223000
6,180,814
6,180,825
Do you need to "close" .net Configuration
When you create a configuration object to manage.net configuration files, do you need to close the files. I have an application with several.dll components. Do I have to use a global config to avoid keep writing over changes being done by other.dll's to the same configuration file. Public Shared config As System.Config...
No, you don't need to Close/Dispose. The Configuration class returned by the OpenExeConfiguration static method doesn't implement IDisposable nor it has any Close method so your code is fine.
Do you need to "close" .net Configuration When you create a configuration object to manage.net configuration files, do you need to close the files. I have an application with several.dll components. Do I have to use a global config to avoid keep writing over changes being done by other.dll's to the same configuration f...
TITLE: Do you need to "close" .net Configuration QUESTION: When you create a configuration object to manage.net configuration files, do you need to close the files. I have an application with several.dll components. Do I have to use a global config to avoid keep writing over changes being done by other.dll's to the sa...
[ ".net", "configuration", "configurationmanager" ]
4
5
1,258
1
0
2011-05-30T21:14:55.557000
2011-05-30T21:16:21.523000